From f7d6d9e8a36a1d4eea200c2f0b47aa730a3babaf Mon Sep 17 00:00:00 2001 From: Joe Hildebrand Date: Tue, 21 Feb 2023 12:37:11 -0700 Subject: [PATCH 1/3] Update dependencies --- docs/js/benchmark-bundle.min.js | 2 +- docs/js/test-bundle.min.js | 2 +- docs/vendor/peggy/peggy.min.js | 2 +- package-lock.json | 223 ++++++++++++++++---------------- package.json | 10 +- web-test/package-lock.json | 45 ++++--- web-test/package.json | 2 +- 7 files changed, 151 insertions(+), 135 deletions(-) diff --git a/docs/js/benchmark-bundle.min.js b/docs/js/benchmark-bundle.min.js index 1d9fad51..36bb6945 100644 --- a/docs/js/benchmark-bundle.min.js +++ b/docs/js/benchmark-bundle.min.js @@ -5,4 +5,4 @@ // Copyright (c) 2023- the Peggy authors // Licensed under the MIT License. -!function(e,u){"object"==typeof exports&&"undefined"!=typeof module?module.exports=u():"function"==typeof define&&define.amd?define(u):(e="undefined"!=typeof globalThis?globalThis:e||self).browser=u()}(this,(function(){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},browser_stub={},GrammarLocation$4=function(){function e(e,u){this.source=e,this.start=u}return e.prototype.toString=function(){return String(this.source)},e.prototype.offset=function(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}},e.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},e.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},e}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,u){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var t in u)Object.prototype.hasOwnProperty.call(u,t)&&(e[t]=u[t])},extendStatics(e,u)},function(e,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function t(){this.constructor=e}extendStatics(e,u),e.prototype=null===u?Object.create(u):(t.prototype=u.prototype,new t)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var t in u)Object.prototype.hasOwnProperty.call(u,t)&&(e[t]=u[t])},GrammarError$3=function(e){function u(t,r,n){var o=e.call(this,t)||this;return setProtoOf(o,u.prototype),o.name="GrammarError",o.location=r,void 0===n&&(n=[]),o.diagnostics=n,o.stage=null,o.problems=[["error",t,r,n]],o}return __extends(u,e),u.prototype.toString=function(){var u=e.prototype.toString.call(this);this.location&&(u+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(u+="".concat(this.location.source,":")),u+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var t=0,r=this.diagnostics;t0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$9.build({rule:function(e){var u,t=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(u=e.match,e.match=o(e.expression),++t>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(u!==e.match)}return e.match},named:r,choice:function(e){return e.match=n(e.alternatives,!0)},action:r,sequence:function(e){return e.match=n(e.elements,!1)},labeled:r,text:r,simple_and:r,simple_not:function(e){return e.match=-o(e.expression)},optional:t,zero_or_more:t,one_or_more:r,group:r,semantic_and:u,semantic_not:u,rule_ref:function(u){var t=asts$6.findRule(e,u.name);return u.match=o(t)},literal:function(e){var u=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=u},class:function(e){var u=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=u},any:u});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var r,n=0,o=u.length;n1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],A([op$1.POP],e(u.slice(1),t)),[]):[])}(e.alternatives,u)},action:function(e,u){var t=p(u.env),r="sequence"!==e.expression.type||0===e.expression.elements.length,n=m(e.expression,{sp:u.sp+(r?1:0),env:t,action:e}),o=0|e.expression.match,a=r&&o!==NEVER_MATCH?c(!1,Object.keys(t),e):null;return r?A([op$1.PUSH_CURR_POS],n,f(o,[op$1.IF_NOT_ERROR],A([op$1.LOAD_SAVED_POS,1],E(a,1,t,u.sp+2)),[]),[op$1.NIP]):n},sequence:function(e,u){return A([op$1.PUSH_CURR_POS],function u(t,r){if(t.length>0){var n=e.elements.length-t.length+1;return A(m(t[0],{sp:r.sp,env:r.env,pluck:r.pluck,action:null}),f(0|t[0].match,[op$1.IF_NOT_ERROR],u(t.slice(1),{sp:r.sp+1,env:r.env,pluck:r.pluck,action:r.action}),A(n>1?[op$1.POP_N,n]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(r.pluck.length>0)return A([op$1.PLUCK,e.elements.length+1,r.pluck.length],r.pluck.map((function(e){return r.sp-e})));if(r.action){var o=c(!1,Object.keys(r.env),r.action);return A([op$1.LOAD_SAVED_POS,e.elements.length],E(o,e.elements.length+1,r.env,r.sp))}return A([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:u.sp+1,env:u.env,pluck:[],action:u.action}))},labeled:function(e,t){var r=t.env,n=e.label,o=t.sp+1;n&&(r=p(t.env),t.env[e.label]=o),e.pick&&t.pluck.push(o);var a=m(e.expression,{sp:t.sp,env:r,action:null});return n&&e.labelLocation&&u&&"source-and-map"===u.output?A([op$1.SOURCE_MAP_LABEL_PUSH,o,i(n),l(e.labelLocation)],a,[op$1.SOURCE_MAP_LABEL_POP,o]):a},text:function(e,u){return A([op$1.PUSH_CURR_POS],m(e.expression,{sp:u.sp+1,env:p(u.env),action:null}),f(0|e.match,[op$1.IF_NOT_ERROR],A([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,u){return h(e.expression,!1,u)},simple_not:function(e,u){return h(e.expression,!0,u)},optional:function(e,u){return A(m(e.expression,{sp:u.sp,env:p(u.env),action:null}),f(-(0|e.expression.match),[op$1.IF_ERROR],A([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,u){var t=m(e.expression,{sp:u.sp+1,env:p(u.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,C(t),[op$1.POP])},one_or_more:function(e,u){var t=m(e.expression,{sp:u.sp+1,env:p(u.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,f(0|e.expression.match,[op$1.IF_NOT_ERROR],A(C(t),[op$1.POP]),A([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},group:function(e,u){return m(e.expression,{sp:u.sp,env:p(u.env),action:null})},semantic_and:function(e,u){return d(e,!1,u)},semantic_not:function(e,u){return d(e,!0,u)},rule_ref:function(u){return[op$1.RULE,asts$5.indexOfRule(e,u.name)]},literal:function(e){if(e.value.length>0){var u=0|e.match,t=u===SOMETIMES_MATCH||u===ALWAYS_MATCH&&!e.ignoreCase?i(e.ignoreCase?e.value.toLowerCase():e.value):null,r=u!==ALWAYS_MATCH?s({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return f(u,e.ignoreCase?[op$1.MATCH_STRING_IC,t]:[op$1.MATCH_STRING,t],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,t],[op$1.FAIL,r])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var u=0|e.match,t=u===SOMETIMES_MATCH?function(e){var u={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},t=JSON.stringify(u),n=r.findIndex((function(e){return JSON.stringify(e)===t}));return-1===n?r.push(u)-1:n}(e):null,n=u!==ALWAYS_MATCH?s({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return f(u,[op$1.MATCH_CHAR_CLASS,t],[op$1.ACCEPT_N,1],[op$1.FAIL,n])},any:function(e){var u=0|e.match,t=u!==ALWAYS_MATCH?s({type:"any"}):null;return f(u,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,t])}},u&&"source-and-map"===u.output&&Object.entries(g).forEach((function(e){var u=e[0],t=e[1];g[u]=function(e){for(var u=[],r=1;r>>=VLQ_BASE_SHIFT,r>0&&(u|=VLQ_CONTINUATION_BIT),t+=base64$2.encode(u)}while(r>0);return t};var util$3={};function getArg(e,u,t){if(u in e)return e[u];if(3===arguments.length)return t;throw new Error('"'+u+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;const u=e.length;if(u<9)return!1;if(95!==e.charCodeAt(u-1)||95!==e.charCodeAt(u-2)||111!==e.charCodeAt(u-3)||116!==e.charCodeAt(u-4)||111!==e.charCodeAt(u-5)||114!==e.charCodeAt(u-6)||112!==e.charCodeAt(u-7)||95!==e.charCodeAt(u-8)||95!==e.charCodeAt(u-9))return!1;for(let t=u-10;t>=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function strcmp(e,u){return e===u?0:null===e?1:null===u?-1:e>u?1:-1}function compareByGeneratedPositionsInflated(e,u){let t=e.generatedLine-u.generatedLine;return 0!==t?t:(t=e.generatedColumn-u.generatedColumn,0!==t?t:(t=strcmp(e.source,u.source),0!==t?t:(t=e.originalLine-u.originalLine,0!==t?t:(t=e.originalColumn-u.originalColumn,0!==t?t:strcmp(e.name,u.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return u=>{const t=getURLType(u),r=buildSafeBase(u),n=new URL(u,r);e(n);const o=n.toString();return"absolute"===t?o:"scheme-relative"===t?o.slice(PROTOCOL.length):"path-absolute"===t?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(r,o)}}function withBase(e,u){return new URL(e,u).toString()}function buildUniqueSegment(e,u){let t=0;for(;;){const r=e+t++;if(-1===u.indexOf(r))return r}}function buildSafeBase(e){const u=e.split("..").length-1,t=buildUniqueSegment("p",e);let r=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!r[r.length-1]&&r.pop();t.length>0&&r.length>0&&t[0]===r[0];)t.shift(),r.shift();return r.map((()=>"..")).concat(t).join("/")+u.search+u.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,u){const t=getURLType(u),r=getURLType(e);if(e=ensureDirectory(e),"absolute"===t)return withBase(u,void 0);if("absolute"===r)return withBase(u,e);if("scheme-relative"===t)return normalize(u);if("scheme-relative"===r)return withBase(u,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===t)return normalize(u);if("path-absolute"===r)return withBase(u,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const n=buildSafeBase(u+e);return computeRelativeURL(n,withBase(u,withBase(e,n)))}function relative(e,u){const t=relativeIfPossible(e,u);return"string"==typeof t?t:normalize(u)}function relativeIfPossible(e,u){if(getURLType(e)!==getURLType(u))return null;const t=buildSafeBase(e+u),r=new URL(e,t),n=new URL(u,t);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==r.protocol||n.user!==r.user||n.password!==r.password||n.hostname!==r.hostname||n.port!==r.port?null:computeRelativeURL(r,n)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(u,t){const r=new e;for(let e=0,n=u.length;e=0)return u;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&et||r==t&&o>=n||util$2.compareByGeneratedPositionsInflated(e,u)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,u){this._array.forEach(e,u)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(u){const t=u.sourceRoot,r=new e({file:u.file,sourceRoot:t});return u.eachMapping((function(e){const u={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(u.source=e.source,null!=t&&(u.source=util$1.relative(t,u.source)),u.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(u.name=e.name)),r.addMapping(u)})),u.sources.forEach((function(e){let n=e;null!=t&&(n=util$1.relative(t,e)),r._sources.has(n)||r._sources.add(n);const o=u.sourceContentFor(e);null!=o&&r.setSourceContent(e,o)})),r}addMapping(e){const u=util$1.getArg(e,"generated"),t=util$1.getArg(e,"original",null);let r=util$1.getArg(e,"source",null),n=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(u,t,r,n),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:n})}setSourceContent(e,u){let t=e;null!=this._sourceRoot&&(t=util$1.relative(this._sourceRoot,t)),null!=u?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(t)]=u):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,u,t){let r=u;if(null==u){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const n=this._sourceRoot;null!=n&&(r=util$1.relative(n,r));const o=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;this._mappings.unsortedForEach((function(u){if(u.source===r&&null!=u.originalLine){const r=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});null!=r.source&&(u.source=r.source,null!=t&&(u.source=util$1.join(t,u.source)),null!=n&&(u.source=util$1.relative(n,u.source)),u.originalLine=r.line,u.originalColumn=r.column,null!=r.name&&(u.name=r.name))}const i=u.source;null==i||o.has(i)||o.add(i);const s=u.name;null==s||a.has(s)||a.add(s)}),this),this._sources=o,this._names=a,e.sources.forEach((function(u){const r=e.sourceContentFor(u);null!=r&&(null!=t&&(u=util$1.join(t,u)),null!=n&&(u=util$1.relative(n,u)),this.setSourceContent(u,r))}),this)}_validateMapping(e,u,t,r){if(u&&"number"!=typeof u.line&&"number"!=typeof u.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!u&&!t&&!r);else if(!(e&&"line"in e&&"column"in e&&u&&"line"in u&&"column"in u&&e.line>0&&e.column>=0&&u.line>0&&u.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:u,name:r}))}_serializeMappings(){let e,u,t,r,n=0,o=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let A=0,f=p.length;A0){if(!util$1.compareByGeneratedPositionsInflated(u,p[A-1]))continue;e+=","}e+=base64VLQ.encode(u.generatedColumn-n),n=u.generatedColumn,null!=u.source&&(r=this._sources.indexOf(u.source),e+=base64VLQ.encode(r-c),c=r,e+=base64VLQ.encode(u.originalLine-1-i),i=u.originalLine-1,e+=base64VLQ.encode(u.originalColumn-a),a=u.originalColumn,null!=u.name&&(t=this._names.indexOf(u.name),e+=base64VLQ.encode(t-s),s=t)),l+=e}return l}_generateSourcesContent(e,u){return e.map((function(e){if(!this._sourcesContents)return null;null!=u&&(e=util$1.relative(u,e));const t=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,u,t,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==u?null:u,this.source=null==t?null:t,this.name=null==n?null:n,this[isSourceNode]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(u,t,r){const n=new e,o=u.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;u--)this.prepend(e[u]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let u;for(let t=0,r=this.children.length;t0){for(u=[],t=0;t' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.prototype.sourceNode=function(e,u,t){var r=GrammarLocation$2.offsetStart(e);return new SourceNode$1(r.line,r.column?r.column-1:null,String(e.source),u,t)},e.prototype.push=function(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);var u=this.labels[this.sp],t=[this.name(this.sp)," = ",e,";"];if(u){if(this.sourceMapStack.length){var r=this.sourceNode(u.location,t.splice(0,2),u.label),n=this.sourceMapPopInternal(),o=n.parts,a=n.location,i=a.start.offsetu.end.offset&&(t[2]={start:u.end,end:t[2].end,source:t[2].source})}this.sourceMapStack.push([e,e.length,u])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop(),u=e[0],t=e[1],r=e[2],n=u.splice(t).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(n.length){var o=GrammarLocation$2.offsetStart(r);u.push(new SourceNode$1(o.line,o.column-1,String(r.source),n))}return{parts:u,location:r}},e.prototype.sourceMapPop=function(e){var u=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&u.end.offset>2],n+=u[(3&e[o])<<4|e[o+1]>>4],n+=u[(15&e[o+1])<<2|e[o+2]>>6],n+=u[63&e[o+2]];return 1===t?(n+=u[e[r]>>2],n+=u[(3&e[r])<<4],n+="=="):2===t&&(n+=u[e[r]>>2],n+=u[(3&e[r])<<4|e[r+1]>>4],n+=u[(15&e[r+1])<<2],n+="="),n}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var r,n=0,o=u.length;n0&&(t.forEach((function(e){o.push("var "+e+' = require("'+stringEscape(u.dependencies[e])+'");')})),o.push("")),o.push(e,"","module.exports = "+n()+";"),o},es:function(){var t=Object.keys(u.dependencies),n=r();return n.push(""),t.length>0&&(t.forEach((function(e){n.push("import "+e+' from "'+stringEscape(u.dependencies[e])+'";')})),n.push("")),n.push(e,"","export {"," peg$SyntaxError as SyntaxError,",u.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),n},amd:function(){var o=Object.keys(u.dependencies),a="["+o.map((function(e){return u.dependencies[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",i=o.join(", ");return __spreadArray$1(__spreadArray$1([],r(),!0),["define("+a+", function("+i+") {",' "use strict";',"",e,"",t("return "+n()+";"),"});"],!1)},globals:function(){return __spreadArray$1(__spreadArray$1([],r(),!0),["(function(root) {",' "use strict";',"",e,"",t("root."+u.exportVar+" = "+n()+";"),"})(this);"],!1)},umd:function(){var o=Object.keys(u.dependencies),a=o.map((function(e){return u.dependencies[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),c=o.join(", "),l=r();return l.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),null!==u.exportVar&&l.push(" } else {"," root."+u.exportVar+" = factory();"),l.push(" }","})(this, function("+c+") {",' "use strict";',"",e,"",t("return "+n()+";"),"});"),l}}[u.format]();return new SourceNode(null,null,u.grammarSource,o.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[];e.topLevelInitializer&&(c.push(s(e.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),u.trace&&c.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");var l="{ "+u.allowedStartRules.map((function(e){return e+": "+i(e)})).join(", ")+" }",p=i(u.allowedStartRules[0]);return c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+l+";"," var peg$startRuleFunction = "+p+";","",new SourceNode(null,null,u.grammarSource,[e.literals.map((function(e,u){return" var "+r(u)+' = "'+stringEscape(e)+'";'})).concat("",e.classes.map((function(e,u){return" var "+n(u)+" = /^["+((t=e).inverted?"^":"")+t.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(t.ignoreCase?"i":"")+";";var t}))).concat("",e.expectations.map((function(e,u){return" var "+o(u)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(e)+'"'})).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"}))).concat("").join("\n"),e.functions.map((function(e,u){return wrapInSourceNode("\n var ".concat(a(u)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),u.cache&&c.push(" var peg$resultsCache = {};",""),u.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((function(s){c.push.apply(c,t(function(s){var c=[],l=new Stack(s.name,"s","var",s.bytecode),p=function u(c){var p,A=0,f=c.length,E=[];function h(e,r){var n,o,a=r+3,i=c[A+a-2],s=c[A+a-1];l.checkedIf(A,(function(){A+=a,n=u(c.slice(A,A+i)),A+=i}),s>0?function(){o=u(c.slice(A,A+s)),A+=s}:null),E.push("if ("+e+") {"),E.push.apply(E,t(n)),s>0&&(E.push("} else {"),E.push.apply(E,t(o))),E.push("}")}function d(e){var r,n=c[A+2-1];l.checkedLoop(A,(function(){A+=2,r=u(c.slice(A,A+n)),A+=n})),E.push("while ("+e+") {"),E.push.apply(E,t(r)),E.push("}")}function C(){var e=c[A+4-1],u=a(c[A+1])+"("+c.slice(A+4,A+4+e).map((function(e){return l.index(e)})).join(", ")+")";l.pop(c[A+2]),E.push(l.push(u)),A+=4+e}for(;A peg$currPos",0);break;case op.MATCH_STRING:h(e.literals[c[A+1]].length>1?"input.substr(peg$currPos, "+e.literals[c[A+1]].length+") === "+r(c[A+1]):"input.charCodeAt(peg$currPos) === "+e.literals[c[A+1]].charCodeAt(0),1);break;case op.MATCH_STRING_IC:h("input.substr(peg$currPos, "+e.literals[c[A+1]].length+").toLowerCase() === "+r(c[A+1]),1);break;case op.MATCH_CHAR_CLASS:h(n(c[A+1])+".test(input.charAt(peg$currPos))",1);break;case op.ACCEPT_N:E.push(l.push(c[A+1]>1?"input.substr(peg$currPos, "+c[A+1]+")":"input.charAt(peg$currPos)")),E.push(c[A+1]>1?"peg$currPos += "+c[A+1]+";":"peg$currPos++;"),A+=2;break;case op.ACCEPT_STRING:E.push(l.push(r(c[A+1]))),E.push(e.literals[c[A+1]].length>1?"peg$currPos += "+e.literals[c[A+1]].length+";":"peg$currPos++;"),A+=2;break;case op.FAIL:E.push(l.push("peg$FAILED")),E.push("if (peg$silentFails === 0) { peg$fail("+o(c[A+1])+"); }"),A+=2;break;case op.LOAD_SAVED_POS:E.push("peg$savedPos = "+l.index(c[A+1])+";"),A+=2;break;case op.UPDATE_SAVED_POS:E.push("peg$savedPos = peg$currPos;"),A++;break;case op.CALL:C();break;case op.RULE:E.push(l.push(i(e.rules[c[A+1]].name)+"()")),A+=2;break;case op.SILENT_FAILS_ON:E.push("peg$silentFails++;"),A++;break;case op.SILENT_FAILS_OFF:E.push("peg$silentFails--;"),A++;break;case op.SOURCE_MAP_PUSH:l.sourceMapPush(E,e.locations[c[A+1]]),A+=2;break;case op.SOURCE_MAP_POP:l.sourceMapPop(),A++;break;case op.SOURCE_MAP_LABEL_PUSH:l.labels[c[A+1]]={label:e.literals[c[A+2]],location:e.locations[c[A+3]]},A+=4;break;case op.SOURCE_MAP_LABEL_POP:delete l.labels[c[A+1]],A+=2;break;default:throw new Error("Invalid opcode: "+c[A]+".",{rule:s.name,bytecode:c})}return E}(s.bytecode);return c.push(wrapInSourceNode("function ",i(s.name),s.nameLocation,"() {\n",s.name)),u.trace&&c.push(" var startPos = peg$currPos;"),c.push(t(l.defines())),c.push.apply(c,t(function(t,r){var n=[];return n.push(""),u.trace&&n.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)","});",""),u.cache&&(n.push("var key = peg$currPos * "+e.rules.length+" + "+r+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),u.trace&&n.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+t+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),n.push(" return cached.result;","}","")),n}('"'+stringEscape(s.name)+'"',asts$4.indexOfRule(e,s.name)))),c.push.apply(c,t(p)),c.push.apply(c,t(function(e,t){var r=[];return u.cache&&r.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+t+" };"),u.trace&&r.push("","if ("+t+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+t+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),r.push("","return "+t+";"),r}('"'+stringEscape(s.name)+'"',l.result()))),c.push("}"),c}(s))),c.push("")})),e.initializer&&(c.push(s(e.initializer)),c.push("")),c.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new SourceNode(null,null,u.grammarSource,c.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}())}var generateJs=generateJS$1,asts$3=asts_1,visitor$7=visitor_1;function removeProxyRules$1(e,u,t){var r=[];e.rules.forEach((function(n,o){var a;"rule"===(a=n).type&&"rule_ref"===a.expression.type&&(function(e,u,r){visitor$7.build({rule_ref:function(n){n.name===u&&(n.name=r,t.info('Proxy rule "'.concat(u,'" replaced by the rule "').concat(r,'"'),n.location,[{message:"This rule will be used",location:asts$3.findRule(e,r).nameLocation}]))}})(e)}(e,n.name,n.expression.name),-1===u.allowedStartRules.indexOf(n.name)&&r.push(o))})),r.reverse(),r.forEach((function(u){e.rules.splice(u,1)}))}var removeProxyRules_1=removeProxyRules$1,visitor$6=visitor_1;function reportDuplicateLabels$1(e,u,t){function r(e){var u={};return Object.keys(e).forEach((function(t){u[t]=e[t]})),u}function n(e,u){o(e.expression,r(u))}var o=visitor$6.build({rule:function(e){o(e.expression,{})},choice:function(e,u){e.alternatives.forEach((function(e){o(e,r(u))}))},action:n,labeled:function(e,u){var r=e.label;r&&Object.prototype.hasOwnProperty.call(u,r)&&t.error('Label "'.concat(e.label,'" is already defined'),e.labelLocation,[{message:"Original label location",location:u[r]}]),o(e.expression,u),u[e.label]=e.labelLocation},text:n,simple_and:n,simple_not:n,optional:n,zero_or_more:n,one_or_more:n,group:n});o(e)}var reportDuplicateLabels_1=reportDuplicateLabels$1,visitor$5=visitor_1;function reportDuplicateRules$1(e,u,t){var r={};visitor$5.build({rule:function(e){Object.prototype.hasOwnProperty.call(r,e.name)?t.error('Rule "'.concat(e.name,'" is already defined'),e.nameLocation,[{message:"Original rule location",location:r[e.name]}]):r[e.name]=e.nameLocation}})(e)}var reportDuplicateRules_1=reportDuplicateRules$1,asts$2=asts_1,visitor$4=visitor_1;function reportInfiniteRecursion$1(e,u,t){var r=[],n=[],o=visitor$4.build({rule:function(e){r.push(e.name),o(e.expression),r.pop()},sequence:function(u){u.elements.every((function(u){return o(u),!asts$2.alwaysConsumesOnSuccess(e,u)}))},rule_ref:function(u){n.push(u);var a=asts$2.findRule(e,u.name);if(-1!==r.indexOf(u.name))return r.push(u.name),void t.error("Possible infinite loop when parsing (left recursion: "+r.join(" -> ")+")",a.nameLocation,n.map((function(e,u,t){return{message:u+1!==t.length?"Step ".concat(u+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(u+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&o(a),n.pop()}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$1=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,u,t){visitor$3.build({zero_or_more:function(u){asts$1.alwaysConsumesOnSuccess(e,u.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",u.location)},one_or_more:function(u){asts$1.alwaysConsumesOnSuccess(e,u.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",u.location)}})(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,u,t){visitor$2.build({rule_ref:function(u){asts.findRule(e,u.name)||t.error('Rule "'.concat(u.name,'" is not defined'),u.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,u,t){var r=visitor$1.build({action:function(e){r(e.expression,e)},labeled:function(e,u){e.pick&&u&&t.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:u.codeLocation}]),r(e.expression)}});r(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var r,n=0,o=u.length;n0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(u){session.info("Process pass ".concat(e,".").concat(u.name)),u(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,u){function t(){this.constructor=e}t.prototype=u.prototype,e.prototype=new t}function peg$SyntaxError(e,u,t,r){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=u,n.found=t,n.location=r,n.name="SyntaxError",n}function peg$padEnd(e,u,t){return t=t||" ",e.length>u?e:(u-=e.length,e+(t+=t.repeat(u)).slice(0,u))}function peg$parse(e,u){var t,r={},n=(u=void 0!==u?u:{}).grammarSource,o={Grammar:Ot},a=Ot,i="{",s="}",c="=",l="/",p="@",A=":",f="$",E="&",h="!",d="?",C="*",g="+",m="(",F=")",_="\t",B="\v",v="\f",D=" ",S=" ",$="\ufeff",y="\n",b="\r\n",P="\r",x="\u2028",R="\u2029",O="/*",L="*/",T="//",w="_",M="\\",N="‌",I="‍",k="i",H='"',U="'",j="[",G="^",V="]",z="-",W="0",Y="b",J="f",Q="n",q="r",X="t",K="v",Z="x",ee="u",ue=".",te=";",re=/^[\n\r\u2028\u2029]/,ne=/^[0-9]/,oe=/^[0-9a-f]/i,ae=/^[{}]/,ie=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,se=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,ce=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,le=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,pe=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,Ae=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,fe=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,Ee=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,he=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,de=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Ce=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ge=$t("{",!1),me=$t("}",!1),Fe=$t("=",!1),_e=$t("/",!1),Be=$t("@",!1),ve=$t(":",!1),De=$t("$",!1),Se=$t("&",!1),$e=$t("!",!1),ye=$t("?",!1),be=$t("*",!1),Pe=$t("+",!1),xe=$t("(",!1),Re=$t(")",!1),Oe={type:"any"},Le=bt("whitespace"),Te=$t("\t",!1),we=$t("\v",!1),Me=$t("\f",!1),Ne=$t(" ",!1),Ie=$t(" ",!1),ke=$t("\ufeff",!1),He=yt(["\n","\r","\u2028","\u2029"],!1,!1),Ue=bt("end of line"),je=$t("\n",!1),Ge=$t("\r\n",!1),Ve=$t("\r",!1),ze=$t("\u2028",!1),We=$t("\u2029",!1),Ye=bt("comment"),Je=$t("/*",!1),Qe=$t("*/",!1),qe=$t("//",!1),Xe=bt("identifier"),Ke=$t("_",!1),Ze=$t("\\",!1),eu=$t("‌",!1),uu=$t("‍",!1),tu=bt("literal"),ru=$t("i",!1),nu=bt("string"),ou=$t('"',!1),au=$t("'",!1),iu=bt("character class"),su=$t("[",!1),cu=$t("^",!1),lu=$t("]",!1),pu=$t("-",!1),Au=$t("0",!1),fu=$t("b",!1),Eu=$t("f",!1),hu=$t("n",!1),du=$t("r",!1),Cu=$t("t",!1),gu=$t("v",!1),mu=$t("x",!1),Fu=$t("u",!1),_u=yt([["0","9"]],!1,!1),Bu=yt([["0","9"],["a","f"]],!1,!0),vu=$t(".",!1),Du=bt("code block"),Su=yt(["{","}"],!1,!1),$u=yt([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),yu=yt([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),bu=yt(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Pu=yt(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),xu=yt([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Ru=yt(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Ou=yt([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Lu=yt([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Tu=yt([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),wu=yt(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),Mu=yt([" "," "," ",[" "," "]," "," "," "],!1,!1),Nu=$t(";",!1),Iu=function(e,u,t){return{type:"grammar",topLevelInitializer:e,initializer:u,rules:t,location:Dt()}},ku=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Dt()}},Hu=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Dt()}},Uu=function(e,u,t){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==u?{type:"named",name:u,expression:t,location:Dt()}:t,location:Dt()}},ju=function(e,u){return u.length>0?{type:"choice",alternatives:[e].concat(u),location:Dt()}:e},Gu=function(e,u){return null!==u?{type:"action",expression:e,code:u[0],codeLocation:u[1],location:Dt()}:e},Vu=function(e,u){return u.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(u),location:Dt()}:e},zu=function(e,u,t){return t.type.startsWith("semantic_")&&St('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==u?u[0]:null,labelLocation:null!==u?u[1]:e,pick:!0,expression:t,location:Dt()}},Wu=function(e,u){return{type:"labeled",label:e[0],labelLocation:e[1],expression:u,location:Dt()}},Yu=function(){return Dt()},Ju=function(e){return Ar.indexOf(e[0])>=0&&St("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Qu=function(e,u){return{type:OPS_TO_PREFIXED_TYPES[e],expression:u,location:Dt()}},qu=function(e,u){return{type:OPS_TO_SUFFIXED_TYPES[u],expression:e,location:Dt()}},Xu=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Dt()}:e},Ku=function(e){return{type:"rule_ref",name:e[0],location:Dt()}},Zu=function(e,u){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:u[0],codeLocation:u[1],location:Dt()}},et=function(e,u){return[e+u.join(""),Dt()]},ut=function(e,u){return{type:"literal",value:e,ignoreCase:null!==u,location:Dt()}},tt=function(e){return e.join("")},rt=function(e){return e.join("")},nt=function(e,u,t){return{type:"class",parts:u.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==t,location:Dt()}},ot=function(u,t){return u.charCodeAt(0)>t.charCodeAt(0)&&St("Invalid character range: "+e.substring(mt,gt)+"."),[u,t]},at=function(){return""},it=function(){return"\0"},st=function(){return"\b"},ct=function(){return"\f"},lt=function(){return"\n"},pt=function(){return"\r"},At=function(){return"\t"},ft=function(){return"\v"},Et=function(e){return String.fromCharCode(parseInt(e,16))},ht=function(e){return String.fromCharCode(parseInt(e,16))},dt=function(){return{type:"any",location:Dt()}},Ct=function(e){return[e,Dt()]},gt=0,mt=0,Ft=[{line:1,column:1}],_t=0,Bt=[],vt=0;if("startRule"in u){if(!(u.startRule in o))throw new Error("Can't start parsing from rule \""+u.startRule+'".');a=o[u.startRule]}function Dt(){return xt(mt,gt)}function St(e,u){throw function(e,u){return new peg$SyntaxError(e,null,null,u)}(e,u=void 0!==u?u:xt(mt,gt))}function $t(e,u){return{type:"literal",text:e,ignoreCase:u}}function yt(e,u,t){return{type:"class",parts:e,inverted:u,ignoreCase:t}}function bt(e){return{type:"other",description:e}}function Pt(u){var t,r=Ft[u];if(r)return r;for(t=u-1;!Ft[t];)t--;for(r={line:(r=Ft[t]).line,column:r.column};t_t&&(_t=gt,Bt=[]),Bt.push(e))}function Ot(){var u,t,n,o,a,c;if(u=gt,lr(),t=gt,n=function(){var u,t,n,o;return u=gt,123===e.charCodeAt(gt)?(t=i,gt++):(t=r,0===vt&&Rt(ge)),t!==r&&(n=sr())!==r?(125===e.charCodeAt(gt)?(o=s,gt++):(o=r,0===vt&&Rt(me)),o!==r&&pr()!==r?(mt=u,u=ku(n)):(gt=u,u=r)):(gt=u,u=r),u}(),n!==r?(o=lr(),t=n):(gt=t,t=r),t===r&&(t=null),n=gt,o=function(){var e,u;return e=gt,(u=sr())!==r&&pr()!==r?(mt=e,e=Hu(u)):(gt=e,e=r),e}(),o!==r?(a=lr(),n=o):(gt=n,n=r),n===r&&(n=null),o=[],a=gt,(c=Lt())!==r?(lr(),a=c):(gt=a,a=r),a!==r)for(;a!==r;)o.push(a),a=gt,(c=Lt())!==r?(lr(),a=c):(gt=a,a=r);else o=r;return o!==r?(mt=u,u=Iu(t,n,o)):(gt=u,u=r),u}function Lt(){var u,t,n,o,a;return u=gt,(t=Jt())!==r?(lr(),n=gt,(o=Xt())!==r?(lr(),n=o):(gt=n,n=r),n===r&&(n=null),61===e.charCodeAt(gt)?(o=c,gt++):(o=r,0===vt&&Rt(Fe)),o!==r?(lr(),(a=Tt())!==r&&pr()!==r?(mt=u,u=Uu(t,n,a)):(gt=u,u=r)):(gt=u,u=r)):(gt=u,u=r),u}function Tt(){var u,t,n,o,a,i;if(u=gt,(t=wt())!==r){for(n=[],o=gt,lr(),47===e.charCodeAt(gt)?(a=l,gt++):(a=r,0===vt&&Rt(_e)),a!==r?(lr(),(i=wt())!==r?o=i:(gt=o,o=r)):(gt=o,o=r);o!==r;)n.push(o),o=gt,lr(),47===e.charCodeAt(gt)?(a=l,gt++):(a=r,0===vt&&Rt(_e)),a!==r?(lr(),(i=wt())!==r?o=i:(gt=o,o=r)):(gt=o,o=r);mt=u,u=ju(t,n)}else gt=u,u=r;return u}function wt(){var e,u,t,n;return e=gt,u=function(){var e,u,t,n,o;if(e=gt,(u=Mt())!==r){for(t=[],n=gt,lr(),(o=Mt())!==r?n=o:(gt=n,n=r);n!==r;)t.push(n),n=gt,lr(),(o=Mt())!==r?n=o:(gt=n,n=r);mt=e,e=Vu(u,t)}else gt=e,e=r;return e}(),u!==r?(t=gt,lr(),(n=sr())!==r?t=n:(gt=t,t=r),t===r&&(t=null),mt=e,e=Gu(u,t)):(gt=e,e=r),e}function Mt(){var u,t,n,o;return u=gt,t=function(){var u,t;return u=gt,64===e.charCodeAt(gt)?(t=p,gt++):(t=r,0===vt&&Rt(Be)),t!==r&&(mt=u,t=Yu()),u=t}(),t!==r?((n=Nt())===r&&(n=null),(o=It())!==r?(mt=u,u=zu(t,n,o)):(gt=u,u=r)):(gt=u,u=r),u===r&&(u=gt,(t=Nt())!==r?(n=lr(),(o=It())!==r?(mt=u,u=Wu(t,o)):(gt=u,u=r)):(gt=u,u=r),u===r&&(u=It())),u}function Nt(){var u,t,n;return u=gt,(t=Jt())!==r?(lr(),58===e.charCodeAt(gt)?(n=A,gt++):(n=r,0===vt&&Rt(ve)),n!==r?(mt=u,u=Ju(t)):(gt=u,u=r)):(gt=u,u=r),u}function It(){var u,t,n;return u=gt,t=function(){var u;return 36===e.charCodeAt(gt)?(u=f,gt++):(u=r,0===vt&&Rt(De)),u===r&&(38===e.charCodeAt(gt)?(u=E,gt++):(u=r,0===vt&&Rt(Se)),u===r&&(33===e.charCodeAt(gt)?(u=h,gt++):(u=r,0===vt&&Rt($e)))),u}(),t!==r?(lr(),(n=kt())!==r?(mt=u,u=Qu(t,n)):(gt=u,u=r)):(gt=u,u=r),u===r&&(u=kt()),u}function kt(){var u,t,n;return u=gt,(t=Ht())!==r?(lr(),n=function(){var u;return 63===e.charCodeAt(gt)?(u=d,gt++):(u=r,0===vt&&Rt(ye)),u===r&&(42===e.charCodeAt(gt)?(u=C,gt++):(u=r,0===vt&&Rt(be)),u===r&&(43===e.charCodeAt(gt)?(u=g,gt++):(u=r,0===vt&&Rt(Pe)))),u}(),n!==r?(mt=u,u=qu(t,n)):(gt=u,u=r)):(gt=u,u=r),u===r&&(u=Ht()),u}function Ht(){var u,t,n,o;return u=function(){var u,t,n;return vt++,u=gt,(t=Xt())!==r?(105===e.charCodeAt(gt)?(n=k,gt++):(n=r,0===vt&&Rt(ru)),n===r&&(n=null),mt=u,u=ut(t,n)):(gt=u,u=r),vt--,u===r&&(t=r,0===vt&&Rt(tu)),u}(),u===r&&(u=function(){var u,t,n,o,a,i;if(vt++,u=gt,91===e.charCodeAt(gt)?(t=j,gt++):(t=r,0===vt&&Rt(su)),t!==r){for(94===e.charCodeAt(gt)?(n=G,gt++):(n=r,0===vt&&Rt(cu)),n===r&&(n=null),o=[],(a=er())===r&&(a=ur());a!==r;)o.push(a),(a=er())===r&&(a=ur());93===e.charCodeAt(gt)?(a=V,gt++):(a=r,0===vt&&Rt(lu)),a!==r?(105===e.charCodeAt(gt)?(i=k,gt++):(i=r,0===vt&&Rt(ru)),i===r&&(i=null),mt=u,u=nt(n,o,i)):(gt=u,u=r)}else gt=u,u=r;return vt--,u===r&&(t=r,0===vt&&Rt(iu)),u}(),u===r&&(u=function(){var u,t;return u=gt,46===e.charCodeAt(gt)?(t=ue,gt++):(t=r,0===vt&&Rt(vu)),t!==r&&(mt=u,t=dt()),u=t}(),u===r&&(u=function(){var u,t,n,o,a,i,s;return u=gt,(t=Jt())!==r?(n=gt,vt++,o=gt,a=lr(),i=gt,(s=Xt())!==r?i=s=[s,lr()]:(gt=i,i=r),i===r&&(i=null),61===e.charCodeAt(gt)?(s=c,gt++):(s=r,0===vt&&Rt(Fe)),s!==r?o=a=[a,i,s]:(gt=o,o=r),vt--,o===r?n=void 0:(gt=n,n=r),n!==r?(mt=u,u=Ku(t)):(gt=u,u=r)):(gt=u,u=r),u}(),u===r&&(u=function(){var u,t,n;return u=gt,t=function(){var u;return 38===e.charCodeAt(gt)?(u=E,gt++):(u=r,0===vt&&Rt(Se)),u===r&&(33===e.charCodeAt(gt)?(u=h,gt++):(u=r,0===vt&&Rt($e))),u}(),t!==r?(lr(),(n=sr())!==r?(mt=u,u=Zu(t,n)):(gt=u,u=r)):(gt=u,u=r),u}(),u===r&&(u=gt,40===e.charCodeAt(gt)?(t=m,gt++):(t=r,0===vt&&Rt(xe)),t!==r?(lr(),(n=Tt())!==r?(lr(),41===e.charCodeAt(gt)?(o=F,gt++):(o=r,0===vt&&Rt(Re)),o!==r?(mt=u,u=Xu(n)):(gt=u,u=r)):(gt=u,u=r)):(gt=u,u=r)))))),u}function Ut(){var u;return e.length>gt?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Oe)),u}function jt(){var u;return vt++,9===e.charCodeAt(gt)?(u=_,gt++):(u=r,0===vt&&Rt(Te)),u===r&&(11===e.charCodeAt(gt)?(u=B,gt++):(u=r,0===vt&&Rt(we)),u===r&&(12===e.charCodeAt(gt)?(u=v,gt++):(u=r,0===vt&&Rt(Me)),u===r&&(32===e.charCodeAt(gt)?(u=D,gt++):(u=r,0===vt&&Rt(Ne)),u===r&&(160===e.charCodeAt(gt)?(u=S,gt++):(u=r,0===vt&&Rt(Ie)),u===r&&(65279===e.charCodeAt(gt)?(u=$,gt++):(u=r,0===vt&&Rt(ke)),u===r&&(u=function(){var u;return Ce.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Mu)),u}())))))),vt--,u===r&&0===vt&&Rt(Le),u}function Gt(){var u;return re.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(He)),u}function Vt(){var u;return vt++,10===e.charCodeAt(gt)?(u=y,gt++):(u=r,0===vt&&Rt(je)),u===r&&(e.substr(gt,2)===b?(u=b,gt+=2):(u=r,0===vt&&Rt(Ge)),u===r&&(13===e.charCodeAt(gt)?(u=P,gt++):(u=r,0===vt&&Rt(Ve)),u===r&&(8232===e.charCodeAt(gt)?(u=x,gt++):(u=r,0===vt&&Rt(ze)),u===r&&(8233===e.charCodeAt(gt)?(u=R,gt++):(u=r,0===vt&&Rt(We)))))),vt--,u===r&&0===vt&&Rt(Ue),u}function zt(){var u;return vt++,(u=function(){var u,t,n,o,a,i;if(u=gt,e.substr(gt,2)===O?(t=O,gt+=2):(t=r,0===vt&&Rt(Je)),t!==r){for(n=[],o=gt,a=gt,vt++,e.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===vt&&Rt(Qe)),vt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ut())!==r?o=a=[a,i]:(gt=o,o=r);o!==r;)n.push(o),o=gt,a=gt,vt++,e.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===vt&&Rt(Qe)),vt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ut())!==r?o=a=[a,i]:(gt=o,o=r);e.substr(gt,2)===L?(o=L,gt+=2):(o=r,0===vt&&Rt(Qe)),o!==r?u=t=[t,n,o]:(gt=u,u=r)}else gt=u,u=r;return u}())===r&&(u=Yt()),vt--,u===r&&0===vt&&Rt(Ye),u}function Wt(){var u,t,n,o,a,i;if(u=gt,e.substr(gt,2)===O?(t=O,gt+=2):(t=r,0===vt&&Rt(Je)),t!==r){for(n=[],o=gt,a=gt,vt++,e.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===vt&&Rt(Qe)),i===r&&(i=Gt()),vt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ut())!==r?o=a=[a,i]:(gt=o,o=r);o!==r;)n.push(o),o=gt,a=gt,vt++,e.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===vt&&Rt(Qe)),i===r&&(i=Gt()),vt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ut())!==r?o=a=[a,i]:(gt=o,o=r);e.substr(gt,2)===L?(o=L,gt+=2):(o=r,0===vt&&Rt(Qe)),o!==r?u=t=[t,n,o]:(gt=u,u=r)}else gt=u,u=r;return u}function Yt(){var u,t,n,o,a,i;if(u=gt,e.substr(gt,2)===T?(t=T,gt+=2):(t=r,0===vt&&Rt(qe)),t!==r){for(n=[],o=gt,a=gt,vt++,i=Gt(),vt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ut())!==r?o=a=[a,i]:(gt=o,o=r);o!==r;)n.push(o),o=gt,a=gt,vt++,i=Gt(),vt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ut())!==r?o=a=[a,i]:(gt=o,o=r);u=t=[t,n]}else gt=u,u=r;return u}function Jt(){var e,u,t,n;if(vt++,e=gt,(u=Qt())!==r){for(t=[],n=qt();n!==r;)t.push(n),n=qt();mt=e,e=et(u,t)}else gt=e,e=r;return vt--,e===r&&(u=r,0===vt&&Rt(Xe)),e}function Qt(){var u,t,n;return(u=function(){var u;return(u=function(){var u;return pe.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(xu)),u}())===r&&(u=function(){var u;return ie.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt($u)),u}())===r&&(u=function(){var u;return le.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Pu)),u}())===r&&(u=function(){var u;return se.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(yu)),u}())===r&&(u=function(){var u;return ce.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(bu)),u}())===r&&(u=function(){var u;return he.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Tu)),u}()),u}())===r&&(36===e.charCodeAt(gt)?(u=f,gt++):(u=r,0===vt&&Rt(De)),u===r&&(95===e.charCodeAt(gt)?(u=w,gt++):(u=r,0===vt&&Rt(Ke)),u===r&&(u=gt,92===e.charCodeAt(gt)?(t=M,gt++):(t=r,0===vt&&Rt(Ze)),t!==r&&(n=or())!==r?u=n:(gt=u,u=r)))),u}function qt(){var u;return(u=Qt())===r&&(u=function(){var u;return(u=function(){var u;return fe.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Ou)),u}())===r&&(u=function(){var u;return Ae.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Ru)),u}()),u}())===r&&(u=function(){var u;return Ee.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Lu)),u}())===r&&(u=function(){var u;return de.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(wu)),u}())===r&&(8204===e.charCodeAt(gt)?(u=N,gt++):(u=r,0===vt&&Rt(eu)),u===r&&(8205===e.charCodeAt(gt)?(u=I,gt++):(u=r,0===vt&&Rt(uu)))),u}function Xt(){var u,t,n,o;if(vt++,u=gt,34===e.charCodeAt(gt)?(t=H,gt++):(t=r,0===vt&&Rt(ou)),t!==r){for(n=[],o=Kt();o!==r;)n.push(o),o=Kt();34===e.charCodeAt(gt)?(o=H,gt++):(o=r,0===vt&&Rt(ou)),o!==r?(mt=u,u=tt(n)):(gt=u,u=r)}else gt=u,u=r;if(u===r)if(u=gt,39===e.charCodeAt(gt)?(t=U,gt++):(t=r,0===vt&&Rt(au)),t!==r){for(n=[],o=Zt();o!==r;)n.push(o),o=Zt();39===e.charCodeAt(gt)?(o=U,gt++):(o=r,0===vt&&Rt(au)),o!==r?(mt=u,u=rt(n)):(gt=u,u=r)}else gt=u,u=r;return vt--,u===r&&(t=r,0===vt&&Rt(nu)),u}function Kt(){var u,t,n,o;return u=gt,t=gt,n=gt,vt++,34===e.charCodeAt(gt)?(o=H,gt++):(o=r,0===vt&&Rt(ou)),o===r&&(92===e.charCodeAt(gt)?(o=M,gt++):(o=r,0===vt&&Rt(Ze)),o===r&&(o=Gt())),vt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ut())!==r?t=n=[n,o]:(gt=t,t=r),(u=t!==r?e.substring(u,gt):t)===r&&(u=gt,92===e.charCodeAt(gt)?(t=M,gt++):(t=r,0===vt&&Rt(Ze)),t!==r&&(n=rr())!==r?u=n:(gt=u,u=r),u===r&&(u=tr())),u}function Zt(){var u,t,n,o;return u=gt,t=gt,n=gt,vt++,39===e.charCodeAt(gt)?(o=U,gt++):(o=r,0===vt&&Rt(au)),o===r&&(92===e.charCodeAt(gt)?(o=M,gt++):(o=r,0===vt&&Rt(Ze)),o===r&&(o=Gt())),vt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ut())!==r?t=n=[n,o]:(gt=t,t=r),(u=t!==r?e.substring(u,gt):t)===r&&(u=gt,92===e.charCodeAt(gt)?(t=M,gt++):(t=r,0===vt&&Rt(Ze)),t!==r&&(n=rr())!==r?u=n:(gt=u,u=r),u===r&&(u=tr())),u}function er(){var u,t,n,o;return u=gt,(t=ur())!==r?(45===e.charCodeAt(gt)?(n=z,gt++):(n=r,0===vt&&Rt(pu)),n!==r&&(o=ur())!==r?(mt=u,u=ot(t,o)):(gt=u,u=r)):(gt=u,u=r),u}function ur(){var u,t,n,o;return u=gt,t=gt,n=gt,vt++,93===e.charCodeAt(gt)?(o=V,gt++):(o=r,0===vt&&Rt(lu)),o===r&&(92===e.charCodeAt(gt)?(o=M,gt++):(o=r,0===vt&&Rt(Ze)),o===r&&(o=Gt())),vt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ut())!==r?t=n=[n,o]:(gt=t,t=r),(u=t!==r?e.substring(u,gt):t)===r&&(u=gt,92===e.charCodeAt(gt)?(t=M,gt++):(t=r,0===vt&&Rt(Ze)),t!==r&&(n=rr())!==r?u=n:(gt=u,u=r),u===r&&(u=tr())),u}function tr(){var u,t;return u=gt,92===e.charCodeAt(gt)?(t=M,gt++):(t=r,0===vt&&Rt(Ze)),t!==r&&Vt()!==r?(mt=u,u=at()):(gt=u,u=r),u}function rr(){var u,t,n,o;return u=function(){var u;return(u=nr())===r&&(u=function(){var u,t,n,o;return u=gt,t=gt,n=gt,vt++,o=function(){var u;return(u=nr())===r&&(u=ar())===r&&(120===e.charCodeAt(gt)?(u=Z,gt++):(u=r,0===vt&&Rt(mu)),u===r&&(117===e.charCodeAt(gt)?(u=ee,gt++):(u=r,0===vt&&Rt(Fu)))),u}(),o===r&&(o=Gt()),vt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ut())!==r?t=n=[n,o]:(gt=t,t=r),u=t!==r?e.substring(u,gt):t}()),u}(),u===r&&(u=gt,48===e.charCodeAt(gt)?(t=W,gt++):(t=r,0===vt&&Rt(Au)),t!==r?(n=gt,vt++,o=ar(),vt--,o===r?n=void 0:(gt=n,n=r),n!==r?(mt=u,u=it()):(gt=u,u=r)):(gt=u,u=r),u===r&&(u=function(){var u,t,n,o,a,i;return u=gt,120===e.charCodeAt(gt)?(t=Z,gt++):(t=r,0===vt&&Rt(mu)),t!==r?(n=gt,o=gt,(a=ir())!==r&&(i=ir())!==r?o=a=[a,i]:(gt=o,o=r),(n=o!==r?e.substring(n,gt):o)!==r?(mt=u,u=Et(n)):(gt=u,u=r)):(gt=u,u=r),u}(),u===r&&(u=or()))),u}function nr(){var u,t;return 39===e.charCodeAt(gt)?(u=U,gt++):(u=r,0===vt&&Rt(au)),u===r&&(34===e.charCodeAt(gt)?(u=H,gt++):(u=r,0===vt&&Rt(ou)),u===r&&(92===e.charCodeAt(gt)?(u=M,gt++):(u=r,0===vt&&Rt(Ze)),u===r&&(u=gt,98===e.charCodeAt(gt)?(t=Y,gt++):(t=r,0===vt&&Rt(fu)),t!==r&&(mt=u,t=st()),(u=t)===r&&(u=gt,102===e.charCodeAt(gt)?(t=J,gt++):(t=r,0===vt&&Rt(Eu)),t!==r&&(mt=u,t=ct()),(u=t)===r&&(u=gt,110===e.charCodeAt(gt)?(t=Q,gt++):(t=r,0===vt&&Rt(hu)),t!==r&&(mt=u,t=lt()),(u=t)===r&&(u=gt,114===e.charCodeAt(gt)?(t=q,gt++):(t=r,0===vt&&Rt(du)),t!==r&&(mt=u,t=pt()),(u=t)===r&&(u=gt,116===e.charCodeAt(gt)?(t=X,gt++):(t=r,0===vt&&Rt(Cu)),t!==r&&(mt=u,t=At()),(u=t)===r&&(u=gt,118===e.charCodeAt(gt)?(t=K,gt++):(t=r,0===vt&&Rt(gu)),t!==r&&(mt=u,t=ft()),u=t)))))))),u}function or(){var u,t,n,o,a,i,s,c;return u=gt,117===e.charCodeAt(gt)?(t=ee,gt++):(t=r,0===vt&&Rt(Fu)),t!==r?(n=gt,o=gt,(a=ir())!==r&&(i=ir())!==r&&(s=ir())!==r&&(c=ir())!==r?o=a=[a,i,s,c]:(gt=o,o=r),(n=o!==r?e.substring(n,gt):o)!==r?(mt=u,u=ht(n)):(gt=u,u=r)):(gt=u,u=r),u}function ar(){var u;return ne.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(_u)),u}function ir(){var u;return oe.test(e.charAt(gt))?(u=e.charAt(gt),gt++):(u=r,0===vt&&Rt(Bu)),u}function sr(){var u,t,n,o;return vt++,u=gt,123===e.charCodeAt(gt)?(t=i,gt++):(t=r,0===vt&&Rt(ge)),t!==r?(n=function(){var e,u;return e=gt,u=cr(),mt=e,e=u=Ct(u)}(),125===e.charCodeAt(gt)?(o=s,gt++):(o=r,0===vt&&Rt(me)),o!==r?u=n:(gt=u,u=r)):(gt=u,u=r),vt--,u===r&&(t=r,0===vt&&Rt(Du)),u}function cr(){var u,t,n,o,a,c;if(u=gt,t=[],n=[],o=gt,a=gt,vt++,ae.test(e.charAt(gt))?(c=e.charAt(gt),gt++):(c=r,0===vt&&Rt(Su)),vt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ut())!==r?o=a=[a,c]:(gt=o,o=r),o!==r)for(;o!==r;)n.push(o),o=gt,a=gt,vt++,ae.test(e.charAt(gt))?(c=e.charAt(gt),gt++):(c=r,0===vt&&Rt(Su)),vt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ut())!==r?o=a=[a,c]:(gt=o,o=r);else n=r;for(n===r&&(n=gt,123===e.charCodeAt(gt)?(o=i,gt++):(o=r,0===vt&&Rt(ge)),o!==r?(a=cr(),125===e.charCodeAt(gt)?(c=s,gt++):(c=r,0===vt&&Rt(me)),c!==r?n=o=[o,a,c]:(gt=n,n=r)):(gt=n,n=r));n!==r;){if(t.push(n),n=[],o=gt,a=gt,vt++,ae.test(e.charAt(gt))?(c=e.charAt(gt),gt++):(c=r,0===vt&&Rt(Su)),vt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ut())!==r?o=a=[a,c]:(gt=o,o=r),o!==r)for(;o!==r;)n.push(o),o=gt,a=gt,vt++,ae.test(e.charAt(gt))?(c=e.charAt(gt),gt++):(c=r,0===vt&&Rt(Su)),vt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ut())!==r?o=a=[a,c]:(gt=o,o=r);else n=r;n===r&&(n=gt,123===e.charCodeAt(gt)?(o=i,gt++):(o=r,0===vt&&Rt(ge)),o!==r?(a=cr(),125===e.charCodeAt(gt)?(c=s,gt++):(c=r,0===vt&&Rt(me)),c!==r?n=o=[o,a,c]:(gt=n,n=r)):(gt=n,n=r))}return e.substring(u,gt)}function lr(){var e,u;for(e=[],(u=jt())===r&&(u=Vt())===r&&(u=zt());u!==r;)e.push(u),(u=jt())===r&&(u=Vt())===r&&(u=zt());return e}function pr(){var u,t,n,o;return u=gt,t=lr(),59===e.charCodeAt(gt)?(n=te,gt++):(n=r,0===vt&&Rt(Nu)),n!==r?u=t=[t,n]:(gt=u,u=r),u===r&&(u=gt,t=function(){var e,u;for(e=[],(u=jt())===r&&(u=Wt());u!==r;)e.push(u),(u=jt())===r&&(u=Wt());return e}(),(n=Yt())===r&&(n=null),(o=Vt())!==r?u=t=[t,n,o]:(gt=u,u=r),u===r&&(u=gt,t=lr(),n=function(){var u,t;return u=gt,vt++,e.length>gt?(t=e.charAt(gt),gt++):(t=r,0===vt&&Rt(Oe)),vt--,t===r?u=void 0:(gt=u,u=r),u}(),n!==r?u=t=[t,n]:(gt=u,u=r))),u}var Ar=u.reservedWords||[];if((t=a())!==r&>===e.length)return t;throw t!==r&>0){for(u=1,t=1;u0&&(this.functions.shift()(),setTimeout((function(){n.run()}),0))}},o={};n.add((function(){r.start(),o.totalInputSize=0,o.totalParseTime=0})),e.forEach((function(e){n.add(function(e){return function(){r.benchmarkStart(e),o.parser=peg.generate(r.readFile("../examples/"+e.id+".pegjs"),t),o.benchmarkInputSize=0,o.benchmarkParseTime=0}}(e)),e.tests.forEach((function(t){n.add(function(e,t){return function(){r.testStart(e,t);for(var n=r.readFile(e.id+"/"+t.file),a=0,i=0;i\n \n ").concat(null!==r?"":"","\n ").concat(t,"\n ").concat(null!==r?"":"","\n \n \n \n ").concat((n/1024).toFixed(2),"\n \n  kB\n \n \n \n ").concat(o.toFixed(2),"\n \n  ms\n \n \n \n ").concat((n/1024/(o/1e3)).toFixed(2),"\n \n  kB/s\n \n \n "))}var t=parseInt($("#run-count").val(),10),r={cache:$("#cache").is(":checked")};isNaN(t)||t<=0?alert("Number of runs must be a positive integer."):Runner.run(benchmarks,t,r,{readFile:function(e){return $.ajax({type:"GET",url:"https://raw.githubusercontent.com/peggyjs/peggy/".concat(BRANCH,"/benchmark/").concat(e),dataType:"text",async:!1}).responseText},testStart:function(){},testFinish:function(e,t,r,n){u("individual",t.title,"https://github.com/peggyjs/peggy/blob/".concat(BRANCH,"/benchmark/").concat(e.id,"/").concat(t.file),r,n)},benchmarkStart:function(u){e.append("\n \n \n ").concat(u.title,' \n \n "\n '))},benchmarkFinish:function(e,t,r){u("benchmark-total",e.title+" total",null,t,r)},start:function(){$("#run-count, #cache, #run").attr("disabled","disabled"),e.show(),$("#results-table tr").slice(1).remove()},finish:function(e,t){u("total","Total",null,e,t),$.scrollTo("max",{axis:"y",duration:500}),$("#run-count, #cache, #run").removeAttr("disabled")}})})),$(document).ready((function(){return $("#run").focus()})),browser_stub})); \ No newline at end of file +!function(e,u){"object"==typeof exports&&"undefined"!=typeof module?module.exports=u():"function"==typeof define&&define.amd?define(u):(e="undefined"!=typeof globalThis?globalThis:e||self).browser=u()}(this,(function(){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},browser_stub={},GrammarLocation$4=function(){function e(e,u){this.source=e,this.start=u}return e.prototype.toString=function(){return String(this.source)},e.prototype.offset=function(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}},e.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},e.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},e}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,u){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var t in u)Object.prototype.hasOwnProperty.call(u,t)&&(e[t]=u[t])},extendStatics(e,u)},function(e,u){if("function"!=typeof u&&null!==u)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function t(){this.constructor=e}extendStatics(e,u),e.prototype=null===u?Object.create(u):(t.prototype=u.prototype,new t)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,u){e.__proto__=u}||function(e,u){for(var t in u)Object.prototype.hasOwnProperty.call(u,t)&&(e[t]=u[t])},GrammarError$3=function(e){function u(t,n,r){var o=e.call(this,t)||this;return setProtoOf(o,u.prototype),o.name="GrammarError",o.location=n,void 0===r&&(r=[]),o.diagnostics=r,o.stage=null,o.problems=[["error",t,n,r]],o}return __extends(u,e),u.prototype.toString=function(){var u=e.prototype.toString.call(this);this.location&&(u+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(u+="".concat(this.location.source,":")),u+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var t=0,n=this.diagnostics;t1&&e.delimiter&&r(e.delimiter)))},semantic_and:n,semantic_not:n,rule_ref:function(u){var t=asts$7.findRule(e,u.name);return t?r(t):void 0},literal:function(e){return""!==e.value},class:t,any:t});return r(u)}},asts_1=asts$7,opcodes={PUSH:0,PUSH_EMPTY_STRING:35,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:36,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,IF_LT:30,IF_GE:31,IF_LT_DYNAMIC:32,IF_GE_DYNAMIC:33,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CHAR_CLASS:20,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,SOURCE_MAP_PUSH:37,SOURCE_MAP_POP:38,SOURCE_MAP_LABEL_PUSH:39,SOURCE_MAP_LABEL_POP:40},opcodes_1=opcodes,visitor$9=visitor_1,asts$6=asts_1,GrammarError$2=grammarError,ALWAYS_MATCH$1=1,SOMETIMES_MATCH$1=0,NEVER_MATCH$1=-1;function inferenceMatchResult$1(e){function u(e){return e.match=SOMETIMES_MATCH$1}function t(e){return o(e.expression),e.match=ALWAYS_MATCH$1}function n(e){return e.match=o(e.expression)}function r(e,u){for(var t=e.length,n=0,r=0,a=0;a0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$9.build({rule:function(e){var u,t=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(u=e.match,e.match=o(e.expression),++t>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(u!==e.match)}return e.match},named:n,choice:function(e){return e.match=r(e.alternatives,!0)},action:n,sequence:function(e){return e.match=r(e.elements,!1)},labeled:n,text:n,simple_and:n,simple_not:function(e){return e.match=-o(e.expression)},optional:t,zero_or_more:t,one_or_more:n,repeated:function(e){var u=o(e.expression),t=e.delimiter?o(e.delimiter):NEVER_MATCH$1,n=e.min?e.min:e.max;return"constant"!==n.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&n.value>e.max.value?e.match=NEVER_MATCH$1:u===NEVER_MATCH$1?e.match=0===n.value?ALWAYS_MATCH$1:NEVER_MATCH$1:u===ALWAYS_MATCH$1?e.delimiter&&n.value>=2?e.match=t:e.match=ALWAYS_MATCH$1:e.delimiter&&n.value>=2?e.match=t===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===n.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:n,semantic_and:u,semantic_not:u,rule_ref:function(u){var t=asts$6.findRule(e,u.name);return u.match=o(t)},literal:function(e){var u=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=u},class:function(e){var u=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=u},any:u});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var n,r=0,o=u.length;r1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],A([op$1.POP],e(u.slice(1),t)),[]):[])}(e.alternatives,u)},action:function(e,u){var t=p(u.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,r=_(e.expression,{sp:u.sp+(n?1:0),env:t,action:e}),o=0|e.expression.match,a=n&&o!==NEVER_MATCH?c(!1,Object.keys(t),e):null;return n?A([op$1.PUSH_CURR_POS],r,f(o,[op$1.IF_NOT_ERROR],A([op$1.LOAD_SAVED_POS,1],E(a,1,t,u.sp+2)),[]),[op$1.NIP]):r},sequence:function(e,u){return A([op$1.PUSH_CURR_POS],function u(t,n){if(t.length>0){var r=e.elements.length-t.length+1;return A(_(t[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),f(0|t[0].match,[op$1.IF_NOT_ERROR],u(t.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),A(r>1?[op$1.POP_N,r]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(n.pluck.length>0)return A([op$1.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((function(e){return n.sp-e})));if(n.action){var o=c(!1,Object.keys(n.env),n.action);return A([op$1.LOAD_SAVED_POS,e.elements.length],E(o,e.elements.length+1,n.env,n.sp))}return A([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:u.sp+1,env:u.env,pluck:[],action:u.action}))},labeled:function(e,t){var n=t.env,r=e.label,o=t.sp+1;r&&(n=p(t.env),t.env[e.label]=o),e.pick&&t.pluck.push(o);var a=_(e.expression,{sp:t.sp,env:n,action:null});return r&&e.labelLocation&&u&&"source-and-map"===u.output?A([op$1.SOURCE_MAP_LABEL_PUSH,o,i(r),l(e.labelLocation)],a,[op$1.SOURCE_MAP_LABEL_POP,o]):a},text:function(e,u){return A([op$1.PUSH_CURR_POS],_(e.expression,{sp:u.sp+1,env:p(u.env),action:null}),f(0|e.match,[op$1.IF_NOT_ERROR],A([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,u){return h(e.expression,!1,u)},simple_not:function(e,u){return h(e.expression,!0,u)},optional:function(e,u){return A(_(e.expression,{sp:u.sp,env:p(u.env),action:null}),f(-(0|e.expression.match),[op$1.IF_ERROR],A([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,u){var t=_(e.expression,{sp:u.sp+1,env:p(u.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,C(t),[op$1.POP])},one_or_more:function(e,u){var t=_(e.expression,{sp:u.sp+1,env:p(u.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,f(0|e.expression.match,[op$1.IF_NOT_ERROR],A(C(t),[op$1.POP]),A([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,u){var t=e.min?e.min:e.max,n="constant"!==t.type||t.value>0,r="constant"!==e.max.type&&null!==e.max.value,o=n?2:1,a=e.min?g(e.min,u.env,u.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:u.sp},i=g(e.max,u.env,a.sp,o),s=_(e.expression,{sp:i.sp+o,env:p(u.env),action:null}),c=function(e,u,t,n,r){return e?A([op$1.PUSH_CURR_POS],_(e,{sp:n.sp+r+1,env:p(n.env),action:null}),f(0|e.match,[op$1.IF_NOT_ERROR],A([op$1.POP],t,f(-u,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):t}(e.delimiter,0|e.expression.match,s,u,o),l=m(c,e.max),E=r?m(s,e.max):s,h=A(n?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],E,C(l),[op$1.POP]);return A(a.pre,i.pre,n?function(e,u){var t="constant"===u.type?[op$1.IF_LT,u.value]:[op$1.IF_LT_DYNAMIC,u.sp];return A(e,f(SOMETIMES_MATCH,t,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(h,t):h,i.post,a.post)},group:function(e,u){return _(e.expression,{sp:u.sp,env:p(u.env),action:null})},semantic_and:function(e,u){return d(e,!1,u)},semantic_not:function(e,u){return d(e,!0,u)},rule_ref:function(u){return[op$1.RULE,asts$5.indexOfRule(e,u.name)]},literal:function(e){if(e.value.length>0){var u=0|e.match,t=u===SOMETIMES_MATCH||u===ALWAYS_MATCH&&!e.ignoreCase?i(e.ignoreCase?e.value.toLowerCase():e.value):null,n=u!==ALWAYS_MATCH?s({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return f(u,e.ignoreCase?[op$1.MATCH_STRING_IC,t]:[op$1.MATCH_STRING,t],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,t],[op$1.FAIL,n])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var u=0|e.match,t=u===SOMETIMES_MATCH?function(e){var u={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},t=JSON.stringify(u),r=n.findIndex((function(e){return JSON.stringify(e)===t}));return-1===r?n.push(u)-1:r}(e):null,r=u!==ALWAYS_MATCH?s({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return f(u,[op$1.MATCH_CHAR_CLASS,t],[op$1.ACCEPT_N,1],[op$1.FAIL,r])},any:function(e){var u=0|e.match,t=u!==ALWAYS_MATCH?s({type:"any"}):null;return f(u,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,t])}},u&&"source-and-map"===u.output&&Object.entries(F).forEach((function(e){var u=e[0],t=e[1];F[u]=function(e){for(var u=[],n=1;n>>=VLQ_BASE_SHIFT,n>0&&(u|=VLQ_CONTINUATION_BIT),t+=base64$2.encode(u)}while(n>0);return t};var util$3={};function getArg(e,u,t){if(u in e)return e[u];if(3===arguments.length)return t;throw new Error('"'+u+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;const u=e.length;if(u<9)return!1;if(95!==e.charCodeAt(u-1)||95!==e.charCodeAt(u-2)||111!==e.charCodeAt(u-3)||116!==e.charCodeAt(u-4)||111!==e.charCodeAt(u-5)||114!==e.charCodeAt(u-6)||112!==e.charCodeAt(u-7)||95!==e.charCodeAt(u-8)||95!==e.charCodeAt(u-9))return!1;for(let t=u-10;t>=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function strcmp(e,u){return e===u?0:null===e?1:null===u?-1:e>u?1:-1}function compareByGeneratedPositionsInflated(e,u){let t=e.generatedLine-u.generatedLine;return 0!==t?t:(t=e.generatedColumn-u.generatedColumn,0!==t?t:(t=strcmp(e.source,u.source),0!==t?t:(t=e.originalLine-u.originalLine,0!==t?t:(t=e.originalColumn-u.originalColumn,0!==t?t:strcmp(e.name,u.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return u=>{const t=getURLType(u),n=buildSafeBase(u),r=new URL(u,n);e(r);const o=r.toString();return"absolute"===t?o:"scheme-relative"===t?o.slice(PROTOCOL.length):"path-absolute"===t?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(n,o)}}function withBase(e,u){return new URL(e,u).toString()}function buildUniqueSegment(e,u){let t=0;for(;;){const n=e+t++;if(-1===u.indexOf(n))return n}}function buildSafeBase(e){const u=e.split("..").length-1,t=buildUniqueSegment("p",e);let n=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();t.length>0&&n.length>0&&t[0]===n[0];)t.shift(),n.shift();return n.map((()=>"..")).concat(t).join("/")+u.search+u.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,u){const t=getURLType(u),n=getURLType(e);if(e=ensureDirectory(e),"absolute"===t)return withBase(u,void 0);if("absolute"===n)return withBase(u,e);if("scheme-relative"===t)return normalize(u);if("scheme-relative"===n)return withBase(u,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===t)return normalize(u);if("path-absolute"===n)return withBase(u,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const r=buildSafeBase(u+e);return computeRelativeURL(r,withBase(u,withBase(e,r)))}function relative(e,u){const t=relativeIfPossible(e,u);return"string"==typeof t?t:normalize(u)}function relativeIfPossible(e,u){if(getURLType(e)!==getURLType(u))return null;const t=buildSafeBase(e+u),n=new URL(e,t),r=new URL(u,t);try{new URL("",r.toString())}catch(e){return null}return r.protocol!==n.protocol||r.user!==n.user||r.password!==n.password||r.hostname!==n.hostname||r.port!==n.port?null:computeRelativeURL(n,r)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(u,t){const n=new e;for(let e=0,r=u.length;e=0)return u;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&et||n==t&&o>=r||util$2.compareByGeneratedPositionsInflated(e,u)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,u){this._array.forEach(e,u)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(u){const t=u.sourceRoot,n=new e({file:u.file,sourceRoot:t});return u.eachMapping((function(e){const u={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(u.source=e.source,null!=t&&(u.source=util$1.relative(t,u.source)),u.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(u.name=e.name)),n.addMapping(u)})),u.sources.forEach((function(e){let r=e;null!=t&&(r=util$1.relative(t,e)),n._sources.has(r)||n._sources.add(r);const o=u.sourceContentFor(e);null!=o&&n.setSourceContent(e,o)})),n}addMapping(e){const u=util$1.getArg(e,"generated"),t=util$1.getArg(e,"original",null);let n=util$1.getArg(e,"source",null),r=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(u,t,n,r),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=r&&(r=String(r),this._names.has(r)||this._names.add(r)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:n,name:r})}setSourceContent(e,u){let t=e;null!=this._sourceRoot&&(t=util$1.relative(this._sourceRoot,t)),null!=u?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(t)]=u):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,u,t){let n=u;if(null==u){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}const r=this._sourceRoot;null!=r&&(n=util$1.relative(r,n));const o=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;this._mappings.unsortedForEach((function(u){if(u.source===n&&null!=u.originalLine){const n=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});null!=n.source&&(u.source=n.source,null!=t&&(u.source=util$1.join(t,u.source)),null!=r&&(u.source=util$1.relative(r,u.source)),u.originalLine=n.line,u.originalColumn=n.column,null!=n.name&&(u.name=n.name))}const i=u.source;null==i||o.has(i)||o.add(i);const s=u.name;null==s||a.has(s)||a.add(s)}),this),this._sources=o,this._names=a,e.sources.forEach((function(u){const n=e.sourceContentFor(u);null!=n&&(null!=t&&(u=util$1.join(t,u)),null!=r&&(u=util$1.relative(r,u)),this.setSourceContent(u,n))}),this)}_validateMapping(e,u,t,n){if(u&&"number"!=typeof u.line&&"number"!=typeof u.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!u&&!t&&!n);else if(!(e&&"line"in e&&"column"in e&&u&&"line"in u&&"column"in u&&e.line>0&&e.column>=0&&u.line>0&&u.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:u,name:n}))}_serializeMappings(){let e,u,t,n,r=0,o=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let A=0,f=p.length;A0){if(!util$1.compareByGeneratedPositionsInflated(u,p[A-1]))continue;e+=","}e+=base64VLQ.encode(u.generatedColumn-r),r=u.generatedColumn,null!=u.source&&(n=this._sources.indexOf(u.source),e+=base64VLQ.encode(n-c),c=n,e+=base64VLQ.encode(u.originalLine-1-i),i=u.originalLine-1,e+=base64VLQ.encode(u.originalColumn-a),a=u.originalColumn,null!=u.name&&(t=this._names.indexOf(u.name),e+=base64VLQ.encode(t-s),s=t)),l+=e}return l}_generateSourcesContent(e,u){return e.map((function(e){if(!this._sourcesContents)return null;null!=u&&(e=util$1.relative(u,e));const t=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,u,t,n,r){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==u?null:u,this.source=null==t?null:t,this.name=null==r?null:r,this[isSourceNode]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(u,t,n){const r=new e,o=u.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;u--)this.prepend(e[u]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let u;for(let t=0,n=this.children.length;t0){for(u=[],t=0;t' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.prototype.sourceNode=function(e,u,t){var n=GrammarLocation$2.offsetStart(e);return new SourceNode$1(n.line,n.column?n.column-1:null,String(e.source),u,t)},e.prototype.push=function(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);var u=this.labels[this.sp],t=[this.name(this.sp)," = ",e,";"];if(u){if(this.sourceMapStack.length){var n=this.sourceNode(u.location,t.splice(0,2),u.label),r=this.sourceMapPopInternal(),o=r.parts,a=r.location,i=a.start.offsetu.end.offset&&(t[2]={start:u.end,end:t[2].end,source:t[2].source})}this.sourceMapStack.push([e,e.length,u])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop(),u=e[0],t=e[1],n=e[2],r=u.splice(t).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(r.length){var o=GrammarLocation$2.offsetStart(n);u.push(new SourceNode$1(o.line,o.column-1,String(n.source),r))}return{parts:u,location:n}},e.prototype.sourceMapPop=function(e){var u=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&u.end.offset>2],r+=u[(3&e[o])<<4|e[o+1]>>4],r+=u[(15&e[o+1])<<2|e[o+2]>>6],r+=u[63&e[o+2]];return 1===t?(r+=u[e[n]>>2],r+=u[(3&e[n])<<4],r+="=="):2===t&&(r+=u[e[n]>>2],r+=u[(3&e[n])<<4|e[n+1]>>4],r+=u[(15&e[n+1])<<2],r+="="),r}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var n,r=0,o=u.length;r0&&(t.forEach((function(e){o.push("var "+e+' = require("'+stringEscape(u.dependencies[e])+'");')})),o.push("")),o.push(e,"","module.exports = "+r()+";"),o},es:function(){var t=Object.keys(u.dependencies),r=n();return r.push(""),t.length>0&&(t.forEach((function(e){r.push("import "+e+' from "'+stringEscape(u.dependencies[e])+'";')})),r.push("")),r.push(e,"","export {"," peg$SyntaxError as SyntaxError,",u.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),r},amd:function(){var o=Object.keys(u.dependencies),a="["+o.map((function(e){return u.dependencies[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",i=o.join(", ");return __spreadArray$1(__spreadArray$1([],n(),!0),["define("+a+", function("+i+") {",' "use strict";',"",e,"",t("return "+r()+";"),"});"],!1)},globals:function(){return __spreadArray$1(__spreadArray$1([],n(),!0),["(function(root) {",' "use strict";',"",e,"",t("root."+u.exportVar+" = "+r()+";"),"})(this);"],!1)},umd:function(){var o=Object.keys(u.dependencies),a=o.map((function(e){return u.dependencies[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),c=o.join(", "),l=n();return l.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),null!==u.exportVar&&l.push(" } else {"," root."+u.exportVar+" = factory();"),l.push(" }","})(this, function("+c+") {",' "use strict";',"",e,"",t("return "+r()+";"),"});"),l}}[u.format]();return new SourceNode(null,null,u.grammarSource,o.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[];e.topLevelInitializer&&(c.push(s(e.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),u.trace&&c.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");var l="{ "+u.allowedStartRules.map((function(e){return e+": "+i(e)})).join(", ")+" }",p=i(u.allowedStartRules[0]);return c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+l+";"," var peg$startRuleFunction = "+p+";","",new SourceNode(null,null,u.grammarSource,[e.literals.map((function(e,u){return" var "+n(u)+' = "'+stringEscape(e)+'";'})).concat("",e.classes.map((function(e,u){return" var "+r(u)+" = /^["+((t=e).inverted?"^":"")+t.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(t.ignoreCase?"i":"")+";";var t}))).concat("",e.expectations.map((function(e,u){return" var "+o(u)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(e)+'"'})).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"}))).concat("").join("\n"),e.functions.map((function(e,u){return wrapInSourceNode("\n var ".concat(a(u)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),u.cache&&c.push(" var peg$resultsCache = {};",""),u.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((function(s){c.push.apply(c,t(function(s){var c=[],l=new Stack(s.name,"s","var",s.bytecode),p=function u(c){var p,A=0,f=c.length,E=[];function h(e,n){var r,o,a=n+3,i=c[A+a-2],s=c[A+a-1];l.checkedIf(A,(function(){A+=a,r=u(c.slice(A,A+i)),A+=i}),s>0?function(){o=u(c.slice(A,A+s)),A+=s}:null),E.push("if ("+e+") {"),E.push.apply(E,t(r)),s>0&&(E.push("} else {"),E.push.apply(E,t(o))),E.push("}")}function d(e){var n,r=c[A+2-1];l.checkedLoop(A,(function(){A+=2,n=u(c.slice(A,A+r)),A+=r})),E.push("while ("+e+") {"),E.push.apply(E,t(n)),E.push("}")}function C(e){var u=c[A+e-1];return a(c[A+1])+"("+c.slice(A+e,A+e+u).map((function(e){return l.index(e)})).join(", ")+")"}for(;A= "+c[A+1],1);break;case op.IF_LT_DYNAMIC:h(l.top()+".length < "+l.index(c[A+1])+"|0",1);break;case op.IF_GE_DYNAMIC:h(l.top()+".length >= "+l.index(c[A+1])+"|0",1);break;case op.WHILE_NOT_ERROR:d(l.top()+" !== peg$FAILED");break;case op.MATCH_ANY:h("input.length > peg$currPos",0);break;case op.MATCH_STRING:h(e.literals[c[A+1]].length>1?"input.substr(peg$currPos, "+e.literals[c[A+1]].length+") === "+n(c[A+1]):"input.charCodeAt(peg$currPos) === "+e.literals[c[A+1]].charCodeAt(0),1);break;case op.MATCH_STRING_IC:h("input.substr(peg$currPos, "+e.literals[c[A+1]].length+").toLowerCase() === "+n(c[A+1]),1);break;case op.MATCH_CHAR_CLASS:h(r(c[A+1])+".test(input.charAt(peg$currPos))",1);break;case op.ACCEPT_N:E.push(l.push(c[A+1]>1?"input.substr(peg$currPos, "+c[A+1]+")":"input.charAt(peg$currPos)")),E.push(c[A+1]>1?"peg$currPos += "+c[A+1]+";":"peg$currPos++;"),A+=2;break;case op.ACCEPT_STRING:E.push(l.push(n(c[A+1]))),E.push(e.literals[c[A+1]].length>1?"peg$currPos += "+e.literals[c[A+1]].length+";":"peg$currPos++;"),A+=2;break;case op.FAIL:E.push(l.push("peg$FAILED")),E.push("if (peg$silentFails === 0) { peg$fail("+o(c[A+1])+"); }"),A+=2;break;case op.LOAD_SAVED_POS:E.push("peg$savedPos = "+l.index(c[A+1])+";"),A+=2;break;case op.UPDATE_SAVED_POS:E.push("peg$savedPos = peg$currPos;"),A++;break;case op.CALL:p=C(4),l.pop(c[A+2]),E.push(l.push(p)),A+=4+c[A+3];break;case op.RULE:E.push(l.push(i(e.rules[c[A+1]].name)+"()")),A+=2;break;case op.SILENT_FAILS_ON:E.push("peg$silentFails++;"),A++;break;case op.SILENT_FAILS_OFF:E.push("peg$silentFails--;"),A++;break;case op.SOURCE_MAP_PUSH:l.sourceMapPush(E,e.locations[c[A+1]]),A+=2;break;case op.SOURCE_MAP_POP:l.sourceMapPop(),A++;break;case op.SOURCE_MAP_LABEL_PUSH:l.labels[c[A+1]]={label:e.literals[c[A+2]],location:e.locations[c[A+3]]},A+=4;break;case op.SOURCE_MAP_LABEL_POP:delete l.labels[c[A+1]],A+=2;break;default:throw new Error("Invalid opcode: "+c[A]+".",{rule:s.name,bytecode:c})}return E}(s.bytecode);return c.push(wrapInSourceNode("function ",i(s.name),s.nameLocation,"() {\n",s.name)),u.trace&&c.push(" var startPos = peg$currPos;"),c.push(t(l.defines())),c.push.apply(c,t(function(t,n){var r=[];return r.push(""),u.trace&&r.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)","});",""),u.cache&&(r.push("var key = peg$currPos * "+e.rules.length+" + "+n+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),u.trace&&r.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+t+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),r.push(" return cached.result;","}","")),r}('"'+stringEscape(s.name)+'"',asts$4.indexOfRule(e,s.name)))),c.push.apply(c,t(p)),c.push.apply(c,t(function(e,t){var n=[];return u.cache&&n.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+t+" };"),u.trace&&n.push("","if ("+t+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+t+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),n.push("","return "+t+";"),n}('"'+stringEscape(s.name)+'"',l.result()))),c.push("}"),c}(s))),c.push("")})),e.initializer&&(c.push(s(e.initializer)),c.push("")),c.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new SourceNode(null,null,u.grammarSource,c.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}())}var generateJs=generateJS$1,asts$3=asts_1,visitor$7=visitor_1;function removeProxyRules$1(e,u,t){var n=[];e.rules.forEach((function(r,o){var a;"rule"===(a=r).type&&"rule_ref"===a.expression.type&&(function(e,u,n){visitor$7.build({rule_ref:function(r){r.name===u&&(r.name=n,t.info('Proxy rule "'.concat(u,'" replaced by the rule "').concat(n,'"'),r.location,[{message:"This rule will be used",location:asts$3.findRule(e,n).nameLocation}]))}})(e)}(e,r.name,r.expression.name),-1===u.allowedStartRules.indexOf(r.name)&&n.push(o))})),n.reverse(),n.forEach((function(u){e.rules.splice(u,1)}))}var removeProxyRules_1=removeProxyRules$1,visitor$6=visitor_1;function reportDuplicateLabels$1(e,u,t){function n(e){var u={};return Object.keys(e).forEach((function(t){u[t]=e[t]})),u}function r(e,u){o(e.expression,n(u))}var o=visitor$6.build({rule:function(e){o(e.expression,{})},choice:function(e,u){e.alternatives.forEach((function(e){o(e,n(u))}))},action:r,labeled:function(e,u){var n=e.label;n&&Object.prototype.hasOwnProperty.call(u,n)&&t.error('Label "'.concat(e.label,'" is already defined'),e.labelLocation,[{message:"Original label location",location:u[n]}]),o(e.expression,u),u[e.label]=e.labelLocation},text:r,simple_and:r,simple_not:r,optional:r,zero_or_more:r,one_or_more:r,repeated:function(e,u){e.delimiter&&o(e.delimiter,n(u)),o(e.expression,n(u))},group:r});o(e)}var reportDuplicateLabels_1=reportDuplicateLabels$1,visitor$5=visitor_1;function reportDuplicateRules$1(e,u,t){var n={};visitor$5.build({rule:function(e){Object.prototype.hasOwnProperty.call(n,e.name)?t.error('Rule "'.concat(e.name,'" is already defined'),e.nameLocation,[{message:"Original rule location",location:n[e.name]}]):n[e.name]=e.nameLocation}})(e)}var reportDuplicateRules_1=reportDuplicateRules$1,asts$2=asts_1,visitor$4=visitor_1;function reportInfiniteRecursion$1(e,u,t){var n=[],r=[],o=visitor$4.build({rule:function(e){n.push(e.name),o(e.expression),n.pop()},sequence:function(u){u.elements.every((function(u){return o(u),!asts$2.alwaysConsumesOnSuccess(e,u)}))},repeated:function(u){o(u.expression),u.delimiter&&!asts$2.alwaysConsumesOnSuccess(e,u.expression)&&o(u.delimiter)},rule_ref:function(u){r.push(u);var a=asts$2.findRule(e,u.name);if(-1!==n.indexOf(u.name))return n.push(u.name),void t.error("Possible infinite loop when parsing (left recursion: "+n.join(" -> ")+")",a.nameLocation,r.map((function(e,u,t){return{message:u+1!==t.length?"Step ".concat(u+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(u+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&o(a),r.pop()}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$1=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,u,t){visitor$3.build({zero_or_more:function(u){asts$1.alwaysConsumesOnSuccess(e,u.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",u.location)},one_or_more:function(u){asts$1.alwaysConsumesOnSuccess(e,u.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",u.location)},repeated:function(u){if(!(asts$1.alwaysConsumesOnSuccess(e,u.expression)||u.delimiter&&asts$1.alwaysConsumesOnSuccess(e,u.delimiter)))if(null===u.max.value)t.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",u.location);else{var n=u.min?u.min:u.max;t.warning("constant"===n.type&&"constant"===u.max.type?"An expression may not consume any input and may always match ".concat(u.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",u.location)}}})(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,u,t){visitor$2.build({rule_ref:function(u){asts.findRule(e,u.name)||t.error('Rule "'.concat(u.name,'" is not defined'),u.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,u,t){var n=visitor$1.build({action:function(e){n(e.expression,e)},labeled:function(e,u){e.pick&&u&&t.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:u.codeLocation}]),n(e.expression)}});n(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var n,r=0,o=u.length;r0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(u){session.info("Process pass ".concat(e,".").concat(u.name)),u(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,u){function t(){this.constructor=e}t.prototype=u.prototype,e.prototype=new t}function peg$SyntaxError(e,u,t,n){var r=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(r,peg$SyntaxError.prototype),r.expected=u,r.found=t,r.location=n,r.name="SyntaxError",r}function peg$padEnd(e,u,t){return t=t||" ",e.length>u?e:(u-=e.length,e+(t+=t.repeat(u)).slice(0,u))}function peg$parse(e,u){var t,n={},r=(u=void 0!==u?u:{}).grammarSource,o={Grammar:Yt},a=Yt,i="{",s="}",c="=",l="/",p="@",A=":",f="$",E="&",h="!",d="?",C="*",g="+",m="|",F=",",_="..",v="(",B=")",D="\t",$="\v",S="\f",y=" ",b=" ",x="\ufeff",P="\n",R="\r\n",O="\r",L="\u2028",T="\u2029",M="/*",I="*/",w="//",N="_",k="\\",H="‌",U="‍",j="i",G='"',V="'",Y="[",z="^",W="]",J="-",Q="0",q="b",X="f",K="n",Z="r",ee="t",ue="v",te="x",ne="u",re=".",oe=";",ae=/^[\n\r\u2028\u2029]/,ie=/^[0-9]/,se=/^[0-9a-f]/i,ce=/^[{}]/,le=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,pe=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,Ae=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,fe=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,Ee=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,he=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,de=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,Ce=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,ge=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,me=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Fe=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_e=kt("{",!1),ve=kt("}",!1),Be=kt("=",!1),De=kt("/",!1),$e=kt("@",!1),Se=kt(":",!1),ye=kt("$",!1),be=kt("&",!1),xe=kt("!",!1),Pe=kt("?",!1),Re=kt("*",!1),Oe=kt("+",!1),Le=kt("|",!1),Te=kt(",",!1),Me=kt("..",!1),Ie=kt("(",!1),we=kt(")",!1),Ne={type:"any"},ke=Ut("whitespace"),He=kt("\t",!1),Ue=kt("\v",!1),je=kt("\f",!1),Ge=kt(" ",!1),Ve=kt(" ",!1),Ye=kt("\ufeff",!1),ze=Ht(["\n","\r","\u2028","\u2029"],!1,!1),We=Ut("end of line"),Je=kt("\n",!1),Qe=kt("\r\n",!1),qe=kt("\r",!1),Xe=kt("\u2028",!1),Ke=kt("\u2029",!1),Ze=Ut("comment"),eu=kt("/*",!1),uu=kt("*/",!1),tu=kt("//",!1),nu=Ut("identifier"),ru=kt("_",!1),ou=kt("\\",!1),au=kt("‌",!1),iu=kt("‍",!1),su=Ut("literal"),cu=kt("i",!1),lu=Ut("string"),pu=kt('"',!1),Au=kt("'",!1),fu=Ut("character class"),Eu=kt("[",!1),hu=kt("^",!1),du=kt("]",!1),Cu=kt("-",!1),gu=kt("0",!1),mu=kt("b",!1),Fu=kt("f",!1),_u=kt("n",!1),vu=kt("r",!1),Bu=kt("t",!1),Du=kt("v",!1),$u=kt("x",!1),Su=kt("u",!1),yu=Ht([["0","9"]],!1,!1),bu=Ht([["0","9"],["a","f"]],!1,!0),xu=kt(".",!1),Pu=Ut("code block"),Ru=Ht(["{","}"],!1,!1),Ou=Ht([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Lu=Ht([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Tu=Ht(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Mu=Ht(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),Iu=Ht([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),wu=Ht(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Nu=Ht([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),ku=Ht([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Hu=Ht([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Uu=Ht(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),ju=Ht([" "," "," ",[" "," "]," "," "," "],!1,!1),Gu=kt(";",!1),Vu=function(e,u,t){return{type:"grammar",topLevelInitializer:e,initializer:u,rules:t,location:wt()}},Yu=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:wt()}},zu=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:wt()}},Wu=function(e,u,t){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==u?{type:"named",name:u,expression:t,location:wt()}:t,location:wt()}},Ju=function(e,u){return u.length>0?{type:"choice",alternatives:[e].concat(u),location:wt()}:e},Qu=function(e,u){return null!==u?{type:"action",expression:e,code:u[0],codeLocation:u[1],location:wt()}:e},qu=function(e,u){return u.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(u),location:wt()}:e},Xu=function(e,u,t){return t.type.startsWith("semantic_")&&Nt('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==u?u[0]:null,labelLocation:null!==u?u[1]:e,pick:!0,expression:t,location:wt()}},Ku=function(e,u){return{type:"labeled",label:e[0],labelLocation:e[1],expression:u,location:wt()}},Zu=function(){return wt()},et=function(e){return yn.indexOf(e[0])>=0&&Nt("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},ut=function(e,u){return{type:OPS_TO_PREFIXED_TYPES[e],expression:u,location:wt()}},tt=function(e,u){return{type:OPS_TO_SUFFIXED_TYPES[u],expression:e,location:wt()}},nt=function(e,u,t){var n=u[0],r=u[1];return"constant"===r.type&&0===r.value&&Nt("The maximum count of repetitions of the rule must be > 0",r.location),{type:"repeated",min:n,max:r,expression:e,delimiter:t,location:wt()}},rt=function(e,u){return[null!==e?e:{type:"constant",value:0},null!==u?u:{type:"constant",value:null}]},ot=function(e){return[null,e]},at=function(e){return{type:"constant",value:e,location:wt()}},it=function(e){return{type:"variable",value:e[0],location:wt()}},st=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:wt()}},ct=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:wt()}:e},lt=function(e){return{type:"rule_ref",name:e[0],location:wt()}},pt=function(e,u){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:u[0],codeLocation:u[1],location:wt()}},At=function(e,u){return[e+u.join(""),wt()]},ft=function(e,u){return{type:"literal",value:e,ignoreCase:null!==u,location:wt()}},Et=function(e){return e.join("")},ht=function(e){return e.join("")},dt=function(e,u,t){return{type:"class",parts:u.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==t,location:wt()}},Ct=function(u,t){return u.charCodeAt(0)>t.charCodeAt(0)&&Nt("Invalid character range: "+e.substring(Ot,Rt)+"."),[u,t]},gt=function(){return""},mt=function(){return"\0"},Ft=function(){return"\b"},_t=function(){return"\f"},vt=function(){return"\n"},Bt=function(){return"\r"},Dt=function(){return"\t"},$t=function(){return"\v"},St=function(e){return String.fromCharCode(parseInt(e,16))},yt=function(e){return String.fromCharCode(parseInt(e,16))},bt=function(){return{type:"any",location:wt()}},xt=function(e){return[e,wt()]},Pt=function(e){return parseInt(e,10)},Rt=0,Ot=0,Lt=[{line:1,column:1}],Tt=0,Mt=[],It=0;if("startRule"in u){if(!(u.startRule in o))throw new Error("Can't start parsing from rule \""+u.startRule+'".');a=o[u.startRule]}function wt(){return Gt(Ot,Rt)}function Nt(e,u){throw function(e,u){return new peg$SyntaxError(e,null,null,u)}(e,u=void 0!==u?u:Gt(Ot,Rt))}function kt(e,u){return{type:"literal",text:e,ignoreCase:u}}function Ht(e,u,t){return{type:"class",parts:e,inverted:u,ignoreCase:t}}function Ut(e){return{type:"other",description:e}}function jt(u){var t,n=Lt[u];if(n)return n;for(t=u-1;!Lt[t];)t--;for(n={line:(n=Lt[t]).line,column:n.column};tTt&&(Tt=Rt,Mt=[]),Mt.push(e))}function Yt(){var u,t,r,o,a,c;if(u=Rt,$n(),t=Rt,r=function(){var u,t,r,o;return u=Rt,123===e.charCodeAt(Rt)?(t=i,Rt++):(t=n,0===It&&Vt(_e)),t!==n&&(r=Bn())!==n?(125===e.charCodeAt(Rt)?(o=s,Rt++):(o=n,0===It&&Vt(ve)),o!==n&&Sn()!==n?(Ot=u,u=Yu(r)):(Rt=u,u=n)):(Rt=u,u=n),u}(),r!==n?(o=$n(),t=r):(Rt=t,t=n),t===n&&(t=null),r=Rt,o=function(){var e,u;return e=Rt,(u=Bn())!==n&&Sn()!==n?(Ot=e,e=zu(u)):(Rt=e,e=n),e}(),o!==n?(a=$n(),r=o):(Rt=r,r=n),r===n&&(r=null),o=[],a=Rt,(c=zt())!==n?($n(),a=c):(Rt=a,a=n),a!==n)for(;a!==n;)o.push(a),a=Rt,(c=zt())!==n?($n(),a=c):(Rt=a,a=n);else o=n;return o!==n?(Ot=u,u=Vu(t,r,o)):(Rt=u,u=n),u}function zt(){var u,t,r,o,a;return u=Rt,(t=cn())!==n?($n(),r=Rt,(o=An())!==n?($n(),r=o):(Rt=r,r=n),r===n&&(r=null),61===e.charCodeAt(Rt)?(o=c,Rt++):(o=n,0===It&&Vt(Be)),o!==n?($n(),(a=Wt())!==n&&Sn()!==n?(Ot=u,u=Wu(t,r,a)):(Rt=u,u=n)):(Rt=u,u=n)):(Rt=u,u=n),u}function Wt(){var u,t,r,o,a,i;if(u=Rt,(t=Jt())!==n){for(r=[],o=Rt,$n(),47===e.charCodeAt(Rt)?(a=l,Rt++):(a=n,0===It&&Vt(De)),a!==n?($n(),(i=Jt())!==n?o=i:(Rt=o,o=n)):(Rt=o,o=n);o!==n;)r.push(o),o=Rt,$n(),47===e.charCodeAt(Rt)?(a=l,Rt++):(a=n,0===It&&Vt(De)),a!==n?($n(),(i=Jt())!==n?o=i:(Rt=o,o=n)):(Rt=o,o=n);Ot=u,u=Ju(t,r)}else Rt=u,u=n;return u}function Jt(){var e,u,t,r;return e=Rt,u=function(){var e,u,t,r,o;if(e=Rt,(u=Qt())!==n){for(t=[],r=Rt,$n(),(o=Qt())!==n?r=o:(Rt=r,r=n);r!==n;)t.push(r),r=Rt,$n(),(o=Qt())!==n?r=o:(Rt=r,r=n);Ot=e,e=qu(u,t)}else Rt=e,e=n;return e}(),u!==n?(t=Rt,$n(),(r=Bn())!==n?t=r:(Rt=t,t=n),t===n&&(t=null),Ot=e,e=Qu(u,t)):(Rt=e,e=n),e}function Qt(){var u,t,r,o;return u=Rt,t=function(){var u,t;return u=Rt,64===e.charCodeAt(Rt)?(t=p,Rt++):(t=n,0===It&&Vt($e)),t!==n&&(Ot=u,t=Zu()),u=t}(),t!==n?((r=qt())===n&&(r=null),(o=Xt())!==n?(Ot=u,u=Xu(t,r,o)):(Rt=u,u=n)):(Rt=u,u=n),u===n&&(u=Rt,(t=qt())!==n?(r=$n(),(o=Xt())!==n?(Ot=u,u=Ku(t,o)):(Rt=u,u=n)):(Rt=u,u=n),u===n&&(u=Xt())),u}function qt(){var u,t,r;return u=Rt,(t=cn())!==n?($n(),58===e.charCodeAt(Rt)?(r=A,Rt++):(r=n,0===It&&Vt(Se)),r!==n?(Ot=u,u=et(t)):(Rt=u,u=n)):(Rt=u,u=n),u}function Xt(){var u,t,r;return u=Rt,t=function(){var u;return 36===e.charCodeAt(Rt)?(u=f,Rt++):(u=n,0===It&&Vt(ye)),u===n&&(38===e.charCodeAt(Rt)?(u=E,Rt++):(u=n,0===It&&Vt(be)),u===n&&(33===e.charCodeAt(Rt)?(u=h,Rt++):(u=n,0===It&&Vt(xe)))),u}(),t!==n?($n(),(r=Kt())!==n?(Ot=u,u=ut(t,r)):(Rt=u,u=n)):(Rt=u,u=n),u===n&&(u=Kt()),u}function Kt(){var u,t,r;return u=Rt,(t=en())!==n?($n(),r=function(){var u;return 63===e.charCodeAt(Rt)?(u=d,Rt++):(u=n,0===It&&Vt(Pe)),u===n&&(42===e.charCodeAt(Rt)?(u=C,Rt++):(u=n,0===It&&Vt(Re)),u===n&&(43===e.charCodeAt(Rt)?(u=g,Rt++):(u=n,0===It&&Vt(Oe)))),u}(),r!==n?(Ot=u,u=tt(t,r)):(Rt=u,u=n)):(Rt=u,u=n),u===n&&(u=function(){var u,t,r,o,a,i,s;return u=Rt,(t=en())!==n?($n(),124===e.charCodeAt(Rt)?(r=m,Rt++):(r=n,0===It&&Vt(Le)),r!==n?($n(),o=function(){var u,t,r,o;return u=Rt,(t=Zt())===n&&(t=null),$n(),e.substr(Rt,2)===_?(r=_,Rt+=2):(r=n,0===It&&Vt(Me)),r!==n?($n(),(o=Zt())===n&&(o=null),Ot=u,u=rt(t,o)):(Rt=u,u=n),u===n&&(u=Rt,(t=Zt())!==n&&(Ot=u,t=ot(t)),u=t),u}(),o!==n?($n(),a=Rt,44===e.charCodeAt(Rt)?(i=F,Rt++):(i=n,0===It&&Vt(Te)),i!==n?($n(),(s=Wt())!==n?($n(),a=s):(Rt=a,a=n)):(Rt=a,a=n),a===n&&(a=null),124===e.charCodeAt(Rt)?(i=m,Rt++):(i=n,0===It&&Vt(Le)),i!==n?(Ot=u,u=nt(t,o,a)):(Rt=u,u=n)):(Rt=u,u=n)):(Rt=u,u=n)):(Rt=u,u=n),u}(),u===n&&(u=en())),u}function Zt(){var u,t;return u=Rt,t=function(){var u,t,r,o;if(u=Rt,t=Rt,r=[],(o=_n())!==n)for(;o!==n;)r.push(o),o=_n();else r=n;return(t=r!==n?e.substring(t,Rt):r)!==n&&(Ot=u,t=Pt(t)),u=t}(),t!==n&&(Ot=u,t=at(t)),(u=t)===n&&(u=Rt,(t=cn())!==n&&(Ot=u,t=it(t)),(u=t)===n&&(u=Rt,(t=Bn())!==n&&(Ot=u,t=st(t)),u=t)),u}function en(){var u,t,r,o;return u=function(){var u,t,r;return It++,u=Rt,(t=An())!==n?(105===e.charCodeAt(Rt)?(r=j,Rt++):(r=n,0===It&&Vt(cu)),r===n&&(r=null),Ot=u,u=ft(t,r)):(Rt=u,u=n),It--,u===n&&(t=n,0===It&&Vt(su)),u}(),u===n&&(u=function(){var u,t,r,o,a,i;if(It++,u=Rt,91===e.charCodeAt(Rt)?(t=Y,Rt++):(t=n,0===It&&Vt(Eu)),t!==n){for(94===e.charCodeAt(Rt)?(r=z,Rt++):(r=n,0===It&&Vt(hu)),r===n&&(r=null),o=[],(a=hn())===n&&(a=dn());a!==n;)o.push(a),(a=hn())===n&&(a=dn());93===e.charCodeAt(Rt)?(a=W,Rt++):(a=n,0===It&&Vt(du)),a!==n?(105===e.charCodeAt(Rt)?(i=j,Rt++):(i=n,0===It&&Vt(cu)),i===n&&(i=null),Ot=u,u=dt(r,o,i)):(Rt=u,u=n)}else Rt=u,u=n;return It--,u===n&&(t=n,0===It&&Vt(fu)),u}(),u===n&&(u=function(){var u,t;return u=Rt,46===e.charCodeAt(Rt)?(t=re,Rt++):(t=n,0===It&&Vt(xu)),t!==n&&(Ot=u,t=bt()),u=t}(),u===n&&(u=function(){var u,t,r,o,a,i,s;return u=Rt,(t=cn())!==n?(r=Rt,It++,o=Rt,a=$n(),i=Rt,(s=An())!==n?i=s=[s,$n()]:(Rt=i,i=n),i===n&&(i=null),61===e.charCodeAt(Rt)?(s=c,Rt++):(s=n,0===It&&Vt(Be)),s!==n?o=a=[a,i,s]:(Rt=o,o=n),It--,o===n?r=void 0:(Rt=r,r=n),r!==n?(Ot=u,u=lt(t)):(Rt=u,u=n)):(Rt=u,u=n),u}(),u===n&&(u=function(){var u,t,r;return u=Rt,t=function(){var u;return 38===e.charCodeAt(Rt)?(u=E,Rt++):(u=n,0===It&&Vt(be)),u===n&&(33===e.charCodeAt(Rt)?(u=h,Rt++):(u=n,0===It&&Vt(xe))),u}(),t!==n?($n(),(r=Bn())!==n?(Ot=u,u=pt(t,r)):(Rt=u,u=n)):(Rt=u,u=n),u}(),u===n&&(u=Rt,40===e.charCodeAt(Rt)?(t=v,Rt++):(t=n,0===It&&Vt(Ie)),t!==n?($n(),(r=Wt())!==n?($n(),41===e.charCodeAt(Rt)?(o=B,Rt++):(o=n,0===It&&Vt(we)),o!==n?(Ot=u,u=ct(r)):(Rt=u,u=n)):(Rt=u,u=n)):(Rt=u,u=n)))))),u}function un(){var u;return e.length>Rt?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Ne)),u}function tn(){var u;return It++,9===e.charCodeAt(Rt)?(u=D,Rt++):(u=n,0===It&&Vt(He)),u===n&&(11===e.charCodeAt(Rt)?(u=$,Rt++):(u=n,0===It&&Vt(Ue)),u===n&&(12===e.charCodeAt(Rt)?(u=S,Rt++):(u=n,0===It&&Vt(je)),u===n&&(32===e.charCodeAt(Rt)?(u=y,Rt++):(u=n,0===It&&Vt(Ge)),u===n&&(160===e.charCodeAt(Rt)?(u=b,Rt++):(u=n,0===It&&Vt(Ve)),u===n&&(65279===e.charCodeAt(Rt)?(u=x,Rt++):(u=n,0===It&&Vt(Ye)),u===n&&(u=function(){var u;return Fe.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(ju)),u}())))))),It--,u===n&&0===It&&Vt(ke),u}function nn(){var u;return ae.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(ze)),u}function rn(){var u;return It++,10===e.charCodeAt(Rt)?(u=P,Rt++):(u=n,0===It&&Vt(Je)),u===n&&(e.substr(Rt,2)===R?(u=R,Rt+=2):(u=n,0===It&&Vt(Qe)),u===n&&(13===e.charCodeAt(Rt)?(u=O,Rt++):(u=n,0===It&&Vt(qe)),u===n&&(8232===e.charCodeAt(Rt)?(u=L,Rt++):(u=n,0===It&&Vt(Xe)),u===n&&(8233===e.charCodeAt(Rt)?(u=T,Rt++):(u=n,0===It&&Vt(Ke)))))),It--,u===n&&0===It&&Vt(We),u}function on(){var u;return It++,(u=function(){var u,t,r,o,a,i;if(u=Rt,e.substr(Rt,2)===M?(t=M,Rt+=2):(t=n,0===It&&Vt(eu)),t!==n){for(r=[],o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=n,0===It&&Vt(uu)),It--,i===n?a=void 0:(Rt=a,a=n),a!==n&&(i=un())!==n?o=a=[a,i]:(Rt=o,o=n);o!==n;)r.push(o),o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=n,0===It&&Vt(uu)),It--,i===n?a=void 0:(Rt=a,a=n),a!==n&&(i=un())!==n?o=a=[a,i]:(Rt=o,o=n);e.substr(Rt,2)===I?(o=I,Rt+=2):(o=n,0===It&&Vt(uu)),o!==n?u=t=[t,r,o]:(Rt=u,u=n)}else Rt=u,u=n;return u}())===n&&(u=sn()),It--,u===n&&0===It&&Vt(Ze),u}function an(){var u,t,r,o,a,i;if(u=Rt,e.substr(Rt,2)===M?(t=M,Rt+=2):(t=n,0===It&&Vt(eu)),t!==n){for(r=[],o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=n,0===It&&Vt(uu)),i===n&&(i=nn()),It--,i===n?a=void 0:(Rt=a,a=n),a!==n&&(i=un())!==n?o=a=[a,i]:(Rt=o,o=n);o!==n;)r.push(o),o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=n,0===It&&Vt(uu)),i===n&&(i=nn()),It--,i===n?a=void 0:(Rt=a,a=n),a!==n&&(i=un())!==n?o=a=[a,i]:(Rt=o,o=n);e.substr(Rt,2)===I?(o=I,Rt+=2):(o=n,0===It&&Vt(uu)),o!==n?u=t=[t,r,o]:(Rt=u,u=n)}else Rt=u,u=n;return u}function sn(){var u,t,r,o,a,i;if(u=Rt,e.substr(Rt,2)===w?(t=w,Rt+=2):(t=n,0===It&&Vt(tu)),t!==n){for(r=[],o=Rt,a=Rt,It++,i=nn(),It--,i===n?a=void 0:(Rt=a,a=n),a!==n&&(i=un())!==n?o=a=[a,i]:(Rt=o,o=n);o!==n;)r.push(o),o=Rt,a=Rt,It++,i=nn(),It--,i===n?a=void 0:(Rt=a,a=n),a!==n&&(i=un())!==n?o=a=[a,i]:(Rt=o,o=n);u=t=[t,r]}else Rt=u,u=n;return u}function cn(){var e,u,t,r;if(It++,e=Rt,(u=ln())!==n){for(t=[],r=pn();r!==n;)t.push(r),r=pn();Ot=e,e=At(u,t)}else Rt=e,e=n;return It--,e===n&&(u=n,0===It&&Vt(nu)),e}function ln(){var u,t,r;return(u=function(){var u;return(u=function(){var u;return Ee.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Iu)),u}())===n&&(u=function(){var u;return le.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Ou)),u}())===n&&(u=function(){var u;return fe.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Mu)),u}())===n&&(u=function(){var u;return pe.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Lu)),u}())===n&&(u=function(){var u;return Ae.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Tu)),u}())===n&&(u=function(){var u;return ge.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Hu)),u}()),u}())===n&&(36===e.charCodeAt(Rt)?(u=f,Rt++):(u=n,0===It&&Vt(ye)),u===n&&(95===e.charCodeAt(Rt)?(u=N,Rt++):(u=n,0===It&&Vt(ru)),u===n&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=n,0===It&&Vt(ou)),t!==n&&(r=Fn())!==n?u=r:(Rt=u,u=n)))),u}function pn(){var u;return(u=ln())===n&&(u=function(){var u;return(u=function(){var u;return de.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Nu)),u}())===n&&(u=function(){var u;return he.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(wu)),u}()),u}())===n&&(u=function(){var u;return Ce.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(ku)),u}())===n&&(u=function(){var u;return me.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(Uu)),u}())===n&&(8204===e.charCodeAt(Rt)?(u=H,Rt++):(u=n,0===It&&Vt(au)),u===n&&(8205===e.charCodeAt(Rt)?(u=U,Rt++):(u=n,0===It&&Vt(iu)))),u}function An(){var u,t,r,o;if(It++,u=Rt,34===e.charCodeAt(Rt)?(t=G,Rt++):(t=n,0===It&&Vt(pu)),t!==n){for(r=[],o=fn();o!==n;)r.push(o),o=fn();34===e.charCodeAt(Rt)?(o=G,Rt++):(o=n,0===It&&Vt(pu)),o!==n?(Ot=u,u=Et(r)):(Rt=u,u=n)}else Rt=u,u=n;if(u===n)if(u=Rt,39===e.charCodeAt(Rt)?(t=V,Rt++):(t=n,0===It&&Vt(Au)),t!==n){for(r=[],o=En();o!==n;)r.push(o),o=En();39===e.charCodeAt(Rt)?(o=V,Rt++):(o=n,0===It&&Vt(Au)),o!==n?(Ot=u,u=ht(r)):(Rt=u,u=n)}else Rt=u,u=n;return It--,u===n&&(t=n,0===It&&Vt(lu)),u}function fn(){var u,t,r,o;return u=Rt,t=Rt,r=Rt,It++,34===e.charCodeAt(Rt)?(o=G,Rt++):(o=n,0===It&&Vt(pu)),o===n&&(92===e.charCodeAt(Rt)?(o=k,Rt++):(o=n,0===It&&Vt(ou)),o===n&&(o=nn())),It--,o===n?r=void 0:(Rt=r,r=n),r!==n&&(o=un())!==n?t=r=[r,o]:(Rt=t,t=n),(u=t!==n?e.substring(u,Rt):t)===n&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=n,0===It&&Vt(ou)),t!==n&&(r=gn())!==n?u=r:(Rt=u,u=n),u===n&&(u=Cn())),u}function En(){var u,t,r,o;return u=Rt,t=Rt,r=Rt,It++,39===e.charCodeAt(Rt)?(o=V,Rt++):(o=n,0===It&&Vt(Au)),o===n&&(92===e.charCodeAt(Rt)?(o=k,Rt++):(o=n,0===It&&Vt(ou)),o===n&&(o=nn())),It--,o===n?r=void 0:(Rt=r,r=n),r!==n&&(o=un())!==n?t=r=[r,o]:(Rt=t,t=n),(u=t!==n?e.substring(u,Rt):t)===n&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=n,0===It&&Vt(ou)),t!==n&&(r=gn())!==n?u=r:(Rt=u,u=n),u===n&&(u=Cn())),u}function hn(){var u,t,r,o;return u=Rt,(t=dn())!==n?(45===e.charCodeAt(Rt)?(r=J,Rt++):(r=n,0===It&&Vt(Cu)),r!==n&&(o=dn())!==n?(Ot=u,u=Ct(t,o)):(Rt=u,u=n)):(Rt=u,u=n),u}function dn(){var u,t,r,o;return u=Rt,t=Rt,r=Rt,It++,93===e.charCodeAt(Rt)?(o=W,Rt++):(o=n,0===It&&Vt(du)),o===n&&(92===e.charCodeAt(Rt)?(o=k,Rt++):(o=n,0===It&&Vt(ou)),o===n&&(o=nn())),It--,o===n?r=void 0:(Rt=r,r=n),r!==n&&(o=un())!==n?t=r=[r,o]:(Rt=t,t=n),(u=t!==n?e.substring(u,Rt):t)===n&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=n,0===It&&Vt(ou)),t!==n&&(r=gn())!==n?u=r:(Rt=u,u=n),u===n&&(u=Cn())),u}function Cn(){var u,t;return u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=n,0===It&&Vt(ou)),t!==n&&rn()!==n?(Ot=u,u=gt()):(Rt=u,u=n),u}function gn(){var u,t,r,o;return u=function(){var u;return(u=mn())===n&&(u=function(){var u,t,r,o;return u=Rt,t=Rt,r=Rt,It++,o=function(){var u;return(u=mn())===n&&(u=_n())===n&&(120===e.charCodeAt(Rt)?(u=te,Rt++):(u=n,0===It&&Vt($u)),u===n&&(117===e.charCodeAt(Rt)?(u=ne,Rt++):(u=n,0===It&&Vt(Su)))),u}(),o===n&&(o=nn()),It--,o===n?r=void 0:(Rt=r,r=n),r!==n&&(o=un())!==n?t=r=[r,o]:(Rt=t,t=n),u=t!==n?e.substring(u,Rt):t}()),u}(),u===n&&(u=Rt,48===e.charCodeAt(Rt)?(t=Q,Rt++):(t=n,0===It&&Vt(gu)),t!==n?(r=Rt,It++,o=_n(),It--,o===n?r=void 0:(Rt=r,r=n),r!==n?(Ot=u,u=mt()):(Rt=u,u=n)):(Rt=u,u=n),u===n&&(u=function(){var u,t,r,o,a,i;return u=Rt,120===e.charCodeAt(Rt)?(t=te,Rt++):(t=n,0===It&&Vt($u)),t!==n?(r=Rt,o=Rt,(a=vn())!==n&&(i=vn())!==n?o=a=[a,i]:(Rt=o,o=n),(r=o!==n?e.substring(r,Rt):o)!==n?(Ot=u,u=St(r)):(Rt=u,u=n)):(Rt=u,u=n),u}(),u===n&&(u=Fn()))),u}function mn(){var u,t;return 39===e.charCodeAt(Rt)?(u=V,Rt++):(u=n,0===It&&Vt(Au)),u===n&&(34===e.charCodeAt(Rt)?(u=G,Rt++):(u=n,0===It&&Vt(pu)),u===n&&(92===e.charCodeAt(Rt)?(u=k,Rt++):(u=n,0===It&&Vt(ou)),u===n&&(u=Rt,98===e.charCodeAt(Rt)?(t=q,Rt++):(t=n,0===It&&Vt(mu)),t!==n&&(Ot=u,t=Ft()),(u=t)===n&&(u=Rt,102===e.charCodeAt(Rt)?(t=X,Rt++):(t=n,0===It&&Vt(Fu)),t!==n&&(Ot=u,t=_t()),(u=t)===n&&(u=Rt,110===e.charCodeAt(Rt)?(t=K,Rt++):(t=n,0===It&&Vt(_u)),t!==n&&(Ot=u,t=vt()),(u=t)===n&&(u=Rt,114===e.charCodeAt(Rt)?(t=Z,Rt++):(t=n,0===It&&Vt(vu)),t!==n&&(Ot=u,t=Bt()),(u=t)===n&&(u=Rt,116===e.charCodeAt(Rt)?(t=ee,Rt++):(t=n,0===It&&Vt(Bu)),t!==n&&(Ot=u,t=Dt()),(u=t)===n&&(u=Rt,118===e.charCodeAt(Rt)?(t=ue,Rt++):(t=n,0===It&&Vt(Du)),t!==n&&(Ot=u,t=$t()),u=t)))))))),u}function Fn(){var u,t,r,o,a,i,s,c;return u=Rt,117===e.charCodeAt(Rt)?(t=ne,Rt++):(t=n,0===It&&Vt(Su)),t!==n?(r=Rt,o=Rt,(a=vn())!==n&&(i=vn())!==n&&(s=vn())!==n&&(c=vn())!==n?o=a=[a,i,s,c]:(Rt=o,o=n),(r=o!==n?e.substring(r,Rt):o)!==n?(Ot=u,u=yt(r)):(Rt=u,u=n)):(Rt=u,u=n),u}function _n(){var u;return ie.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(yu)),u}function vn(){var u;return se.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=n,0===It&&Vt(bu)),u}function Bn(){var u,t,r,o;return It++,u=Rt,123===e.charCodeAt(Rt)?(t=i,Rt++):(t=n,0===It&&Vt(_e)),t!==n?(r=function(){var e,u;return e=Rt,u=Dn(),Ot=e,e=u=xt(u)}(),125===e.charCodeAt(Rt)?(o=s,Rt++):(o=n,0===It&&Vt(ve)),o!==n?u=r:(Rt=u,u=n)):(Rt=u,u=n),It--,u===n&&(t=n,0===It&&Vt(Pu)),u}function Dn(){var u,t,r,o,a,c;if(u=Rt,t=[],r=[],o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=n,0===It&&Vt(Ru)),It--,c===n?a=void 0:(Rt=a,a=n),a!==n&&(c=un())!==n?o=a=[a,c]:(Rt=o,o=n),o!==n)for(;o!==n;)r.push(o),o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=n,0===It&&Vt(Ru)),It--,c===n?a=void 0:(Rt=a,a=n),a!==n&&(c=un())!==n?o=a=[a,c]:(Rt=o,o=n);else r=n;for(r===n&&(r=Rt,123===e.charCodeAt(Rt)?(o=i,Rt++):(o=n,0===It&&Vt(_e)),o!==n?(a=Dn(),125===e.charCodeAt(Rt)?(c=s,Rt++):(c=n,0===It&&Vt(ve)),c!==n?r=o=[o,a,c]:(Rt=r,r=n)):(Rt=r,r=n));r!==n;){if(t.push(r),r=[],o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=n,0===It&&Vt(Ru)),It--,c===n?a=void 0:(Rt=a,a=n),a!==n&&(c=un())!==n?o=a=[a,c]:(Rt=o,o=n),o!==n)for(;o!==n;)r.push(o),o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=n,0===It&&Vt(Ru)),It--,c===n?a=void 0:(Rt=a,a=n),a!==n&&(c=un())!==n?o=a=[a,c]:(Rt=o,o=n);else r=n;r===n&&(r=Rt,123===e.charCodeAt(Rt)?(o=i,Rt++):(o=n,0===It&&Vt(_e)),o!==n?(a=Dn(),125===e.charCodeAt(Rt)?(c=s,Rt++):(c=n,0===It&&Vt(ve)),c!==n?r=o=[o,a,c]:(Rt=r,r=n)):(Rt=r,r=n))}return e.substring(u,Rt)}function $n(){var e,u;for(e=[],(u=tn())===n&&(u=rn())===n&&(u=on());u!==n;)e.push(u),(u=tn())===n&&(u=rn())===n&&(u=on());return e}function Sn(){var u,t,r,o;return u=Rt,t=$n(),59===e.charCodeAt(Rt)?(r=oe,Rt++):(r=n,0===It&&Vt(Gu)),r!==n?u=t=[t,r]:(Rt=u,u=n),u===n&&(u=Rt,t=function(){var e,u;for(e=[],(u=tn())===n&&(u=an());u!==n;)e.push(u),(u=tn())===n&&(u=an());return e}(),(r=sn())===n&&(r=null),(o=rn())!==n?u=t=[t,r,o]:(Rt=u,u=n),u===n&&(u=Rt,t=$n(),r=function(){var u,t;return u=Rt,It++,e.length>Rt?(t=e.charAt(Rt),Rt++):(t=n,0===It&&Vt(Ne)),It--,t===n?u=void 0:(Rt=u,u=n),u}(),r!==n?u=t=[t,r]:(Rt=u,u=n))),u}var yn=u.reservedWords||[];if((t=a())!==n&&Rt===e.length)return t;throw t!==n&&Rt0){for(u=1,t=1;u0&&(this.functions.shift()(),setTimeout((function(){r.run()}),0))}},o={};r.add((function(){n.start(),o.totalInputSize=0,o.totalParseTime=0})),e.forEach((function(e){r.add(function(e){return function(){n.benchmarkStart(e),o.parser=peg.generate(n.readFile("../examples/"+e.id+".pegjs"),t),o.benchmarkInputSize=0,o.benchmarkParseTime=0}}(e)),e.tests.forEach((function(t){r.add(function(e,t){return function(){n.testStart(e,t);for(var r=n.readFile(e.id+"/"+t.file),a=0,i=0;i\n \n ").concat(null!==n?"":"","\n ").concat(t,"\n ").concat(null!==n?"":"","\n \n \n \n ").concat((r/1024).toFixed(2),"\n \n  kB\n \n \n \n ").concat(o.toFixed(2),"\n \n  ms\n \n \n \n ").concat((r/1024/(o/1e3)).toFixed(2),"\n \n  kB/s\n \n \n "))}var t=parseInt($("#run-count").val(),10),n={cache:$("#cache").is(":checked")};isNaN(t)||t<=0?alert("Number of runs must be a positive integer."):Runner.run(benchmarks,t,n,{readFile:function(e){return $.ajax({type:"GET",url:"https://raw.githubusercontent.com/peggyjs/peggy/".concat(BRANCH,"/benchmark/").concat(e),dataType:"text",async:!1}).responseText},testStart:function(){},testFinish:function(e,t,n,r){u("individual",t.title,"https://github.com/peggyjs/peggy/blob/".concat(BRANCH,"/benchmark/").concat(e.id,"/").concat(t.file),n,r)},benchmarkStart:function(u){e.append("\n \n \n ").concat(u.title,' \n \n "\n '))},benchmarkFinish:function(e,t,n){u("benchmark-total",e.title+" total",null,t,n)},start:function(){$("#run-count, #cache, #run").attr("disabled","disabled"),e.show(),$("#results-table tr").slice(1).remove()},finish:function(e,t){u("total","Total",null,e,t),$.scrollTo("max",{axis:"y",duration:500}),$("#run-count, #cache, #run").removeAttr("disabled")}})})),$(document).ready((function(){return $("#run").focus()})),browser_stub})); \ No newline at end of file diff --git a/docs/js/test-bundle.min.js b/docs/js/test-bundle.min.js index 874328ff..828fb24f 100644 --- a/docs/js/test-bundle.min.js +++ b/docs/js/test-bundle.min.js @@ -5,4 +5,4 @@ // Copyright (c) 2023- the Peggy authors // Licensed under the MIT License. -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("chai"),require("whatwg-url")):"function"==typeof define&&define.amd?define(["exports","chai","whatwg-url"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).browser={},e.chai,e.whatwgURL)}(this,(function(exports,require$$0$1,require$$0){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},sourceMap$1={},sourceMapGenerator$1={},base64Vlq$1={},base64$6={};const intToCharMap$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");base64$6.encode=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT$1,n>0&&(t|=VLQ_CONTINUATION_BIT$1),r+=base64$5.encode(t)}while(n>0);return r};var util$8={},urlBrowser=require$$0.URL;const URL$1=urlBrowser;function getArg$1(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$8.getArg=getArg$1;const supportsNullProto$1=!("__proto__"in Object.create(null));function identity$1(e){return e}function toSetString$1(e){return isProtoString$1(e)?"$"+e:e}function fromSetString$1(e){return isProtoString$1(e)?e.slice(1):e}function isProtoString$1(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp$1(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated$1(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp$1(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp$1(e.name,t.name)))))}function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}util$8.toSetString=supportsNullProto$1?identity$1:toSetString$1,util$8.fromSetString=supportsNullProto$1?identity$1:fromSetString$1,util$8.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated$1,util$8.parseSourceMapInput=parseSourceMapInput;const PROTOCOL$1="http:",PROTOCOL_AND_HOST$1=`${PROTOCOL$1}//host`;function createSafeHandler$1(e){return t=>{const r=getURLType$1(t),n=buildSafeBase$1(t),a=new URL$1(t,n);e(a);const o=a.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL$1.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST$1.length):computeRelativeURL$1(n,o)}}function withBase$1(e,t){return new URL$1(e,t).toString()}function buildUniqueSegment$1(e,t){let r=0;for(;;){const n=e+r++;if(-1===t.indexOf(n))return n}}function buildSafeBase$1(e){const t=e.split("..").length-1,r=buildUniqueSegment$1("p",e);let n=`${PROTOCOL_AND_HOST$1}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();r.length>0&&n.length>0&&r[0]===n[0];)r.shift(),n.shift();return n.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory$1=createSafeHandler$1((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),trimFilename=createSafeHandler$1((e=>{e.href=new URL$1(".",e.toString()).toString()})),normalize$1=createSafeHandler$1((e=>{}));function join$1(e,t){const r=getURLType$1(t),n=getURLType$1(e);if(e=ensureDirectory$1(e),"absolute"===r)return withBase$1(t,void 0);if("absolute"===n)return withBase$1(t,e);if("scheme-relative"===r)return normalize$1(t);if("scheme-relative"===n)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL$1.length);if("path-absolute"===r)return normalize$1(t);if("path-absolute"===n)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL_AND_HOST$1.length);const a=buildSafeBase$1(t+e);return computeRelativeURL$1(a,withBase$1(t,withBase$1(e,a)))}function relative$1(e,t){const r=relativeIfPossible$1(e,t);return"string"==typeof r?r:normalize$1(t)}function relativeIfPossible$1(e,t){if(getURLType$1(e)!==getURLType$1(t))return null;const r=buildSafeBase$1(e+t),n=new URL$1(e,r),a=new URL$1(t,r);try{new URL$1("",a.toString())}catch(e){return null}return a.protocol!==n.protocol||a.user!==n.user||a.password!==n.password||a.hostname!==n.hostname||a.port!==n.port?null:computeRelativeURL$1(n,a)}function computeSourceURL(e,t,r){e&&"path-absolute"===getURLType$1(t)&&(t=t.replace(/^\//,""));let n=normalize$1(t||"");return e&&(n=join$1(e,n)),r&&(n=join$1(trimFilename(r),n)),n}util$8.normalize=normalize$1,util$8.join=join$1,util$8.relative=relative$1,util$8.computeSourceURL=computeSourceURL;var arraySet$1={};let ArraySet$4=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const n=new e;for(let e=0,a=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||n==r&&o>=a||util$7.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$3=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter$1(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$7.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList$1.MappingList=MappingList$3;const base64VLQ$1=base64Vlq$1,util$6=util$8,ArraySet$3=arraySet$1.ArraySet,MappingList$2=mappingList$1.MappingList;let SourceMapGenerator$3=class e{constructor(e){e||(e={}),this._file=util$6.getArg(e,"file",null),this._sourceRoot=util$6.getArg(e,"sourceRoot",null),this._skipValidation=util$6.getArg(e,"skipValidation",!1),this._sources=new ArraySet$3,this._names=new ArraySet$3,this._mappings=new MappingList$2,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,n=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$6.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)})),t.sources.forEach((function(e){let a=e;null!==r&&(a=util$6.relative(r,e)),n._sources.has(a)||n._sources.add(a);const o=t.sourceContentFor(e);null!=o&&n.setSourceContent(e,o)})),n}addMapping(e){const t=util$6.getArg(e,"generated"),r=util$6.getArg(e,"original",null);let n=util$6.getArg(e,"source",null),a=util$6.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$6.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$6.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$6.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}const a=this._sourceRoot;null!=a&&(n=util$6.relative(a,n));const o=this._mappings.toArray().length>0?new ArraySet$3:this._sources,s=new ArraySet$3;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){const n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=r&&(t.source=util$6.join(r,t.source)),null!=a&&(t.source=util$6.relative(a,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const u=t.source;null==u||o.has(u)||o.add(u);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=util$6.join(r,t)),null!=a&&(t=util$6.relative(a,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,n,a=0,o=1,s=0,u=0,i=0,c=0,p="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$6.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ$1.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=base64VLQ$1.encode(n-c),c=n,e+=base64VLQ$1.encode(t.originalLine-1-u),u=t.originalLine-1,e+=base64VLQ$1.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ$1.encode(r-i),i=r)),p+=e}return p}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$6.relative(t,e));const r=util$6.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$3.prototype._version=3,sourceMapGenerator$1.SourceMapGenerator=SourceMapGenerator$3;var sourceMapConsumer={},binarySearch$1={};!function(e){function t(r,n,a,o,s,u){const i=Math.floor((n-r)/2)+r,c=s(a,o[i],!0);return 0===c?i:c>0?n-i>1?t(i,n,a,o,s,u):u==e.LEAST_UPPER_BOUND?n1?t(r,i,a,o,s,u):u==e.LEAST_UPPER_BOUND?i:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,n,a,o){if(0===n.length)return-1;let s=t(-1,n.length,r,n,a,o||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===a(n[s],n[s-1],!0);)--s;return s}}(binarySearch$1);var readWasmBrowserExports={},readWasmBrowser={get exports(){return readWasmBrowserExports},set exports(e){readWasmBrowserExports=e}};let mappingsWasm=null;readWasmBrowser.exports=function(){if("string"==typeof mappingsWasm)return fetch(mappingsWasm).then((e=>e.arrayBuffer()));if(mappingsWasm instanceof ArrayBuffer)return Promise.resolve(mappingsWasm);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},readWasmBrowserExports.initialize=e=>{mappingsWasm=e};const readWasm$1=readWasmBrowserExports;function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let cachedWasm=null;var wasm$1=function(){if(cachedWasm)return cachedWasm;const e=[];return cachedWasm=readWasm$1().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,r,n,a,o,s,u,i,c,p){const l=new Mapping;l.generatedLine=t+1,l.generatedColumn=r,n&&(l.lastGeneratedColumn=a-1),o&&(l.source=s,l.originalLine=u+1,l.originalColumn=i,c&&(l.name=p)),e[e.length-1](l)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}}))).then(null,(e=>{throw cachedWasm=null,e})),cachedWasm};const util$5=util$8,binarySearch=binarySearch$1,ArraySet$2=arraySet$1.ArraySet,readWasm=readWasmBrowserExports,wasm=wasm$1,INTERNAL=Symbol("smcInternal");let SourceMapConsumer$1=class e{constructor(e,t){return e==INTERNAL?Promise.resolve(this):_factory(e,t)}static initialize(e){readWasm.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return _factoryBSM(e,t)}static async with(t,r,n){const a=await new e(t,r);try{return await n(a)}finally{a.destroy()}}eachMapping(e,t,r){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};SourceMapConsumer$1.prototype._version=3,SourceMapConsumer$1.GENERATED_ORDER=1,SourceMapConsumer$1.ORIGINAL_ORDER=2,SourceMapConsumer$1.GREATEST_LOWER_BOUND=1,SourceMapConsumer$1.LEAST_UPPER_BOUND=2,sourceMapConsumer.SourceMapConsumer=SourceMapConsumer$1;class BasicSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let n=e;"string"==typeof e&&(n=util$5.parseSourceMapInput(e));const a=util$5.getArg(n,"version"),o=util$5.getArg(n,"sources").map(String),s=util$5.getArg(n,"names",[]),u=util$5.getArg(n,"sourceRoot",null),i=util$5.getArg(n,"sourcesContent",null),c=util$5.getArg(n,"mappings"),p=util$5.getArg(n,"file",null);if(a!=r._version)throw new Error("Unsupported version: "+a);return r._sourceLookupCache=new Map,r._names=ArraySet$2.fromArray(s.map(String),!0),r._sources=ArraySet$2.fromArray(o,!0),r._absoluteSources=ArraySet$2.fromArray(r._sources.toArray().map((function(e){return util$5.computeSourceURL(u,e,t)})),!0),r.sourceRoot=u,r.sourcesContent=i,r._mappings=c,r._sourceMapURL=t,r.file=p,r._computedColumnSpans=!1,r._mappingsPtr=0,r._wasm=null,wasm().then((e=>(r._wasm=e,r)))}))}_findSourceIndex(e){const t=this._sourceLookupCache.get(e);if("number"==typeof t)return t;const r=util$5.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(r)){const t=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,t),t}const n=util$5.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(n)){const t=this._absoluteSources.indexOf(n);return this._sourceLookupCache.set(e,t),t}return-1}static fromSourceMap(e,t){return new BasicSourceMapConsumer(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,r=this._wasm.exports.allocate_mappings(t),n=new Uint8Array(this._wasm.exports.memory.buffer,r,t);for(let r=0;r{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(n,t)}),(()=>{switch(a){case SourceMapConsumer$1.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case SourceMapConsumer$1.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=util$5.getArg(e,"source");const r=util$5.getArg(e,"line"),n=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(r<1)throw new Error("Line numbers must be >= 1");if(n<0)throw new Error("Column numbers must be >= 0");const a=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),a.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,r-1,"column"in e,n)})),a}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:util$5.getArg(e,"line"),generatedColumn:util$5.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let r,n=util$5.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==n&&(n=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>r=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,n)})),r&&r.generatedLine===t.generatedLine){let e=util$5.getArg(r,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=util$5.getArg(r,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let t=util$5.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const r={source:t,originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")};if(r.originalLine<1)throw new Error("Line numbers must be >= 1");if(r.originalColumn<0)throw new Error("Column numbers must be >= 0");let n,a=util$5.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==a&&(a=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>n=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),r.source,r.originalLine-1,r.originalColumn,a)})),n&&n.source===r.source){let e=n.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:util$5.getArg(n,"generatedLine",null),column:util$5.getArg(n,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$1,sourceMapConsumer.BasicSourceMapConsumer=BasicSourceMapConsumer;class IndexedSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let n=e;"string"==typeof e&&(n=util$5.parseSourceMapInput(e));const a=util$5.getArg(n,"version"),o=util$5.getArg(n,"sections");if(a!=r._version)throw new Error("Unsupported version: "+a);let s={line:-1,column:0};return Promise.all(o.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const r=util$5.getArg(e,"offset"),n=util$5.getArg(r,"line"),a=util$5.getArg(r,"column");if(n({generatedOffset:{generatedLine:n+1,generatedColumn:a+1},consumer:e})))}))).then((e=>(r._sections=e,r)))}))}get sources(){const e=[];for(let t=0;t=0?this._sections[t]:null,n=t>=0&&t+1=0?this._sections[t]:null,n=t>=0&&t+1{const t=r.generatedOffset.generatedLine-1,a=r.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=a,"number"==typeof e.lastColumn&&(e.lastColumn+=a)),e.lastColumn===1/0&&n&&e.line===n.generatedOffset.generatedLine&&(e.lastColumn=n.generatedOffset.generatedColumn-2),e.line+=t,e})):[]}eachMapping(e,t,r){this._sections.forEach(((n,a)=>{const o=a+1=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode$1]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let r=0,n=this.children.length;r0){for(t=[],r=0;r0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$9.build({rule:function(e){var t,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=o(e.expression),++r>6)throw new GrammarError$4("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:n,choice:function(e){return e.match=a(e.alternatives,!0)},action:n,sequence:function(e){return e.match=a(e.elements,!1)},labeled:n,text:n,simple_and:n,simple_not:function(e){return e.match=-o(e.expression)},optional:r,zero_or_more:r,one_or_more:n,group:n,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$6.findRule(e,t.name);return t.match=o(r)},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$4=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a1?d(SOMETIMES_MATCH,[op$1.IF_ERROR],f([op$1.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=l(t.env),n="sequence"!==e.expression.type||0===e.expression.elements.length,a=b(e.expression,{sp:t.sp+(n?1:0),env:r,action:e}),o=0|e.expression.match,s=n&&o!==NEVER_MATCH?c(!1,Object.keys(r),e):null;return n?f([op$1.PUSH_CURR_POS],a,d(o,[op$1.IF_NOT_ERROR],f([op$1.LOAD_SAVED_POS,1],g(s,1,r,t.sp+2)),[]),[op$1.NIP]):a},sequence:function(e,t){return f([op$1.PUSH_CURR_POS],function t(r,n){if(r.length>0){var a=e.elements.length-r.length+1;return f(b(r[0],{sp:n.sp,env:n.env,pluck:n.pluck,action:null}),d(0|r[0].match,[op$1.IF_NOT_ERROR],t(r.slice(1),{sp:n.sp+1,env:n.env,pluck:n.pluck,action:n.action}),f(a>1?[op$1.POP_N,a]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(n.pluck.length>0)return f([op$1.PLUCK,e.elements.length+1,n.pluck.length],n.pluck.map((function(e){return n.sp-e})));if(n.action){var o=c(!1,Object.keys(n.env),n.action);return f([op$1.LOAD_SAVED_POS,e.elements.length],g(o,e.elements.length+1,n.env,n.sp))}return f([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,r){var n=r.env,a=e.label,o=r.sp+1;a&&(n=l(r.env),r.env[e.label]=o),e.pick&&r.pluck.push(o);var s=b(e.expression,{sp:r.sp,env:n,action:null});return a&&e.labelLocation&&t&&"source-and-map"===t.output?f([op$1.SOURCE_MAP_LABEL_PUSH,o,u(a),p(e.labelLocation)],s,[op$1.SOURCE_MAP_LABEL_POP,o]):s},text:function(e,t){return f([op$1.PUSH_CURR_POS],b(e.expression,{sp:t.sp+1,env:l(t.env),action:null}),d(0|e.match,[op$1.IF_NOT_ERROR],f([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,t){return h(e.expression,!1,t)},simple_not:function(e,t){return h(e.expression,!0,t)},optional:function(e,t){return f(b(e.expression,{sp:t.sp,env:l(t.env),action:null}),d(-(0|e.expression.match),[op$1.IF_ERROR],f([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=b(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return f([op$1.PUSH_EMPTY_ARRAY],r,$(r),[op$1.POP])},one_or_more:function(e,t){var r=b(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return f([op$1.PUSH_EMPTY_ARRAY],r,d(0|e.expression.match,[op$1.IF_NOT_ERROR],f($(r),[op$1.POP]),f([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},group:function(e,t){return b(e.expression,{sp:t.sp,env:l(t.env),action:null})},semantic_and:function(e,t){return m(e,!1,t)},semantic_not:function(e,t){return m(e,!0,t)},rule_ref:function(t){return[op$1.RULE,asts$5.indexOfRule(e,t.name)]},literal:function(e){if(e.value.length>0){var t=0|e.match,r=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?u(e.ignoreCase?e.value.toLowerCase():e.value):null,n=t!==ALWAYS_MATCH?i({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return d(t,e.ignoreCase?[op$1.MATCH_STRING_IC,r]:[op$1.MATCH_STRING,r],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,r],[op$1.FAIL,n])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var t=0|e.match,r=t===SOMETIMES_MATCH?function(e){var t={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},r=JSON.stringify(t),a=n.findIndex((function(e){return JSON.stringify(e)===r}));return-1===a?n.push(t)-1:a}(e):null,a=t!==ALWAYS_MATCH?i({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return d(t,[op$1.MATCH_CHAR_CLASS,r],[op$1.ACCEPT_N,1],[op$1.FAIL,a])},any:function(e){var t=0|e.match,r=t!==ALWAYS_MATCH?i({type:"any"}):null;return d(t,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,r])}},t&&"source-and-map"===t.output&&Object.entries(A).forEach((function(e){var t=e[0],r=e[1];A[t]=function(e){for(var t=[],n=1;n>>=VLQ_BASE_SHIFT,n>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$3.encode(t)}while(n>0);return r};var util$3={};function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),n=buildSafeBase(t),a=new URL(t,n);e(a);const o=a.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(n,o)}}function withBase(e,t){return new URL(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const n=e+r++;if(-1===t.indexOf(n))return n}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let n=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!n[n.length-1]&&n.pop();r.length>0&&n.length>0&&r[0]===n[0];)r.shift(),n.shift();return n.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),n=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===n)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===n)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const a=buildSafeBase(t+e);return computeRelativeURL(a,withBase(t,withBase(e,a)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),n=new URL(e,r),a=new URL(t,r);try{new URL("",a.toString())}catch(e){return null}return a.protocol!==n.protocol||a.user!==n.user||a.password!==n.password||a.hostname!==n.hostname||a.port!==n.port?null:computeRelativeURL(n,a)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const n=new e;for(let e=0,a=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||n==r&&o>=a||util$2.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,n=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$1.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)})),t.sources.forEach((function(e){let a=e;null!=r&&(a=util$1.relative(r,e)),n._sources.has(a)||n._sources.add(a);const o=t.sourceContentFor(e);null!=o&&n.setSourceContent(e,o)})),n}addMapping(e){const t=util$1.getArg(e,"generated"),r=util$1.getArg(e,"original",null);let n=util$1.getArg(e,"source",null),a=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r&&r.line,originalColumn:r&&r.column,source:n,name:a})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$1.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}const a=this._sourceRoot;null!=a&&(n=util$1.relative(a,n));const o=this._mappings.toArray().length>0?new ArraySet:this._sources,s=new ArraySet;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){const n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=r&&(t.source=util$1.join(r,t.source)),null!=a&&(t.source=util$1.relative(a,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}const u=t.source;null==u||o.has(u)||o.add(u);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=util$1.join(r,t)),null!=a&&(t=util$1.relative(a,t)),this.setSourceContent(t,n))}),this)}_validateMapping(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}_serializeMappings(){let e,t,r,n,a=0,o=1,s=0,u=0,i=0,c=0,p="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$1.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=base64VLQ.encode(n-c),c=n,e+=base64VLQ.encode(t.originalLine-1-u),u=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-i),i=r)),p+=e}return p}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$1.relative(t,e));const r=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$3=class e{constructor(e,t,r,n,a){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==a?null:a,this[isSourceNode]=!0,null!=n&&this.add(n)}static fromStringWithSourceMap(t,r,n){const a=new e,o=t.split(REGEX_NEWLINE);let s=0;const u=function(){return e()+(e()||"");function e(){return s=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let r=0,n=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.prototype.sourceNode=function(e,t,r){var n=GrammarLocation$3.offsetStart(e);return new SourceNode$2(n.line,n.column?n.column-1:null,String(e.source),t,r)},e.prototype.push=function(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);var t=this.labels[this.sp],r=[this.name(this.sp)," = ",e,";"];if(t){if(this.sourceMapStack.length){var n=this.sourceNode(t.location,r.splice(0,2),t.label),a=this.sourceMapPopInternal(),o=a.parts,s=a.location,u=s.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop(),t=e[0],r=e[1],n=e[2],a=t.splice(r).map((function(e){return e instanceof SourceNode$2?e:e+"\n"}));if(a.length){var o=GrammarLocation$3.offsetStart(n);t.push(new SourceNode$2(o.line,o.column-1,String(n.source),a))}return{parts:t,location:n}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],a+=t[(3&e[o])<<4|e[o+1]>>4],a+=t[(15&e[o+1])<<2|e[o+2]>>6],a+=t[63&e[o+2]];return 1===r?(a+=t[e[n]>>2],a+=t[(3&e[n])<<4],a+="=="):2===r&&(a+=t[e[n]>>2],a+=t[(3&e[n])<<4|e[n+1]>>4],a+=t[(15&e[n+1])<<2],a+="="),a}utils$1.hex=hex$1,utils$1.stringEscape=stringEscape$2,utils$1.regexpClassEscape=regexpClassEscape$2,utils$1.base64=base64$2;var __spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a0&&(r.forEach((function(e){o.push("var "+e+' = require("'+stringEscape$1(t.dependencies[e])+'");')})),o.push("")),o.push(e,"","module.exports = "+a()+";"),o},es:function(){var r=Object.keys(t.dependencies),a=n();return a.push(""),r.length>0&&(r.forEach((function(e){a.push("import "+e+' from "'+stringEscape$1(t.dependencies[e])+'";')})),a.push("")),a.push(e,"","export {"," peg$SyntaxError as SyntaxError,",t.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),a},amd:function(){var o=Object.keys(t.dependencies),s="["+o.map((function(e){return t.dependencies[e]})).map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",u=o.join(", ");return __spreadArray$3(__spreadArray$3([],n(),!0),["define("+s+", function("+u+") {",' "use strict";',"",e,"",r("return "+a()+";"),"});"],!1)},globals:function(){return __spreadArray$3(__spreadArray$3([],n(),!0),["(function(root) {",' "use strict";',"",e,"",r("root."+t.exportVar+" = "+a()+";"),"})(this);"],!1)},umd:function(){var o=Object.keys(t.dependencies),s=o.map((function(e){return t.dependencies[e]})),u="["+s.map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",i=s.map((function(e){return'require("'+stringEscape$1(e)+'")'})).join(", "),c=o.join(", "),p=n();return p.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+u+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+i+");"),null!==t.exportVar&&p.push(" } else {"," root."+t.exportVar+" = factory();"),p.push(" }","})(this, function("+c+") {",' "use strict";',"",e,"",r("return "+a()+";"),"});"),p}},s=o[t.format]();return new SourceNode$1(null,null,t.grammarSource,s.map((function(e){return e instanceof SourceNode$1?e:e+"\n"})))}(function(){var c=[];e.topLevelInitializer&&(c.push(i(e.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),t.trace&&c.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");var p="{ "+t.allowedStartRules.map((function(e){return e+": "+u(e)})).join(", ")+" }",l=u(t.allowedStartRules[0]);return c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+p+";"," var peg$startRuleFunction = "+l+";","",new SourceNode$1(null,null,t.grammarSource,[e.literals.map((function(e,t){return" var "+n(t)+' = "'+stringEscape$1(e)+'";'})).concat("",e.classes.map((function(e,t){return" var "+a(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape$1(e[0])+"-"+regexpClassEscape$1(e[1]):regexpClassEscape$1(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",e.expectations.map((function(e,t){return" var "+o(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape$1(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape$1(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape$1(e[0])+'", "'+stringEscape$1(e[1])+'"]':'"'+stringEscape$1(e)+'"'})).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"}))).concat("").join("\n"),e.functions.map((function(e,t){return wrapInSourceNode("\n var ".concat(s(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),t.cache&&c.push(" var peg$resultsCache = {};",""),t.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((function(i){c.push.apply(c,r(function(i){var c=[],p=new Stack$1(i.name,"s","var",i.bytecode),l=function t(c){var l,f=0,d=c.length,g=[];function h(e,n){var a,o,s=n+3,u=c[f+s-2],i=c[f+s-1];p.checkedIf(f,(function(){f+=s,a=t(c.slice(f,f+u)),f+=u}),i>0?function(){o=t(c.slice(f,f+i)),f+=i}:null),g.push("if ("+e+") {"),g.push.apply(g,r(a)),i>0&&(g.push("} else {"),g.push.apply(g,r(o))),g.push("}")}function m(e){var n,a=c[f+2-1];p.checkedLoop(f,(function(){f+=2,n=t(c.slice(f,f+a)),f+=a})),g.push("while ("+e+") {"),g.push.apply(g,r(n)),g.push("}")}function $(){var e=c[f+4-1],t=s(c[f+1])+"("+c.slice(f+4,f+4+e).map((function(e){return p.index(e)})).join(", ")+")";p.pop(c[f+2]),g.push(p.push(t)),f+=4+e}for(;f peg$currPos",0);break;case op.MATCH_STRING:h(e.literals[c[f+1]].length>1?"input.substr(peg$currPos, "+e.literals[c[f+1]].length+") === "+n(c[f+1]):"input.charCodeAt(peg$currPos) === "+e.literals[c[f+1]].charCodeAt(0),1);break;case op.MATCH_STRING_IC:h("input.substr(peg$currPos, "+e.literals[c[f+1]].length+").toLowerCase() === "+n(c[f+1]),1);break;case op.MATCH_CHAR_CLASS:h(a(c[f+1])+".test(input.charAt(peg$currPos))",1);break;case op.ACCEPT_N:g.push(p.push(c[f+1]>1?"input.substr(peg$currPos, "+c[f+1]+")":"input.charAt(peg$currPos)")),g.push(c[f+1]>1?"peg$currPos += "+c[f+1]+";":"peg$currPos++;"),f+=2;break;case op.ACCEPT_STRING:g.push(p.push(n(c[f+1]))),g.push(e.literals[c[f+1]].length>1?"peg$currPos += "+e.literals[c[f+1]].length+";":"peg$currPos++;"),f+=2;break;case op.FAIL:g.push(p.push("peg$FAILED")),g.push("if (peg$silentFails === 0) { peg$fail("+o(c[f+1])+"); }"),f+=2;break;case op.LOAD_SAVED_POS:g.push("peg$savedPos = "+p.index(c[f+1])+";"),f+=2;break;case op.UPDATE_SAVED_POS:g.push("peg$savedPos = peg$currPos;"),f++;break;case op.CALL:$();break;case op.RULE:g.push(p.push(u(e.rules[c[f+1]].name)+"()")),f+=2;break;case op.SILENT_FAILS_ON:g.push("peg$silentFails++;"),f++;break;case op.SILENT_FAILS_OFF:g.push("peg$silentFails--;"),f++;break;case op.SOURCE_MAP_PUSH:p.sourceMapPush(g,e.locations[c[f+1]]),f+=2;break;case op.SOURCE_MAP_POP:p.sourceMapPop(),f++;break;case op.SOURCE_MAP_LABEL_PUSH:p.labels[c[f+1]]={label:e.literals[c[f+2]],location:e.locations[c[f+3]]},f+=4;break;case op.SOURCE_MAP_LABEL_POP:delete p.labels[c[f+1]],f+=2;break;default:throw new Error("Invalid opcode: "+c[f]+".",{rule:i.name,bytecode:c})}return g}(i.bytecode);return c.push(wrapInSourceNode("function ",u(i.name),i.nameLocation,"() {\n",i.name)),t.trace&&c.push(" var startPos = peg$currPos;"),c.push(r(p.defines())),c.push.apply(c,r(function(r,n){var a=[];return a.push(""),t.trace&&a.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+r+","," location: peg$computeLocation(startPos, startPos, true)","});",""),t.cache&&(a.push("var key = peg$currPos * "+e.rules.length+" + "+n+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),t.trace&&a.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+r+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+r+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),a.push(" return cached.result;","}","")),a}('"'+stringEscape$1(i.name)+'"',asts$4.indexOfRule(e,i.name)))),c.push.apply(c,r(l)),c.push.apply(c,r(function(e,r){var n=[];return t.cache&&n.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+r+" };"),t.trace&&n.push("","if ("+r+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+r+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),n.push("","return "+r+";"),n}('"'+stringEscape$1(i.name)+'"',p.result()))),c.push("}"),c}(i))),c.push("")})),e.initializer&&(c.push(i(e.initializer)),c.push("")),c.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new SourceNode$1(null,null,t.grammarSource,c.map((function(e){return e instanceof SourceNode$1?e:e+"\n"})))}())}var generateJs=generateJS$1,asts$3=asts_1,visitor$7=visitor_1;function removeProxyRules$1(e,t,r){var n=[];e.rules.forEach((function(a,o){var s;"rule"===(s=a).type&&"rule_ref"===s.expression.type&&(function(e,t,n){visitor$7.build({rule_ref:function(a){a.name===t&&(a.name=n,r.info('Proxy rule "'.concat(t,'" replaced by the rule "').concat(n,'"'),a.location,[{message:"This rule will be used",location:asts$3.findRule(e,n).nameLocation}]))}})(e)}(e,a.name,a.expression.name),-1===t.allowedStartRules.indexOf(a.name)&&n.push(o))})),n.reverse(),n.forEach((function(t){e.rules.splice(t,1)}))}var removeProxyRules_1=removeProxyRules$1,visitor$6=visitor_1;function reportDuplicateLabels$1(e,t,r){function n(e){var t={};return Object.keys(e).forEach((function(r){t[r]=e[r]})),t}function a(e,t){o(e.expression,n(t))}var o=visitor$6.build({rule:function(e){o(e.expression,{})},choice:function(e,t){e.alternatives.forEach((function(e){o(e,n(t))}))},action:a,labeled:function(e,t){var n=e.label;n&&Object.prototype.hasOwnProperty.call(t,n)&&r.error('Label "'.concat(e.label,'" is already defined'),e.labelLocation,[{message:"Original label location",location:t[n]}]),o(e.expression,t),t[e.label]=e.labelLocation},text:a,simple_and:a,simple_not:a,optional:a,zero_or_more:a,one_or_more:a,group:a});o(e)}var reportDuplicateLabels_1=reportDuplicateLabels$1,visitor$5=visitor_1;function reportDuplicateRules$1(e,t,r){var n={};visitor$5.build({rule:function(e){Object.prototype.hasOwnProperty.call(n,e.name)?r.error('Rule "'.concat(e.name,'" is already defined'),e.nameLocation,[{message:"Original rule location",location:n[e.name]}]):n[e.name]=e.nameLocation}})(e)}var reportDuplicateRules_1=reportDuplicateRules$1,asts$2=asts_1,visitor$4=visitor_1;function reportInfiniteRecursion$1(e,t,r){var n=[],a=[],o=visitor$4.build({rule:function(e){n.push(e.name),o(e.expression),n.pop()},sequence:function(t){t.elements.every((function(t){return o(t),!asts$2.alwaysConsumesOnSuccess(e,t)}))},rule_ref:function(t){a.push(t);var s=asts$2.findRule(e,t.name);if(-1!==n.indexOf(t.name))return n.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+n.join(" -> ")+")",s.nameLocation,a.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));s&&o(s),a.pop()}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$1=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){visitor$3.build({zero_or_more:function(t){asts$1.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$1.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)}})(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var n=visitor$1.build({action:function(e){n(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),n(e.expression)}});n(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a0:e&&"function"==typeof e.offset}var compiler$2={visitor:visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");var session=new Session$1(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(t.name)),t(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64$1(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$2,OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,n){var a=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(a,peg$SyntaxError.prototype),a.expected=t,a.found=r,a.location=n,a.name="SyntaxError",a}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,n={},a=(t=void 0!==t?t:{}).grammarSource,o={Grammar:Pr},s=Pr,u="{",i="}",c="=",p="/",l="@",f=":",d="$",g="&",h="!",m="?",$="*",A="+",b="(",x=")",E="\t",v="\v",C="\f",y=" ",_=" ",S="\ufeff",F="\n",w="\r\n",B="\r",D="\u2028",L="\u2029",P="/*",T="*/",R="//",O="_",M="\\",k="‌",I="‍",j="i",N='"',U="'",q="[",G="^",H="]",z="-",W="0",V="b",Y="f",Q="n",J="r",X="t",Z="v",K="x",ee="u",te=".",re=";",ne=/^[\n\r\u2028\u2029]/,ae=/^[0-9]/,oe=/^[0-9a-f]/i,se=/^[{}]/,ue=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,ie=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,ce=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,pe=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,le=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,fe=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,de=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,ge=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,he=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,me=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,$e=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=Sr("{",!1),be=Sr("}",!1),xe=Sr("=",!1),Ee=Sr("/",!1),ve=Sr("@",!1),Ce=Sr(":",!1),ye=Sr("$",!1),_e=Sr("&",!1),Se=Sr("!",!1),Fe=Sr("?",!1),we=Sr("*",!1),Be=Sr("+",!1),De=Sr("(",!1),Le=Sr(")",!1),Pe={type:"any"},Te=wr("whitespace"),Re=Sr("\t",!1),Oe=Sr("\v",!1),Me=Sr("\f",!1),ke=Sr(" ",!1),Ie=Sr(" ",!1),je=Sr("\ufeff",!1),Ne=Fr(["\n","\r","\u2028","\u2029"],!1,!1),Ue=wr("end of line"),qe=Sr("\n",!1),Ge=Sr("\r\n",!1),He=Sr("\r",!1),ze=Sr("\u2028",!1),We=Sr("\u2029",!1),Ve=wr("comment"),Ye=Sr("/*",!1),Qe=Sr("*/",!1),Je=Sr("//",!1),Xe=wr("identifier"),Ze=Sr("_",!1),Ke=Sr("\\",!1),et=Sr("‌",!1),tt=Sr("‍",!1),rt=wr("literal"),nt=Sr("i",!1),at=wr("string"),ot=Sr('"',!1),st=Sr("'",!1),ut=wr("character class"),it=Sr("[",!1),ct=Sr("^",!1),pt=Sr("]",!1),lt=Sr("-",!1),ft=Sr("0",!1),dt=Sr("b",!1),gt=Sr("f",!1),ht=Sr("n",!1),mt=Sr("r",!1),$t=Sr("t",!1),At=Sr("v",!1),bt=Sr("x",!1),xt=Sr("u",!1),Et=Fr([["0","9"]],!1,!1),vt=Fr([["0","9"],["a","f"]],!1,!0),Ct=Sr(".",!1),yt=wr("code block"),_t=Fr(["{","}"],!1,!1),St=Fr([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Ft=Fr([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),wt=Fr(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Bt=Fr(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),Dt=Fr([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Lt=Fr(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Pt=Fr([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Tt=Fr([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Rt=Fr([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Ot=Fr(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),Mt=Fr([" "," "," ",[" "," "]," "," "," "],!1,!1),kt=Sr(";",!1),It=function(e,t,r){return{type:"grammar",topLevelInitializer:e,initializer:t,rules:r,location:yr()}},jt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:yr()}},Nt=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:yr()}},Ut=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:yr()}:r,location:yr()}},qt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:yr()}:e},Gt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:yr()}:e},Ht=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:yr()}:e},zt=function(e,t,r){return r.type.startsWith("semantic_")&&_r('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==t?t[0]:null,labelLocation:null!==t?t[1]:e,pick:!0,expression:r,location:yr()}},Wt=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:yr()}},Vt=function(){return yr()},Yt=function(e){return dn.indexOf(e[0])>=0&&_r("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},Qt=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:yr()}},Jt=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:yr()}},Xt=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:yr()}:e},Zt=function(e){return{type:"rule_ref",name:e[0],location:yr()}},Kt=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:yr()}},er=function(e,t){return[e+t.join(""),yr()]},tr=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:yr()}},rr=function(e){return e.join("")},nr=function(e){return e.join("")},ar=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:yr()}},or=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&_r("Invalid character range: "+e.substring(br,Ar)+"."),[t,r]},sr=function(){return""},ur=function(){return"\0"},ir=function(){return"\b"},cr=function(){return"\f"},pr=function(){return"\n"},lr=function(){return"\r"},fr=function(){return"\t"},dr=function(){return"\v"},gr=function(e){return String.fromCharCode(parseInt(e,16))},hr=function(e){return String.fromCharCode(parseInt(e,16))},mr=function(){return{type:"any",location:yr()}},$r=function(e){return[e,yr()]},Ar=0,br=0,xr=[{line:1,column:1}],Er=0,vr=[],Cr=0;if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=o[t.startRule]}function yr(){return Dr(br,Ar)}function _r(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Dr(br,Ar))}function Sr(e,t){return{type:"literal",text:e,ignoreCase:t}}function Fr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function wr(e){return{type:"other",description:e}}function Br(t){var r,n=xr[t];if(n)return n;for(r=t-1;!xr[r];)r--;for(n={line:(n=xr[r]).line,column:n.column};rEr&&(Er=Ar,vr=[]),vr.push(e))}function Pr(){var t,r,a,o,s,c;if(t=Ar,ln(),r=Ar,a=function(){var t,r,a,o;return t=Ar,123===e.charCodeAt(Ar)?(r=u,Ar++):(r=n,0===Cr&&Lr(Ae)),r!==n&&(a=cn())!==n?(125===e.charCodeAt(Ar)?(o=i,Ar++):(o=n,0===Cr&&Lr(be)),o!==n&&fn()!==n?(br=t,t=jt(a)):(Ar=t,t=n)):(Ar=t,t=n),t}(),a!==n?(o=ln(),r=a):(Ar=r,r=n),r===n&&(r=null),a=Ar,o=function(){var e,t;return e=Ar,(t=cn())!==n&&fn()!==n?(br=e,e=Nt(t)):(Ar=e,e=n),e}(),o!==n?(s=ln(),a=o):(Ar=a,a=n),a===n&&(a=null),o=[],s=Ar,(c=Tr())!==n?(ln(),s=c):(Ar=s,s=n),s!==n)for(;s!==n;)o.push(s),s=Ar,(c=Tr())!==n?(ln(),s=c):(Ar=s,s=n);else o=n;return o!==n?(br=t,t=It(r,a,o)):(Ar=t,t=n),t}function Tr(){var t,r,a,o,s;return t=Ar,(r=Yr())!==n?(ln(),a=Ar,(o=Xr())!==n?(ln(),a=o):(Ar=a,a=n),a===n&&(a=null),61===e.charCodeAt(Ar)?(o=c,Ar++):(o=n,0===Cr&&Lr(xe)),o!==n?(ln(),(s=Rr())!==n&&fn()!==n?(br=t,t=Ut(r,a,s)):(Ar=t,t=n)):(Ar=t,t=n)):(Ar=t,t=n),t}function Rr(){var t,r,a,o,s,u;if(t=Ar,(r=Or())!==n){for(a=[],o=Ar,ln(),47===e.charCodeAt(Ar)?(s=p,Ar++):(s=n,0===Cr&&Lr(Ee)),s!==n?(ln(),(u=Or())!==n?o=u:(Ar=o,o=n)):(Ar=o,o=n);o!==n;)a.push(o),o=Ar,ln(),47===e.charCodeAt(Ar)?(s=p,Ar++):(s=n,0===Cr&&Lr(Ee)),s!==n?(ln(),(u=Or())!==n?o=u:(Ar=o,o=n)):(Ar=o,o=n);br=t,t=qt(r,a)}else Ar=t,t=n;return t}function Or(){var e,t,r,a;return e=Ar,t=function(){var e,t,r,a,o;if(e=Ar,(t=Mr())!==n){for(r=[],a=Ar,ln(),(o=Mr())!==n?a=o:(Ar=a,a=n);a!==n;)r.push(a),a=Ar,ln(),(o=Mr())!==n?a=o:(Ar=a,a=n);br=e,e=Ht(t,r)}else Ar=e,e=n;return e}(),t!==n?(r=Ar,ln(),(a=cn())!==n?r=a:(Ar=r,r=n),r===n&&(r=null),br=e,e=Gt(t,r)):(Ar=e,e=n),e}function Mr(){var t,r,a,o;return t=Ar,r=function(){var t,r;return t=Ar,64===e.charCodeAt(Ar)?(r=l,Ar++):(r=n,0===Cr&&Lr(ve)),r!==n&&(br=t,r=Vt()),t=r}(),r!==n?((a=kr())===n&&(a=null),(o=Ir())!==n?(br=t,t=zt(r,a,o)):(Ar=t,t=n)):(Ar=t,t=n),t===n&&(t=Ar,(r=kr())!==n?(a=ln(),(o=Ir())!==n?(br=t,t=Wt(r,o)):(Ar=t,t=n)):(Ar=t,t=n),t===n&&(t=Ir())),t}function kr(){var t,r,a;return t=Ar,(r=Yr())!==n?(ln(),58===e.charCodeAt(Ar)?(a=f,Ar++):(a=n,0===Cr&&Lr(Ce)),a!==n?(br=t,t=Yt(r)):(Ar=t,t=n)):(Ar=t,t=n),t}function Ir(){var t,r,a;return t=Ar,r=function(){var t;return 36===e.charCodeAt(Ar)?(t=d,Ar++):(t=n,0===Cr&&Lr(ye)),t===n&&(38===e.charCodeAt(Ar)?(t=g,Ar++):(t=n,0===Cr&&Lr(_e)),t===n&&(33===e.charCodeAt(Ar)?(t=h,Ar++):(t=n,0===Cr&&Lr(Se)))),t}(),r!==n?(ln(),(a=jr())!==n?(br=t,t=Qt(r,a)):(Ar=t,t=n)):(Ar=t,t=n),t===n&&(t=jr()),t}function jr(){var t,r,a;return t=Ar,(r=Nr())!==n?(ln(),a=function(){var t;return 63===e.charCodeAt(Ar)?(t=m,Ar++):(t=n,0===Cr&&Lr(Fe)),t===n&&(42===e.charCodeAt(Ar)?(t=$,Ar++):(t=n,0===Cr&&Lr(we)),t===n&&(43===e.charCodeAt(Ar)?(t=A,Ar++):(t=n,0===Cr&&Lr(Be)))),t}(),a!==n?(br=t,t=Jt(r,a)):(Ar=t,t=n)):(Ar=t,t=n),t===n&&(t=Nr()),t}function Nr(){var t,r,a,o;return t=function(){var t,r,a;return Cr++,t=Ar,(r=Xr())!==n?(105===e.charCodeAt(Ar)?(a=j,Ar++):(a=n,0===Cr&&Lr(nt)),a===n&&(a=null),br=t,t=tr(r,a)):(Ar=t,t=n),Cr--,t===n&&(r=n,0===Cr&&Lr(rt)),t}(),t===n&&(t=function(){var t,r,a,o,s,u;if(Cr++,t=Ar,91===e.charCodeAt(Ar)?(r=q,Ar++):(r=n,0===Cr&&Lr(it)),r!==n){for(94===e.charCodeAt(Ar)?(a=G,Ar++):(a=n,0===Cr&&Lr(ct)),a===n&&(a=null),o=[],(s=en())===n&&(s=tn());s!==n;)o.push(s),(s=en())===n&&(s=tn());93===e.charCodeAt(Ar)?(s=H,Ar++):(s=n,0===Cr&&Lr(pt)),s!==n?(105===e.charCodeAt(Ar)?(u=j,Ar++):(u=n,0===Cr&&Lr(nt)),u===n&&(u=null),br=t,t=ar(a,o,u)):(Ar=t,t=n)}else Ar=t,t=n;return Cr--,t===n&&(r=n,0===Cr&&Lr(ut)),t}(),t===n&&(t=function(){var t,r;return t=Ar,46===e.charCodeAt(Ar)?(r=te,Ar++):(r=n,0===Cr&&Lr(Ct)),r!==n&&(br=t,r=mr()),t=r}(),t===n&&(t=function(){var t,r,a,o,s,u,i;return t=Ar,(r=Yr())!==n?(a=Ar,Cr++,o=Ar,s=ln(),u=Ar,(i=Xr())!==n?u=i=[i,ln()]:(Ar=u,u=n),u===n&&(u=null),61===e.charCodeAt(Ar)?(i=c,Ar++):(i=n,0===Cr&&Lr(xe)),i!==n?o=s=[s,u,i]:(Ar=o,o=n),Cr--,o===n?a=void 0:(Ar=a,a=n),a!==n?(br=t,t=Zt(r)):(Ar=t,t=n)):(Ar=t,t=n),t}(),t===n&&(t=function(){var t,r,a;return t=Ar,r=function(){var t;return 38===e.charCodeAt(Ar)?(t=g,Ar++):(t=n,0===Cr&&Lr(_e)),t===n&&(33===e.charCodeAt(Ar)?(t=h,Ar++):(t=n,0===Cr&&Lr(Se))),t}(),r!==n?(ln(),(a=cn())!==n?(br=t,t=Kt(r,a)):(Ar=t,t=n)):(Ar=t,t=n),t}(),t===n&&(t=Ar,40===e.charCodeAt(Ar)?(r=b,Ar++):(r=n,0===Cr&&Lr(De)),r!==n?(ln(),(a=Rr())!==n?(ln(),41===e.charCodeAt(Ar)?(o=x,Ar++):(o=n,0===Cr&&Lr(Le)),o!==n?(br=t,t=Xt(a)):(Ar=t,t=n)):(Ar=t,t=n)):(Ar=t,t=n)))))),t}function Ur(){var t;return e.length>Ar?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Pe)),t}function qr(){var t;return Cr++,9===e.charCodeAt(Ar)?(t=E,Ar++):(t=n,0===Cr&&Lr(Re)),t===n&&(11===e.charCodeAt(Ar)?(t=v,Ar++):(t=n,0===Cr&&Lr(Oe)),t===n&&(12===e.charCodeAt(Ar)?(t=C,Ar++):(t=n,0===Cr&&Lr(Me)),t===n&&(32===e.charCodeAt(Ar)?(t=y,Ar++):(t=n,0===Cr&&Lr(ke)),t===n&&(160===e.charCodeAt(Ar)?(t=_,Ar++):(t=n,0===Cr&&Lr(Ie)),t===n&&(65279===e.charCodeAt(Ar)?(t=S,Ar++):(t=n,0===Cr&&Lr(je)),t===n&&(t=function(){var t;return $e.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Mt)),t}())))))),Cr--,t===n&&0===Cr&&Lr(Te),t}function Gr(){var t;return ne.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Ne)),t}function Hr(){var t;return Cr++,10===e.charCodeAt(Ar)?(t=F,Ar++):(t=n,0===Cr&&Lr(qe)),t===n&&(e.substr(Ar,2)===w?(t=w,Ar+=2):(t=n,0===Cr&&Lr(Ge)),t===n&&(13===e.charCodeAt(Ar)?(t=B,Ar++):(t=n,0===Cr&&Lr(He)),t===n&&(8232===e.charCodeAt(Ar)?(t=D,Ar++):(t=n,0===Cr&&Lr(ze)),t===n&&(8233===e.charCodeAt(Ar)?(t=L,Ar++):(t=n,0===Cr&&Lr(We)))))),Cr--,t===n&&0===Cr&&Lr(Ue),t}function zr(){var t;return Cr++,(t=function(){var t,r,a,o,s,u;if(t=Ar,e.substr(Ar,2)===P?(r=P,Ar+=2):(r=n,0===Cr&&Lr(Ye)),r!==n){for(a=[],o=Ar,s=Ar,Cr++,e.substr(Ar,2)===T?(u=T,Ar+=2):(u=n,0===Cr&&Lr(Qe)),Cr--,u===n?s=void 0:(Ar=s,s=n),s!==n&&(u=Ur())!==n?o=s=[s,u]:(Ar=o,o=n);o!==n;)a.push(o),o=Ar,s=Ar,Cr++,e.substr(Ar,2)===T?(u=T,Ar+=2):(u=n,0===Cr&&Lr(Qe)),Cr--,u===n?s=void 0:(Ar=s,s=n),s!==n&&(u=Ur())!==n?o=s=[s,u]:(Ar=o,o=n);e.substr(Ar,2)===T?(o=T,Ar+=2):(o=n,0===Cr&&Lr(Qe)),o!==n?t=r=[r,a,o]:(Ar=t,t=n)}else Ar=t,t=n;return t}())===n&&(t=Vr()),Cr--,t===n&&0===Cr&&Lr(Ve),t}function Wr(){var t,r,a,o,s,u;if(t=Ar,e.substr(Ar,2)===P?(r=P,Ar+=2):(r=n,0===Cr&&Lr(Ye)),r!==n){for(a=[],o=Ar,s=Ar,Cr++,e.substr(Ar,2)===T?(u=T,Ar+=2):(u=n,0===Cr&&Lr(Qe)),u===n&&(u=Gr()),Cr--,u===n?s=void 0:(Ar=s,s=n),s!==n&&(u=Ur())!==n?o=s=[s,u]:(Ar=o,o=n);o!==n;)a.push(o),o=Ar,s=Ar,Cr++,e.substr(Ar,2)===T?(u=T,Ar+=2):(u=n,0===Cr&&Lr(Qe)),u===n&&(u=Gr()),Cr--,u===n?s=void 0:(Ar=s,s=n),s!==n&&(u=Ur())!==n?o=s=[s,u]:(Ar=o,o=n);e.substr(Ar,2)===T?(o=T,Ar+=2):(o=n,0===Cr&&Lr(Qe)),o!==n?t=r=[r,a,o]:(Ar=t,t=n)}else Ar=t,t=n;return t}function Vr(){var t,r,a,o,s,u;if(t=Ar,e.substr(Ar,2)===R?(r=R,Ar+=2):(r=n,0===Cr&&Lr(Je)),r!==n){for(a=[],o=Ar,s=Ar,Cr++,u=Gr(),Cr--,u===n?s=void 0:(Ar=s,s=n),s!==n&&(u=Ur())!==n?o=s=[s,u]:(Ar=o,o=n);o!==n;)a.push(o),o=Ar,s=Ar,Cr++,u=Gr(),Cr--,u===n?s=void 0:(Ar=s,s=n),s!==n&&(u=Ur())!==n?o=s=[s,u]:(Ar=o,o=n);t=r=[r,a]}else Ar=t,t=n;return t}function Yr(){var e,t,r,a;if(Cr++,e=Ar,(t=Qr())!==n){for(r=[],a=Jr();a!==n;)r.push(a),a=Jr();br=e,e=er(t,r)}else Ar=e,e=n;return Cr--,e===n&&(t=n,0===Cr&&Lr(Xe)),e}function Qr(){var t,r,a;return(t=function(){var t;return(t=function(){var t;return le.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Dt)),t}())===n&&(t=function(){var t;return ue.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(St)),t}())===n&&(t=function(){var t;return pe.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Bt)),t}())===n&&(t=function(){var t;return ie.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Ft)),t}())===n&&(t=function(){var t;return ce.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(wt)),t}())===n&&(t=function(){var t;return he.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Rt)),t}()),t}())===n&&(36===e.charCodeAt(Ar)?(t=d,Ar++):(t=n,0===Cr&&Lr(ye)),t===n&&(95===e.charCodeAt(Ar)?(t=O,Ar++):(t=n,0===Cr&&Lr(Ze)),t===n&&(t=Ar,92===e.charCodeAt(Ar)?(r=M,Ar++):(r=n,0===Cr&&Lr(Ke)),r!==n&&(a=on())!==n?t=a:(Ar=t,t=n)))),t}function Jr(){var t;return(t=Qr())===n&&(t=function(){var t;return(t=function(){var t;return de.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Pt)),t}())===n&&(t=function(){var t;return fe.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Lt)),t}()),t}())===n&&(t=function(){var t;return ge.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Tt)),t}())===n&&(t=function(){var t;return me.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Ot)),t}())===n&&(8204===e.charCodeAt(Ar)?(t=k,Ar++):(t=n,0===Cr&&Lr(et)),t===n&&(8205===e.charCodeAt(Ar)?(t=I,Ar++):(t=n,0===Cr&&Lr(tt)))),t}function Xr(){var t,r,a,o;if(Cr++,t=Ar,34===e.charCodeAt(Ar)?(r=N,Ar++):(r=n,0===Cr&&Lr(ot)),r!==n){for(a=[],o=Zr();o!==n;)a.push(o),o=Zr();34===e.charCodeAt(Ar)?(o=N,Ar++):(o=n,0===Cr&&Lr(ot)),o!==n?(br=t,t=rr(a)):(Ar=t,t=n)}else Ar=t,t=n;if(t===n)if(t=Ar,39===e.charCodeAt(Ar)?(r=U,Ar++):(r=n,0===Cr&&Lr(st)),r!==n){for(a=[],o=Kr();o!==n;)a.push(o),o=Kr();39===e.charCodeAt(Ar)?(o=U,Ar++):(o=n,0===Cr&&Lr(st)),o!==n?(br=t,t=nr(a)):(Ar=t,t=n)}else Ar=t,t=n;return Cr--,t===n&&(r=n,0===Cr&&Lr(at)),t}function Zr(){var t,r,a,o;return t=Ar,r=Ar,a=Ar,Cr++,34===e.charCodeAt(Ar)?(o=N,Ar++):(o=n,0===Cr&&Lr(ot)),o===n&&(92===e.charCodeAt(Ar)?(o=M,Ar++):(o=n,0===Cr&&Lr(Ke)),o===n&&(o=Gr())),Cr--,o===n?a=void 0:(Ar=a,a=n),a!==n&&(o=Ur())!==n?r=a=[a,o]:(Ar=r,r=n),(t=r!==n?e.substring(t,Ar):r)===n&&(t=Ar,92===e.charCodeAt(Ar)?(r=M,Ar++):(r=n,0===Cr&&Lr(Ke)),r!==n&&(a=nn())!==n?t=a:(Ar=t,t=n),t===n&&(t=rn())),t}function Kr(){var t,r,a,o;return t=Ar,r=Ar,a=Ar,Cr++,39===e.charCodeAt(Ar)?(o=U,Ar++):(o=n,0===Cr&&Lr(st)),o===n&&(92===e.charCodeAt(Ar)?(o=M,Ar++):(o=n,0===Cr&&Lr(Ke)),o===n&&(o=Gr())),Cr--,o===n?a=void 0:(Ar=a,a=n),a!==n&&(o=Ur())!==n?r=a=[a,o]:(Ar=r,r=n),(t=r!==n?e.substring(t,Ar):r)===n&&(t=Ar,92===e.charCodeAt(Ar)?(r=M,Ar++):(r=n,0===Cr&&Lr(Ke)),r!==n&&(a=nn())!==n?t=a:(Ar=t,t=n),t===n&&(t=rn())),t}function en(){var t,r,a,o;return t=Ar,(r=tn())!==n?(45===e.charCodeAt(Ar)?(a=z,Ar++):(a=n,0===Cr&&Lr(lt)),a!==n&&(o=tn())!==n?(br=t,t=or(r,o)):(Ar=t,t=n)):(Ar=t,t=n),t}function tn(){var t,r,a,o;return t=Ar,r=Ar,a=Ar,Cr++,93===e.charCodeAt(Ar)?(o=H,Ar++):(o=n,0===Cr&&Lr(pt)),o===n&&(92===e.charCodeAt(Ar)?(o=M,Ar++):(o=n,0===Cr&&Lr(Ke)),o===n&&(o=Gr())),Cr--,o===n?a=void 0:(Ar=a,a=n),a!==n&&(o=Ur())!==n?r=a=[a,o]:(Ar=r,r=n),(t=r!==n?e.substring(t,Ar):r)===n&&(t=Ar,92===e.charCodeAt(Ar)?(r=M,Ar++):(r=n,0===Cr&&Lr(Ke)),r!==n&&(a=nn())!==n?t=a:(Ar=t,t=n),t===n&&(t=rn())),t}function rn(){var t,r;return t=Ar,92===e.charCodeAt(Ar)?(r=M,Ar++):(r=n,0===Cr&&Lr(Ke)),r!==n&&Hr()!==n?(br=t,t=sr()):(Ar=t,t=n),t}function nn(){var t,r,a,o;return t=function(){var t;return(t=an())===n&&(t=function(){var t,r,a,o;return t=Ar,r=Ar,a=Ar,Cr++,o=function(){var t;return(t=an())===n&&(t=sn())===n&&(120===e.charCodeAt(Ar)?(t=K,Ar++):(t=n,0===Cr&&Lr(bt)),t===n&&(117===e.charCodeAt(Ar)?(t=ee,Ar++):(t=n,0===Cr&&Lr(xt)))),t}(),o===n&&(o=Gr()),Cr--,o===n?a=void 0:(Ar=a,a=n),a!==n&&(o=Ur())!==n?r=a=[a,o]:(Ar=r,r=n),t=r!==n?e.substring(t,Ar):r}()),t}(),t===n&&(t=Ar,48===e.charCodeAt(Ar)?(r=W,Ar++):(r=n,0===Cr&&Lr(ft)),r!==n?(a=Ar,Cr++,o=sn(),Cr--,o===n?a=void 0:(Ar=a,a=n),a!==n?(br=t,t=ur()):(Ar=t,t=n)):(Ar=t,t=n),t===n&&(t=function(){var t,r,a,o,s,u;return t=Ar,120===e.charCodeAt(Ar)?(r=K,Ar++):(r=n,0===Cr&&Lr(bt)),r!==n?(a=Ar,o=Ar,(s=un())!==n&&(u=un())!==n?o=s=[s,u]:(Ar=o,o=n),(a=o!==n?e.substring(a,Ar):o)!==n?(br=t,t=gr(a)):(Ar=t,t=n)):(Ar=t,t=n),t}(),t===n&&(t=on()))),t}function an(){var t,r;return 39===e.charCodeAt(Ar)?(t=U,Ar++):(t=n,0===Cr&&Lr(st)),t===n&&(34===e.charCodeAt(Ar)?(t=N,Ar++):(t=n,0===Cr&&Lr(ot)),t===n&&(92===e.charCodeAt(Ar)?(t=M,Ar++):(t=n,0===Cr&&Lr(Ke)),t===n&&(t=Ar,98===e.charCodeAt(Ar)?(r=V,Ar++):(r=n,0===Cr&&Lr(dt)),r!==n&&(br=t,r=ir()),(t=r)===n&&(t=Ar,102===e.charCodeAt(Ar)?(r=Y,Ar++):(r=n,0===Cr&&Lr(gt)),r!==n&&(br=t,r=cr()),(t=r)===n&&(t=Ar,110===e.charCodeAt(Ar)?(r=Q,Ar++):(r=n,0===Cr&&Lr(ht)),r!==n&&(br=t,r=pr()),(t=r)===n&&(t=Ar,114===e.charCodeAt(Ar)?(r=J,Ar++):(r=n,0===Cr&&Lr(mt)),r!==n&&(br=t,r=lr()),(t=r)===n&&(t=Ar,116===e.charCodeAt(Ar)?(r=X,Ar++):(r=n,0===Cr&&Lr($t)),r!==n&&(br=t,r=fr()),(t=r)===n&&(t=Ar,118===e.charCodeAt(Ar)?(r=Z,Ar++):(r=n,0===Cr&&Lr(At)),r!==n&&(br=t,r=dr()),t=r)))))))),t}function on(){var t,r,a,o,s,u,i,c;return t=Ar,117===e.charCodeAt(Ar)?(r=ee,Ar++):(r=n,0===Cr&&Lr(xt)),r!==n?(a=Ar,o=Ar,(s=un())!==n&&(u=un())!==n&&(i=un())!==n&&(c=un())!==n?o=s=[s,u,i,c]:(Ar=o,o=n),(a=o!==n?e.substring(a,Ar):o)!==n?(br=t,t=hr(a)):(Ar=t,t=n)):(Ar=t,t=n),t}function sn(){var t;return ae.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(Et)),t}function un(){var t;return oe.test(e.charAt(Ar))?(t=e.charAt(Ar),Ar++):(t=n,0===Cr&&Lr(vt)),t}function cn(){var t,r,a,o;return Cr++,t=Ar,123===e.charCodeAt(Ar)?(r=u,Ar++):(r=n,0===Cr&&Lr(Ae)),r!==n?(a=function(){var e,t;return e=Ar,t=pn(),br=e,e=t=$r(t)}(),125===e.charCodeAt(Ar)?(o=i,Ar++):(o=n,0===Cr&&Lr(be)),o!==n?t=a:(Ar=t,t=n)):(Ar=t,t=n),Cr--,t===n&&(r=n,0===Cr&&Lr(yt)),t}function pn(){var t,r,a,o,s,c;if(t=Ar,r=[],a=[],o=Ar,s=Ar,Cr++,se.test(e.charAt(Ar))?(c=e.charAt(Ar),Ar++):(c=n,0===Cr&&Lr(_t)),Cr--,c===n?s=void 0:(Ar=s,s=n),s!==n&&(c=Ur())!==n?o=s=[s,c]:(Ar=o,o=n),o!==n)for(;o!==n;)a.push(o),o=Ar,s=Ar,Cr++,se.test(e.charAt(Ar))?(c=e.charAt(Ar),Ar++):(c=n,0===Cr&&Lr(_t)),Cr--,c===n?s=void 0:(Ar=s,s=n),s!==n&&(c=Ur())!==n?o=s=[s,c]:(Ar=o,o=n);else a=n;for(a===n&&(a=Ar,123===e.charCodeAt(Ar)?(o=u,Ar++):(o=n,0===Cr&&Lr(Ae)),o!==n?(s=pn(),125===e.charCodeAt(Ar)?(c=i,Ar++):(c=n,0===Cr&&Lr(be)),c!==n?a=o=[o,s,c]:(Ar=a,a=n)):(Ar=a,a=n));a!==n;){if(r.push(a),a=[],o=Ar,s=Ar,Cr++,se.test(e.charAt(Ar))?(c=e.charAt(Ar),Ar++):(c=n,0===Cr&&Lr(_t)),Cr--,c===n?s=void 0:(Ar=s,s=n),s!==n&&(c=Ur())!==n?o=s=[s,c]:(Ar=o,o=n),o!==n)for(;o!==n;)a.push(o),o=Ar,s=Ar,Cr++,se.test(e.charAt(Ar))?(c=e.charAt(Ar),Ar++):(c=n,0===Cr&&Lr(_t)),Cr--,c===n?s=void 0:(Ar=s,s=n),s!==n&&(c=Ur())!==n?o=s=[s,c]:(Ar=o,o=n);else a=n;a===n&&(a=Ar,123===e.charCodeAt(Ar)?(o=u,Ar++):(o=n,0===Cr&&Lr(Ae)),o!==n?(s=pn(),125===e.charCodeAt(Ar)?(c=i,Ar++):(c=n,0===Cr&&Lr(be)),c!==n?a=o=[o,s,c]:(Ar=a,a=n)):(Ar=a,a=n))}return e.substring(t,Ar)}function ln(){var e,t;for(e=[],(t=qr())===n&&(t=Hr())===n&&(t=zr());t!==n;)e.push(t),(t=qr())===n&&(t=Hr())===n&&(t=zr());return e}function fn(){var t,r,a,o;return t=Ar,r=ln(),59===e.charCodeAt(Ar)?(a=re,Ar++):(a=n,0===Cr&&Lr(kt)),a!==n?t=r=[r,a]:(Ar=t,t=n),t===n&&(t=Ar,r=function(){var e,t;for(e=[],(t=qr())===n&&(t=Wr());t!==n;)e.push(t),(t=qr())===n&&(t=Wr());return e}(),(a=Vr())===n&&(a=null),(o=Hr())!==n?t=r=[r,a,o]:(Ar=t,t=n),t===n&&(t=Ar,r=ln(),a=function(){var t,r;return t=Ar,Cr++,e.length>Ar?(r=e.charAt(Ar),Ar++):(r=n,0===Cr&&Lr(Pe)),Cr--,r===n?t=void 0:(Ar=t,t=n),t}(),a!==n?t=r=[r,a]:(Ar=t,t=n))),t}var dn=t.reservedWords||[];if((r=s())!==n&&Ar===e.length)return r;throw r!==n&&Ar0){for(t=1,r=1;t=14"},require$$2={name:name,version:version,description:description,keywords:keywords,homepage:homepage,repository:repository,bugs:bugs,license:license,author:author,main:main,unpkg:unpkg,jsdelivr:jsdelivr,types:types,bin:bin,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies,tsd:tsd,engines:engines},utils={},chai$h=require$$0$1,Call=function(){function e(e){this.args=e}return e.prototype.calledWithExactly=function(){for(var e=[],t=0;t start -> leftRecursion -> duplicatedRule)"])}}))}))}));var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a' at an index -1.\nBytecode: 42")})),it("`top`",(function(){expect$a((function(){return e.top()})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42")})),it("`result`",(function(){expect$a((function(){return e.result()})).to.throw(RangeError,"Rule 'rule': The variable stack is empty, can't get the result")})),it("`index`",(function(){expect$a((function(){return e.index(-2)})).to.throw(RangeError,"Rule 'rule': The variable stack overflow: attempt to get a variable at a negative index -2.\nBytecode: 42"),expect$a((function(){return e.index(0)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42"),expect$a((function(){return e.index(2)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -3.\nBytecode: 42")}))})),it("`defines` returns an empty string",(function(){expect$a(e.defines()).to.equal("")}))})),it("throws an error when attempting `pop` more than `push`",(function(){var e=new Stack("rule","v","let",[42]);e.push("1"),expect$a((function(){return e.pop(3)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -2.\nBytecode: 42")})),it("returns a variable with an index 0 for `result`",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),expect$a(e.result()).to.equal("v0")})),it("`defines` returns a define expression for all used variables",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),e.push("2"),e.pop(),e.push("3"),expect$a(e.defines()).to.equal("let v0, v1;")})),describe("`checkedIf` method",(function(){var e;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),describe("does not throws an error",(function(){it("without the else brach",(function(){expect$a((function(){return e.checkedIf(0,(function(){}))})).to.not.throw(),expect$a((function(){return e.checkedIf(0,(function(){return e.pop()}))})).to.not.throw(),expect$a((function(){return e.checkedIf(0,(function(){return e.push("2")}))})).to.not.throw()})),describe("when the stack pointer",(function(){it("was not moving in both the arms",(function(){function t(){}function r(){e.push("1"),e.pop()}function n(){e.push("1"),e.push("2"),e.pop(2)}function a(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$a((function(){return e.checkedIf(0,t,t)})).to.not.throw(),expect$a((function(){return e.checkedIf(0,r,r)})).to.not.throw(),expect$a((function(){return e.checkedIf(0,n,n)})).to.not.throw(),expect$a((function(){return e.checkedIf(0,a,a)})).to.not.throw()})),it("increases on the same value in both the arms",(function(){expect$a((function(){return e.checkedIf(0,(function(){return e.push("1")}),(function(){return e.push("2")}))})).to.not.throw()})),it("decreases on the same value in both the arms",(function(){e.push("2"),expect$a((function(){return e.checkedIf(0,(function(){return e.pop(2)}),(function(){e.pop(),e.pop()}))})).to.not.throw()}))}))})),describe("throws an error when the stack pointer",(function(){it("was not moving in `if` and decreases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: -1). Bytecode: 42")})),it("decreases in `if` and was not moving in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 0). Bytecode: 42")})),it("was not moving in `if` and increases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: 1). Bytecode: 42")})),it("increases in `if` and was not moving in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: 0). Bytecode: 42")})),it("decreases in `if` and increases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 1). Bytecode: 42")})),it("increases in `if` and decreases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: -1). Bytecode: 42")}))}))})),describe("`checkedLoop` method",(function(){var e;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),it("does not throws an error when the stack pointer was not moving",(function(){function t(){}function r(){e.push("1"),e.pop()}function n(){e.push("1"),e.push("2"),e.pop(2)}function a(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$a((function(){return e.checkedLoop(0,t)})).to.not.throw(),expect$a((function(){return e.checkedLoop(0,r)})).to.not.throw(),expect$a((function(){return e.checkedLoop(0,n)})).to.not.throw(),expect$a((function(){return e.checkedLoop(0,a)})).to.not.throw()})),it("throws an error when the stack pointer increases",(function(){expect$a((function(){return e.checkedLoop(0,(function(){return e.push("1")}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: 1). Bytecode: 42")})),it("throws an error when the stack pointer decreases",(function(){expect$a((function(){return e.checkedLoop(0,(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: -1). Bytecode: 42")}))}))}));var chai$9=require$$0$1,_a=utils$1,hex=_a.hex,stringEscape=_a.stringEscape,regexpClassEscape=_a.regexpClassEscape,base64=_a.base64,expect$9=chai$9.expect;describe("utility functions",(function(){it("hex",(function(){expect$9(hex("0")).to.equal("30"),expect$9(hex("\0")).to.equal("0"),expect$9(hex("\n")).to.equal("A"),expect$9(hex("\ufeff")).to.equal("FEFF")})),it("stringEscape",(function(){expect$9(stringEscape("abc")).to.equal("abc"),expect$9(stringEscape('\\"\0\b\t\n\v\f\r')).to.equal('\\\\\\"\\0\\b\\t\\n\\v\\f\\r'),expect$9(stringEscape("")).to.equal("\\x01\\x0F"),expect$9(stringEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$9(stringEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$9(stringEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("regexpClassEscape",(function(){expect$9(regexpClassEscape("\\\0\b\t\n\v\f\r")).to.equal("\\\\\\0\\b\\t\\n\\v\\f\\r"),expect$9(regexpClassEscape("/]^-")).to.equal("\\/\\]\\^\\-"),expect$9(regexpClassEscape("")).to.equal("\\x01\\x0F"),expect$9(regexpClassEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$9(regexpClassEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$9(regexpClassEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("base64",(function(){expect$9(base64(new Uint8Array([]))).to.equal(""),expect$9(base64(new Uint8Array([97]))).to.equal("YQ=="),expect$9(base64(new Uint8Array([97,98]))).to.equal("YWI="),expect$9(base64(new Uint8Array([97,98,99]))).to.equal("YWJj"),expect$9(base64(new Uint8Array([97,98,99,100]))).to.equal("YWJjZA=="),expect$9(base64(new Uint8Array([97,98,99,100,101]))).to.equal("YWJjZGU="),expect$9(base64(new Uint8Array([97,98,99,100,101,102]))).to.equal("YWJjZGVm")}))}));var __spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,a=0,o=t.length;a start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),it("reports indirect left recursion",(function(){expect$5(pass$5).to.reportError(["start = stop","stop = start"].join("\n"),{message:"Possible infinite loop when parsing (left recursion: start -> stop -> start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),describe("in sequences",(function(){it("reports left recursion if all preceding elements match empty string",(function(){expect$5(pass$5).to.reportError("start = '' '' '' start")})),it("doesn't report left recursion if some preceding element doesn't match empty string",(function(){expect$5(pass$5).to.not.reportError("start = 'a' '' '' start"),expect$5(pass$5).to.not.reportError("start = '' 'a' '' start"),expect$5(pass$5).to.not.reportError("start = '' '' 'a' start")})),it("reports left recursion when rule reference is wrapped in an expression",(function(){expect$5(pass$5).to.reportError("start = '' start?")})),it("computes expressions that always consume input on success correctly",(function(){expect$5(pass$5).to.reportError(["start = a start","a 'a' = ''"].join("\n")),expect$5(pass$5).to.not.reportError(["start = a start","a 'a' = 'a'"].join("\n")),expect$5(pass$5).to.reportError("start = ('' / 'a' / 'b') start"),expect$5(pass$5).to.reportError("start = ('a' / '' / 'b') start"),expect$5(pass$5).to.reportError("start = ('a' / 'b' / '') start"),expect$5(pass$5).to.not.reportError("start = ('a' / 'b' / 'c') start"),expect$5(pass$5).to.reportError("start = ('' { }) start"),expect$5(pass$5).to.not.reportError("start = ('a' { }) start"),expect$5(pass$5).to.reportError("start = ('' '' '') start"),expect$5(pass$5).to.not.reportError("start = ('a' '' '') start"),expect$5(pass$5).to.not.reportError("start = ('' 'a' '') start"),expect$5(pass$5).to.not.reportError("start = ('' '' 'a') start"),expect$5(pass$5).to.reportError("start = a:'' start"),expect$5(pass$5).to.not.reportError("start = a:'a' start"),expect$5(pass$5).to.reportError("start = $'' start"),expect$5(pass$5).to.not.reportError("start = $'a' start"),expect$5(pass$5).to.reportError("start = &'' start"),expect$5(pass$5).to.reportError("start = &'a' start"),expect$5(pass$5).to.reportError("start = !'' start"),expect$5(pass$5).to.reportError("start = !'a' start"),expect$5(pass$5).to.reportError("start = ''? start"),expect$5(pass$5).to.reportError("start = 'a'? start"),expect$5(pass$5).to.reportError("start = ''* start"),expect$5(pass$5).to.reportError("start = 'a'* start"),expect$5(pass$5).to.reportError("start = ''+ start"),expect$5(pass$5).to.not.reportError("start = 'a'+ start"),expect$5(pass$5).to.reportError("start = ('') start"),expect$5(pass$5).to.not.reportError("start = ('a') start"),expect$5(pass$5).to.reportError("start = &{ } start"),expect$5(pass$5).to.reportError("start = !{ } start"),expect$5(pass$5).to.reportError(["start = a start","a = ''"].join("\n")),expect$5(pass$5).to.not.reportError(["start = a start","a = 'a'"].join("\n")),expect$5(pass$5).to.reportError("start = '' start"),expect$5(pass$5).to.not.reportError("start = 'a' start"),expect$5(pass$5).to.not.reportError("start = [a-d] start"),expect$5(pass$5).to.not.reportError("start = . start")}))}))}));var chai$4=require$$0$1,helpers$4=helpers$9,pass$4=reportUndefinedRules_1;chai$4.use(helpers$4);var expect$4=chai$4.expect;describe("compiler pass |reportUndefinedRules|",(function(){it("reports undefined rules",(function(){expect$4(pass$4).to.reportError("start = undefined",{message:'Rule "undefined" is not defined',location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}})}))}));var chai$3=require$$0$1,helpers$3=helpers$9,pass$3=reportInfiniteRepetition_1;chai$3.use(helpers$3);var expect$3=chai$3.expect;describe("compiler pass |reportInfiniteRepetition|",(function(){it("reports infinite loops for zero_or_more",(function(){expect$3(pass$3).to.reportError("start = ('')*",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),it("reports infinite loops for one_or_more",(function(){expect$3(pass$3).to.reportError("start = ('')+",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),it("computes expressions that always consume input on success correctly",(function(){expect$3(pass$3).to.reportError(["start = a*","a 'a' = ''"].join("\n")),expect$3(pass$3).to.not.reportError(["start = a*","a 'a' = 'a'"].join("\n")),expect$3(pass$3).to.reportError("start = ('' / 'a' / 'b')*"),expect$3(pass$3).to.reportError("start = ('a' / '' / 'b')*"),expect$3(pass$3).to.reportError("start = ('a' / 'b' / '')*"),expect$3(pass$3).to.not.reportError("start = ('a' / 'b' / 'c')*"),expect$3(pass$3).to.reportError("start = ('' { })*"),expect$3(pass$3).to.not.reportError("start = ('a' { })*"),expect$3(pass$3).to.reportError("start = ('' '' '')*"),expect$3(pass$3).to.not.reportError("start = ('a' '' '')*"),expect$3(pass$3).to.not.reportError("start = ('' 'a' '')*"),expect$3(pass$3).to.not.reportError("start = ('' '' 'a')*"),expect$3(pass$3).to.reportError("start = (a:'')*"),expect$3(pass$3).to.not.reportError("start = (a:'a')*"),expect$3(pass$3).to.reportError("start = ($'')*"),expect$3(pass$3).to.not.reportError("start = ($'a')*"),expect$3(pass$3).to.reportError("start = (&'')*"),expect$3(pass$3).to.reportError("start = (&'a')*"),expect$3(pass$3).to.reportError("start = (!'')*"),expect$3(pass$3).to.reportError("start = (!'a')*"),expect$3(pass$3).to.reportError("start = (''?)*"),expect$3(pass$3).to.reportError("start = ('a'?)*"),expect$3(pass$3).to.reportError("start = (''*)*"),expect$3(pass$3).to.reportError("start = ('a'*)*"),expect$3(pass$3).to.reportError("start = (''+)*"),expect$3(pass$3).to.not.reportError("start = ('a'+)*"),expect$3(pass$3).to.reportError("start = ('')*"),expect$3(pass$3).to.not.reportError("start = ('a')*"),expect$3(pass$3).to.reportError("start = (&{ })*"),expect$3(pass$3).to.reportError("start = (!{ })*"),expect$3(pass$3).to.reportError(["start = a*","a = ''"].join("\n")),expect$3(pass$3).to.not.reportError(["start = a*","a = 'a'"].join("\n")),expect$3(pass$3).to.reportError("start = ''*"),expect$3(pass$3).to.not.reportError("start = 'a'*"),expect$3(pass$3).to.not.reportError("start = [a-d]*"),expect$3(pass$3).to.not.reportError("start = .*")}))}));var chai$2=require$$0$1,helpers$2=helpers$9,pass$2=reportDuplicateLabels_1;chai$2.use(helpers$2);var expect$2=chai$2.expect;describe("compiler pass |reportDuplicateLabels|",(function(){describe("in a sequence",(function(){it("reports labels duplicate with labels of preceding elements",(function(){expect$2(pass$2).to.reportError("start = a:'a' a:'a'",{message:'Label "a" is already defined',location:{source:void 0,start:{offset:14,line:1,column:15},end:{offset:15,line:1,column:16}},diagnostics:[{message:"Original label location",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:9,line:1,column:10}}}]})})),it("doesn't report labels duplicate with labels in subexpressions",(function(){expect$2(pass$2).to.not.reportError("start = ('a' / a:'a' / 'a') a:'a'"),expect$2(pass$2).to.not.reportError("start = (a:'a' { }) a:'a'"),expect$2(pass$2).to.not.reportError("start = ('a' a:'a' 'a') a:'a'"),expect$2(pass$2).to.not.reportError("start = b:(a:'a') a:'a'"),expect$2(pass$2).to.not.reportError("start = $(a:'a') a:'a'"),expect$2(pass$2).to.not.reportError("start = &(a:'a') a:'a'"),expect$2(pass$2).to.not.reportError("start = !(a:'a') a:'a'"),expect$2(pass$2).to.not.reportError("start = (a:'a')? a:'a'"),expect$2(pass$2).to.not.reportError("start = (a:'a')* a:'a'"),expect$2(pass$2).to.not.reportError("start = (a:'a')+ a:'a'"),expect$2(pass$2).to.not.reportError("start = (a:'a') a:'a'")}))})),describe("in a choice",(function(){it("doesn't report labels duplicate with labels of preceding alternatives",(function(){expect$2(pass$2).to.not.reportError("start = a:'a' / a:'a'")}))})),describe("in outer sequence",(function(){it("reports labels duplicate with labels of preceding elements",(function(){expect$2(pass$2).to.reportError("start = a:'a' (a:'a')",{message:'Label "a" is already defined',location:{source:void 0,start:{offset:15,line:1,column:16},end:{offset:16,line:1,column:17}},diagnostics:[{message:"Original label location",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:9,line:1,column:10}}}]})})),it("doesn't report labels duplicate with the label of the current element",(function(){expect$2(pass$2).to.not.reportError("start = a:(a:'a')")})),it("doesn't report labels duplicate with labels of following elements",(function(){expect$2(pass$2).to.not.reportError("start = (a:'a') a:'a'")}))}))}));var chai$1=require$$0$1,helpers$1=helpers$9,pass$1=removeProxyRules_1;chai$1.use(helpers$1);var expect$1=chai$1.expect;describe("compiler pass |removeProxyRules|",(function(){describe("when a proxy rule isn't listed in |allowedStartRules|",(function(){it("updates references and removes it",(function(){expect$1(pass$1).to.changeAST(["start = proxy","proxy = proxied","proxied = 'a'"].join("\n"),{rules:[{name:"start",expression:{type:"rule_ref",name:"proxied"}},{name:"proxied"}]},{allowedStartRules:["start"]})}))})),describe("when a proxy rule is listed in |allowedStartRules|",(function(){it("updates references but doesn't remove it",(function(){expect$1(pass$1).to.changeAST(["start = proxy","proxy = proxied","proxied = 'a'"].join("\n"),{rules:[{name:"start",expression:{type:"rule_ref",name:"proxied"}},{name:"proxy",expression:{type:"rule_ref",name:"proxied"}},{name:"proxied"}]},{allowedStartRules:["start","proxy"]})}))}))}));var chai=require$$0$1,helpers=helpers$9,pass=reportDuplicateRules_1;chai.use(helpers);var expect=chai.expect;describe("compiler pass |reportDuplicateRules|",(function(){it("reports duplicate rules",(function(){expect(pass).to.reportError(["start = 'a'","start = 'b'"].join("\n"),{message:'Rule "start" is already defined',location:{source:void 0,start:{offset:12,line:2,column:1},end:{offset:17,line:2,column:6}},diagnostics:[{message:"Original rule location",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}}]})}))})),exports.peggyVersion=peggyVersion})); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("chai"),require("whatwg-url")):"function"==typeof define&&define.amd?define(["exports","chai","whatwg-url"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).browser={},e.chai,e.whatwgURL)}(this,(function(exports,require$$0,require$$0$1){var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},GrammarLocation$5=function(){function e(e,t){this.source=e,this.start=t}return e.prototype.toString=function(){return String(this.source)},e.prototype.offset=function(e){return{line:e.line+this.start.line-1,column:1===e.line?e.column+this.start.column-1:e.column,offset:e.offset+this.start.offset}},e.offsetStart=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.start):e.start},e.offsetEnd=function(e){return e.source&&"function"==typeof e.source.offset?e.source.offset(e.end):e.end},e}(),grammarLocation=GrammarLocation$5,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),extendStatics,GrammarLocation$4=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},GrammarError$5=function(e){function t(r,a,n){var o=e.call(this,r)||this;return setProtoOf(o,t.prototype),o.name="GrammarError",o.location=a,void 0===n&&(n=[]),o.diagnostics=n,o.stage=null,o.problems=[["error",r,a,n]],o}return __extends(t,e),t.prototype.toString=function(){var t=e.prototype.toString.call(this);this.location&&(t+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(t+="".concat(this.location.source,":")),t+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var r=0,a=this.diagnostics;r1&&e.delimiter&&n(e.delimiter)))},semantic_and:a,semantic_not:a,rule_ref:function(t){var r=asts$7.findRule(e,t.name);return r?n(r):void 0},literal:function(e){return""!==e.value},class:r,any:r});return n(t)}},asts_1=asts$7,opcodes={PUSH:0,PUSH_EMPTY_STRING:35,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:36,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,IF_LT:30,IF_GE:31,IF_LT_DYNAMIC:32,IF_GE_DYNAMIC:33,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CHAR_CLASS:20,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,SOURCE_MAP_PUSH:37,SOURCE_MAP_POP:38,SOURCE_MAP_LABEL_PUSH:39,SOURCE_MAP_LABEL_POP:40},opcodes_1=opcodes,visitor$9=visitor_1,asts$6=asts_1,GrammarError$4=grammarError,ALWAYS_MATCH$1=1,SOMETIMES_MATCH$1=0,NEVER_MATCH$1=-1;function inferenceMatchResult$1(e){function t(e){return e.match=SOMETIMES_MATCH$1}function r(e){return o(e.expression),e.match=ALWAYS_MATCH$1}function a(e){return e.match=o(e.expression)}function n(e,t){for(var r=e.length,a=0,n=0,s=0;s0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$9.build({rule:function(e){var t,r=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(t=e.match,e.match=o(e.expression),++r>6)throw new GrammarError$4("Infinity cycle detected when trying to evaluate node match result",e.location)}while(t!==e.match)}return e.match},named:a,choice:function(e){return e.match=n(e.alternatives,!0)},action:a,sequence:function(e){return e.match=n(e.elements,!1)},labeled:a,text:a,simple_and:a,simple_not:function(e){return e.match=-o(e.expression)},optional:r,zero_or_more:r,one_or_more:a,repeated:function(e){var t=o(e.expression),r=e.delimiter?o(e.delimiter):NEVER_MATCH$1,a=e.min?e.min:e.max;return"constant"!==a.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&a.value>e.max.value?e.match=NEVER_MATCH$1:t===NEVER_MATCH$1?e.match=0===a.value?ALWAYS_MATCH$1:NEVER_MATCH$1:t===ALWAYS_MATCH$1?e.delimiter&&a.value>=2?e.match=r:e.match=ALWAYS_MATCH$1:e.delimiter&&a.value>=2?e.match=r===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===a.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:a,semantic_and:t,semantic_not:t,rule_ref:function(t){var r=asts$6.findRule(e,t.name);return t.match=o(r)},literal:function(e){var t=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},class:function(e){var t=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=t},any:t});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$4=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n1?d(SOMETIMES_MATCH,[op$1.IF_ERROR],f([op$1.POP],e(t.slice(1),r)),[]):[])}(e.alternatives,t)},action:function(e,t){var r=l(t.env),a="sequence"!==e.expression.type||0===e.expression.elements.length,n=v(e.expression,{sp:t.sp+(a?1:0),env:r,action:e}),o=0|e.expression.match,s=a&&o!==NEVER_MATCH?u(!1,Object.keys(r),e):null;return a?f([op$1.PUSH_CURR_POS],n,d(o,[op$1.IF_NOT_ERROR],f([op$1.LOAD_SAVED_POS,1],$(s,1,r,t.sp+2)),[]),[op$1.NIP]):n},sequence:function(e,t){return f([op$1.PUSH_CURR_POS],function t(r,a){if(r.length>0){var n=e.elements.length-r.length+1;return f(v(r[0],{sp:a.sp,env:a.env,pluck:a.pluck,action:null}),d(0|r[0].match,[op$1.IF_NOT_ERROR],t(r.slice(1),{sp:a.sp+1,env:a.env,pluck:a.pluck,action:a.action}),f(n>1?[op$1.POP_N,n]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(a.pluck.length>0)return f([op$1.PLUCK,e.elements.length+1,a.pluck.length],a.pluck.map((function(e){return a.sp-e})));if(a.action){var o=u(!1,Object.keys(a.env),a.action);return f([op$1.LOAD_SAVED_POS,e.elements.length],$(o,e.elements.length+1,a.env,a.sp))}return f([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:t.sp+1,env:t.env,pluck:[],action:t.action}))},labeled:function(e,r){var a=r.env,n=e.label,o=r.sp+1;n&&(a=l(r.env),r.env[e.label]=o),e.pick&&r.pluck.push(o);var s=v(e.expression,{sp:r.sp,env:a,action:null});return n&&e.labelLocation&&t&&"source-and-map"===t.output?f([op$1.SOURCE_MAP_LABEL_PUSH,o,c(n),p(e.labelLocation)],s,[op$1.SOURCE_MAP_LABEL_POP,o]):s},text:function(e,t){return f([op$1.PUSH_CURR_POS],v(e.expression,{sp:t.sp+1,env:l(t.env),action:null}),d(0|e.match,[op$1.IF_NOT_ERROR],f([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,t){return m(e.expression,!1,t)},simple_not:function(e,t){return m(e.expression,!0,t)},optional:function(e,t){return f(v(e.expression,{sp:t.sp,env:l(t.env),action:null}),d(-(0|e.expression.match),[op$1.IF_ERROR],f([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return f([op$1.PUSH_EMPTY_ARRAY],r,g(r),[op$1.POP])},one_or_more:function(e,t){var r=v(e.expression,{sp:t.sp+1,env:l(t.env),action:null});return f([op$1.PUSH_EMPTY_ARRAY],r,d(0|e.expression.match,[op$1.IF_NOT_ERROR],f(g(r),[op$1.POP]),f([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,t){var r=e.min?e.min:e.max,a="constant"!==r.type||r.value>0,n="constant"!==e.max.type&&null!==e.max.value,o=a?2:1,s=e.min?x(e.min,t.env,t.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:t.sp},c=x(e.max,t.env,s.sp,o),i=v(e.expression,{sp:c.sp+o,env:l(t.env),action:null}),u=function(e,t,r,a,n){return e?f([op$1.PUSH_CURR_POS],v(e,{sp:a.sp+n+1,env:l(a.env),action:null}),d(0|e.match,[op$1.IF_NOT_ERROR],f([op$1.POP],r,d(-t,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):r}(e.delimiter,0|e.expression.match,i,t,o),p=A(u,e.max),$=n?A(i,e.max):i,m=f(a?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],$,g(p),[op$1.POP]);return f(s.pre,c.pre,a?function(e,t){var r="constant"===t.type?[op$1.IF_LT,t.value]:[op$1.IF_LT_DYNAMIC,t.sp];return f(e,d(SOMETIMES_MATCH,r,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(m,r):m,c.post,s.post)},group:function(e,t){return v(e.expression,{sp:t.sp,env:l(t.env),action:null})},semantic_and:function(e,t){return h(e,!1,t)},semantic_not:function(e,t){return h(e,!0,t)},rule_ref:function(t){return[op$1.RULE,asts$5.indexOfRule(e,t.name)]},literal:function(e){if(e.value.length>0){var t=0|e.match,r=t===SOMETIMES_MATCH||t===ALWAYS_MATCH&&!e.ignoreCase?c(e.ignoreCase?e.value.toLowerCase():e.value):null,a=t!==ALWAYS_MATCH?i({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return d(t,e.ignoreCase?[op$1.MATCH_STRING_IC,r]:[op$1.MATCH_STRING,r],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,r],[op$1.FAIL,a])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var t=0|e.match,r=t===SOMETIMES_MATCH?function(e){var t={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},r=JSON.stringify(t),n=a.findIndex((function(e){return JSON.stringify(e)===r}));return-1===n?a.push(t)-1:n}(e):null,n=t!==ALWAYS_MATCH?i({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return d(t,[op$1.MATCH_CHAR_CLASS,r],[op$1.ACCEPT_N,1],[op$1.FAIL,n])},any:function(e){var t=0|e.match,r=t!==ALWAYS_MATCH?i({type:"any"}):null;return d(t,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,r])}},t&&"source-and-map"===t.output&&Object.entries(b).forEach((function(e){var t=e[0],r=e[1];b[t]=function(e){for(var t=[],a=1;a>>=VLQ_BASE_SHIFT$1,a>0&&(t|=VLQ_CONTINUATION_BIT$1),r+=base64$5.encode(t)}while(a>0);return r};var util$8={};function getArg$1(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$8.getArg=getArg$1;const supportsNullProto$1=!("__proto__"in Object.create(null));function identity$1(e){return e}function toSetString$1(e){return isProtoString$1(e)?"$"+e:e}function fromSetString$1(e){return isProtoString$1(e)?e.slice(1):e}function isProtoString$1(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp$1(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated$1(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp$1(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp$1(e.name,t.name)))))}util$8.toSetString=supportsNullProto$1?identity$1:toSetString$1,util$8.fromSetString=supportsNullProto$1?identity$1:fromSetString$1,util$8.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated$1;const PROTOCOL$1="http:",PROTOCOL_AND_HOST$1=`${PROTOCOL$1}//host`;function createSafeHandler$1(e){return t=>{const r=getURLType$1(t),a=buildSafeBase$1(t),n=new URL(t,a);e(n);const o=n.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL$1.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST$1.length):computeRelativeURL$1(a,o)}}function withBase$1(e,t){return new URL(e,t).toString()}function buildUniqueSegment$1(e,t){let r=0;for(;;){const a=e+r++;if(-1===t.indexOf(a))return a}}function buildSafeBase$1(e){const t=e.split("..").length-1,r=buildUniqueSegment$1("p",e);let a=`${PROTOCOL_AND_HOST$1}/`;for(let e=0;e0&&!a[a.length-1]&&a.pop();r.length>0&&a.length>0&&r[0]===a[0];)r.shift(),a.shift();return a.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory$1=createSafeHandler$1((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize$1=createSafeHandler$1((e=>{}));function join$1(e,t){const r=getURLType$1(t),a=getURLType$1(e);if(e=ensureDirectory$1(e),"absolute"===r)return withBase$1(t,void 0);if("absolute"===a)return withBase$1(t,e);if("scheme-relative"===r)return normalize$1(t);if("scheme-relative"===a)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL$1.length);if("path-absolute"===r)return normalize$1(t);if("path-absolute"===a)return withBase$1(t,withBase$1(e,PROTOCOL_AND_HOST$1)).slice(PROTOCOL_AND_HOST$1.length);const n=buildSafeBase$1(t+e);return computeRelativeURL$1(n,withBase$1(t,withBase$1(e,n)))}function relative$1(e,t){const r=relativeIfPossible$1(e,t);return"string"==typeof r?r:normalize$1(t)}function relativeIfPossible$1(e,t){if(getURLType$1(e)!==getURLType$1(t))return null;const r=buildSafeBase$1(e+t),a=new URL(e,r),n=new URL(t,r);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==a.protocol||n.user!==a.user||n.password!==a.password||n.hostname!==a.hostname||n.port!==a.port?null:computeRelativeURL$1(a,n)}util$8.normalize=normalize$1,util$8.join=join$1,util$8.relative=relative$1;var arraySet$1={};let ArraySet$4=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const a=new e;for(let e=0,n=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||a==r&&o>=n||util$7.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$3=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter$1(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$7.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList$1.MappingList=MappingList$3;const base64VLQ$1=base64Vlq$1,util$6=util$8,ArraySet$3=arraySet$1.ArraySet,MappingList$2=mappingList$1.MappingList;let SourceMapGenerator$3=class e{constructor(e){e||(e={}),this._file=util$6.getArg(e,"file",null),this._sourceRoot=util$6.getArg(e,"sourceRoot",null),this._skipValidation=util$6.getArg(e,"skipValidation",!1),this._sources=new ArraySet$3,this._names=new ArraySet$3,this._mappings=new MappingList$2,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,a=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$6.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)})),t.sources.forEach((function(e){let n=e;null!=r&&(n=util$6.relative(r,e)),a._sources.has(n)||a._sources.add(n);const o=t.sourceContentFor(e);null!=o&&a.setSourceContent(e,o)})),a}addMapping(e){const t=util$6.getArg(e,"generated"),r=util$6.getArg(e,"original",null);let a=util$6.getArg(e,"source",null),n=util$6.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,n),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r&&r.line,originalColumn:r&&r.column,source:a,name:n})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$6.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$6.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$6.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let a=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=e.file}const n=this._sourceRoot;null!=n&&(a=util$6.relative(n,a));const o=this._mappings.toArray().length>0?new ArraySet$3:this._sources,s=new ArraySet$3;this._mappings.unsortedForEach((function(t){if(t.source===a&&null!=t.originalLine){const a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=util$6.join(r,t.source)),null!=n&&(t.source=util$6.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}const c=t.source;null==c||o.has(c)||o.add(c);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=util$6.join(r,t)),null!=n&&(t=util$6.relative(n,t)),this.setSourceContent(t,a))}),this)}_validateMapping(e,t,r,a){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!a);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:a}))}_serializeMappings(){let e,t,r,a,n=0,o=1,s=0,c=0,i=0,u=0,p="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$6.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ$1.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=base64VLQ$1.encode(a-u),u=a,e+=base64VLQ$1.encode(t.originalLine-1-c),c=t.originalLine-1,e+=base64VLQ$1.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ$1.encode(r-i),i=r)),p+=e}return p}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$6.relative(t,e));const r=util$6.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$3.prototype._version=3,sourceMapGenerator$1.SourceMapGenerator=SourceMapGenerator$3;var sourceNode$1={};const SourceMapGenerator$2=sourceMapGenerator$1.SourceMapGenerator,util$5=util$8,REGEX_NEWLINE$1=/(\r?\n)/,NEWLINE_CODE$1=10,isSourceNode$1="$$$isSourceNode$$$";let SourceNode$4=class e{constructor(e,t,r,a,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==n?null:n,this[isSourceNode$1]=!0,null!=a&&this.add(a)}static fromStringWithSourceMap(t,r,a){const n=new e,o=t.split(REGEX_NEWLINE$1);let s=0;const c=function(){return e()+(e()||"");function e(){return s=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode$1]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let r=0,a=this.children.length;r0){for(t=[],r=0;r' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.prototype.sourceNode=function(e,t,r){var a=GrammarLocation$3.offsetStart(e);return new SourceNode$3(a.line,a.column?a.column-1:null,String(e.source),t,r)},e.prototype.push=function(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);var t=this.labels[this.sp],r=[this.name(this.sp)," = ",e,";"];if(t){if(this.sourceMapStack.length){var a=this.sourceNode(t.location,r.splice(0,2),t.label),n=this.sourceMapPopInternal(),o=n.parts,s=n.location,c=s.start.offsett.end.offset&&(r[2]={start:t.end,end:r[2].end,source:r[2].source})}this.sourceMapStack.push([e,e.length,t])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop(),t=e[0],r=e[1],a=e[2],n=t.splice(r).map((function(e){return e instanceof SourceNode$3?e:e+"\n"}));if(n.length){var o=GrammarLocation$3.offsetStart(a);t.push(new SourceNode$3(o.line,o.column-1,String(a.source),n))}return{parts:t,location:a}},e.prototype.sourceMapPop=function(e){var t=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&t.end.offset>2],n+=t[(3&e[o])<<4|e[o+1]>>4],n+=t[(15&e[o+1])<<2|e[o+2]>>6],n+=t[63&e[o+2]];return 1===r?(n+=t[e[a]>>2],n+=t[(3&e[a])<<4],n+="=="):2===r&&(n+=t[e[a]>>2],n+=t[(3&e[a])<<4|e[a+1]>>4],n+=t[(15&e[a+1])<<2],n+="="),n}utils$1.hex=hex$1,utils$1.stringEscape=stringEscape$2,utils$1.regexpClassEscape=regexpClassEscape$2,utils$1.base64=base64$4;var __spreadArray$3=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n0&&(r.forEach((function(e){o.push("var "+e+' = require("'+stringEscape$1(t.dependencies[e])+'");')})),o.push("")),o.push(e,"","module.exports = "+n()+";"),o},es:function(){var r=Object.keys(t.dependencies),n=a();return n.push(""),r.length>0&&(r.forEach((function(e){n.push("import "+e+' from "'+stringEscape$1(t.dependencies[e])+'";')})),n.push("")),n.push(e,"","export {"," peg$SyntaxError as SyntaxError,",t.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),n},amd:function(){var o=Object.keys(t.dependencies),s="["+o.map((function(e){return t.dependencies[e]})).map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",c=o.join(", ");return __spreadArray$3(__spreadArray$3([],a(),!0),["define("+s+", function("+c+") {",' "use strict";',"",e,"",r("return "+n()+";"),"});"],!1)},globals:function(){return __spreadArray$3(__spreadArray$3([],a(),!0),["(function(root) {",' "use strict";',"",e,"",r("root."+t.exportVar+" = "+n()+";"),"})(this);"],!1)},umd:function(){var o=Object.keys(t.dependencies),s=o.map((function(e){return t.dependencies[e]})),c="["+s.map((function(e){return'"'+stringEscape$1(e)+'"'})).join(", ")+"]",i=s.map((function(e){return'require("'+stringEscape$1(e)+'")'})).join(", "),u=o.join(", "),p=a();return p.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+c+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+i+");"),null!==t.exportVar&&p.push(" } else {"," root."+t.exportVar+" = factory();"),p.push(" }","})(this, function("+u+") {",' "use strict";',"",e,"",r("return "+n()+";"),"});"),p}},s=o[t.format]();return new SourceNode$2(null,null,t.grammarSource,s.map((function(e){return e instanceof SourceNode$2?e:e+"\n"})))}(function(){var u=[];e.topLevelInitializer&&(u.push(i(e.topLevelInitializer)),u.push("")),u.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),t.trace&&u.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");var p="{ "+t.allowedStartRules.map((function(e){return e+": "+c(e)})).join(", ")+" }",l=c(t.allowedStartRules[0]);return u.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+p+";"," var peg$startRuleFunction = "+l+";","",new SourceNode$2(null,null,t.grammarSource,[e.literals.map((function(e,t){return" var "+a(t)+' = "'+stringEscape$1(e)+'";'})).concat("",e.classes.map((function(e,t){return" var "+n(t)+" = /^["+((r=e).inverted?"^":"")+r.value.map((function(e){return Array.isArray(e)?regexpClassEscape$1(e[0])+"-"+regexpClassEscape$1(e[1]):regexpClassEscape$1(e)})).join("")+"]/"+(r.ignoreCase?"i":"")+";";var r}))).concat("",e.expectations.map((function(e,t){return" var "+o(t)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape$1(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape$1(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape$1(e[0])+'", "'+stringEscape$1(e[1])+'"]':'"'+stringEscape$1(e)+'"'})).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"}))).concat("").join("\n"),e.functions.map((function(e,t){return wrapInSourceNode("\n var ".concat(s(t)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),t.cache&&u.push(" var peg$resultsCache = {};",""),t.trace&&u.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),u.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((function(i){u.push.apply(u,r(function(i){var u=[],p=new Stack$1(i.name,"s","var",i.bytecode),l=function t(u){var l,f=0,d=u.length,$=[];function m(e,a){var n,o,s=a+3,c=u[f+s-2],i=u[f+s-1];p.checkedIf(f,(function(){f+=s,n=t(u.slice(f,f+c)),f+=c}),i>0?function(){o=t(u.slice(f,f+i)),f+=i}:null),$.push("if ("+e+") {"),$.push.apply($,r(n)),i>0&&($.push("} else {"),$.push.apply($,r(o))),$.push("}")}function h(e){var a,n=u[f+2-1];p.checkedLoop(f,(function(){f+=2,a=t(u.slice(f,f+n)),f+=n})),$.push("while ("+e+") {"),$.push.apply($,r(a)),$.push("}")}function g(e){var t=u[f+e-1];return s(u[f+1])+"("+u.slice(f+e,f+e+t).map((function(e){return p.index(e)})).join(", ")+")"}for(;f= "+u[f+1],1);break;case op.IF_LT_DYNAMIC:m(p.top()+".length < "+p.index(u[f+1])+"|0",1);break;case op.IF_GE_DYNAMIC:m(p.top()+".length >= "+p.index(u[f+1])+"|0",1);break;case op.WHILE_NOT_ERROR:h(p.top()+" !== peg$FAILED");break;case op.MATCH_ANY:m("input.length > peg$currPos",0);break;case op.MATCH_STRING:m(e.literals[u[f+1]].length>1?"input.substr(peg$currPos, "+e.literals[u[f+1]].length+") === "+a(u[f+1]):"input.charCodeAt(peg$currPos) === "+e.literals[u[f+1]].charCodeAt(0),1);break;case op.MATCH_STRING_IC:m("input.substr(peg$currPos, "+e.literals[u[f+1]].length+").toLowerCase() === "+a(u[f+1]),1);break;case op.MATCH_CHAR_CLASS:m(n(u[f+1])+".test(input.charAt(peg$currPos))",1);break;case op.ACCEPT_N:$.push(p.push(u[f+1]>1?"input.substr(peg$currPos, "+u[f+1]+")":"input.charAt(peg$currPos)")),$.push(u[f+1]>1?"peg$currPos += "+u[f+1]+";":"peg$currPos++;"),f+=2;break;case op.ACCEPT_STRING:$.push(p.push(a(u[f+1]))),$.push(e.literals[u[f+1]].length>1?"peg$currPos += "+e.literals[u[f+1]].length+";":"peg$currPos++;"),f+=2;break;case op.FAIL:$.push(p.push("peg$FAILED")),$.push("if (peg$silentFails === 0) { peg$fail("+o(u[f+1])+"); }"),f+=2;break;case op.LOAD_SAVED_POS:$.push("peg$savedPos = "+p.index(u[f+1])+";"),f+=2;break;case op.UPDATE_SAVED_POS:$.push("peg$savedPos = peg$currPos;"),f++;break;case op.CALL:l=g(4),p.pop(u[f+2]),$.push(p.push(l)),f+=4+u[f+3];break;case op.RULE:$.push(p.push(c(e.rules[u[f+1]].name)+"()")),f+=2;break;case op.SILENT_FAILS_ON:$.push("peg$silentFails++;"),f++;break;case op.SILENT_FAILS_OFF:$.push("peg$silentFails--;"),f++;break;case op.SOURCE_MAP_PUSH:p.sourceMapPush($,e.locations[u[f+1]]),f+=2;break;case op.SOURCE_MAP_POP:p.sourceMapPop(),f++;break;case op.SOURCE_MAP_LABEL_PUSH:p.labels[u[f+1]]={label:e.literals[u[f+2]],location:e.locations[u[f+3]]},f+=4;break;case op.SOURCE_MAP_LABEL_POP:delete p.labels[u[f+1]],f+=2;break;default:throw new Error("Invalid opcode: "+u[f]+".",{rule:i.name,bytecode:u})}return $}(i.bytecode);return u.push(wrapInSourceNode("function ",c(i.name),i.nameLocation,"() {\n",i.name)),t.trace&&u.push(" var startPos = peg$currPos;"),u.push(r(p.defines())),u.push.apply(u,r(function(r,a){var n=[];return n.push(""),t.trace&&n.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+r+","," location: peg$computeLocation(startPos, startPos, true)","});",""),t.cache&&(n.push("var key = peg$currPos * "+e.rules.length+" + "+a+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),t.trace&&n.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+r+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+r+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),n.push(" return cached.result;","}","")),n}('"'+stringEscape$1(i.name)+'"',asts$4.indexOfRule(e,i.name)))),u.push.apply(u,r(l)),u.push.apply(u,r(function(e,r){var a=[];return t.cache&&a.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+r+" };"),t.trace&&a.push("","if ("+r+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+r+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),a.push("","return "+r+";"),a}('"'+stringEscape$1(i.name)+'"',p.result()))),u.push("}"),u}(i))),u.push("")})),e.initializer&&(u.push(i(e.initializer)),u.push("")),u.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new SourceNode$2(null,null,t.grammarSource,u.map((function(e){return e instanceof SourceNode$2?e:e+"\n"})))}())}var generateJs=generateJS$1,asts$3=asts_1,visitor$7=visitor_1;function removeProxyRules$1(e,t,r){var a=[];e.rules.forEach((function(n,o){var s;"rule"===(s=n).type&&"rule_ref"===s.expression.type&&(function(e,t,a){visitor$7.build({rule_ref:function(n){n.name===t&&(n.name=a,r.info('Proxy rule "'.concat(t,'" replaced by the rule "').concat(a,'"'),n.location,[{message:"This rule will be used",location:asts$3.findRule(e,a).nameLocation}]))}})(e)}(e,n.name,n.expression.name),-1===t.allowedStartRules.indexOf(n.name)&&a.push(o))})),a.reverse(),a.forEach((function(t){e.rules.splice(t,1)}))}var removeProxyRules_1=removeProxyRules$1,visitor$6=visitor_1;function reportDuplicateLabels$1(e,t,r){function a(e){var t={};return Object.keys(e).forEach((function(r){t[r]=e[r]})),t}function n(e,t){o(e.expression,a(t))}var o=visitor$6.build({rule:function(e){o(e.expression,{})},choice:function(e,t){e.alternatives.forEach((function(e){o(e,a(t))}))},action:n,labeled:function(e,t){var a=e.label;a&&Object.prototype.hasOwnProperty.call(t,a)&&r.error('Label "'.concat(e.label,'" is already defined'),e.labelLocation,[{message:"Original label location",location:t[a]}]),o(e.expression,t),t[e.label]=e.labelLocation},text:n,simple_and:n,simple_not:n,optional:n,zero_or_more:n,one_or_more:n,repeated:function(e,t){e.delimiter&&o(e.delimiter,a(t)),o(e.expression,a(t))},group:n});o(e)}var reportDuplicateLabels_1=reportDuplicateLabels$1,visitor$5=visitor_1;function reportDuplicateRules$1(e,t,r){var a={};visitor$5.build({rule:function(e){Object.prototype.hasOwnProperty.call(a,e.name)?r.error('Rule "'.concat(e.name,'" is already defined'),e.nameLocation,[{message:"Original rule location",location:a[e.name]}]):a[e.name]=e.nameLocation}})(e)}var reportDuplicateRules_1=reportDuplicateRules$1,asts$2=asts_1,visitor$4=visitor_1;function reportInfiniteRecursion$1(e,t,r){var a=[],n=[],o=visitor$4.build({rule:function(e){a.push(e.name),o(e.expression),a.pop()},sequence:function(t){t.elements.every((function(t){return o(t),!asts$2.alwaysConsumesOnSuccess(e,t)}))},repeated:function(t){o(t.expression),t.delimiter&&!asts$2.alwaysConsumesOnSuccess(e,t.expression)&&o(t.delimiter)},rule_ref:function(t){n.push(t);var s=asts$2.findRule(e,t.name);if(-1!==a.indexOf(t.name))return a.push(t.name),void r.error("Possible infinite loop when parsing (left recursion: "+a.join(" -> ")+")",s.nameLocation,n.map((function(e,t,r){return{message:t+1!==r.length?"Step ".concat(t+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(t+1,": call itself without input consumption - left recursion"),location:e.location}})));s&&o(s),n.pop()}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$1=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,t,r){visitor$3.build({zero_or_more:function(t){asts$1.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},one_or_more:function(t){asts$1.alwaysConsumesOnSuccess(e,t.expression)||r.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",t.location)},repeated:function(t){if(!(asts$1.alwaysConsumesOnSuccess(e,t.expression)||t.delimiter&&asts$1.alwaysConsumesOnSuccess(e,t.delimiter)))if(null===t.max.value)r.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",t.location);else{var a=t.min?t.min:t.max;r.warning("constant"===a.type&&"constant"===t.max.type?"An expression may not consume any input and may always match ".concat(t.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",t.location)}}})(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,t,r){visitor$2.build({rule_ref:function(t){asts.findRule(e,t.name)||r.error('Rule "'.concat(t.name,'" is not defined'),t.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,t,r){var a=visitor$1.build({action:function(e){a(e.expression,e)},labeled:function(e,t){e.pick&&t&&r.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:t.codeLocation}]),a(e.expression)}});a(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n0:e&&"function"==typeof e.offset}var compiler$2={visitor:visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");var session=new Session$1(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(t){session.info("Process pass ".concat(e,".").concat(t.name)),t(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64$3(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$2,OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function peg$SyntaxError(e,t,r,a){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=t,n.found=r,n.location=a,n.name="SyntaxError",n}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function peg$parse(e,t){var r,a={},n=(t=void 0!==t?t:{}).grammarSource,o={Grammar:zr},s=zr,c="{",i="}",u="=",p="/",l="@",f=":",d="$",$="&",m="!",h="?",g="*",x="+",A="|",b=",",v="..",E="(",y=")",C="\t",S="\v",_="\f",T=" ",P=" ",w="\ufeff",F="\n",B="\r\n",R="\r",D="\u2028",L="\u2029",O="/*",M="*/",I="//",k="_",N="\\",j="‌",U="‍",q="i",G='"',H="'",z="[",W="^",V="]",Y="-",Q="0",J="b",X="f",K="n",Z="r",ee="t",te="v",re="x",ae="u",ne=".",oe=";",se=/^[\n\r\u2028\u2029]/,ce=/^[0-9]/,ie=/^[0-9a-f]/i,ue=/^[{}]/,pe=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,le=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,fe=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,de=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,$e=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,me=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,he=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,ge=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,xe=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,Ae=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,be=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ve=Nr("{",!1),Ee=Nr("}",!1),ye=Nr("=",!1),Ce=Nr("/",!1),Se=Nr("@",!1),_e=Nr(":",!1),Te=Nr("$",!1),Pe=Nr("&",!1),we=Nr("!",!1),Fe=Nr("?",!1),Be=Nr("*",!1),Re=Nr("+",!1),De=Nr("|",!1),Le=Nr(",",!1),Oe=Nr("..",!1),Me=Nr("(",!1),Ie=Nr(")",!1),ke={type:"any"},Ne=Ur("whitespace"),je=Nr("\t",!1),Ue=Nr("\v",!1),qe=Nr("\f",!1),Ge=Nr(" ",!1),He=Nr(" ",!1),ze=Nr("\ufeff",!1),We=jr(["\n","\r","\u2028","\u2029"],!1,!1),Ve=Ur("end of line"),Ye=Nr("\n",!1),Qe=Nr("\r\n",!1),Je=Nr("\r",!1),Xe=Nr("\u2028",!1),Ke=Nr("\u2029",!1),Ze=Ur("comment"),et=Nr("/*",!1),tt=Nr("*/",!1),rt=Nr("//",!1),at=Ur("identifier"),nt=Nr("_",!1),ot=Nr("\\",!1),st=Nr("‌",!1),ct=Nr("‍",!1),it=Ur("literal"),ut=Nr("i",!1),pt=Ur("string"),lt=Nr('"',!1),ft=Nr("'",!1),dt=Ur("character class"),$t=Nr("[",!1),mt=Nr("^",!1),ht=Nr("]",!1),gt=Nr("-",!1),xt=Nr("0",!1),At=Nr("b",!1),bt=Nr("f",!1),vt=Nr("n",!1),Et=Nr("r",!1),yt=Nr("t",!1),Ct=Nr("v",!1),St=Nr("x",!1),_t=Nr("u",!1),Tt=jr([["0","9"]],!1,!1),Pt=jr([["0","9"],["a","f"]],!1,!0),wt=Nr(".",!1),Ft=Ur("code block"),Bt=jr(["{","}"],!1,!1),Rt=jr([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Dt=jr([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Lt=jr(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Ot=jr(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),Mt=jr([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),It=jr(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),kt=jr([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Nt=jr([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),jt=jr([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Ut=jr(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),qt=jr([" "," "," ",[" "," "]," "," "," "],!1,!1),Gt=Nr(";",!1),Ht=function(e,t,r){return{type:"grammar",topLevelInitializer:e,initializer:t,rules:r,location:Ir()}},zt=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:Ir()}},Wt=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:Ir()}},Vt=function(e,t,r){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==t?{type:"named",name:t,expression:r,location:Ir()}:r,location:Ir()}},Yt=function(e,t){return t.length>0?{type:"choice",alternatives:[e].concat(t),location:Ir()}:e},Qt=function(e,t){return null!==t?{type:"action",expression:e,code:t[0],codeLocation:t[1],location:Ir()}:e},Jt=function(e,t){return t.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(t),location:Ir()}:e},Xt=function(e,t,r){return r.type.startsWith("semantic_")&&kr('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==t?t[0]:null,labelLocation:null!==t?t[1]:e,pick:!0,expression:r,location:Ir()}},Kt=function(e,t){return{type:"labeled",label:e[0],labelLocation:e[1],expression:t,location:Ir()}},Zt=function(){return Ir()},er=function(e){return _a.indexOf(e[0])>=0&&kr("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},tr=function(e,t){return{type:OPS_TO_PREFIXED_TYPES[e],expression:t,location:Ir()}},rr=function(e,t){return{type:OPS_TO_SUFFIXED_TYPES[t],expression:e,location:Ir()}},ar=function(e,t,r){var a=t[0],n=t[1];return"constant"===n.type&&0===n.value&&kr("The maximum count of repetitions of the rule must be > 0",n.location),{type:"repeated",min:a,max:n,expression:e,delimiter:r,location:Ir()}},nr=function(e,t){return[null!==e?e:{type:"constant",value:0},null!==t?t:{type:"constant",value:null}]},or=function(e){return[null,e]},sr=function(e){return{type:"constant",value:e,location:Ir()}},cr=function(e){return{type:"variable",value:e[0],location:Ir()}},ir=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:Ir()}},ur=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:Ir()}:e},pr=function(e){return{type:"rule_ref",name:e[0],location:Ir()}},lr=function(e,t){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:t[0],codeLocation:t[1],location:Ir()}},fr=function(e,t){return[e+t.join(""),Ir()]},dr=function(e,t){return{type:"literal",value:e,ignoreCase:null!==t,location:Ir()}},$r=function(e){return e.join("")},mr=function(e){return e.join("")},hr=function(e,t,r){return{type:"class",parts:t.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==r,location:Ir()}},gr=function(t,r){return t.charCodeAt(0)>r.charCodeAt(0)&&kr("Invalid character range: "+e.substring(Rr,Br)+"."),[t,r]},xr=function(){return""},Ar=function(){return"\0"},br=function(){return"\b"},vr=function(){return"\f"},Er=function(){return"\n"},yr=function(){return"\r"},Cr=function(){return"\t"},Sr=function(){return"\v"},_r=function(e){return String.fromCharCode(parseInt(e,16))},Tr=function(e){return String.fromCharCode(parseInt(e,16))},Pr=function(){return{type:"any",location:Ir()}},wr=function(e){return[e,Ir()]},Fr=function(e){return parseInt(e,10)},Br=0,Rr=0,Dr=[{line:1,column:1}],Lr=0,Or=[],Mr=0;if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=o[t.startRule]}function Ir(){return Gr(Rr,Br)}function kr(e,t){throw function(e,t){return new peg$SyntaxError(e,null,null,t)}(e,t=void 0!==t?t:Gr(Rr,Br))}function Nr(e,t){return{type:"literal",text:e,ignoreCase:t}}function jr(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ur(e){return{type:"other",description:e}}function qr(t){var r,a=Dr[t];if(a)return a;for(r=t-1;!Dr[r];)r--;for(a={line:(a=Dr[r]).line,column:a.column};rLr&&(Lr=Br,Or=[]),Or.push(e))}function zr(){var t,r,n,o,s,u;if(t=Br,Ca(),r=Br,n=function(){var t,r,n,o;return t=Br,123===e.charCodeAt(Br)?(r=c,Br++):(r=a,0===Mr&&Hr(ve)),r!==a&&(n=Ea())!==a?(125===e.charCodeAt(Br)?(o=i,Br++):(o=a,0===Mr&&Hr(Ee)),o!==a&&Sa()!==a?(Rr=t,t=zt(n)):(Br=t,t=a)):(Br=t,t=a),t}(),n!==a?(o=Ca(),r=n):(Br=r,r=a),r===a&&(r=null),n=Br,o=function(){var e,t;return e=Br,(t=Ea())!==a&&Sa()!==a?(Rr=e,e=Wt(t)):(Br=e,e=a),e}(),o!==a?(s=Ca(),n=o):(Br=n,n=a),n===a&&(n=null),o=[],s=Br,(u=Wr())!==a?(Ca(),s=u):(Br=s,s=a),s!==a)for(;s!==a;)o.push(s),s=Br,(u=Wr())!==a?(Ca(),s=u):(Br=s,s=a);else o=a;return o!==a?(Rr=t,t=Ht(r,n,o)):(Br=t,t=a),t}function Wr(){var t,r,n,o,s;return t=Br,(r=ia())!==a?(Ca(),n=Br,(o=la())!==a?(Ca(),n=o):(Br=n,n=a),n===a&&(n=null),61===e.charCodeAt(Br)?(o=u,Br++):(o=a,0===Mr&&Hr(ye)),o!==a?(Ca(),(s=Vr())!==a&&Sa()!==a?(Rr=t,t=Vt(r,n,s)):(Br=t,t=a)):(Br=t,t=a)):(Br=t,t=a),t}function Vr(){var t,r,n,o,s,c;if(t=Br,(r=Yr())!==a){for(n=[],o=Br,Ca(),47===e.charCodeAt(Br)?(s=p,Br++):(s=a,0===Mr&&Hr(Ce)),s!==a?(Ca(),(c=Yr())!==a?o=c:(Br=o,o=a)):(Br=o,o=a);o!==a;)n.push(o),o=Br,Ca(),47===e.charCodeAt(Br)?(s=p,Br++):(s=a,0===Mr&&Hr(Ce)),s!==a?(Ca(),(c=Yr())!==a?o=c:(Br=o,o=a)):(Br=o,o=a);Rr=t,t=Yt(r,n)}else Br=t,t=a;return t}function Yr(){var e,t,r,n;return e=Br,t=function(){var e,t,r,n,o;if(e=Br,(t=Qr())!==a){for(r=[],n=Br,Ca(),(o=Qr())!==a?n=o:(Br=n,n=a);n!==a;)r.push(n),n=Br,Ca(),(o=Qr())!==a?n=o:(Br=n,n=a);Rr=e,e=Jt(t,r)}else Br=e,e=a;return e}(),t!==a?(r=Br,Ca(),(n=Ea())!==a?r=n:(Br=r,r=a),r===a&&(r=null),Rr=e,e=Qt(t,r)):(Br=e,e=a),e}function Qr(){var t,r,n,o;return t=Br,r=function(){var t,r;return t=Br,64===e.charCodeAt(Br)?(r=l,Br++):(r=a,0===Mr&&Hr(Se)),r!==a&&(Rr=t,r=Zt()),t=r}(),r!==a?((n=Jr())===a&&(n=null),(o=Xr())!==a?(Rr=t,t=Xt(r,n,o)):(Br=t,t=a)):(Br=t,t=a),t===a&&(t=Br,(r=Jr())!==a?(n=Ca(),(o=Xr())!==a?(Rr=t,t=Kt(r,o)):(Br=t,t=a)):(Br=t,t=a),t===a&&(t=Xr())),t}function Jr(){var t,r,n;return t=Br,(r=ia())!==a?(Ca(),58===e.charCodeAt(Br)?(n=f,Br++):(n=a,0===Mr&&Hr(_e)),n!==a?(Rr=t,t=er(r)):(Br=t,t=a)):(Br=t,t=a),t}function Xr(){var t,r,n;return t=Br,r=function(){var t;return 36===e.charCodeAt(Br)?(t=d,Br++):(t=a,0===Mr&&Hr(Te)),t===a&&(38===e.charCodeAt(Br)?(t=$,Br++):(t=a,0===Mr&&Hr(Pe)),t===a&&(33===e.charCodeAt(Br)?(t=m,Br++):(t=a,0===Mr&&Hr(we)))),t}(),r!==a?(Ca(),(n=Kr())!==a?(Rr=t,t=tr(r,n)):(Br=t,t=a)):(Br=t,t=a),t===a&&(t=Kr()),t}function Kr(){var t,r,n;return t=Br,(r=ea())!==a?(Ca(),n=function(){var t;return 63===e.charCodeAt(Br)?(t=h,Br++):(t=a,0===Mr&&Hr(Fe)),t===a&&(42===e.charCodeAt(Br)?(t=g,Br++):(t=a,0===Mr&&Hr(Be)),t===a&&(43===e.charCodeAt(Br)?(t=x,Br++):(t=a,0===Mr&&Hr(Re)))),t}(),n!==a?(Rr=t,t=rr(r,n)):(Br=t,t=a)):(Br=t,t=a),t===a&&(t=function(){var t,r,n,o,s,c,i;return t=Br,(r=ea())!==a?(Ca(),124===e.charCodeAt(Br)?(n=A,Br++):(n=a,0===Mr&&Hr(De)),n!==a?(Ca(),o=function(){var t,r,n,o;return t=Br,(r=Zr())===a&&(r=null),Ca(),e.substr(Br,2)===v?(n=v,Br+=2):(n=a,0===Mr&&Hr(Oe)),n!==a?(Ca(),(o=Zr())===a&&(o=null),Rr=t,t=nr(r,o)):(Br=t,t=a),t===a&&(t=Br,(r=Zr())!==a&&(Rr=t,r=or(r)),t=r),t}(),o!==a?(Ca(),s=Br,44===e.charCodeAt(Br)?(c=b,Br++):(c=a,0===Mr&&Hr(Le)),c!==a?(Ca(),(i=Vr())!==a?(Ca(),s=i):(Br=s,s=a)):(Br=s,s=a),s===a&&(s=null),124===e.charCodeAt(Br)?(c=A,Br++):(c=a,0===Mr&&Hr(De)),c!==a?(Rr=t,t=ar(r,o,s)):(Br=t,t=a)):(Br=t,t=a)):(Br=t,t=a)):(Br=t,t=a),t}(),t===a&&(t=ea())),t}function Zr(){var t,r;return t=Br,r=function(){var t,r,n,o;if(t=Br,r=Br,n=[],(o=ba())!==a)for(;o!==a;)n.push(o),o=ba();else n=a;return(r=n!==a?e.substring(r,Br):n)!==a&&(Rr=t,r=Fr(r)),t=r}(),r!==a&&(Rr=t,r=sr(r)),(t=r)===a&&(t=Br,(r=ia())!==a&&(Rr=t,r=cr(r)),(t=r)===a&&(t=Br,(r=Ea())!==a&&(Rr=t,r=ir(r)),t=r)),t}function ea(){var t,r,n,o;return t=function(){var t,r,n;return Mr++,t=Br,(r=la())!==a?(105===e.charCodeAt(Br)?(n=q,Br++):(n=a,0===Mr&&Hr(ut)),n===a&&(n=null),Rr=t,t=dr(r,n)):(Br=t,t=a),Mr--,t===a&&(r=a,0===Mr&&Hr(it)),t}(),t===a&&(t=function(){var t,r,n,o,s,c;if(Mr++,t=Br,91===e.charCodeAt(Br)?(r=z,Br++):(r=a,0===Mr&&Hr($t)),r!==a){for(94===e.charCodeAt(Br)?(n=W,Br++):(n=a,0===Mr&&Hr(mt)),n===a&&(n=null),o=[],(s=$a())===a&&(s=ma());s!==a;)o.push(s),(s=$a())===a&&(s=ma());93===e.charCodeAt(Br)?(s=V,Br++):(s=a,0===Mr&&Hr(ht)),s!==a?(105===e.charCodeAt(Br)?(c=q,Br++):(c=a,0===Mr&&Hr(ut)),c===a&&(c=null),Rr=t,t=hr(n,o,c)):(Br=t,t=a)}else Br=t,t=a;return Mr--,t===a&&(r=a,0===Mr&&Hr(dt)),t}(),t===a&&(t=function(){var t,r;return t=Br,46===e.charCodeAt(Br)?(r=ne,Br++):(r=a,0===Mr&&Hr(wt)),r!==a&&(Rr=t,r=Pr()),t=r}(),t===a&&(t=function(){var t,r,n,o,s,c,i;return t=Br,(r=ia())!==a?(n=Br,Mr++,o=Br,s=Ca(),c=Br,(i=la())!==a?c=i=[i,Ca()]:(Br=c,c=a),c===a&&(c=null),61===e.charCodeAt(Br)?(i=u,Br++):(i=a,0===Mr&&Hr(ye)),i!==a?o=s=[s,c,i]:(Br=o,o=a),Mr--,o===a?n=void 0:(Br=n,n=a),n!==a?(Rr=t,t=pr(r)):(Br=t,t=a)):(Br=t,t=a),t}(),t===a&&(t=function(){var t,r,n;return t=Br,r=function(){var t;return 38===e.charCodeAt(Br)?(t=$,Br++):(t=a,0===Mr&&Hr(Pe)),t===a&&(33===e.charCodeAt(Br)?(t=m,Br++):(t=a,0===Mr&&Hr(we))),t}(),r!==a?(Ca(),(n=Ea())!==a?(Rr=t,t=lr(r,n)):(Br=t,t=a)):(Br=t,t=a),t}(),t===a&&(t=Br,40===e.charCodeAt(Br)?(r=E,Br++):(r=a,0===Mr&&Hr(Me)),r!==a?(Ca(),(n=Vr())!==a?(Ca(),41===e.charCodeAt(Br)?(o=y,Br++):(o=a,0===Mr&&Hr(Ie)),o!==a?(Rr=t,t=ur(n)):(Br=t,t=a)):(Br=t,t=a)):(Br=t,t=a)))))),t}function ta(){var t;return e.length>Br?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(ke)),t}function ra(){var t;return Mr++,9===e.charCodeAt(Br)?(t=C,Br++):(t=a,0===Mr&&Hr(je)),t===a&&(11===e.charCodeAt(Br)?(t=S,Br++):(t=a,0===Mr&&Hr(Ue)),t===a&&(12===e.charCodeAt(Br)?(t=_,Br++):(t=a,0===Mr&&Hr(qe)),t===a&&(32===e.charCodeAt(Br)?(t=T,Br++):(t=a,0===Mr&&Hr(Ge)),t===a&&(160===e.charCodeAt(Br)?(t=P,Br++):(t=a,0===Mr&&Hr(He)),t===a&&(65279===e.charCodeAt(Br)?(t=w,Br++):(t=a,0===Mr&&Hr(ze)),t===a&&(t=function(){var t;return be.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(qt)),t}())))))),Mr--,t===a&&0===Mr&&Hr(Ne),t}function aa(){var t;return se.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(We)),t}function na(){var t;return Mr++,10===e.charCodeAt(Br)?(t=F,Br++):(t=a,0===Mr&&Hr(Ye)),t===a&&(e.substr(Br,2)===B?(t=B,Br+=2):(t=a,0===Mr&&Hr(Qe)),t===a&&(13===e.charCodeAt(Br)?(t=R,Br++):(t=a,0===Mr&&Hr(Je)),t===a&&(8232===e.charCodeAt(Br)?(t=D,Br++):(t=a,0===Mr&&Hr(Xe)),t===a&&(8233===e.charCodeAt(Br)?(t=L,Br++):(t=a,0===Mr&&Hr(Ke)))))),Mr--,t===a&&0===Mr&&Hr(Ve),t}function oa(){var t;return Mr++,(t=function(){var t,r,n,o,s,c;if(t=Br,e.substr(Br,2)===O?(r=O,Br+=2):(r=a,0===Mr&&Hr(et)),r!==a){for(n=[],o=Br,s=Br,Mr++,e.substr(Br,2)===M?(c=M,Br+=2):(c=a,0===Mr&&Hr(tt)),Mr--,c===a?s=void 0:(Br=s,s=a),s!==a&&(c=ta())!==a?o=s=[s,c]:(Br=o,o=a);o!==a;)n.push(o),o=Br,s=Br,Mr++,e.substr(Br,2)===M?(c=M,Br+=2):(c=a,0===Mr&&Hr(tt)),Mr--,c===a?s=void 0:(Br=s,s=a),s!==a&&(c=ta())!==a?o=s=[s,c]:(Br=o,o=a);e.substr(Br,2)===M?(o=M,Br+=2):(o=a,0===Mr&&Hr(tt)),o!==a?t=r=[r,n,o]:(Br=t,t=a)}else Br=t,t=a;return t}())===a&&(t=ca()),Mr--,t===a&&0===Mr&&Hr(Ze),t}function sa(){var t,r,n,o,s,c;if(t=Br,e.substr(Br,2)===O?(r=O,Br+=2):(r=a,0===Mr&&Hr(et)),r!==a){for(n=[],o=Br,s=Br,Mr++,e.substr(Br,2)===M?(c=M,Br+=2):(c=a,0===Mr&&Hr(tt)),c===a&&(c=aa()),Mr--,c===a?s=void 0:(Br=s,s=a),s!==a&&(c=ta())!==a?o=s=[s,c]:(Br=o,o=a);o!==a;)n.push(o),o=Br,s=Br,Mr++,e.substr(Br,2)===M?(c=M,Br+=2):(c=a,0===Mr&&Hr(tt)),c===a&&(c=aa()),Mr--,c===a?s=void 0:(Br=s,s=a),s!==a&&(c=ta())!==a?o=s=[s,c]:(Br=o,o=a);e.substr(Br,2)===M?(o=M,Br+=2):(o=a,0===Mr&&Hr(tt)),o!==a?t=r=[r,n,o]:(Br=t,t=a)}else Br=t,t=a;return t}function ca(){var t,r,n,o,s,c;if(t=Br,e.substr(Br,2)===I?(r=I,Br+=2):(r=a,0===Mr&&Hr(rt)),r!==a){for(n=[],o=Br,s=Br,Mr++,c=aa(),Mr--,c===a?s=void 0:(Br=s,s=a),s!==a&&(c=ta())!==a?o=s=[s,c]:(Br=o,o=a);o!==a;)n.push(o),o=Br,s=Br,Mr++,c=aa(),Mr--,c===a?s=void 0:(Br=s,s=a),s!==a&&(c=ta())!==a?o=s=[s,c]:(Br=o,o=a);t=r=[r,n]}else Br=t,t=a;return t}function ia(){var e,t,r,n;if(Mr++,e=Br,(t=ua())!==a){for(r=[],n=pa();n!==a;)r.push(n),n=pa();Rr=e,e=fr(t,r)}else Br=e,e=a;return Mr--,e===a&&(t=a,0===Mr&&Hr(at)),e}function ua(){var t,r,n;return(t=function(){var t;return(t=function(){var t;return $e.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Mt)),t}())===a&&(t=function(){var t;return pe.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Rt)),t}())===a&&(t=function(){var t;return de.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Ot)),t}())===a&&(t=function(){var t;return le.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Dt)),t}())===a&&(t=function(){var t;return fe.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Lt)),t}())===a&&(t=function(){var t;return xe.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(jt)),t}()),t}())===a&&(36===e.charCodeAt(Br)?(t=d,Br++):(t=a,0===Mr&&Hr(Te)),t===a&&(95===e.charCodeAt(Br)?(t=k,Br++):(t=a,0===Mr&&Hr(nt)),t===a&&(t=Br,92===e.charCodeAt(Br)?(r=N,Br++):(r=a,0===Mr&&Hr(ot)),r!==a&&(n=Aa())!==a?t=n:(Br=t,t=a)))),t}function pa(){var t;return(t=ua())===a&&(t=function(){var t;return(t=function(){var t;return he.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(kt)),t}())===a&&(t=function(){var t;return me.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(It)),t}()),t}())===a&&(t=function(){var t;return ge.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Nt)),t}())===a&&(t=function(){var t;return Ae.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Ut)),t}())===a&&(8204===e.charCodeAt(Br)?(t=j,Br++):(t=a,0===Mr&&Hr(st)),t===a&&(8205===e.charCodeAt(Br)?(t=U,Br++):(t=a,0===Mr&&Hr(ct)))),t}function la(){var t,r,n,o;if(Mr++,t=Br,34===e.charCodeAt(Br)?(r=G,Br++):(r=a,0===Mr&&Hr(lt)),r!==a){for(n=[],o=fa();o!==a;)n.push(o),o=fa();34===e.charCodeAt(Br)?(o=G,Br++):(o=a,0===Mr&&Hr(lt)),o!==a?(Rr=t,t=$r(n)):(Br=t,t=a)}else Br=t,t=a;if(t===a)if(t=Br,39===e.charCodeAt(Br)?(r=H,Br++):(r=a,0===Mr&&Hr(ft)),r!==a){for(n=[],o=da();o!==a;)n.push(o),o=da();39===e.charCodeAt(Br)?(o=H,Br++):(o=a,0===Mr&&Hr(ft)),o!==a?(Rr=t,t=mr(n)):(Br=t,t=a)}else Br=t,t=a;return Mr--,t===a&&(r=a,0===Mr&&Hr(pt)),t}function fa(){var t,r,n,o;return t=Br,r=Br,n=Br,Mr++,34===e.charCodeAt(Br)?(o=G,Br++):(o=a,0===Mr&&Hr(lt)),o===a&&(92===e.charCodeAt(Br)?(o=N,Br++):(o=a,0===Mr&&Hr(ot)),o===a&&(o=aa())),Mr--,o===a?n=void 0:(Br=n,n=a),n!==a&&(o=ta())!==a?r=n=[n,o]:(Br=r,r=a),(t=r!==a?e.substring(t,Br):r)===a&&(t=Br,92===e.charCodeAt(Br)?(r=N,Br++):(r=a,0===Mr&&Hr(ot)),r!==a&&(n=ga())!==a?t=n:(Br=t,t=a),t===a&&(t=ha())),t}function da(){var t,r,n,o;return t=Br,r=Br,n=Br,Mr++,39===e.charCodeAt(Br)?(o=H,Br++):(o=a,0===Mr&&Hr(ft)),o===a&&(92===e.charCodeAt(Br)?(o=N,Br++):(o=a,0===Mr&&Hr(ot)),o===a&&(o=aa())),Mr--,o===a?n=void 0:(Br=n,n=a),n!==a&&(o=ta())!==a?r=n=[n,o]:(Br=r,r=a),(t=r!==a?e.substring(t,Br):r)===a&&(t=Br,92===e.charCodeAt(Br)?(r=N,Br++):(r=a,0===Mr&&Hr(ot)),r!==a&&(n=ga())!==a?t=n:(Br=t,t=a),t===a&&(t=ha())),t}function $a(){var t,r,n,o;return t=Br,(r=ma())!==a?(45===e.charCodeAt(Br)?(n=Y,Br++):(n=a,0===Mr&&Hr(gt)),n!==a&&(o=ma())!==a?(Rr=t,t=gr(r,o)):(Br=t,t=a)):(Br=t,t=a),t}function ma(){var t,r,n,o;return t=Br,r=Br,n=Br,Mr++,93===e.charCodeAt(Br)?(o=V,Br++):(o=a,0===Mr&&Hr(ht)),o===a&&(92===e.charCodeAt(Br)?(o=N,Br++):(o=a,0===Mr&&Hr(ot)),o===a&&(o=aa())),Mr--,o===a?n=void 0:(Br=n,n=a),n!==a&&(o=ta())!==a?r=n=[n,o]:(Br=r,r=a),(t=r!==a?e.substring(t,Br):r)===a&&(t=Br,92===e.charCodeAt(Br)?(r=N,Br++):(r=a,0===Mr&&Hr(ot)),r!==a&&(n=ga())!==a?t=n:(Br=t,t=a),t===a&&(t=ha())),t}function ha(){var t,r;return t=Br,92===e.charCodeAt(Br)?(r=N,Br++):(r=a,0===Mr&&Hr(ot)),r!==a&&na()!==a?(Rr=t,t=xr()):(Br=t,t=a),t}function ga(){var t,r,n,o;return t=function(){var t;return(t=xa())===a&&(t=function(){var t,r,n,o;return t=Br,r=Br,n=Br,Mr++,o=function(){var t;return(t=xa())===a&&(t=ba())===a&&(120===e.charCodeAt(Br)?(t=re,Br++):(t=a,0===Mr&&Hr(St)),t===a&&(117===e.charCodeAt(Br)?(t=ae,Br++):(t=a,0===Mr&&Hr(_t)))),t}(),o===a&&(o=aa()),Mr--,o===a?n=void 0:(Br=n,n=a),n!==a&&(o=ta())!==a?r=n=[n,o]:(Br=r,r=a),t=r!==a?e.substring(t,Br):r}()),t}(),t===a&&(t=Br,48===e.charCodeAt(Br)?(r=Q,Br++):(r=a,0===Mr&&Hr(xt)),r!==a?(n=Br,Mr++,o=ba(),Mr--,o===a?n=void 0:(Br=n,n=a),n!==a?(Rr=t,t=Ar()):(Br=t,t=a)):(Br=t,t=a),t===a&&(t=function(){var t,r,n,o,s,c;return t=Br,120===e.charCodeAt(Br)?(r=re,Br++):(r=a,0===Mr&&Hr(St)),r!==a?(n=Br,o=Br,(s=va())!==a&&(c=va())!==a?o=s=[s,c]:(Br=o,o=a),(n=o!==a?e.substring(n,Br):o)!==a?(Rr=t,t=_r(n)):(Br=t,t=a)):(Br=t,t=a),t}(),t===a&&(t=Aa()))),t}function xa(){var t,r;return 39===e.charCodeAt(Br)?(t=H,Br++):(t=a,0===Mr&&Hr(ft)),t===a&&(34===e.charCodeAt(Br)?(t=G,Br++):(t=a,0===Mr&&Hr(lt)),t===a&&(92===e.charCodeAt(Br)?(t=N,Br++):(t=a,0===Mr&&Hr(ot)),t===a&&(t=Br,98===e.charCodeAt(Br)?(r=J,Br++):(r=a,0===Mr&&Hr(At)),r!==a&&(Rr=t,r=br()),(t=r)===a&&(t=Br,102===e.charCodeAt(Br)?(r=X,Br++):(r=a,0===Mr&&Hr(bt)),r!==a&&(Rr=t,r=vr()),(t=r)===a&&(t=Br,110===e.charCodeAt(Br)?(r=K,Br++):(r=a,0===Mr&&Hr(vt)),r!==a&&(Rr=t,r=Er()),(t=r)===a&&(t=Br,114===e.charCodeAt(Br)?(r=Z,Br++):(r=a,0===Mr&&Hr(Et)),r!==a&&(Rr=t,r=yr()),(t=r)===a&&(t=Br,116===e.charCodeAt(Br)?(r=ee,Br++):(r=a,0===Mr&&Hr(yt)),r!==a&&(Rr=t,r=Cr()),(t=r)===a&&(t=Br,118===e.charCodeAt(Br)?(r=te,Br++):(r=a,0===Mr&&Hr(Ct)),r!==a&&(Rr=t,r=Sr()),t=r)))))))),t}function Aa(){var t,r,n,o,s,c,i,u;return t=Br,117===e.charCodeAt(Br)?(r=ae,Br++):(r=a,0===Mr&&Hr(_t)),r!==a?(n=Br,o=Br,(s=va())!==a&&(c=va())!==a&&(i=va())!==a&&(u=va())!==a?o=s=[s,c,i,u]:(Br=o,o=a),(n=o!==a?e.substring(n,Br):o)!==a?(Rr=t,t=Tr(n)):(Br=t,t=a)):(Br=t,t=a),t}function ba(){var t;return ce.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Tt)),t}function va(){var t;return ie.test(e.charAt(Br))?(t=e.charAt(Br),Br++):(t=a,0===Mr&&Hr(Pt)),t}function Ea(){var t,r,n,o;return Mr++,t=Br,123===e.charCodeAt(Br)?(r=c,Br++):(r=a,0===Mr&&Hr(ve)),r!==a?(n=function(){var e,t;return e=Br,t=ya(),Rr=e,e=t=wr(t)}(),125===e.charCodeAt(Br)?(o=i,Br++):(o=a,0===Mr&&Hr(Ee)),o!==a?t=n:(Br=t,t=a)):(Br=t,t=a),Mr--,t===a&&(r=a,0===Mr&&Hr(Ft)),t}function ya(){var t,r,n,o,s,u;if(t=Br,r=[],n=[],o=Br,s=Br,Mr++,ue.test(e.charAt(Br))?(u=e.charAt(Br),Br++):(u=a,0===Mr&&Hr(Bt)),Mr--,u===a?s=void 0:(Br=s,s=a),s!==a&&(u=ta())!==a?o=s=[s,u]:(Br=o,o=a),o!==a)for(;o!==a;)n.push(o),o=Br,s=Br,Mr++,ue.test(e.charAt(Br))?(u=e.charAt(Br),Br++):(u=a,0===Mr&&Hr(Bt)),Mr--,u===a?s=void 0:(Br=s,s=a),s!==a&&(u=ta())!==a?o=s=[s,u]:(Br=o,o=a);else n=a;for(n===a&&(n=Br,123===e.charCodeAt(Br)?(o=c,Br++):(o=a,0===Mr&&Hr(ve)),o!==a?(s=ya(),125===e.charCodeAt(Br)?(u=i,Br++):(u=a,0===Mr&&Hr(Ee)),u!==a?n=o=[o,s,u]:(Br=n,n=a)):(Br=n,n=a));n!==a;){if(r.push(n),n=[],o=Br,s=Br,Mr++,ue.test(e.charAt(Br))?(u=e.charAt(Br),Br++):(u=a,0===Mr&&Hr(Bt)),Mr--,u===a?s=void 0:(Br=s,s=a),s!==a&&(u=ta())!==a?o=s=[s,u]:(Br=o,o=a),o!==a)for(;o!==a;)n.push(o),o=Br,s=Br,Mr++,ue.test(e.charAt(Br))?(u=e.charAt(Br),Br++):(u=a,0===Mr&&Hr(Bt)),Mr--,u===a?s=void 0:(Br=s,s=a),s!==a&&(u=ta())!==a?o=s=[s,u]:(Br=o,o=a);else n=a;n===a&&(n=Br,123===e.charCodeAt(Br)?(o=c,Br++):(o=a,0===Mr&&Hr(ve)),o!==a?(s=ya(),125===e.charCodeAt(Br)?(u=i,Br++):(u=a,0===Mr&&Hr(Ee)),u!==a?n=o=[o,s,u]:(Br=n,n=a)):(Br=n,n=a))}return e.substring(t,Br)}function Ca(){var e,t;for(e=[],(t=ra())===a&&(t=na())===a&&(t=oa());t!==a;)e.push(t),(t=ra())===a&&(t=na())===a&&(t=oa());return e}function Sa(){var t,r,n,o;return t=Br,r=Ca(),59===e.charCodeAt(Br)?(n=oe,Br++):(n=a,0===Mr&&Hr(Gt)),n!==a?t=r=[r,n]:(Br=t,t=a),t===a&&(t=Br,r=function(){var e,t;for(e=[],(t=ra())===a&&(t=sa());t!==a;)e.push(t),(t=ra())===a&&(t=sa());return e}(),(n=ca())===a&&(n=null),(o=na())!==a?t=r=[r,n,o]:(Br=t,t=a),t===a&&(t=Br,r=Ca(),n=function(){var t,r;return t=Br,Mr++,e.length>Br?(r=e.charAt(Br),Br++):(r=a,0===Mr&&Hr(ke)),Mr--,r===a?t=void 0:(Br=t,t=a),t}(),n!==a?t=r=[r,n]:(Br=t,t=a))),t}var _a=t.reservedWords||[];if((r=s())!==a&&Br===e.length)return r;throw r!==a&&Br0){for(t=1,r=1;t>>=VLQ_BASE_SHIFT,a>0&&(t|=VLQ_CONTINUATION_BIT),r+=base64$1.encode(t)}while(a>0);return r};var util$4={},urlBrowser=require$$0$1.URL;const URL$1=urlBrowser;function getArg(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')}util$4.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function strcmp(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}function compareByGeneratedPositionsInflated(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r?r:(r=e.generatedColumn-t.generatedColumn,0!==r?r:(r=strcmp(e.source,t.source),0!==r?r:(r=e.originalLine-t.originalLine,0!==r?r:(r=e.originalColumn-t.originalColumn,0!==r?r:strcmp(e.name,t.name)))))}function parseSourceMapInput(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}util$4.toSetString=supportsNullProto?identity:toSetString,util$4.fromSetString=supportsNullProto?identity:fromSetString,util$4.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated,util$4.parseSourceMapInput=parseSourceMapInput;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return t=>{const r=getURLType(t),a=buildSafeBase(t),n=new URL$1(t,a);e(n);const o=n.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(PROTOCOL.length):"path-absolute"===r?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(a,o)}}function withBase(e,t){return new URL$1(e,t).toString()}function buildUniqueSegment(e,t){let r=0;for(;;){const a=e+r++;if(-1===t.indexOf(a))return a}}function buildSafeBase(e){const t=e.split("..").length-1,r=buildUniqueSegment("p",e);let a=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!a[a.length-1]&&a.pop();r.length>0&&a.length>0&&r[0]===a[0];)r.shift(),a.shift();return a.map((()=>"..")).concat(r).join("/")+t.search+t.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),trimFilename=createSafeHandler((e=>{e.href=new URL$1(".",e.toString()).toString()})),normalize=createSafeHandler((e=>{}));function join(e,t){const r=getURLType(t),a=getURLType(e);if(e=ensureDirectory(e),"absolute"===r)return withBase(t,void 0);if("absolute"===a)return withBase(t,e);if("scheme-relative"===r)return normalize(t);if("scheme-relative"===a)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===r)return normalize(t);if("path-absolute"===a)return withBase(t,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const n=buildSafeBase(t+e);return computeRelativeURL(n,withBase(t,withBase(e,n)))}function relative(e,t){const r=relativeIfPossible(e,t);return"string"==typeof r?r:normalize(t)}function relativeIfPossible(e,t){if(getURLType(e)!==getURLType(t))return null;const r=buildSafeBase(e+t),a=new URL$1(e,r),n=new URL$1(t,r);try{new URL$1("",n.toString())}catch(e){return null}return n.protocol!==a.protocol||n.user!==a.user||n.password!==a.password||n.hostname!==a.hostname||n.port!==a.port?null:computeRelativeURL(a,n)}function computeSourceURL(e,t,r){e&&"path-absolute"===getURLType(t)&&(t=t.replace(/^\//,""));let a=normalize(t||"");return e&&(a=join(e,a)),r&&(a=join(trimFilename(r),a)),a}util$4.normalize=normalize,util$4.join=join,util$4.relative=relative,util$4.computeSourceURL=computeSourceURL;var arraySet={};let ArraySet$2=class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,r){const a=new e;for(let e=0,n=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||a==r&&o>=n||util$3.compareByGeneratedPositionsInflated(e,t)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,t){this._array.forEach(e,t)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$3.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$2=util$4,ArraySet$1=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$2.getArg(e,"file",null),this._sourceRoot=util$2.getArg(e,"sourceRoot",null),this._skipValidation=util$2.getArg(e,"skipValidation",!1),this._sources=new ArraySet$1,this._names=new ArraySet$1,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(t){const r=t.sourceRoot,a=new e({file:t.file,sourceRoot:r});return t.eachMapping((function(e){const t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=util$2.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),a.addMapping(t)})),t.sources.forEach((function(e){let n=e;null!==r&&(n=util$2.relative(r,e)),a._sources.has(n)||a._sources.add(n);const o=t.sourceContentFor(e);null!=o&&a.setSourceContent(e,o)})),a}addMapping(e){const t=util$2.getArg(e,"generated"),r=util$2.getArg(e,"original",null);let a=util$2.getArg(e,"source",null),n=util$2.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,n),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:a,name:n})}setSourceContent(e,t){let r=e;null!=this._sourceRoot&&(r=util$2.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$2.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[util$2.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,t,r){let a=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=e.file}const n=this._sourceRoot;null!=n&&(a=util$2.relative(n,a));const o=this._mappings.toArray().length>0?new ArraySet$1:this._sources,s=new ArraySet$1;this._mappings.unsortedForEach((function(t){if(t.source===a&&null!=t.originalLine){const a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=util$2.join(r,t.source)),null!=n&&(t.source=util$2.relative(n,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}const c=t.source;null==c||o.has(c)||o.add(c);const i=t.name;null==i||s.has(i)||s.add(i)}),this),this._sources=o,this._names=s,e.sources.forEach((function(t){const a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=util$2.join(r,t)),null!=n&&(t=util$2.relative(n,t)),this.setSourceContent(t,a))}),this)}_validateMapping(e,t,r,a){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!a);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:a}))}_serializeMappings(){let e,t,r,a,n=0,o=1,s=0,c=0,i=0,u=0,p="";const l=this._mappings.toArray();for(let f=0,d=l.length;f0){if(!util$2.compareByGeneratedPositionsInflated(t,l[f-1]))continue;e+=","}e+=base64VLQ.encode(t.generatedColumn-n),n=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=base64VLQ.encode(a-u),u=a,e+=base64VLQ.encode(t.originalLine-1-c),c=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-s),s=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=base64VLQ.encode(r-i),i=r)),p+=e}return p}_generateSourcesContent(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=util$2.relative(t,e));const r=util$2.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceMapConsumer={},binarySearch$1={};!function(e){function t(r,a,n,o,s,c){const i=Math.floor((a-r)/2)+r,u=s(n,o[i],!0);return 0===u?i:u>0?a-i>1?t(i,a,n,o,s,c):c==e.LEAST_UPPER_BOUND?a1?t(r,i,n,o,s,c):c==e.LEAST_UPPER_BOUND?i:r<0?-1:r}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(r,a,n,o){if(0===a.length)return-1;let s=t(-1,a.length,r,a,n,o||e.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&0===n(a[s],a[s-1],!0);)--s;return s}}(binarySearch$1);var readWasmBrowserExports={},readWasmBrowser={get exports(){return readWasmBrowserExports},set exports(e){readWasmBrowserExports=e}};let mappingsWasm=null;readWasmBrowser.exports=function(){if("string"==typeof mappingsWasm)return fetch(mappingsWasm).then((e=>e.arrayBuffer()));if(mappingsWasm instanceof ArrayBuffer)return Promise.resolve(mappingsWasm);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},readWasmBrowserExports.initialize=e=>{mappingsWasm=e};const readWasm$1=readWasmBrowserExports;function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let cachedWasm=null;var wasm$1=function(){if(cachedWasm)return cachedWasm;const e=[];return cachedWasm=readWasm$1().then((t=>WebAssembly.instantiate(t,{env:{mapping_callback(t,r,a,n,o,s,c,i,u,p){const l=new Mapping;l.generatedLine=t+1,l.generatedColumn=r,a&&(l.lastGeneratedColumn=n-1),o&&(l.source=s,l.originalLine=c+1,l.originalColumn=i,u&&(l.name=p)),e[e.length-1](l)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}}))).then((t=>({exports:t.instance.exports,withMappingCallback:(t,r)=>{e.push(t);try{r()}finally{e.pop()}}}))).then(null,(e=>{throw cachedWasm=null,e})),cachedWasm};const util$1=util$4,binarySearch=binarySearch$1,ArraySet=arraySet.ArraySet,readWasm=readWasmBrowserExports,wasm=wasm$1,INTERNAL=Symbol("smcInternal");let SourceMapConsumer$1=class e{constructor(e,t){return e==INTERNAL?Promise.resolve(this):_factory(e,t)}static initialize(e){readWasm.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return _factoryBSM(e,t)}static async with(t,r,a){const n=await new e(t,r);try{return await a(n)}finally{n.destroy()}}eachMapping(e,t,r){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}};SourceMapConsumer$1.prototype._version=3,SourceMapConsumer$1.GENERATED_ORDER=1,SourceMapConsumer$1.ORIGINAL_ORDER=2,SourceMapConsumer$1.GREATEST_LOWER_BOUND=1,SourceMapConsumer$1.LEAST_UPPER_BOUND=2,sourceMapConsumer.SourceMapConsumer=SourceMapConsumer$1;class BasicSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let a=e;"string"==typeof e&&(a=util$1.parseSourceMapInput(e));const n=util$1.getArg(a,"version"),o=util$1.getArg(a,"sources").map(String),s=util$1.getArg(a,"names",[]),c=util$1.getArg(a,"sourceRoot",null),i=util$1.getArg(a,"sourcesContent",null),u=util$1.getArg(a,"mappings"),p=util$1.getArg(a,"file",null);if(n!=r._version)throw new Error("Unsupported version: "+n);return r._sourceLookupCache=new Map,r._names=ArraySet.fromArray(s.map(String),!0),r._sources=ArraySet.fromArray(o,!0),r._absoluteSources=ArraySet.fromArray(r._sources.toArray().map((function(e){return util$1.computeSourceURL(c,e,t)})),!0),r.sourceRoot=c,r.sourcesContent=i,r._mappings=u,r._sourceMapURL=t,r.file=p,r._computedColumnSpans=!1,r._mappingsPtr=0,r._wasm=null,wasm().then((e=>(r._wasm=e,r)))}))}_findSourceIndex(e){const t=this._sourceLookupCache.get(e);if("number"==typeof t)return t;const r=util$1.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(r)){const t=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(e,t),t}const a=util$1.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(a)){const t=this._absoluteSources.indexOf(a);return this._sourceLookupCache.set(e,t),t}return-1}static fromSourceMap(e,t){return new BasicSourceMapConsumer(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,r=this._wasm.exports.allocate_mappings(t),a=new Uint8Array(this._wasm.exports.memory.buffer,r,t);for(let r=0;r{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(a,t)}),(()=>{switch(n){case SourceMapConsumer$1.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case SourceMapConsumer$1.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}}))}allGeneratedPositionsFor(e){let t=util$1.getArg(e,"source");const r=util$1.getArg(e,"line"),a=e.column||0;if(t=this._findSourceIndex(t),t<0)return[];if(r<1)throw new Error("Line numbers must be >= 1");if(a<0)throw new Error("Column numbers must be >= 0");const n=[];return this._wasm.withMappingCallback((e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),n.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})}),(()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),t,r-1,"column"in e,a)})),n}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const t={generatedLine:util$1.getArg(e,"line"),generatedColumn:util$1.getArg(e,"column")};if(t.generatedLine<1)throw new Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw new Error("Column numbers must be >= 0");let r,a=util$1.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==a&&(a=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>r=e),(()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,a)})),r&&r.generatedLine===t.generatedLine){let e=util$1.getArg(r,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=util$1.getArg(r,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:util$1.getArg(r,"originalLine",null),column:util$1.getArg(r,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))}sourceContentFor(e,t){if(!this.sourcesContent)return null;const r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let t=util$1.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};const r={source:t,originalLine:util$1.getArg(e,"line"),originalColumn:util$1.getArg(e,"column")};if(r.originalLine<1)throw new Error("Line numbers must be >= 1");if(r.originalColumn<0)throw new Error("Column numbers must be >= 0");let a,n=util$1.getArg(e,"bias",SourceMapConsumer$1.GREATEST_LOWER_BOUND);if(null==n&&(n=SourceMapConsumer$1.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback((e=>a=e),(()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),r.source,r.originalLine-1,r.originalColumn,n)})),a&&a.source===r.source){let e=a.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:util$1.getArg(a,"generatedLine",null),column:util$1.getArg(a,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$1,sourceMapConsumer.BasicSourceMapConsumer=BasicSourceMapConsumer;class IndexedSourceMapConsumer extends SourceMapConsumer$1{constructor(e,t){return super(INTERNAL).then((r=>{let a=e;"string"==typeof e&&(a=util$1.parseSourceMapInput(e));const n=util$1.getArg(a,"version"),o=util$1.getArg(a,"sections");if(n!=r._version)throw new Error("Unsupported version: "+n);let s={line:-1,column:0};return Promise.all(o.map((e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const r=util$1.getArg(e,"offset"),a=util$1.getArg(r,"line"),n=util$1.getArg(r,"column");if(a({generatedOffset:{generatedLine:a+1,generatedColumn:n+1},consumer:e})))}))).then((e=>(r._sections=e,r)))}))}get sources(){const e=[];for(let t=0;t=0?this._sections[t]:null,a=t>=0&&t+1=0?this._sections[t]:null,a=t>=0&&t+1{const t=r.generatedOffset.generatedLine-1,n=r.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=n,"number"==typeof e.lastColumn&&(e.lastColumn+=n)),e.lastColumn===1/0&&a&&e.line===a.generatedOffset.generatedLine&&(e.lastColumn=a.generatedOffset.generatedColumn-2),e.line+=t,e})):[]}eachMapping(e,t,r){this._sections.forEach(((a,n)=>{const o=n+1=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let r=0,a=this.children.length;r0){for(t=[],r=0;r start -> leftRecursion -> duplicatedRule)"])}}))}))}));var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n=14"},require$$2={name:name,version:version,description:description,keywords:keywords,homepage:homepage,repository:repository,bugs:bugs,license:license,author:author,main:main,unpkg:unpkg,jsdelivr:jsdelivr,types:types,bin:bin,scripts:scripts,devDependencies:devDependencies,dependencies:dependencies,tsd:tsd,engines:engines},chaiLikeExports$1={},chaiLike$1={get exports(){return chaiLikeExports$1},set exports(e){chaiLikeExports$1=e}},chaiLikeExports={},chaiLike={get exports(){return chaiLikeExports},set exports(e){chaiLikeExports=e}},hasRequiredChaiLike$1,hasRequiredChaiLike;function requireChaiLike$1(){if(hasRequiredChaiLike$1)return chaiLikeExports;hasRequiredChaiLike$1=1;let e=[];return chaiLike.exports=function(t,r){function a(e,t){return r.type(t).toUpperCase()===e.toUpperCase()}function n(t,r){for(let a of e)if(a.match(t,r))return a.assert(t,r);if(t===r)return!0;if(a("object",r)&&a("object",t)){for(let e of Object.keys(r)){if(!(e in t))return!1;if(!n(t[e],r[e]))return!1}return!0}if(a("array",r)&&a("array",t)){if(t.length!==r.length)return!1;for(let e=0;e' at an index -1.\nBytecode: 42")})),it("`top`",(function(){expect$a((function(){return e.top()})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42")})),it("`result`",(function(){expect$a((function(){return e.result()})).to.throw(RangeError,"Rule 'rule': The variable stack is empty, can't get the result")})),it("`index`",(function(){expect$a((function(){return e.index(-2)})).to.throw(RangeError,"Rule 'rule': The variable stack overflow: attempt to get a variable at a negative index -2.\nBytecode: 42"),expect$a((function(){return e.index(0)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -1.\nBytecode: 42"),expect$a((function(){return e.index(2)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -3.\nBytecode: 42")}))})),it("`defines` returns an empty string",(function(){expect$a(e.defines()).to.equal("")}))})),it("throws an error when attempting `pop` more than `push`",(function(){var e=new Stack("rule","v","let",[42]);e.push("1"),expect$a((function(){return e.pop(3)})).to.throw(RangeError,"Rule 'rule': The variable stack underflow: attempt to use a variable 'v' at an index -2.\nBytecode: 42")})),it("returns a variable with an index 0 for `result`",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),expect$a(e.result()).to.equal("v0")})),it("`defines` returns a define expression for all used variables",(function(){var e=new Stack("rule","v","let",[]);e.push("1"),e.push("2"),e.pop(),e.push("3"),expect$a(e.defines()).to.equal("let v0, v1;")})),describe("`checkedIf` method",(function(){var e;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),describe("does not throws an error",(function(){it("without the else brach",(function(){expect$a((function(){return e.checkedIf(0,(function(){}))})).to.not.throw(),expect$a((function(){return e.checkedIf(0,(function(){return e.pop()}))})).to.not.throw(),expect$a((function(){return e.checkedIf(0,(function(){return e.push("2")}))})).to.not.throw()})),describe("when the stack pointer",(function(){it("was not moving in both the arms",(function(){function t(){}function r(){e.push("1"),e.pop()}function a(){e.push("1"),e.push("2"),e.pop(2)}function n(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$a((function(){return e.checkedIf(0,t,t)})).to.not.throw(),expect$a((function(){return e.checkedIf(0,r,r)})).to.not.throw(),expect$a((function(){return e.checkedIf(0,a,a)})).to.not.throw(),expect$a((function(){return e.checkedIf(0,n,n)})).to.not.throw()})),it("increases on the same value in both the arms",(function(){expect$a((function(){return e.checkedIf(0,(function(){return e.push("1")}),(function(){return e.push("2")}))})).to.not.throw()})),it("decreases on the same value in both the arms",(function(){e.push("2"),expect$a((function(){return e.checkedIf(0,(function(){return e.pop(2)}),(function(){e.pop(),e.pop()}))})).to.not.throw()}))}))})),describe("throws an error when the stack pointer",(function(){it("was not moving in `if` and decreases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: -1). Bytecode: 42")})),it("decreases in `if` and was not moving in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 0). Bytecode: 42")})),it("was not moving in `if` and increases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 0, after else: 1). Bytecode: 42")})),it("increases in `if` and was not moving in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: 0). Bytecode: 42")})),it("decreases in `if` and increases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.pop()}),(function(){return e.push("2")}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: -1, after else: 1). Bytecode: 42")})),it("increases in `if` and decreases in `then`",(function(){expect$a((function(){e.checkedIf(0,(function(){return e.push("2")}),(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Branches of a condition can't move the stack pointer differently (before: 0, after then: 1, after else: -1). Bytecode: 42")}))}))})),describe("`checkedLoop` method",(function(){var e;beforeEach((function(){(e=new Stack("rule","v","let",[42])).push("1")})),it("does not throws an error when the stack pointer was not moving",(function(){function t(){}function r(){e.push("1"),e.pop()}function a(){e.push("1"),e.push("2"),e.pop(2)}function n(){e.push("1"),e.pop(),e.push("2"),e.pop()}expect$a((function(){return e.checkedLoop(0,t)})).to.not.throw(),expect$a((function(){return e.checkedLoop(0,r)})).to.not.throw(),expect$a((function(){return e.checkedLoop(0,a)})).to.not.throw(),expect$a((function(){return e.checkedLoop(0,n)})).to.not.throw()})),it("throws an error when the stack pointer increases",(function(){expect$a((function(){return e.checkedLoop(0,(function(){return e.push("1")}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: 1). Bytecode: 42")})),it("throws an error when the stack pointer decreases",(function(){expect$a((function(){return e.checkedLoop(0,(function(){return e.pop()}))})).to.throw(Error,"Rule 'rule', position 0: Body of a loop can't move the stack pointer (before: 0, after: -1). Bytecode: 42")}))}))}));var chai$9=require$$0,_a=utils$1,hex=_a.hex,stringEscape=_a.stringEscape,regexpClassEscape=_a.regexpClassEscape,base64=_a.base64,expect$9=chai$9.expect;describe("utility functions",(function(){it("hex",(function(){expect$9(hex("0")).to.equal("30"),expect$9(hex("\0")).to.equal("0"),expect$9(hex("\n")).to.equal("A"),expect$9(hex("\ufeff")).to.equal("FEFF")})),it("stringEscape",(function(){expect$9(stringEscape("abc")).to.equal("abc"),expect$9(stringEscape('\\"\0\b\t\n\v\f\r')).to.equal('\\\\\\"\\0\\b\\t\\n\\v\\f\\r'),expect$9(stringEscape("")).to.equal("\\x01\\x0F"),expect$9(stringEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$9(stringEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$9(stringEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("regexpClassEscape",(function(){expect$9(regexpClassEscape("\\\0\b\t\n\v\f\r")).to.equal("\\\\\\0\\b\\t\\n\\v\\f\\r"),expect$9(regexpClassEscape("/]^-")).to.equal("\\/\\]\\^\\-"),expect$9(regexpClassEscape("")).to.equal("\\x01\\x0F"),expect$9(regexpClassEscape("")).to.equal("\\x10\\x1F\\x7F"),expect$9(regexpClassEscape("Ā࿿")).to.equal("\\u0100\\u0FFF"),expect$9(regexpClassEscape("က￿")).to.equal("\\u1000\\uFFFF")})),it("base64",(function(){expect$9(base64(new Uint8Array([]))).to.equal(""),expect$9(base64(new Uint8Array([97]))).to.equal("YQ=="),expect$9(base64(new Uint8Array([97,98]))).to.equal("YWI="),expect$9(base64(new Uint8Array([97,98,99]))).to.equal("YWJj"),expect$9(base64(new Uint8Array([97,98,99,100]))).to.equal("YWJjZA=="),expect$9(base64(new Uint8Array([97,98,99,100,101]))).to.equal("YWJjZGU="),expect$9(base64(new Uint8Array([97,98,99,100,101,102]))).to.equal("YWJjZGVm")}))}));var __spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var a,n=0,o=t.length;n start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),it("reports indirect left recursion",(function(){expect$4(pass$4).to.reportError(["start = stop","stop = start"].join("\n"),{message:"Possible infinite loop when parsing (left recursion: start -> stop -> start)",location:{source:void 0,start:{offset:0,line:1,column:1},end:{offset:5,line:1,column:6}}})})),describe("in sequences",(function(){it("reports left recursion if all preceding elements match empty string",(function(){expect$4(pass$4).to.reportError("start = '' '' '' start")})),it("doesn't report left recursion if some preceding element doesn't match empty string",(function(){expect$4(pass$4).to.not.reportError("start = 'a' '' '' start"),expect$4(pass$4).to.not.reportError("start = '' 'a' '' start"),expect$4(pass$4).to.not.reportError("start = '' '' 'a' start")})),it("reports left recursion when rule reference is wrapped in an expression",(function(){expect$4(pass$4).to.reportError("start = '' start?")})),it("computes expressions that always consume input on success correctly",(function(){expect$4(pass$4).to.reportError(["start = a start","a 'a' = ''"].join("\n")),expect$4(pass$4).to.not.reportError(["start = a start","a 'a' = 'a'"].join("\n")),expect$4(pass$4).to.reportError("start = ('' / 'a' / 'b') start"),expect$4(pass$4).to.reportError("start = ('a' / '' / 'b') start"),expect$4(pass$4).to.reportError("start = ('a' / 'b' / '') start"),expect$4(pass$4).to.not.reportError("start = ('a' / 'b' / 'c') start"),expect$4(pass$4).to.reportError("start = ('' { }) start"),expect$4(pass$4).to.not.reportError("start = ('a' { }) start"),expect$4(pass$4).to.reportError("start = ('' '' '') start"),expect$4(pass$4).to.not.reportError("start = ('a' '' '') start"),expect$4(pass$4).to.not.reportError("start = ('' 'a' '') start"),expect$4(pass$4).to.not.reportError("start = ('' '' 'a') start"),expect$4(pass$4).to.reportError("start = a:'' start"),expect$4(pass$4).to.not.reportError("start = a:'a' start"),expect$4(pass$4).to.reportError("start = $'' start"),expect$4(pass$4).to.not.reportError("start = $'a' start"),expect$4(pass$4).to.reportError("start = &'' start"),expect$4(pass$4).to.reportError("start = &'a' start"),expect$4(pass$4).to.reportError("start = !'' start"),expect$4(pass$4).to.reportError("start = !'a' start"),expect$4(pass$4).to.reportError("start = ''? start"),expect$4(pass$4).to.reportError("start = 'a'? start"),expect$4(pass$4).to.reportError("start = ''* start"),expect$4(pass$4).to.reportError("start = 'a'* start"),expect$4(pass$4).to.reportError("start = ''+ start"),expect$4(pass$4).to.not.reportError("start = 'a'+ start"),expect$4(pass$4).to.reportError("start = ''| .. | start"),expect$4(pass$4).to.reportError("start = ''|0.. | start"),expect$4(pass$4).to.reportError("start = ''|1.. | start"),expect$4(pass$4).to.reportError("start = ''|2.. | start"),expect$4(pass$4).to.reportError("start = ''| ..1| start"),expect$4(pass$4).to.reportError("start = ''| ..3| start"),expect$4(pass$4).to.reportError("start = ''|2..3| start"),expect$4(pass$4).to.reportError("start = ''| 42 | start"),expect$4(pass$4).to.reportError("start = 'a'| .. | start"),expect$4(pass$4).to.reportError("start = 'a'|0.. | start"),expect$4(pass$4).to.not.reportError("start = 'a'|1.. | start"),expect$4(pass$4).to.not.reportError("start = 'a'|2.. | start"),expect$4(pass$4).to.reportError("start = 'a'| ..1| start"),expect$4(pass$4).to.reportError("start = 'a'| ..3| start"),expect$4(pass$4).to.not.reportError("start = 'a'|2..3| start"),expect$4(pass$4).to.not.reportError("start = 'a'| 42 | start"),expect$4(pass$4).to.reportError("start = ('') start"),expect$4(pass$4).to.not.reportError("start = ('a') start"),expect$4(pass$4).to.reportError("start = &{ } start"),expect$4(pass$4).to.reportError("start = !{ } start"),expect$4(pass$4).to.reportError(["start = a start","a = ''"].join("\n")),expect$4(pass$4).to.not.reportError(["start = a start","a = 'a'"].join("\n")),expect$4(pass$4).to.reportError("start = '' start"),expect$4(pass$4).to.not.reportError("start = 'a' start"),expect$4(pass$4).to.not.reportError("start = [a-d] start"),expect$4(pass$4).to.not.reportError("start = . start")}))})),describe("in repeated with delimiter",(function(){it("doesn't report left recursion for delimiter if expression not match empty string",(function(){expect$4(pass$4).to.not.reportError("start = 'a'| .. , start|"),expect$4(pass$4).to.not.reportError("start = 'a'|0.. , start|"),expect$4(pass$4).to.not.reportError("start = 'a'|1.. , start|"),expect$4(pass$4).to.not.reportError("start = 'a'|2.. , start|"),expect$4(pass$4).to.not.reportError("start = 'a'| ..3, start|"),expect$4(pass$4).to.not.reportError("start = 'a'|2..3, start|"),expect$4(pass$4).to.not.reportError("start = 'a'| 42 , start|")})),it("reports left recursion for delimiter if expression match empty string",(function(){expect$4(pass$4).to.reportError("start = ''| .. , start|"),expect$4(pass$4).to.reportError("start = ''|0.. , start|"),expect$4(pass$4).to.reportError("start = ''|1.. , start|"),expect$4(pass$4).to.reportError("start = ''|2.. , start|"),expect$4(pass$4).to.reportError("start = ''| ..3, start|"),expect$4(pass$4).to.reportError("start = ''|2..3, start|"),expect$4(pass$4).to.reportError("start = ''| 42 , start|")}))}))}));var chai$3=require$$0,helpers$3=helpers$9,pass$3=reportInfiniteRepetition_1;chai$3.use(helpers$3);var expect$3=chai$3.expect;describe("compiler pass |reportInfiniteRepetition|",(function(){it("reports infinite loops for zero_or_more",(function(){expect$3(pass$3).to.reportError("start = ('')*",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),it("reports infinite loops for one_or_more",(function(){expect$3(pass$3).to.reportError("start = ('')+",{message:"Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:13,line:1,column:14}}})})),describe("reports infinite loops for repeated",(function(){describe("without delimiter",(function(){it("with constant boundaries",(function(){expect$3(pass$3).to.reportError("start = ('')|..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:16,line:1,column:17}}}),expect$3(pass$3).to.reportError("start = ('')|0..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$3(pass$3).to.reportError("start = ('')|1..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$3(pass$3).to.reportError("start = ('')|2..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:17,line:1,column:18}}}),expect$3(pass$3).to.not.reportError("start = ('')| ..1|"),expect$3(pass$3).to.not.reportError("start = ('')| ..3|"),expect$3(pass$3).to.not.reportError("start = ('')|2..3|"),expect$3(pass$3).to.not.reportError("start = ('')| 42 |")})),it("with variable boundaries",(function(){expect$3(pass$3).to.reportError("start = ('')|len..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:19,line:1,column:20}}}),expect$3(pass$3).to.not.reportError("start = ('')|..len|"),expect$3(pass$3).to.not.reportError("start = ('')|len1..len2|"),expect$3(pass$3).to.not.reportError("start = ('')|len|")})),it("with function boundaries",(function(){expect$3(pass$3).to.reportError("start = ('')|{}..|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:18,line:1,column:19}}}),expect$3(pass$3).to.not.reportError("start = ('')|..{}|"),expect$3(pass$3).to.not.reportError("start = ('')|{}..{}|"),expect$3(pass$3).to.not.reportError("start = ('')|{}|")}))})),describe("with empty delimiter",(function(){it("with constant boundaries",(function(){expect$3(pass$3).to.reportError("start = ('')| .., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$3(pass$3).to.reportError("start = ('')|0.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$3(pass$3).to.reportError("start = ('')|1.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$3(pass$3).to.reportError("start = ('')|2.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:21,line:1,column:22}}}),expect$3(pass$3).to.not.reportError("start = ('')| ..1, ''|"),expect$3(pass$3).to.not.reportError("start = ('')| ..3, ''|"),expect$3(pass$3).to.not.reportError("start = ('')|2..3, ''|"),expect$3(pass$3).to.not.reportError("start = ('')| 42 , ''|")})),it("with variable boundaries",(function(){expect$3(pass$3).to.reportError("start = ('')|len.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:23,line:1,column:24}}}),expect$3(pass$3).to.not.reportError("start = ('')|..len, ''|"),expect$3(pass$3).to.not.reportError("start = ('')|len1..len2, ''|"),expect$3(pass$3).to.not.reportError("start = ('')|len, ''|")})),it("with function boundaries",(function(){expect$3(pass$3).to.reportError("start = ('')|{}.., ''|",{message:"Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",location:{source:void 0,start:{offset:8,line:1,column:9},end:{offset:22,line:1,column:23}}}),expect$3(pass$3).to.not.reportError("start = ('')|..{}, ''|"),expect$3(pass$3).to.not.reportError("start = ('')|{}..{}, ''|"),expect$3(pass$3).to.not.reportError("start = ('')|{}, ''|")}))})),describe("with non-empty delimiter",(function(){it("with constant boundaries",(function(){expect$3(pass$3).to.not.reportError("start = ('')| .., 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|0.., 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|1.., 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|2.., 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')| ..1, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')| ..3, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|2..3, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')| 42 , 'a'|")})),it("with variable boundaries",(function(){expect$3(pass$3).to.not.reportError("start = ('')|len.., 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|..len, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|len1..len2, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|len, 'a'|")})),it("with function boundaries",(function(){expect$3(pass$3).to.not.reportError("start = ('')|{}.., 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|..{}, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|{}..{}, 'a'|"),expect$3(pass$3).to.not.reportError("start = ('')|{}, 'a'|")}))}))})),it("computes expressions that always consume input on success correctly",(function(){expect$3(pass$3).to.reportError(["start = a*","a 'a' = ''"].join("\n")),expect$3(pass$3).to.not.reportError(["start = a*","a 'a' = 'a'"].join("\n")),expect$3(pass$3).to.reportError("start = ('' / 'a' / 'b')*"),expect$3(pass$3).to.reportError("start = ('a' / '' / 'b')*"),expect$3(pass$3).to.reportError("start = ('a' / 'b' / '')*"),expect$3(pass$3).to.not.reportError("start = ('a' / 'b' / 'c')*"),expect$3(pass$3).to.reportError("start = ('' { })*"),expect$3(pass$3).to.not.reportError("start = ('a' { })*"),expect$3(pass$3).to.reportError("start = ('' '' '')*"),expect$3(pass$3).to.not.reportError("start = ('a' '' '')*"),expect$3(pass$3).to.not.reportError("start = ('' 'a' '')*"),expect$3(pass$3).to.not.reportError("start = ('' '' 'a')*"),expect$3(pass$3).to.reportError("start = (a:'')*"),expect$3(pass$3).to.not.reportError("start = (a:'a')*"),expect$3(pass$3).to.reportError("start = ($'')*"),expect$3(pass$3).to.not.reportError("start = ($'a')*"),expect$3(pass$3).to.reportError("start = (&'')*"),expect$3(pass$3).to.reportError("start = (&'a')*"),expect$3(pass$3).to.reportError("start = (!'')*"),expect$3(pass$3).to.reportError("start = (!'a')*"),expect$3(pass$3).to.reportError("start = (''?)*"),expect$3(pass$3).to.reportError("start = ('a'?)*"),expect$3(pass$3).to.reportError("start = (''*)*"),expect$3(pass$3).to.reportError("start = ('a'*)*"),expect$3(pass$3).to.reportError("start = (''+)*"),expect$3(pass$3).to.not.reportError("start = ('a'+)*"),expect$3(pass$3).to.reportError("start = ('')*"),expect$3(pass$3).to.not.reportError("start = ('a')*"),expect$3(pass$3).to.reportError("start = (&{ })*"),expect$3(pass$3).to.reportError("start = (!{ })*"),expect$3(pass$3).to.reportError(["start = a*","a = ''"].join("\n")),expect$3(pass$3).to.not.reportError(["start = a*","a = 'a'"].join("\n")),expect$3(pass$3).to.reportError("start = ''*"),expect$3(pass$3).to.not.reportError("start = 'a'*"),expect$3(pass$3).to.not.reportError("start = [a-d]*"),expect$3(pass$3).to.not.reportError("start = .*")}))}));var chai$2=require$$0,helpers$2=helpers$9,pass$2=inferenceMatchResult_1;chai$2.use(helpers$2);var expect$2=chai$2.expect;describe("compiler pass |inferenceMatchResult|",(function(){it("calculate |match| property for |any| correctly",(function(){expect$2(pass$2).to.changeAST("start = .",{rules:[{match:0}]})})),it("calculate |match| property for |literal| correctly",(function(){expect$2(pass$2).to.changeAST("start = ''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''i",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = 'a'",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = 'a'i",{rules:[{match:0}]})})),it("calculate |match| property for |class| correctly",(function(){expect$2(pass$2).to.changeAST("start = []",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []i",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = [a]",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = [a]i",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = [a-b]",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = [a-b]i",{rules:[{match:0}]})})),it("calculate |match| property for |sequence| correctly",(function(){expect$2(pass$2).to.changeAST("start = 'a' 'b'",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = 'a' ''",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = '' 'b'",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = '' ''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = 'a' []",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = [] 'b'",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = [] []",{rules:[{match:-1}]})})),it("calculate |match| property for |choice| correctly",(function(){expect$2(pass$2).to.changeAST("start = 'a' / 'b'",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = 'a' / ''",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = '' / 'b'",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = '' / ''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = 'a' / []",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = [] / 'b'",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = [] / []",{rules:[{match:-1}]})})),it("calculate |match| property for predicates correctly",(function(){expect$2(pass$2).to.changeAST("start = &.",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = &''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = &[]",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = !.",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = !''",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = ![]",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = &{ code }",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = !{ code }",{rules:[{match:0}]})})),it("calculate |match| property for |text| correctly",(function(){expect$2(pass$2).to.changeAST("start = $.",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = $''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = $[]",{rules:[{match:-1}]})})),it("calculate |match| property for |action| correctly",(function(){expect$2(pass$2).to.changeAST("start = . { code }",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = '' { code }",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = [] { code }",{rules:[{match:-1}]})})),it("calculate |match| property for |labeled| correctly",(function(){expect$2(pass$2).to.changeAST("start = a:.",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = a:''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = a:[]",{rules:[{match:-1}]})})),it("calculate |match| property for |named| correctly",(function(){expect$2(pass$2).to.changeAST("start 'start' = .",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start 'start' = ''",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start 'start' = []",{rules:[{match:-1}]})})),it("calculate |match| property for |optional| correctly",(function(){expect$2(pass$2).to.changeAST("start = .?",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''?",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []?",{rules:[{match:1}]})})),it("calculate |match| property for |zero_or_more| correctly",(function(){expect$2(pass$2).to.changeAST("start = .*",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''*",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []*",{rules:[{match:1}]})})),it("calculate |match| property for |one_or_more| correctly",(function(){expect$2(pass$2).to.changeAST("start = .+",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''+",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []+",{rules:[{match:-1}]})})),describe("calculate |match| property for |repeated|",(function(){describe("without delimiter",(function(){describe("with constant boundaries",(function(){it("for | .. | correctly",(function(){expect$2(pass$2).to.changeAST("start = .| .. |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| .. |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| .. |",{rules:[{match:1}]})})),it("for | ..1| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..1|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..1|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..1|",{rules:[{match:1}]})})),it("for | ..3| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..3|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..3|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..3|",{rules:[{match:1}]})})),it("for |0.. | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|0.. |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|0.. |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|0.. |",{rules:[{match:1}]})})),it("for |1.. | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|1.. |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|1.. |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|1.. |",{rules:[{match:-1}]})})),it("for |2.. | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|2.. |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|2.. |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|2.. |",{rules:[{match:-1}]})})),it("for |2..3| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|2..3|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|2..3|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|2..3|",{rules:[{match:-1}]})})),it("for | 42 | correctly",(function(){expect$2(pass$2).to.changeAST("start = .| 42 |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| 42 |",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| 42 |",{rules:[{match:-1}]})}))})),describe("with variable boundaries",(function(){it("for | ..max| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..max|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..max|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..max|",{rules:[{match:0}]})})),it("for |min.. | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|min.. |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min.. |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min.. |",{rules:[{match:0}]})})),it("for |min..max| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|min..max|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min..max|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min..max|",{rules:[{match:0}]})})),it("for | exact | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|exact|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|exact|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|exact|",{rules:[{match:0}]})}))})),describe("with function boundaries",(function(){it("for | ..{}| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..{}|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..{}|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..{}|",{rules:[{match:0}]})})),it("for |{}.. | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|{}.. |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}.. |",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}.. |",{rules:[{match:0}]})})),it("for |{}..{}| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|{}..{}|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}..{}|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}..{}|",{rules:[{match:0}]})})),it("for | {} | correctly",(function(){expect$2(pass$2).to.changeAST("start = .|{}|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}|",{rules:[{match:0}]})}))}))})),describe("with delimiter",(function(){describe("with constant boundaries",(function(){it("for | .. , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| .. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .| .. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .| .. ,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| .. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| .. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| .. ,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| .. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| .. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| .. ,[]|",{rules:[{match:1}]})})),it("for | ..1, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..1, .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .| ..1,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .| ..1,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..1, .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..1,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..1,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..1, .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..1,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..1,[]|",{rules:[{match:1}]})})),it("for | ..3, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..3, .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .| ..3,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .| ..3,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..3, .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..3,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| ..3,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..3, .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..3,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []| ..3,[]|",{rules:[{match:1}]})})),it("for |0.. , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|0.. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .|0.. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = .|0.. ,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|0.. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|0.. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|0.. ,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|0.. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|0.. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|0.. ,[]|",{rules:[{match:1}]})})),it("for |1.. , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|1.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|1.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|1.. ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|1.. , .|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|1.. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|1.. ,[]|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = []|1.. , .|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|1.. ,''|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|1.. ,[]|",{rules:[{match:-1}]})})),it("for |2.. , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|2.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|2.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|2.. ,[]|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = ''|2.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|2.. ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|2.. ,[]|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|2.. , .|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|2.. ,''|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|2.. ,[]|",{rules:[{match:-1}]})})),it("for |2..3, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|2..3, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|2..3,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|2..3,[]|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = ''|2..3, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|2..3,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''|2..3,[]|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|2..3, .|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|2..3,''|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []|2..3,[]|",{rules:[{match:-1}]})})),it("for | 42 , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| 42 , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| 42 ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| 42 ,[]|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = ''| 42 , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| 42 ,''|",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ''| 42 ,[]|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []| 42 , .|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []| 42 ,''|",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = []| 42 ,[]|",{rules:[{match:-1}]})}))})),describe("with variable boundaries",(function(){it("for | ..max, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..max, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| ..max,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| ..max,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..max, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..max,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..max,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..max, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..max,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..max,[]|",{rules:[{match:0}]})})),it("for |min.. , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|min.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|min.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|min.. ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min.. ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min.. ,[]|",{rules:[{match:0}]})})),it("for |min..max, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|min..max, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|min..max,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|min..max,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min..max, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min..max,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|min..max,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min..max, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min..max,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|min..max,[]|",{rules:[{match:0}]})})),it("for | exact , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| exact , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| exact ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| exact ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| exact , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| exact ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| exact ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| exact , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| exact ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| exact ,[]|",{rules:[{match:0}]})}))})),describe("with function boundaries",(function(){it("for | ..{}, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| ..{}, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| ..{},''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| ..{},[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..{}, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..{},''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| ..{},[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..{}, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..{},''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| ..{},[]|",{rules:[{match:0}]})})),it("for |{}.. , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|{}.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|{}.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|{}.. ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}.. ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}.. , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}.. ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}.. ,[]|",{rules:[{match:0}]})})),it("for |{}..{}, delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .|{}..{}, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|{}..{},''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .|{}..{},[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}..{}, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}..{},''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''|{}..{},[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}..{}, .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}..{},''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []|{}..{},[]|",{rules:[{match:0}]})})),it("for | {} , delimiter| correctly",(function(){expect$2(pass$2).to.changeAST("start = .| {} , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| {} ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = .| {} ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| {} , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| {} ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ''| {} ,[]|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| {} , .|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| {} ,''|",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = []| {} ,[]|",{rules:[{match:0}]})}))}))}))})),it("calculate |match| property for |group| correctly",(function(){expect$2(pass$2).to.changeAST("start = (.)",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = ('')",{rules:[{match:1}]}),expect$2(pass$2).to.changeAST("start = ([])",{rules:[{match:-1}]})})),it("calculate |match| property for |rule_ref| correctly",(function(){expect$2(pass$2).to.changeAST(["start = end","end = . "].join("\n"),{rules:[{match:0},{match:0}]}),expect$2(pass$2).to.changeAST(["start = end","end = ''"].join("\n"),{rules:[{match:1},{match:1}]}),expect$2(pass$2).to.changeAST(["start = end","end = []"].join("\n"),{rules:[{match:-1},{match:-1}]}),expect$2(pass$2).to.changeAST("start = . start",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = '' start",{rules:[{match:0}]}),expect$2(pass$2).to.changeAST("start = [] start",{rules:[{match:-1}]}),expect$2(pass$2).to.changeAST("start = . start []",{rules:[{match:-1}]})}))}));var chai$1=require$$0,helpers$1=helpers$9,pass$1=reportIncorrectPlucking_1;chai$1.use(helpers$1);var expect$1=chai$1.expect;describe("compiler pass |reportIncorrectPlucking|",(function(){it('prevents "@" from being used with an action block',(function(){expect$1(pass$1).to.reportError("start1 = 'a' @'b' 'c' { /* empty action block */ }",{message:'"@" cannot be used with an action block',location:{source:void 0,start:{offset:13,line:1,column:14},end:{offset:14,line:1,column:15}},diagnostics:[{message:"Action block location",location:{source:void 0,start:{offset:23,line:1,column:24},end:{offset:49,line:1,column:50}}}]}),expect$1(pass$1).to.reportError("start2 = 'a' @('b' @'c' { /* empty action block */ })",{message:'"@" cannot be used with an action block',location:{source:void 0,start:{offset:19,line:1,column:20},end:{offset:20,line:1,column:21}},diagnostics:[{message:"Action block location",location:{source:void 0,start:{offset:25,line:1,column:26},end:{offset:51,line:1,column:52}}}]})})),it("allows valid plucking",(function(){expect$1(pass$1).not.to.reportError("\n\n start1 = @'1' // return '1'\n start2 = @'1' / @'2' // return '1' or '2'\n start2 = '1' @'2' '3' // return '2'\n start3 = '1' @b:'2' '3' // return '2', label \"b\" can be used in semantic predicates\n start4 = a:'1' @b:'2' '3' // return '2', labels \"a\" and \"b\" can be used in semantic predicates\n start5 = @'1' @'2' '3' // return ['1', '2']\n start6 = @'1' @b:'2' '3' // return ['1', '2'], label \"b\" can be used in semantic predicates\n start7 = a:'1' @'2' &{} // return '2' if the semantic predicate doesnt fail\n start8 = @a:$[a-z]i+ &{ return a === 'foo' } // return \"foo\"\n\n ")}))}));var chai=require$$0,helpers=helpers$9,pass=removeProxyRules_1;chai.use(helpers);var expect=chai.expect;describe("compiler pass |removeProxyRules|",(function(){describe("when a proxy rule isn't listed in |allowedStartRules|",(function(){it("updates references and removes it",(function(){expect(pass).to.changeAST(["start = proxy","proxy = proxied","proxied = 'a'"].join("\n"),{rules:[{name:"start",expression:{type:"rule_ref",name:"proxied"}},{name:"proxied"}]},{allowedStartRules:["start"]})}))})),describe("when a proxy rule is listed in |allowedStartRules|",(function(){it("updates references but doesn't remove it",(function(){expect(pass).to.changeAST(["start = proxy","proxy = proxied","proxied = 'a'"].join("\n"),{rules:[{name:"start",expression:{type:"rule_ref",name:"proxied"}},{name:"proxy",expression:{type:"rule_ref",name:"proxied"}},{name:"proxied"}]},{allowedStartRules:["start","proxy"]})}))}))})),exports.peggyVersion=peggyVersion})); \ No newline at end of file diff --git a/docs/vendor/peggy/peggy.min.js b/docs/vendor/peggy/peggy.min.js index 84d58166..313bbec3 100644 --- a/docs/vendor/peggy/peggy.min.js +++ b/docs/vendor/peggy/peggy.min.js @@ -5,4 +5,4 @@ // Copyright (c) 2023- the Peggy authors // Licensed under the MIT License. -!function(u,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(u="undefined"!=typeof globalThis?globalThis:u||self).peggy=e()}(this,(function(){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},GrammarLocation$4=function(){function GrammarLocation(u,e){this.source=u,this.start=e}return GrammarLocation.prototype.toString=function(){return String(this.source)},GrammarLocation.prototype.offset=function(u){return{line:u.line+this.start.line-1,column:1===u.line?u.column+this.start.column-1:u.column,offset:u.offset+this.start.offset}},GrammarLocation.offsetStart=function(u){return u.source&&"function"==typeof u.source.offset?u.source.offset(u.start):u.start},GrammarLocation.offsetEnd=function(u){return u.source&&"function"==typeof u.source.offset?u.source.offset(u.end):u.end},GrammarLocation}(),grammarLocation=GrammarLocation$4,__extends=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=function(u,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,e){u.__proto__=e}||function(u,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(u[t]=e[t])},extendStatics(u,e)},function(u,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=u}extendStatics(u,e),u.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),extendStatics,GrammarLocation$3=grammarLocation,setProtoOf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,e){u.__proto__=e}||function(u,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(u[t]=e[t])},GrammarError$3=function(u){function e(t,r,n){var o=u.call(this,t)||this;return setProtoOf(o,e.prototype),o.name="GrammarError",o.location=r,void 0===n&&(n=[]),o.diagnostics=n,o.stage=null,o.problems=[["error",t,r,n]],o}return __extends(e,u),e.prototype.toString=function(){var e=u.prototype.toString.call(this);this.location&&(e+="\n at ",void 0!==this.location.source&&null!==this.location.source&&(e+="".concat(this.location.source,":")),e+="".concat(this.location.start.line,":").concat(this.location.start.column));for(var t=0,r=this.diagnostics;t0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$9.build({rule:function(u){var e,t=0;if(void 0===u.match){u.match=SOMETIMES_MATCH$1;do{if(e=u.match,u.match=o(u.expression),++t>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",u.location)}while(e!==u.match)}return u.match},named:r,choice:function(u){return u.match=n(u.alternatives,!0)},action:r,sequence:function(u){return u.match=n(u.elements,!1)},labeled:r,text:r,simple_and:r,simple_not:function(u){return u.match=-o(u.expression)},optional:t,zero_or_more:t,one_or_more:r,group:r,semantic_and:e,semantic_not:e,rule_ref:function(e){var t=asts$6.findRule(u,e.name);return e.match=o(t)},literal:function(u){var e=0===u.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return u.match=e},class:function(u){var e=0===u.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return u.match=e},any:e});o(u)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(u,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;n1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],A([op$1.POP],u(e.slice(1),t)),[]):[])}(u.alternatives,e)},action:function(u,e){var t=p(e.env),r="sequence"!==u.expression.type||0===u.expression.elements.length,n=F(u.expression,{sp:e.sp+(r?1:0),env:t,action:u}),o=0|u.expression.match,a=r&&o!==NEVER_MATCH?c(!1,Object.keys(t),u):null;return r?A([op$1.PUSH_CURR_POS],n,f(o,[op$1.IF_NOT_ERROR],A([op$1.LOAD_SAVED_POS,1],E(a,1,t,e.sp+2)),[]),[op$1.NIP]):n},sequence:function(u,e){return A([op$1.PUSH_CURR_POS],function e(t,r){if(t.length>0){var n=u.elements.length-t.length+1;return A(F(t[0],{sp:r.sp,env:r.env,pluck:r.pluck,action:null}),f(0|t[0].match,[op$1.IF_NOT_ERROR],e(t.slice(1),{sp:r.sp+1,env:r.env,pluck:r.pluck,action:r.action}),A(n>1?[op$1.POP_N,n]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(r.pluck.length>0)return A([op$1.PLUCK,u.elements.length+1,r.pluck.length],r.pluck.map((function(u){return r.sp-u})));if(r.action){var o=c(!1,Object.keys(r.env),r.action);return A([op$1.LOAD_SAVED_POS,u.elements.length],E(o,u.elements.length+1,r.env,r.sp))}return A([op$1.WRAP,u.elements.length],[op$1.NIP])}(u.elements,{sp:e.sp+1,env:e.env,pluck:[],action:e.action}))},labeled:function(u,t){var r=t.env,n=u.label,o=t.sp+1;n&&(r=p(t.env),t.env[u.label]=o),u.pick&&t.pluck.push(o);var a=F(u.expression,{sp:t.sp,env:r,action:null});return n&&u.labelLocation&&e&&"source-and-map"===e.output?A([op$1.SOURCE_MAP_LABEL_PUSH,o,i(n),l(u.labelLocation)],a,[op$1.SOURCE_MAP_LABEL_POP,o]):a},text:function(u,e){return A([op$1.PUSH_CURR_POS],F(u.expression,{sp:e.sp+1,env:p(e.env),action:null}),f(0|u.match,[op$1.IF_NOT_ERROR],A([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(u,e){return h(u.expression,!1,e)},simple_not:function(u,e){return h(u.expression,!0,e)},optional:function(u,e){return A(F(u.expression,{sp:e.sp,env:p(e.env),action:null}),f(-(0|u.expression.match),[op$1.IF_ERROR],A([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(u,e){var t=F(u.expression,{sp:e.sp+1,env:p(e.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,d(t),[op$1.POP])},one_or_more:function(u,e){var t=F(u.expression,{sp:e.sp+1,env:p(e.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,f(0|u.expression.match,[op$1.IF_NOT_ERROR],A(d(t),[op$1.POP]),A([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},group:function(u,e){return F(u.expression,{sp:e.sp,env:p(e.env),action:null})},semantic_and:function(u,e){return C(u,!1,e)},semantic_not:function(u,e){return C(u,!0,e)},rule_ref:function(e){return[op$1.RULE,asts$5.indexOfRule(u,e.name)]},literal:function(u){if(u.value.length>0){var e=0|u.match,t=e===SOMETIMES_MATCH||e===ALWAYS_MATCH&&!u.ignoreCase?i(u.ignoreCase?u.value.toLowerCase():u.value):null,r=e!==ALWAYS_MATCH?s({type:"literal",value:u.value,ignoreCase:u.ignoreCase}):null;return f(e,u.ignoreCase?[op$1.MATCH_STRING_IC,t]:[op$1.MATCH_STRING,t],u.ignoreCase?[op$1.ACCEPT_N,u.value.length]:[op$1.ACCEPT_STRING,t],[op$1.FAIL,r])}return[op$1.PUSH_EMPTY_STRING]},class:function(u){var e=0|u.match,t=e===SOMETIMES_MATCH?function(u){var e={value:u.parts,inverted:u.inverted,ignoreCase:u.ignoreCase},t=JSON.stringify(e),n=r.findIndex((function(u){return JSON.stringify(u)===t}));return-1===n?r.push(e)-1:n}(u):null,n=e!==ALWAYS_MATCH?s({type:"class",value:u.parts,inverted:u.inverted,ignoreCase:u.ignoreCase}):null;return f(e,[op$1.MATCH_CHAR_CLASS,t],[op$1.ACCEPT_N,1],[op$1.FAIL,n])},any:function(u){var e=0|u.match,t=e!==ALWAYS_MATCH?s({type:"any"}):null;return f(e,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,t])}},e&&"source-and-map"===e.output&&Object.entries(g).forEach((function(u){var e=u[0],t=u[1];g[e]=function(u){for(var e=[],r=1;r>>=VLQ_BASE_SHIFT,r>0&&(e|=VLQ_CONTINUATION_BIT),t+=base64$2.encode(e)}while(r>0);return t};var util$3={};function getArg(u,e,t){if(e in u)return u[e];if(3===arguments.length)return t;throw new Error('"'+e+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(u){return u}function toSetString(u){return isProtoString(u)?"$"+u:u}function fromSetString(u){return isProtoString(u)?u.slice(1):u}function isProtoString(u){if(!u)return!1;const e=u.length;if(e<9)return!1;if(95!==u.charCodeAt(e-1)||95!==u.charCodeAt(e-2)||111!==u.charCodeAt(e-3)||116!==u.charCodeAt(e-4)||111!==u.charCodeAt(e-5)||114!==u.charCodeAt(e-6)||112!==u.charCodeAt(e-7)||95!==u.charCodeAt(e-8)||95!==u.charCodeAt(e-9))return!1;for(let t=e-10;t>=0;t--)if(36!==u.charCodeAt(t))return!1;return!0}function strcmp(u,e){return u===e?0:null===u?1:null===e?-1:u>e?1:-1}function compareByGeneratedPositionsInflated(u,e){let t=u.generatedLine-e.generatedLine;return 0!==t?t:(t=u.generatedColumn-e.generatedColumn,0!==t?t:(t=strcmp(u.source,e.source),0!==t?t:(t=u.originalLine-e.originalLine,0!==t?t:(t=u.originalColumn-e.originalColumn,0!==t?t:strcmp(u.name,e.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(u){return e=>{const t=getURLType(e),r=buildSafeBase(e),n=new URL(e,r);u(n);const o=n.toString();return"absolute"===t?o:"scheme-relative"===t?o.slice(PROTOCOL.length):"path-absolute"===t?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(r,o)}}function withBase(u,e){return new URL(u,e).toString()}function buildUniqueSegment(u,e){let t=0;for(;;){const r=u+t++;if(-1===e.indexOf(r))return r}}function buildSafeBase(u){const e=u.split("..").length-1,t=buildUniqueSegment("p",u);let r=`${PROTOCOL_AND_HOST}/`;for(let u=0;u0&&!r[r.length-1]&&r.pop();t.length>0&&r.length>0&&t[0]===r[0];)t.shift(),r.shift();return r.map((()=>"..")).concat(t).join("/")+e.search+e.hash}const ensureDirectory=createSafeHandler((u=>{u.pathname=u.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((u=>{}));function join(u,e){const t=getURLType(e),r=getURLType(u);if(u=ensureDirectory(u),"absolute"===t)return withBase(e,void 0);if("absolute"===r)return withBase(e,u);if("scheme-relative"===t)return normalize(e);if("scheme-relative"===r)return withBase(e,withBase(u,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===t)return normalize(e);if("path-absolute"===r)return withBase(e,withBase(u,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const n=buildSafeBase(e+u);return computeRelativeURL(n,withBase(e,withBase(u,n)))}function relative(u,e){const t=relativeIfPossible(u,e);return"string"==typeof t?t:normalize(e)}function relativeIfPossible(u,e){if(getURLType(u)!==getURLType(e))return null;const t=buildSafeBase(u+e),r=new URL(u,t),n=new URL(e,t);try{new URL("",n.toString())}catch(u){return null}return n.protocol!==r.protocol||n.user!==r.user||n.password!==r.password||n.hostname!==r.hostname||n.port!==r.port?null:computeRelativeURL(r,n)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class u{constructor(){this._array=[],this._set=new Map}static fromArray(e,t){const r=new u;for(let u=0,n=e.length;u=0)return e;throw new Error('"'+u+'" is not in the set.')}at(u){if(u>=0&&ut||r==t&&o>=n||util$2.compareByGeneratedPositionsInflated(u,e)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(u,e){this._array.forEach(u,e)}add(u){generatedPositionAfter(this._last,u)?(this._last=u,this._array.push(u)):(this._sorted=!1,this._array.push(u))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class u{constructor(u){u||(u={}),this._file=util$1.getArg(u,"file",null),this._sourceRoot=util$1.getArg(u,"sourceRoot",null),this._skipValidation=util$1.getArg(u,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(e){const t=e.sourceRoot,r=new u({file:e.file,sourceRoot:t});return e.eachMapping((function(u){const e={generated:{line:u.generatedLine,column:u.generatedColumn}};null!=u.source&&(e.source=u.source,null!=t&&(e.source=util$1.relative(t,e.source)),e.original={line:u.originalLine,column:u.originalColumn},null!=u.name&&(e.name=u.name)),r.addMapping(e)})),e.sources.forEach((function(u){let n=u;null!=t&&(n=util$1.relative(t,u)),r._sources.has(n)||r._sources.add(n);const o=e.sourceContentFor(u);null!=o&&r.setSourceContent(u,o)})),r}addMapping(u){const e=util$1.getArg(u,"generated"),t=util$1.getArg(u,"original",null);let r=util$1.getArg(u,"source",null),n=util$1.getArg(u,"name",null);this._skipValidation||this._validateMapping(e,t,r,n),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:n})}setSourceContent(u,e){let t=u;null!=this._sourceRoot&&(t=util$1.relative(this._sourceRoot,t)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(t)]=e):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(u,e,t){let r=e;if(null==e){if(null==u.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=u.file}const n=this._sourceRoot;null!=n&&(r=util$1.relative(n,r));const o=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;this._mappings.unsortedForEach((function(e){if(e.source===r&&null!=e.originalLine){const r=u.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=r.source&&(e.source=r.source,null!=t&&(e.source=util$1.join(t,e.source)),null!=n&&(e.source=util$1.relative(n,e.source)),e.originalLine=r.line,e.originalColumn=r.column,null!=r.name&&(e.name=r.name))}const i=e.source;null==i||o.has(i)||o.add(i);const s=e.name;null==s||a.has(s)||a.add(s)}),this),this._sources=o,this._names=a,u.sources.forEach((function(e){const r=u.sourceContentFor(e);null!=r&&(null!=t&&(e=util$1.join(t,e)),null!=n&&(e=util$1.relative(n,e)),this.setSourceContent(e,r))}),this)}_validateMapping(u,e,t,r){if(e&&"number"!=typeof e.line&&"number"!=typeof e.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(u&&"line"in u&&"column"in u&&u.line>0&&u.column>=0&&!e&&!t&&!r);else if(!(u&&"line"in u&&"column"in u&&e&&"line"in e&&"column"in e&&u.line>0&&u.column>=0&&e.line>0&&e.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:u,source:t,original:e,name:r}))}_serializeMappings(){let u,e,t,r,n=0,o=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let A=0,f=p.length;A0){if(!util$1.compareByGeneratedPositionsInflated(e,p[A-1]))continue;u+=","}u+=base64VLQ.encode(e.generatedColumn-n),n=e.generatedColumn,null!=e.source&&(r=this._sources.indexOf(e.source),u+=base64VLQ.encode(r-c),c=r,u+=base64VLQ.encode(e.originalLine-1-i),i=e.originalLine-1,u+=base64VLQ.encode(e.originalColumn-a),a=e.originalColumn,null!=e.name&&(t=this._names.indexOf(e.name),u+=base64VLQ.encode(t-s),s=t)),l+=u}return l}_generateSourcesContent(u,e){return u.map((function(u){if(!this._sourcesContents)return null;null!=e&&(u=util$1.relative(e,u));const t=util$1.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null}),this)}toJSON(){const u={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(u.file=this._file),null!=this._sourceRoot&&(u.sourceRoot=this._sourceRoot),this._sourcesContents&&(u.sourcesContent=this._generateSourcesContent(u.sources,u.sourceRoot)),u}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class u{constructor(u,e,t,r,n){this.children=[],this.sourceContents={},this.line=null==u?null:u,this.column=null==e?null:e,this.source=null==t?null:t,this.name=null==n?null:n,this[isSourceNode]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,t,r){const n=new u,o=e.split(REGEX_NEWLINE);let a=0;const i=function(){return u()+(u()||"");function u(){return a=0;e--)this.prepend(u[e]);else{if(!u[isSourceNode]&&"string"!=typeof u)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+u);this.children.unshift(u)}return this}walk(u){let e;for(let t=0,r=this.children.length;t0){for(e=[],t=0;t' at an index ").concat(u,".\nBytecode: ").concat(this.bytecode));return this.varName+u},u.prototype.sourceNode=function(u,e,t){var r=GrammarLocation$2.offsetStart(u);return new SourceNode$1(r.line,r.column?r.column-1:null,String(u.source),e,t)},u.prototype.push=function(u){++this.sp>this.maxSp&&(this.maxSp=this.sp);var e=this.labels[this.sp],t=[this.name(this.sp)," = ",u,";"];if(e){if(this.sourceMapStack.length){var r=this.sourceNode(e.location,t.splice(0,2),e.label),n=this.sourceMapPopInternal(),o=n.parts,a=n.location,i=a.start.offsete.end.offset&&(t[2]={start:e.end,end:t[2].end,source:t[2].source})}this.sourceMapStack.push([u,u.length,e])},u.prototype.sourceMapPopInternal=function(){var u=this.sourceMapStack.pop(),e=u[0],t=u[1],r=u[2],n=e.splice(t).map((function(u){return u instanceof SourceNode$1?u:u+"\n"}));if(n.length){var o=GrammarLocation$2.offsetStart(r);e.push(new SourceNode$1(o.line,o.column-1,String(r.source),n))}return{parts:e,location:r}},u.prototype.sourceMapPop=function(u){var e=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&e.end.offset>2],n+=e[(3&u[o])<<4|u[o+1]>>4],n+=e[(15&u[o+1])<<2|u[o+2]>>6],n+=e[63&u[o+2]];return 1===t?(n+=e[u[r]>>2],n+=e[(3&u[r])<<4],n+="=="):2===t&&(n+=e[u[r]>>2],n+=e[(3&u[r])<<4|u[r+1]>>4],n+=e[(15&u[r+1])<<2],n+="="),n}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(u,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;n0&&(t.forEach((function(u){o.push("var "+u+' = require("'+stringEscape(e.dependencies[u])+'");')})),o.push("")),o.push(u,"","module.exports = "+n()+";"),o},es:function(){var t=Object.keys(e.dependencies),n=r();return n.push(""),t.length>0&&(t.forEach((function(u){n.push("import "+u+' from "'+stringEscape(e.dependencies[u])+'";')})),n.push("")),n.push(u,"","export {"," peg$SyntaxError as SyntaxError,",e.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),n},amd:function(){var o=Object.keys(e.dependencies),a="["+o.map((function(u){return e.dependencies[u]})).map((function(u){return'"'+stringEscape(u)+'"'})).join(", ")+"]",i=o.join(", ");return __spreadArray$1(__spreadArray$1([],r(),!0),["define("+a+", function("+i+") {",' "use strict";',"",u,"",t("return "+n()+";"),"});"],!1)},globals:function(){return __spreadArray$1(__spreadArray$1([],r(),!0),["(function(root) {",' "use strict";',"",u,"",t("root."+e.exportVar+" = "+n()+";"),"})(this);"],!1)},umd:function(){var o=Object.keys(e.dependencies),a=o.map((function(u){return e.dependencies[u]})),i="["+a.map((function(u){return'"'+stringEscape(u)+'"'})).join(", ")+"]",s=a.map((function(u){return'require("'+stringEscape(u)+'")'})).join(", "),c=o.join(", "),l=r();return l.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),null!==e.exportVar&&l.push(" } else {"," root."+e.exportVar+" = factory();"),l.push(" }","})(this, function("+c+") {",' "use strict";',"",u,"",t("return "+n()+";"),"});"),l}}[e.format]();return new SourceNode(null,null,e.grammarSource,o.map((function(u){return u instanceof SourceNode?u:u+"\n"})))}(function(){var c=[];u.topLevelInitializer&&(c.push(s(u.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),e.trace&&c.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");var l="{ "+e.allowedStartRules.map((function(u){return u+": "+i(u)})).join(", ")+" }",p=i(e.allowedStartRules[0]);return c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+l+";"," var peg$startRuleFunction = "+p+";","",new SourceNode(null,null,e.grammarSource,[u.literals.map((function(u,e){return" var "+r(e)+' = "'+stringEscape(u)+'";'})).concat("",u.classes.map((function(u,e){return" var "+n(e)+" = /^["+((t=u).inverted?"^":"")+t.value.map((function(u){return Array.isArray(u)?regexpClassEscape(u[0])+"-"+regexpClassEscape(u[1]):regexpClassEscape(u)})).join("")+"]/"+(t.ignoreCase?"i":"")+";";var t}))).concat("",u.expectations.map((function(u,e){return" var "+o(e)+" = "+function(u){switch(u.type){case"rule":return'peg$otherExpectation("'+stringEscape(u.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(u.value)+'", '+u.ignoreCase+")";case"class":return"peg$classExpectation(["+u.value.map((function(u){return Array.isArray(u)?'["'+stringEscape(u[0])+'", "'+stringEscape(u[1])+'"]':'"'+stringEscape(u)+'"'})).join(", ")+"], "+u.inverted+", "+u.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(u)+")")}}(u)+";"}))).concat("").join("\n"),u.functions.map((function(u,e){return wrapInSourceNode("\n var ".concat(a(e)," = function(").concat(u.params.join(", "),") {"),u.body,u.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),e.cache&&c.push(" var peg$resultsCache = {};",""),e.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),u.rules.forEach((function(s){c.push.apply(c,t(function(s){var c=[],l=new Stack(s.name,"s","var",s.bytecode),p=function e(c){var p,A=0,f=c.length,E=[];function h(u,r){var n,o,a=r+3,i=c[A+a-2],s=c[A+a-1];l.checkedIf(A,(function(){A+=a,n=e(c.slice(A,A+i)),A+=i}),s>0?function(){o=e(c.slice(A,A+s)),A+=s}:null),E.push("if ("+u+") {"),E.push.apply(E,t(n)),s>0&&(E.push("} else {"),E.push.apply(E,t(o))),E.push("}")}function C(u){var r,n=c[A+2-1];l.checkedLoop(A,(function(){A+=2,r=e(c.slice(A,A+n)),A+=n})),E.push("while ("+u+") {"),E.push.apply(E,t(r)),E.push("}")}function d(){var u=c[A+4-1],e=a(c[A+1])+"("+c.slice(A+4,A+4+u).map((function(u){return l.index(u)})).join(", ")+")";l.pop(c[A+2]),E.push(l.push(e)),A+=4+u}for(;A peg$currPos",0);break;case op.MATCH_STRING:h(u.literals[c[A+1]].length>1?"input.substr(peg$currPos, "+u.literals[c[A+1]].length+") === "+r(c[A+1]):"input.charCodeAt(peg$currPos) === "+u.literals[c[A+1]].charCodeAt(0),1);break;case op.MATCH_STRING_IC:h("input.substr(peg$currPos, "+u.literals[c[A+1]].length+").toLowerCase() === "+r(c[A+1]),1);break;case op.MATCH_CHAR_CLASS:h(n(c[A+1])+".test(input.charAt(peg$currPos))",1);break;case op.ACCEPT_N:E.push(l.push(c[A+1]>1?"input.substr(peg$currPos, "+c[A+1]+")":"input.charAt(peg$currPos)")),E.push(c[A+1]>1?"peg$currPos += "+c[A+1]+";":"peg$currPos++;"),A+=2;break;case op.ACCEPT_STRING:E.push(l.push(r(c[A+1]))),E.push(u.literals[c[A+1]].length>1?"peg$currPos += "+u.literals[c[A+1]].length+";":"peg$currPos++;"),A+=2;break;case op.FAIL:E.push(l.push("peg$FAILED")),E.push("if (peg$silentFails === 0) { peg$fail("+o(c[A+1])+"); }"),A+=2;break;case op.LOAD_SAVED_POS:E.push("peg$savedPos = "+l.index(c[A+1])+";"),A+=2;break;case op.UPDATE_SAVED_POS:E.push("peg$savedPos = peg$currPos;"),A++;break;case op.CALL:d();break;case op.RULE:E.push(l.push(i(u.rules[c[A+1]].name)+"()")),A+=2;break;case op.SILENT_FAILS_ON:E.push("peg$silentFails++;"),A++;break;case op.SILENT_FAILS_OFF:E.push("peg$silentFails--;"),A++;break;case op.SOURCE_MAP_PUSH:l.sourceMapPush(E,u.locations[c[A+1]]),A+=2;break;case op.SOURCE_MAP_POP:l.sourceMapPop(),A++;break;case op.SOURCE_MAP_LABEL_PUSH:l.labels[c[A+1]]={label:u.literals[c[A+2]],location:u.locations[c[A+3]]},A+=4;break;case op.SOURCE_MAP_LABEL_POP:delete l.labels[c[A+1]],A+=2;break;default:throw new Error("Invalid opcode: "+c[A]+".",{rule:s.name,bytecode:c})}return E}(s.bytecode);return c.push(wrapInSourceNode("function ",i(s.name),s.nameLocation,"() {\n",s.name)),e.trace&&c.push(" var startPos = peg$currPos;"),c.push(t(l.defines())),c.push.apply(c,t(function(t,r){var n=[];return n.push(""),e.trace&&n.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)","});",""),e.cache&&(n.push("var key = peg$currPos * "+u.rules.length+" + "+r+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),e.trace&&n.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+t+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),n.push(" return cached.result;","}","")),n}('"'+stringEscape(s.name)+'"',asts$4.indexOfRule(u,s.name)))),c.push.apply(c,t(p)),c.push.apply(c,t(function(u,t){var r=[];return e.cache&&r.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+t+" };"),e.trace&&r.push("","if ("+t+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+u+","," result: "+t+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+u+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),r.push("","return "+t+";"),r}('"'+stringEscape(s.name)+'"',l.result()))),c.push("}"),c}(s))),c.push("")})),u.initializer&&(c.push(s(u.initializer)),c.push("")),c.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new SourceNode(null,null,e.grammarSource,c.map((function(u){return u instanceof SourceNode?u:u+"\n"})))}())}var generateJs=generateJS$1,asts$3=asts_1,visitor$7=visitor_1;function removeProxyRules$1(u,e,t){var r=[];u.rules.forEach((function(n,o){var a;"rule"===(a=n).type&&"rule_ref"===a.expression.type&&(function(u,e,r){visitor$7.build({rule_ref:function(n){n.name===e&&(n.name=r,t.info('Proxy rule "'.concat(e,'" replaced by the rule "').concat(r,'"'),n.location,[{message:"This rule will be used",location:asts$3.findRule(u,r).nameLocation}]))}})(u)}(u,n.name,n.expression.name),-1===e.allowedStartRules.indexOf(n.name)&&r.push(o))})),r.reverse(),r.forEach((function(e){u.rules.splice(e,1)}))}var removeProxyRules_1=removeProxyRules$1,visitor$6=visitor_1;function reportDuplicateLabels$1(u,e,t){function r(u){var e={};return Object.keys(u).forEach((function(t){e[t]=u[t]})),e}function n(u,e){o(u.expression,r(e))}var o=visitor$6.build({rule:function(u){o(u.expression,{})},choice:function(u,e){u.alternatives.forEach((function(u){o(u,r(e))}))},action:n,labeled:function(u,e){var r=u.label;r&&Object.prototype.hasOwnProperty.call(e,r)&&t.error('Label "'.concat(u.label,'" is already defined'),u.labelLocation,[{message:"Original label location",location:e[r]}]),o(u.expression,e),e[u.label]=u.labelLocation},text:n,simple_and:n,simple_not:n,optional:n,zero_or_more:n,one_or_more:n,group:n});o(u)}var reportDuplicateLabels_1=reportDuplicateLabels$1,visitor$5=visitor_1;function reportDuplicateRules$1(u,e,t){var r={};visitor$5.build({rule:function(u){Object.prototype.hasOwnProperty.call(r,u.name)?t.error('Rule "'.concat(u.name,'" is already defined'),u.nameLocation,[{message:"Original rule location",location:r[u.name]}]):r[u.name]=u.nameLocation}})(u)}var reportDuplicateRules_1=reportDuplicateRules$1,asts$2=asts_1,visitor$4=visitor_1;function reportInfiniteRecursion$1(u,e,t){var r=[],n=[],o=visitor$4.build({rule:function(u){r.push(u.name),o(u.expression),r.pop()},sequence:function(e){e.elements.every((function(e){return o(e),!asts$2.alwaysConsumesOnSuccess(u,e)}))},rule_ref:function(e){n.push(e);var a=asts$2.findRule(u,e.name);if(-1!==r.indexOf(e.name))return r.push(e.name),void t.error("Possible infinite loop when parsing (left recursion: "+r.join(" -> ")+")",a.nameLocation,n.map((function(u,e,t){return{message:e+1!==t.length?"Step ".concat(e+1,': call of the rule "').concat(u.name,'" without input consumption'):"Step ".concat(e+1,": call itself without input consumption - left recursion"),location:u.location}})));a&&o(a),n.pop()}});o(u)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$1=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(u,e,t){visitor$3.build({zero_or_more:function(e){asts$1.alwaysConsumesOnSuccess(u,e.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",e.location)},one_or_more:function(e){asts$1.alwaysConsumesOnSuccess(u,e.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",e.location)}})(u)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(u,e,t){visitor$2.build({rule_ref:function(e){asts.findRule(u,e.name)||t.error('Rule "'.concat(e.name,'" is not defined'),e.location)}})(u)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(u,e,t){var r=visitor$1.build({action:function(u){r(u.expression,u)},labeled:function(u,e){u.pick&&e&&t.error('"@" cannot be used with an action block',u.labelLocation,[{message:"Action block location",location:e.codeLocation}]),r(u.expression)}});r(u)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(u,e,t){if(t||2===arguments.length)for(var r,n=0,o=e.length;n0:u&&"function"==typeof u.offset}var compiler$1={visitor:visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");var allRules=ast.rules.map((function(u){return u.name}));if(options.allowedStartRules.some((function(u){return"*"===u})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");var session=new Session(options);switch(Object.keys(passes).forEach((function(u){session.stage=u,session.info("Process stage ".concat(u)),passes[u].forEach((function(e){session.info("Process pass ".concat(u,".").concat(e.name)),e(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(u,e){function t(){this.constructor=u}t.prototype=e.prototype,u.prototype=new t}function peg$SyntaxError(u,e,t,r){var n=Error.call(this,u);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=e,n.found=t,n.location=r,n.name="SyntaxError",n}function peg$padEnd(u,e,t){return t=t||" ",u.length>e?u:(e-=u.length,u+(t+=t.repeat(e)).slice(0,e))}function peg$parse(u,e){var t,r={},n=(e=void 0!==e?e:{}).grammarSource,o={Grammar:Ot},a=Ot,i="{",s="}",c="=",l="/",p="@",A=":",f="$",E="&",h="!",C="?",d="*",g="+",F="(",m=")",_="\t",B="\v",D="\f",v=" ",S=" ",$="\ufeff",y="\n",P="\r\n",x="\r",b="\u2028",R="\u2029",O="/*",L="*/",T="//",M="_",w="\\",N="‌",I="‍",k="i",U='"',H="'",j="[",G="^",V="]",W="-",Y="0",z="b",J="f",Q="n",q="r",X="t",K="v",Z="x",uu="u",eu=".",tu=";",ru=/^[\n\r\u2028\u2029]/,nu=/^[0-9]/,ou=/^[0-9a-f]/i,au=/^[{}]/,iu=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,su=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,cu=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,lu=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,pu=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,Au=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,fu=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,Eu=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,hu=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,Cu=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,du=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,gu=$t("{",!1),Fu=$t("}",!1),mu=$t("=",!1),_u=$t("/",!1),Bu=$t("@",!1),Du=$t(":",!1),vu=$t("$",!1),Su=$t("&",!1),$u=$t("!",!1),yu=$t("?",!1),Pu=$t("*",!1),xu=$t("+",!1),bu=$t("(",!1),Ru=$t(")",!1),Ou={type:"any"},Lu=Pt("whitespace"),Tu=$t("\t",!1),Mu=$t("\v",!1),wu=$t("\f",!1),Nu=$t(" ",!1),Iu=$t(" ",!1),ku=$t("\ufeff",!1),Uu=yt(["\n","\r","\u2028","\u2029"],!1,!1),Hu=Pt("end of line"),ju=$t("\n",!1),Gu=$t("\r\n",!1),Vu=$t("\r",!1),Wu=$t("\u2028",!1),Yu=$t("\u2029",!1),zu=Pt("comment"),Ju=$t("/*",!1),Qu=$t("*/",!1),qu=$t("//",!1),Xu=Pt("identifier"),Ku=$t("_",!1),Zu=$t("\\",!1),ue=$t("‌",!1),ee=$t("‍",!1),te=Pt("literal"),re=$t("i",!1),ne=Pt("string"),oe=$t('"',!1),ae=$t("'",!1),ie=Pt("character class"),se=$t("[",!1),ce=$t("^",!1),le=$t("]",!1),pe=$t("-",!1),Ae=$t("0",!1),fe=$t("b",!1),Ee=$t("f",!1),he=$t("n",!1),Ce=$t("r",!1),de=$t("t",!1),ge=$t("v",!1),Fe=$t("x",!1),me=$t("u",!1),_e=yt([["0","9"]],!1,!1),Be=yt([["0","9"],["a","f"]],!1,!0),De=$t(".",!1),ve=Pt("code block"),Se=yt(["{","}"],!1,!1),$e=yt([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),ye=yt([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Pe=yt(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),xe=yt(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),be=yt([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),Re=yt(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Oe=yt([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),Le=yt([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Te=yt([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Me=yt(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),we=yt([" "," "," ",[" "," "]," "," "," "],!1,!1),Ne=$t(";",!1),Ie=function(u,e,t){return{type:"grammar",topLevelInitializer:u,initializer:e,rules:t,location:vt()}},ke=function(u){return{type:"top_level_initializer",code:u[0],codeLocation:u[1],location:vt()}},Ue=function(u){return{type:"initializer",code:u[0],codeLocation:u[1],location:vt()}},He=function(u,e,t){return{type:"rule",name:u[0],nameLocation:u[1],expression:null!==e?{type:"named",name:e,expression:t,location:vt()}:t,location:vt()}},je=function(u,e){return e.length>0?{type:"choice",alternatives:[u].concat(e),location:vt()}:u},Ge=function(u,e){return null!==e?{type:"action",expression:u,code:e[0],codeLocation:e[1],location:vt()}:u},Ve=function(u,e){return e.length>0||"labeled"===u.type&&u.pick?{type:"sequence",elements:[u].concat(e),location:vt()}:u},We=function(u,e,t){return t.type.startsWith("semantic_")&&St('"@" cannot be used on a semantic predicate',u),{type:"labeled",label:null!==e?e[0]:null,labelLocation:null!==e?e[1]:u,pick:!0,expression:t,location:vt()}},Ye=function(u,e){return{type:"labeled",label:u[0],labelLocation:u[1],expression:e,location:vt()}},ze=function(){return vt()},Je=function(u){return Ar.indexOf(u[0])>=0&&St("Label can't be a reserved word \"".concat(u[0],'"'),u[1]),u},Qe=function(u,e){return{type:OPS_TO_PREFIXED_TYPES[u],expression:e,location:vt()}},qe=function(u,e){return{type:OPS_TO_SUFFIXED_TYPES[e],expression:u,location:vt()}},Xe=function(u){return"labeled"===u.type||"sequence"===u.type?{type:"group",expression:u,location:vt()}:u},Ke=function(u){return{type:"rule_ref",name:u[0],location:vt()}},Ze=function(u,e){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[u],code:e[0],codeLocation:e[1],location:vt()}},ut=function(u,e){return[u+e.join(""),vt()]},et=function(u,e){return{type:"literal",value:u,ignoreCase:null!==e,location:vt()}},tt=function(u){return u.join("")},rt=function(u){return u.join("")},nt=function(u,e,t){return{type:"class",parts:e.filter((function(u){return""!==u})),inverted:null!==u,ignoreCase:null!==t,location:vt()}},ot=function(e,t){return e.charCodeAt(0)>t.charCodeAt(0)&&St("Invalid character range: "+u.substring(Ft,gt)+"."),[e,t]},at=function(){return""},it=function(){return"\0"},st=function(){return"\b"},ct=function(){return"\f"},lt=function(){return"\n"},pt=function(){return"\r"},At=function(){return"\t"},ft=function(){return"\v"},Et=function(u){return String.fromCharCode(parseInt(u,16))},ht=function(u){return String.fromCharCode(parseInt(u,16))},Ct=function(){return{type:"any",location:vt()}},dt=function(u){return[u,vt()]},gt=0,Ft=0,mt=[{line:1,column:1}],_t=0,Bt=[],Dt=0;if("startRule"in e){if(!(e.startRule in o))throw new Error("Can't start parsing from rule \""+e.startRule+'".');a=o[e.startRule]}function vt(){return bt(Ft,gt)}function St(u,e){throw function(u,e){return new peg$SyntaxError(u,null,null,e)}(u,e=void 0!==e?e:bt(Ft,gt))}function $t(u,e){return{type:"literal",text:u,ignoreCase:e}}function yt(u,e,t){return{type:"class",parts:u,inverted:e,ignoreCase:t}}function Pt(u){return{type:"other",description:u}}function xt(e){var t,r=mt[e];if(r)return r;for(t=e-1;!mt[t];)t--;for(r={line:(r=mt[t]).line,column:r.column};t_t&&(_t=gt,Bt=[]),Bt.push(u))}function Ot(){var e,t,n,o,a,c;if(e=gt,lr(),t=gt,n=function(){var e,t,n,o;return e=gt,123===u.charCodeAt(gt)?(t=i,gt++):(t=r,0===Dt&&Rt(gu)),t!==r&&(n=sr())!==r?(125===u.charCodeAt(gt)?(o=s,gt++):(o=r,0===Dt&&Rt(Fu)),o!==r&&pr()!==r?(Ft=e,e=ke(n)):(gt=e,e=r)):(gt=e,e=r),e}(),n!==r?(o=lr(),t=n):(gt=t,t=r),t===r&&(t=null),n=gt,o=function(){var u,e;return u=gt,(e=sr())!==r&&pr()!==r?(Ft=u,u=Ue(e)):(gt=u,u=r),u}(),o!==r?(a=lr(),n=o):(gt=n,n=r),n===r&&(n=null),o=[],a=gt,(c=Lt())!==r?(lr(),a=c):(gt=a,a=r),a!==r)for(;a!==r;)o.push(a),a=gt,(c=Lt())!==r?(lr(),a=c):(gt=a,a=r);else o=r;return o!==r?(Ft=e,e=Ie(t,n,o)):(gt=e,e=r),e}function Lt(){var e,t,n,o,a;return e=gt,(t=Jt())!==r?(lr(),n=gt,(o=Xt())!==r?(lr(),n=o):(gt=n,n=r),n===r&&(n=null),61===u.charCodeAt(gt)?(o=c,gt++):(o=r,0===Dt&&Rt(mu)),o!==r?(lr(),(a=Tt())!==r&&pr()!==r?(Ft=e,e=He(t,n,a)):(gt=e,e=r)):(gt=e,e=r)):(gt=e,e=r),e}function Tt(){var e,t,n,o,a,i;if(e=gt,(t=Mt())!==r){for(n=[],o=gt,lr(),47===u.charCodeAt(gt)?(a=l,gt++):(a=r,0===Dt&&Rt(_u)),a!==r?(lr(),(i=Mt())!==r?o=i:(gt=o,o=r)):(gt=o,o=r);o!==r;)n.push(o),o=gt,lr(),47===u.charCodeAt(gt)?(a=l,gt++):(a=r,0===Dt&&Rt(_u)),a!==r?(lr(),(i=Mt())!==r?o=i:(gt=o,o=r)):(gt=o,o=r);Ft=e,e=je(t,n)}else gt=e,e=r;return e}function Mt(){var u,e,t,n;return u=gt,e=function(){var u,e,t,n,o;if(u=gt,(e=wt())!==r){for(t=[],n=gt,lr(),(o=wt())!==r?n=o:(gt=n,n=r);n!==r;)t.push(n),n=gt,lr(),(o=wt())!==r?n=o:(gt=n,n=r);Ft=u,u=Ve(e,t)}else gt=u,u=r;return u}(),e!==r?(t=gt,lr(),(n=sr())!==r?t=n:(gt=t,t=r),t===r&&(t=null),Ft=u,u=Ge(e,t)):(gt=u,u=r),u}function wt(){var e,t,n,o;return e=gt,t=function(){var e,t;return e=gt,64===u.charCodeAt(gt)?(t=p,gt++):(t=r,0===Dt&&Rt(Bu)),t!==r&&(Ft=e,t=ze()),e=t}(),t!==r?((n=Nt())===r&&(n=null),(o=It())!==r?(Ft=e,e=We(t,n,o)):(gt=e,e=r)):(gt=e,e=r),e===r&&(e=gt,(t=Nt())!==r?(n=lr(),(o=It())!==r?(Ft=e,e=Ye(t,o)):(gt=e,e=r)):(gt=e,e=r),e===r&&(e=It())),e}function Nt(){var e,t,n;return e=gt,(t=Jt())!==r?(lr(),58===u.charCodeAt(gt)?(n=A,gt++):(n=r,0===Dt&&Rt(Du)),n!==r?(Ft=e,e=Je(t)):(gt=e,e=r)):(gt=e,e=r),e}function It(){var e,t,n;return e=gt,t=function(){var e;return 36===u.charCodeAt(gt)?(e=f,gt++):(e=r,0===Dt&&Rt(vu)),e===r&&(38===u.charCodeAt(gt)?(e=E,gt++):(e=r,0===Dt&&Rt(Su)),e===r&&(33===u.charCodeAt(gt)?(e=h,gt++):(e=r,0===Dt&&Rt($u)))),e}(),t!==r?(lr(),(n=kt())!==r?(Ft=e,e=Qe(t,n)):(gt=e,e=r)):(gt=e,e=r),e===r&&(e=kt()),e}function kt(){var e,t,n;return e=gt,(t=Ut())!==r?(lr(),n=function(){var e;return 63===u.charCodeAt(gt)?(e=C,gt++):(e=r,0===Dt&&Rt(yu)),e===r&&(42===u.charCodeAt(gt)?(e=d,gt++):(e=r,0===Dt&&Rt(Pu)),e===r&&(43===u.charCodeAt(gt)?(e=g,gt++):(e=r,0===Dt&&Rt(xu)))),e}(),n!==r?(Ft=e,e=qe(t,n)):(gt=e,e=r)):(gt=e,e=r),e===r&&(e=Ut()),e}function Ut(){var e,t,n,o;return e=function(){var e,t,n;return Dt++,e=gt,(t=Xt())!==r?(105===u.charCodeAt(gt)?(n=k,gt++):(n=r,0===Dt&&Rt(re)),n===r&&(n=null),Ft=e,e=et(t,n)):(gt=e,e=r),Dt--,e===r&&(t=r,0===Dt&&Rt(te)),e}(),e===r&&(e=function(){var e,t,n,o,a,i;if(Dt++,e=gt,91===u.charCodeAt(gt)?(t=j,gt++):(t=r,0===Dt&&Rt(se)),t!==r){for(94===u.charCodeAt(gt)?(n=G,gt++):(n=r,0===Dt&&Rt(ce)),n===r&&(n=null),o=[],(a=ur())===r&&(a=er());a!==r;)o.push(a),(a=ur())===r&&(a=er());93===u.charCodeAt(gt)?(a=V,gt++):(a=r,0===Dt&&Rt(le)),a!==r?(105===u.charCodeAt(gt)?(i=k,gt++):(i=r,0===Dt&&Rt(re)),i===r&&(i=null),Ft=e,e=nt(n,o,i)):(gt=e,e=r)}else gt=e,e=r;return Dt--,e===r&&(t=r,0===Dt&&Rt(ie)),e}(),e===r&&(e=function(){var e,t;return e=gt,46===u.charCodeAt(gt)?(t=eu,gt++):(t=r,0===Dt&&Rt(De)),t!==r&&(Ft=e,t=Ct()),e=t}(),e===r&&(e=function(){var e,t,n,o,a,i,s;return e=gt,(t=Jt())!==r?(n=gt,Dt++,o=gt,a=lr(),i=gt,(s=Xt())!==r?i=s=[s,lr()]:(gt=i,i=r),i===r&&(i=null),61===u.charCodeAt(gt)?(s=c,gt++):(s=r,0===Dt&&Rt(mu)),s!==r?o=a=[a,i,s]:(gt=o,o=r),Dt--,o===r?n=void 0:(gt=n,n=r),n!==r?(Ft=e,e=Ke(t)):(gt=e,e=r)):(gt=e,e=r),e}(),e===r&&(e=function(){var e,t,n;return e=gt,t=function(){var e;return 38===u.charCodeAt(gt)?(e=E,gt++):(e=r,0===Dt&&Rt(Su)),e===r&&(33===u.charCodeAt(gt)?(e=h,gt++):(e=r,0===Dt&&Rt($u))),e}(),t!==r?(lr(),(n=sr())!==r?(Ft=e,e=Ze(t,n)):(gt=e,e=r)):(gt=e,e=r),e}(),e===r&&(e=gt,40===u.charCodeAt(gt)?(t=F,gt++):(t=r,0===Dt&&Rt(bu)),t!==r?(lr(),(n=Tt())!==r?(lr(),41===u.charCodeAt(gt)?(o=m,gt++):(o=r,0===Dt&&Rt(Ru)),o!==r?(Ft=e,e=Xe(n)):(gt=e,e=r)):(gt=e,e=r)):(gt=e,e=r)))))),e}function Ht(){var e;return u.length>gt?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Ou)),e}function jt(){var e;return Dt++,9===u.charCodeAt(gt)?(e=_,gt++):(e=r,0===Dt&&Rt(Tu)),e===r&&(11===u.charCodeAt(gt)?(e=B,gt++):(e=r,0===Dt&&Rt(Mu)),e===r&&(12===u.charCodeAt(gt)?(e=D,gt++):(e=r,0===Dt&&Rt(wu)),e===r&&(32===u.charCodeAt(gt)?(e=v,gt++):(e=r,0===Dt&&Rt(Nu)),e===r&&(160===u.charCodeAt(gt)?(e=S,gt++):(e=r,0===Dt&&Rt(Iu)),e===r&&(65279===u.charCodeAt(gt)?(e=$,gt++):(e=r,0===Dt&&Rt(ku)),e===r&&(e=function(){var e;return du.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(we)),e}())))))),Dt--,e===r&&0===Dt&&Rt(Lu),e}function Gt(){var e;return ru.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Uu)),e}function Vt(){var e;return Dt++,10===u.charCodeAt(gt)?(e=y,gt++):(e=r,0===Dt&&Rt(ju)),e===r&&(u.substr(gt,2)===P?(e=P,gt+=2):(e=r,0===Dt&&Rt(Gu)),e===r&&(13===u.charCodeAt(gt)?(e=x,gt++):(e=r,0===Dt&&Rt(Vu)),e===r&&(8232===u.charCodeAt(gt)?(e=b,gt++):(e=r,0===Dt&&Rt(Wu)),e===r&&(8233===u.charCodeAt(gt)?(e=R,gt++):(e=r,0===Dt&&Rt(Yu)))))),Dt--,e===r&&0===Dt&&Rt(Hu),e}function Wt(){var e;return Dt++,(e=function(){var e,t,n,o,a,i;if(e=gt,u.substr(gt,2)===O?(t=O,gt+=2):(t=r,0===Dt&&Rt(Ju)),t!==r){for(n=[],o=gt,a=gt,Dt++,u.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===Dt&&Rt(Qu)),Dt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ht())!==r?o=a=[a,i]:(gt=o,o=r);o!==r;)n.push(o),o=gt,a=gt,Dt++,u.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===Dt&&Rt(Qu)),Dt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ht())!==r?o=a=[a,i]:(gt=o,o=r);u.substr(gt,2)===L?(o=L,gt+=2):(o=r,0===Dt&&Rt(Qu)),o!==r?e=t=[t,n,o]:(gt=e,e=r)}else gt=e,e=r;return e}())===r&&(e=zt()),Dt--,e===r&&0===Dt&&Rt(zu),e}function Yt(){var e,t,n,o,a,i;if(e=gt,u.substr(gt,2)===O?(t=O,gt+=2):(t=r,0===Dt&&Rt(Ju)),t!==r){for(n=[],o=gt,a=gt,Dt++,u.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===Dt&&Rt(Qu)),i===r&&(i=Gt()),Dt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ht())!==r?o=a=[a,i]:(gt=o,o=r);o!==r;)n.push(o),o=gt,a=gt,Dt++,u.substr(gt,2)===L?(i=L,gt+=2):(i=r,0===Dt&&Rt(Qu)),i===r&&(i=Gt()),Dt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ht())!==r?o=a=[a,i]:(gt=o,o=r);u.substr(gt,2)===L?(o=L,gt+=2):(o=r,0===Dt&&Rt(Qu)),o!==r?e=t=[t,n,o]:(gt=e,e=r)}else gt=e,e=r;return e}function zt(){var e,t,n,o,a,i;if(e=gt,u.substr(gt,2)===T?(t=T,gt+=2):(t=r,0===Dt&&Rt(qu)),t!==r){for(n=[],o=gt,a=gt,Dt++,i=Gt(),Dt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ht())!==r?o=a=[a,i]:(gt=o,o=r);o!==r;)n.push(o),o=gt,a=gt,Dt++,i=Gt(),Dt--,i===r?a=void 0:(gt=a,a=r),a!==r&&(i=Ht())!==r?o=a=[a,i]:(gt=o,o=r);e=t=[t,n]}else gt=e,e=r;return e}function Jt(){var u,e,t,n;if(Dt++,u=gt,(e=Qt())!==r){for(t=[],n=qt();n!==r;)t.push(n),n=qt();Ft=u,u=ut(e,t)}else gt=u,u=r;return Dt--,u===r&&(e=r,0===Dt&&Rt(Xu)),u}function Qt(){var e,t,n;return(e=function(){var e;return(e=function(){var e;return pu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(be)),e}())===r&&(e=function(){var e;return iu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt($e)),e}())===r&&(e=function(){var e;return lu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(xe)),e}())===r&&(e=function(){var e;return su.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(ye)),e}())===r&&(e=function(){var e;return cu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Pe)),e}())===r&&(e=function(){var e;return hu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Te)),e}()),e}())===r&&(36===u.charCodeAt(gt)?(e=f,gt++):(e=r,0===Dt&&Rt(vu)),e===r&&(95===u.charCodeAt(gt)?(e=M,gt++):(e=r,0===Dt&&Rt(Ku)),e===r&&(e=gt,92===u.charCodeAt(gt)?(t=w,gt++):(t=r,0===Dt&&Rt(Zu)),t!==r&&(n=or())!==r?e=n:(gt=e,e=r)))),e}function qt(){var e;return(e=Qt())===r&&(e=function(){var e;return(e=function(){var e;return fu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Oe)),e}())===r&&(e=function(){var e;return Au.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Re)),e}()),e}())===r&&(e=function(){var e;return Eu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Le)),e}())===r&&(e=function(){var e;return Cu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Me)),e}())===r&&(8204===u.charCodeAt(gt)?(e=N,gt++):(e=r,0===Dt&&Rt(ue)),e===r&&(8205===u.charCodeAt(gt)?(e=I,gt++):(e=r,0===Dt&&Rt(ee)))),e}function Xt(){var e,t,n,o;if(Dt++,e=gt,34===u.charCodeAt(gt)?(t=U,gt++):(t=r,0===Dt&&Rt(oe)),t!==r){for(n=[],o=Kt();o!==r;)n.push(o),o=Kt();34===u.charCodeAt(gt)?(o=U,gt++):(o=r,0===Dt&&Rt(oe)),o!==r?(Ft=e,e=tt(n)):(gt=e,e=r)}else gt=e,e=r;if(e===r)if(e=gt,39===u.charCodeAt(gt)?(t=H,gt++):(t=r,0===Dt&&Rt(ae)),t!==r){for(n=[],o=Zt();o!==r;)n.push(o),o=Zt();39===u.charCodeAt(gt)?(o=H,gt++):(o=r,0===Dt&&Rt(ae)),o!==r?(Ft=e,e=rt(n)):(gt=e,e=r)}else gt=e,e=r;return Dt--,e===r&&(t=r,0===Dt&&Rt(ne)),e}function Kt(){var e,t,n,o;return e=gt,t=gt,n=gt,Dt++,34===u.charCodeAt(gt)?(o=U,gt++):(o=r,0===Dt&&Rt(oe)),o===r&&(92===u.charCodeAt(gt)?(o=w,gt++):(o=r,0===Dt&&Rt(Zu)),o===r&&(o=Gt())),Dt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ht())!==r?t=n=[n,o]:(gt=t,t=r),(e=t!==r?u.substring(e,gt):t)===r&&(e=gt,92===u.charCodeAt(gt)?(t=w,gt++):(t=r,0===Dt&&Rt(Zu)),t!==r&&(n=rr())!==r?e=n:(gt=e,e=r),e===r&&(e=tr())),e}function Zt(){var e,t,n,o;return e=gt,t=gt,n=gt,Dt++,39===u.charCodeAt(gt)?(o=H,gt++):(o=r,0===Dt&&Rt(ae)),o===r&&(92===u.charCodeAt(gt)?(o=w,gt++):(o=r,0===Dt&&Rt(Zu)),o===r&&(o=Gt())),Dt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ht())!==r?t=n=[n,o]:(gt=t,t=r),(e=t!==r?u.substring(e,gt):t)===r&&(e=gt,92===u.charCodeAt(gt)?(t=w,gt++):(t=r,0===Dt&&Rt(Zu)),t!==r&&(n=rr())!==r?e=n:(gt=e,e=r),e===r&&(e=tr())),e}function ur(){var e,t,n,o;return e=gt,(t=er())!==r?(45===u.charCodeAt(gt)?(n=W,gt++):(n=r,0===Dt&&Rt(pe)),n!==r&&(o=er())!==r?(Ft=e,e=ot(t,o)):(gt=e,e=r)):(gt=e,e=r),e}function er(){var e,t,n,o;return e=gt,t=gt,n=gt,Dt++,93===u.charCodeAt(gt)?(o=V,gt++):(o=r,0===Dt&&Rt(le)),o===r&&(92===u.charCodeAt(gt)?(o=w,gt++):(o=r,0===Dt&&Rt(Zu)),o===r&&(o=Gt())),Dt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ht())!==r?t=n=[n,o]:(gt=t,t=r),(e=t!==r?u.substring(e,gt):t)===r&&(e=gt,92===u.charCodeAt(gt)?(t=w,gt++):(t=r,0===Dt&&Rt(Zu)),t!==r&&(n=rr())!==r?e=n:(gt=e,e=r),e===r&&(e=tr())),e}function tr(){var e,t;return e=gt,92===u.charCodeAt(gt)?(t=w,gt++):(t=r,0===Dt&&Rt(Zu)),t!==r&&Vt()!==r?(Ft=e,e=at()):(gt=e,e=r),e}function rr(){var e,t,n,o;return e=function(){var e;return(e=nr())===r&&(e=function(){var e,t,n,o;return e=gt,t=gt,n=gt,Dt++,o=function(){var e;return(e=nr())===r&&(e=ar())===r&&(120===u.charCodeAt(gt)?(e=Z,gt++):(e=r,0===Dt&&Rt(Fe)),e===r&&(117===u.charCodeAt(gt)?(e=uu,gt++):(e=r,0===Dt&&Rt(me)))),e}(),o===r&&(o=Gt()),Dt--,o===r?n=void 0:(gt=n,n=r),n!==r&&(o=Ht())!==r?t=n=[n,o]:(gt=t,t=r),e=t!==r?u.substring(e,gt):t}()),e}(),e===r&&(e=gt,48===u.charCodeAt(gt)?(t=Y,gt++):(t=r,0===Dt&&Rt(Ae)),t!==r?(n=gt,Dt++,o=ar(),Dt--,o===r?n=void 0:(gt=n,n=r),n!==r?(Ft=e,e=it()):(gt=e,e=r)):(gt=e,e=r),e===r&&(e=function(){var e,t,n,o,a,i;return e=gt,120===u.charCodeAt(gt)?(t=Z,gt++):(t=r,0===Dt&&Rt(Fe)),t!==r?(n=gt,o=gt,(a=ir())!==r&&(i=ir())!==r?o=a=[a,i]:(gt=o,o=r),(n=o!==r?u.substring(n,gt):o)!==r?(Ft=e,e=Et(n)):(gt=e,e=r)):(gt=e,e=r),e}(),e===r&&(e=or()))),e}function nr(){var e,t;return 39===u.charCodeAt(gt)?(e=H,gt++):(e=r,0===Dt&&Rt(ae)),e===r&&(34===u.charCodeAt(gt)?(e=U,gt++):(e=r,0===Dt&&Rt(oe)),e===r&&(92===u.charCodeAt(gt)?(e=w,gt++):(e=r,0===Dt&&Rt(Zu)),e===r&&(e=gt,98===u.charCodeAt(gt)?(t=z,gt++):(t=r,0===Dt&&Rt(fe)),t!==r&&(Ft=e,t=st()),(e=t)===r&&(e=gt,102===u.charCodeAt(gt)?(t=J,gt++):(t=r,0===Dt&&Rt(Ee)),t!==r&&(Ft=e,t=ct()),(e=t)===r&&(e=gt,110===u.charCodeAt(gt)?(t=Q,gt++):(t=r,0===Dt&&Rt(he)),t!==r&&(Ft=e,t=lt()),(e=t)===r&&(e=gt,114===u.charCodeAt(gt)?(t=q,gt++):(t=r,0===Dt&&Rt(Ce)),t!==r&&(Ft=e,t=pt()),(e=t)===r&&(e=gt,116===u.charCodeAt(gt)?(t=X,gt++):(t=r,0===Dt&&Rt(de)),t!==r&&(Ft=e,t=At()),(e=t)===r&&(e=gt,118===u.charCodeAt(gt)?(t=K,gt++):(t=r,0===Dt&&Rt(ge)),t!==r&&(Ft=e,t=ft()),e=t)))))))),e}function or(){var e,t,n,o,a,i,s,c;return e=gt,117===u.charCodeAt(gt)?(t=uu,gt++):(t=r,0===Dt&&Rt(me)),t!==r?(n=gt,o=gt,(a=ir())!==r&&(i=ir())!==r&&(s=ir())!==r&&(c=ir())!==r?o=a=[a,i,s,c]:(gt=o,o=r),(n=o!==r?u.substring(n,gt):o)!==r?(Ft=e,e=ht(n)):(gt=e,e=r)):(gt=e,e=r),e}function ar(){var e;return nu.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(_e)),e}function ir(){var e;return ou.test(u.charAt(gt))?(e=u.charAt(gt),gt++):(e=r,0===Dt&&Rt(Be)),e}function sr(){var e,t,n,o;return Dt++,e=gt,123===u.charCodeAt(gt)?(t=i,gt++):(t=r,0===Dt&&Rt(gu)),t!==r?(n=function(){var u,e;return u=gt,e=cr(),Ft=u,u=e=dt(e)}(),125===u.charCodeAt(gt)?(o=s,gt++):(o=r,0===Dt&&Rt(Fu)),o!==r?e=n:(gt=e,e=r)):(gt=e,e=r),Dt--,e===r&&(t=r,0===Dt&&Rt(ve)),e}function cr(){var e,t,n,o,a,c;if(e=gt,t=[],n=[],o=gt,a=gt,Dt++,au.test(u.charAt(gt))?(c=u.charAt(gt),gt++):(c=r,0===Dt&&Rt(Se)),Dt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ht())!==r?o=a=[a,c]:(gt=o,o=r),o!==r)for(;o!==r;)n.push(o),o=gt,a=gt,Dt++,au.test(u.charAt(gt))?(c=u.charAt(gt),gt++):(c=r,0===Dt&&Rt(Se)),Dt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ht())!==r?o=a=[a,c]:(gt=o,o=r);else n=r;for(n===r&&(n=gt,123===u.charCodeAt(gt)?(o=i,gt++):(o=r,0===Dt&&Rt(gu)),o!==r?(a=cr(),125===u.charCodeAt(gt)?(c=s,gt++):(c=r,0===Dt&&Rt(Fu)),c!==r?n=o=[o,a,c]:(gt=n,n=r)):(gt=n,n=r));n!==r;){if(t.push(n),n=[],o=gt,a=gt,Dt++,au.test(u.charAt(gt))?(c=u.charAt(gt),gt++):(c=r,0===Dt&&Rt(Se)),Dt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ht())!==r?o=a=[a,c]:(gt=o,o=r),o!==r)for(;o!==r;)n.push(o),o=gt,a=gt,Dt++,au.test(u.charAt(gt))?(c=u.charAt(gt),gt++):(c=r,0===Dt&&Rt(Se)),Dt--,c===r?a=void 0:(gt=a,a=r),a!==r&&(c=Ht())!==r?o=a=[a,c]:(gt=o,o=r);else n=r;n===r&&(n=gt,123===u.charCodeAt(gt)?(o=i,gt++):(o=r,0===Dt&&Rt(gu)),o!==r?(a=cr(),125===u.charCodeAt(gt)?(c=s,gt++):(c=r,0===Dt&&Rt(Fu)),c!==r?n=o=[o,a,c]:(gt=n,n=r)):(gt=n,n=r))}return u.substring(e,gt)}function lr(){var u,e;for(u=[],(e=jt())===r&&(e=Vt())===r&&(e=Wt());e!==r;)u.push(e),(e=jt())===r&&(e=Vt())===r&&(e=Wt());return u}function pr(){var e,t,n,o;return e=gt,t=lr(),59===u.charCodeAt(gt)?(n=tu,gt++):(n=r,0===Dt&&Rt(Ne)),n!==r?e=t=[t,n]:(gt=e,e=r),e===r&&(e=gt,t=function(){var u,e;for(u=[],(e=jt())===r&&(e=Yt());e!==r;)u.push(e),(e=jt())===r&&(e=Yt());return u}(),(n=zt())===r&&(n=null),(o=Vt())!==r?e=t=[t,n,o]:(gt=e,e=r),e===r&&(e=gt,t=lr(),n=function(){var e,t;return e=gt,Dt++,u.length>gt?(t=u.charAt(gt),gt++):(t=r,0===Dt&&Rt(Ou)),Dt--,t===r?e=void 0:(gt=e,e=r),e}(),n!==r?e=t=[t,n]:(gt=e,e=r))),e}var Ar=e.reservedWords||[];if((t=a())!==r&>===u.length)return t;throw t!==r&>0){for(e=1,t=1;e1&&e.delimiter&&n(e.delimiter)))},semantic_and:r,semantic_not:r,rule_ref:function(u){var t=asts$7.findRule(e,u.name);return t?n(t):void 0},literal:function(e){return""!==e.value},class:t,any:t});return n(u)}},asts_1=asts$7,opcodes={PUSH:0,PUSH_EMPTY_STRING:35,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,PLUCK:36,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,IF_LT:30,IF_GE:31,IF_LT_DYNAMIC:32,IF_GE_DYNAMIC:33,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_CHAR_CLASS:20,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29,SOURCE_MAP_PUSH:37,SOURCE_MAP_POP:38,SOURCE_MAP_LABEL_PUSH:39,SOURCE_MAP_LABEL_POP:40},opcodes_1=opcodes,visitor$9=visitor_1,asts$6=asts_1,GrammarError$2=grammarError,ALWAYS_MATCH$1=1,SOMETIMES_MATCH$1=0,NEVER_MATCH$1=-1;function inferenceMatchResult$1(e){function u(e){return e.match=SOMETIMES_MATCH$1}function t(e){return o(e.expression),e.match=ALWAYS_MATCH$1}function r(e){return e.match=o(e.expression)}function n(e,u){for(var t=e.length,r=0,n=0,a=0;a0?NEVER_MATCH$1:SOMETIMES_MATCH$1}var o=visitor$9.build({rule:function(e){var u,t=0;if(void 0===e.match){e.match=SOMETIMES_MATCH$1;do{if(u=e.match,e.match=o(e.expression),++t>6)throw new GrammarError$2("Infinity cycle detected when trying to evaluate node match result",e.location)}while(u!==e.match)}return e.match},named:r,choice:function(e){return e.match=n(e.alternatives,!0)},action:r,sequence:function(e){return e.match=n(e.elements,!1)},labeled:r,text:r,simple_and:r,simple_not:function(e){return e.match=-o(e.expression)},optional:t,zero_or_more:t,one_or_more:r,repeated:function(e){var u=o(e.expression),t=e.delimiter?o(e.delimiter):NEVER_MATCH$1,r=e.min?e.min:e.max;return"constant"!==r.type||"constant"!==e.max.type?e.match=SOMETIMES_MATCH$1:0===e.max.value||null!==e.max.value&&r.value>e.max.value?e.match=NEVER_MATCH$1:u===NEVER_MATCH$1?e.match=0===r.value?ALWAYS_MATCH$1:NEVER_MATCH$1:u===ALWAYS_MATCH$1?e.delimiter&&r.value>=2?e.match=t:e.match=ALWAYS_MATCH$1:e.delimiter&&r.value>=2?e.match=t===NEVER_MATCH$1?NEVER_MATCH$1:SOMETIMES_MATCH$1:e.match=0===r.value?ALWAYS_MATCH$1:SOMETIMES_MATCH$1},group:r,semantic_and:u,semantic_not:u,rule_ref:function(u){var t=asts$6.findRule(e,u.name);return u.match=o(t)},literal:function(e){var u=0===e.value.length?ALWAYS_MATCH$1:SOMETIMES_MATCH$1;return e.match=u},class:function(e){var u=0===e.parts.length?NEVER_MATCH$1:SOMETIMES_MATCH$1;return e.match=u},any:u});o(e)}inferenceMatchResult$1.ALWAYS_MATCH=ALWAYS_MATCH$1,inferenceMatchResult$1.SOMETIMES_MATCH=SOMETIMES_MATCH$1,inferenceMatchResult$1.NEVER_MATCH=NEVER_MATCH$1;var inferenceMatchResult_1=inferenceMatchResult$1,__spreadArray$2=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var r,n=0,o=u.length;n1?f(SOMETIMES_MATCH,[op$1.IF_ERROR],A([op$1.POP],e(u.slice(1),t)),[]):[])}(e.alternatives,u)},action:function(e,u){var t=p(u.env),r="sequence"!==e.expression.type||0===e.expression.elements.length,n=_(e.expression,{sp:u.sp+(r?1:0),env:t,action:e}),o=0|e.expression.match,a=r&&o!==NEVER_MATCH?c(!1,Object.keys(t),e):null;return r?A([op$1.PUSH_CURR_POS],n,f(o,[op$1.IF_NOT_ERROR],A([op$1.LOAD_SAVED_POS,1],E(a,1,t,u.sp+2)),[]),[op$1.NIP]):n},sequence:function(e,u){return A([op$1.PUSH_CURR_POS],function u(t,r){if(t.length>0){var n=e.elements.length-t.length+1;return A(_(t[0],{sp:r.sp,env:r.env,pluck:r.pluck,action:null}),f(0|t[0].match,[op$1.IF_NOT_ERROR],u(t.slice(1),{sp:r.sp+1,env:r.env,pluck:r.pluck,action:r.action}),A(n>1?[op$1.POP_N,n]:[op$1.POP],[op$1.POP_CURR_POS],[op$1.PUSH_FAILED])))}if(r.pluck.length>0)return A([op$1.PLUCK,e.elements.length+1,r.pluck.length],r.pluck.map((function(e){return r.sp-e})));if(r.action){var o=c(!1,Object.keys(r.env),r.action);return A([op$1.LOAD_SAVED_POS,e.elements.length],E(o,e.elements.length+1,r.env,r.sp))}return A([op$1.WRAP,e.elements.length],[op$1.NIP])}(e.elements,{sp:u.sp+1,env:u.env,pluck:[],action:u.action}))},labeled:function(e,t){var r=t.env,n=e.label,o=t.sp+1;n&&(r=p(t.env),t.env[e.label]=o),e.pick&&t.pluck.push(o);var a=_(e.expression,{sp:t.sp,env:r,action:null});return n&&e.labelLocation&&u&&"source-and-map"===u.output?A([op$1.SOURCE_MAP_LABEL_PUSH,o,i(n),l(e.labelLocation)],a,[op$1.SOURCE_MAP_LABEL_POP,o]):a},text:function(e,u){return A([op$1.PUSH_CURR_POS],_(e.expression,{sp:u.sp+1,env:p(u.env),action:null}),f(0|e.match,[op$1.IF_NOT_ERROR],A([op$1.POP],[op$1.TEXT]),[op$1.NIP]))},simple_and:function(e,u){return h(e.expression,!1,u)},simple_not:function(e,u){return h(e.expression,!0,u)},optional:function(e,u){return A(_(e.expression,{sp:u.sp,env:p(u.env),action:null}),f(-(0|e.expression.match),[op$1.IF_ERROR],A([op$1.POP],[op$1.PUSH_NULL]),[]))},zero_or_more:function(e,u){var t=_(e.expression,{sp:u.sp+1,env:p(u.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,C(t),[op$1.POP])},one_or_more:function(e,u){var t=_(e.expression,{sp:u.sp+1,env:p(u.env),action:null});return A([op$1.PUSH_EMPTY_ARRAY],t,f(0|e.expression.match,[op$1.IF_NOT_ERROR],A(C(t),[op$1.POP]),A([op$1.POP],[op$1.POP],[op$1.PUSH_FAILED])))},repeated:function(e,u){var t=e.min?e.min:e.max,r="constant"!==t.type||t.value>0,n="constant"!==e.max.type&&null!==e.max.value,o=r?2:1,a=e.min?g(e.min,u.env,u.sp,2+("function"===e.max.type?1:0)):{pre:[],post:[],sp:u.sp},i=g(e.max,u.env,a.sp,o),s=_(e.expression,{sp:i.sp+o,env:p(u.env),action:null}),c=function(e,u,t,r,n){return e?A([op$1.PUSH_CURR_POS],_(e,{sp:r.sp+n+1,env:p(r.env),action:null}),f(0|e.match,[op$1.IF_NOT_ERROR],A([op$1.POP],t,f(-u,[op$1.IF_ERROR],[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP])),[op$1.NIP])):t}(e.delimiter,0|e.expression.match,s,u,o),l=m(c,e.max),E=n?m(s,e.max):s,h=A(r?[op$1.PUSH_CURR_POS]:[],[op$1.PUSH_EMPTY_ARRAY],E,C(l),[op$1.POP]);return A(a.pre,i.pre,r?function(e,u){var t="constant"===u.type?[op$1.IF_LT,u.value]:[op$1.IF_LT_DYNAMIC,u.sp];return A(e,f(SOMETIMES_MATCH,t,[op$1.POP,op$1.POP_CURR_POS,op$1.PUSH_FAILED],[op$1.NIP]))}(h,t):h,i.post,a.post)},group:function(e,u){return _(e.expression,{sp:u.sp,env:p(u.env),action:null})},semantic_and:function(e,u){return d(e,!1,u)},semantic_not:function(e,u){return d(e,!0,u)},rule_ref:function(u){return[op$1.RULE,asts$5.indexOfRule(e,u.name)]},literal:function(e){if(e.value.length>0){var u=0|e.match,t=u===SOMETIMES_MATCH||u===ALWAYS_MATCH&&!e.ignoreCase?i(e.ignoreCase?e.value.toLowerCase():e.value):null,r=u!==ALWAYS_MATCH?s({type:"literal",value:e.value,ignoreCase:e.ignoreCase}):null;return f(u,e.ignoreCase?[op$1.MATCH_STRING_IC,t]:[op$1.MATCH_STRING,t],e.ignoreCase?[op$1.ACCEPT_N,e.value.length]:[op$1.ACCEPT_STRING,t],[op$1.FAIL,r])}return[op$1.PUSH_EMPTY_STRING]},class:function(e){var u=0|e.match,t=u===SOMETIMES_MATCH?function(e){var u={value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase},t=JSON.stringify(u),n=r.findIndex((function(e){return JSON.stringify(e)===t}));return-1===n?r.push(u)-1:n}(e):null,n=u!==ALWAYS_MATCH?s({type:"class",value:e.parts,inverted:e.inverted,ignoreCase:e.ignoreCase}):null;return f(u,[op$1.MATCH_CHAR_CLASS,t],[op$1.ACCEPT_N,1],[op$1.FAIL,n])},any:function(e){var u=0|e.match,t=u!==ALWAYS_MATCH?s({type:"any"}):null;return f(u,[op$1.MATCH_ANY],[op$1.ACCEPT_N,1],[op$1.FAIL,t])}},u&&"source-and-map"===u.output&&Object.entries(F).forEach((function(e){var u=e[0],t=e[1];F[u]=function(e){for(var u=[],r=1;r>>=VLQ_BASE_SHIFT,r>0&&(u|=VLQ_CONTINUATION_BIT),t+=base64$2.encode(u)}while(r>0);return t};var util$3={};function getArg(e,u,t){if(u in e)return e[u];if(3===arguments.length)return t;throw new Error('"'+u+'" is a required argument.')}util$3.getArg=getArg;const supportsNullProto=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;const u=e.length;if(u<9)return!1;if(95!==e.charCodeAt(u-1)||95!==e.charCodeAt(u-2)||111!==e.charCodeAt(u-3)||116!==e.charCodeAt(u-4)||111!==e.charCodeAt(u-5)||114!==e.charCodeAt(u-6)||112!==e.charCodeAt(u-7)||95!==e.charCodeAt(u-8)||95!==e.charCodeAt(u-9))return!1;for(let t=u-10;t>=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function strcmp(e,u){return e===u?0:null===e?1:null===u?-1:e>u?1:-1}function compareByGeneratedPositionsInflated(e,u){let t=e.generatedLine-u.generatedLine;return 0!==t?t:(t=e.generatedColumn-u.generatedColumn,0!==t?t:(t=strcmp(e.source,u.source),0!==t?t:(t=e.originalLine-u.originalLine,0!==t?t:(t=e.originalColumn-u.originalColumn,0!==t?t:strcmp(e.name,u.name)))))}util$3.toSetString=supportsNullProto?identity:toSetString,util$3.fromSetString=supportsNullProto?identity:fromSetString,util$3.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated;const PROTOCOL="http:",PROTOCOL_AND_HOST=`${PROTOCOL}//host`;function createSafeHandler(e){return u=>{const t=getURLType(u),r=buildSafeBase(u),n=new URL(u,r);e(n);const o=n.toString();return"absolute"===t?o:"scheme-relative"===t?o.slice(PROTOCOL.length):"path-absolute"===t?o.slice(PROTOCOL_AND_HOST.length):computeRelativeURL(r,o)}}function withBase(e,u){return new URL(e,u).toString()}function buildUniqueSegment(e,u){let t=0;for(;;){const r=e+t++;if(-1===u.indexOf(r))return r}}function buildSafeBase(e){const u=e.split("..").length-1,t=buildUniqueSegment("p",e);let r=`${PROTOCOL_AND_HOST}/`;for(let e=0;e0&&!r[r.length-1]&&r.pop();t.length>0&&r.length>0&&t[0]===r[0];)t.shift(),r.shift();return r.map((()=>"..")).concat(t).join("/")+u.search+u.hash}const ensureDirectory=createSafeHandler((e=>{e.pathname=e.pathname.replace(/\/?$/,"/")})),normalize=createSafeHandler((e=>{}));function join(e,u){const t=getURLType(u),r=getURLType(e);if(e=ensureDirectory(e),"absolute"===t)return withBase(u,void 0);if("absolute"===r)return withBase(u,e);if("scheme-relative"===t)return normalize(u);if("scheme-relative"===r)return withBase(u,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL.length);if("path-absolute"===t)return normalize(u);if("path-absolute"===r)return withBase(u,withBase(e,PROTOCOL_AND_HOST)).slice(PROTOCOL_AND_HOST.length);const n=buildSafeBase(u+e);return computeRelativeURL(n,withBase(u,withBase(e,n)))}function relative(e,u){const t=relativeIfPossible(e,u);return"string"==typeof t?t:normalize(u)}function relativeIfPossible(e,u){if(getURLType(e)!==getURLType(u))return null;const t=buildSafeBase(e+u),r=new URL(e,t),n=new URL(u,t);try{new URL("",n.toString())}catch(e){return null}return n.protocol!==r.protocol||n.user!==r.user||n.password!==r.password||n.hostname!==r.hostname||n.port!==r.port?null:computeRelativeURL(r,n)}util$3.normalize=normalize,util$3.join=join,util$3.relative=relative;var arraySet={};let ArraySet$1=class e{constructor(){this._array=[],this._set=new Map}static fromArray(u,t){const r=new e;for(let e=0,n=u.length;e=0)return u;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&et||r==t&&o>=n||util$2.compareByGeneratedPositionsInflated(e,u)<=0}let MappingList$1=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,u){this._array.forEach(e,u)}add(e){generatedPositionAfter(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(util$2.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}};mappingList.MappingList=MappingList$1;const base64VLQ=base64Vlq,util$1=util$3,ArraySet=arraySet.ArraySet,MappingList=mappingList.MappingList;let SourceMapGenerator$1=class e{constructor(e){e||(e={}),this._file=util$1.getArg(e,"file",null),this._sourceRoot=util$1.getArg(e,"sourceRoot",null),this._skipValidation=util$1.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}static fromSourceMap(u){const t=u.sourceRoot,r=new e({file:u.file,sourceRoot:t});return u.eachMapping((function(e){const u={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(u.source=e.source,null!=t&&(u.source=util$1.relative(t,u.source)),u.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(u.name=e.name)),r.addMapping(u)})),u.sources.forEach((function(e){let n=e;null!=t&&(n=util$1.relative(t,e)),r._sources.has(n)||r._sources.add(n);const o=u.sourceContentFor(e);null!=o&&r.setSourceContent(e,o)})),r}addMapping(e){const u=util$1.getArg(e,"generated"),t=util$1.getArg(e,"original",null);let r=util$1.getArg(e,"source",null),n=util$1.getArg(e,"name",null);this._skipValidation||this._validateMapping(u,t,r,n),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=n&&(n=String(n),this._names.has(n)||this._names.add(n)),this._mappings.add({generatedLine:u.line,generatedColumn:u.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:n})}setSourceContent(e,u){let t=e;null!=this._sourceRoot&&(t=util$1.relative(this._sourceRoot,t)),null!=u?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$1.toSetString(t)]=u):this._sourcesContents&&(delete this._sourcesContents[util$1.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,u,t){let r=u;if(null==u){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const n=this._sourceRoot;null!=n&&(r=util$1.relative(n,r));const o=this._mappings.toArray().length>0?new ArraySet:this._sources,a=new ArraySet;this._mappings.unsortedForEach((function(u){if(u.source===r&&null!=u.originalLine){const r=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});null!=r.source&&(u.source=r.source,null!=t&&(u.source=util$1.join(t,u.source)),null!=n&&(u.source=util$1.relative(n,u.source)),u.originalLine=r.line,u.originalColumn=r.column,null!=r.name&&(u.name=r.name))}const i=u.source;null==i||o.has(i)||o.add(i);const s=u.name;null==s||a.has(s)||a.add(s)}),this),this._sources=o,this._names=a,e.sources.forEach((function(u){const r=e.sourceContentFor(u);null!=r&&(null!=t&&(u=util$1.join(t,u)),null!=n&&(u=util$1.relative(n,u)),this.setSourceContent(u,r))}),this)}_validateMapping(e,u,t,r){if(u&&"number"!=typeof u.line&&"number"!=typeof u.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!u&&!t&&!r);else if(!(e&&"line"in e&&"column"in e&&u&&"line"in u&&"column"in u&&e.line>0&&e.column>=0&&u.line>0&&u.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:u,name:r}))}_serializeMappings(){let e,u,t,r,n=0,o=1,a=0,i=0,s=0,c=0,l="";const p=this._mappings.toArray();for(let A=0,f=p.length;A0){if(!util$1.compareByGeneratedPositionsInflated(u,p[A-1]))continue;e+=","}e+=base64VLQ.encode(u.generatedColumn-n),n=u.generatedColumn,null!=u.source&&(r=this._sources.indexOf(u.source),e+=base64VLQ.encode(r-c),c=r,e+=base64VLQ.encode(u.originalLine-1-i),i=u.originalLine-1,e+=base64VLQ.encode(u.originalColumn-a),a=u.originalColumn,null!=u.name&&(t=this._names.indexOf(u.name),e+=base64VLQ.encode(t-s),s=t)),l+=e}return l}_generateSourcesContent(e,u){return e.map((function(e){if(!this._sourcesContents)return null;null!=u&&(e=util$1.relative(u,e));const t=util$1.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null}),this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}};SourceMapGenerator$1.prototype._version=3,sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceNode={};const SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util=util$3,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";let SourceNode$2=class e{constructor(e,u,t,r,n){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==u?null:u,this.source=null==t?null:t,this.name=null==n?null:n,this[isSourceNode]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(u,t,r){const n=new e,o=u.split(REGEX_NEWLINE);let a=0;const i=function(){return e()+(e()||"");function e(){return a=0;u--)this.prepend(e[u]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let u;for(let t=0,r=this.children.length;t0){for(u=[],t=0;t' at an index ").concat(e,".\nBytecode: ").concat(this.bytecode));return this.varName+e},e.prototype.sourceNode=function(e,u,t){var r=GrammarLocation$2.offsetStart(e);return new SourceNode$1(r.line,r.column?r.column-1:null,String(e.source),u,t)},e.prototype.push=function(e){++this.sp>this.maxSp&&(this.maxSp=this.sp);var u=this.labels[this.sp],t=[this.name(this.sp)," = ",e,";"];if(u){if(this.sourceMapStack.length){var r=this.sourceNode(u.location,t.splice(0,2),u.label),n=this.sourceMapPopInternal(),o=n.parts,a=n.location,i=a.start.offsetu.end.offset&&(t[2]={start:u.end,end:t[2].end,source:t[2].source})}this.sourceMapStack.push([e,e.length,u])},e.prototype.sourceMapPopInternal=function(){var e=this.sourceMapStack.pop(),u=e[0],t=e[1],r=e[2],n=u.splice(t).map((function(e){return e instanceof SourceNode$1?e:e+"\n"}));if(n.length){var o=GrammarLocation$2.offsetStart(r);u.push(new SourceNode$1(o.line,o.column-1,String(r.source),n))}return{parts:u,location:r}},e.prototype.sourceMapPop=function(e){var u=this.sourceMapPopInternal().location;if(this.sourceMapStack.length&&u.end.offset>2],n+=u[(3&e[o])<<4|e[o+1]>>4],n+=u[(15&e[o+1])<<2|e[o+2]>>6],n+=u[63&e[o+2]];return 1===t?(n+=u[e[r]>>2],n+=u[(3&e[r])<<4],n+="=="):2===t&&(n+=u[e[r]>>2],n+=u[(3&e[r])<<4|e[r+1]>>4],n+=u[(15&e[r+1])<<2],n+="="),n}utils.hex=hex,utils.stringEscape=stringEscape$1,utils.regexpClassEscape=regexpClassEscape$1,utils.base64=base64$1;var __spreadArray$1=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var r,n=0,o=u.length;n0&&(t.forEach((function(e){o.push("var "+e+' = require("'+stringEscape(u.dependencies[e])+'");')})),o.push("")),o.push(e,"","module.exports = "+n()+";"),o},es:function(){var t=Object.keys(u.dependencies),n=r();return n.push(""),t.length>0&&(t.forEach((function(e){n.push("import "+e+' from "'+stringEscape(u.dependencies[e])+'";')})),n.push("")),n.push(e,"","export {"," peg$SyntaxError as SyntaxError,",u.trace?" peg$DefaultTracer as DefaultTracer,":""," peg$parse as parse","};"),n},amd:function(){var o=Object.keys(u.dependencies),a="["+o.map((function(e){return u.dependencies[e]})).map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",i=o.join(", ");return __spreadArray$1(__spreadArray$1([],r(),!0),["define("+a+", function("+i+") {",' "use strict";',"",e,"",t("return "+n()+";"),"});"],!1)},globals:function(){return __spreadArray$1(__spreadArray$1([],r(),!0),["(function(root) {",' "use strict";',"",e,"",t("root."+u.exportVar+" = "+n()+";"),"})(this);"],!1)},umd:function(){var o=Object.keys(u.dependencies),a=o.map((function(e){return u.dependencies[e]})),i="["+a.map((function(e){return'"'+stringEscape(e)+'"'})).join(", ")+"]",s=a.map((function(e){return'require("'+stringEscape(e)+'")'})).join(", "),c=o.join(", "),l=r();return l.push("(function(root, factory) {",' if (typeof define === "function" && define.amd) {'," define("+i+", factory);",' } else if (typeof module === "object" && module.exports) {'," module.exports = factory("+s+");"),null!==u.exportVar&&l.push(" } else {"," root."+u.exportVar+" = factory();"),l.push(" }","})(this, function("+c+") {",' "use strict";',"",e,"",t("return "+n()+";"),"});"),l}}[u.format]();return new SourceNode(null,null,u.grammarSource,o.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}(function(){var c=[];e.topLevelInitializer&&(c.push(s(e.topLevelInitializer)),c.push("")),c.push("function peg$subclass(child, parent) {"," function C() { this.constructor = child; }"," C.prototype = parent.prototype;"," child.prototype = new C();","}","","function peg$SyntaxError(message, expected, found, location) {"," var self = Error.call(this, message);"," // istanbul ignore next Check is a necessary evil to support older environments"," if (Object.setPrototypeOf) {"," Object.setPrototypeOf(self, peg$SyntaxError.prototype);"," }"," self.expected = expected;"," self.found = found;"," self.location = location;",' self.name = "SyntaxError";'," return self;","}","","peg$subclass(peg$SyntaxError, Error);","","function peg$padEnd(str, targetLength, padString) {",' padString = padString || " ";'," if (str.length > targetLength) { return str; }"," targetLength -= str.length;"," padString += padString.repeat(targetLength);"," return str + padString.slice(0, targetLength);","}","","peg$SyntaxError.prototype.format = function(sources) {",' var str = "Error: " + this.message;'," if (this.location) {"," var src = null;"," var k;"," for (k = 0; k < sources.length; k++) {"," if (sources[k].source === this.location.source) {"," src = sources[k].text.split(/\\r\\n|\\n|\\r/g);"," break;"," }"," }"," var s = this.location.start;",' var offset_s = (this.location.source && (typeof this.location.source.offset === "function"))'," ? this.location.source.offset(s)"," : s;",' var loc = this.location.source + ":" + offset_s.line + ":" + offset_s.column;'," if (src) {"," var e = this.location.end;"," var filler = peg$padEnd(\"\", offset_s.line.toString().length, ' ');"," var line = src[s.line - 1];"," var last = s.line === e.line ? e.column : line.length + 1;"," var hatLen = (last - s.column) || 1;",' str += "\\n --\x3e " + loc + "\\n"',' + filler + " |\\n"',' + offset_s.line + " | " + line + "\\n"',' + filler + " | " + peg$padEnd("", s.column - 1, \' \')',' + peg$padEnd("", hatLen, "^");'," } else {",' str += "\\n at " + loc;'," }"," }"," return str;","};","","peg$SyntaxError.buildMessage = function(expected, found) {"," var DESCRIBE_EXPECTATION_FNS = {"," literal: function(expectation) {",' return "\\"" + literalEscape(expectation.text) + "\\"";'," },",""," class: function(expectation) {"," var escapedParts = expectation.parts.map(function(part) {"," return Array.isArray(part)",' ? classEscape(part[0]) + "-" + classEscape(part[1])'," : classEscape(part);"," });","",' return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";'," },",""," any: function() {",' return "any character";'," },",""," end: function() {",' return "end of input";'," },",""," other: function(expectation) {"," return expectation.description;"," }"," };",""," function hex(ch) {"," return ch.charCodeAt(0).toString(16).toUpperCase();"," }",""," function literalEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/"/g, "\\\\\\"")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function classEscape(s) {"," return s",' .replace(/\\\\/g, "\\\\\\\\")',' .replace(/\\]/g, "\\\\]")',' .replace(/\\^/g, "\\\\^")',' .replace(/-/g, "\\\\-")',' .replace(/\\0/g, "\\\\0")',' .replace(/\\t/g, "\\\\t")',' .replace(/\\n/g, "\\\\n")',' .replace(/\\r/g, "\\\\r")',' .replace(/[\\x00-\\x0F]/g, function(ch) { return "\\\\x0" + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return "\\\\x" + hex(ch); });'," }",""," function describeExpectation(expectation) {"," return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);"," }",""," function describeExpected(expected) {"," var descriptions = expected.map(describeExpectation);"," var i, j;",""," descriptions.sort();",""," if (descriptions.length > 0) {"," for (i = 1, j = 1; i < descriptions.length; i++) {"," if (descriptions[i - 1] !== descriptions[i]) {"," descriptions[j] = descriptions[i];"," j++;"," }"," }"," descriptions.length = j;"," }",""," switch (descriptions.length) {"," case 1:"," return descriptions[0];",""," case 2:",' return descriptions[0] + " or " + descriptions[1];',""," default:",' return descriptions.slice(0, -1).join(", ")',' + ", or "'," + descriptions[descriptions.length - 1];"," }"," }",""," function describeFound(found) {",' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";'," }","",' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";',"};",""),u.trace&&c.push("function peg$DefaultTracer() {"," this.indentLevel = 0;","}","","peg$DefaultTracer.prototype.trace = function(event) {"," var that = this;",""," function log(event) {"," function repeat(string, n) {",' var result = "", i;',""," for (i = 0; i < n; i++) {"," result += string;"," }",""," return result;"," }",""," function pad(string, length) {",' return string + repeat(" ", length - string.length);'," }","",' if (typeof console === "object") {'," console.log(",' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule'," );"," }"," }",""," switch (event.type) {",' case "rule.enter":'," log(event);"," this.indentLevel++;"," break;","",' case "rule.match":'," this.indentLevel--;"," log(event);"," break;","",' case "rule.fail":'," this.indentLevel--;"," log(event);"," break;",""," default:",' throw new Error("Invalid event type: " + event.type + ".");'," }","};","");var l="{ "+u.allowedStartRules.map((function(e){return e+": "+i(e)})).join(", ")+" }",p=i(u.allowedStartRules[0]);return c.push("function peg$parse(input, options) {"," options = options !== undefined ? options : {};",""," var peg$FAILED = {};"," var peg$source = options.grammarSource;",""," var peg$startRuleFunctions = "+l+";"," var peg$startRuleFunction = "+p+";","",new SourceNode(null,null,u.grammarSource,[e.literals.map((function(e,u){return" var "+r(u)+' = "'+stringEscape(e)+'";'})).concat("",e.classes.map((function(e,u){return" var "+n(u)+" = /^["+((t=e).inverted?"^":"")+t.value.map((function(e){return Array.isArray(e)?regexpClassEscape(e[0])+"-"+regexpClassEscape(e[1]):regexpClassEscape(e)})).join("")+"]/"+(t.ignoreCase?"i":"")+";";var t}))).concat("",e.expectations.map((function(e,u){return" var "+o(u)+" = "+function(e){switch(e.type){case"rule":return'peg$otherExpectation("'+stringEscape(e.value)+'")';case"literal":return'peg$literalExpectation("'+stringEscape(e.value)+'", '+e.ignoreCase+")";case"class":return"peg$classExpectation(["+e.value.map((function(e){return Array.isArray(e)?'["'+stringEscape(e[0])+'", "'+stringEscape(e[1])+'"]':'"'+stringEscape(e)+'"'})).join(", ")+"], "+e.inverted+", "+e.ignoreCase+")";case"any":return"peg$anyExpectation()";default:throw new Error("Unknown expectation type ("+JSON.stringify(e)+")")}}(e)+";"}))).concat("").join("\n"),e.functions.map((function(e,u){return wrapInSourceNode("\n var ".concat(a(u)," = function(").concat(e.params.join(", "),") {"),e.body,e.location,"};")}))]),""," var peg$currPos = 0;"," var peg$savedPos = 0;"," var peg$posDetailsCache = [{ line: 1, column: 1 }];"," var peg$maxFailPos = 0;"," var peg$maxFailExpected = [];"," var peg$silentFails = 0;",""),u.cache&&c.push(" var peg$resultsCache = {};",""),u.trace&&c.push(' var peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer();',""),c.push(" var peg$result;","",' if ("startRule" in options) {'," if (!(options.startRule in peg$startRuleFunctions)) {",' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");'," }",""," peg$startRuleFunction = peg$startRuleFunctions[options.startRule];"," }",""," function text() {"," return input.substring(peg$savedPos, peg$currPos);"," }",""," function offset() {"," return peg$savedPos;"," }",""," function range() {"," return {"," source: peg$source,"," start: peg$savedPos,"," end: peg$currPos"," };"," }",""," function location() {"," return peg$computeLocation(peg$savedPos, peg$currPos);"," }",""," function expected(description, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildStructuredError("," [peg$otherExpectation(description)],"," input.substring(peg$savedPos, peg$currPos),"," location"," );"," }",""," function error(message, location) {"," location = location !== undefined"," ? location"," : peg$computeLocation(peg$savedPos, peg$currPos);",""," throw peg$buildSimpleError(message, location);"," }",""," function peg$literalExpectation(text, ignoreCase) {",' return { type: "literal", text: text, ignoreCase: ignoreCase };'," }",""," function peg$classExpectation(parts, inverted, ignoreCase) {",' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };'," }",""," function peg$anyExpectation() {",' return { type: "any" };'," }",""," function peg$endExpectation() {",' return { type: "end" };'," }",""," function peg$otherExpectation(description) {",' return { type: "other", description: description };'," }",""," function peg$computePosDetails(pos) {"," var details = peg$posDetailsCache[pos];"," var p;",""," if (details) {"," return details;"," } else {"," p = pos - 1;"," while (!peg$posDetailsCache[p]) {"," p--;"," }",""," details = peg$posDetailsCache[p];"," details = {"," line: details.line,"," column: details.column"," };",""," while (p < pos) {"," if (input.charCodeAt(p) === 10) {"," details.line++;"," details.column = 1;"," } else {"," details.column++;"," }",""," p++;"," }",""," peg$posDetailsCache[pos] = details;",""," return details;"," }"," }",""," function peg$computeLocation(startPos, endPos, offset) {"," var startPosDetails = peg$computePosDetails(startPos);"," var endPosDetails = peg$computePosDetails(endPos);",""," var res = {"," source: peg$source,"," start: {"," offset: startPos,"," line: startPosDetails.line,"," column: startPosDetails.column"," },"," end: {"," offset: endPos,"," line: endPosDetails.line,"," column: endPosDetails.column"," }"," };",' if (offset && peg$source && (typeof peg$source.offset === "function")) {'," res.start = peg$source.offset(res.start);"," res.end = peg$source.offset(res.end);"," }"," return res;"," }",""," function peg$fail(expected) {"," if (peg$currPos < peg$maxFailPos) { return; }",""," if (peg$currPos > peg$maxFailPos) {"," peg$maxFailPos = peg$currPos;"," peg$maxFailExpected = [];"," }",""," peg$maxFailExpected.push(expected);"," }",""," function peg$buildSimpleError(message, location) {"," return new peg$SyntaxError(message, null, null, location);"," }",""," function peg$buildStructuredError(expected, found, location) {"," return new peg$SyntaxError("," peg$SyntaxError.buildMessage(expected, found),"," expected,"," found,"," location"," );"," }",""),e.rules.forEach((function(s){c.push.apply(c,t(function(s){var c=[],l=new Stack(s.name,"s","var",s.bytecode),p=function u(c){var p,A=0,f=c.length,E=[];function h(e,r){var n,o,a=r+3,i=c[A+a-2],s=c[A+a-1];l.checkedIf(A,(function(){A+=a,n=u(c.slice(A,A+i)),A+=i}),s>0?function(){o=u(c.slice(A,A+s)),A+=s}:null),E.push("if ("+e+") {"),E.push.apply(E,t(n)),s>0&&(E.push("} else {"),E.push.apply(E,t(o))),E.push("}")}function d(e){var r,n=c[A+2-1];l.checkedLoop(A,(function(){A+=2,r=u(c.slice(A,A+n)),A+=n})),E.push("while ("+e+") {"),E.push.apply(E,t(r)),E.push("}")}function C(e){var u=c[A+e-1];return a(c[A+1])+"("+c.slice(A+e,A+e+u).map((function(e){return l.index(e)})).join(", ")+")"}for(;A= "+c[A+1],1);break;case op.IF_LT_DYNAMIC:h(l.top()+".length < "+l.index(c[A+1])+"|0",1);break;case op.IF_GE_DYNAMIC:h(l.top()+".length >= "+l.index(c[A+1])+"|0",1);break;case op.WHILE_NOT_ERROR:d(l.top()+" !== peg$FAILED");break;case op.MATCH_ANY:h("input.length > peg$currPos",0);break;case op.MATCH_STRING:h(e.literals[c[A+1]].length>1?"input.substr(peg$currPos, "+e.literals[c[A+1]].length+") === "+r(c[A+1]):"input.charCodeAt(peg$currPos) === "+e.literals[c[A+1]].charCodeAt(0),1);break;case op.MATCH_STRING_IC:h("input.substr(peg$currPos, "+e.literals[c[A+1]].length+").toLowerCase() === "+r(c[A+1]),1);break;case op.MATCH_CHAR_CLASS:h(n(c[A+1])+".test(input.charAt(peg$currPos))",1);break;case op.ACCEPT_N:E.push(l.push(c[A+1]>1?"input.substr(peg$currPos, "+c[A+1]+")":"input.charAt(peg$currPos)")),E.push(c[A+1]>1?"peg$currPos += "+c[A+1]+";":"peg$currPos++;"),A+=2;break;case op.ACCEPT_STRING:E.push(l.push(r(c[A+1]))),E.push(e.literals[c[A+1]].length>1?"peg$currPos += "+e.literals[c[A+1]].length+";":"peg$currPos++;"),A+=2;break;case op.FAIL:E.push(l.push("peg$FAILED")),E.push("if (peg$silentFails === 0) { peg$fail("+o(c[A+1])+"); }"),A+=2;break;case op.LOAD_SAVED_POS:E.push("peg$savedPos = "+l.index(c[A+1])+";"),A+=2;break;case op.UPDATE_SAVED_POS:E.push("peg$savedPos = peg$currPos;"),A++;break;case op.CALL:p=C(4),l.pop(c[A+2]),E.push(l.push(p)),A+=4+c[A+3];break;case op.RULE:E.push(l.push(i(e.rules[c[A+1]].name)+"()")),A+=2;break;case op.SILENT_FAILS_ON:E.push("peg$silentFails++;"),A++;break;case op.SILENT_FAILS_OFF:E.push("peg$silentFails--;"),A++;break;case op.SOURCE_MAP_PUSH:l.sourceMapPush(E,e.locations[c[A+1]]),A+=2;break;case op.SOURCE_MAP_POP:l.sourceMapPop(),A++;break;case op.SOURCE_MAP_LABEL_PUSH:l.labels[c[A+1]]={label:e.literals[c[A+2]],location:e.locations[c[A+3]]},A+=4;break;case op.SOURCE_MAP_LABEL_POP:delete l.labels[c[A+1]],A+=2;break;default:throw new Error("Invalid opcode: "+c[A]+".",{rule:s.name,bytecode:c})}return E}(s.bytecode);return c.push(wrapInSourceNode("function ",i(s.name),s.nameLocation,"() {\n",s.name)),u.trace&&c.push(" var startPos = peg$currPos;"),c.push(t(l.defines())),c.push.apply(c,t(function(t,r){var n=[];return n.push(""),u.trace&&n.push("peg$tracer.trace({",' type: "rule.enter",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)","});",""),u.cache&&(n.push("var key = peg$currPos * "+e.rules.length+" + "+r+";","var cached = peg$resultsCache[key];","","if (cached) {"," peg$currPos = cached.nextPos;",""),u.trace&&n.push("if (cached.result !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+t+","," result: cached.result,"," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+t+","," location: peg$computeLocation(startPos, startPos, true)"," });","}",""),n.push(" return cached.result;","}","")),n}('"'+stringEscape(s.name)+'"',asts$4.indexOfRule(e,s.name)))),c.push.apply(c,t(p)),c.push.apply(c,t(function(e,t){var r=[];return u.cache&&r.push("","peg$resultsCache[key] = { nextPos: peg$currPos, result: "+t+" };"),u.trace&&r.push("","if ("+t+" !== peg$FAILED) {"," peg$tracer.trace({",' type: "rule.match",'," rule: "+e+","," result: "+t+","," location: peg$computeLocation(startPos, peg$currPos, true)"," });","} else {"," peg$tracer.trace({",' type: "rule.fail",'," rule: "+e+","," location: peg$computeLocation(startPos, startPos, true)"," });","}"),r.push("","return "+t+";"),r}('"'+stringEscape(s.name)+'"',l.result()))),c.push("}"),c}(s))),c.push("")})),e.initializer&&(c.push(s(e.initializer)),c.push("")),c.push(" peg$result = peg$startRuleFunction();",""," if (peg$result !== peg$FAILED && peg$currPos === input.length) {"," return peg$result;"," } else {"," if (peg$result !== peg$FAILED && peg$currPos < input.length) {"," peg$fail(peg$endExpectation());"," }",""," throw peg$buildStructuredError("," peg$maxFailExpected,"," peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,"," peg$maxFailPos < input.length"," ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)"," : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)"," );"," }","}"),new SourceNode(null,null,u.grammarSource,c.map((function(e){return e instanceof SourceNode?e:e+"\n"})))}())}var generateJs=generateJS$1,asts$3=asts_1,visitor$7=visitor_1;function removeProxyRules$1(e,u,t){var r=[];e.rules.forEach((function(n,o){var a;"rule"===(a=n).type&&"rule_ref"===a.expression.type&&(function(e,u,r){visitor$7.build({rule_ref:function(n){n.name===u&&(n.name=r,t.info('Proxy rule "'.concat(u,'" replaced by the rule "').concat(r,'"'),n.location,[{message:"This rule will be used",location:asts$3.findRule(e,r).nameLocation}]))}})(e)}(e,n.name,n.expression.name),-1===u.allowedStartRules.indexOf(n.name)&&r.push(o))})),r.reverse(),r.forEach((function(u){e.rules.splice(u,1)}))}var removeProxyRules_1=removeProxyRules$1,visitor$6=visitor_1;function reportDuplicateLabels$1(e,u,t){function r(e){var u={};return Object.keys(e).forEach((function(t){u[t]=e[t]})),u}function n(e,u){o(e.expression,r(u))}var o=visitor$6.build({rule:function(e){o(e.expression,{})},choice:function(e,u){e.alternatives.forEach((function(e){o(e,r(u))}))},action:n,labeled:function(e,u){var r=e.label;r&&Object.prototype.hasOwnProperty.call(u,r)&&t.error('Label "'.concat(e.label,'" is already defined'),e.labelLocation,[{message:"Original label location",location:u[r]}]),o(e.expression,u),u[e.label]=e.labelLocation},text:n,simple_and:n,simple_not:n,optional:n,zero_or_more:n,one_or_more:n,repeated:function(e,u){e.delimiter&&o(e.delimiter,r(u)),o(e.expression,r(u))},group:n});o(e)}var reportDuplicateLabels_1=reportDuplicateLabels$1,visitor$5=visitor_1;function reportDuplicateRules$1(e,u,t){var r={};visitor$5.build({rule:function(e){Object.prototype.hasOwnProperty.call(r,e.name)?t.error('Rule "'.concat(e.name,'" is already defined'),e.nameLocation,[{message:"Original rule location",location:r[e.name]}]):r[e.name]=e.nameLocation}})(e)}var reportDuplicateRules_1=reportDuplicateRules$1,asts$2=asts_1,visitor$4=visitor_1;function reportInfiniteRecursion$1(e,u,t){var r=[],n=[],o=visitor$4.build({rule:function(e){r.push(e.name),o(e.expression),r.pop()},sequence:function(u){u.elements.every((function(u){return o(u),!asts$2.alwaysConsumesOnSuccess(e,u)}))},repeated:function(u){o(u.expression),u.delimiter&&!asts$2.alwaysConsumesOnSuccess(e,u.expression)&&o(u.delimiter)},rule_ref:function(u){n.push(u);var a=asts$2.findRule(e,u.name);if(-1!==r.indexOf(u.name))return r.push(u.name),void t.error("Possible infinite loop when parsing (left recursion: "+r.join(" -> ")+")",a.nameLocation,n.map((function(e,u,t){return{message:u+1!==t.length?"Step ".concat(u+1,': call of the rule "').concat(e.name,'" without input consumption'):"Step ".concat(u+1,": call itself without input consumption - left recursion"),location:e.location}})));a&&o(a),n.pop()}});o(e)}var reportInfiniteRecursion_1=reportInfiniteRecursion$1,asts$1=asts_1,visitor$3=visitor_1;function reportInfiniteRepetition$1(e,u,t){visitor$3.build({zero_or_more:function(u){asts$1.alwaysConsumesOnSuccess(e,u.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",u.location)},one_or_more:function(u){asts$1.alwaysConsumesOnSuccess(e,u.expression)||t.error("Possible infinite loop when parsing (repetition used with an expression that may not consume any input)",u.location)},repeated:function(u){if(!(asts$1.alwaysConsumesOnSuccess(e,u.expression)||u.delimiter&&asts$1.alwaysConsumesOnSuccess(e,u.delimiter)))if(null===u.max.value)t.error("Possible infinite loop when parsing (unbounded range repetition used with an expression that may not consume any input)",u.location);else{var r=u.min?u.min:u.max;t.warning("constant"===r.type&&"constant"===u.max.type?"An expression may not consume any input and may always match ".concat(u.max.value," times"):"An expression may not consume any input and may always match with a maximum repetition count",u.location)}}})(e)}var reportInfiniteRepetition_1=reportInfiniteRepetition$1,asts=asts_1,visitor$2=visitor_1;function reportUndefinedRules$1(e,u,t){visitor$2.build({rule_ref:function(u){asts.findRule(e,u.name)||t.error('Rule "'.concat(u.name,'" is not defined'),u.location)}})(e)}var reportUndefinedRules_1=reportUndefinedRules$1,visitor$1=visitor_1;function reportIncorrectPlucking$1(e,u,t){var r=visitor$1.build({action:function(e){r(e.expression,e)},labeled:function(e,u){e.pick&&u&&t.error('"@" cannot be used with an action block',e.labelLocation,[{message:"Action block location",location:u.codeLocation}]),r(e.expression)}});r(e)}var reportIncorrectPlucking_1=reportIncorrectPlucking$1,__spreadArray=commonjsGlobal&&commonjsGlobal.__spreadArray||function(e,u,t){if(t||2===arguments.length)for(var r,n=0,o=u.length;n0:e&&"function"==typeof e.offset}var compiler$1={visitor:visitor,passes:{check:[reportUndefinedRules,reportDuplicateRules,reportDuplicateLabels,reportInfiniteRecursion,reportInfiniteRepetition,reportIncorrectPlucking],transform:[removeProxyRules,inferenceMatchResult],generate:[generateBytecode,generateJS]},compile:function(ast,passes,options){if(options=void 0!==options?options:{},options=processOptions(options,{allowedStartRules:[ast.rules[0].name],cache:!1,dependencies:{},exportVar:null,format:"bare",output:"parser",trace:!1}),!Array.isArray(options.allowedStartRules))throw new Error("allowedStartRules must be an array");if(0===options.allowedStartRules.length)throw new Error("Must have at least one start rule");var allRules=ast.rules.map((function(e){return e.name}));if(options.allowedStartRules.some((function(e){return"*"===e})))options.allowedStartRules=allRules;else for(var _i=0,_a=options.allowedStartRules;_i<_a.length;_i++){var rule=_a[_i];if(-1===allRules.indexOf(rule))throw new Error('Unknown start rule "'.concat(rule,'"'))}if(("source-and-map"===options.output||"source-with-inline-map"===options.output)&&!isSourceMapCapable(options.grammarSource))throw new Error("Must provide grammarSource (as a string or GrammarLocation) in order to generate source maps");var session=new Session(options);switch(Object.keys(passes).forEach((function(e){session.stage=e,session.info("Process stage ".concat(e)),passes[e].forEach((function(u){session.info("Process pass ".concat(e,".").concat(u.name)),u(ast,options,session)})),session.checkErrors()})),options.output){case"parser":return eval(ast.code.toString());case"source":return ast.code.toString();case"source-and-map":return ast.code;case"source-with-inline-map":if("undefined"==typeof TextEncoder)throw new Error("TextEncoder is not supported by this platform");var sourceMap=ast.code.toStringWithSourceMap(),encoder=new TextEncoder,b64=base64(encoder.encode(JSON.stringify(sourceMap.map.toJSON())));return sourceMap.code+"//# sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(b64,"\n");case"ast":return ast;default:throw new Error("Invalid output format: "+options.output+".")}}},compiler_1=compiler$1,OPS_TO_PREFIXED_TYPES={$:"text","&":"simple_and","!":"simple_not"},OPS_TO_SUFFIXED_TYPES={"?":"optional","*":"zero_or_more","+":"one_or_more"},OPS_TO_SEMANTIC_PREDICATE_TYPES={"&":"semantic_and","!":"semantic_not"};function peg$subclass(e,u){function t(){this.constructor=e}t.prototype=u.prototype,e.prototype=new t}function peg$SyntaxError(e,u,t,r){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=u,n.found=t,n.location=r,n.name="SyntaxError",n}function peg$padEnd(e,u,t){return t=t||" ",e.length>u?e:(u-=e.length,e+(t+=t.repeat(u)).slice(0,u))}function peg$parse(e,u){var t,r={},n=(u=void 0!==u?u:{}).grammarSource,o={Grammar:Yt},a=Yt,i="{",s="}",c="=",l="/",p="@",A=":",f="$",E="&",h="!",d="?",C="*",g="+",m="|",F=",",_="..",v="(",B=")",D="\t",$="\v",S="\f",y=" ",P=" ",x="\ufeff",b="\n",R="\r\n",O="\r",L="\u2028",M="\u2029",T="/*",I="*/",w="//",N="_",k="\\",H="‌",U="‍",j="i",G='"',V="'",Y="[",W="^",z="]",J="-",Q="0",q="b",X="f",K="n",Z="r",ee="t",ue="v",te="x",re="u",ne=".",oe=";",ae=/^[\n\r\u2028\u2029]/,ie=/^[0-9]/,se=/^[0-9a-f]/i,ce=/^[{}]/,le=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,pe=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,Ae=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,fe=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,Ee=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,he=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,de=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,Ce=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,ge=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,me=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Fe=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_e=kt("{",!1),ve=kt("}",!1),Be=kt("=",!1),De=kt("/",!1),$e=kt("@",!1),Se=kt(":",!1),ye=kt("$",!1),Pe=kt("&",!1),xe=kt("!",!1),be=kt("?",!1),Re=kt("*",!1),Oe=kt("+",!1),Le=kt("|",!1),Me=kt(",",!1),Te=kt("..",!1),Ie=kt("(",!1),we=kt(")",!1),Ne={type:"any"},ke=Ut("whitespace"),He=kt("\t",!1),Ue=kt("\v",!1),je=kt("\f",!1),Ge=kt(" ",!1),Ve=kt(" ",!1),Ye=kt("\ufeff",!1),We=Ht(["\n","\r","\u2028","\u2029"],!1,!1),ze=Ut("end of line"),Je=kt("\n",!1),Qe=kt("\r\n",!1),qe=kt("\r",!1),Xe=kt("\u2028",!1),Ke=kt("\u2029",!1),Ze=Ut("comment"),eu=kt("/*",!1),uu=kt("*/",!1),tu=kt("//",!1),ru=Ut("identifier"),nu=kt("_",!1),ou=kt("\\",!1),au=kt("‌",!1),iu=kt("‍",!1),su=Ut("literal"),cu=kt("i",!1),lu=Ut("string"),pu=kt('"',!1),Au=kt("'",!1),fu=Ut("character class"),Eu=kt("[",!1),hu=kt("^",!1),du=kt("]",!1),Cu=kt("-",!1),gu=kt("0",!1),mu=kt("b",!1),Fu=kt("f",!1),_u=kt("n",!1),vu=kt("r",!1),Bu=kt("t",!1),Du=kt("v",!1),$u=kt("x",!1),Su=kt("u",!1),yu=Ht([["0","9"]],!1,!1),Pu=Ht([["0","9"],["a","f"]],!1,!0),xu=kt(".",!1),bu=Ut("code block"),Ru=Ht(["{","}"],!1,!1),Ou=Ht([["a","z"],"µ",["ß","ö"],["ø","ÿ"],"ā","ă","ą","ć","ĉ","ċ","č","ď","đ","ē","ĕ","ė","ę","ě","ĝ","ğ","ġ","ģ","ĥ","ħ","ĩ","ī","ĭ","į","ı","ij","ĵ",["ķ","ĸ"],"ĺ","ļ","ľ","ŀ","ł","ń","ņ",["ň","ʼn"],"ŋ","ō","ŏ","ő","œ","ŕ","ŗ","ř","ś","ŝ","ş","š","ţ","ť","ŧ","ũ","ū","ŭ","ů","ű","ų","ŵ","ŷ","ź","ż",["ž","ƀ"],"ƃ","ƅ","ƈ",["ƌ","ƍ"],"ƒ","ƕ",["ƙ","ƛ"],"ƞ","ơ","ƣ","ƥ","ƨ",["ƪ","ƫ"],"ƭ","ư","ƴ","ƶ",["ƹ","ƺ"],["ƽ","ƿ"],"dž","lj","nj","ǎ","ǐ","ǒ","ǔ","ǖ","ǘ","ǚ",["ǜ","ǝ"],"ǟ","ǡ","ǣ","ǥ","ǧ","ǩ","ǫ","ǭ",["ǯ","ǰ"],"dz","ǵ","ǹ","ǻ","ǽ","ǿ","ȁ","ȃ","ȅ","ȇ","ȉ","ȋ","ȍ","ȏ","ȑ","ȓ","ȕ","ȗ","ș","ț","ȝ","ȟ","ȡ","ȣ","ȥ","ȧ","ȩ","ȫ","ȭ","ȯ","ȱ",["ȳ","ȹ"],"ȼ",["ȿ","ɀ"],"ɂ","ɇ","ɉ","ɋ","ɍ",["ɏ","ʓ"],["ʕ","ʯ"],"ͱ","ͳ","ͷ",["ͻ","ͽ"],"ΐ",["ά","ώ"],["ϐ","ϑ"],["ϕ","ϗ"],"ϙ","ϛ","ϝ","ϟ","ϡ","ϣ","ϥ","ϧ","ϩ","ϫ","ϭ",["ϯ","ϳ"],"ϵ","ϸ",["ϻ","ϼ"],["а","џ"],"ѡ","ѣ","ѥ","ѧ","ѩ","ѫ","ѭ","ѯ","ѱ","ѳ","ѵ","ѷ","ѹ","ѻ","ѽ","ѿ","ҁ","ҋ","ҍ","ҏ","ґ","ғ","ҕ","җ","ҙ","қ","ҝ","ҟ","ҡ","ң","ҥ","ҧ","ҩ","ҫ","ҭ","ү","ұ","ҳ","ҵ","ҷ","ҹ","һ","ҽ","ҿ","ӂ","ӄ","ӆ","ӈ","ӊ","ӌ",["ӎ","ӏ"],"ӑ","ӓ","ӕ","ӗ","ә","ӛ","ӝ","ӟ","ӡ","ӣ","ӥ","ӧ","ө","ӫ","ӭ","ӯ","ӱ","ӳ","ӵ","ӷ","ӹ","ӻ","ӽ","ӿ","ԁ","ԃ","ԅ","ԇ","ԉ","ԋ","ԍ","ԏ","ԑ","ԓ","ԕ","ԗ","ԙ","ԛ","ԝ","ԟ","ԡ","ԣ","ԥ","ԧ","ԩ","ԫ","ԭ","ԯ",["ա","և"],["ᏸ","ᏽ"],["ᴀ","ᴫ"],["ᵫ","ᵷ"],["ᵹ","ᶚ"],"ḁ","ḃ","ḅ","ḇ","ḉ","ḋ","ḍ","ḏ","ḑ","ḓ","ḕ","ḗ","ḙ","ḛ","ḝ","ḟ","ḡ","ḣ","ḥ","ḧ","ḩ","ḫ","ḭ","ḯ","ḱ","ḳ","ḵ","ḷ","ḹ","ḻ","ḽ","ḿ","ṁ","ṃ","ṅ","ṇ","ṉ","ṋ","ṍ","ṏ","ṑ","ṓ","ṕ","ṗ","ṙ","ṛ","ṝ","ṟ","ṡ","ṣ","ṥ","ṧ","ṩ","ṫ","ṭ","ṯ","ṱ","ṳ","ṵ","ṷ","ṹ","ṻ","ṽ","ṿ","ẁ","ẃ","ẅ","ẇ","ẉ","ẋ","ẍ","ẏ","ẑ","ẓ",["ẕ","ẝ"],"ẟ","ạ","ả","ấ","ầ","ẩ","ẫ","ậ","ắ","ằ","ẳ","ẵ","ặ","ẹ","ẻ","ẽ","ế","ề","ể","ễ","ệ","ỉ","ị","ọ","ỏ","ố","ồ","ổ","ỗ","ộ","ớ","ờ","ở","ỡ","ợ","ụ","ủ","ứ","ừ","ử","ữ","ự","ỳ","ỵ","ỷ","ỹ","ỻ","ỽ",["ỿ","ἇ"],["ἐ","ἕ"],["ἠ","ἧ"],["ἰ","ἷ"],["ὀ","ὅ"],["ὐ","ὗ"],["ὠ","ὧ"],["ὰ","ώ"],["ᾀ","ᾇ"],["ᾐ","ᾗ"],["ᾠ","ᾧ"],["ᾰ","ᾴ"],["ᾶ","ᾷ"],"ι",["ῂ","ῄ"],["ῆ","ῇ"],["ῐ","ΐ"],["ῖ","ῗ"],["ῠ","ῧ"],["ῲ","ῴ"],["ῶ","ῷ"],"ℊ",["ℎ","ℏ"],"ℓ","ℯ","ℴ","ℹ",["ℼ","ℽ"],["ⅆ","ⅉ"],"ⅎ","ↄ",["ⰰ","ⱞ"],"ⱡ",["ⱥ","ⱦ"],"ⱨ","ⱪ","ⱬ","ⱱ",["ⱳ","ⱴ"],["ⱶ","ⱻ"],"ⲁ","ⲃ","ⲅ","ⲇ","ⲉ","ⲋ","ⲍ","ⲏ","ⲑ","ⲓ","ⲕ","ⲗ","ⲙ","ⲛ","ⲝ","ⲟ","ⲡ","ⲣ","ⲥ","ⲧ","ⲩ","ⲫ","ⲭ","ⲯ","ⲱ","ⲳ","ⲵ","ⲷ","ⲹ","ⲻ","ⲽ","ⲿ","ⳁ","ⳃ","ⳅ","ⳇ","ⳉ","ⳋ","ⳍ","ⳏ","ⳑ","ⳓ","ⳕ","ⳗ","ⳙ","ⳛ","ⳝ","ⳟ","ⳡ",["ⳣ","ⳤ"],"ⳬ","ⳮ","ⳳ",["ⴀ","ⴥ"],"ⴧ","ⴭ","ꙁ","ꙃ","ꙅ","ꙇ","ꙉ","ꙋ","ꙍ","ꙏ","ꙑ","ꙓ","ꙕ","ꙗ","ꙙ","ꙛ","ꙝ","ꙟ","ꙡ","ꙣ","ꙥ","ꙧ","ꙩ","ꙫ","ꙭ","ꚁ","ꚃ","ꚅ","ꚇ","ꚉ","ꚋ","ꚍ","ꚏ","ꚑ","ꚓ","ꚕ","ꚗ","ꚙ","ꚛ","ꜣ","ꜥ","ꜧ","ꜩ","ꜫ","ꜭ",["ꜯ","ꜱ"],"ꜳ","ꜵ","ꜷ","ꜹ","ꜻ","ꜽ","ꜿ","ꝁ","ꝃ","ꝅ","ꝇ","ꝉ","ꝋ","ꝍ","ꝏ","ꝑ","ꝓ","ꝕ","ꝗ","ꝙ","ꝛ","ꝝ","ꝟ","ꝡ","ꝣ","ꝥ","ꝧ","ꝩ","ꝫ","ꝭ","ꝯ",["ꝱ","ꝸ"],"ꝺ","ꝼ","ꝿ","ꞁ","ꞃ","ꞅ","ꞇ","ꞌ","ꞎ","ꞑ",["ꞓ","ꞕ"],"ꞗ","ꞙ","ꞛ","ꞝ","ꞟ","ꞡ","ꞣ","ꞥ","ꞧ","ꞩ","ꞵ","ꞷ","ꟺ",["ꬰ","ꭚ"],["ꭠ","ꭥ"],["ꭰ","ꮿ"],["ff","st"],["ﬓ","ﬗ"],["a","z"]],!1,!1),Lu=Ht([["ʰ","ˁ"],["ˆ","ˑ"],["ˠ","ˤ"],"ˬ","ˮ","ʹ","ͺ","ՙ","ـ",["ۥ","ۦ"],["ߴ","ߵ"],"ߺ","ࠚ","ࠤ","ࠨ","ॱ","ๆ","ໆ","ჼ","ៗ","ᡃ","ᪧ",["ᱸ","ᱽ"],["ᴬ","ᵪ"],"ᵸ",["ᶛ","ᶿ"],"ⁱ","ⁿ",["ₐ","ₜ"],["ⱼ","ⱽ"],"ⵯ","ⸯ","々",["〱","〵"],"〻",["ゝ","ゞ"],["ー","ヾ"],"ꀕ",["ꓸ","ꓽ"],"ꘌ","ꙿ",["ꚜ","ꚝ"],["ꜗ","ꜟ"],"ꝰ","ꞈ",["ꟸ","ꟹ"],"ꧏ","ꧦ","ꩰ","ꫝ",["ꫳ","ꫴ"],["ꭜ","ꭟ"],"ー",["゙","゚"]],!1,!1),Mu=Ht(["ª","º","ƻ",["ǀ","ǃ"],"ʔ",["א","ת"],["װ","ײ"],["ؠ","ؿ"],["ف","ي"],["ٮ","ٯ"],["ٱ","ۓ"],"ە",["ۮ","ۯ"],["ۺ","ۼ"],"ۿ","ܐ",["ܒ","ܯ"],["ݍ","ޥ"],"ޱ",["ߊ","ߪ"],["ࠀ","ࠕ"],["ࡀ","ࡘ"],["ࢠ","ࢴ"],["ऄ","ह"],"ऽ","ॐ",["क़","ॡ"],["ॲ","ঀ"],["অ","ঌ"],["এ","ঐ"],["ও","ন"],["প","র"],"ল",["শ","হ"],"ঽ","ৎ",["ড়","ঢ়"],["য়","ৡ"],["ৰ","ৱ"],["ਅ","ਊ"],["ਏ","ਐ"],["ਓ","ਨ"],["ਪ","ਰ"],["ਲ","ਲ਼"],["ਵ","ਸ਼"],["ਸ","ਹ"],["ਖ਼","ੜ"],"ਫ਼",["ੲ","ੴ"],["અ","ઍ"],["એ","ઑ"],["ઓ","ન"],["પ","ર"],["લ","ળ"],["વ","હ"],"ઽ","ૐ",["ૠ","ૡ"],"ૹ",["ଅ","ଌ"],["ଏ","ଐ"],["ଓ","ନ"],["ପ","ର"],["ଲ","ଳ"],["ଵ","ହ"],"ଽ",["ଡ଼","ଢ଼"],["ୟ","ୡ"],"ୱ","ஃ",["அ","ஊ"],["எ","ஐ"],["ஒ","க"],["ங","ச"],"ஜ",["ஞ","ட"],["ண","த"],["ந","ப"],["ம","ஹ"],"ௐ",["అ","ఌ"],["ఎ","ఐ"],["ఒ","న"],["ప","హ"],"ఽ",["ౘ","ౚ"],["ౠ","ౡ"],["ಅ","ಌ"],["ಎ","ಐ"],["ಒ","ನ"],["ಪ","ಳ"],["ವ","ಹ"],"ಽ","ೞ",["ೠ","ೡ"],["ೱ","ೲ"],["അ","ഌ"],["എ","ഐ"],["ഒ","ഺ"],"ഽ","ൎ",["ൟ","ൡ"],["ൺ","ൿ"],["අ","ඖ"],["ක","න"],["ඳ","ර"],"ල",["ව","ෆ"],["ก","ะ"],["า","ำ"],["เ","ๅ"],["ກ","ຂ"],"ຄ",["ງ","ຈ"],"ຊ","ຍ",["ດ","ທ"],["ນ","ຟ"],["ມ","ຣ"],"ລ","ວ",["ສ","ຫ"],["ອ","ະ"],["າ","ຳ"],"ຽ",["ເ","ໄ"],["ໜ","ໟ"],"ༀ",["ཀ","ཇ"],["ཉ","ཬ"],["ྈ","ྌ"],["က","ဪ"],"ဿ",["ၐ","ၕ"],["ၚ","ၝ"],"ၡ",["ၥ","ၦ"],["ၮ","ၰ"],["ၵ","ႁ"],"ႎ",["ა","ჺ"],["ჽ","ቈ"],["ቊ","ቍ"],["ቐ","ቖ"],"ቘ",["ቚ","ቝ"],["በ","ኈ"],["ኊ","ኍ"],["ነ","ኰ"],["ኲ","ኵ"],["ኸ","ኾ"],"ዀ",["ዂ","ዅ"],["ወ","ዖ"],["ዘ","ጐ"],["ጒ","ጕ"],["ጘ","ፚ"],["ᎀ","ᎏ"],["ᐁ","ᙬ"],["ᙯ","ᙿ"],["ᚁ","ᚚ"],["ᚠ","ᛪ"],["ᛱ","ᛸ"],["ᜀ","ᜌ"],["ᜎ","ᜑ"],["ᜠ","ᜱ"],["ᝀ","ᝑ"],["ᝠ","ᝬ"],["ᝮ","ᝰ"],["ក","ឳ"],"ៜ",["ᠠ","ᡂ"],["ᡄ","ᡷ"],["ᢀ","ᢨ"],"ᢪ",["ᢰ","ᣵ"],["ᤀ","ᤞ"],["ᥐ","ᥭ"],["ᥰ","ᥴ"],["ᦀ","ᦫ"],["ᦰ","ᧉ"],["ᨀ","ᨖ"],["ᨠ","ᩔ"],["ᬅ","ᬳ"],["ᭅ","ᭋ"],["ᮃ","ᮠ"],["ᮮ","ᮯ"],["ᮺ","ᯥ"],["ᰀ","ᰣ"],["ᱍ","ᱏ"],["ᱚ","ᱷ"],["ᳩ","ᳬ"],["ᳮ","ᳱ"],["ᳵ","ᳶ"],["ℵ","ℸ"],["ⴰ","ⵧ"],["ⶀ","ⶖ"],["ⶠ","ⶦ"],["ⶨ","ⶮ"],["ⶰ","ⶶ"],["ⶸ","ⶾ"],["ⷀ","ⷆ"],["ⷈ","ⷎ"],["ⷐ","ⷖ"],["ⷘ","ⷞ"],"〆","〼",["ぁ","ゖ"],"ゟ",["ァ","ヺ"],"ヿ",["ㄅ","ㄭ"],["ㄱ","ㆎ"],["ㆠ","ㆺ"],["ㇰ","ㇿ"],["㐀","䶵"],["一","鿕"],["ꀀ","ꀔ"],["ꀖ","ꒌ"],["ꓐ","ꓷ"],["ꔀ","ꘋ"],["ꘐ","ꘟ"],["ꘪ","ꘫ"],"ꙮ",["ꚠ","ꛥ"],"ꞏ","ꟷ",["ꟻ","ꠁ"],["ꠃ","ꠅ"],["ꠇ","ꠊ"],["ꠌ","ꠢ"],["ꡀ","ꡳ"],["ꢂ","ꢳ"],["ꣲ","ꣷ"],"ꣻ","ꣽ",["ꤊ","ꤥ"],["ꤰ","ꥆ"],["ꥠ","ꥼ"],["ꦄ","ꦲ"],["ꧠ","ꧤ"],["ꧧ","ꧯ"],["ꧺ","ꧾ"],["ꨀ","ꨨ"],["ꩀ","ꩂ"],["ꩄ","ꩋ"],["ꩠ","ꩯ"],["ꩱ","ꩶ"],"ꩺ",["ꩾ","ꪯ"],"ꪱ",["ꪵ","ꪶ"],["ꪹ","ꪽ"],"ꫀ","ꫂ",["ꫛ","ꫜ"],["ꫠ","ꫪ"],"ꫲ",["ꬁ","ꬆ"],["ꬉ","ꬎ"],["ꬑ","ꬖ"],["ꬠ","ꬦ"],["ꬨ","ꬮ"],["ꯀ","ꯢ"],["가","힣"],["ힰ","ퟆ"],["ퟋ","ퟻ"],["豈","舘"],["並","龎"],"יִ",["ײַ","ﬨ"],["שׁ","זּ"],["טּ","לּ"],"מּ",["נּ","סּ"],["ףּ","פּ"],["צּ","ﮱ"],["ﯓ","ﴽ"],["ﵐ","ﶏ"],["ﶒ","ﷇ"],["ﷰ","ﷻ"],["ﹰ","ﹴ"],["ﹶ","ﻼ"],["ヲ","ッ"],["ア","ン"],["ᅠ","ᄒ"],["ᅡ","ᅦ"],["ᅧ","ᅬ"],["ᅭ","ᅲ"],["ᅳ","ᅵ"]],!1,!1),Tu=Ht(["Dž","Lj","Nj","Dz",["ᾈ","ᾏ"],["ᾘ","ᾟ"],["ᾨ","ᾯ"],"ᾼ","ῌ","ῼ"],!1,!1),Iu=Ht([["A","Z"],["À","Ö"],["Ø","Þ"],"Ā","Ă","Ą","Ć","Ĉ","Ċ","Č","Ď","Đ","Ē","Ĕ","Ė","Ę","Ě","Ĝ","Ğ","Ġ","Ģ","Ĥ","Ħ","Ĩ","Ī","Ĭ","Į","İ","IJ","Ĵ","Ķ","Ĺ","Ļ","Ľ","Ŀ","Ł","Ń","Ņ","Ň","Ŋ","Ō","Ŏ","Ő","Œ","Ŕ","Ŗ","Ř","Ś","Ŝ","Ş","Š","Ţ","Ť","Ŧ","Ũ","Ū","Ŭ","Ů","Ű","Ų","Ŵ","Ŷ",["Ÿ","Ź"],"Ż","Ž",["Ɓ","Ƃ"],"Ƅ",["Ɔ","Ƈ"],["Ɖ","Ƌ"],["Ǝ","Ƒ"],["Ɠ","Ɣ"],["Ɩ","Ƙ"],["Ɯ","Ɲ"],["Ɵ","Ơ"],"Ƣ","Ƥ",["Ʀ","Ƨ"],"Ʃ","Ƭ",["Ʈ","Ư"],["Ʊ","Ƴ"],"Ƶ",["Ʒ","Ƹ"],"Ƽ","DŽ","LJ","NJ","Ǎ","Ǐ","Ǒ","Ǔ","Ǖ","Ǘ","Ǚ","Ǜ","Ǟ","Ǡ","Ǣ","Ǥ","Ǧ","Ǩ","Ǫ","Ǭ","Ǯ","DZ","Ǵ",["Ƕ","Ǹ"],"Ǻ","Ǽ","Ǿ","Ȁ","Ȃ","Ȅ","Ȇ","Ȉ","Ȋ","Ȍ","Ȏ","Ȑ","Ȓ","Ȕ","Ȗ","Ș","Ț","Ȝ","Ȟ","Ƞ","Ȣ","Ȥ","Ȧ","Ȩ","Ȫ","Ȭ","Ȯ","Ȱ","Ȳ",["Ⱥ","Ȼ"],["Ƚ","Ⱦ"],"Ɂ",["Ƀ","Ɇ"],"Ɉ","Ɋ","Ɍ","Ɏ","Ͱ","Ͳ","Ͷ","Ϳ","Ά",["Έ","Ί"],"Ό",["Ύ","Ώ"],["Α","Ρ"],["Σ","Ϋ"],"Ϗ",["ϒ","ϔ"],"Ϙ","Ϛ","Ϝ","Ϟ","Ϡ","Ϣ","Ϥ","Ϧ","Ϩ","Ϫ","Ϭ","Ϯ","ϴ","Ϸ",["Ϲ","Ϻ"],["Ͻ","Я"],"Ѡ","Ѣ","Ѥ","Ѧ","Ѩ","Ѫ","Ѭ","Ѯ","Ѱ","Ѳ","Ѵ","Ѷ","Ѹ","Ѻ","Ѽ","Ѿ","Ҁ","Ҋ","Ҍ","Ҏ","Ґ","Ғ","Ҕ","Җ","Ҙ","Қ","Ҝ","Ҟ","Ҡ","Ң","Ҥ","Ҧ","Ҩ","Ҫ","Ҭ","Ү","Ұ","Ҳ","Ҵ","Ҷ","Ҹ","Һ","Ҽ","Ҿ",["Ӏ","Ӂ"],"Ӄ","Ӆ","Ӈ","Ӊ","Ӌ","Ӎ","Ӑ","Ӓ","Ӕ","Ӗ","Ә","Ӛ","Ӝ","Ӟ","Ӡ","Ӣ","Ӥ","Ӧ","Ө","Ӫ","Ӭ","Ӯ","Ӱ","Ӳ","Ӵ","Ӷ","Ӹ","Ӻ","Ӽ","Ӿ","Ԁ","Ԃ","Ԅ","Ԇ","Ԉ","Ԋ","Ԍ","Ԏ","Ԑ","Ԓ","Ԕ","Ԗ","Ԙ","Ԛ","Ԝ","Ԟ","Ԡ","Ԣ","Ԥ","Ԧ","Ԩ","Ԫ","Ԭ","Ԯ",["Ա","Ֆ"],["Ⴀ","Ⴥ"],"Ⴧ","Ⴭ",["Ꭰ","Ᏽ"],"Ḁ","Ḃ","Ḅ","Ḇ","Ḉ","Ḋ","Ḍ","Ḏ","Ḑ","Ḓ","Ḕ","Ḗ","Ḙ","Ḛ","Ḝ","Ḟ","Ḡ","Ḣ","Ḥ","Ḧ","Ḩ","Ḫ","Ḭ","Ḯ","Ḱ","Ḳ","Ḵ","Ḷ","Ḹ","Ḻ","Ḽ","Ḿ","Ṁ","Ṃ","Ṅ","Ṇ","Ṉ","Ṋ","Ṍ","Ṏ","Ṑ","Ṓ","Ṕ","Ṗ","Ṙ","Ṛ","Ṝ","Ṟ","Ṡ","Ṣ","Ṥ","Ṧ","Ṩ","Ṫ","Ṭ","Ṯ","Ṱ","Ṳ","Ṵ","Ṷ","Ṹ","Ṻ","Ṽ","Ṿ","Ẁ","Ẃ","Ẅ","Ẇ","Ẉ","Ẋ","Ẍ","Ẏ","Ẑ","Ẓ","Ẕ","ẞ","Ạ","Ả","Ấ","Ầ","Ẩ","Ẫ","Ậ","Ắ","Ằ","Ẳ","Ẵ","Ặ","Ẹ","Ẻ","Ẽ","Ế","Ề","Ể","Ễ","Ệ","Ỉ","Ị","Ọ","Ỏ","Ố","Ồ","Ổ","Ỗ","Ộ","Ớ","Ờ","Ở","Ỡ","Ợ","Ụ","Ủ","Ứ","Ừ","Ử","Ữ","Ự","Ỳ","Ỵ","Ỷ","Ỹ","Ỻ","Ỽ","Ỿ",["Ἀ","Ἇ"],["Ἐ","Ἕ"],["Ἠ","Ἧ"],["Ἰ","Ἷ"],["Ὀ","Ὅ"],"Ὑ","Ὓ","Ὕ","Ὗ",["Ὠ","Ὧ"],["Ᾰ","Ά"],["Ὲ","Ή"],["Ῐ","Ί"],["Ῠ","Ῥ"],["Ὸ","Ώ"],"ℂ","ℇ",["ℋ","ℍ"],["ℐ","ℒ"],"ℕ",["ℙ","ℝ"],"ℤ","Ω","ℨ",["K","ℭ"],["ℰ","ℳ"],["ℾ","ℿ"],"ⅅ","Ↄ",["Ⰰ","Ⱞ"],"Ⱡ",["Ɫ","Ɽ"],"Ⱨ","Ⱪ","Ⱬ",["Ɑ","Ɒ"],"Ⱳ","Ⱶ",["Ȿ","Ⲁ"],"Ⲃ","Ⲅ","Ⲇ","Ⲉ","Ⲋ","Ⲍ","Ⲏ","Ⲑ","Ⲓ","Ⲕ","Ⲗ","Ⲙ","Ⲛ","Ⲝ","Ⲟ","Ⲡ","Ⲣ","Ⲥ","Ⲧ","Ⲩ","Ⲫ","Ⲭ","Ⲯ","Ⲱ","Ⲳ","Ⲵ","Ⲷ","Ⲹ","Ⲻ","Ⲽ","Ⲿ","Ⳁ","Ⳃ","Ⳅ","Ⳇ","Ⳉ","Ⳋ","Ⳍ","Ⳏ","Ⳑ","Ⳓ","Ⳕ","Ⳗ","Ⳙ","Ⳛ","Ⳝ","Ⳟ","Ⳡ","Ⳣ","Ⳬ","Ⳮ","Ⳳ","Ꙁ","Ꙃ","Ꙅ","Ꙇ","Ꙉ","Ꙋ","Ꙍ","Ꙏ","Ꙑ","Ꙓ","Ꙕ","Ꙗ","Ꙙ","Ꙛ","Ꙝ","Ꙟ","Ꙡ","Ꙣ","Ꙥ","Ꙧ","Ꙩ","Ꙫ","Ꙭ","Ꚁ","Ꚃ","Ꚅ","Ꚇ","Ꚉ","Ꚋ","Ꚍ","Ꚏ","Ꚑ","Ꚓ","Ꚕ","Ꚗ","Ꚙ","Ꚛ","Ꜣ","Ꜥ","Ꜧ","Ꜩ","Ꜫ","Ꜭ","Ꜯ","Ꜳ","Ꜵ","Ꜷ","Ꜹ","Ꜻ","Ꜽ","Ꜿ","Ꝁ","Ꝃ","Ꝅ","Ꝇ","Ꝉ","Ꝋ","Ꝍ","Ꝏ","Ꝑ","Ꝓ","Ꝕ","Ꝗ","Ꝙ","Ꝛ","Ꝝ","Ꝟ","Ꝡ","Ꝣ","Ꝥ","Ꝧ","Ꝩ","Ꝫ","Ꝭ","Ꝯ","Ꝺ","Ꝼ",["Ᵹ","Ꝿ"],"Ꞁ","Ꞃ","Ꞅ","Ꞇ","Ꞌ","Ɥ","Ꞑ","Ꞓ","Ꞗ","Ꞙ","Ꞛ","Ꞝ","Ꞟ","Ꞡ","Ꞣ","Ꞥ","Ꞧ","Ꞩ",["Ɦ","Ɬ"],["Ʞ","Ꞵ"],"Ꞷ",["A","Z"]],!1,!1),wu=Ht(["ः","ऻ",["ा","ी"],["ॉ","ौ"],["ॎ","ॏ"],["ং","ঃ"],["া","ী"],["ে","ৈ"],["ো","ৌ"],"ৗ","ਃ",["ਾ","ੀ"],"ઃ",["ા","ી"],"ૉ",["ો","ૌ"],["ଂ","ଃ"],"ା","ୀ",["େ","ୈ"],["ୋ","ୌ"],"ୗ",["ா","ி"],["ு","ூ"],["ெ","ை"],["ொ","ௌ"],"ௗ",["ఁ","ః"],["ు","ౄ"],["ಂ","ಃ"],"ಾ",["ೀ","ೄ"],["ೇ","ೈ"],["ೊ","ೋ"],["ೕ","ೖ"],["ം","ഃ"],["ാ","ീ"],["െ","ൈ"],["ൊ","ൌ"],"ൗ",["ං","ඃ"],["ා","ෑ"],["ෘ","ෟ"],["ෲ","ෳ"],["༾","༿"],"ཿ",["ါ","ာ"],"ေ","း",["ျ","ြ"],["ၖ","ၗ"],["ၢ","ၤ"],["ၧ","ၭ"],["ႃ","ႄ"],["ႇ","ႌ"],"ႏ",["ႚ","ႜ"],"ា",["ើ","ៅ"],["ះ","ៈ"],["ᤣ","ᤦ"],["ᤩ","ᤫ"],["ᤰ","ᤱ"],["ᤳ","ᤸ"],["ᨙ","ᨚ"],"ᩕ","ᩗ","ᩡ",["ᩣ","ᩤ"],["ᩭ","ᩲ"],"ᬄ","ᬵ","ᬻ",["ᬽ","ᭁ"],["ᭃ","᭄"],"ᮂ","ᮡ",["ᮦ","ᮧ"],"᮪","ᯧ",["ᯪ","ᯬ"],"ᯮ",["᯲","᯳"],["ᰤ","ᰫ"],["ᰴ","ᰵ"],"᳡",["ᳲ","ᳳ"],["〮","〯"],["ꠣ","ꠤ"],"ꠧ",["ꢀ","ꢁ"],["ꢴ","ꣃ"],["ꥒ","꥓"],"ꦃ",["ꦴ","ꦵ"],["ꦺ","ꦻ"],["ꦽ","꧀"],["ꨯ","ꨰ"],["ꨳ","ꨴ"],"ꩍ","ꩻ","ꩽ","ꫫ",["ꫮ","ꫯ"],"ꫵ",["ꯣ","ꯤ"],["ꯦ","ꯧ"],["ꯩ","ꯪ"],"꯬"],!1,!1),Nu=Ht([["̀","ͯ"],["҃","҇"],["֑","ֽ"],"ֿ",["ׁ","ׂ"],["ׄ","ׅ"],"ׇ",["ؐ","ؚ"],["ً","ٟ"],"ٰ",["ۖ","ۜ"],["۟","ۤ"],["ۧ","ۨ"],["۪","ۭ"],"ܑ",["ܰ","݊"],["ަ","ް"],["߫","߳"],["ࠖ","࠙"],["ࠛ","ࠣ"],["ࠥ","ࠧ"],["ࠩ","࠭"],["࡙","࡛"],["ࣣ","ं"],"ऺ","़",["ु","ै"],"्",["॑","ॗ"],["ॢ","ॣ"],"ঁ","়",["ু","ৄ"],"্",["ৢ","ৣ"],["ਁ","ਂ"],"਼",["ੁ","ੂ"],["ੇ","ੈ"],["ੋ","੍"],"ੑ",["ੰ","ੱ"],"ੵ",["ઁ","ં"],"઼",["ુ","ૅ"],["ે","ૈ"],"્",["ૢ","ૣ"],"ଁ","଼","ି",["ୁ","ୄ"],"୍","ୖ",["ୢ","ୣ"],"ஂ","ீ","்","ఀ",["ా","ీ"],["ె","ై"],["ొ","్"],["ౕ","ౖ"],["ౢ","ౣ"],"ಁ","಼","ಿ","ೆ",["ೌ","್"],["ೢ","ೣ"],"ഁ",["ു","ൄ"],"്",["ൢ","ൣ"],"්",["ි","ු"],"ූ","ั",["ิ","ฺ"],["็","๎"],"ັ",["ິ","ູ"],["ົ","ຼ"],["່","ໍ"],["༘","༙"],"༵","༷","༹",["ཱ","ཾ"],["ྀ","྄"],["྆","྇"],["ྍ","ྗ"],["ྙ","ྼ"],"࿆",["ိ","ူ"],["ဲ","့"],["္","်"],["ွ","ှ"],["ၘ","ၙ"],["ၞ","ၠ"],["ၱ","ၴ"],"ႂ",["ႅ","ႆ"],"ႍ","ႝ",["፝","፟"],["ᜒ","᜔"],["ᜲ","᜴"],["ᝒ","ᝓ"],["ᝲ","ᝳ"],["឴","឵"],["ិ","ួ"],"ំ",["៉","៓"],"៝",["᠋","᠍"],"ᢩ",["ᤠ","ᤢ"],["ᤧ","ᤨ"],"ᤲ",["᤹","᤻"],["ᨗ","ᨘ"],"ᨛ","ᩖ",["ᩘ","ᩞ"],"᩠","ᩢ",["ᩥ","ᩬ"],["ᩳ","᩼"],"᩿",["᪰","᪽"],["ᬀ","ᬃ"],"᬴",["ᬶ","ᬺ"],"ᬼ","ᭂ",["᭫","᭳"],["ᮀ","ᮁ"],["ᮢ","ᮥ"],["ᮨ","ᮩ"],["᮫","ᮭ"],"᯦",["ᯨ","ᯩ"],"ᯭ",["ᯯ","ᯱ"],["ᰬ","ᰳ"],["ᰶ","᰷"],["᳐","᳒"],["᳔","᳠"],["᳢","᳨"],"᳭","᳴",["᳸","᳹"],["᷀","᷵"],["᷼","᷿"],["⃐","⃜"],"⃡",["⃥","⃰"],["⳯","⳱"],"⵿",["ⷠ","ⷿ"],["〪","〭"],["゙","゚"],"꙯",["ꙴ","꙽"],["ꚞ","ꚟ"],["꛰","꛱"],"ꠂ","꠆","ꠋ",["ꠥ","ꠦ"],"꣄",["꣠","꣱"],["ꤦ","꤭"],["ꥇ","ꥑ"],["ꦀ","ꦂ"],"꦳",["ꦶ","ꦹ"],"ꦼ","ꧥ",["ꨩ","ꨮ"],["ꨱ","ꨲ"],["ꨵ","ꨶ"],"ꩃ","ꩌ","ꩼ","ꪰ",["ꪲ","ꪴ"],["ꪷ","ꪸ"],["ꪾ","꪿"],"꫁",["ꫬ","ꫭ"],"꫶","ꯥ","ꯨ","꯭","ﬞ",["︀","️"],["︠","︯"]],!1,!1),ku=Ht([["0","9"],["٠","٩"],["۰","۹"],["߀","߉"],["०","९"],["০","৯"],["੦","੯"],["૦","૯"],["୦","୯"],["௦","௯"],["౦","౯"],["೦","೯"],["൦","൯"],["෦","෯"],["๐","๙"],["໐","໙"],["༠","༩"],["၀","၉"],["႐","႙"],["០","៩"],["᠐","᠙"],["᥆","᥏"],["᧐","᧙"],["᪀","᪉"],["᪐","᪙"],["᭐","᭙"],["᮰","᮹"],["᱀","᱉"],["᱐","᱙"],["꘠","꘩"],["꣐","꣙"],["꤀","꤉"],["꧐","꧙"],["꧰","꧹"],["꩐","꩙"],["꯰","꯹"],["0","9"]],!1,!1),Hu=Ht([["ᛮ","ᛰ"],["Ⅰ","ↂ"],["ↅ","ↈ"],"〇",["〡","〩"],["〸","〺"],["ꛦ","ꛯ"]],!1,!1),Uu=Ht(["_",["‿","⁀"],"⁔",["︳","︴"],["﹍","﹏"],"_"],!1,!1),ju=Ht([" "," "," ",[" "," "]," "," "," "],!1,!1),Gu=kt(";",!1),Vu=function(e,u,t){return{type:"grammar",topLevelInitializer:e,initializer:u,rules:t,location:wt()}},Yu=function(e){return{type:"top_level_initializer",code:e[0],codeLocation:e[1],location:wt()}},Wu=function(e){return{type:"initializer",code:e[0],codeLocation:e[1],location:wt()}},zu=function(e,u,t){return{type:"rule",name:e[0],nameLocation:e[1],expression:null!==u?{type:"named",name:u,expression:t,location:wt()}:t,location:wt()}},Ju=function(e,u){return u.length>0?{type:"choice",alternatives:[e].concat(u),location:wt()}:e},Qu=function(e,u){return null!==u?{type:"action",expression:e,code:u[0],codeLocation:u[1],location:wt()}:e},qu=function(e,u){return u.length>0||"labeled"===e.type&&e.pick?{type:"sequence",elements:[e].concat(u),location:wt()}:e},Xu=function(e,u,t){return t.type.startsWith("semantic_")&&Nt('"@" cannot be used on a semantic predicate',e),{type:"labeled",label:null!==u?u[0]:null,labelLocation:null!==u?u[1]:e,pick:!0,expression:t,location:wt()}},Ku=function(e,u){return{type:"labeled",label:e[0],labelLocation:e[1],expression:u,location:wt()}},Zu=function(){return wt()},et=function(e){return Sr.indexOf(e[0])>=0&&Nt("Label can't be a reserved word \"".concat(e[0],'"'),e[1]),e},ut=function(e,u){return{type:OPS_TO_PREFIXED_TYPES[e],expression:u,location:wt()}},tt=function(e,u){return{type:OPS_TO_SUFFIXED_TYPES[u],expression:e,location:wt()}},rt=function(e,u,t){var r=u[0],n=u[1];return"constant"===n.type&&0===n.value&&Nt("The maximum count of repetitions of the rule must be > 0",n.location),{type:"repeated",min:r,max:n,expression:e,delimiter:t,location:wt()}},nt=function(e,u){return[null!==e?e:{type:"constant",value:0},null!==u?u:{type:"constant",value:null}]},ot=function(e){return[null,e]},at=function(e){return{type:"constant",value:e,location:wt()}},it=function(e){return{type:"variable",value:e[0],location:wt()}},st=function(e){return{type:"function",value:e[0],codeLocation:e[1],location:wt()}},ct=function(e){return"labeled"===e.type||"sequence"===e.type?{type:"group",expression:e,location:wt()}:e},lt=function(e){return{type:"rule_ref",name:e[0],location:wt()}},pt=function(e,u){return{type:OPS_TO_SEMANTIC_PREDICATE_TYPES[e],code:u[0],codeLocation:u[1],location:wt()}},At=function(e,u){return[e+u.join(""),wt()]},ft=function(e,u){return{type:"literal",value:e,ignoreCase:null!==u,location:wt()}},Et=function(e){return e.join("")},ht=function(e){return e.join("")},dt=function(e,u,t){return{type:"class",parts:u.filter((function(e){return""!==e})),inverted:null!==e,ignoreCase:null!==t,location:wt()}},Ct=function(u,t){return u.charCodeAt(0)>t.charCodeAt(0)&&Nt("Invalid character range: "+e.substring(Ot,Rt)+"."),[u,t]},gt=function(){return""},mt=function(){return"\0"},Ft=function(){return"\b"},_t=function(){return"\f"},vt=function(){return"\n"},Bt=function(){return"\r"},Dt=function(){return"\t"},$t=function(){return"\v"},St=function(e){return String.fromCharCode(parseInt(e,16))},yt=function(e){return String.fromCharCode(parseInt(e,16))},Pt=function(){return{type:"any",location:wt()}},xt=function(e){return[e,wt()]},bt=function(e){return parseInt(e,10)},Rt=0,Ot=0,Lt=[{line:1,column:1}],Mt=0,Tt=[],It=0;if("startRule"in u){if(!(u.startRule in o))throw new Error("Can't start parsing from rule \""+u.startRule+'".');a=o[u.startRule]}function wt(){return Gt(Ot,Rt)}function Nt(e,u){throw function(e,u){return new peg$SyntaxError(e,null,null,u)}(e,u=void 0!==u?u:Gt(Ot,Rt))}function kt(e,u){return{type:"literal",text:e,ignoreCase:u}}function Ht(e,u,t){return{type:"class",parts:e,inverted:u,ignoreCase:t}}function Ut(e){return{type:"other",description:e}}function jt(u){var t,r=Lt[u];if(r)return r;for(t=u-1;!Lt[t];)t--;for(r={line:(r=Lt[t]).line,column:r.column};tMt&&(Mt=Rt,Tt=[]),Tt.push(e))}function Yt(){var u,t,n,o,a,c;if(u=Rt,Dr(),t=Rt,n=function(){var u,t,n,o;return u=Rt,123===e.charCodeAt(Rt)?(t=i,Rt++):(t=r,0===It&&Vt(_e)),t!==r&&(n=vr())!==r?(125===e.charCodeAt(Rt)?(o=s,Rt++):(o=r,0===It&&Vt(ve)),o!==r&&$r()!==r?(Ot=u,u=Yu(n)):(Rt=u,u=r)):(Rt=u,u=r),u}(),n!==r?(o=Dr(),t=n):(Rt=t,t=r),t===r&&(t=null),n=Rt,o=function(){var e,u;return e=Rt,(u=vr())!==r&&$r()!==r?(Ot=e,e=Wu(u)):(Rt=e,e=r),e}(),o!==r?(a=Dr(),n=o):(Rt=n,n=r),n===r&&(n=null),o=[],a=Rt,(c=Wt())!==r?(Dr(),a=c):(Rt=a,a=r),a!==r)for(;a!==r;)o.push(a),a=Rt,(c=Wt())!==r?(Dr(),a=c):(Rt=a,a=r);else o=r;return o!==r?(Ot=u,u=Vu(t,n,o)):(Rt=u,u=r),u}function Wt(){var u,t,n,o,a;return u=Rt,(t=sr())!==r?(Dr(),n=Rt,(o=pr())!==r?(Dr(),n=o):(Rt=n,n=r),n===r&&(n=null),61===e.charCodeAt(Rt)?(o=c,Rt++):(o=r,0===It&&Vt(Be)),o!==r?(Dr(),(a=zt())!==r&&$r()!==r?(Ot=u,u=zu(t,n,a)):(Rt=u,u=r)):(Rt=u,u=r)):(Rt=u,u=r),u}function zt(){var u,t,n,o,a,i;if(u=Rt,(t=Jt())!==r){for(n=[],o=Rt,Dr(),47===e.charCodeAt(Rt)?(a=l,Rt++):(a=r,0===It&&Vt(De)),a!==r?(Dr(),(i=Jt())!==r?o=i:(Rt=o,o=r)):(Rt=o,o=r);o!==r;)n.push(o),o=Rt,Dr(),47===e.charCodeAt(Rt)?(a=l,Rt++):(a=r,0===It&&Vt(De)),a!==r?(Dr(),(i=Jt())!==r?o=i:(Rt=o,o=r)):(Rt=o,o=r);Ot=u,u=Ju(t,n)}else Rt=u,u=r;return u}function Jt(){var e,u,t,n;return e=Rt,u=function(){var e,u,t,n,o;if(e=Rt,(u=Qt())!==r){for(t=[],n=Rt,Dr(),(o=Qt())!==r?n=o:(Rt=n,n=r);n!==r;)t.push(n),n=Rt,Dr(),(o=Qt())!==r?n=o:(Rt=n,n=r);Ot=e,e=qu(u,t)}else Rt=e,e=r;return e}(),u!==r?(t=Rt,Dr(),(n=vr())!==r?t=n:(Rt=t,t=r),t===r&&(t=null),Ot=e,e=Qu(u,t)):(Rt=e,e=r),e}function Qt(){var u,t,n,o;return u=Rt,t=function(){var u,t;return u=Rt,64===e.charCodeAt(Rt)?(t=p,Rt++):(t=r,0===It&&Vt($e)),t!==r&&(Ot=u,t=Zu()),u=t}(),t!==r?((n=qt())===r&&(n=null),(o=Xt())!==r?(Ot=u,u=Xu(t,n,o)):(Rt=u,u=r)):(Rt=u,u=r),u===r&&(u=Rt,(t=qt())!==r?(n=Dr(),(o=Xt())!==r?(Ot=u,u=Ku(t,o)):(Rt=u,u=r)):(Rt=u,u=r),u===r&&(u=Xt())),u}function qt(){var u,t,n;return u=Rt,(t=sr())!==r?(Dr(),58===e.charCodeAt(Rt)?(n=A,Rt++):(n=r,0===It&&Vt(Se)),n!==r?(Ot=u,u=et(t)):(Rt=u,u=r)):(Rt=u,u=r),u}function Xt(){var u,t,n;return u=Rt,t=function(){var u;return 36===e.charCodeAt(Rt)?(u=f,Rt++):(u=r,0===It&&Vt(ye)),u===r&&(38===e.charCodeAt(Rt)?(u=E,Rt++):(u=r,0===It&&Vt(Pe)),u===r&&(33===e.charCodeAt(Rt)?(u=h,Rt++):(u=r,0===It&&Vt(xe)))),u}(),t!==r?(Dr(),(n=Kt())!==r?(Ot=u,u=ut(t,n)):(Rt=u,u=r)):(Rt=u,u=r),u===r&&(u=Kt()),u}function Kt(){var u,t,n;return u=Rt,(t=er())!==r?(Dr(),n=function(){var u;return 63===e.charCodeAt(Rt)?(u=d,Rt++):(u=r,0===It&&Vt(be)),u===r&&(42===e.charCodeAt(Rt)?(u=C,Rt++):(u=r,0===It&&Vt(Re)),u===r&&(43===e.charCodeAt(Rt)?(u=g,Rt++):(u=r,0===It&&Vt(Oe)))),u}(),n!==r?(Ot=u,u=tt(t,n)):(Rt=u,u=r)):(Rt=u,u=r),u===r&&(u=function(){var u,t,n,o,a,i,s;return u=Rt,(t=er())!==r?(Dr(),124===e.charCodeAt(Rt)?(n=m,Rt++):(n=r,0===It&&Vt(Le)),n!==r?(Dr(),o=function(){var u,t,n,o;return u=Rt,(t=Zt())===r&&(t=null),Dr(),e.substr(Rt,2)===_?(n=_,Rt+=2):(n=r,0===It&&Vt(Te)),n!==r?(Dr(),(o=Zt())===r&&(o=null),Ot=u,u=nt(t,o)):(Rt=u,u=r),u===r&&(u=Rt,(t=Zt())!==r&&(Ot=u,t=ot(t)),u=t),u}(),o!==r?(Dr(),a=Rt,44===e.charCodeAt(Rt)?(i=F,Rt++):(i=r,0===It&&Vt(Me)),i!==r?(Dr(),(s=zt())!==r?(Dr(),a=s):(Rt=a,a=r)):(Rt=a,a=r),a===r&&(a=null),124===e.charCodeAt(Rt)?(i=m,Rt++):(i=r,0===It&&Vt(Le)),i!==r?(Ot=u,u=rt(t,o,a)):(Rt=u,u=r)):(Rt=u,u=r)):(Rt=u,u=r)):(Rt=u,u=r),u}(),u===r&&(u=er())),u}function Zt(){var u,t;return u=Rt,t=function(){var u,t,n,o;if(u=Rt,t=Rt,n=[],(o=Fr())!==r)for(;o!==r;)n.push(o),o=Fr();else n=r;return(t=n!==r?e.substring(t,Rt):n)!==r&&(Ot=u,t=bt(t)),u=t}(),t!==r&&(Ot=u,t=at(t)),(u=t)===r&&(u=Rt,(t=sr())!==r&&(Ot=u,t=it(t)),(u=t)===r&&(u=Rt,(t=vr())!==r&&(Ot=u,t=st(t)),u=t)),u}function er(){var u,t,n,o;return u=function(){var u,t,n;return It++,u=Rt,(t=pr())!==r?(105===e.charCodeAt(Rt)?(n=j,Rt++):(n=r,0===It&&Vt(cu)),n===r&&(n=null),Ot=u,u=ft(t,n)):(Rt=u,u=r),It--,u===r&&(t=r,0===It&&Vt(su)),u}(),u===r&&(u=function(){var u,t,n,o,a,i;if(It++,u=Rt,91===e.charCodeAt(Rt)?(t=Y,Rt++):(t=r,0===It&&Vt(Eu)),t!==r){for(94===e.charCodeAt(Rt)?(n=W,Rt++):(n=r,0===It&&Vt(hu)),n===r&&(n=null),o=[],(a=Er())===r&&(a=hr());a!==r;)o.push(a),(a=Er())===r&&(a=hr());93===e.charCodeAt(Rt)?(a=z,Rt++):(a=r,0===It&&Vt(du)),a!==r?(105===e.charCodeAt(Rt)?(i=j,Rt++):(i=r,0===It&&Vt(cu)),i===r&&(i=null),Ot=u,u=dt(n,o,i)):(Rt=u,u=r)}else Rt=u,u=r;return It--,u===r&&(t=r,0===It&&Vt(fu)),u}(),u===r&&(u=function(){var u,t;return u=Rt,46===e.charCodeAt(Rt)?(t=ne,Rt++):(t=r,0===It&&Vt(xu)),t!==r&&(Ot=u,t=Pt()),u=t}(),u===r&&(u=function(){var u,t,n,o,a,i,s;return u=Rt,(t=sr())!==r?(n=Rt,It++,o=Rt,a=Dr(),i=Rt,(s=pr())!==r?i=s=[s,Dr()]:(Rt=i,i=r),i===r&&(i=null),61===e.charCodeAt(Rt)?(s=c,Rt++):(s=r,0===It&&Vt(Be)),s!==r?o=a=[a,i,s]:(Rt=o,o=r),It--,o===r?n=void 0:(Rt=n,n=r),n!==r?(Ot=u,u=lt(t)):(Rt=u,u=r)):(Rt=u,u=r),u}(),u===r&&(u=function(){var u,t,n;return u=Rt,t=function(){var u;return 38===e.charCodeAt(Rt)?(u=E,Rt++):(u=r,0===It&&Vt(Pe)),u===r&&(33===e.charCodeAt(Rt)?(u=h,Rt++):(u=r,0===It&&Vt(xe))),u}(),t!==r?(Dr(),(n=vr())!==r?(Ot=u,u=pt(t,n)):(Rt=u,u=r)):(Rt=u,u=r),u}(),u===r&&(u=Rt,40===e.charCodeAt(Rt)?(t=v,Rt++):(t=r,0===It&&Vt(Ie)),t!==r?(Dr(),(n=zt())!==r?(Dr(),41===e.charCodeAt(Rt)?(o=B,Rt++):(o=r,0===It&&Vt(we)),o!==r?(Ot=u,u=ct(n)):(Rt=u,u=r)):(Rt=u,u=r)):(Rt=u,u=r)))))),u}function ur(){var u;return e.length>Rt?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Ne)),u}function tr(){var u;return It++,9===e.charCodeAt(Rt)?(u=D,Rt++):(u=r,0===It&&Vt(He)),u===r&&(11===e.charCodeAt(Rt)?(u=$,Rt++):(u=r,0===It&&Vt(Ue)),u===r&&(12===e.charCodeAt(Rt)?(u=S,Rt++):(u=r,0===It&&Vt(je)),u===r&&(32===e.charCodeAt(Rt)?(u=y,Rt++):(u=r,0===It&&Vt(Ge)),u===r&&(160===e.charCodeAt(Rt)?(u=P,Rt++):(u=r,0===It&&Vt(Ve)),u===r&&(65279===e.charCodeAt(Rt)?(u=x,Rt++):(u=r,0===It&&Vt(Ye)),u===r&&(u=function(){var u;return Fe.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(ju)),u}())))))),It--,u===r&&0===It&&Vt(ke),u}function rr(){var u;return ae.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(We)),u}function nr(){var u;return It++,10===e.charCodeAt(Rt)?(u=b,Rt++):(u=r,0===It&&Vt(Je)),u===r&&(e.substr(Rt,2)===R?(u=R,Rt+=2):(u=r,0===It&&Vt(Qe)),u===r&&(13===e.charCodeAt(Rt)?(u=O,Rt++):(u=r,0===It&&Vt(qe)),u===r&&(8232===e.charCodeAt(Rt)?(u=L,Rt++):(u=r,0===It&&Vt(Xe)),u===r&&(8233===e.charCodeAt(Rt)?(u=M,Rt++):(u=r,0===It&&Vt(Ke)))))),It--,u===r&&0===It&&Vt(ze),u}function or(){var u;return It++,(u=function(){var u,t,n,o,a,i;if(u=Rt,e.substr(Rt,2)===T?(t=T,Rt+=2):(t=r,0===It&&Vt(eu)),t!==r){for(n=[],o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=r,0===It&&Vt(uu)),It--,i===r?a=void 0:(Rt=a,a=r),a!==r&&(i=ur())!==r?o=a=[a,i]:(Rt=o,o=r);o!==r;)n.push(o),o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=r,0===It&&Vt(uu)),It--,i===r?a=void 0:(Rt=a,a=r),a!==r&&(i=ur())!==r?o=a=[a,i]:(Rt=o,o=r);e.substr(Rt,2)===I?(o=I,Rt+=2):(o=r,0===It&&Vt(uu)),o!==r?u=t=[t,n,o]:(Rt=u,u=r)}else Rt=u,u=r;return u}())===r&&(u=ir()),It--,u===r&&0===It&&Vt(Ze),u}function ar(){var u,t,n,o,a,i;if(u=Rt,e.substr(Rt,2)===T?(t=T,Rt+=2):(t=r,0===It&&Vt(eu)),t!==r){for(n=[],o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=r,0===It&&Vt(uu)),i===r&&(i=rr()),It--,i===r?a=void 0:(Rt=a,a=r),a!==r&&(i=ur())!==r?o=a=[a,i]:(Rt=o,o=r);o!==r;)n.push(o),o=Rt,a=Rt,It++,e.substr(Rt,2)===I?(i=I,Rt+=2):(i=r,0===It&&Vt(uu)),i===r&&(i=rr()),It--,i===r?a=void 0:(Rt=a,a=r),a!==r&&(i=ur())!==r?o=a=[a,i]:(Rt=o,o=r);e.substr(Rt,2)===I?(o=I,Rt+=2):(o=r,0===It&&Vt(uu)),o!==r?u=t=[t,n,o]:(Rt=u,u=r)}else Rt=u,u=r;return u}function ir(){var u,t,n,o,a,i;if(u=Rt,e.substr(Rt,2)===w?(t=w,Rt+=2):(t=r,0===It&&Vt(tu)),t!==r){for(n=[],o=Rt,a=Rt,It++,i=rr(),It--,i===r?a=void 0:(Rt=a,a=r),a!==r&&(i=ur())!==r?o=a=[a,i]:(Rt=o,o=r);o!==r;)n.push(o),o=Rt,a=Rt,It++,i=rr(),It--,i===r?a=void 0:(Rt=a,a=r),a!==r&&(i=ur())!==r?o=a=[a,i]:(Rt=o,o=r);u=t=[t,n]}else Rt=u,u=r;return u}function sr(){var e,u,t,n;if(It++,e=Rt,(u=cr())!==r){for(t=[],n=lr();n!==r;)t.push(n),n=lr();Ot=e,e=At(u,t)}else Rt=e,e=r;return It--,e===r&&(u=r,0===It&&Vt(ru)),e}function cr(){var u,t,n;return(u=function(){var u;return(u=function(){var u;return Ee.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Iu)),u}())===r&&(u=function(){var u;return le.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Ou)),u}())===r&&(u=function(){var u;return fe.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Tu)),u}())===r&&(u=function(){var u;return pe.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Lu)),u}())===r&&(u=function(){var u;return Ae.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Mu)),u}())===r&&(u=function(){var u;return ge.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Hu)),u}()),u}())===r&&(36===e.charCodeAt(Rt)?(u=f,Rt++):(u=r,0===It&&Vt(ye)),u===r&&(95===e.charCodeAt(Rt)?(u=N,Rt++):(u=r,0===It&&Vt(nu)),u===r&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=r,0===It&&Vt(ou)),t!==r&&(n=mr())!==r?u=n:(Rt=u,u=r)))),u}function lr(){var u;return(u=cr())===r&&(u=function(){var u;return(u=function(){var u;return de.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Nu)),u}())===r&&(u=function(){var u;return he.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(wu)),u}()),u}())===r&&(u=function(){var u;return Ce.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(ku)),u}())===r&&(u=function(){var u;return me.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Uu)),u}())===r&&(8204===e.charCodeAt(Rt)?(u=H,Rt++):(u=r,0===It&&Vt(au)),u===r&&(8205===e.charCodeAt(Rt)?(u=U,Rt++):(u=r,0===It&&Vt(iu)))),u}function pr(){var u,t,n,o;if(It++,u=Rt,34===e.charCodeAt(Rt)?(t=G,Rt++):(t=r,0===It&&Vt(pu)),t!==r){for(n=[],o=Ar();o!==r;)n.push(o),o=Ar();34===e.charCodeAt(Rt)?(o=G,Rt++):(o=r,0===It&&Vt(pu)),o!==r?(Ot=u,u=Et(n)):(Rt=u,u=r)}else Rt=u,u=r;if(u===r)if(u=Rt,39===e.charCodeAt(Rt)?(t=V,Rt++):(t=r,0===It&&Vt(Au)),t!==r){for(n=[],o=fr();o!==r;)n.push(o),o=fr();39===e.charCodeAt(Rt)?(o=V,Rt++):(o=r,0===It&&Vt(Au)),o!==r?(Ot=u,u=ht(n)):(Rt=u,u=r)}else Rt=u,u=r;return It--,u===r&&(t=r,0===It&&Vt(lu)),u}function Ar(){var u,t,n,o;return u=Rt,t=Rt,n=Rt,It++,34===e.charCodeAt(Rt)?(o=G,Rt++):(o=r,0===It&&Vt(pu)),o===r&&(92===e.charCodeAt(Rt)?(o=k,Rt++):(o=r,0===It&&Vt(ou)),o===r&&(o=rr())),It--,o===r?n=void 0:(Rt=n,n=r),n!==r&&(o=ur())!==r?t=n=[n,o]:(Rt=t,t=r),(u=t!==r?e.substring(u,Rt):t)===r&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=r,0===It&&Vt(ou)),t!==r&&(n=Cr())!==r?u=n:(Rt=u,u=r),u===r&&(u=dr())),u}function fr(){var u,t,n,o;return u=Rt,t=Rt,n=Rt,It++,39===e.charCodeAt(Rt)?(o=V,Rt++):(o=r,0===It&&Vt(Au)),o===r&&(92===e.charCodeAt(Rt)?(o=k,Rt++):(o=r,0===It&&Vt(ou)),o===r&&(o=rr())),It--,o===r?n=void 0:(Rt=n,n=r),n!==r&&(o=ur())!==r?t=n=[n,o]:(Rt=t,t=r),(u=t!==r?e.substring(u,Rt):t)===r&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=r,0===It&&Vt(ou)),t!==r&&(n=Cr())!==r?u=n:(Rt=u,u=r),u===r&&(u=dr())),u}function Er(){var u,t,n,o;return u=Rt,(t=hr())!==r?(45===e.charCodeAt(Rt)?(n=J,Rt++):(n=r,0===It&&Vt(Cu)),n!==r&&(o=hr())!==r?(Ot=u,u=Ct(t,o)):(Rt=u,u=r)):(Rt=u,u=r),u}function hr(){var u,t,n,o;return u=Rt,t=Rt,n=Rt,It++,93===e.charCodeAt(Rt)?(o=z,Rt++):(o=r,0===It&&Vt(du)),o===r&&(92===e.charCodeAt(Rt)?(o=k,Rt++):(o=r,0===It&&Vt(ou)),o===r&&(o=rr())),It--,o===r?n=void 0:(Rt=n,n=r),n!==r&&(o=ur())!==r?t=n=[n,o]:(Rt=t,t=r),(u=t!==r?e.substring(u,Rt):t)===r&&(u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=r,0===It&&Vt(ou)),t!==r&&(n=Cr())!==r?u=n:(Rt=u,u=r),u===r&&(u=dr())),u}function dr(){var u,t;return u=Rt,92===e.charCodeAt(Rt)?(t=k,Rt++):(t=r,0===It&&Vt(ou)),t!==r&&nr()!==r?(Ot=u,u=gt()):(Rt=u,u=r),u}function Cr(){var u,t,n,o;return u=function(){var u;return(u=gr())===r&&(u=function(){var u,t,n,o;return u=Rt,t=Rt,n=Rt,It++,o=function(){var u;return(u=gr())===r&&(u=Fr())===r&&(120===e.charCodeAt(Rt)?(u=te,Rt++):(u=r,0===It&&Vt($u)),u===r&&(117===e.charCodeAt(Rt)?(u=re,Rt++):(u=r,0===It&&Vt(Su)))),u}(),o===r&&(o=rr()),It--,o===r?n=void 0:(Rt=n,n=r),n!==r&&(o=ur())!==r?t=n=[n,o]:(Rt=t,t=r),u=t!==r?e.substring(u,Rt):t}()),u}(),u===r&&(u=Rt,48===e.charCodeAt(Rt)?(t=Q,Rt++):(t=r,0===It&&Vt(gu)),t!==r?(n=Rt,It++,o=Fr(),It--,o===r?n=void 0:(Rt=n,n=r),n!==r?(Ot=u,u=mt()):(Rt=u,u=r)):(Rt=u,u=r),u===r&&(u=function(){var u,t,n,o,a,i;return u=Rt,120===e.charCodeAt(Rt)?(t=te,Rt++):(t=r,0===It&&Vt($u)),t!==r?(n=Rt,o=Rt,(a=_r())!==r&&(i=_r())!==r?o=a=[a,i]:(Rt=o,o=r),(n=o!==r?e.substring(n,Rt):o)!==r?(Ot=u,u=St(n)):(Rt=u,u=r)):(Rt=u,u=r),u}(),u===r&&(u=mr()))),u}function gr(){var u,t;return 39===e.charCodeAt(Rt)?(u=V,Rt++):(u=r,0===It&&Vt(Au)),u===r&&(34===e.charCodeAt(Rt)?(u=G,Rt++):(u=r,0===It&&Vt(pu)),u===r&&(92===e.charCodeAt(Rt)?(u=k,Rt++):(u=r,0===It&&Vt(ou)),u===r&&(u=Rt,98===e.charCodeAt(Rt)?(t=q,Rt++):(t=r,0===It&&Vt(mu)),t!==r&&(Ot=u,t=Ft()),(u=t)===r&&(u=Rt,102===e.charCodeAt(Rt)?(t=X,Rt++):(t=r,0===It&&Vt(Fu)),t!==r&&(Ot=u,t=_t()),(u=t)===r&&(u=Rt,110===e.charCodeAt(Rt)?(t=K,Rt++):(t=r,0===It&&Vt(_u)),t!==r&&(Ot=u,t=vt()),(u=t)===r&&(u=Rt,114===e.charCodeAt(Rt)?(t=Z,Rt++):(t=r,0===It&&Vt(vu)),t!==r&&(Ot=u,t=Bt()),(u=t)===r&&(u=Rt,116===e.charCodeAt(Rt)?(t=ee,Rt++):(t=r,0===It&&Vt(Bu)),t!==r&&(Ot=u,t=Dt()),(u=t)===r&&(u=Rt,118===e.charCodeAt(Rt)?(t=ue,Rt++):(t=r,0===It&&Vt(Du)),t!==r&&(Ot=u,t=$t()),u=t)))))))),u}function mr(){var u,t,n,o,a,i,s,c;return u=Rt,117===e.charCodeAt(Rt)?(t=re,Rt++):(t=r,0===It&&Vt(Su)),t!==r?(n=Rt,o=Rt,(a=_r())!==r&&(i=_r())!==r&&(s=_r())!==r&&(c=_r())!==r?o=a=[a,i,s,c]:(Rt=o,o=r),(n=o!==r?e.substring(n,Rt):o)!==r?(Ot=u,u=yt(n)):(Rt=u,u=r)):(Rt=u,u=r),u}function Fr(){var u;return ie.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(yu)),u}function _r(){var u;return se.test(e.charAt(Rt))?(u=e.charAt(Rt),Rt++):(u=r,0===It&&Vt(Pu)),u}function vr(){var u,t,n,o;return It++,u=Rt,123===e.charCodeAt(Rt)?(t=i,Rt++):(t=r,0===It&&Vt(_e)),t!==r?(n=function(){var e,u;return e=Rt,u=Br(),Ot=e,e=u=xt(u)}(),125===e.charCodeAt(Rt)?(o=s,Rt++):(o=r,0===It&&Vt(ve)),o!==r?u=n:(Rt=u,u=r)):(Rt=u,u=r),It--,u===r&&(t=r,0===It&&Vt(bu)),u}function Br(){var u,t,n,o,a,c;if(u=Rt,t=[],n=[],o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=r,0===It&&Vt(Ru)),It--,c===r?a=void 0:(Rt=a,a=r),a!==r&&(c=ur())!==r?o=a=[a,c]:(Rt=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=r,0===It&&Vt(Ru)),It--,c===r?a=void 0:(Rt=a,a=r),a!==r&&(c=ur())!==r?o=a=[a,c]:(Rt=o,o=r);else n=r;for(n===r&&(n=Rt,123===e.charCodeAt(Rt)?(o=i,Rt++):(o=r,0===It&&Vt(_e)),o!==r?(a=Br(),125===e.charCodeAt(Rt)?(c=s,Rt++):(c=r,0===It&&Vt(ve)),c!==r?n=o=[o,a,c]:(Rt=n,n=r)):(Rt=n,n=r));n!==r;){if(t.push(n),n=[],o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=r,0===It&&Vt(Ru)),It--,c===r?a=void 0:(Rt=a,a=r),a!==r&&(c=ur())!==r?o=a=[a,c]:(Rt=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Rt,a=Rt,It++,ce.test(e.charAt(Rt))?(c=e.charAt(Rt),Rt++):(c=r,0===It&&Vt(Ru)),It--,c===r?a=void 0:(Rt=a,a=r),a!==r&&(c=ur())!==r?o=a=[a,c]:(Rt=o,o=r);else n=r;n===r&&(n=Rt,123===e.charCodeAt(Rt)?(o=i,Rt++):(o=r,0===It&&Vt(_e)),o!==r?(a=Br(),125===e.charCodeAt(Rt)?(c=s,Rt++):(c=r,0===It&&Vt(ve)),c!==r?n=o=[o,a,c]:(Rt=n,n=r)):(Rt=n,n=r))}return e.substring(u,Rt)}function Dr(){var e,u;for(e=[],(u=tr())===r&&(u=nr())===r&&(u=or());u!==r;)e.push(u),(u=tr())===r&&(u=nr())===r&&(u=or());return e}function $r(){var u,t,n,o;return u=Rt,t=Dr(),59===e.charCodeAt(Rt)?(n=oe,Rt++):(n=r,0===It&&Vt(Gu)),n!==r?u=t=[t,n]:(Rt=u,u=r),u===r&&(u=Rt,t=function(){var e,u;for(e=[],(u=tr())===r&&(u=ar());u!==r;)e.push(u),(u=tr())===r&&(u=ar());return e}(),(n=ir())===r&&(n=null),(o=nr())!==r?u=t=[t,n,o]:(Rt=u,u=r),u===r&&(u=Rt,t=Dr(),n=function(){var u,t;return u=Rt,It++,e.length>Rt?(t=e.charAt(Rt),Rt++):(t=r,0===It&&Vt(Ne)),It--,t===r?u=void 0:(Rt=u,u=r),u}(),n!==r?u=t=[t,n]:(Rt=u,u=r))),u}var Sr=u.reservedWords||[];if((t=a())!==r&&Rt===e.length)return t;throw t!==r&&Rt0){for(u=1,t=1;u=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.20.12", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", - "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.21.0.tgz", + "integrity": "sha512-PuxUbxcW6ZYe656yL3EAhpy7qXKq0DmYsrJLpbB8XrsCP9Nm+XCg9XFMb5vIDliPD7+U/+M+QJlH17XOcB7eXA==", "dev": true, "dependencies": { - "@ampproject/remapping": "^2.1.0", + "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.7", + "@babel/generator": "^7.21.0", "@babel/helper-compilation-targets": "^7.20.7", - "@babel/helper-module-transforms": "^7.20.11", - "@babel/helpers": "^7.20.7", - "@babel/parser": "^7.20.7", + "@babel/helper-module-transforms": "^7.21.0", + "@babel/helpers": "^7.21.0", + "@babel/parser": "^7.21.0", "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.12", - "@babel/types": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -127,13 +127,14 @@ } }, "node_modules/@babel/generator": { - "version": "7.20.14", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.14.tgz", - "integrity": "sha512-AEmuXHdcD3A52HHXxaTmYlb8q/xMEhoRP67B3T4Oq7lbmSoqroMZzjnGj3+i1io3pdnF8iBYVu4Ilj+c4hBxYg==", + "version": "7.21.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.21.1.tgz", + "integrity": "sha512-1lT45bAYlQhFn/BHivJs43AiW2rg3/UbLyShGfF3C0KmHvO5fSghWd5kBJy30kpRRucGzXStvnnCFniCR2kXAA==", "dev": true, "dependencies": { - "@babel/types": "^7.20.7", + "@babel/types": "^7.21.0", "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", "jsesc": "^2.5.1" }, "engines": { @@ -192,13 +193,13 @@ } }, "node_modules/@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.21.0.tgz", + "integrity": "sha512-HfK1aMRanKHpxemaY2gqBmL04iAPOPRj7DxtNbiDOrJK+gdwkiNRVpCpUJYbUT+aZyemKN8brqTOxzCaG6ExRg==", "dev": true, "dependencies": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" }, "engines": { "node": ">=6.9.0" @@ -229,9 +230,9 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.20.11", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.11.tgz", - "integrity": "sha512-uRy78kN4psmji1s2QtbtcCSaj/LILFDp0f/ymhpQH5QY3nljUZCaNWz9X1dEj/8MBdBEFECs7yRhKn8i7NjZgg==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.21.0.tgz", + "integrity": "sha512-eD/JQ21IG2i1FraJnTMbUarAUkA7G988ofehG5MDCRXaUU91rEBJuCeSoou2Sk1y4RbLYXzqEg1QLwEmRU4qcQ==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.18.9", @@ -240,8 +241,8 @@ "@babel/helper-split-export-declaration": "^7.18.6", "@babel/helper-validator-identifier": "^7.19.1", "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.10", - "@babel/types": "^7.20.7" + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" }, "engines": { "node": ">=6.9.0" @@ -299,23 +300,23 @@ } }, "node_modules/@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.21.0.tgz", + "integrity": "sha512-rmL/B8/f0mKS2baE9ZpyTcTavvEuWhTTW8amjzXNvYG4AwBsqTLikfXsEofsJEfKHf+HQVQbFOHy6o+4cnC/fQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.20.13", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.13.tgz", - "integrity": "sha512-nzJ0DWCL3gB5RCXbUO3KIMMsBY2Eqbx8mBpKGE/02PgyRQFcPQLbkQ1vyy596mZLaP+dAfD+R4ckASzNVmW3jg==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.21.0.tgz", + "integrity": "sha512-XXve0CBtOW0pd7MRzzmoyuSj0e3SEzj8pgyFxnTT1NJZL38BD1MK7yYrm8yefRPIDvNNe14xR4FdbHwpInD4rA==", "dev": true, "dependencies": { "@babel/template": "^7.20.7", - "@babel/traverse": "^7.20.13", - "@babel/types": "^7.20.7" + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" }, "engines": { "node": ">=6.9.0" @@ -407,9 +408,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.15", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.15.tgz", - "integrity": "sha512-DI4a1oZuf8wC+oAJA9RW6ga3Zbe8RZFt7kD9i4qAspz3I/yHet1VvC3DiSy/fsUvv5pvJuNPh0LPOdCcqinDPg==", + "version": "7.21.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.1.tgz", + "integrity": "sha512-JzhBFpkuhBNYUY7qs+wTzNmyCWUHEaAFpQQD2YfU1rPL38/L43Wvid0fFkiOCnHvsGncRZgEPyGnltABLcVDTg==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -610,19 +611,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.20.13", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.13.tgz", - "integrity": "sha512-kMJXfF0T6DIS9E8cgdLCSAL+cuCK+YEZHWiLK0SXpTo8YRj5lpJu3CDNKiIBCne4m9hhTIqUg6SYTAI39tAiVQ==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.0.tgz", + "integrity": "sha512-Xdt2P1H4LKTO8ApPfnO1KmzYMFpp7D/EinoXzLYN/cHcBNrVCAkAtGUcXnHXrl/VGktureU6fkQrHSBE2URfoA==", "dev": true, "dependencies": { "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.7", + "@babel/generator": "^7.21.0", "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", + "@babel/helper-function-name": "^7.21.0", "@babel/helper-hoist-variables": "^7.18.6", "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.13", - "@babel/types": "^7.20.7", + "@babel/parser": "^7.21.0", + "@babel/types": "^7.21.0", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -640,9 +641,9 @@ } }, "node_modules/@babel/types": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", - "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.21.0.tgz", + "integrity": "sha512-uR7NWq2VNFnDi7EYqiRz2Jv/VQIu38tu64Zy8TX2nQFQ6etJ9V/Rr2msW8BS132mum2rL645qpDrLtAJtVpuow==", "dev": true, "dependencies": { "@babel/helper-string-parser": "^7.19.4", @@ -1555,9 +1556,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", + "version": "18.14.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz", + "integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==", "dev": true }, "node_modules/@types/normalize-package-data": { @@ -1606,14 +1607,14 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.52.0.tgz", - "integrity": "sha512-lHazYdvYVsBokwCdKOppvYJKaJ4S41CgKBcPvyd0xjZNbvQdhn/pnJlGtQksQ/NhInzdaeaSarlBjDXHuclEbg==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.53.0.tgz", + "integrity": "sha512-alFpFWNucPLdUOySmXCJpzr6HKC3bu7XooShWM+3w/EL6J2HIoB2PFxpLnq4JauWVk6DiVeNKzQlFEaE+X9sGw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.52.0", - "@typescript-eslint/type-utils": "5.52.0", - "@typescript-eslint/utils": "5.52.0", + "@typescript-eslint/scope-manager": "5.53.0", + "@typescript-eslint/type-utils": "5.53.0", + "@typescript-eslint/utils": "5.53.0", "debug": "^4.3.4", "grapheme-splitter": "^1.0.4", "ignore": "^5.2.0", @@ -1640,14 +1641,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.52.0.tgz", - "integrity": "sha512-e2KiLQOZRo4Y0D/b+3y08i3jsekoSkOYStROYmPUnGMEoA0h+k2qOH5H6tcjIc68WDvGwH+PaOrP1XRzLJ6QlA==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.53.0.tgz", + "integrity": "sha512-MKBw9i0DLYlmdOb3Oq/526+al20AJZpANdT6Ct9ffxcV8nKCHz63t/S0IhlTFNsBIHJv+GY5SFJ0XfqVeydQrQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.52.0", - "@typescript-eslint/types": "5.52.0", - "@typescript-eslint/typescript-estree": "5.52.0", + "@typescript-eslint/scope-manager": "5.53.0", + "@typescript-eslint/types": "5.53.0", + "@typescript-eslint/typescript-estree": "5.53.0", "debug": "^4.3.4" }, "engines": { @@ -1667,13 +1668,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.52.0.tgz", - "integrity": "sha512-AR7sxxfBKiNV0FWBSARxM8DmNxrwgnYMPwmpkC1Pl1n+eT8/I2NAUPuwDy/FmDcC6F8pBfmOcaxcxRHspgOBMw==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.53.0.tgz", + "integrity": "sha512-Opy3dqNsp/9kBBeCPhkCNR7fmdSQqA+47r21hr9a14Bx0xnkElEQmhoHga+VoaoQ6uDHjDKmQPIYcUcKJifS7w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.52.0", - "@typescript-eslint/visitor-keys": "5.52.0" + "@typescript-eslint/types": "5.53.0", + "@typescript-eslint/visitor-keys": "5.53.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1684,13 +1685,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.52.0.tgz", - "integrity": "sha512-tEKuUHfDOv852QGlpPtB3lHOoig5pyFQN/cUiZtpw99D93nEBjexRLre5sQZlkMoHry/lZr8qDAt2oAHLKA6Jw==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.53.0.tgz", + "integrity": "sha512-HO2hh0fmtqNLzTAme/KnND5uFNwbsdYhCZghK2SoxGp3Ifn2emv+hi0PBUjzzSh0dstUIFqOj3bp0AwQlK4OWw==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.52.0", - "@typescript-eslint/utils": "5.52.0", + "@typescript-eslint/typescript-estree": "5.53.0", + "@typescript-eslint/utils": "5.53.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -1711,9 +1712,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.52.0.tgz", - "integrity": "sha512-oV7XU4CHYfBhk78fS7tkum+/Dpgsfi91IIDy7fjCyq2k6KB63M6gMC0YIvy+iABzmXThCRI6xpCEyVObBdWSDQ==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.53.0.tgz", + "integrity": "sha512-5kcDL9ZUIP756K6+QOAfPkigJmCPHcLN7Zjdz76lQWWDdzfOhZDTj1irs6gPBKiXx5/6O3L0+AvupAut3z7D2A==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1724,13 +1725,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.52.0.tgz", - "integrity": "sha512-WeWnjanyEwt6+fVrSR0MYgEpUAuROxuAH516WPjUblIrClzYJj0kBbjdnbQXLpgAN8qbEuGywiQsXUVDiAoEuQ==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.53.0.tgz", + "integrity": "sha512-eKmipH7QyScpHSkhbptBBYh9v8FxtngLquq292YTEQ1pxVs39yFBlLC1xeIZcPPz1RWGqb7YgERJRGkjw8ZV7w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.52.0", - "@typescript-eslint/visitor-keys": "5.52.0", + "@typescript-eslint/types": "5.53.0", + "@typescript-eslint/visitor-keys": "5.53.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1751,16 +1752,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.52.0.tgz", - "integrity": "sha512-As3lChhrbwWQLNk2HC8Ree96hldKIqk98EYvypd3It8Q1f8d5zWyIoaZEp2va5667M4ZyE7X8UUR+azXrFl+NA==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.53.0.tgz", + "integrity": "sha512-VUOOtPv27UNWLxFwQK/8+7kvxVC+hPHNsJjzlJyotlaHjLSIgOCKj9I0DBUjwOOA64qjBwx5afAPjksqOxMO0g==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.52.0", - "@typescript-eslint/types": "5.52.0", - "@typescript-eslint/typescript-estree": "5.52.0", + "@typescript-eslint/scope-manager": "5.53.0", + "@typescript-eslint/types": "5.53.0", + "@typescript-eslint/typescript-estree": "5.53.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" @@ -1777,12 +1778,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.52.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.52.0.tgz", - "integrity": "sha512-qMwpw6SU5VHCPr99y274xhbm+PRViK/NATY6qzt+Et7+mThGuFSl/ompj2/hrBlRP/kq+BFdgagnOSgw9TB0eA==", + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.53.0.tgz", + "integrity": "sha512-JqNLnX3leaHFZEN0gCh81sIvgrp/2GOACZNgO4+Tkf64u51kTpAyWFOY8XHx8XuXr3N2C9zgPPHtcpMg6z1g0w==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.52.0", + "@typescript-eslint/types": "5.53.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -2229,9 +2230,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001454", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001454.tgz", - "integrity": "sha512-4E63M5TBbgDoA9dQoFRdjL6iAmzTrz3rwYWoKDlvnvyvBxjCZ0rrUoX3THhEMie0/RYuTCeMbeTYLGAWgnLwEg==", + "version": "1.0.30001457", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001457.tgz", + "integrity": "sha512-SDIV6bgE1aVbK6XyxdURbUE89zY7+k1BBBaOwYwkNCglXlel/E7mELiHC64HQ+W0xSKlqWhV9Wh7iHxUjMs4fA==", "dev": true, "funding": [ { @@ -2644,9 +2645,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.300", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.300.tgz", - "integrity": "sha512-tHLIBkKaxvG6NnDWuLgeYrz+LTwAnApHm2R3KBNcRrFn0qLmTrqQeB4X4atfN6YJbkOOOSdRBeQ89OfFUelnEQ==", + "version": "1.4.305", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.305.tgz", + "integrity": "sha512-WETy6tG0CT5gm1O+xCbyapWNsCcmIvrn4NHViIGYo2AT8FV2qUCXdaB+WqYxSv/vS5mFqhBYnfZAAkVArjBmUg==", "dev": true }, "node_modules/emittery": { @@ -4036,9 +4037,9 @@ } }, "node_modules/jest-cli/node_modules/yargs": { - "version": "17.7.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.0.tgz", - "integrity": "sha512-dwqOPg5trmrre9+v8SUo2q/hAwyKoVfu8OC1xPHKJGNdxAvPl4sKxL4vBnh3bQz/ZvvGAFeA5H3ou2kcOY8sQQ==", + "version": "17.7.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.1.tgz", + "integrity": "sha512-cwiTb08Xuv5fqF4AovYacTFNxk62th7LKJ6BL9IGUpTJrWoU7/7WdQGTP2SjKf1dUNBGzDd28p/Yfs/GI6JrLw==", "dev": true, "dependencies": { "cliui": "^8.0.1", @@ -5813,9 +5814,9 @@ } }, "node_modules/rollup": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.15.0.tgz", - "integrity": "sha512-F9hrCAhnp5/zx/7HYmftvsNBkMfLfk/dXUh73hPSM2E3CRgap65orDNJbLetoiUFwSAk6iHPLvBrZ5iHYvzqsg==", + "version": "3.17.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.17.2.tgz", + "integrity": "sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -6270,9 +6271,9 @@ } }, "node_modules/terser": { - "version": "5.16.3", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.3.tgz", - "integrity": "sha512-v8wWLaS/xt3nE9dgKEWhNUFP6q4kngO5B8eYFUuebsu7Dw/UNAnpUod6UHo04jSSkv8TzKHjZDSd7EXdDQAl8Q==", + "version": "5.16.4", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.4.tgz", + "integrity": "sha512-5yEGuZ3DZradbogeYQ1NaGz7rXVBDWujWlx1PT8efXO6Txn+eWbfKqB2bTDVmFXmePFkoLU6XI8UektMIEA0ug==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.2", diff --git a/package.json b/package.json index 2e28110f..0856ff7e 100644 --- a/package.json +++ b/package.json @@ -60,9 +60,9 @@ "@rollup/plugin-typescript": "^11.0.0", "@types/chai": "^4.3.4", "@types/jest": "^29.4.0", - "@types/node": "^18.13.0", - "@typescript-eslint/eslint-plugin": "^5.52.0", - "@typescript-eslint/parser": "^5.52.0", + "@types/node": "^18.14.0", + "@typescript-eslint/eslint-plugin": "^5.53.0", + "@typescript-eslint/parser": "^5.53.0", "chai": "^4.3.7", "chai-like": "^1.1.1", "copyfiles": "^2.4.1", @@ -70,10 +70,10 @@ "express": "4.18.2", "jest": "^29.4.3", "rimraf": "^4.1.2", - "rollup": "^3.15.0", + "rollup": "^3.17.2", "rollup-plugin-ignore": "1.0.10", "source-map": "^0.8.0-beta.0", - "terser": "^5.16.3", + "terser": "^5.16.4", "ts-jest": "^29.0.5", "tsd": "^0.25.0", "tslib": "^2.5.0", diff --git a/web-test/package-lock.json b/web-test/package-lock.json index 184ed45d..01c57343 100644 --- a/web-test/package-lock.json +++ b/web-test/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0", "license": "MIT", "devDependencies": { - "puppeteer": "^19.7.1" + "puppeteer": "^19.7.2" }, "engines": { "node": ">=14" @@ -51,9 +51,9 @@ } }, "node_modules/@types/node": { - "version": "18.13.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", - "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", + "version": "18.14.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.0.tgz", + "integrity": "sha512-5EWrvLmglK+imbCJY0+INViFWUHg1AHel1sq4ZVSfdcNqGy9Edv3UB9IIzzg+xPaUcAgZYcfVs2fBcwDeZzU0A==", "dev": true, "optional": true }, @@ -206,6 +206,18 @@ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", "dev": true }, + "node_modules/chromium-bidi": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.4.tgz", + "integrity": "sha512-4BX5cSaponuvVT1+SbLYTOAgDoVtX/Khoc9UsbFJ/AsPVUeFAM3RiIDFI6XFhLYMi9WmVJqh1ZH+dRpNKkKwiQ==", + "dev": true, + "dependencies": { + "mitt": "3.0.0" + }, + "peerDependencies": { + "devtools-protocol": "*" + } + }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -499,6 +511,12 @@ "node": "*" } }, + "node_modules/mitt": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz", + "integrity": "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==", + "dev": true + }, "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", @@ -620,9 +638,9 @@ } }, "node_modules/puppeteer": { - "version": "19.7.1", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.7.1.tgz", - "integrity": "sha512-Hampj7jHlicySL1sSLHCwoFoRCi6RcEbnZmRE5brtbk0mp6Td33+9kWQD2eFs09772JIt00ybPKr50Gt7Y18Xg==", + "version": "19.7.2", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.7.2.tgz", + "integrity": "sha512-4Lm7Qpe/LU95Svirei/jDLDvR5oMrl9BPGd7HMY5+Q28n+BhvKuW97gKkR+1LlI86bO8J3g8rG/Ll5kv9J1nlQ==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -630,18 +648,19 @@ "https-proxy-agent": "5.0.1", "progress": "2.0.3", "proxy-from-env": "1.1.0", - "puppeteer-core": "19.7.1" + "puppeteer-core": "19.7.2" }, "engines": { "node": ">=14.1.0" } }, "node_modules/puppeteer-core": { - "version": "19.7.1", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.7.1.tgz", - "integrity": "sha512-4b5Go25IA+0xrUIw0Qtqi4nxc0qwdu/C7VT1+tFPl1W27207YT+7bxfANC3PjXMlS6bcbzinCf5YfGqMl8tfyQ==", + "version": "19.7.2", + "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.7.2.tgz", + "integrity": "sha512-PvI+fXqgP0uGJxkyZcX51bnzjFA73MODZOAv0fSD35yR7tvbqwtMV3/Y+hxQ0AMMwzxkEebP6c7po/muqxJvmQ==", "dev": true, "dependencies": { + "chromium-bidi": "0.4.4", "cross-fetch": "3.1.5", "debug": "4.3.4", "devtools-protocol": "0.0.1094867", @@ -657,13 +676,9 @@ "node": ">=14.1.0" }, "peerDependencies": { - "chromium-bidi": "0.4.3", "typescript": ">= 4.7.4" }, "peerDependenciesMeta": { - "chromium-bidi": { - "optional": true - }, "typescript": { "optional": true } diff --git a/web-test/package.json b/web-test/package.json index 76573818..03829213 100644 --- a/web-test/package.json +++ b/web-test/package.json @@ -11,7 +11,7 @@ "author": "Joe Hildebrand ", "license": "MIT", "devDependencies": { - "puppeteer": "^19.7.1" + "puppeteer": "^19.7.2" }, "engines": { "node": ">=14" From 33dd57241ec44dc690a4dd84f24e7d5cb01516a3 Mon Sep 17 00:00:00 2001 From: Joe Hildebrand Date: Tue, 21 Feb 2023 15:46:15 -0700 Subject: [PATCH 2/3] Release prep --- CHANGELOG.md | 57 ++++- bin/peggy-cli.js | 16 +- docs/_includes/components/footer.html | 4 +- docs/documentation.html | 291 +++++++++++++++----------- docs/index.html | 2 +- docs/js/benchmark-bundle.min.js | 4 +- docs/js/examples.js | 2 +- docs/js/test-bundle.min.js | 4 +- docs/vendor/peggy/peggy.min.js | 4 +- lib/parser.js | 2 +- lib/peg.js | 35 +++- lib/version.js | 2 +- package-lock.json | 4 +- package.json | 2 +- test/cli/run.spec.ts | 4 +- 15 files changed, 266 insertions(+), 167 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26ac534b..73d2def6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,28 +3,63 @@ Change Log This file documents all notable changes to Peggy. -Unreleased ----------- +3.0.0 +----- -Released: TBD +Released: 2023-02-21 ### Major Changes - [#280](https://github.com/peggyjs/peggy/issues/280) Add inline examples to the documentation, from @hildjj -- [#240](https://github.com/peggyjs/peggy/issues/240) Generate SourceNodes for bytecode -- [#338](https://github.com/peggyjs/peggy/pull/338) BREAKING CHANGE. Update dependencies, causing minimum supported version of node.js to move to 14. Generated grammar source should still work on older node versions and some older browsers, but testing is currently manual for those. -- [#291]: Add support for repetition operator `expression|min .. max, delimiter|`, from @Mingun - -Important information for plug-ins' authors: PR [#291] added 4 new opcodes to the bytecode: +- [#240](https://github.com/peggyjs/peggy/issues/240) Generate SourceNodes for + bytecode, from @hildjj +- [#338](https://github.com/peggyjs/peggy/pull/338) BREAKING CHANGE. Update + dependencies, causing minimum supported version of node.js to move to 14. + Generated grammar source should still work on older node versions and some + older browsers, but testing is currently manual for those. from @hildjj +- [#291](https://github.com/peggyjs/peggy/pull/291): Add support for + repetition operator `expression|min .. max, delimiter|`, from @Mingun +- [#xxx]: BREAKING CHANGE. Updated the list of JavaScript reserved words. + This will break existing grammars that use any of the new words in their + rule or label names. from @hildjj + +Important information for plug-in authors: PR [#291] added 4 new opcodes to the bytecode: - `IF_LT` - `IF_GE` - `IF_LT_DYNAMIC` - `IF_GE_DYNAMIC` -and added a new AST node and a visitor method `repeated`. Do not forgot to update your plug-ins. - -[#291]: https://github.com/peggyjs/peggy/pull/291 +and added a new AST node and a visitor method `repeated`. Do not forget to update your plug-ins. + +Important information for grammar authors: the following words, which used to +be valid identifiers for rules and labels, are now treated as JavaScript +reserved words, and will cause errors at compile time if you are using them: + +- abstract +- arguments +- as +- async +- boolean +- byte +- char +- double +- eval +- final +- float +- from +- get +- goto +- int +- long +- native +- of +- set +- short +- synchronized +- throws +- transient +- volatile ### Minor Changes diff --git a/bin/peggy-cli.js b/bin/peggy-cli.js index 7234ddf3..5f990675 100644 --- a/bin/peggy-cli.js +++ b/bin/peggy-cli.js @@ -111,6 +111,14 @@ class PeggyCLI extends Command { .default([], "the first rule in the grammar") .argParser(commaArg) ) + .addOption( + new Option( + "--ast", + "Output a grammar AST instead of a parser code" + ) + .default(false) + .conflicts(["test", "testFile", "sourceMap"]) + ) .option( "--cache", "Make generated parser cache results", @@ -172,14 +180,6 @@ class PeggyCLI extends Command { "-m, --source-map [mapfile]", "Generate a source map. If name is not specified, the source map will be named \".map\" if input is a file and \"source.map\" if input is a standard input. If the special filename `inline` is given, the sourcemap will be embedded in the output file as a data URI. If the filename is prefixed with `hidden:`, no mapping URL will be included so that the mapping can be specified with an HTTP SourceMap: header. This option conflicts with the `-t/--test` and `-T/--test-file` options unless `-o/--output` is also specified" ) - .addOption( - new Option( - "--ast", - "Output a grammar AST instead of a parser code" - ) - .default(false) - .conflicts(["test", "testFile", "sourceMap"]) - ) .option( "-S, --start-rule ", "When testing, use the given rule as the start rule. If this rule is not in the allowed start rules, it will be added." diff --git a/docs/_includes/components/footer.html b/docs/_includes/components/footer.html index af79c390..bc39bb0d 100644 --- a/docs/_includes/components/footer.html +++ b/docs/_includes/components/footer.html @@ -1,8 +1,8 @@ \ No newline at end of file + diff --git a/docs/documentation.html b/docs/documentation.html index aea207af..65123d5a 100644 --- a/docs/documentation.html +++ b/docs/documentation.html @@ -205,9 +205,10 @@

Command Line

--extra-options-file <file>, you will need to ensure you are using the correct types. In particular, you may specify "plugin" as a string, or "plugins" as an array of objects that have a use -method. Always use the long (two-dash) form of the option. Options that -contain dashes should be specified in camel case. You may also specify an -"input" field instead of using the command line. For example: +method. Always use the long (two-dash) form of the option, without the +dashes, as the key. Options that contain internal dashes should be specified +in camel case. You may also specify an "input" field instead of using the +command line. For example:

// config.js or config.cjs
@@ -223,18 +224,22 @@ 

Command Line

-You can test generated parser immediately if you specify the -t/--test or -T/--test-file -option. This option conflicts with the option -m/--source-map unless -o/--output is -also specified. This option conflicts with the --ast option. +You can test generated parser immediately if you specify the +-t/--test or -T/--test-file +option. This option conflicts with the +--ast option, and also conflicts with the +-m/--source-map option unless -o/--output is also +specified.

The CLI will exit with the code:

    -
  • 0 if all was success
  • -
  • 1 if you supply incorrect or conflicting parameters
  • -
  • 2 if all parameters is correct, you specify the -t/--test or -T/--test-file option -and specified input does not parsed with the specified grammar
  • +
  • 0: if successful
  • +
  • 1: if you supply incorrect or conflicting parameters
  • +
  • 2: if you specified the +-t/--test or -T/--test-file option and the specified +input fails parsing with the specified grammar

Examples:

@@ -280,9 +285,10 @@

JavaScript API

import * as peggy from "peggy";
-

For use in browsers, include the Peggy library in your web page or application using -the <script> tag. If Peggy detects an AMD loader, it will -define itself as a module, otherwise the API will be available in the +

For use in browsers, include the Peggy library in your web page or +application using the <script> tag. If Peggy detects an AMD loader, it will define +itself as a module, otherwise the API will be available in the peg global object.

To generate a parser, call the peggy.generate method and pass your @@ -311,7 +317,7 @@

JavaScript API

false).
dependencies
-
Parser dependencies, the value is an object which maps variables used to +
Parser dependencies. The value is an object which maps variables used to access the dependencies in the parser to module IDs used to load them; valid only when format is set to "amd", "commonjs", "es", or "umd". @@ -340,11 +346,13 @@

JavaScript API

grammarSource
-
any object that represent origin of the input grammar. The CLI will set +
Any object that represent origin of the input grammar. The CLI will convert it to a string with the path to the file; parsers in network applications might use the socket and so on. The supplied object will be available at key source in the location objects, that returned by the -location() API function (default: undefined).
+location() API function (default: undefined). It is +recommended that if you do not use a string, the object you supply has a +useful toString() implementation.
info
Callback for informational messages. See Error Reporting
@@ -442,7 +450,13 @@

Using the Parser

Name of the rule to start parsing from.
tracer
-
Tracer to use.
+
+ Tracer to use. A tracer is an object containing a trace() function. + trace() takes a single parameter which is an object containing + "type" ("rule.enter", "rule.fail", "rule.match"), "rule" (the rule name as a + string), "location", and, if the type is + "rule.match", "result" (what the rule returned). +
... (any others)
Made available in the options variable
@@ -451,16 +465,16 @@

Using the Parser

As you can see above, parsers can also support their own custom options. For example:

const parser = peggy.generate(`
-{
-// options are available in the per-parse initializer
-console.log(options.validWords);  // outputs "[ 'boo', 'baz', 'boop' ]"
-}
+  {
+  // options are available in the per-parse initializer
+  console.log(options.validWords);  // outputs "[ 'boo', 'baz', 'boop' ]"
+  }
 
-validWord = @word:$[a-z]+ &{ return options.validWords.includes(word) }
+  validWord = @word:$[a-z]+ &{ return options.validWords.includes(word) }
 `);
 
 const result = parser.parse("boo", {
-validWords: [ "boo", "baz", "boop" ]
+  validWords: [ "boo", "baz", "boop" ]
 });
 
 console.log(result);  // outputs "boo"
@@ -477,22 +491,22 @@ 

Grammar Syntax and Semantics

values.

start
-= additive
+  = additive
 
 additive
-= left:multiplicative "+" right:additive { return left + right; }
-/ multiplicative
+  = left:multiplicative "+" right:additive { return left + right; }
+  / multiplicative
 
 multiplicative
-= left:primary "*" right:multiplicative { return left * right; }
-/ primary
+  = left:primary "*" right:multiplicative { return left * right; }
+  / primary
 
 primary
-= integer
-/ "(" additive:additive ")" { return additive; }
+  = integer
+  / "(" additive:additive ")" { return additive; }
 
-integer "integer"
-= digits:[0-9]+ { return parseInt(digits.join(""), 10); }
+integer "simple number" + = digits:[0-9]+ { return parseInt(digits.join(""), 10); }

On the top level, the grammar consists of rules (in our example, there are five of them). Each rule has a name (e.g. @@ -533,34 +547,34 @@

Grammar Syntax and Semantics

initializer and a per-parse initializer:

{{'{{'}}
-function makeInteger(o) {
-return parseInt(o.join(""), 10);
-}
+  function makeInteger(o) {
+    return parseInt(o.join(""), 10);
+  }
 }}
 
 {
-if (options.multiplier) {
-input = "(" + input + ")*(" + options.multiplier + ")";
-}
+  if (options.multiplier) {
+    input = `(${input})*(${options.multiplier})`;
+  }
 }
 
 start
-= additive
+  = additive
 
 additive
-= left:multiplicative "+" right:additive { return left + right; }
-/ multiplicative
+  = left:multiplicative "+" right:additive { return left + right; }
+  / multiplicative
 
 multiplicative
-= left:primary "*" right:multiplicative { return left * right; }
-/ primary
+  = left:primary "*" right:multiplicative { return left * right; }
+  / primary
 
 primary
-= integer
-/ "(" additive:additive ")" { return additive; }
+  = integer
+  / "(" additive:additive ")" { return additive; }
 
-integer "integer"
-= digits:[0-9]+ { return makeInteger(digits); }
+integer "simple number" + = digits:[0-9]+ { return makeInteger(digits); }

The parsing expressions of the rules are used to match the input text to the grammar. There are various types of expressions — matching characters or @@ -587,8 +601,8 @@

Grammar Syntax and Semantics

One special case of parser expression is a parser action — a piece of JavaScript code inside curly braces (“{” and “}”) that takes match -results of some of the the preceding expressions and returns a JavaScript value. -This value is considered match result of the preceding expression (in other +results of the preceding expression and returns a JavaScript value. +This value is then considered match result of the preceding expression (in other words, the parser action is a match result transformer).

In our arithmetics example, there are many parser actions. Consider the @@ -700,7 +714,7 @@

Parsing Expressio
rule
-

Match a parsing expression of a rule recursively and return its match +

Match a parsing expression of a rule (perhaps recursively) and return its match result.

@@ -798,13 +812,14 @@

Parsing Expressio Hence

    -
  • expression |..| is an equivalent of expression |0..| +
  • expression |..| is equivalent to expression |0..| and expression *
  • -
  • expression |1..| is an equivalent of expression +
  • +
  • expression |1..| is equivalent to expression +
-

Optionally, delimiter expression can be specified. Delimiter must appear - between expressions exactly once and it is not included in the final array.

+

Optionally, delimiter expression can be specified. The + delimiter is a separate parser expression, its match results are ignored, + and it must appear between matched expressions exactly once.

count, min and max can be represented as:

@@ -989,10 +1004,11 @@

Parsing Expressio
label : expression
-

Match the expression and remember its match result under given label. -The label must be a JavaScript identifier, but not in the list of reserved words. -By default this is a list of JavaScript reserved words, -but plugins can change it.

+

Match the expression and remember its match result under given label. The +label must be a JavaScript identifier, which includes not being in the list of +reserved words. By default this is a list of JavaScript +reserved words, but plugins can change it.

Labeled expressions are useful together with actions, where saved match results can be accessed by action's JavaScript code.

@@ -1017,7 +1033,7 @@

Parsing Expressio

Match the expression and if the label exists, remember its match result under given label. The label must be a JavaScript identifier if it exists, but not in the list of reserved words. -By default this is a list of JavaScript reserved words, +By default this is a list of JavaScript reserved words, but plugins can change it.

Return the value of this expression from the rule, or "pluck" it. You @@ -1181,38 +1197,51 @@

Parsing Lists

One of the most frequent questions about Peggy grammars is how to parse a delimited list of items. The cleanest current approach is:

-
list = word|.., _ "," _|
-  word = $[a-z]i+
-  _ = [ \t]*
+
list
+  = word|.., _ "," _|
+word
+  = $[a-z]i+
+_
+  = [ \t]*

If you want to allow a trailing delimiter, append it to the end of the rule:

-
list = word|.., delimiter| delimiter?
-  delimiter = _ "," _
-  word = $[a-z]i+
-  _ = [ \t]*
+
list
+  = word|.., delimiter| delimiter?
+delimiter
+  = _ "," _
+word
+  = $[a-z]i+
+_
+  = [ \t]*

In the grammars created before the repetition operator was added to the peggy (in 2.1.0) you could see that approach, which is equivalent of the new approach with the repetition operator, but less efficient on long lists:

-
list = head:word tail:(_ "," _ @word)* { return [head, ...tail]; }
-word = $[a-z]i+
-_ = [ \t]*
+
list
+  = head:word tail:(_ "," _ @word)* { return [head, ...tail]; }
+word
+  = $[a-z]i+
+_
+  = [ \t]*

Note that the @ in the tail section plucks the word out of the parentheses, NOT out of the rule itself.

Error Messages

-

As described above, you can annotate your grammar rules with human-readable names that will be used in error messages. For example, this production:

+

As described above, you can annotate your grammar rules with human-readable +names that will be used in error messages. For example, this production:

-
integer "integer"
-= digits:[0-9]+
+
integer "simple number"
+  = digits:[0-9]+

will produce an error message like:

-
Expected integer but "a" found.
+
Expected simple number but "a" found.
-

when parsing a non-number, referencing the human-readable name "integer." Without the human-readable name, Peggy instead uses a description of the character class that failed to match:

+

when parsing a non-number, referencing the human-readable name "simple +number." Without the human-readable name, Peggy instead uses a description of +the character class that failed to match:

Expected [0-9] but "a" found.
@@ -1245,46 +1274,46 @@

Error Messages

let source = ...;
 try {
-peggy.generate(text, { grammarSource: source, ... }); // throws SyntaxError or GrammarError
-parser.parse(input, { grammarSource: source2, ... }); // throws SyntaxError
+  peggy.generate(text, { grammarSource: source, ... }); // throws SyntaxError or GrammarError
+  parser.parse(input, { grammarSource: source2, ... }); // throws SyntaxError
 } catch (e) {
-if (typeof e.format === "function") {
-console.log(e.format([
-{ source, text },
-{ source: source2, text: input },
-...
-]));
-} else {
-throw e;
-}
+  if (typeof e.format === "function") {
+    console.log(e.format([
+      { source, text },
+      { source: source2, text: input },
+      ...
+    ]));
+  } else {
+    throw e;
+  }
 }

Messages generated by format() look like this

Error: Possible infinite loop when parsing (left recursion: start -> proxy -> end -> start)
 --> .\recursion.pegjs:1:1
-|
+  |
 1 | start = proxy;
-| ^^^^^
+  | ^^^^^
 note: Step 1: call of the rule "proxy" without input consumption
 --> .\recursion.pegjs:1:9
-|
+  |
 1 | start = proxy;
-|         ^^^^^
+  |         ^^^^^
 note: Step 2: call of the rule "end" without input consumption
 --> .\recursion.pegjs:2:11
-|
+  |
 2 | proxy = a:end { return a; };
-|           ^^^
+  |           ^^^
 note: Step 3: call itself without input consumption - left recursion
 --> .\recursion.pegjs:3:8
-|
+  |
 3 | end = !start
-|        ^^^^^
+ | ^^^^^

A plugin may register additional passes that can generate GrammarErrors to report about problems, but they shouldn't do that by throwing an instance of GrammarError. They should -use a session API instead.

+use the session API instead.

Locations

@@ -1293,9 +1322,9 @@

Locations

information by calling location() function, which returns you the following object:

{
-source: options.grammarSource,
-start: { offset: 23, line: 5, column: 6 },
-end: { offset: 25, line: 5, column: 8 }
+  source: options.grammarSource,
+  start: { offset: 23, line: 5, column: 6 },
+  end: { offset: 25, line: 5, column: 8 }
 }
 
@@ -1325,9 +1354,9 @@

Locations

For the per-parse initializer, the location is the start of the input, i.e.

{
-source: options.grammarSource,
-start: { offset: 0, line: 1, column: 1 },
-end: { offset: 0, line: 1, column: 1 }
+  source: options.grammarSource,
+  start: { offset: 0, line: 1, column: 1 },
+  end: { offset: 0, line: 1, column: 1 }
 }
 
@@ -1338,21 +1367,22 @@

Locations

the input.

Line and column are somewhat expensive to compute, so if you just need the -offset, there's also a function offset() that returns just the start offset, -and a function range() that returns the object:

+offset, there's also a function offset() that returns just the +start offset, and a function range() that returns the object:

-

-{
-source: options.grammarSource,
-start: 23,
-end: 25
-}
-
+
{
+  source: options.grammarSource,
+  start: 23,
+  end: 25
+}
-

(i.e. difference from the location() result only in type of start and end -properties, which contain just an offset instead of the Location object.)

+

(i.e. difference from the location() result only in type of +start and end properties, which contain just an +offset instead of the Location +object.)

-

All notes about values for location() object is also applicable to the range() +

All of the notes about values for location() object are also +applicable to the range() and offset() calls.

Currently, Peggy only works with the Basic Multilingual Plane (BMP) of Unicode. @@ -1360,13 +1390,17 @@

Locations

try to parse characters outside this Plane (for example, emoji, or any surrogate pairs), you may get an offset inside a code point.

-

Changing this behavior may be a breaking change and will not to be done before -Peggy 2.0. You can join to the discussion for this topic on the GitHub Discussions page.

+

Changing this behavior might be a breaking change, so it will likely cause +a major version number increase if it happens. You can join to the discussion +for this topic on the GitHub Discussions +page.

Plugins API

-

A plugin is an object with the use(config, options) method. That method will be -called for all plugins in the options.plugins array, supplied to the generate() +

A plugin is an object with the use(config, options) method. +That method will be called for all plugins in the options.plugins +array, supplied to the generate() method.

use accepts these parameters:

@@ -1392,8 +1426,8 @@

config

  • generate — passes used for actual code generating
  • -

    A plugin that implement a pass usually should push it to the end of the correct -array. Pass is a simple function with signature pass(ast, options, session):

    +

    A plugin that implements a pass should usually push it to the end of the correct +array. Each pass is a function with the signature pass(ast, options, session):

    • ast — the AST created by the config.parser.parse() method
    • @@ -1411,7 +1445,7 @@

      config

      label names. This list can be modified by plugins. That property is not required to be sorted or not contain duplicates, but it is recommend to remove duplicates.

      -

      Default list contains JavaScript reserved words, and can be found +

      Default list contains JavaScript reserved words, and can be found in the peggy.RESERVED_WORDS property.

    @@ -1424,7 +1458,7 @@

    options

    Session API

    Each compilation request is represented by a Session instance. An object of this class -is created by the compiler and passed to an each pass as a 3rd parameter. The session +is created by the compiler and given to each pass as a 3rd parameter. The session object gives access to the various compiler services. At the present time there is only one such service: reporting of diagnostics.

    @@ -1480,16 +1514,17 @@

    Compatibility

    following environments:

      -
    • Node.js 12+
    • -
    • Internet Explorer 9+
    • -
    • Edge
    • -
    • Firefox
    • -
    • Chrome
    • -
    • Safari
    • -
    • Opera
    • +
    • Node.js 14+
    • +
    • Edge
    • +
    • Firefox
    • +
    • Chrome
    • +
    • Safari
    • +
    • Opera
    - +The generated parser is intended to run in older environments when the format +chosen is "globals" or "umd". Extensive testing is NOT performed in these +environments, but issues filed regarding the generated code will be fixed.