!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=191)}([function(e,t,n){var i=n(110);e.exports=function(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.NotNull=function(e,t,n){},t.Nullable=function(e,t,n){},t.Override=function(e,t,n){},t.SuppressWarnings=function(e){return(e,t,n)=>{}}},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(62),a=n(11),r=n(1),l=n(95),s=n(30);class d extends l.RuleContext{constructor(e,t){null==t?super():super(e,t)}static emptyContext(){return d.EMPTY}copyFrom(e){if(this._parent=e._parent,this.invokingState=e.invokingState,this._start=e._start,this._stop=e._stop,e.children){this.children=[];for(let t of e.children)t instanceof o.ErrorNode&&this.addChild(t)}}enterRule(e){}exitRule(e){}addAnyChild(e){return this.children?this.children.push(e):this.children=[e],e}addChild(e){return e instanceof s.TerminalNode?(e.setParent(this),void this.addAnyChild(e)):e instanceof l.RuleContext?void this.addAnyChild(e):(e=new s.TerminalNode(e),this.addAnyChild(e),e.setParent(this),e)}addErrorNode(e){if(e instanceof o.ErrorNode){const t=e;return t.setParent(this),this.addAnyChild(t)}{const t=e;let n=new o.ErrorNode(t);return this.addAnyChild(n),n.setParent(this),n}}removeLastChild(){this.children&&this.children.pop()}get parent(){let e=super.parent;if(void 0===e||e instanceof d)return e;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(e,t){if(!this.children||e<0||e>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==t)return this.children[e];let n=this.tryGetChild(e,t);if(void 0===n)throw new Error("The specified node does not exist");return n}tryGetChild(e,t){if(!this.children||e<0||e>=this.children.length)return;let n=-1;for(let i of this.children)if(i instanceof t&&(n++,n===e))return i}getToken(e,t){let n=this.tryGetToken(e,t);if(void 0===n)throw new Error("The specified token does not exist");return n}tryGetToken(e,t){if(!this.children||t<0||t>=this.children.length)return;let n=-1;for(let i of this.children)if(i instanceof s.TerminalNode){if(i.symbol.type===e&&(n++,n===t))return i}}getTokens(e){let t=[];if(!this.children)return t;for(let n of this.children)if(n instanceof s.TerminalNode){n.symbol.type===e&&t.push(n)}return t}get ruleContext(){return this}getRuleContext(e,t){return this.getChild(e,t)}tryGetRuleContext(e,t){return this.tryGetChild(e,t)}getRuleContexts(e){let t=[];if(!this.children)return t;for(let n of this.children)n instanceof e&&t.push(n);return t}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex>>0)-n+t,n|=0}return n}(t):"object"==typeof t&&(t=t.hashCode());let n=t;return n=Math.imul(n,3432918353),n=n<<15|n>>>17,n=Math.imul(n,461845907),e=(e^=n)<<13|e>>>19,4294967295&(e=Math.imul(e,5)+3864292196)}function i(e,t){return e^=4*t,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),e^=e>>>16}e.initialize=t,e.update=n,e.finish=i,e.hashCode=function(e,o=0){let a=t(o),r=0;for(let t of e)a=n(a,t),r++;return a=i(a,r),a}}(t.MurmurHash||(t.MurmurHash={}))},function(e,t,n){"use strict";(function(e,i){var o;n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return C})),n.d(t,"e",(function(){return E}));let a=!1,r=!1,l=!1,s=!1,d=!1,c=!1,u=!1,m=void 0,h="en",p=void 0,T=void 0;const b="object"==typeof self?self:"object"==typeof e?e:{};let g=void 0;void 0!==b.vscode&&void 0!==b.vscode.process?g=b.vscode.process:void 0!==i&&(g=i);const x="string"==typeof(null===(o=null==g?void 0:g.versions)||void 0===o?void 0:o.electron)&&"renderer"===g.type,f=x&&(null==g?void 0:g.sandboxed);(()=>{if(f)return"bypassHeatCheck";const e=null==g?void 0:g.env.VSCODE_BROWSER_CODE_LOADING})();if("object"!=typeof navigator||x)if("object"==typeof g){a="win32"===g.platform,r="darwin"===g.platform,l="linux"===g.platform,s=l&&!!g.env.SNAP&&!!g.env.SNAP_REVISION,m="en",h="en";const e=g.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];m=t.locale,h=n||"en",p=t._translationsConfigFile}catch(e){}d=!0}else console.error("Unable to resolve platform.");else T=navigator.userAgent,a=T.indexOf("Windows")>=0,r=T.indexOf("Macintosh")>=0,u=(T.indexOf("Macintosh")>=0||T.indexOf("iPad")>=0||T.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=T.indexOf("Linux")>=0,c=!0,m=navigator.language,h=m;let k=0;r?k=1:a?k=3:l&&(k=2);const S=a,y=r,C=c,E=function(){if(b.setImmediate)return b.setImmediate.bind(b);if("function"==typeof b.postMessage&&!b.importScripts){let e=[];b.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n{const i=++t;e.push({id:i,callback:n}),b.postMessage({vscodeSetImmediateId:i},"*")}}if("function"==typeof(null==g?void 0:g.nextTick))return g.nextTick.bind(g);const e=Promise.resolve();return t=>e.then(t)}()}).call(this,n(68),n(35))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(29),r=n(85),l=n(24),s=n(88),d=n(134),c=n(1),u=n(16),m=n(15),h=n(4),p=n(13);let T=class{constructor(e,t){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new a.Array2DHashMap(u.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=e,this.maxTokenType=t}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let e=0;e0)return this.decisionToState[e]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(e,t){if(e<0||e>=this.states.length)throw new RangeError("Invalid state number.");let n=t,i=this.states[e],o=this.nextTokens(i);if(!o.contains(h.Token.EPSILON))return o;let a=new l.IntervalSet;for(a.addAll(o),a.remove(h.Token.EPSILON);null!=n&&n.invokingState>=0&&o.contains(h.Token.EPSILON);){let e=this.states[n.invokingState].transition(0);o=this.nextTokens(e.followState),a.addAll(o),a.remove(h.Token.EPSILON),n=n._parent}return o.contains(h.Token.EPSILON)&&a.add(h.Token.EOF),a}};i([c.NotNull],T.prototype,"states",void 0),i([c.NotNull],T.prototype,"decisionToState",void 0),i([c.NotNull],T.prototype,"modeNameToStartState",void 0),i([c.NotNull],T.prototype,"modeToStartState",void 0),i([c.NotNull],T.prototype,"decisionToDFA",void 0),i([c.NotNull],T.prototype,"modeToDFA",void 0),i([c.NotNull],T.prototype,"nextTokens",null),i([o(0,c.NotNull)],T.prototype,"removeState",null),i([o(0,c.NotNull),o(1,c.NotNull)],T.prototype,"defineMode",null),i([o(0,c.NotNull)],T.prototype,"defineDecisionState",null),i([c.NotNull],T.prototype,"getExpectedTokens",null),T=i([o(0,c.NotNull)],T),t.ATN=T,function(e){e.INVALID_ALT_NUMBER=0}(T=t.ATN||(t.ATN={})),t.ATN=T},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(3),r=n(1),l=n(82);let s=class e extends a.RecognitionException{constructor(t,n,i){super(t,t.inputStream,t.context,e.formatMessage(n,i));let o=t.interpreter.atn.states[t.state].transition(0);o instanceof l.PredicateTransition?(this._ruleIndex=o.ruleIndex,this._predicateIndex=o.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=n,super.setOffendingToken(t,t.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(e,t){return t||`failed predicate: {${e}}?`}};i([r.NotNull],s,"formatMessage",null),s=i([o(0,r.NotNull)],s),t.FailedPredicateException=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.INVALID_TYPE=0]="INVALID_TYPE",e[e.BASIC=1]="BASIC",e[e.RULE_START=2]="RULE_START",e[e.BLOCK_START=3]="BLOCK_START",e[e.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",e[e.STAR_BLOCK_START=5]="STAR_BLOCK_START",e[e.TOKEN_START=6]="TOKEN_START",e[e.RULE_STOP=7]="RULE_STOP",e[e.BLOCK_END=8]="BLOCK_END",e[e.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",e[e.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",e[e.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",e[e.LOOP_END=12]="LOOP_END"}(t.ATNStateType||(t.ATNStateType={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(32),a=n(3),r=n(1);class l extends a.RecognitionException{constructor(e,t,n,i,a,r){e instanceof o.Parser&&(void 0===t&&(t=e.inputStream),void 0===n&&(n=e.currentToken),void 0===i&&(i=e.currentToken),void 0===r&&(r=e.context)),super(e,t,r),this._deadEndConfigs=a,this._startToken=n,this.setOffendingToken(e,i)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}i([r.NotNull],l.prototype,"_startToken",void 0),t.NoViableAltException=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{constructor(e,t){this.a=e,this.b=t}static get INVALID(){return a._INVALID}static of(e,t){return e!==t||e<0||e>1e3?new a(e,t):(null==a.cache[e]&&(a.cache[e]=new a(e,e)),a.cache[e])}get length(){return this.b=e.a}startsAfter(e){return this.a>e.a}startsAfterDisjoint(e){return this.a>e.b}startsAfterNonDisjoint(e){return this.a>e.a&&this.a<=e.b}disjoint(e){return this.startsBeforeDisjoint(e)||this.startsAfterDisjoint(e)}adjacent(e){return this.a===e.b+1||this.b===e.a-1}properlyContains(e){return e.a>=this.a&&e.b<=this.b}union(e){return a.of(Math.min(this.a,e.a),Math.max(this.b,e.b))}intersection(e){return a.of(Math.max(this.a,e.a),Math.min(this.b,e.b))}differenceNotProperlyContained(e){let t;return e.startsBeforeNonDisjoint(this)?t=a.of(Math.max(this.a,e.b+1),this.b):e.startsAfterNonDisjoint(this)&&(t=a.of(this.a,e.a-1)),t}toString(){return this.a+".."+this.b}}a._INVALID=new a(-1,-2),a.cache=new Array(1001),i([o.Override],a.prototype,"equals",null),i([o.Override],a.prototype,"hashCode",null),i([o.Override],a.prototype,"toString",null),t.Interval=a},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.escapeWhitespace=function(e,t){return t?e.replace(/ /,"·"):e.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},t.join=function(e,t){let n="",i=!0;for(let o of e)i?i=!1:n+=t,n+=o;return n},t.equals=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.equals(t)},t.toMap=function(e){let t=new Map;for(let n=0;n * @license MIT */function o(e,t){if(e===t)return 0;for(var n=e.length,i=t.length,o=0,a=Math.min(n,i);o=0;d--)if(c[d]!==u[d])return!1;for(d=c.length-1;d>=0;d--)if(l=c[d],!f(e[l],t[l],n,i))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function k(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function S(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function y(e,t,n,i){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(i=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!o&&g(o,n,"Missing expected exception"+i);var a="string"==typeof i,l=!e&&o&&!n;if((!e&&r.isError(o)&&a&&S(o,n)||l)&&g(o,n,"Got unwanted exception"+i),e&&o&&n&&!S(o,n)||!e&&o)throw o}m.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return T(b(e.actual),128)+" "+e.operator+" "+T(b(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var i=n.stack,o=p(t),a=i.indexOf("\n"+o);if(a>=0){var r=i.indexOf("\n",a+1);i=i.substring(r+1)}this.stack=i}}},r.inherits(m.AssertionError,Error),m.fail=g,m.ok=x,m.equal=function(e,t,n){e!=t&&g(e,t,n,"==",m.equal)},m.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",m.notEqual)},m.deepEqual=function(e,t,n){f(e,t,!1)||g(e,t,n,"deepEqual",m.deepEqual)},m.deepStrictEqual=function(e,t,n){f(e,t,!0)||g(e,t,n,"deepStrictEqual",m.deepStrictEqual)},m.notDeepEqual=function(e,t,n){f(e,t,!1)&&g(e,t,n,"notDeepEqual",m.notDeepEqual)},m.notDeepStrictEqual=function e(t,n,i){f(t,n,!0)&&g(t,n,i,"notDeepStrictEqual",e)},m.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",m.strictEqual)},m.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",m.notStrictEqual)},m.throws=function(e,t,n){y(!0,e,t,n)},m.doesNotThrow=function(e,t,n){y(!1,e,t,n)},m.ifError=function(e){if(e)throw e},m.strict=i((function e(t,n){t||g(t,!0,n,"==",e)}),m,{equal:m.strictEqual,deepEqual:m.deepStrictEqual,notEqual:m.notStrictEqual,notDeepEqual:m.notDeepStrictEqual}),m.strict.strict=m.strict;var C=Object.keys||function(e){var t=[];for(var n in e)l.call(e,n)&&t.push(n);return t}}).call(this,n(68))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return l}));var i=n(6);let o;if(void 0!==i.a.vscode&&void 0!==i.a.vscode.process){const e=i.a.vscode.process;o={get platform(){return e.platform},get env(){return e.env},cwd:()=>e.cwd(),nextTick:e=>Object(i.e)(e)}}else o=void 0!==e?{get platform(){return e.platform},get env(){return e.env},cwd:()=>e.env.VSCODE_CWD||e.cwd(),nextTick:t=>e.nextTick(t)}:{get platform(){return i.d?"win32":i.b?"darwin":"linux"},nextTick:e=>Object(i.e)(e),get env(){return Object.create(null)},cwd:()=>"/"};const a=o.cwd,r=o.env,l=o.platform}).call(this,n(35))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(29),r=n(22),l=n(54),s=n(5),d=n(1),c=n(56),u=n(13);class m{constructor(e){this.cachedHashCode=e}static calculateEmptyHashCode(){let e=s.MurmurHash.initialize(1);return e=s.MurmurHash.finish(e,0),e}static calculateSingleHashCode(e,t){let n=s.MurmurHash.initialize(1);return n=s.MurmurHash.update(n,e),n=s.MurmurHash.update(n,t),n=s.MurmurHash.finish(n,2),n}static calculateHashCode(e,t){let n=s.MurmurHash.initialize(1);for(let t of e)n=s.MurmurHash.update(n,t);for(let e of t)n=s.MurmurHash.update(n,e);return n=s.MurmurHash.finish(n,2*e.length),n}static fromRuleContext(e,t,n=!0){if(t.isEmpty)return n?m.EMPTY_FULL:m.EMPTY_LOCAL;let i;i=t._parent?m.fromRuleContext(e,t._parent,n):n?m.EMPTY_FULL:m.EMPTY_LOCAL;let o=e.states[t.invokingState].transition(0);return i.getChild(o.followState.stateNumber)}static addEmptyContext(e){return e.addEmptyContext()}static removeEmptyContext(e){return e.removeEmptyContext()}static join(e,t,n=c.PredictionContextCache.UNCACHED){if(e===t)return e;if(e.isEmpty)return m.isEmptyLocal(e)?e:m.addEmptyContext(t);if(t.isEmpty)return m.isEmptyLocal(t)?t:m.addEmptyContext(e);let i=e.size,o=t.size;if(1===i&&1===o&&e.getReturnState(0)===t.getReturnState(0)){let i=n.join(e.getParent(0),t.getParent(0));return i===e.getParent(0)?e:i===t.getParent(0)?t:i.getChild(e.getReturnState(0))}let a=0,r=new Array(i+o),l=new Array(r.length),s=0,d=0,h=!0,b=!0;for(;s0){let e=1;for(;1<>>0>a&(1<>>0)-1,r=r&&t>=l.size-1,t>=l.size)continue e;a+=e}if(e){d.length>1&&(d+=" ");let t=e.atn.states[s];d+=e.ruleNames[t.ruleIndex]}else l.getReturnState(t)!==m.EMPTY_FULL_STATE_KEY&&(l.isEmpty||(d.length>1&&(d+=" "),d+=l.getReturnState(t)));s=l.getReturnState(t),l=l.getParent(t)}if(d+="]",i.push(d),r)break}return i}}i([d.Override],m.prototype,"hashCode",null),i([o(0,d.NotNull),o(1,d.NotNull),o(2,d.NotNull)],m,"join",null),i([o(0,d.NotNull),o(1,d.NotNull),o(2,d.NotNull)],m,"getCachedContext",null),t.PredictionContext=m;class h extends m{constructor(e){super(m.calculateEmptyHashCode()),this.fullContext=e}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(e){throw new Error("index out of bounds")}getReturnState(e){throw new Error("index out of bounds")}findReturnState(e){return-1}get size(){return 0}appendSingleContext(e,t){return t.getChild(this,e)}appendContext(e,t){return e}get isEmpty(){return!0}get hasEmpty(){return!0}equals(e){return this===e}toStrings(e,t,n){return["[]"]}}i([d.Override],h.prototype,"addEmptyContext",null),i([d.Override],h.prototype,"removeEmptyContext",null),i([d.Override],h.prototype,"getParent",null),i([d.Override],h.prototype,"getReturnState",null),i([d.Override],h.prototype,"findReturnState",null),i([d.Override],h.prototype,"size",null),i([d.Override],h.prototype,"appendSingleContext",null),i([d.Override],h.prototype,"appendContext",null),i([d.Override],h.prototype,"isEmpty",null),i([d.Override],h.prototype,"hasEmpty",null),i([d.Override],h.prototype,"equals",null),i([d.Override],h.prototype,"toStrings",null);let p=class e extends m{constructor(e,t,n){super(n||m.calculateHashCode(e,t)),u(e.length===t.length),u(t.length>1||t[0]!==m.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=e,this.returnStates=t}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}findReturnState(e){return l.Arrays.binarySearch(this.returnStates,e)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===m.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let t=this.parents.slice(0),n=this.returnStates.slice(0);return t.push(m.EMPTY_FULL),n.push(m.EMPTY_FULL_STATE_KEY),new e(t,n)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new T(this.parents[0],this.returnStates[0]);{let t=this.parents.slice(0,this.parents.length-1),n=this.returnStates.slice(0,this.returnStates.length-1);return new e(t,n)}}appendContext(t,n){return e.appendContextImpl(this,t,new m.IdentityHashMap)}static appendContextImpl(t,n,i){if(n.isEmpty){if(m.isEmptyLocal(n)){if(t.hasEmpty)return m.EMPTY_LOCAL;throw new Error("what to do here?")}return t}if(1!==n.size)throw new Error("Appending a tree suffix is not yet supported.");let o=i.get(t);if(!o){if(t.isEmpty)o=n;else{let a=t.size;t.hasEmpty&&a--;let r=new Array(a),l=new Array(a);for(let e=0;e1),o=new e(r,l)),t.hasEmpty&&(o=m.join(o,n))}i.put(t,o)}return o}equals(t){if(this===t)return!0;if(!(t instanceof e))return!1;if(this.hashCode()!==t.hashCode())return!1;let n=t;return this.equalsImpl(n,new r.Array2DHashSet)}equalsImpl(e,t){let n=[],i=[];for(n.push(this),i.push(e);;){let e=n.pop(),o=i.pop();if(!e||!o)break;let a=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(e,o);if(!t.add(a))continue;let r=a.x.size;if(0!==r){if(r!==a.y.size)return!1;for(let e=0;e=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{hashCode(e){return null==e?0:e.hashCode()}equals(e,t){return null==e?null==t:e.equals(t)}}a.INSTANCE=new a,i([o.Override],a.prototype,"hashCode",null),i([o.Override],a.prototype,"equals",null),t.ObjectEqualityComparator=a},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(4);class r{constructor(e,t,n){this.literalNames=e,this.symbolicNames=t,this.displayNames=n,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(e){if(e>=0&&e=0&&e=0&&e=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{constructor(){this.stateNumber=a.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(e){return e instanceof a&&this.stateNumber===e.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(e,t){if(0===this.transitions.length)this.epsilonOnlyTransitions=e.isEpsilon;else if(this.epsilonOnlyTransitions!==e.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==t?t:this.transitions.length,0,e)}transition(e){return this.transitions[e]}setTransition(e,t){this.transitions[e]=t}removeTransition(e){return this.transitions.splice(e,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(e){this.ruleIndex=e}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(e){return this.optimizedTransitions[e]}addOptimizedTransition(e){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(e)}setOptimizedTransition(e,t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[e]=t}removeOptimizedTransition(e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(e,1)}}i([o.Override],a.prototype,"hashCode",null),i([o.Override],a.prototype,"equals",null),i([o.Override],a.prototype,"toString",null),t.ATNState=a,function(e){e.INVALID_STATE_NUMBER=-1}(a=t.ATNState||(t.ATNState={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(55),a=n(83),r=n(11),l=n(20),s=n(41),d=n(48),c=n(1),u=n(38),m=n(4);class h extends u.Recognizer{constructor(e){super(),this._factory=o.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new a.IntegerStack,this._mode=h.DEFAULT_MODE,this._input=e,this._tokenFactorySourcePair={source:this,stream:e}}static get DEFAULT_TOKEN_CHANNEL(){return m.Token.DEFAULT_CHANNEL}static get HIDDEN(){return m.Token.HIDDEN_CHANNEL}reset(e){(void 0===e||e)&&this._input.seek(0),this._token=void 0,this._type=m.Token.INVALID_TYPE,this._channel=m.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=h.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let e=this._input.mark();try{e:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=m.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let e;this._type=m.Token.INVALID_TYPE;try{e=this.interpreter.match(this._input,this._mode)}catch(t){if(!(t instanceof d.LexerNoViableAltException))throw t;this.notifyListeners(t),this.recover(t),e=h.SKIP}if(this._input.LA(1)===l.IntStream.EOF&&(this._hitEOF=!0),this._type===m.Token.INVALID_TYPE&&(this._type=e),this._type===h.SKIP)continue e}while(this._type===h.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(e)}}skip(){this._type=h.SKIP}more(){this._type=h.MORE}mode(e){this._mode=e}pushMode(e){s.LexerATNSimulator.debug&&console.log("pushMode "+e),this._modeStack.push(this._mode),this.mode(e)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return s.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(e){this._factory=e}get inputStream(){return this._input}set inputStream(e){this.reset(!1),this._input=e,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(e){return e||(e=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=e,e}emitEOF(){let e=this.charPositionInLine,t=this.line,n=this._factory.create(this._tokenFactorySourcePair,m.Token.EOF,void 0,m.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,t,e);return this.emit(n),n}get line(){return this.interpreter.line}set line(e){this.interpreter.line=e}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(e){this.interpreter.charPositionInLine=e}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(e){this._text=e}get token(){return this._token}set token(e){this._token=e}set type(e){this._type=e}get type(){return this._type}set channel(e){this._channel=e}get channel(){return this._channel}getAllTokens(){let e=[],t=this.nextToken();for(;t.type!==m.Token.EOF;)e.push(t),t=this.nextToken();return e}notifyListeners(e){let t=this._input.getText(r.Interval.of(this._tokenStartCharIndex,this._input.index)),n="token recognition error at: '"+this.getErrorDisplay(t)+"'",i=this.getErrorListenerDispatch();i.syntaxError&&i.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,n,e)}getErrorDisplay(e){if("number"==typeof e){switch(e){case m.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(e)}return e.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(e){return"'"+this.getErrorDisplay(e)+"'"}recover(e){e instanceof d.LexerNoViableAltException?this._input.LA(1)!==l.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}h.DEFAULT_MODE=0,h.MORE=-2,h.SKIP=-3,h.MIN_CHAR_VALUE=0,h.MAX_CHAR_VALUE=1114111,i([c.Override],h.prototype,"nextToken",null),i([c.Override],h.prototype,"tokenFactory",null),i([c.Override],h.prototype,"inputStream",null),i([c.Override],h.prototype,"sourceName",null),i([c.Override],h.prototype,"line",null),i([c.Override],h.prototype,"charPositionInLine",null),t.Lexer=h},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.EOF=-1,e.UNKNOWN_SOURCE_NAME=""}(t.IntStream||(t.IntStream={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);let r=class{constructor(e){if(null==e)throw new Error("target cannot be null.");this.target=e}get isEpsilon(){return!1}get label(){}};r.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],i([a.NotNull],r.prototype,"target",void 0),r=i([o(0,a.NotNull)],r),t.Transition=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(13),r=n(132),l=n(1),s=n(5);class d{constructor(e,t=16){if(this.n=0,this.threshold=Math.floor(12),e instanceof d){this.comparator=e.comparator,this.buckets=e.buckets.slice(0);for(let e=0;ethis.threshold&&this.expand(),this.getOrAddImpl(e)}getOrAddImpl(e){let t=this.getBucket(e),n=this.buckets[t];if(!n)return n=[e],this.buckets[t]=n,this.n++,e;for(let t of n)if(this.comparator.equals(t,e))return t;return n.push(e),this.n++,e}get(e){if(null==e)return e;let t=this.getBucket(e),n=this.buckets[t];if(n)for(let t of n)if(this.comparator.equals(t,e))return t}getBucket(e){return this.comparator.hashCode(e)&this.buckets.length-1}hashCode(){let e=s.MurmurHash.initialize();for(let t of this.buckets)if(null!=t)for(let n of t){if(null==n)break;e=s.MurmurHash.update(e,this.comparator.hashCode(n))}return e=s.MurmurHash.finish(e,this.size),e}equals(e){if(e===this)return!0;if(!(e instanceof d))return!1;if(e.size!==this.size)return!1;return this.containsAll(e)}expand(){let e=this.buckets,t=2*this.buckets.length,n=this.createBuckets(t);this.buckets=n,this.threshold=Math.floor(.75*t);let i=this.size;for(let t of e)if(t)for(let e of t){let t=this.getBucket(e),n=this.buckets[t];n||(n=[],this.buckets[t]=n),n.push(e)}a(this.n===i)}add(e){return this.getOrAdd(e)===e}get size(){return this.n}get isEmpty(){return 0===this.n}contains(e){return this.containsFast(this.asElementType(e))}containsFast(e){return null!=e&&null!=this.get(e)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const e=new Array(this.size);let t=0;for(let n of this.buckets)if(null!=n)for(let i of n){if(null==i)break;e[t++]=i}return e}containsAll(e){if(e instanceof d){let t=e;for(let e of t.buckets)if(null!=e)for(let t of e){if(null==t)break;if(!this.containsFast(this.asElementType(t)))return!1}}else for(let t of e)if(!this.containsFast(this.asElementType(t)))return!1;return!0}addAll(e){let t=!1;for(let n of e){this.getOrAdd(n)!==n&&(t=!0)}return t}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let e="{",t=!0;for(let n of this.buckets)if(null!=n)for(let i of n){if(null==i)break;t?t=!1:e+=", ",e+=i.toString()}return e+="}",e}toTableString(){let e="";for(let t of this.buckets){if(null==t){e+="null\n";continue}e+="[";let n=!0;for(let i of t)n?n=!1:e+=" ",e+=null==i?"_":i.toString();e+="]\n"}return e}asElementType(e){return e}createBuckets(e){return new Array(e)}}i([l.NotNull],d.prototype,"comparator",void 0),i([l.Override],d.prototype,"hashCode",null),i([l.Override],d.prototype,"equals",null),i([l.Override],d.prototype,"add",null),i([l.Override],d.prototype,"size",null),i([l.Override],d.prototype,"isEmpty",null),i([l.Override],d.prototype,"contains",null),i([o(0,l.Nullable)],d.prototype,"containsFast",null),i([l.Override],d.prototype,Symbol.iterator,null),i([l.Override],d.prototype,"toArray",null),i([l.Override],d.prototype,"containsAll",null),i([l.Override],d.prototype,"addAll",null),i([l.Override],d.prototype,"clear",null),i([l.Override],d.prototype,"toString",null),i([l.SuppressWarnings("unchecked")],d.prototype,"asElementType",null),i([l.SuppressWarnings("unchecked")],d.prototype,"createBuckets",null),t.Array2DHashSet=d},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const i=n(80),o=n(5),a=new Uint16Array(0);function r(e){return e>>>4}function l(e){return 16*e}function s(e){let t=1;for(let n=0;n<16;n++){if(0!=(e&t))return n;t=t<<1>>>0}throw new RangeError("No specified bit found")}function d(e){let t=32768;for(let n=15;n>=0;n--){if(0!=(e&t))return n;t>>>=1}throw new RangeError("No specified bit found")}function c(e,t){return(e&=15)===(t&=15)?1<>>0:65535>>>15-t^65535>>>16-e}const u=new Uint8Array(65536);for(let e=0;e<16;e++){const t=1<>>0;let n=0;for(;nn)return-1;let o=65535^c(e,15);if(65535==(t[i]|o)){for(i++,o=0;in)return-1;let o=c(e,15);if(0==(t[i]&o)){for(i++,o=65535;i=n)return-1}return l(i)+s(t[i]&o)}or(e){const t=this.data,n=e.data,i=Math.min(t.length,n.length),o=Math.max(t.length,n.length),r=t.length===o?t:new Uint16Array(o);let l=-1;for(let e=0;en.length?t:n;for(let e=i;e=n&&(i=n-1);let o=65535^c(0,e);if(65535==(t[i]|o)){for(o=0,i--;i>=0&&65535===t[i];i--);if(i<0)return-1}return l(i)+d(65535^(t[i]|o))}previousSetBit(e){if(e<0)throw new RangeError("fromIndex cannot be negative");const t=this.data,n=t.length;let i=r(e);i>=n&&(i=n-1);let o=c(0,e);if(0==(t[i]&o)){for(i--,o=65535;i>=0&&0===t[i];i--);if(i<0)return-1}return l(i)+d(t[i]&o)}set(e,t,n){if(void 0===t?(t=e,n=!0):"boolean"==typeof t&&(n=t,t=e),void 0===n&&(n=!0),e<0||e>t)throw new RangeError;let i=r(e),o=r(t);if(n&&o>=this.data.length){let e=new Uint16Array(o+1);this.data.forEach((t,n)=>e[n]=t),this.data=e}else if(!n){if(i>=this.data.length)return;o>=this.data.length&&(o=this.data.length-1,t=16*this.data.length-1)}if(i===o)this._setBits(i,n,c(e,t));else{for(this._setBits(i++,n,c(e,15));i=0;n=this.nextSetBit(n+1))t?t=!1:e+=", ",e+=n;return e+="}",e}xor(e){const t=this.data,n=e.data,i=Math.min(t.length,n.length),o=Math.max(t.length,n.length),r=t.length===o?t:new Uint16Array(o);let l=-1;for(let e=0;en.length?t:n;for(let e=i;e=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(43),r=n(53),l=n(11),s=n(19),d=n(5),c=n(1),u=n(4);class m{constructor(e){this.readonly=!1,this._intervals=null!=e?e.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===m._COMPLETE_CHAR_SET&&(m._COMPLETE_CHAR_SET=m.of(s.Lexer.MIN_CHAR_VALUE,s.Lexer.MAX_CHAR_VALUE),m._COMPLETE_CHAR_SET.setReadonly(!0)),m._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==m._EMPTY_SET&&(m._EMPTY_SET=new m,m._EMPTY_SET.setReadonly(!0)),m._EMPTY_SET}static of(e,t=e){let n=new m;return n.add(e,t),n}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(e,t=e){this.addRange(l.Interval.of(e,t))}addRange(e){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(e.br.b)i++;else if(s.a>r.a&&(e=new l.Interval(r.a,s.a-1)),s.b>1,o=this._intervals[i],a=o.a;if(o.be))return!0;n=i-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let e=d.MurmurHash.initialize();for(let t of this._intervals)e=d.MurmurHash.update(e,t.a),e=d.MurmurHash.update(e,t.b);return e=d.MurmurHash.finish(e,2*this._intervals.length),e}equals(e){return null!=e&&e instanceof m&&a.ArrayEqualityComparator.INSTANCE.equals(this._intervals,e._intervals)}toString(e=!1){let t="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(t+="{");let n=!0;for(let i of this._intervals){n?n=!1:t+=", ";let o=i.a,a=i.b;o===a?o===u.Token.EOF?t+="":t+=e?"'"+String.fromCodePoint(o)+"'":o:t+=e?"'"+String.fromCodePoint(o)+"'..'"+String.fromCodePoint(a)+"'":o+".."+a}return this.size>1&&(t+="}"),t}toStringVocabulary(e){if(null==this._intervals||0===this._intervals.length)return"{}";let t="";this.size>1&&(t+="{");let n=!0;for(let i of this._intervals){n?n=!1:t+=", ";let o=i.a,a=i.b;if(o===a)t+=this.elementName(e,o);else for(let n=o;n<=a;n++)n>o&&(t+=", "),t+=this.elementName(e,n)}return this.size>1&&(t+="}"),t}elementName(e,t){return t===u.Token.EOF?"":t===u.Token.EPSILON?"":e.getDisplayName(t)}get size(){let e=0,t=this._intervals.length;if(1===t){let e=this._intervals[0];return e.b-e.a+1}for(let n=0;ni&&e=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(7),r=n(36),l=n(62),s=n(1),d=n(32),c=n(2),u=n(63),m=n(30),h=n(4),p=n(12);class T{static toStringTree(e,t){let n;n=t instanceof d.Parser?t.ruleNames:t;let i=p.escapeWhitespace(this.getNodeText(e,n),!1);if(0===e.childCount)return i;let o="";o+="(",i=p.escapeWhitespace(this.getNodeText(e,n),!1),o+=i,o+=" ";for(let t=0;t0&&(o+=" "),o+=this.toStringTree(e.getChild(t),n);return o+=")",o}static getNodeText(e,t){let n;if(t instanceof d.Parser)n=t.ruleNames;else{if(!t){let t=e.payload;return"string"==typeof t.text?t.text:e.payload.toString()}n=t}if(e instanceof u.RuleNode){let t=e.ruleContext,i=n[t.ruleIndex],o=t.altNumber;return o!==a.ATN.INVALID_ALT_NUMBER?i+":"+o:i}if(e instanceof l.ErrorNode)return e.toString();if(e instanceof m.TerminalNode){return e.symbol.text||""}throw new TypeError("Unexpected node type")}static getChildren(e){let t=[];for(let n=0;n=e.start.tokenIndex&&(null==i||n<=i.tokenIndex))return e}}static stripChildrenOutOfRange(e,t,n,i){if(!e)return;let o=e.childCount;for(let a=0;ai)&&T.isAncestorOf(o,t)){let t=new r.CommonToken(h.Token.INVALID_TYPE,"...");e.children[a]=new m.TerminalNode(t)}}}static findNodeSuchThat(e,t){if(t(e))return e;let n=e.childCount;for(let i=0;i=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(22),r=n(43),l=n(5),s=n(1),d=n(16),c=n(12);class u{static get NONE(){return void 0===u._NONE&&(u._NONE=new u.Predicate),u._NONE}evalPrecedence(e,t){return this}static and(e,t){if(!e||e===u.NONE)return t;if(t===u.NONE)return e;let n=new u.AND(e,t);return 1===n.opnds.length?n.opnds[0]:n}static or(e,t){if(!e)return t;if(e===u.NONE||t===u.NONE)return u.NONE;let n=new u.OR(e,t);return 1===n.opnds.length?n.opnds[0]:n}}t.SemanticContext=u,function(e){function t(t){let n=[];for(let i=0;i=prec}?"}}i([s.Override],u.prototype,"eval",null),i([s.Override],u.prototype,"evalPrecedence",null),i([s.Override],u.prototype,"compareTo",null),i([s.Override],u.prototype,"hashCode",null),i([s.Override],u.prototype,"equals",null),i([s.Override],u.prototype,"toString",null),e.PrecedencePredicate=u;class m extends e{}e.Operator=m;let h=class n extends m{constructor(e,i){super();let o=new a.Array2DHashSet(d.ObjectEqualityComparator.INSTANCE);e instanceof n?o.addAll(e.opnds):o.add(e),i instanceof n?o.addAll(i.opnds):o.add(i),this.opnds=o.toArray();let r=function(e){let t;for(let n of e){if(void 0===t){t=n;continue}t.compareTo(n)>0&&(t=n)}return t}(t(this.opnds));r&&this.opnds.push(r)}get operands(){return this.opnds}equals(e){return this===e||e instanceof n&&r.ArrayEqualityComparator.INSTANCE.equals(this.opnds,e.opnds)}hashCode(){return l.MurmurHash.hashCode(this.opnds,40363613)}eval(e,t){for(let n of this.opnds)if(!n.eval(e,t))return!1;return!0}evalPrecedence(t,n){let i=!1,o=[];for(let a of this.opnds){let r=a.evalPrecedence(t,n);if(i=i||r!==a,null==r)return;r!==e.NONE&&o.push(r)}if(!i)return this;if(0===o.length)return e.NONE;let a=o[0];for(let t=1;t=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(11),a=n(1),r=n(4);class l{constructor(e){this._symbol=e}getChild(e){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(e){this._parent=e}get payload(){return this._symbol}get sourceInterval(){let e=this._symbol.tokenIndex;return new o.Interval(e,e)}get childCount(){return 0}accept(e){return e.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(e){return this.toString()}toString(){return this._symbol.type===r.Token.EOF?"":this._symbol.text||""}}i([a.Override],l.prototype,"getChild",null),i([a.Override],l.prototype,"parent",null),i([a.Override],l.prototype,"setParent",null),i([a.Override],l.prototype,"payload",null),i([a.Override],l.prototype,"sourceInterval",null),i([a.Override],l.prototype,"childCount",null),i([a.Override],l.prototype,"accept",null),i([a.Override],l.prototype,"text",null),i([a.Override],l.prototype,"toStringTree",null),i([a.Override],l.prototype,"toString",null),t.TerminalNode=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{constructor(e){this.nodeName=e,this.invert=!1}toString(){let e=this.invert?"!":"";return Object.constructor.name+"["+e+this.nodeName+"]"}}i([o.Override],a.prototype,"toString",null),t.XPathElement=a},function(e,t,n){"use strict";(function(e){ /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}},a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{s(i.next(e))}catch(e){a(e)}}function l(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(r,l)}s((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),l=n(91),s=n(34),d=n(51),c=n(62),u=n(83),m=n(19),h=n(1),p=n(160),T=n(33),b=n(97),g=n(38),x=n(30),f=n(4);class k{constructor(e,t){this.ruleNames=e,this.tokenStream=t}enterEveryRule(e){console.log("enter "+this.ruleNames[e.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(e){console.log("exit "+this.ruleNames[e.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(e){}visitTerminal(e){let t=e.parent.ruleContext,n=e.symbol;console.log("consume "+n+" rule "+this.ruleNames[t.ruleIndex])}}i([h.Override],k.prototype,"enterEveryRule",null),i([h.Override],k.prototype,"exitEveryRule",null),i([h.Override],k.prototype,"visitErrorNode",null),i([h.Override],k.prototype,"visitTerminal",null);class S extends g.Recognizer{constructor(e){super(),this._errHandler=new d.DefaultErrorStrategy,this._precedenceStack=new u.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=e}reset(e){(void 0===e||e)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let t=this.interpreter;null!=t&&t.reset()}match(e){let t=this.currentToken;return t.type===e?(e===f.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}matchWildcard(){let e=this.currentToken;return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}set buildParseTree(e){this._buildParseTrees=e}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(e){if(null==e)throw new TypeError("listener cannot be null");this._parseListeners.push(e)}removeParseListener(e){let t=this._parseListeners.findIndex(t=>t===e);-1!==t&&this._parseListeners.splice(t,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let e of this._parseListeners)e.enterEveryRule&&e.enterEveryRule(this._ctx),this._ctx.enterRule(e)}triggerExitRuleEvent(){for(let e=this._parseListeners.length-1;e>=0;e--){let t=this._parseListeners[e];this._ctx.exitRule(t),t.exitEveryRule&&t.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let e=this.serializedATN;if(null==e)throw new Error("The current parser does not support an ATN with bypass alternatives.");let t=S.bypassAltsAtnCache.get(e);if(null==t){let n=new l.ATNDeserializationOptions;n.isGenerateRuleBypassTransitions=!0,t=new s.ATNDeserializer(n).deserialize(r.toCharArray(e)),S.bypassAltsAtnCache.set(e,t)}return t}compileParseTreePattern(e,t,i){return a(this,void 0,void 0,(function*(){if(!i){if(this.inputStream){let e=this.inputStream.tokenSource;e instanceof m.Lexer&&(i=e)}if(!i)throw new Error("Parser can't discover a lexer to use")}let o=i;return new((yield Promise.resolve().then(()=>n(161))).ParseTreePatternMatcher)(o,this).compile(e,t)}))}get errorHandler(){return this._errHandler}set errorHandler(e){this._errHandler=e}get inputStream(){return this._input}set inputStream(e){this.reset(!1),this._input=e}get currentToken(){return this._input.LT(1)}notifyErrorListeners(e,t,n){void 0===t?t=this.currentToken:null===t&&(t=void 0),this._syntaxErrors++;let i=-1,o=-1;null!=t&&(i=t.line,o=t.charPositionInLine);let a=this.getErrorListenerDispatch();a.syntaxError&&a.syntaxError(this,t,i,o,e,n)}consume(){let e=this.currentToken;e.type!==S.EOF&&this.inputStream.consume();let t=0!==this._parseListeners.length;if(this._buildParseTrees||t)if(this._errHandler.inErrorRecoveryMode(this)){let n=this._ctx.addErrorNode(this.createErrorNode(this._ctx,e));if(t)for(let e of this._parseListeners)e.visitErrorNode&&e.visitErrorNode(n)}else{let n=this.createTerminalNode(this._ctx,e);if(this._ctx.addChild(n),t)for(let e of this._parseListeners)e.visitTerminal&&e.visitTerminal(n)}return e}createTerminalNode(e,t){return new x.TerminalNode(t)}createErrorNode(e,t){return new c.ErrorNode(t)}addContextToParseTree(){let e=this._ctx._parent;null!=e&&e.addChild(this._ctx)}enterRule(e,t,n){this.state=t,this._ctx=e,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(e,t,n){if(this.state=t,this._buildParseTrees){let t=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),t._parent=e,e.addChild(t)}this._ctx=e,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(e,t){if(e.altNumber=t,this._buildParseTrees&&this._ctx!==e){let t=this._ctx._parent;null!=t&&(t.removeLastChild(),t.addChild(e))}this._ctx=e}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(e,t,n,i){this.state=t,this._precedenceStack.push(i),this._ctx=e,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,n){let i=this._ctx;i._parent=e,i.invokingState=t,i._stop=this._input.tryLT(-1),this._ctx=e,this._ctx._start=i._start,this._buildParseTrees&&this._ctx.addChild(i),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let t=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=e;t._parent=e,this._buildParseTrees&&null!=e&&e.addChild(t)}getInvokingContext(e){let t=this._ctx;for(;t&&t.ruleIndex!==e;)t=t._parent;return t}get context(){return this._ctx}set context(e){this._ctx=e}precpred(e,t){return t>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new b.ProxyParserErrorListener(this.getErrorListeners())}inContext(e){return!1}isExpectedToken(e){let t=this.interpreter.atn,n=this._ctx,i=t.states[this.state],o=t.nextTokens(i);if(o.contains(e))return!0;if(!o.contains(f.Token.EPSILON))return!1;for(;null!=n&&n.invokingState>=0&&o.contains(f.Token.EPSILON);){let i=t.states[n.invokingState].transition(0);if(o=t.nextTokens(i.followState),o.contains(e))return!0;n=n._parent}return!(!o.contains(f.Token.EPSILON)||e!==f.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let e=this.interpreter.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){let t=this.getRuleIndexMap().get(e);return null!=t?t:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(e=this._ctx){let t=e,n=this.ruleNames,i=[];for(;null!=t;){let e=t.ruleIndex;e<0?i.push("n/a"):i.push(n[e]),t=t._parent}return i}getDFAStrings(){let e=[];for(let t of this._interp.atn.decisionToDFA)e.push(t.toString(this.vocabulary,this.ruleNames));return e}dumpDFA(){let t=!1;for(let n of this._interp.atn.decisionToDFA)n.isEmpty||(t&&console.log(),console.log("Decision "+n.decision+":"),e.stdout.write(n.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then(()=>n(106)).then(e=>{let t=this.interpreter;if(t instanceof e.ProfilingATNSimulator)return new p.ParseInfo(t)})}setProfile(e){return a(this,void 0,void 0,(function*(){let t=yield Promise.resolve().then(()=>n(106)),i=this.interpreter;e?i instanceof t.ProfilingATNSimulator||(this.interpreter=new t.ProfilingATNSimulator(this)):i instanceof t.ProfilingATNSimulator&&(this.interpreter=new T.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(i.getPredictionMode())}))}set isTrace(e){e?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new k(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}S.bypassAltsAtnCache=new Map,i([h.NotNull],S.prototype,"_errHandler",void 0),i([h.NotNull],S.prototype,"match",null),i([h.NotNull],S.prototype,"matchWildcard",null),i([h.NotNull],S.prototype,"getParseListeners",null),i([o(0,h.NotNull)],S.prototype,"addParseListener",null),i([h.NotNull],S.prototype,"getATNWithBypassAlts",null),i([h.NotNull,o(0,h.NotNull)],S.prototype,"errorHandler",null),i([h.Override],S.prototype,"inputStream",null),i([h.NotNull],S.prototype,"currentToken",null),i([o(0,h.NotNull)],S.prototype,"enterRule",null),i([h.Override,o(0,h.Nullable)],S.prototype,"precpred",null),i([h.Override],S.prototype,"getErrorListenerDispatch",null),i([h.NotNull],S.prototype,"getExpectedTokens",null),i([h.NotNull],S.prototype,"getExpectedTokensWithinCurrentRule",null),i([h.Override],S.prototype,"parseInfo",null),t.Parser=S}).call(this,n(35))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(84),r=n(92),l=n(22),s=n(54),d=n(7),c=n(45),u=n(37),m=n(46),h=n(9),p=n(93),T=n(23),b=n(149),g=n(25),x=n(47),f=n(53),k=n(11),S=n(20),y=n(1),C=n(59),E=n(10),A=n(16),O=n(2),_=n(15),I=n(56),L=n(150),N=n(39),R=n(61),v=n(28),D=n(60),M=n(96),P=n(4),F=n(17),B=n(13);let U=class e extends m.ATNSimulator{constructor(e,t){super(e),this.predictionMode=L.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=t}getPredictionMode(){return this.predictionMode}setPredictionMode(e){this.predictionMode=e}reset(){}adaptivePredict(t,n,i,o){void 0===o&&(o=!1);let a,r=this.atn.decisionToDFA[n];if(B(null!=r),this.optimize_ll1&&!r.isPrecedenceDfa&&!r.isEmpty){let e=t.LA(1);if(e>=0&&e<=65535){let t=(n<<16>>>0)+e,i=this.atn.LL1Table.get(t);if(null!=i)return i}}this.dfa=r,this.force_global_context?o=!0:this.always_try_local_context||(o=o||r.isContextSensitive),this.userWantsCtxSensitive=o||this.predictionMode!==L.PredictionMode.SLL&&null!=i&&!this.atn.decisionToState[n].sll,null==i&&(i=O.ParserRuleContext.emptyContext()),r.isEmpty||(a=this.getStartState(r,t,i,o)),null==a&&(null==i&&(i=O.ParserRuleContext.emptyContext()),e.debug&&console.log("ATN decision "+r.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+i.toString(this._parser)),a=this.computeStartState(r,i,o));let l=t.mark(),s=t.index;try{let n=this.execDFA(r,t,s,a);return e.debug&&console.log("DFA after predictATN: "+r.toString(this._parser.vocabulary,this._parser.ruleNames)),n}finally{this.dfa=void 0,t.seek(s),t.release(l)}}getStartState(e,t,n,i){if(!i){if(e.isPrecedenceDfa){let t=e.getPrecedenceStartState(this._parser.precedence,!1);if(null==t)return;return new M.SimulatorState(n,t,!1,n)}if(null==e.s0)return;return new M.SimulatorState(n,e.s0,!1,n)}if(!this.enable_global_context_dfa)return;let o,a=n;for(B(null!=n),o=e.isPrecedenceDfa?e.getPrecedenceStartState(this._parser.precedence,!0):e.s0full;null!=a&&null!=o&&o.isContextSensitive;)a=this.skipTailCalls(a),o=o.getContextTarget(this.getReturnState(a)),a.isEmpty?B(null==o||!o.isContextSensitive):a=a.parent;return null!=o?new M.SimulatorState(n,o,i,a):void 0}execDFA(t,n,i,o){let a=o.outerContext;e.dfa_debug&&console.log("DFA decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(n)+", outerContext="+a.toString(this._parser)),e.dfa_debug&&console.log(t.toString(this._parser.vocabulary,this._parser.ruleNames));let r=o.s0,l=n.LA(1),s=o.remainingOuterContext;for(;;){if(e.dfa_debug&&console.log("DFA state "+r.stateNumber+" LA(1)=="+this.getLookaheadName(n)),o.useContext)for(;r.isContextSymbol(l);){let e;if(null!=s&&(s=this.skipTailCalls(s),e=r.getContextTarget(this.getReturnState(s))),null==e){let e=new M.SimulatorState(o.outerContext,r,o.useContext,s);return this.execATN(t,n,i,e)}B(null!=s),s=s.parent,r=e}if(this.isAcceptState(r,o.useContext)){null!=r.predicates?e.dfa_debug&&console.log("accept "+r):e.dfa_debug&&console.log("accept; predict "+r.prediction+" in state "+r.stateNumber);break}B(!this.isAcceptState(r,o.useContext));let d=this.getExistingTargetState(r,l);if(null==d){let d;if(e.dfa_debug&&l>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(l)),e.dfa_debug){let e=k.Interval.of(i,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(e)+" at DFA state "+r.stateNumber)}let c=new M.SimulatorState(a,r,o.useContext,s);return d=this.execATN(t,n,i,c),e.dfa_debug&&console.log("back from DFA update, alt="+d+", dfa=\n"+t.toString(this._parser.vocabulary,this._parser.ruleNames)),e.dfa_debug&&console.log("DFA decision "+t.decision+" predicts "+d),d}if(d===m.ATNSimulator.ERROR){let e=new M.SimulatorState(a,r,o.useContext,s);return this.handleNoViableAlt(n,i,e)}r=d,this.isAcceptState(r,o.useContext)||l===S.IntStream.EOF||(n.consume(),l=n.LA(1))}if(!o.useContext&&null!=r.configs.conflictInfo&&t.atnStartState instanceof g.DecisionState&&!(!this.userWantsCtxSensitive||!r.configs.dipsIntoOuterContext&&r.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&n.index===i)){let e;B(!o.useContext);let l=r.predicates;if(null!=l){let t=n.index;if(t!==i&&n.seek(i),e=this.evalSemanticContext(l,a,!0),1===e.cardinality())return e.nextSetBit(0);t!==i&&n.seek(t)}if(this.reportAmbiguities){let l=new M.SimulatorState(a,r,o.useContext,s);this.reportAttemptingFullContext(t,e,l,i,n.index)}return n.seek(i),this.adaptivePredict(n,t.decision,a,!0)}let d=r.predicates;if(null!=d){let e=n.index;i!==e&&n.seek(i);let o=this.evalSemanticContext(d,a,this.reportAmbiguities&&this.predictionMode===L.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(o.cardinality()){case 0:throw this.noViableAlt(n,a,r.configs,i);case 1:return o.nextSetBit(0);default:return i!==e&&n.seek(e),this.reportAmbiguity(t,r,i,e,r.configs.isExactConflict,o,r.configs),o.nextSetBit(0)}}return e.dfa_debug&&console.log("DFA decision "+t.decision+" predicts "+r.prediction),r.prediction}isAcceptState(e,t){return!!e.isAcceptState&&(null==e.configs.conflictingAlts||(!t||this.predictionMode!==L.PredictionMode.LL_EXACT_AMBIG_DETECTION||e.configs.isExactConflict))}execATN(t,n,i,o){e.debug&&console.log("execATN decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(n));let a=o.outerContext,r=o.useContext,l=n.LA(1),s=o,c=new I.PredictionContextCache;for(;;){let o=this.computeReachSet(t,s,l,c);if(null==o)return this.setDFAEdge(s.s0,n.LA(1),m.ATNSimulator.ERROR),this.handleNoViableAlt(n,i,s);let u=o.s0;if(B(u.isAcceptState||u.prediction===d.ATN.INVALID_ALT_NUMBER),B(u.isAcceptState||null==u.configs.conflictInfo),this.isAcceptState(u,r)){let s=u.configs.conflictingAlts,c=null==s?u.prediction:d.ATN.INVALID_ALT_NUMBER;if(c!==d.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&n.index===i&&!t.isPrecedenceDfa&&o.outerContext===o.remainingOuterContext&&t.decision>=0&&!u.configs.hasSemanticContext&&l>=0&&l<=65535){let e=(t.decision<<16>>>0)+l;this.atn.LL1Table.set(e,c)}r&&this.always_try_local_context&&this.reportContextSensitivity(t,c,o,i,n.index)}c=u.prediction;let m=null!=s&&this.userWantsCtxSensitive;if(m&&(m=!r&&(u.configs.dipsIntoOuterContext||!u.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||n.index!==i)),u.configs.hasSemanticContext){let e=u.predicates;if(null!=e){let t=n.index;switch(t!==i&&n.seek(i),s=this.evalSemanticContext(e,a,m||this.reportAmbiguities),s.cardinality()){case 0:throw this.noViableAlt(n,a,u.configs,i);case 1:return s.nextSetBit(0)}t!==i&&n.seek(t)}}if(m){B(!r),B(this.isAcceptState(u,!1)),e.debug&&console.log("RETRY with outerContext="+a);let l=this.computeStartState(t,a,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(t,s,o,i,n.index),n.seek(i),this.execATN(t,n,i,l)}return null!=s&&(this.reportAmbiguities&&s.cardinality()>1&&this.reportAmbiguity(t,u,i,n.index,u.configs.isExactConflict,s,u.configs),c=s.nextSetBit(0)),c}s=o,l!==S.IntStream.EOF&&(n.consume(),l=n.LA(1))}}handleNoViableAlt(e,t,n){if(null!=n.s0){let i=new T.BitSet,o=0;for(let e of n.s0.configs)(e.reachesIntoOuterContext||e.state instanceof N.RuleStopState)&&(i.set(e.alt),o=Math.max(o,e.alt));switch(i.cardinality()){case 0:break;case 1:return i.nextSetBit(0);default:if(!n.s0.configs.hasSemanticContext)return i.nextSetBit(0);let a=new u.ATNConfigSet;for(let e of n.s0.configs)(e.reachesIntoOuterContext||e.state instanceof N.RuleStopState)&&a.add(e);let r=this.getPredsForAmbigAlts(i,a,o);if(null!=r){let o=this.getPredicatePredictions(i,r);if(null!=o){let i=e.index;try{e.seek(t);let a=this.evalSemanticContext(o,n.outerContext,!1);if(!a.isEmpty)return a.nextSetBit(0)}finally{e.seek(i)}}}return i.nextSetBit(0)}}throw this.noViableAlt(e,n.outerContext,n.s0.configs,t)}computeReachSet(e,t,n,i){let o=t.useContext,a=t.remainingOuterContext,r=t.s0;if(o)for(;r.isContextSymbol(n);){let e;if(null!=a&&(a=this.skipTailCalls(a),e=r.getContextTarget(this.getReturnState(a))),null==e)break;B(null!=a),a=a.parent,r=e}if(B(!this.isAcceptState(r,o)),this.isAcceptState(r,o))return new M.SimulatorState(t.outerContext,r,o,a);let l=r,s=this.getExistingTargetState(l,n);if(null==s){let t=this.computeTargetState(e,l,a,n,o,i);s=t[0],a=t[1]}return s!==m.ATNSimulator.ERROR?(B(!o||!s.configs.dipsIntoOuterContext),new M.SimulatorState(t.outerContext,s,o,a)):void 0}getExistingTargetState(e,t){return e.getTarget(t)}computeTargetState(t,n,i,o,a,r){let l,s,c=n.configs.toArray(),h=new u.ATNConfigSet;do{let t=!a||null!=i;t||(h.isOutermostConfigSet=!0);let n,m=new u.ATNConfigSet;for(let t of c){if(e.debug&&console.log("testing "+this.getTokenName(o)+" at "+t.toString()),t.state instanceof N.RuleStopState){B(t.context.isEmpty),(a&&!t.reachesIntoOuterContext||o===S.IntStream.EOF)&&(null==n&&(n=[]),n.push(t));continue}let i=t.state.numberOfOptimizedTransitions;for(let e=0;e0);for(let e of n)h.add(e,r)}if(a&&s){h.clear(),i=i,i=this.skipTailCalls(i);let e=this.getReturnState(i);if(null==l&&(l=new f.IntegerList),i=i.isEmpty?void 0:i.parent,l.add(e),e!==_.PredictionContext.EMPTY_FULL_STATE_KEY)for(let t=0;t0;){let e=new u.ATNConfigSet;for(let l of r)this.closureImpl(l,t,e,s,n,i,o,0,a);r=e}}closureImpl(t,n,i,o,a,l,s,d,u){if(e.debug&&console.log("closure("+t.toString(this._parser,!0)+")"),t.state instanceof N.RuleStopState)if(t.context.isEmpty){if(!l)return void n.add(t,s);e.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),t.context===_.PredictionContext.EMPTY_FULL?t=t.transform(t.state,!1,_.PredictionContext.EMPTY_LOCAL):!t.reachesIntoOuterContext&&_.PredictionContext.isEmptyLocal(t.context)&&n.add(t,s)}else{let e=t.context.hasEmpty,r=t.context.size-(e?1:0);for(let e=0;e-2147483648),this.closureImpl(h,n,i,o,a,l,s,d-1,u)}if(!e||!l)return;t=t.transform(t.state,!1,_.PredictionContext.EMPTY_LOCAL)}let m=t.state;m.onlyHasEpsilonTransitions||(n.add(t,s),e.debug&&console.log("added config "+n));for(let c=0;c-2147483648),r--,e.debug&&console.log("dips into outer ctx: "+b)}else if(p instanceof R.RuleTransition)!this.optimize_tail_calls||!p.optimizedTailCall||this.tail_call_preserves_sll&&_.PredictionContext.isEmptyLocal(t.context)?r>=0&&r++:(B(b.context===t.context),0===r&&(r--,!this.tail_call_preserves_sll&&_.PredictionContext.isEmptyLocal(t.context)&&(b.outerContextDepth=b.outerContextDepth+1)));else if(!p.isEpsilon&&!o.add(b))continue;this.closureImpl(b,n,i,o,T,l,s,r,u)}}}getRuleName(e){return null!=this._parser&&e>=0?this._parser.ruleNames[e]:""}getEpsilonTarget(e,t,n,i,o,a){switch(t.serializationType){case 3:return this.ruleTransition(e,t,o);case 10:return this.precedenceTransition(e,t,n,i);case 4:return this.predTransition(e,t,n,i);case 6:return this.actionTransition(e,t);case 1:return e.transform(t.target,!1);case 5:case 2:case 7:return a&&t.matches(P.Token.EOF,0,1)?e.transform(t.target,!1):void 0;default:return}}actionTransition(t,n){return e.debug&&console.log("ACTION edge "+n.ruleIndex+":"+n.actionIndex),t.transform(n.target,!1)}precedenceTransition(t,n,i,o){let a;if(e.debug&&(console.log("PRED (collectPredicates="+i+") "+n.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),i&&o){let e=v.SemanticContext.and(t.semanticContext,n.predicate);a=t.transform(n.target,!1,e)}else a=t.transform(n.target,!1);return e.debug&&console.log("config from pred transition="+a),a}predTransition(t,n,i,o){let a;if(e.debug&&(console.log("PRED (collectPredicates="+i+") "+n.ruleIndex+":"+n.predIndex+", ctx dependent="+n.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),i&&(!n.isCtxDependent||n.isCtxDependent&&o)){let e=v.SemanticContext.and(t.semanticContext,n.predicate);a=t.transform(n.target,!1,e)}else a=t.transform(n.target,!1);return e.debug&&console.log("config from pred transition="+a),a}ruleTransition(t,n,i){e.debug&&console.log("CALL rule "+this.getRuleName(n.target.ruleIndex)+", ctx="+t.context);let o,a=n.followState;return o=!this.optimize_tail_calls||!n.optimizedTailCall||this.tail_call_preserves_sll&&_.PredictionContext.isEmptyLocal(t.context)?null!=i?i.getChild(t.context,a.stateNumber):t.context.getChild(a.stateNumber):t.context,t.transform(n.target,!1,o)}isConflicted(t,n){if(t.uniqueAlt!==d.ATN.INVALID_ALT_NUMBER||t.size<=1)return;let i=t.toArray();i.sort(e.STATE_ALT_SORT_COMPARATOR);let o=!t.dipsIntoOuterContext,a=new T.BitSet,r=i[0].alt;a.set(r);let l,s=i[0].state.nonStopStateNumber;for(let e of i){let t=e.state.nonStopStateNumber;if(t!==s){if(e.alt!==r)return;s=t}}if(o){s=i[0].state.nonStopStateNumber,l=new T.BitSet;let e=r;for(let t of i){if(t.state.nonStopStateNumber!==s)break;let n=t.alt;l.set(n),e=n}s=i[0].state.nonStopStateNumber;let t=r;for(let n of i){let i=n.state.nonStopStateNumber,a=n.alt;if(i!==s){if(t!==e){o=!1;break}s=i,t=r}else if(a!==t){if(a!==l.nextSetBit(t+1)){o=!1;break}t=a}}}s=i[0].state.nonStopStateNumber;let c=0,u=0,m=i[0].context;for(let e=1;e"}getLookaheadName(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");let t=e.deadEndConfigs;if(t)for(let e of t){let t="no edges";if(e.state.numberOfOptimizedTransitions>0){let n=e.state.getOptimizedTransition(0);if(n instanceof p.AtomTransition)t="Atom "+this.getTokenName(n._label);else if(n instanceof D.SetTransition){t=(n instanceof C.NotSetTransition?"~":"")+"Set "+n.set.toString()}}console.log(e.toString(this._parser,!0)+":"+t)}}noViableAlt(e,t,n,i){return new E.NoViableAltException(this._parser,e,e.get(i),e.LT(1),n,t)}getUniqueAlt(e){let t=d.ATN.INVALID_ALT_NUMBER;for(let n of e)if(t===d.ATN.INVALID_ALT_NUMBER)t=n.alt;else if(n.alt!==t)return d.ATN.INVALID_ALT_NUMBER;return t}configWithAltAtStopState(e,t){for(let n of e)if(n.alt===t&&n.state instanceof N.RuleStopState)return!0;return!1}addDFAEdge(t,n,i,o,a,r){B(null==o||o.isEmpty||t.isContextSensitive);let l=n,s=this.addDFAState(t,a,r);if(null!=o)for(let e of o.toArray()){if(e===_.PredictionContext.EMPTY_FULL_STATE_KEY&&l.configs.isOutermostConfigSet)continue;l.setContextSensitive(this.atn),l.setContextSymbol(i);let n=l.getContextTarget(e);null==n?(n=this.addDFAContextState(t,l.configs,e,r),B(e!==_.PredictionContext.EMPTY_FULL_STATE_KEY||n.configs.isOutermostConfigSet),l.setContextTarget(e,n),l=n):l=n}return e.debug&&console.log("EDGE "+l+" -> "+s+" upon "+this.getTokenName(i)),this.setDFAEdge(l,i,s),e.debug&&console.log("DFA=\n"+t.toString(null!=this._parser?this._parser.vocabulary:F.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),s}setDFAEdge(e,t,n){null!=e&&e.setTarget(t,n)}addDFAContextState(e,t,n,i){if(n!==_.PredictionContext.EMPTY_FULL_STATE_KEY){let o=new u.ATNConfigSet;for(let e of t)o.add(e.appendContext(n,i));return this.addDFAState(e,o,i)}return B(!t.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(t=t.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(e,t,i)}addDFAState(t,n,i){let o=this.enable_global_context_dfa||!n.isOutermostConfigSet;if(o){n.isReadOnly||n.optimizeConfigs(this);let e=this.createDFAState(t,n),i=t.states.get(e);if(null!=i)return i}n.isReadOnly||null==n.conflictInfo&&(n.conflictInfo=this.isConflicted(n,i));let r=this.createDFAState(t,n.clone(!0)),l=this.atn.getDecisionState(t.decision),s=this.getUniqueAlt(n);if(s!==d.ATN.INVALID_ALT_NUMBER)r.acceptStateInfo=new a.AcceptStateInfo(s);else if(null!=n.conflictingAlts){let e=n.conflictingAlts;e&&(r.acceptStateInfo=new a.AcceptStateInfo(e.nextSetBit(0)))}if(r.isAcceptState&&n.hasSemanticContext&&this.predicateDFAState(r,n,l.numberOfTransitions),!o)return r;let c=t.addState(r);return e.debug&&c===r&&console.log("adding new DFA state: "+r),c}createDFAState(e,t){return new x.DFAState(t)}reportAttemptingFullContext(t,n,i,o,a){if(e.debug||e.retry_debug){let e=k.Interval.of(o,a);console.log("reportAttemptingFullContext decision="+t.decision+":"+i.s0.configs+", input="+this._parser.inputStream.getText(e))}if(null!=this._parser){let e=this._parser.getErrorListenerDispatch();e.reportAttemptingFullContext&&e.reportAttemptingFullContext(this._parser,t,o,a,n,i)}}reportContextSensitivity(t,n,i,o,a){if(e.debug||e.retry_debug){let e=k.Interval.of(o,a);console.log("reportContextSensitivity decision="+t.decision+":"+i.s0.configs+", input="+this._parser.inputStream.getText(e))}if(null!=this._parser){let e=this._parser.getErrorListenerDispatch();e.reportContextSensitivity&&e.reportContextSensitivity(this._parser,t,o,a,n,i)}}reportAmbiguity(t,n,i,o,a,r,l){if(e.debug||e.retry_debug){let e=k.Interval.of(i,o);console.log("reportAmbiguity "+r+":"+l+", input="+this._parser.inputStream.getText(e))}if(null!=this._parser){let e=this._parser.getErrorListenerDispatch();e.reportAmbiguity&&e.reportAmbiguity(this._parser,t,i,o,a,r,l)}}getReturnState(e){if(e.isEmpty)return _.PredictionContext.EMPTY_FULL_STATE_KEY;return this.atn.states[e.invokingState].transition(0).followState.stateNumber}skipTailCalls(e){if(!this.optimize_tail_calls)return e;for(;!e.isEmpty;){let t=this.atn.states[e.invokingState];if(B(1===t.numberOfTransitions&&3===t.transition(0).serializationType),!t.transition(0).tailCall)break;e=e.parent}return e}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(e,t)=>{let n=e.state.nonStopStateNumber-t.state.nonStopStateNumber;return 0!==n?n:(n=e.alt-t.alt,0!==n?n:0)},i([y.NotNull],U.prototype,"predictionMode",void 0),i([y.NotNull],U.prototype,"getPredictionMode",null),i([o(0,y.NotNull)],U.prototype,"setPredictionMode",null),i([y.Override],U.prototype,"reset",null),i([o(0,y.NotNull)],U.prototype,"adaptivePredict",null),i([o(0,y.NotNull),o(1,y.NotNull),o(2,y.NotNull)],U.prototype,"getStartState",null),i([o(0,y.NotNull),o(1,y.NotNull),o(3,y.NotNull)],U.prototype,"execDFA",null),i([o(0,y.NotNull),o(1,y.NotNull),o(3,y.NotNull)],U.prototype,"execATN",null),i([o(0,y.NotNull),o(2,y.NotNull)],U.prototype,"handleNoViableAlt",null),i([o(0,y.NotNull)],U.prototype,"getExistingTargetState",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"computeTargetState",null),i([y.NotNull,o(0,y.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),i([y.NotNull],U.prototype,"computeStartState",null),i([y.NotNull,o(0,y.NotNull)],U.prototype,"applyPrecedenceFilter",null),i([o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"getReachableTarget",null),i([o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"getPredsForAmbigAlts",null),i([o(0,y.NotNull)],U.prototype,"evalSemanticContext",null),i([o(0,y.NotNull)],U.prototype,"evalSemanticContextImpl",null),i([o(1,y.NotNull),o(4,y.Nullable)],U.prototype,"closure",null),i([o(0,y.NotNull),o(1,y.NotNull),o(2,y.Nullable),o(3,y.NotNull),o(6,y.NotNull)],U.prototype,"closureImpl",null),i([y.NotNull],U.prototype,"getRuleName",null),i([o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"getEpsilonTarget",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"actionTransition",null),i([y.Nullable,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"precedenceTransition",null),i([y.Nullable,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"predTransition",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull),o(2,y.Nullable)],U.prototype,"ruleTransition",null),i([o(0,y.NotNull)],U.prototype,"isConflicted",null),i([y.NotNull],U.prototype,"getTokenName",null),i([o(0,y.NotNull)],U.prototype,"dumpDeadEndConfigs",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull),o(2,y.NotNull)],U.prototype,"noViableAlt",null),i([o(0,y.NotNull)],U.prototype,"getUniqueAlt",null),i([o(0,y.NotNull)],U.prototype,"configWithAltAtStopState",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull),o(4,y.NotNull)],U.prototype,"addDFAEdge",null),i([o(0,y.Nullable),o(2,y.Nullable)],U.prototype,"setDFAEdge",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"addDFAContextState",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"addDFAState",null),i([y.NotNull,o(0,y.NotNull),o(1,y.NotNull)],U.prototype,"createDFAState",null),i([o(0,y.NotNull),o(2,y.NotNull)],U.prototype,"reportAttemptingFullContext",null),i([o(0,y.NotNull),o(2,y.NotNull)],U.prototype,"reportContextSensitivity",null),i([o(0,y.NotNull),o(5,y.NotNull),o(6,y.NotNull)],U.prototype,"reportAmbiguity",null),U=i([o(0,y.NotNull)],U),t.ParserATNSimulator=U},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(92),r=n(22),l=n(7),s=n(91),d=n(9),c=n(93),u=n(138),m=n(89),h=n(23),p=n(139),T=n(49),b=n(25),g=n(85),x=n(140),f=n(24),k=n(88),S=n(141),y=n(142),C=n(143),E=n(144),A=n(145),O=n(146),_=n(147),I=n(148),L=n(94),N=n(1),R=n(59),v=n(33),D=n(151),M=n(152),P=n(153),F=n(82),B=n(154),U=n(155),w=n(39),q=n(61),j=n(60),H=n(156),Y=n(157),V=n(58),z=n(4),G=n(158),W=n(159),K=n(90);var Z;!function(e){e[e.UNICODE_BMP=0]="UNICODE_BMP",e[e.UNICODE_SMP=1]="UNICODE_SMP"}(Z||(Z={}));class X{constructor(e){null==e&&(e=s.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=e}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(e,t){let n=X.SUPPORTED_UUIDS.findIndex(t=>t.equals(e));return!(n<0)&&X.SUPPORTED_UUIDS.findIndex(e=>e.equals(t))>=n}static getUnicodeDeserializer(e){return 0===e?{readUnicode:(e,t)=>X.toInt(e[t]),size:1}:{readUnicode:(e,t)=>X.toInt32(e,t),size:2}}deserialize(e){e=e.slice(0);for(let t=1;te.equals(i))<0){let e=`Could not deserialize ATN with UUID ${i} (expected ${X.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(e)}let o=X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,i),s=X.toInt(e[t++]),h=X.toInt(e[t++]),b=new l.ATN(s,h),f=[],S=[],C=X.toInt(e[t++]);for(let n=0;ne.stopState^e.returnState^e.outermostPrecedenceReturn,equals:(e,t)=>e.stopState===t.stopState&&e.returnState===t.returnState&&e.outermostPrecedenceReturn===t.outermostPrecedenceReturn}),P=[];for(let e of b.states){let t=e.ruleIndex>=0&&b.ruleToStartState[e.ruleIndex].leftFactored;for(let n=0;n0;){let n=b.ruleToStartState[e].removeTransition(b.ruleToStartState[e].numberOfTransitions-1);t.addTransition(n)}b.ruleToStartState[e].addTransition(new x.EpsilonTransition(t)),o.addTransition(new x.EpsilonTransition(n));let a=new m.BasicState;b.addState(a),a.addTransition(new c.AtomTransition(o,b.ruleToTokenType[e])),t.addTransition(new x.EpsilonTransition(a))}this.deserializationOptions.isVerifyATN&&this.verifyATN(b)}if(this.deserializationOptions.isOptimize){for(;;){let e=0;e+=X.inlineSetRules(b),e+=X.combineChainedEpsilons(b);let t=0===b.grammarType;if(e+=X.optimizeSets(b,t),0===e)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(b)}return X.identifyTailCalls(b),b}deserializeSets(e,t,n,i){let o=X.toInt(e[t++]);for(let a=0;a=0)}else this.checkCondition(t.numberOfTransitions<=1||t instanceof w.RuleStopState)}}checkCondition(e,t){if(!e)throw new Error("IllegalStateException: "+t)}static inlineSetRules(e){let t=0,n=new Array(e.ruleToStartState.length);for(let t=0;t0;)i.removeOptimizedTransition(i.numberOfOptimizedTransitions-1);for(let e of o)i.addOptimizedTransition(e)}}return v.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+t+" rule invocations by inlining sets."),t}static combineChainedEpsilons(e){let t=0;for(let n of e.states){if(!n.onlyHasEpsilonTransitions||n instanceof w.RuleStopState)continue;let e;e:for(let i=0;i0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of e)n.addOptimizedTransition(t)}}return v.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+t+" transitions by combining chained epsilon transitions."),t}static optimizeSets(e,t){if(t)return 0;let n=0,i=e.decisionToState;for(let t of i){let i=new f.IntervalSet;for(let e=0;e0;)t.removeOptimizedTransition(t.numberOfOptimizedTransitions-1);for(let e of o)t.addOptimizedTransition(e)}return v.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+n+" paths by collapsing sets."),n}static identifyTailCalls(e){for(let t of e.states){for(let n=0;n>>0}static toUUID(e,t){let n=X.toInt32(e,t),i=X.toInt32(e,t+2),o=X.toInt32(e,t+4),a=X.toInt32(e,t+6);return new W.UUID(a,o,i,n)}edgeFactory(e,t,n,i,o,r,l,s){let d=e.states[i];switch(t){case 1:return new x.EpsilonTransition(d);case 2:return 0!==l?new B.RangeTransition(d,z.Token.EOF,r):new B.RangeTransition(d,o,r);case 3:return new q.RuleTransition(e.states[o],r,l,d);case 4:return new F.PredicateTransition(d,o,r,0!==l);case 10:return new P.PrecedencePredicateTransition(d,o);case 5:return 0!==l?new c.AtomTransition(d,z.Token.EOF):new c.AtomTransition(d,o);case 6:return new a.ActionTransition(d,o,r,0!==l);case 7:return new j.SetTransition(d,s[o]);case 8:return new R.NotSetTransition(d,s[o]);case 9:return new K.WildcardTransition(d)}throw new Error("The specified transition type is not valid.")}stateFactory(e,t){let n;switch(e){case d.ATNStateType.INVALID_TYPE:return new k.InvalidState;case d.ATNStateType.BASIC:n=new m.BasicState;break;case d.ATNStateType.RULE_START:n=new U.RuleStartState;break;case d.ATNStateType.BLOCK_START:n=new u.BasicBlockStartState;break;case d.ATNStateType.PLUS_BLOCK_START:n=new D.PlusBlockStartState;break;case d.ATNStateType.STAR_BLOCK_START:n=new H.StarBlockStartState;break;case d.ATNStateType.TOKEN_START:n=new G.TokensStartState;break;case d.ATNStateType.RULE_STOP:n=new w.RuleStopState;break;case d.ATNStateType.BLOCK_END:n=new p.BlockEndState;break;case d.ATNStateType.STAR_LOOP_BACK:n=new Y.StarLoopbackState;break;case d.ATNStateType.STAR_LOOP_ENTRY:n=new V.StarLoopEntryState;break;case d.ATNStateType.PLUS_LOOP_BACK:n=new M.PlusLoopbackState;break;case d.ATNStateType.LOOP_END:n=new L.LoopEndState;break;default:throw new Error(`The specified state type ${e} is not valid.`)}return n.ruleIndex=t,n}lexerActionFactory(e,t,n){switch(e){case 0:return new S.LexerChannelAction(t);case 1:return new y.LexerCustomAction(t,n);case 2:return new C.LexerModeAction(t);case 3:return E.LexerMoreAction.INSTANCE;case 4:return A.LexerPopModeAction.INSTANCE;case 5:return new O.LexerPushModeAction(t);case 6:return _.LexerSkipAction.INSTANCE;case 7:return new I.LexerTypeAction(t);default:throw new Error(`The specified lexer action type ${e} is not valid.`)}}}X.BASE_SERIALIZED_UUID=W.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),X.ADDED_LEXER_ACTIONS=W.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),X.ADDED_UNICODE_SMP=W.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),X.SUPPORTED_UUIDS=[X.BASE_SERIALIZED_UUID,X.ADDED_LEXER_ACTIONS,X.ADDED_UNICODE_SMP],X.SERIALIZED_UUID=X.ADDED_UNICODE_SMP,i([N.NotNull],X.prototype,"deserializationOptions",void 0),i([o(0,N.NotNull)],X.prototype,"deserialize",null),i([o(0,N.NotNull)],X.prototype,"markPrecedenceDecisions",null),i([N.NotNull,o(0,N.NotNull)],X.prototype,"edgeFactory",null),t.ATNDeserializer=X},function(e,t){var n,i,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(e){i=r}}();var s,d=[],c=!1,u=-1;function m(){c&&s&&(c=!1,s.length?d=s.concat(d):u=-1,d.length&&h())}function h(){if(!c){var e=l(m);c=!0;for(var t=d.length;t;){for(s=d,d=[];++u1)for(var n=1;n=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(11),r=n(1),l=n(4);let s=class e{constructor(t,n,i=e.EMPTY_SOURCE,o=l.Token.DEFAULT_CHANNEL,a=0,r=0){this._line=0,this._charPositionInLine=-1,this._channel=l.Token.DEFAULT_CHANNEL,this.index=-1,this._text=n,this._type=t,this.source=i,this._channel=o,this.start=a,this.stop=r,null!=i.source&&(this._line=i.source.line,this._charPositionInLine=i.source.charPositionInLine)}static fromToken(t){let n=new e(t.type,void 0,e.EMPTY_SOURCE,t.channel,t.startIndex,t.stopIndex);return n._line=t.line,n.index=t.tokenIndex,n._charPositionInLine=t.charPositionInLine,t instanceof e?(n._text=t.text,n.source=t.source):(n._text=t.text,n.source={source:t.tokenSource,stream:t.inputStream}),n}get type(){return this._type}set type(e){this._type=e}get line(){return this._line}set line(e){this._line=e}get text(){if(null!=this._text)return this._text;let e=this.inputStream;if(null==e)return;let t=e.size;return this.start"}set text(e){this._text=e}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(e){this._charPositionInLine=e}get channel(){return this._channel}set channel(e){this._channel=e}get startIndex(){return this.start}set startIndex(e){this.start=e}get stopIndex(){return this.stop}set stopIndex(e){this.stop=e}get tokenIndex(){return this.index}set tokenIndex(e){this.index=e}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(e){let t="";this._channel>0&&(t=",channel="+this._channel);let n=this.text;null!=n?(n=n.replace(/\n/g,"\\n"),n=n.replace(/\r/g,"\\r"),n=n.replace(/\t/g,"\\t")):n="";let i=String(this._type);return e&&(i=e.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+n+"',<"+i+">"+t+","+this._line+":"+this.charPositionInLine+"]"}};s.EMPTY_SOURCE={source:void 0,stream:void 0},i([r.NotNull],s.prototype,"source",void 0),i([r.Override],s.prototype,"type",null),i([r.Override],s.prototype,"line",null),i([r.Override],s.prototype,"text",null),i([r.Override],s.prototype,"charPositionInLine",null),i([r.Override],s.prototype,"channel",null),i([r.Override],s.prototype,"startIndex",null),i([r.Override],s.prototype,"stopIndex",null),i([r.Override],s.prototype,"tokenIndex",null),i([r.Override],s.prototype,"tokenSource",null),i([r.Override],s.prototype,"inputStream",null),i([r.Override],s.prototype,"toString",null),i([o(0,r.NotNull)],s,"fromToken",null),s=i([o(2,r.NotNull)],s),t.CommonToken=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(29),a=n(22),r=n(43),l=n(7),s=n(45),d=n(23),c=n(1),u=n(16),m=n(15),h=n(56),p=n(28),T=n(13),b=n(12);class g{hashCode(e){return e.state^e.alt}equals(e,t){return e.state===t.state&&e.alt===t.alt}}function x(e){return e?new o.Array2DHashMap(e):new o.Array2DHashMap(g.INSTANCE)}g.INSTANCE=new g;class f{constructor(e,t){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,e?(t?(this.mergedConfigs=void 0,this.unmerged=void 0):e.isReadOnly?(this.mergedConfigs=x(),this.unmerged=[]):(this.mergedConfigs=x(e.mergedConfigs),this.unmerged=e.unmerged.slice(0)),this.configs=e.configs.slice(0),this._dipsIntoOuterContext=e._dipsIntoOuterContext,this._hasSemanticContext=e._hasSemanticContext,this.outermostConfigSet=e.outermostConfigSet,!t&&e.isReadOnly||(this._uniqueAlt=e._uniqueAlt,this._conflictInfo=e._conflictInfo)):(this.mergedConfigs=x(),this.unmerged=[],this.configs=[],this._uniqueAlt=l.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let e=new d.BitSet;for(let t of this)e.set(t.alt);return e}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(e){if(this.outermostConfigSet&&!e)throw new Error("IllegalStateException");T(!e||!this._dipsIntoOuterContext),this.outermostConfigSet=e}getStates(){let e=new a.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);for(let t of this.configs)e.add(t.state);return e}optimizeConfigs(e){if(0!==this.configs.length)for(let t of this.configs)t.context=e.atn.getCachedContext(t.context)}clone(e){let t=new f(this,e);return!e&&this.isReadOnly&&t.addAll(this.configs),t}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(e){if(!(e instanceof s.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let t=e,n=this.getKey(t),i=this.mergedConfigs.get(n);if(null!=i&&this.canMerge(t,n,i))return i.contains(t);for(let t of this.unmerged)if(t.contains(e))return!0}else for(let t of this.configs)if(t.contains(e))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(e,t){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let n;T(!this.outermostConfigSet||!e.reachesIntoOuterContext),null==t&&(t=h.PredictionContextCache.UNCACHED);let i=this.getKey(e),o=this.mergedConfigs.get(i);if(n=null==o,null!=o&&this.canMerge(e,i,o)){o.outerContextDepth=Math.max(o.outerContextDepth,e.outerContextDepth),e.isPrecedenceFilterSuppressed&&(o.isPrecedenceFilterSuppressed=!0);let n=m.PredictionContext.join(o.context,e.context,t);return this.updatePropertiesForMergedConfig(e),o.context===n?!1:(o.context=n,!0)}for(let o=0;oe.alt!==t.alt?e.alt-t.alt:e.state.stateNumber!==t.state.stateNumber?e.state.stateNumber-t.state.stateNumber:e.semanticContext.toString().localeCompare(t.semanticContext.toString())),t+="[";for(let i=0;i0&&(t+=", "),t+=n[i].toString(void 0,!0,e);return t+="]",this._hasSemanticContext&&(t+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==l.ATN.INVALID_ALT_NUMBER&&(t+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(t+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(t+="*")),this._dipsIntoOuterContext&&(t+=",dipsIntoOuterContext"),t.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(e){this.ensureWritable(),this._hasSemanticContext=e}get conflictInfo(){return this._conflictInfo}set conflictInfo(e){this.ensureWritable(),this._conflictInfo=e}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(e){return this.configs[e]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}i([c.NotNull],f.prototype,"getRepresentedAlternatives",null),i([c.Override],f.prototype,"size",null),i([c.Override],f.prototype,"isEmpty",null),i([c.Override],f.prototype,"contains",null),i([c.Override],f.prototype,Symbol.iterator,null),i([c.Override],f.prototype,"toArray",null),i([c.Override],f.prototype,"containsAll",null),i([c.Override],f.prototype,"clear",null),i([c.Override],f.prototype,"equals",null),i([c.Override],f.prototype,"hashCode",null),t.ATNConfigSet=f},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(87),r=n(57),l=n(1),s=n(4),d=n(12);class c{constructor(){this._listeners=[a.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let e=this.vocabulary,t=c.tokenTypeMapCache.get(e);if(null==t){let n=new Map;for(let t=0;t<=this.atn.maxTokenType;t++){let i=e.getLiteralName(t);null!=i&&n.set(i,t);let o=e.getSymbolicName(t);null!=o&&n.set(o,t)}n.set("EOF",s.Token.EOF),t=n,c.tokenTypeMapCache.set(e,t)}return t}getRuleIndexMap(){let e=this.ruleNames;if(null==e)throw new Error("The current recognizer does not provide a list of rule names.");let t=c.ruleIndexMapCache.get(e);return null==t&&(t=d.toMap(e),c.ruleIndexMapCache.set(e,t)),t}getTokenType(e){let t=this.getTokenTypeMap().get(e);return null!=t?t:s.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(e){this._interp=e}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(e){let t=e.getOffendingToken();return t?"line "+t.line+":"+t.charPositionInLine:""}addErrorListener(e){if(!e)throw new TypeError("listener must not be null");this._listeners.push(e)}removeErrorListener(e){let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new r.ProxyErrorListener(this.getErrorListeners())}sempred(e,t,n){return!0}precpred(e,t){return!0}action(e,t,n){}get state(){return this._stateNumber}set state(e){this._stateNumber=e}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,i([l.SuppressWarnings("serial"),l.NotNull],c.prototype,"_listeners",void 0),i([l.NotNull],c.prototype,"getTokenTypeMap",null),i([l.NotNull],c.prototype,"getRuleIndexMap",null),i([l.NotNull],c.prototype,"serializedATN",null),i([l.NotNull],c.prototype,"atn",null),i([l.NotNull,o(0,l.NotNull)],c.prototype,"interpreter",null),i([l.NotNull,o(0,l.NotNull)],c.prototype,"getErrorHeader",null),i([o(0,l.NotNull)],c.prototype,"addErrorListener",null),i([o(0,l.NotNull)],c.prototype,"removeErrorListener",null),i([l.NotNull],c.prototype,"getErrorListeners",null),t.Recognizer=c},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(18),a=n(9),r=n(1);class l extends o.ATNState{get nonStopStateNumber(){return-1}get stateType(){return a.ATNStateType.RULE_STOP}}i([r.Override],l.prototype,"nonStopStateNumber",null),i([r.Override],l.prototype,"stateType",null),t.RuleStopState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);let r=class{constructor(e,t,n,i,o,a){this.decision=e,this.fullCtx=a,this.stopIndex=o,this.input=n,this.startIndex=i,this.state=t}};i([a.NotNull],r.prototype,"input",void 0),r=i([o(2,a.NotNull)],r),t.DecisionEventInfo=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(84),r=n(7),l=n(45),s=n(37),d=n(46),c=n(47),u=n(11),m=n(20),h=n(19),p=n(135),T=n(48),b=n(1),g=n(137),x=n(15),f=n(39),k=n(4),S=n(13);let y=class e extends d.ATNSimulator{constructor(t,n){super(t),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=h.Lexer.DEFAULT_MODE,this.prevAccept=new e.SimState,this.recog=n}copyState(e){this._charPositionInLine=e.charPositionInLine,this._line=e._line,this.mode=e.mode,this.startIndex=e.startIndex}match(t,n){e.match_calls++,this.mode=n;let i=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let e=this.atn.modeToDFA[n].s0;return null==e?this.matchATN(t):this.execATN(t,e)}finally{t.release(i)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=h.Lexer.DEFAULT_MODE}matchATN(t){let n=this.atn.modeToStartState[this.mode];e.debug&&console.log(`matchATN mode ${this.mode} start: ${n}`);let i=this.mode,o=this.computeStartState(t,n),a=o.hasSemanticContext;a&&(o.hasSemanticContext=!1);let r=this.addDFAState(o);if(!a){let e=this.atn.modeToDFA[this.mode];e.s0?r=e.s0:e.s0=r}let l=this.execATN(t,r);return e.debug&&console.log("DFA after matchATN: "+this.atn.modeToDFA[i].toLexerString()),l}execATN(t,n){e.debug&&console.log("start state closure="+n.configs),n.isAcceptState&&this.captureSimState(this.prevAccept,t,n);let i=t.LA(1),o=n;for(;;){e.debug&&console.log("execATN loop starting closure: "+o.configs);let n=this.getExistingTargetState(o,i);if(null==n&&(n=this.computeTargetState(t,o,i)),n===d.ATNSimulator.ERROR)break;if(i!==m.IntStream.EOF&&this.consume(t),n.isAcceptState&&(this.captureSimState(this.prevAccept,t,n),i===m.IntStream.EOF))break;i=t.LA(1),o=n}return this.failOrAccept(this.prevAccept,t,o.configs,i)}getExistingTargetState(t,n){let i=t.getTarget(n);return e.debug&&null!=i&&console.log("reuse state "+t.stateNumber+" edge to "+i.stateNumber),i}computeTargetState(e,t,n){let i=new g.OrderedATNConfigSet;return this.getReachableConfigSet(e,t.configs,i,n),i.isEmpty?(i.hasSemanticContext||this.addDFAEdge(t,n,d.ATNSimulator.ERROR),d.ATNSimulator.ERROR):this.addDFAEdge(t,n,i)}failOrAccept(e,t,n,i){if(null!=e.dfaState){let n=e.dfaState.lexerActionExecutor;return this.accept(t,n,this.startIndex,e.index,e.line,e.charPos),e.dfaState.prediction}if(i===m.IntStream.EOF&&t.index===this.startIndex)return k.Token.EOF;throw new T.LexerNoViableAltException(this.recog,t,this.startIndex,n)}getReachableConfigSet(t,n,i,o){let a=r.ATN.INVALID_ALT_NUMBER;for(let r of n){let n=r.alt===a;if(n&&r.hasPassedThroughNonGreedyDecision)continue;e.debug&&console.log(`testing ${this.getTokenName(o)} at ${r.toString(this.recog,!0)}`);let l=r.state.numberOfOptimizedTransitions;for(let e=0;e "+i+" upon "+String.fromCharCode(n)),null!=t&&t.setTarget(n,i)}addDFAState(e){S(!e.hasSemanticContext);let t=new c.DFAState(e),n=this.atn.modeToDFA[this.mode].states.get(t);if(null!=n)return n;e.optimizeConfigs(this);let i,o=new c.DFAState(e.clone(!0));for(let t of e)if(t.state instanceof f.RuleStopState){i=t;break}if(null!=i){let e=this.atn.ruleToTokenType[i.state.ruleIndex],t=i.lexerActionExecutor;o.acceptStateInfo=new a.AcceptStateInfo(e,t)}return this.atn.modeToDFA[this.mode].addState(o)}getDFA(e){return this.atn.modeToDFA[e]}getText(e){return e.getText(u.Interval.of(this.startIndex,e.index-1))}get line(){return this._line}set line(e){this._line=e}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(e){this._charPositionInLine=e}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,e.consume()}getTokenName(e){return-1===e?"EOF":"'"+String.fromCharCode(e)+"'"}};y.match_calls=0,i([b.NotNull],y.prototype,"prevAccept",void 0),i([o(0,b.NotNull)],y.prototype,"copyState",null),i([o(0,b.NotNull)],y.prototype,"match",null),i([b.Override],y.prototype,"reset",null),i([o(0,b.NotNull)],y.prototype,"matchATN",null),i([o(0,b.NotNull),o(1,b.NotNull)],y.prototype,"execATN",null),i([o(0,b.NotNull)],y.prototype,"getExistingTargetState",null),i([b.NotNull,o(0,b.NotNull),o(1,b.NotNull)],y.prototype,"computeTargetState",null),i([o(0,b.NotNull),o(1,b.NotNull),o(2,b.NotNull)],y.prototype,"getReachableConfigSet",null),i([o(0,b.NotNull)],y.prototype,"accept",null),i([b.NotNull,o(0,b.NotNull),o(1,b.NotNull)],y.prototype,"computeStartState",null),i([o(0,b.NotNull),o(1,b.NotNull),o(2,b.NotNull)],y.prototype,"closure",null),i([o(0,b.NotNull),o(1,b.NotNull),o(2,b.NotNull),o(3,b.NotNull)],y.prototype,"getEpsilonTarget",null),i([o(0,b.NotNull)],y.prototype,"evaluatePredicate",null),i([o(0,b.NotNull),o(1,b.NotNull),o(2,b.NotNull)],y.prototype,"captureSimState",null),i([b.NotNull,o(0,b.NotNull)],y.prototype,"addDFAState",null),i([b.NotNull],y.prototype,"getDFA",null),i([b.NotNull,o(0,b.NotNull)],y.prototype,"getText",null),i([o(0,b.NotNull)],y.prototype,"consume",null),i([b.NotNull],y.prototype,"getTokenName",null),y=i([o(0,b.NotNull)],y),t.LexerATNSimulator=y,function(e){e.debug=!1,e.dfa_debug=!1;e.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}}(y=t.LexerATNSimulator||(t.LexerATNSimulator={})),t.LexerATNSimulator=y},function(e,t,n){"use strict";var i=n(122).default;n(127),(t=e.exports=i).default=t},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(5),r=n(16);class l{hashCode(e){return null==e?0:a.MurmurHash.hashCode(e,0)}equals(e,t){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let n=0;n=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(3),r=n(1);let l=class extends a.RecognitionException{constructor(e,t,n){void 0===n&&(n=e.context),super(e,e.inputStream,n),void 0!==t&&this.setOffendingState(t),this.setOffendingToken(e,e.currentToken)}};l=i([o(0,r.NotNull)],l),t.InputMismatchException=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(29),r=n(25),l=n(5),s=n(1),d=n(16),c=n(15),u=n(28),m=n(13);let h=class e{constructor(e,t,n){"number"==typeof t?(m((16777215&t)===t),this._state=e,this.altAndOuterContextDepth=t,this._context=n):(this._state=e,this.altAndOuterContextDepth=t.altAndOuterContextDepth,this._context=n)}static create(t,n,i,o=u.SemanticContext.NONE,a){return o!==u.SemanticContext.NONE?null!=a?new b(a,o,t,n,i,!1):new p(o,t,n,i):null!=a?new T(a,t,n,i,!1):new e(t,n,i)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(e){this._context=e}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(e){m(e>=0),e=Math.min(e,127),this.altAndOuterContextDepth=e<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return u.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(e,t,n){return null==n?this.transformImpl(e,this._context,this.semanticContext,t,this.lexerActionExecutor):n instanceof c.PredictionContext?this.transformImpl(e,n,this.semanticContext,t,this.lexerActionExecutor):n instanceof u.SemanticContext?this.transformImpl(e,this._context,n,t,this.lexerActionExecutor):this.transformImpl(e,this._context,this.semanticContext,t,n)}transformImpl(t,n,i,o,a){let r=o&&e.checkNonGreedyDecision(this,t);return i!==u.SemanticContext.NONE?null!=a||r?new b(a,i,t,this,n,r):new p(i,t,this,n):null!=a||r?new T(a,t,this,n,r):new e(t,this,n)}static checkNonGreedyDecision(e,t){return e.hasPassedThroughNonGreedyDecision||t instanceof r.DecisionState&&t.nonGreedy}appendContext(e,t){if("number"==typeof e){let n=this.context.appendSingleContext(e,t);return this.transform(this.state,!1,n)}{let n=this.context.appendContext(e,t);return this.transform(this.state,!1,n)}}contains(e){if(this.state.stateNumber!==e.state.stateNumber||this.alt!==e.alt||!this.semanticContext.equals(e.semanticContext))return!1;let t=[],n=[];for(t.push(this.context),n.push(e.context);;){let e=t.pop(),i=n.pop();if(!e||!i)break;if(e===i)return!0;if(e.size=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(37),r=n(47),l=n(1),s=n(15);let d=class e{constructor(e){this.atn=e}static get ERROR(){return e._ERROR||(e._ERROR=new r.DFAState(new a.ATNConfigSet),e._ERROR.stateNumber=s.PredictionContext.EMPTY_FULL_STATE_KEY),e._ERROR}clearDFA(){this.atn.clearDFA()}};i([l.NotNull],d.prototype,"atn",void 0),i([l.NotNull],d,"ERROR",null),d=i([o(0,l.NotNull)],d),t.ATNSimulator=d,d=t.ATNSimulator||(t.ATNSimulator={}),t.ATNSimulator=d},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(7),r=n(23),l=n(5),s=n(1),d=n(15),c=n(13);class u{constructor(e){this.stateNumber=-1,this.configs=e,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(e){return!!this.isContextSensitive&&this.contextSymbols.get(e)}setContextSymbol(e){c(this.isContextSensitive),this.contextSymbols.set(e)}setContextSensitive(e){c(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new r.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(e){this._acceptStateInfo=e}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:a.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(e){return this.edges.get(e)}setTarget(e,t){this.edges.set(e,t)}getEdgeMap(){return this.edges}getContextTarget(e){return e===d.PredictionContext.EMPTY_FULL_STATE_KEY&&(e=-1),this.contextEdges.get(e)}setContextTarget(e,t){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");e===d.PredictionContext.EMPTY_FULL_STATE_KEY&&(e=-1),this.contextEdges.set(e,t)}getContextEdgeMap(){let e=new Map(this.contextEdges),t=e.get(-1);if(void 0!==t){if(1===e.size){let e=new Map;return e.set(d.PredictionContext.EMPTY_FULL_STATE_KEY,t),e}e.delete(-1),e.set(d.PredictionContext.EMPTY_FULL_STATE_KEY,t)}return e}hashCode(){let e=l.MurmurHash.initialize(7);return e=l.MurmurHash.update(e,this.configs.hashCode()),e=l.MurmurHash.finish(e,1),e}equals(e){if(this===e)return!0;if(!(e instanceof u))return!1;let t=e;return this.configs.equals(t.configs)}toString(){let e="";return e+=this.stateNumber+":"+this.configs,this.isAcceptState&&(e+="=>",this.predicates?e+=this.predicates:e+=this.prediction),e.toString()}}i([s.NotNull],u.prototype,"configs",void 0),i([s.NotNull],u.prototype,"edges",void 0),i([s.NotNull],u.prototype,"contextEdges",void 0),i([s.Override],u.prototype,"hashCode",null),i([s.Override],u.prototype,"equals",null),i([s.Override],u.prototype,"toString",null),t.DFAState=u,function(e){let t=class{constructor(e,t){this.alt=t,this.pred=e}toString(){return"("+this.pred+", "+this.alt+")"}};i([s.NotNull],t.prototype,"pred",void 0),i([s.Override],t.prototype,"toString",null),t=i([o(0,s.NotNull)],t),e.PredPrediction=t}(u=t.DFAState||(t.DFAState={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(3),r=n(1),l=n(11),s=n(12);let d=class extends a.RecognitionException{constructor(e,t,n,i){super(e,t),this._startIndex=n,this._deadEndConfigs=i}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let e="";return this._startIndex>=0&&this._startIndex=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(18),r=n(9),l=n(8),s=n(44),d=n(24),c=n(10),u=n(15),m=n(4),h=n(1);class p{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=a.ATNState.INVALID_STATE_NUMBER}reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof c.NoViableAltException?this.reportNoViableAlternative(e,t):t instanceof s.InputMismatchException?this.reportInputMismatch(e,t):t instanceof l.FailedPredicateException?this.reportFailedPredicate(e,t):(console.error("unknown recognition error type: "+t),this.notifyErrorListeners(e,t.toString(),t)))}notifyErrorListeners(e,t,n){let i=n.getOffendingToken(e);void 0===i&&(i=null),e.notifyErrorListeners(t,i,n)}recover(e,t){this.lastErrorIndex===e.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(e.state)&&e.consume(),this.lastErrorIndex=e.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new d.IntervalSet),this.lastErrorStates.add(e.state);let n=this.getErrorRecoverySet(e);this.consumeUntil(e,n)}sync(e){let t=e.interpreter.atn.states[e.state];if(this.inErrorRecoveryMode(e))return;let n=e.inputStream.LA(1),i=e.atn.nextTokens(t);if(i.contains(n))return this.nextTokensContext=void 0,void(this.nextTokensState=a.ATNState.INVALID_STATE_NUMBER);if(i.contains(m.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=e.context,this.nextTokensState=e.state);else switch(t.stateType){case r.ATNStateType.BLOCK_START:case r.ATNStateType.STAR_BLOCK_START:case r.ATNStateType.PLUS_BLOCK_START:case r.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(e))return;throw new s.InputMismatchException(e);case r.ATNStateType.PLUS_LOOP_BACK:case r.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(e);let t=e.getExpectedTokens().or(this.getErrorRecoverySet(e));this.consumeUntil(e,t)}}reportNoViableAlternative(e,t){let n,i=e.inputStream;n=i?t.startToken.type===m.Token.EOF?"":i.getTextFromRange(t.startToken,t.getOffendingToken()):"";let o="no viable alternative at input "+this.escapeWSAndQuote(n);this.notifyErrorListeners(e,o,t)}reportInputMismatch(e,t){let n=t.expectedTokens,i=n?n.toStringVocabulary(e.vocabulary):"",o="mismatched input "+this.getTokenErrorDisplay(t.getOffendingToken(e))+" expecting "+i;this.notifyErrorListeners(e,o,t)}reportFailedPredicate(e,t){let n="rule "+e.ruleNames[e.context.ruleIndex]+" "+t.message;this.notifyErrorListeners(e,n,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let t=e.currentToken,n="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toStringVocabulary(e.vocabulary);e.notifyErrorListeners(n,t,void 0)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);let t=e.currentToken,n="missing "+this.getExpectedTokens(e).toStringVocabulary(e.vocabulary)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(n,t,void 0)}recoverInline(e){let t=this.singleTokenDeletion(e);if(t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw void 0===this.nextTokensContext?new s.InputMismatchException(e):new s.InputMismatchException(e,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(e){let t=e.inputStream.LA(1),n=e.interpreter.atn.states[e.state].transition(0).target,i=e.interpreter.atn;return!!i.nextTokens(n,u.PredictionContext.fromRuleContext(i,e.context)).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){let t=e.inputStream.LA(2);if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();let t=e.currentToken;return this.reportMatch(e),t}}getMissingSymbol(e){let t,n=e.currentToken,i=this.getExpectedTokens(e),o=m.Token.INVALID_TYPE;i.isNil||(o=i.minElement),t=o===m.Token.EOF?"":"";let a=n,r=e.inputStream.tryLT(-1);return a.type===m.Token.EOF&&null!=r&&(a=r),this.constructToken(e.inputStream.tokenSource,o,t,a)}constructToken(e,t,n,i){let o=e.tokenFactory,a=i.tokenSource,r=a?a.inputStream:void 0;return o.create({source:e,stream:r},t,n,m.Token.DEFAULT_CHANNEL,-1,-1,i.line,i.charPositionInLine)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(e){if(!e)return"";let t=this.getSymbolText(e);return t||(t=this.getSymbolType(e)===m.Token.EOF?"":`<${this.getSymbolType(e)}>`),this.escapeWSAndQuote(t)}getSymbolText(e){return e.text}getSymbolType(e){return e.type}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(e){let t=e.interpreter.atn,n=e.context,i=new d.IntervalSet;for(;n&&n.invokingState>=0;){let e=t.states[n.invokingState].transition(0),o=t.nextTokens(e.followState);i.addAll(o),n=n._parent}return i.remove(m.Token.EPSILON),i}consumeUntil(e,t){let n=e.inputStream.LA(1);for(;n!==m.Token.EOF&&!t.contains(n);)e.consume(),n=e.inputStream.LA(1)}}i([h.Override],p.prototype,"reset",null),i([o(0,h.NotNull)],p.prototype,"beginErrorCondition",null),i([h.Override],p.prototype,"inErrorRecoveryMode",null),i([o(0,h.NotNull)],p.prototype,"endErrorCondition",null),i([h.Override],p.prototype,"reportMatch",null),i([h.Override],p.prototype,"reportError",null),i([o(0,h.NotNull)],p.prototype,"notifyErrorListeners",null),i([h.Override],p.prototype,"recover",null),i([h.Override],p.prototype,"sync",null),i([o(0,h.NotNull),o(1,h.NotNull)],p.prototype,"reportNoViableAlternative",null),i([o(0,h.NotNull),o(1,h.NotNull)],p.prototype,"reportInputMismatch",null),i([o(0,h.NotNull),o(1,h.NotNull)],p.prototype,"reportFailedPredicate",null),i([o(0,h.NotNull)],p.prototype,"reportUnwantedToken",null),i([o(0,h.NotNull)],p.prototype,"reportMissingToken",null),i([h.Override],p.prototype,"recoverInline",null),i([o(0,h.NotNull)],p.prototype,"singleTokenInsertion",null),i([o(0,h.NotNull)],p.prototype,"singleTokenDeletion",null),i([h.NotNull,o(0,h.NotNull)],p.prototype,"getMissingSymbol",null),i([h.NotNull,o(0,h.NotNull)],p.prototype,"getExpectedTokens",null),i([o(0,h.NotNull)],p.prototype,"getSymbolText",null),i([o(0,h.NotNull)],p.prototype,"getSymbolType",null),i([h.NotNull,o(0,h.NotNull)],p.prototype,"escapeWSAndQuote",null),i([h.NotNull,o(0,h.NotNull)],p.prototype,"getErrorRecoverySet",null),i([o(0,h.NotNull),o(1,h.NotNull)],p.prototype,"consumeUntil",null),t.DefaultErrorStrategy=p},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const i=n(21);class o extends i.Transition{constructor(e){super(e)}}t.AbstractPredicateTransition=o},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(54),a=n(1),r=new Int32Array(0);class l{constructor(e){if(e)if(e instanceof l)this._data=e._data.slice(0),this._size=e._size;else if("number"==typeof e)0===e?(this._data=r,this._size=0):(this._data=new Int32Array(e),this._size=0);else{this._data=r,this._size=0;for(let t of e)this.add(t)}else this._data=r,this._size=0}add(e){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=e,this._size++}addAll(e){if(Array.isArray(e))this.ensureCapacity(this._size+e.length),this._data.subarray(this._size,this._size+e.length).set(e),this._size+=e.length;else if(e instanceof l)this.ensureCapacity(this._size+e._size),this._data.subarray(this._size,this._size+e.size).set(e._data),this._size+=e._size;else{this.ensureCapacity(this._size+e.size);let t=0;for(let n of e)this._data[this._size+t]=n,t++;this._size+=e.size}}get(e){if(e<0||e>=this._size)throw RangeError();return this._data[e]}contains(e){for(let t=0;t=this._size)throw RangeError();let n=this._data[e];return this._data[e]=t,n}removeAt(e){let t=this.get(e);return this._data.copyWithin(e,e+1,this._size),this._data[this._size-1]=0,this._size--,t}removeRange(e,t){if(e<0||t<0||e>this._size||t>this._size)throw RangeError();if(e>t)throw RangeError();this._data.copyWithin(t,e,this._size),this._data.fill(0,this._size-(t-e),this._size),this._size-=t-e}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(e){if(e===this)return!0;if(!(e instanceof l))return!1;if(this._size!==e._size)return!1;for(let t=0;tthis._size||n>this._size)throw new RangeError;if(t>n)throw new RangeError;return o.Arrays.binarySearch(this._data,e,t,n)}ensureCapacity(e){if(e<0||e>2147483639)throw new RangeError;let t;for(t=0===this._data.length?4:this._data.length;t2147483639)&&(t=2147483639);let n=new Int32Array(t);n.set(this._data),this._data=n}toCharArray(){let e=new Uint16Array(this._size),t=0,n=!1;for(let i=0;i=0&&o<65536){e[t]=o,t++;continue}if(!n){let t=new Uint16Array(this.charArraySize());t.set(e,0),e=t,n=!0}let a=String.fromCodePoint(o);e[t]=a.charCodeAt(0),e[t+1]=a.charCodeAt(1),t+=2}return e}charArraySize(){let e=0;for(let t=0;t=65536?2:1;return e}}i([a.NotNull],l.prototype,"_data",void 0),i([a.Override],l.prototype,"equals",null),i([a.Override],l.prototype,"hashCode",null),i([a.Override],l.prototype,"toString",null),t.IntegerList=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.binarySearch=function(e,t,n,i){return function(e,t,n,i){let o=t,a=n-1;for(;o<=a;){let t=o+a>>>1,n=e[t];if(ni))return t;a=t-1}}return-(o+1)}(e,void 0!==n?n:0,void 0!==i?i:e.length,t)},e.toString=function(e){let t="[",n=!0;for(let i of e)n?n=!1:t+=", ",t+=null===i?"null":void 0===i?"undefined":i;return t+="]",t}}(t.Arrays||(t.Arrays={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(36),a=n(11),r=n(1);class l{constructor(e=!1){this.copyText=e}create(e,t,n,i,r,l,s,d){let c=new o.CommonToken(t,n,e,i,r,l);return c.line=s,c.charPositionInLine=d,null==n&&this.copyText&&null!=e.stream&&(c.text=e.stream.getText(a.Interval.of(r,l))),c}createSimple(e,t){return new o.CommonToken(e,t)}}i([r.Override],l.prototype,"create",null),i([r.Override],l.prototype,"createSimple",null),t.CommonTokenFactory=l,function(e){e.DEFAULT=new e}(l=t.CommonTokenFactory||(t.CommonTokenFactory={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(29),a=n(1),r=n(16),l=n(15),s=n(13);class d{constructor(e=!0){this.contexts=new o.Array2DHashMap(r.ObjectEqualityComparator.INSTANCE),this.childContexts=new o.Array2DHashMap(r.ObjectEqualityComparator.INSTANCE),this.joinContexts=new o.Array2DHashMap(r.ObjectEqualityComparator.INSTANCE),this.enableCache=e}getAsCached(e){if(!this.enableCache)return e;let t=this.contexts.get(e);return t||(t=e,this.contexts.put(e,e)),t}getChild(e,t){if(!this.enableCache)return e.getChild(t);let n=new d.PredictionContextAndInt(e,t),i=this.childContexts.get(n);return i||(i=e.getChild(t),i=this.getAsCached(i),this.childContexts.put(n,i)),i}join(e,t){if(!this.enableCache)return l.PredictionContext.join(e,t,this);let n=new d.IdentityCommutativePredictionContextOperands(e,t),i=this.joinContexts.get(n);return i||(i=l.PredictionContext.join(e,t,this),i=this.getAsCached(i),this.joinContexts.put(n,i),i)}}d.UNCACHED=new d(!1),t.PredictionContextCache=d,function(e){class t{constructor(e,t){this.obj=e,this.value=t}equals(e){if(!(e instanceof t))return!1;if(e===this)return!0;let n=e;return this.value===n.value&&(this.obj===n.obj||null!=this.obj&&this.obj.equals(n.obj))}hashCode(){let e=5;return e=7*e+(null!=this.obj?this.obj.hashCode():0),e=7*e+this.value,e}}i([a.Override],t.prototype,"equals",null),i([a.Override],t.prototype,"hashCode",null),e.PredictionContextAndInt=t;class n{constructor(e,t){s(null!=e),s(null!=t),this._x=e,this._y=t}get x(){return this._x}get y(){return this._y}equals(e){if(!(e instanceof n))return!1;if(this===e)return!0;let t=e;return this._x===t._x&&this._y===t._y||this._x===t._y&&this._y===t._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}i([a.Override],n.prototype,"equals",null),i([a.Override],n.prototype,"hashCode",null),e.IdentityCommutativePredictionContextOperands=n}(d=t.PredictionContextCache||(t.PredictionContextCache={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);class r{constructor(e){if(this.delegates=e,!e)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(e,t,n,i,o,a){this.delegates.forEach(r=>{r.syntaxError&&r.syntaxError(e,t,n,i,o,a)})}}i([a.Override,o(0,a.NotNull),o(4,a.NotNull)],r.prototype,"syntaxError",null),t.ProxyErrorListener=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(23),r=n(25),l=n(1);class s extends r.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new a.BitSet}get stateType(){return o.ATNStateType.STAR_LOOP_ENTRY}}i([l.Override],s.prototype,"stateType",null),t.StarLoopEntryState=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(60);let l=class extends r.SetTransition{constructor(e,t){super(e,t)}get serializationType(){return 8}matches(e,t,n){return e>=t&&e<=n&&!super.matches(e,t,n)}toString(){return"~"+super.toString()}};i([a.Override],l.prototype,"serializationType",null),i([a.Override],l.prototype,"matches",null),i([a.Override],l.prototype,"toString",null),l=i([o(0,a.NotNull),o(1,a.Nullable)],l),t.NotSetTransition=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(24),r=n(1),l=n(4),s=n(21);let d=class extends s.Transition{constructor(e,t){super(e),null==t&&(t=a.IntervalSet.of(l.Token.INVALID_TYPE)),this.set=t}get serializationType(){return 7}get label(){return this.set}matches(e,t,n){return this.set.contains(e)}toString(){return this.set.toString()}};i([r.NotNull],d.prototype,"set",void 0),i([r.Override],d.prototype,"serializationType",null),i([r.Override,r.NotNull],d.prototype,"label",null),i([r.Override],d.prototype,"matches",null),i([r.Override,r.NotNull],d.prototype,"toString",null),d=i([o(0,r.NotNull),o(1,r.Nullable)],d),t.SetTransition=d},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(21);let l=class extends r.Transition{constructor(e,t,n,i){super(e),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=t,this.precedence=n,this.followState=i}get serializationType(){return 3}get isEpsilon(){return!0}matches(e,t,n){return!1}};i([a.NotNull],l.prototype,"followState",void 0),i([a.Override],l.prototype,"serializationType",null),i([a.Override],l.prototype,"isEpsilon",null),i([a.Override],l.prototype,"matches",null),l=i([o(0,a.NotNull),o(3,a.NotNull)],l),t.RuleTransition=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(30);class r extends a.TerminalNode{constructor(e){super(e)}accept(e){return e.visitErrorNode(this)}}i([o.Override],r.prototype,"accept",null),t.ErrorNode=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});t.RuleNode=class{}},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const i=n(98),o=n(99),a=n(20);!function(e){e.fromString=function(e,t){void 0!==t&&0!==t.length||(t=a.IntStream.UNKNOWN_SOURCE_NAME);let n=i.CodePointBuffer.builder(e.length),r=new Uint16Array(e.length);for(let t=0;t=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(100),r=n(1),l=n(4);let s=class extends a.BufferedTokenStream{constructor(e,t=l.Token.DEFAULT_CHANNEL){super(e),this.channel=t}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}tryLB(e){if(this.p-e<0)return;let t=this.p,n=1;for(;n<=e&&t>0;)t=this.previousTokenOnChannel(t-1,this.channel),n++;return t<0?void 0:this.tokens[t]}tryLT(e){if(this.lazyInit(),0===e)throw new RangeError("0 is not a valid lookahead index");if(e<0)return this.tryLB(-e);let t=this.p,n=1;for(;n{throw e},t.removeErrorListeners(),t.addErrorListener(new d.XPathLexerErrorListener);let n=new o.CommonTokenStream(t);try{n.fill()}catch(n){if(n instanceof a.LexerNoViableAltException){let i="Invalid tokens or characters at index "+t.charPositionInLine+" in path '"+e+"' -- "+n.message;throw new RangeError(i)}throw n}let r=n.getTokens(),c=[],u=r.length,m=0;e:for(;m0){this.elements[i].evaluate(t).forEach(e.add,e)}i++,n=e}return n}}b.WILDCARD="*",b.NOT="!",t.XPath=b},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),i(n(128)),i(n(81)),i(n(100)),i(n(64)),i(n(98)),i(n(99)),i(n(36)),i(n(55)),i(n(65)),i(n(87)),i(n(51)),i(n(184)),i(n(185)),i(n(8)),i(n(44)),i(n(104)),i(n(20)),i(n(19)),i(n(186)),i(n(48)),i(n(101)),i(n(10)),i(n(32)),i(n(103)),i(n(2)),i(n(57)),i(n(97)),i(n(3)),i(n(38)),i(n(95)),i(n(187)),i(n(188)),i(n(189)),i(n(4)),i(n(190)),i(n(17))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.extend=function(e){var t,n,o,a,r=Array.prototype.slice.call(arguments,1);for(t=0,n=r.length;t=a)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),s=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),x(i.showHidden)&&(i.showHidden=!1),x(i.depth)&&(i.depth=2),x(i.colors)&&(i.colors=!1),x(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),c(i,e,i.depth)}function s(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function d(e,t){return e}function c(e,n,i){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,e);return g(o)||(o=c(e,o,i)),o}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(b(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(T(t))return e.stylize("null","null")}(e,n);if(a)return a;var r=Object.keys(n),l=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(r);if(e.showHidden&&(r=Object.getOwnPropertyNames(n)),y(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return u(n);if(0===r.length){if(C(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(f(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(y(n))return u(n)}var d,k="",E=!1,A=["{","}"];(h(n)&&(E=!0,A=["[","]"]),C(n))&&(k=" [Function"+(n.name?": "+n.name:"")+"]");return f(n)&&(k=" "+RegExp.prototype.toString.call(n)),S(n)&&(k=" "+Date.prototype.toUTCString.call(n)),y(n)&&(k=" "+u(n)),0!==r.length||E&&0!=n.length?i<0?f(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),d=E?function(e,t,n,i,o){for(var a=[],r=0,l=t.length;r=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(d,k,A)):A[0]+k+A[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,i,o,a){var r,l,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),I(i,o)||(r="["+o+"]"),l||(e.seen.indexOf(s.value)<0?(l=T(n)?c(e,s.value,null):c(e,s.value,n-1)).indexOf("\n")>-1&&(l=a?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),x(r)){if(a&&o.match(/^\d+$/))return l;(r=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+l}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function T(e){return null===e}function b(e){return"number"==typeof e}function g(e){return"string"==typeof e}function x(e){return void 0===e}function f(e){return k(e)&&"[object RegExp]"===E(e)}function k(e){return"object"==typeof e&&null!==e}function S(e){return k(e)&&"[object Date]"===E(e)}function y(e){return k(e)&&("[object Error]"===E(e)||e instanceof Error)}function C(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function A(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(x(a)&&(a=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!r[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=e.pid;r[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else r[n]=function(){};return r[n]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=p,t.isNull=T,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=x,t.isRegExp=f,t.isObject=k,t.isDate=S,t.isError=y,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(130);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _(){var e=new Date,t=[A(e.getHours()),A(e.getMinutes()),A(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",_(),t.format.apply(t,arguments))},t.inherits=n(131),t._extend=function(e,t){if(!t||!k(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(L&&e[L]){var t;if("function"!=typeof(t=e[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,L,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),o=[],a=0;a=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(51),a=n(44),r=n(1),l=n(102);class s extends o.DefaultErrorStrategy{recover(e,t){for(let n=e.context;n;n=n.parent)n.exception=t;throw new l.ParseCancellationException(t)}recoverInline(e){let t=new a.InputMismatchException(e);for(let n=e.context;n;n=n.parent)n.exception=t;throw new l.ParseCancellationException(t)}sync(e){}}i([r.Override],s.prototype,"recover",null),i([r.Override],s.prototype,"recoverInline",null),i([r.Override],s.prototype,"sync",null),t.BailErrorStrategy=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(52),r=n(1),l=n(28);let s=class extends a.AbstractPredicateTransition{constructor(e,t,n,i){super(e),this.ruleIndex=t,this.predIndex=n,this.isCtxDependent=i}get serializationType(){return 4}get isEpsilon(){return!0}matches(e,t,n){return!1}get predicate(){return new l.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};i([r.Override],s.prototype,"serializationType",null),i([r.Override],s.prototype,"isEpsilon",null),i([r.Override],s.prototype,"matches",null),i([r.Override,r.NotNull],s.prototype,"toString",null),s=i([o(0,r.NotNull)],s),t.PredicateTransition=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const i=n(53);class o extends i.IntegerList{constructor(e){super(e)}push(e){this.add(e)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}t.IntegerStack=o},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});t.AcceptStateInfo=class{constructor(e,t){this._prediction=e,this._lexerActionExecutor=t}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(22),r=n(37),l=n(86),s=n(47),d=n(133),c=n(1),u=n(16),m=n(58),h=n(17);let p=class{constructor(e,t=0){if(this.states=new a.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!e.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=e,this.atn=e.atn,this.decision=t;let n=!1;e instanceof m.StarLoopEntryState&&e.precedenceRuleDecision&&(n=!0,this.s0=new s.DFAState(new r.ATNConfigSet),this.s0full=new s.DFAState(new r.ATNConfigSet)),this.precedenceDfa=n}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(e,t){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return t?this.s0full.getTarget(e):this.s0.getTarget(e)}setPrecedenceStartState(e,t,n){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");e<0||(t?this.s0full.setTarget(e,n):this.s0.setTarget(e,n))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(e){return e.stateNumber=this.nextStateNumber++,this.states.getOrAdd(e)}toString(e,t){if(e||(e=h.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let n;return n=t?new l.DFASerializer(this,e,t,this.atnStartState.atn):new l.DFASerializer(this,e),n.toString()}toLexerString(){if(!this.s0)return"";return new d.LexerDFASerializer(this).toString()}};i([c.NotNull],p.prototype,"states",void 0),i([c.NotNull],p.prototype,"atnStartState",void 0),i([c.NotNull],p.prototype,"atn",void 0),p=i([o(0,c.NotNull)],p),t.DFA=p},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(46),a=n(1),r=n(15),l=n(38),s=n(17);class d{constructor(e,t,n,i){t instanceof l.Recognizer?(n=t.ruleNames,i=t.atn,t=t.vocabulary):t||(t=s.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=e,this.vocabulary=t,this.ruleNames=n,this.atn=i}toString(){if(!this.dfa.s0)return"";let e="";if(this.dfa.states){let t=new Array(...this.dfa.states.toArray());t.sort((e,t)=>e.stateNumber-t.stateNumber);for(let n of t){let t=n.getEdgeMap(),i=[...t.keys()].sort((e,t)=>e-t),a=n.getContextEdgeMap(),r=[...a.keys()].sort((e,t)=>e-t);for(let a of i){let i=t.get(a);if((null==i||i===o.ATNSimulator.ERROR)&&!n.isContextSymbol(a))continue;let r=!1;e+=this.getStateString(n)+"-"+this.getEdgeLabel(a)+"->",n.isContextSymbol(a)&&(e+="!",r=!0);let l=i;l&&l.stateNumber!==o.ATNSimulator.ERROR.stateNumber?e+=this.getStateString(l)+"\n":r&&(e+="ctx\n")}if(n.isContextSensitive)for(let t of r)e+=this.getStateString(n)+"-"+this.getContextLabel(t)+"->"+this.getStateString(a.get(t))+"\n"}}let t=e;return 0===t.length?"":t}getContextLabel(e){if(e===r.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(e===r.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&e>0&&e<=this.atn.states.length){let t=this.atn.states[e].ruleIndex;if(this.ruleNames&&t>=0&&t"+e.predicates:":s"+t+"=>"+e.prediction),e.isContextSensitive){n+="*";for(let t of e.configs)if(t.reachesIntoOuterContext){n+="*";break}}return n}}i([a.NotNull],d.prototype,"dfa",void 0),i([a.NotNull],d.prototype,"vocabulary",void 0),i([a.Override],d.prototype,"toString",null),t.DFASerializer=d},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});class i{syntaxError(e,t,n,i,o,a){console.error(`line ${n}:${i} ${o}`)}}i.INSTANCE=new i,t.ConsoleErrorListener=i},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(89),r=n(1);class l extends a.BasicState{get stateType(){return o.ATNStateType.INVALID_TYPE}}i([r.Override],l.prototype,"stateType",null),t.InvalidState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(18),a=n(9),r=n(1);class l extends o.ATNState{get stateType(){return a.ATNStateType.BASIC}}i([r.Override],l.prototype,"stateType",null),t.BasicState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(21);let l=class extends r.Transition{constructor(e){super(e)}get serializationType(){return 9}matches(e,t,n){return e>=t&&e<=n}toString(){return"."}};i([a.Override],l.prototype,"serializationType",null),i([a.Override],l.prototype,"matches",null),i([a.Override,a.NotNull],l.prototype,"toString",null),l=i([o(0,a.NotNull)],l),t.WildcardTransition=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{constructor(e){this.readOnly=!1,e?(this.verifyATN=e.verifyATN,this.generateRuleBypassTransitions=e.generateRuleBypassTransitions,this.optimize=e.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==a._defaultOptions&&(a._defaultOptions=new a,a._defaultOptions.makeReadOnly()),a._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(e){this.throwIfReadOnly(),this.verifyATN=e}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(e){this.throwIfReadOnly(),this.generateRuleBypassTransitions=e}get isOptimize(){return this.optimize}set isOptimize(e){this.throwIfReadOnly(),this.optimize=e}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}i([o.NotNull],a,"defaultOptions",null),t.ATNDeserializationOptions=a},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(21);let l=class extends r.Transition{constructor(e,t,n=-1,i=!1){super(e),this.ruleIndex=t,this.actionIndex=n,this.isCtxDependent=i}get serializationType(){return 6}get isEpsilon(){return!0}matches(e,t,n){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};i([a.Override],l.prototype,"serializationType",null),i([a.Override],l.prototype,"isEpsilon",null),i([a.Override],l.prototype,"matches",null),i([a.Override],l.prototype,"toString",null),l=i([o(0,a.NotNull)],l),t.ActionTransition=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(24),r=n(1),l=n(21);let s=class extends l.Transition{constructor(e,t){super(e),this._label=t}get serializationType(){return 5}get label(){return a.IntervalSet.of(this._label)}matches(e,t,n){return this._label===e}toString(){return String(this.label)}};i([r.Override],s.prototype,"serializationType",null),i([r.Override,r.NotNull],s.prototype,"label",null),i([r.Override],s.prototype,"matches",null),i([r.Override,r.NotNull],s.prototype,"toString",null),s=i([o(0,r.NotNull)],s),t.AtomTransition=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(18),a=n(9),r=n(1);class l extends o.ATNState{get stateType(){return a.ATNStateType.LOOP_END}}i([r.Override],l.prototype,"stateType",null),t.LoopEndState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(7),a=n(38),r=n(63),l=n(11),s=n(1),d=n(26),c=n(2);class u extends r.RuleNode{constructor(e,t){super(),this._parent=e,this.invokingState=null!=t?t:-1}static getChildContext(e,t){return new u(e,t)}depth(){let e=0,t=this;for(;t;)t=t._parent,e++;return e}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return l.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(e){this._parent=e}get payload(){return this}get text(){if(0===this.childCount)return"";let e="";for(let t=0;t=0&&e=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(2);let l=class{constructor(e,t,n,i){this.outerContext=null!=e?e:r.ParserRuleContext.emptyContext(),this.s0=t,this.useContext=n,this.remainingOuterContext=i}};l=i([o(1,a.NotNull)],l),t.SimulatorState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(57),a=n(1);class r extends o.ProxyErrorListener{constructor(e){super(e)}reportAmbiguity(e,t,n,i,o,a,r){this.getDelegates().forEach(l=>{l.reportAmbiguity&&l.reportAmbiguity(e,t,n,i,o,a,r)})}reportAttemptingFullContext(e,t,n,i,o,a){this.getDelegates().forEach(r=>{r.reportAttemptingFullContext&&r.reportAttemptingFullContext(e,t,n,i,o,a)})}reportContextSensitivity(e,t,n,i,o,a){this.getDelegates().forEach(r=>{r.reportContextSensitivity&&r.reportContextSensitivity(e,t,n,i,o,a)})}}i([a.Override],r.prototype,"reportAmbiguity",null),i([a.Override],r.prototype,"reportAttemptingFullContext",null),i([a.Override],r.prototype,"reportContextSensitivity",null),t.ProxyParserErrorListener=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const i=n(13),o=n(162);class a{constructor(e,t){this.buffer=e,this._position=0,this._size=t}static withArray(e){return new a(e,e.length)}get position(){return this._position}set position(e){if(e<0||e>this._size)throw new RangeError;this._position=e}get remaining(){return this._size-this.position}get(e){return this.buffer[e]}array(){return this.buffer.slice(0,this._size)}static builder(e){return new a.Builder(e)}}t.CodePointBuffer=a,function(e){let t;!function(e){e[e.BYTE=0]="BYTE",e[e.CHAR=1]="CHAR",e[e.INT=2]="INT"}(t||(t={}));class n{constructor(e){this.type=0,this.buffer=new Uint8Array(e),this.prevHighSurrogate=-1,this.position=0}build(){return new e(this.buffer,this.position)}static roundUpToNextPowerOfTwo(e){let t=32-Math.clz32(e-1);return Math.pow(2,t)}ensureRemaining(e){switch(this.type){case 0:if(this.buffer.length-this.position>1));t.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=t}byteToIntBuffer(e){let t=new Int32Array(Math.max(this.position+e,this.buffer.length>>2));t.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=t}charToIntBuffer(e){let t=new Int32Array(Math.max(this.position+e,this.buffer.length>>1));t.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=t}}e.Builder=n}(a=t.CodePointBuffer||(t.CodePointBuffer={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(13),a=n(20),r=n(11),l=n(1);class s{constructor(e,t,n,i){o(0===t),this._array=e,this._size=n,this._name=i,this._position=0}get internalStorage(){return this._array}static fromBuffer(e,t){return void 0!==t&&0!==t.length||(t=a.IntStream.UNKNOWN_SOURCE_NAME),new s(e.array(),e.position,e.remaining,t)}consume(){if(this._size-this._position==0)throw o(this.LA(1)===a.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(e){}seek(e){this._position=e}get sourceName(){return this._name}toString(){return this.getText(r.Interval.of(0,this.size-1))}LA(e){let t;switch(Math.sign(e)){case-1:return t=this.index+e,t<0?a.IntStream.EOF:this._array[t];case 0:return 0;case 1:return t=this.index+e-1,t>=this.size?a.IntStream.EOF:this._array[t]}throw new RangeError("Not reached")}getText(e){const t=Math.min(e.a,this.size),n=Math.min(e.b-e.a+1,this.size-t);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(t,t+n))):String.fromCharCode(...Array.from(this._array.subarray(t,t+n)))}}i([l.Override],s.prototype,"consume",null),i([l.Override],s.prototype,"index",null),i([l.Override],s.prototype,"size",null),i([l.Override],s.prototype,"mark",null),i([l.Override],s.prototype,"release",null),i([l.Override],s.prototype,"seek",null),i([l.Override],s.prototype,"sourceName",null),i([l.Override],s.prototype,"toString",null),i([l.Override],s.prototype,"LA",null),i([l.Override],s.prototype,"getText",null),t.CodePointCharStream=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(13),r=n(36),l=n(11),s=n(19),d=n(1),c=n(4);let u=class{constructor(e){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==e)throw new Error("tokenSource cannot be null");this._tokenSource=e}get tokenSource(){return this._tokenSource}set tokenSource(e){this._tokenSource=e,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(e){}seek(e){this.lazyInit(),this.p=this.adjustSeekIndex(e)}get size(){return this.tokens.length}consume(){let e;if(e=this.p>=0&&(this.fetchedEOF?this.p=0);let t=e-this.tokens.length+1;if(t>0){return this.fetch(t)>=t}return!0}fetch(e){if(this.fetchedEOF)return 0;for(let t=0;t=this.tokens.length)throw new RangeError("token index "+e+" out of range 0.."+(this.tokens.length-1));return this.tokens[e]}getRange(e,t){if(e<0||t<0)return[];this.lazyInit();let n=new Array;t>=this.tokens.length&&(t=this.tokens.length-1);for(let i=e;i<=t;i++){let e=this.tokens[i];if(e.type===c.Token.EOF)break;n.push(e)}return n}LA(e){let t=this.LT(e);return t?t.type:c.Token.INVALID_TYPE}tryLB(e){if(!(this.p-e<0))return this.tokens[this.p-e]}LT(e){let t=this.tryLT(e);if(void 0===t)throw new RangeError("requested lookback index out of range");return t}tryLT(e){if(this.lazyInit(),0===e)throw new RangeError("0 is not a valid lookahead index");if(e<0)return this.tryLB(-e);let t=this.p+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(e,t,n){if(this.lazyInit(),void 0===e)return a(void 0===t&&void 0===n),this.tokens;if(void 0===t&&(t=this.tokens.length-1),e<0||t>=this.tokens.length||t<0||e>=this.tokens.length)throw new RangeError("start "+e+" or stop "+t+" not in 0.."+(this.tokens.length-1));if(e>t)return[];if(void 0===n)return this.tokens.slice(e,t+1);"number"==typeof n&&(n=(new Set).add(n));let i=n,o=this.tokens.slice(e,t+1);return o=o.filter(e=>i.has(e.type)),o}nextTokenOnChannel(e,t){if(this.sync(e),e>=this.size)return this.size-1;let n=this.tokens[e];for(;n.channel!==t;){if(n.type===c.Token.EOF)return e;e++,this.sync(e),n=this.tokens[e]}return e}previousTokenOnChannel(e,t){if(this.sync(e),e>=this.size)return this.size-1;for(;e>=0;){let n=this.tokens[e];if(n.type===c.Token.EOF||n.channel===t)return e;e--}return e}getHiddenTokensToRight(e,t=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));let n,i=this.nextTokenOnChannel(e+1,s.Lexer.DEFAULT_TOKEN_CHANNEL),o=e+1;return n=-1===i?this.size-1:i,this.filterForChannel(o,n,t)}getHiddenTokensToLeft(e,t=-1){if(this.lazyInit(),e<0||e>=this.tokens.length)throw new RangeError(e+" not in 0.."+(this.tokens.length-1));if(0===e)return[];let n=this.previousTokenOnChannel(e-1,s.Lexer.DEFAULT_TOKEN_CHANNEL);if(n===e-1)return[];let i=n+1,o=e-1;return this.filterForChannel(i,o,t)}filterForChannel(e,t,n){let i=new Array;for(let o=e;o<=t;o++){let e=this.tokens[o];-1===n?e.channel!==s.Lexer.DEFAULT_TOKEN_CHANNEL&&i.push(e):e.channel===n&&i.push(e)}return i}get sourceName(){return this.tokenSource.sourceName}getText(e){void 0===e?e=l.Interval.of(0,this.size-1):e instanceof l.Interval||(e=e.sourceInterval);let t=e.a,n=e.b;if(t<0||n<0)return"";this.fill(),n>=this.tokens.length&&(n=this.tokens.length-1);let i="";for(let e=t;e<=n;e++){let t=this.tokens[e];if(t.type===c.Token.EOF)break;i+=t.text}return i.toString()}getTextFromRange(e,t){return this.isToken(e)&&this.isToken(t)?this.getText(l.Interval.of(e.tokenIndex,t.tokenIndex)):""}fill(){this.lazyInit();for(;;){if(this.fetch(1e3)<1e3)return}}isWritableToken(e){return e instanceof r.CommonToken}isToken(e){return e instanceof r.CommonToken}};i([d.NotNull],u.prototype,"_tokenSource",void 0),i([d.Override],u.prototype,"tokenSource",null),i([d.Override],u.prototype,"index",null),i([d.Override],u.prototype,"mark",null),i([d.Override],u.prototype,"release",null),i([d.Override],u.prototype,"seek",null),i([d.Override],u.prototype,"size",null),i([d.Override],u.prototype,"consume",null),i([d.Override],u.prototype,"get",null),i([d.Override],u.prototype,"LA",null),i([d.NotNull,d.Override],u.prototype,"LT",null),i([d.Override],u.prototype,"sourceName",null),i([d.NotNull,d.Override],u.prototype,"getText",null),i([d.NotNull,d.Override],u.prototype,"getTextFromRange",null),u=i([o(0,d.NotNull)],u),t.BufferedTokenStream=u},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(55),r=n(1),l=n(4);let s=class{constructor(e,t){if(this.i=0,this._factory=a.CommonTokenFactory.DEFAULT,null==e)throw new Error("tokens cannot be null");this.tokens=e,this._sourceName=t}get charPositionInLine(){if(this.i0){let e=this.tokens[this.tokens.length-1],t=e.text;if(null!=t){let e=t.lastIndexOf("\n");if(e>=0)return t.length-e-1}return e.charPositionInLine+e.stopIndex-e.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let e=-1;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1].stopIndex;-1!==t&&(e=t+1)}let t=Math.max(-1,e-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},l.Token.EOF,"EOF",l.Token.DEFAULT_CHANNEL,e,t,this.line,this.charPositionInLine)}return this.eofToken}let e=this.tokens[this.i];return this.i===this.tokens.length-1&&e.type===l.Token.EOF&&(this.eofToken=e),this.i++,e}get line(){if(this.i0){let e=this.tokens[this.tokens.length-1],t=e.line,n=e.text;if(null!=n)for(let e=0;e0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let e=this.inputStream;return null!=e?e.sourceName:"List"}set tokenFactory(e){this._factory=e}get tokenFactory(){return this._factory}};i([r.Override],s.prototype,"charPositionInLine",null),i([r.Override],s.prototype,"nextToken",null),i([r.Override],s.prototype,"line",null),i([r.Override],s.prototype,"inputStream",null),i([r.Override],s.prototype,"sourceName",null),i([r.Override,r.NotNull,o(0,r.NotNull)],s.prototype,"tokenFactory",null),s=i([o(0,r.NotNull)],s),t.ListTokenSource=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});class i extends Error{constructor(e){super(e.message),this.cause=e,this.stack=e.stack}getCause(){return this.cause}}t.ParseCancellationException=i},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(18),r=n(9),l=n(23),s=n(8),d=n(44),c=n(104),u=n(94),m=n(1),h=n(1),p=n(32),T=n(33),b=n(3),g=n(58),x=n(4);let f=class e extends p.Parser{constructor(t,n,i,o,a){if(super(t instanceof e?t.inputStream:a),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,t instanceof e){let e=t;this._grammarFileName=e._grammarFileName,this._atn=e._atn,this.pushRecursionContextStates=e.pushRecursionContextStates,this._ruleNames=e._ruleNames,this._vocabulary=e._vocabulary,this.interpreter=new T.ParserATNSimulator(this._atn,this)}else{n=n,i=i,o=o,this._grammarFileName=t,this._atn=o,this._ruleNames=i.slice(0),this._vocabulary=n,this.pushRecursionContextStates=new l.BitSet(o.states.length);for(let e of o.states)e instanceof g.StarLoopEntryState&&e.precedenceRuleDecision&&this.pushRecursionContextStates.set(e.stateNumber);this.interpreter=new T.ParserATNSimulator(o,this)}}reset(e){void 0===e?super.reset():super.reset(e),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(e){let t=this._atn.ruleToStartState[e];for(this._rootContext=this.createInterpreterRuleContext(void 0,a.ATNState.INVALID_STATE_NUMBER,e),t.isPrecedenceRule?this.enterRecursionRule(this._rootContext,t.stateNumber,e,0):this.enterRule(this._rootContext,t.stateNumber,e);;){let e=this.atnState;switch(e.stateType){case r.ATNStateType.RULE_STOP:if(this._ctx.isEmpty){if(t.isPrecedenceRule){let e=this._ctx,t=this._parentContextStack.pop();return this.unrollRecursionContexts(t[0]),e}return this.exitRule(),this._rootContext}this.visitRuleStopState(e);break;default:try{this.visitState(e)}catch(t){if(!(t instanceof b.RecognitionException))throw t;this.state=this._atn.ruleToStopState[e.ruleIndex].stateNumber,this.context.exception=t,this.errorHandler.reportError(this,t),this.recover(t)}}}}enterRecursionRule(e,t,n,i){this._parentContextStack.push([this._ctx,e.invokingState]),super.enterRecursionRule(e,t,n,i)}get atnState(){return this._atn.states[this.state]}visitState(e){let t=1;e.numberOfTransitions>1&&(t=this.visitDecisionState(e));let n=e.transition(t-1);switch(n.serializationType){case 1:if(this.pushRecursionContextStates.get(e.stateNumber)&&!(n.target instanceof u.LoopEndState)){let t=this._parentContextStack[this._parentContextStack.length-1],n=this.createInterpreterRuleContext(t[0],t[1],this._ctx.ruleIndex);this.pushNewRecursionContext(n,this._atn.ruleToStartState[e.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(n._label);break;case 2:case 7:case 8:n.matches(this._input.LA(1),x.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let t=n.target,i=t.ruleIndex,o=this.createInterpreterRuleContext(this._ctx,e.stateNumber,i);t.isPrecedenceRule?this.enterRecursionRule(o,t.stateNumber,i,n.precedence):this.enterRule(o,n.target.stateNumber,i);break;case 4:let a=n;if(!this.sempred(this._ctx,a.ruleIndex,a.predIndex))throw new s.FailedPredicateException(this);break;case 6:let r=n;this.action(this._ctx,r.ruleIndex,r.actionIndex);break;case 10:if(!this.precpred(this._ctx,n.precedence)){let e=n.precedence;throw new s.FailedPredicateException(this,`precpred(_ctx, ${e})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=n.target.stateNumber}visitDecisionState(e){let t;this.errorHandler.sync(this);let n=e.decision;return n!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?t=this.interpreter.adaptivePredict(this._input,n,this._ctx):(t=this.overrideDecisionAlt,this.overrideDecisionReached=!0),t}createInterpreterRuleContext(e,t,n){return new c.InterpreterRuleContext(n,e,t)}visitRuleStopState(e){if(this._atn.ruleToStartState[e.ruleIndex].isPrecedenceRule){let e=this._parentContextStack.pop();this.unrollRecursionContexts(e[0]),this.state=e[1]}else this.exitRule();let t=this._atn.states[this.state].transition(0);this.state=t.followState.stateNumber}addDecisionOverride(e,t,n){this.overrideDecision=e,this.overrideDecisionInputIndex=t,this.overrideDecisionAlt=n}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(e){let t=this._input.index;if(this.errorHandler.recover(this,e),this._input.index===t){let t=e.getOffendingToken();if(!t)throw new Error("Expected exception to have an offending token");let n=t.tokenSource,i={source:n,stream:void 0!==n?n.inputStream:void 0};if(e instanceof d.InputMismatchException){let n=e.expectedTokens;if(void 0===n)throw new Error("Expected the exception to provide expected tokens");let o=x.Token.INVALID_TYPE;n.isNil||(o=n.minElement);let a=this.tokenFactory.create(i,o,t.text,x.Token.DEFAULT_CHANNEL,-1,-1,t.line,t.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,a))}else{t.tokenSource;let e=this.tokenFactory.create(i,x.Token.INVALID_TYPE,t.text,x.Token.DEFAULT_CHANNEL,-1,-1,t.line,t.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};i([m.NotNull],f.prototype,"_vocabulary",void 0),i([h.Override],f.prototype,"reset",null),i([h.Override],f.prototype,"atn",null),i([h.Override],f.prototype,"vocabulary",null),i([h.Override],f.prototype,"ruleNames",null),i([h.Override],f.prototype,"grammarFileName",null),i([h.Override],f.prototype,"enterRecursionRule",null),f=i([o(1,m.NotNull)],f),t.ParserInterpreter=f},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(2);class r extends a.ParserRuleContext{constructor(e,t,n){void 0!==n?super(t,n):super(),this._ruleIndex=e}get ruleIndex(){return this._ruleIndex}}i([o.Override],r.prototype,"ruleIndex",null),t.InterpreterRuleContext=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});t.Chunk=class{}},function(e,t,n){"use strict";(function(e){ /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(178),r=n(7),l=n(46),s=n(179),d=n(180),c=n(181),u=n(1),m=n(182),h=n(33),p=n(183),T=n(28),b=n(96);class g extends h.ParserATNSimulator{constructor(e){super(e.interpreter.atn,e),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let e=0;ethis.decisions[n].SLL_MaxLook&&(this.decisions[n].SLL_MaxLook=d,this.decisions[n].SLL_MaxLookEvent=new m.LookaheadEventInfo(n,void 0,a,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let e=this._llStopIndex-this._startIndex+1;this.decisions[n].LL_TotalLook+=e,this.decisions[n].LL_MinLook=0===this.decisions[n].LL_MinLook?e:Math.min(this.decisions[n].LL_MinLook,e),e>this.decisions[n].LL_MaxLook&&(this.decisions[n].LL_MaxLook=e,this.decisions[n].LL_MaxLookEvent=new m.LookaheadEventInfo(n,void 0,a,t,this._startIndex,this._llStopIndex,!0))}return a}finally{this._input=void 0,this.currentDecision=-1}}getStartState(e,t,n,i){let o=super.getStartState(e,t,n,i);return this.currentState=o,o}computeStartState(e,t,n){let i=super.computeStartState(e,t,n);return this.currentState=i,i}computeReachSet(e,t,n,i){if(void 0===this._input)throw new Error("Invalid state");let o=super.computeReachSet(e,t,n,i);return null==o&&this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,t,this._input,this._startIndex,this._input.index)),this.currentState=o,o}getExistingTargetState(e,t){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let n=super.getExistingTargetState(e,t);if(null!=n&&(this.currentState=new b.SimulatorState(this.currentState.outerContext,n,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,n===l.ATNSimulator.ERROR)){let t=new b.SimulatorState(this.currentState.outerContext,e,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,t,this._input,this._startIndex,this._input.index))}return n}computeTargetState(e,t,n,i,o,a){let r=super.computeTargetState(e,t,n,i,o,a);return o?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,r}evalSemanticContextImpl(e,t,n){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let i=super.evalSemanticContextImpl(e,t,n);if(!(e instanceof T.SemanticContext.PrecedencePredicate)){let t=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new p.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,t,e,i,n))}return i}reportContextSensitivity(e,t,n,i,o){if(void 0===this._input)throw new Error("Invalid state");t!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision,n,this._input,i,o)),super.reportContextSensitivity(e,t,n,i,o)}reportAttemptingFullContext(e,t,n,i,o){this.conflictingAltResolvedBySLL=null!=t?t.nextSetBit(0):n.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(e,t,n,i,o)}reportAmbiguity(e,t,n,i,o,l,d){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=l?l.nextSetBit(0):d.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==r.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,n,i)),this.decisions[this.currentDecision].ambiguities.push(new a.AmbiguityInfo(this.currentDecision,this.currentState,l,this._input,n,i)),super.reportAmbiguity(e,t,n,i,o,l,d)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([u.Override,o(0,u.NotNull)],g.prototype,"adaptivePredict",null),i([u.Override],g.prototype,"getStartState",null),i([u.Override],g.prototype,"computeStartState",null),i([u.Override],g.prototype,"computeReachSet",null),i([u.Override],g.prototype,"getExistingTargetState",null),i([u.Override],g.prototype,"computeTargetState",null),i([u.Override],g.prototype,"evalSemanticContextImpl",null),i([u.Override],g.prototype,"reportContextSensitivity",null),i([u.Override],g.prototype,"reportAttemptingFullContext",null),i([u.Override,o(0,u.NotNull),o(5,u.NotNull),o(6,u.NotNull)],g.prototype,"reportAmbiguity",null),t.ProfilingATNSimulator=g}).call(this,n(35))},function(e,t,n){"use strict";(t=e.exports=n(112).default).default=t},function(e,t,n){var i=n(109)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},function(e,t,n){var i=n(50).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",d=l.asyncIterator||"@@asyncIterator",c=l.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function m(e,t,n,i){var o=t&&t.prototype instanceof T?t:T,a=Object.create(o.prototype),l=new I(i||[]);return r(a,"_invoke",{value:E(e,n,l)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var p={};function T(){}function b(){}function g(){}var x={};u(x,s,(function(){return this}));var f=Object.getPrototypeOf,k=f&&f(f(L([])));k&&k!==n&&a.call(k,s)&&(x=k);var S=g.prototype=T.prototype=Object.create(x);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){var n;r(this,"_invoke",{value:function(o,r){function l(){return new t((function(n,l){!function n(o,r,l,s){var d=h(e[o],e,r);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==i(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(u).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,s)}))}s(d.arg)}(o,r,n,l)}))}return n=n?n.then(l,l):l()}})}function E(e,t,n){var i="suspendedStart";return function(o,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var r=n.delegate;if(r){var l=A(r,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var s=h(e,t,n);if("normal"===s.type){if(i=n.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i="completed",n.method="throw",n.arg=s.arg)}}}function A(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=h(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function L(e){if(e||""===e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--i){var o=this.tryEntries[i],r=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),s=a.call(o,"finallyLoc");if(l&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(50).default,o=n(111);e.exports=function(e){var t=o(e,"string");return"symbol"===i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(50).default;e.exports=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var i=n(113);function o(e){if("undefined"!=typeof JSON){var t,n,i,o=[];for(t=0,n=e.length;t1?arguments[1]:{},o={},a={start:Ne},r=Ne,l=function(e){return{type:"messageFormatPattern",elements:e,location:Ae()}},s=function(e){var t,n,i,o,a,r="";for(t=0,i=e.length;tye&&(ye=fe,Ce=[]),Ce.push(e))}function Le(t,n,i,o){return null!==n&&function(e){var t=1;for(e.sort((function(e,t){return e.descriptiont.description?1:0}));t1?i.slice(0,-1).join(", ")+" or "+i[e.length-1]:i[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,i),n,i,o)}function Ne(){return Re()}function Re(){var e,t,n;for(e=fe,t=[],n=ve();n!==o;)t.push(n),n=ve();return t!==o&&(ke=e,t=l(t)),e=t}function ve(){var e;return(e=Me())===o&&(e=Fe()),e}function De(){var e,n,i,a,r,l;if(e=fe,n=[],i=fe,(a=We())!==o&&(r=$e())!==o&&(l=We())!==o?i=a=[a,r,l]:(fe=i,i=o),i!==o)for(;i!==o;)n.push(i),i=fe,(a=We())!==o&&(r=$e())!==o&&(l=We())!==o?i=a=[a,r,l]:(fe=i,i=o);else n=o;return n!==o&&(ke=e,n=s(n)),(e=n)===o&&(e=fe,e=(n=Ge())!==o?t.substring(e,fe):n),e}function Me(){var e,t;return e=fe,(t=De())!==o&&(ke=e,t=d(t)),e=t}function Pe(){var e,n,i;if((e=Xe())===o){if(e=fe,n=[],c.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=o,0===Ee&&Ie(u)),i!==o)for(;i!==o;)n.push(i),c.test(t.charAt(fe))?(i=t.charAt(fe),fe++):(i=o,0===Ee&&Ie(u));else n=o;e=n!==o?t.substring(e,fe):n}return e}function Fe(){var e,n,i,a,r,l,s;return e=fe,123===t.charCodeAt(fe)?(n=m,fe++):(n=o,0===Ee&&Ie(h)),n!==o&&We()!==o&&(i=Pe())!==o&&We()!==o?(a=fe,44===t.charCodeAt(fe)?(r=p,fe++):(r=o,0===Ee&&Ie(T)),r!==o&&(l=We())!==o&&(s=Be())!==o?a=r=[r,l,s]:(fe=a,a=o),a===o&&(a=null),a!==o&&(r=We())!==o?(125===t.charCodeAt(fe)?(l=b,fe++):(l=o,0===Ee&&Ie(g)),l!==o?(ke=e,e=n=x(i,a)):(fe=e,e=o)):(fe=e,e=o)):(fe=e,e=o),e}function Be(){var e;return(e=Ue())===o&&(e=we())===o&&(e=qe())===o&&(e=je()),e}function Ue(){var e,n,i,a,r,l;return e=fe,t.substr(fe,6)===f?(n=f,fe+=6):(n=o,0===Ee&&Ie(k)),n===o&&(t.substr(fe,4)===S?(n=S,fe+=4):(n=o,0===Ee&&Ie(y)),n===o&&(t.substr(fe,4)===C?(n=C,fe+=4):(n=o,0===Ee&&Ie(E)))),n!==o&&We()!==o?(i=fe,44===t.charCodeAt(fe)?(a=p,fe++):(a=o,0===Ee&&Ie(T)),a!==o&&(r=We())!==o&&(l=$e())!==o?i=a=[a,r,l]:(fe=i,i=o),i===o&&(i=null),i!==o?(ke=e,e=n=A(n,i)):(fe=e,e=o)):(fe=e,e=o),e}function we(){var e,n,i,a;return e=fe,t.substr(fe,6)===O?(n=O,fe+=6):(n=o,0===Ee&&Ie(_)),n!==o&&We()!==o?(44===t.charCodeAt(fe)?(i=p,fe++):(i=o,0===Ee&&Ie(T)),i!==o&&We()!==o&&(a=ze())!==o?(ke=e,e=n=I(a)):(fe=e,e=o)):(fe=e,e=o),e}function qe(){var e,n,i,a;return e=fe,t.substr(fe,13)===L?(n=L,fe+=13):(n=o,0===Ee&&Ie(N)),n!==o&&We()!==o?(44===t.charCodeAt(fe)?(i=p,fe++):(i=o,0===Ee&&Ie(T)),i!==o&&We()!==o&&(a=ze())!==o?(ke=e,e=n=R(a)):(fe=e,e=o)):(fe=e,e=o),e}function je(){var e,n,i,a,r;if(e=fe,t.substr(fe,6)===v?(n=v,fe+=6):(n=o,0===Ee&&Ie(D)),n!==o)if(We()!==o)if(44===t.charCodeAt(fe)?(i=p,fe++):(i=o,0===Ee&&Ie(T)),i!==o)if(We()!==o){if(a=[],(r=Ye())!==o)for(;r!==o;)a.push(r),r=Ye();else a=o;a!==o?(ke=e,e=n=M(a)):(fe=e,e=o)}else fe=e,e=o;else fe=e,e=o;else fe=e,e=o;else fe=e,e=o;return e}function He(){var e,n,i,a;return e=fe,n=fe,61===t.charCodeAt(fe)?(i=P,fe++):(i=o,0===Ee&&Ie(F)),i!==o&&(a=Xe())!==o?n=i=[i,a]:(fe=n,n=o),(e=n!==o?t.substring(e,fe):n)===o&&(e=$e()),e}function Ye(){var e,n,i,a,r;return e=fe,We()!==o&&(n=He())!==o&&We()!==o?(123===t.charCodeAt(fe)?(i=m,fe++):(i=o,0===Ee&&Ie(h)),i!==o&&We()!==o&&(a=Re())!==o&&We()!==o?(125===t.charCodeAt(fe)?(r=b,fe++):(r=o,0===Ee&&Ie(g)),r!==o?(ke=e,e=B(n,a)):(fe=e,e=o)):(fe=e,e=o)):(fe=e,e=o),e}function Ve(){var e,n,i;return e=fe,t.substr(fe,7)===U?(n=U,fe+=7):(n=o,0===Ee&&Ie(w)),n!==o&&We()!==o&&(i=Xe())!==o?(ke=e,e=n=q(i)):(fe=e,e=o),e}function ze(){var e,t,n,i;if(e=fe,(t=Ve())===o&&(t=null),t!==o)if(We()!==o){if(n=[],(i=Ye())!==o)for(;i!==o;)n.push(i),i=Ye();else n=o;n!==o?(ke=e,e=t=j(t,n)):(fe=e,e=o)}else fe=e,e=o;else fe=e,e=o;return e}function Ge(){var e,n;if(Ee++,e=[],Y.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=o,0===Ee&&Ie(V)),n!==o)for(;n!==o;)e.push(n),Y.test(t.charAt(fe))?(n=t.charAt(fe),fe++):(n=o,0===Ee&&Ie(V));else e=o;return Ee--,e===o&&(n=o,0===Ee&&Ie(H)),e}function We(){var e,n,i;for(Ee++,e=fe,n=[],i=Ge();i!==o;)n.push(i),i=Ge();return e=n!==o?t.substring(e,fe):n,Ee--,e===o&&(n=o,0===Ee&&Ie(z)),e}function Ke(){var e;return G.test(t.charAt(fe))?(e=t.charAt(fe),fe++):(e=o,0===Ee&&Ie(W)),e}function Ze(){var e;return K.test(t.charAt(fe))?(e=t.charAt(fe),fe++):(e=o,0===Ee&&Ie(Z)),e}function Xe(){var e,n,i,a,r,l;if(e=fe,48===t.charCodeAt(fe)?(n=X,fe++):(n=o,0===Ee&&Ie(J)),n===o){if(n=fe,i=fe,$.test(t.charAt(fe))?(a=t.charAt(fe),fe++):(a=o,0===Ee&&Ie(Q)),a!==o){for(r=[],l=Ke();l!==o;)r.push(l),l=Ke();r!==o?i=a=[a,r]:(fe=i,i=o)}else fe=i,i=o;n=i!==o?t.substring(n,fe):i}return n!==o&&(ke=e,n=ee(n)),e=n}function Je(){var e,n,i,a,r,l,s,d;return te.test(t.charAt(fe))?(e=t.charAt(fe),fe++):(e=o,0===Ee&&Ie(ne)),e===o&&(e=fe,t.substr(fe,2)===ie?(n=ie,fe+=2):(n=o,0===Ee&&Ie(oe)),n!==o&&(ke=e,n=ae()),(e=n)===o&&(e=fe,t.substr(fe,2)===re?(n=re,fe+=2):(n=o,0===Ee&&Ie(le)),n!==o&&(ke=e,n=se()),(e=n)===o&&(e=fe,t.substr(fe,2)===de?(n=de,fe+=2):(n=o,0===Ee&&Ie(ce)),n!==o&&(ke=e,n=ue()),(e=n)===o&&(e=fe,t.substr(fe,2)===me?(n=me,fe+=2):(n=o,0===Ee&&Ie(he)),n!==o&&(ke=e,n=pe()),(e=n)===o&&(e=fe,t.substr(fe,2)===Te?(n=Te,fe+=2):(n=o,0===Ee&&Ie(be)),n!==o?(i=fe,a=fe,(r=Ze())!==o&&(l=Ze())!==o&&(s=Ze())!==o&&(d=Ze())!==o?a=r=[r,l,s,d]:(fe=a,a=o),(i=a!==o?t.substring(i,fe):a)!==o?(ke=e,e=n=ge(i)):(fe=e,e=o)):(fe=e,e=o)))))),e}function $e(){var e,t,n;if(e=fe,t=[],(n=Je())!==o)for(;n!==o;)t.push(n),n=Je();else t=o;return t!==o&&(ke=e,t=xe(t)),e=t}if((n=r())!==o&&fe===t.length)return n;throw n!==o&&fe=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&a.arrIndexOf.call(r,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+r.join('", "')+'"')},s.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(s.defaultLocale);var t,n,i,o,a=s.__localeData__;for(t=0,n=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+l.join('", "')+'"')},s.prototype._selectUnits=function(e){var t,n,i,o=r.filter((function(e){return e.indexOf("-short")<1}));for(t=0,n=o.length;t=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(13),a=n(1),r=n(20);class l{constructor(e){this.p=0,this.data=e,this.n=e.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw o(this.LA(1)===r.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?r.IntStream.EOF:this.data.charCodeAt(this.p+e-1)}LT(e){return this.LA(e)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(e){}seek(e){if(e<=this.p)this.p=e;else for(e=Math.min(e,this.n);this.p=this.n&&(n=this.n-1);let i=n-t+1;return t>=this.n?"":this.data.substr(t,i)}get sourceName(){return this.name?this.name:r.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}i([a.Override],l.prototype,"consume",null),i([a.Override],l.prototype,"LA",null),i([a.Override],l.prototype,"index",null),i([a.Override],l.prototype,"size",null),i([a.Override],l.prototype,"mark",null),i([a.Override],l.prototype,"release",null),i([a.Override],l.prototype,"seek",null),i([a.Override],l.prototype,"getText",null),i([a.Override],l.prototype,"sourceName",null),i([a.Override],l.prototype,"toString",null),t.ANTLRInputStream=l},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=r(e),d=1;d=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(5),r=n(16);class l{hashCode(e){return null==e?0:"string"==typeof e||"number"==typeof e?a.MurmurHash.hashCode([e]):r.ObjectEqualityComparator.INSTANCE.hashCode(e)}equals(e,t){return null==e?null==t:"string"==typeof e||"number"==typeof e?e===t:r.ObjectEqualityComparator.INSTANCE.equals(e,t)}}l.INSTANCE=new l,i([o.Override],l.prototype,"hashCode",null),i([o.Override],l.prototype,"equals",null),t.DefaultEqualityComparator=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(86),r=n(1),l=n(17);let s=class extends a.DFASerializer{constructor(e){super(e,l.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(e){return"'"+String.fromCodePoint(e)+"'"}};i([r.Override,r.NotNull],s.prototype,"getEdgeLabel",null),s=i([o(0,r.NotNull)],s),t.LexerDFASerializer=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(52),r=n(22),l=n(45),s=n(23),d=n(24),c=n(1),u=n(59),m=n(16),h=n(15),p=n(39),T=n(61),b=n(4),g=n(90);let x=class e{constructor(e){this.atn=e}getDecisionLookahead(t){if(null==t)return;let n=new Array(t.numberOfTransitions);for(let i=0;i=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(43),r=n(136),l=n(5),s=n(1);let d=class e{constructor(e){this._lexerActions=e;let t=l.MurmurHash.initialize();for(let n of e)t=l.MurmurHash.update(t,n);this.cachedHashCode=l.MurmurHash.finish(t,e.length)}static append(t,n){if(!t)return new e([n]);let i=t._lexerActions.slice(0);return i.push(n),new e(i)}fixOffsetBeforeMatch(t){let n;for(let e=0;e=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);let l=class e{constructor(e,t){this._offset=e,this._action=t}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(e){this._action.execute(e)}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this._offset),e=a.MurmurHash.update(e,this._action),a.MurmurHash.finish(e,2)}equals(t){return t===this||t instanceof e&&(this._offset===t._offset&&this._action.equals(t._action))}};i([r.NotNull],l.prototype,"action",null),i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),l=i([o(1,r.NotNull)],l),t.LexerIndexedCustomAction=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(37),a=n(1);class r extends o.ATNConfigSet{constructor(e,t){null!=e&&null!=t?super(e,t):super()}clone(e){let t=new r(this,e);return!e&&this.isReadOnly&&t.addAll(this),t}getKey(e){return{state:0,alt:e.hashCode()}}canMerge(e,t,n){return e.equals(n)}}i([a.Override],r.prototype,"clone",null),i([a.Override],r.prototype,"getKey",null),i([a.Override],r.prototype,"canMerge",null),t.OrderedATNConfigSet=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(49),r=n(1);class l extends a.BlockStartState{get stateType(){return o.ATNStateType.BLOCK_START}}i([r.Override],l.prototype,"stateType",null),t.BasicBlockStartState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(18),a=n(9),r=n(1);class l extends o.ATNState{get stateType(){return a.ATNStateType.BLOCK_END}}i([r.Override],l.prototype,"stateType",null),t.BlockEndState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(21);let l=class extends r.Transition{constructor(e,t=-1){super(e),this._outermostPrecedenceReturn=t}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(e,t,n){return!1}toString(){return"epsilon"}};i([a.Override],l.prototype,"serializationType",null),i([a.Override],l.prototype,"isEpsilon",null),i([a.Override],l.prototype,"matches",null),i([a.Override,a.NotNull],l.prototype,"toString",null),l=i([o(0,a.NotNull)],l),t.EpsilonTransition=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(e){this._channel=e}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(e){e.channel=this._channel}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),e=a.MurmurHash.update(e,this._channel),a.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof l&&this._channel===e._channel}toString(){return`channel(${this._channel})`}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerChannelAction=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(e,t){this._ruleIndex=e,this._actionIndex=t}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(e){e.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),e=a.MurmurHash.update(e,this._ruleIndex),e=a.MurmurHash.update(e,this._actionIndex),a.MurmurHash.finish(e,3)}equals(e){return e===this||e instanceof l&&(this._ruleIndex===e._ruleIndex&&this._actionIndex===e._actionIndex)}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),t.LexerCustomAction=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(e){this._mode=e}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(e){e.mode(this._mode)}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),e=a.MurmurHash.update(e,this._mode),a.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof l&&this._mode===e._mode}toString(){return`mode(${this._mode})`}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerModeAction=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(e){e.more()}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),a.MurmurHash.finish(e,1)}equals(e){return e===this}toString(){return"more"}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerMoreAction=l,function(e){e.INSTANCE=new e}(l=t.LexerMoreAction||(t.LexerMoreAction={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(e){e.popMode()}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),a.MurmurHash.finish(e,1)}equals(e){return e===this}toString(){return"popMode"}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerPopModeAction=l,function(e){e.INSTANCE=new e}(l=t.LexerPopModeAction||(t.LexerPopModeAction={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(e){this._mode=e}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(e){e.pushMode(this._mode)}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),e=a.MurmurHash.update(e,this._mode),a.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof l&&this._mode===e._mode}toString(){return`pushMode(${this._mode})`}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerPushModeAction=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(e){e.skip()}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),a.MurmurHash.finish(e,1)}equals(e){return e===this}toString(){return"skip"}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerSkipAction=l,function(e){e.INSTANCE=new e}(l=t.LexerSkipAction||(t.LexerSkipAction={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(5),r=n(1);class l{constructor(e){this._type=e}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(e){e.type=this._type}hashCode(){let e=a.MurmurHash.initialize();return e=a.MurmurHash.update(e,this.actionType),e=a.MurmurHash.update(e,this._type),a.MurmurHash.finish(e,2)}equals(e){return e===this||e instanceof l&&this._type===e._type}toString(){return`type(${this._type})`}}i([r.Override],l.prototype,"actionType",null),i([r.Override],l.prototype,"isPositionDependent",null),i([r.Override,o(0,r.NotNull)],l.prototype,"execute",null),i([r.Override],l.prototype,"hashCode",null),i([r.Override],l.prototype,"equals",null),i([r.Override],l.prototype,"toString",null),t.LexerTypeAction=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(12);class r{constructor(e,t){this._conflictedAlts=e,this.exact=t}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(e){return e===this||e instanceof r&&(this.isExact===e.isExact&&a.equals(this.conflictedAlts,e.conflictedAlts))}hashCode(){return this.conflictedAlts.hashCode()}}i([o.Override],r.prototype,"equals",null),i([o.Override],r.prototype,"hashCode",null),t.ConflictInfo=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(29),a=n(5),r=n(1),l=n(39);!function(e){e[e.SLL=0]="SLL",e[e.LL=1]="LL",e[e.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION"}(t.PredictionMode||(t.PredictionMode={})),function(e){o.Array2DHashMap;class t{AltAndContextConfigEqualityComparator(){}hashCode(e){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,e.state.stateNumber),t=a.MurmurHash.update(t,e.context),t=a.MurmurHash.finish(t,2),t}equals(e,t){return e===t||null!=e&&null!=t&&(e.state.stateNumber===t.state.stateNumber&&e.context.equals(t.context))}}t.INSTANCE=new t,i([r.Override],t.prototype,"hashCode",null),i([r.Override],t.prototype,"equals",null),e.hasConfigInRuleStopState=function(e){for(let t of e)if(t.state instanceof l.RuleStopState)return!0;return!1},e.allConfigsInRuleStopStates=function(e){for(let t of e)if(!(t.state instanceof l.RuleStopState))return!1;return!0}}(t.PredictionMode||(t.PredictionMode={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(49),r=n(1);class l extends a.BlockStartState{get stateType(){return o.ATNStateType.PLUS_BLOCK_START}}i([r.Override],l.prototype,"stateType",null),t.PlusBlockStartState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(25),r=n(1);class l extends a.DecisionState{get stateType(){return o.ATNStateType.PLUS_LOOP_BACK}}i([r.Override],l.prototype,"stateType",null),t.PlusLoopbackState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(52),r=n(1),l=n(28);let s=class extends a.AbstractPredicateTransition{constructor(e,t){super(e),this.precedence=t}get serializationType(){return 10}get isEpsilon(){return!0}matches(e,t,n){return!1}get predicate(){return new l.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};i([r.Override],s.prototype,"serializationType",null),i([r.Override],s.prototype,"isEpsilon",null),i([r.Override],s.prototype,"matches",null),i([r.Override],s.prototype,"toString",null),s=i([o(0,r.NotNull)],s),t.PrecedencePredicateTransition=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(24),r=n(1),l=n(21);let s=class extends l.Transition{constructor(e,t,n){super(e),this.from=t,this.to=n}get serializationType(){return 2}get label(){return a.IntervalSet.of(this.from,this.to)}matches(e,t,n){return e>=this.from&&e<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};i([r.Override],s.prototype,"serializationType",null),i([r.Override,r.NotNull],s.prototype,"label",null),i([r.Override],s.prototype,"matches",null),i([r.Override,r.NotNull],s.prototype,"toString",null),s=i([o(0,r.NotNull)],s),t.RangeTransition=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(18),a=n(9),r=n(1);class l extends o.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return a.ATNStateType.RULE_START}}i([r.Override],l.prototype,"stateType",null),t.RuleStartState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(49),r=n(1);class l extends a.BlockStartState{get stateType(){return o.ATNStateType.STAR_BLOCK_START}}i([r.Override],l.prototype,"stateType",null),t.StarBlockStartState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(18),a=n(9),r=n(1);class l extends o.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return a.ATNStateType.STAR_LOOP_BACK}}i([r.Override],l.prototype,"stateType",null),t.StarLoopbackState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(9),a=n(25),r=n(1);class l extends a.DecisionState{get stateType(){return o.ATNStateType.TOKEN_START}}i([r.Override],l.prototype,"stateType",null),t.TokensStartState=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});const i=n(5);class o{constructor(e,t,n,i){this.data=new Uint32Array(4),this.data[0]=e,this.data[1]=t,this.data[2]=n,this.data[3]=i}static fromString(e){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(e))throw new Error("Incorrectly formatted UUID");let t=e.split("-"),n=parseInt(t[0],16),i=(parseInt(t[1],16)<<16>>>0)+parseInt(t[2],16),a=(parseInt(t[3],16)<<16>>>0)+parseInt(t[4].substr(0,4),16),r=parseInt(t[4].substr(-8),16);return new o(n,i,a,r)}hashCode(){return i.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(e){return e===this||e instanceof o&&(this.data[0]===e.data[0]&&this.data[1]===e.data[1]&&this.data[2]===e.data[2]&&this.data[3]===e.data[3])}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}t.UUID=o},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);let r=class{constructor(e){this.atnSimulator=e}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let e=this.atnSimulator.getDecisionInfo(),t=[];for(let n=0;n0&&t.push(n)}return t}getTotalTimeInPrediction(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let n of e)t+=n.timeInPrediction;return t}getTotalSLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let n of e)t+=n.SLL_TotalLook;return t}getTotalLLLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let n of e)t+=n.LL_TotalLook;return t}getTotalSLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let n of e)t+=n.SLL_ATNTransitions;return t}getTotalLLATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let n of e)t+=n.LL_ATNTransitions;return t}getTotalATNLookaheadOps(){let e=this.atnSimulator.getDecisionInfo(),t=0;for(let n of e)t+=n.SLL_ATNTransitions,t+=n.LL_ATNTransitions;return t}getDFASize(e){if(e){return this.atnSimulator.atn.decisionToDFA[e].states.size}{let e=0,t=this.atnSimulator.atn.decisionToDFA;for(let n=0;n=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(81),r=n(64),l=n(65),s=n(101),d=n(163),c=n(1),u=n(102),m=n(103),h=n(2),p=n(164),T=n(165),b=n(3),g=n(63),x=n(174),f=n(175),k=n(30),S=n(176),y=n(4),C=n(177);class E{constructor(e,t){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=e,this._parser=t}setDelimiters(e,t,n){if(!e)throw new Error("start cannot be null or empty");if(!t)throw new Error("stop cannot be null or empty");this.start=e,this.stop=t,this.escape=n,this.escapeRE=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(e,t,n=0){if("string"==typeof t){let i=this.compile(t,n);return this.matches(e,i)}{let n=new d.MultiMap;return!this.matchImpl(e,t.patternTree,n)}}match(e,t,n=0){if("string"==typeof t){let i=this.compile(t,n);return this.match(e,i)}{let n=new d.MultiMap,i=this.matchImpl(e,t.patternTree,n);return new p.ParseTreeMatch(e,t,n,i)}}compile(e,t){let n=this.tokenize(e),i=new s.ListTokenSource(n),o=new l.CommonTokenStream(i);const r=this._parser;let d,c=new m.ParserInterpreter(r.grammarFileName,r.vocabulary,r.ruleNames,r.getATNWithBypassAlts(),o);try{c.errorHandler=new a.BailErrorStrategy,d=c.parse(t)}catch(e){throw e instanceof u.ParseCancellationException?e.getCause():e instanceof b.RecognitionException?e:e instanceof Error?new E.CannotInvokeStartRule(e):e}if(o.LA(1)!==y.Token.EOF)throw new E.StartRuleDoesNotConsumeFullPattern;return new T.ParseTreePattern(this,e,t,d)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(e,t,n){if(!e)throw new TypeError("tree cannot be null");if(!t)throw new TypeError("patternTree cannot be null");if(e instanceof k.TerminalNode&&t instanceof k.TerminalNode){let i;if(e.symbol.type===t.symbol.type)if(t.symbol instanceof C.TokenTagToken){let i=t.symbol;n.map(i.tokenName,e);const o=i.label;o&&n.map(o,e)}else e.text===t.text||i||(i=e);else i||(i=e);return i}if(e instanceof h.ParserRuleContext&&t instanceof h.ParserRuleContext){let i,o=this.getRuleTagToken(t);if(o){if(e.ruleContext.ruleIndex===t.ruleContext.ruleIndex){n.map(o.ruleName,e);const t=o.label;t&&n.map(t,e)}else i||(i=e);return i}if(e.childCount!==t.childCount)return i||(i=e),i;let a=e.childCount;for(let i=0;ia.length)throw new Error("unterminated tag in pattern: "+e);if(o.length=a[t])throw new Error("tag delimiters out of order in pattern: "+e);if(0===r){let t=e.substring(0,n);i.push(new S.TextChunk(t))}if(r>0&&o[0]>0){let t=e.substring(0,o[0]);i.push(new S.TextChunk(t))}for(let t=0;t=0&&(n=l.substring(0,d),s=l.substring(d+1,l.length)),i.push(new f.TagChunk(s,n)),t+10){let t=a[r-1]+this.stop.length;if(t=55296&&e<=56319},t.isLowSurrogate=function(e){return e>=56320&&e<=57343},t.isSupplementaryCodePoint=function(e){return e>=65536}},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0});class i extends Map{constructor(){super()}map(e,t){let n=super.get(e);n||(n=[],super.set(e,n)),n.push(t)}getPairs(){let e=[];return this.forEach((t,n)=>{t.forEach(t=>{e.push([n,t])})}),e}}t.MultiMap=i},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1);let r=class{constructor(e,t,n,i){if(!e)throw new Error("tree cannot be null");if(!t)throw new Error("pattern cannot be null");if(!n)throw new Error("labels cannot be null");this._tree=e,this._pattern=t,this._labels=n,this._mismatchedNode=i}get(e){let t=this._labels.get(e);if(t&&0!==t.length)return t[t.length-1]}getAll(e){const t=this._labels.get(e);return t||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};i([a.NotNull,o(0,a.NotNull)],r.prototype,"getAll",null),i([a.NotNull],r.prototype,"labels",null),i([a.NotNull],r.prototype,"pattern",null),i([a.NotNull],r.prototype,"tree",null),i([a.Override],r.prototype,"toString",null),r=i([o(0,a.NotNull),o(1,a.NotNull),o(2,a.NotNull)],r),t.ParseTreeMatch=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(66);let l=class{constructor(e,t,n,i){this._matcher=e,this._patternRuleIndex=n,this._pattern=t,this._patternTree=i}match(e){return this._matcher.match(e,this)}matches(e){return this._matcher.match(e,this).succeeded}findAll(e,t){let n=r.XPath.findAll(e,t,this._matcher.parser),i=[];for(let e of n){let t=this.match(e);t.succeeded&&i.push(t)}return i}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};i([a.NotNull],l.prototype,"_pattern",void 0),i([a.NotNull],l.prototype,"_patternTree",void 0),i([a.NotNull],l.prototype,"_matcher",void 0),i([a.NotNull,o(0,a.NotNull)],l.prototype,"match",null),i([o(0,a.NotNull)],l.prototype,"matches",null),i([a.NotNull,o(0,a.NotNull),o(1,a.NotNull)],l.prototype,"findAll",null),i([a.NotNull],l.prototype,"matcher",null),i([a.NotNull],l.prototype,"pattern",null),i([a.NotNull],l.prototype,"patternTree",null),l=i([o(0,a.NotNull),o(1,a.NotNull),o(3,a.NotNull)],l),t.ParseTreePattern=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(34),o=n(19),a=n(41),r=n(17),l=n(12);class s extends o.Lexer{constructor(e){super(e),this._interp=new a.LexerATNSimulator(s._ATN,this)}get vocabulary(){return s.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return s.ruleNames}get serializedATN(){return s._serializedATN}get channelNames(){return s.channelNames}get modeNames(){return s.modeNames}action(e,t,n){switch(t){case 4:this.ID_action(e,n)}}ID_action(e,t){switch(t){case 0:let e=this.text;e.charAt(0)===e.charAt(0).toUpperCase()?this.type=s.TOKEN_REF:this.type=s.RULE_REF}}static get _ATN(){return s.__ATN||(s.__ATN=(new i.ATNDeserializer).deserialize(l.toCharArray(s._serializedATN))),s.__ATN}}s.TOKEN_REF=1,s.RULE_REF=2,s.ANYWHERE=3,s.ROOT=4,s.WILDCARD=5,s.BANG=6,s.ID=7,s.STRING=8,s.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],s.modeNames=["DEFAULT_MODE"],s.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],s._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],s._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],s.VOCABULARY=new r.VocabularyImpl(s._LITERAL_NAMES,s._SYMBOLIC_NAMES,[]),s._serializedATNSegments=2,s._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',s._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",s._serializedATN=l.join([s._serializedATNSegment0,s._serializedATNSegment1],""),t.XPathLexer=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{syntaxError(e,t,n,i,o,a){}}i([o.Override],a.prototype,"syntaxError",null),t.XPathLexerErrorListener=a},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(26),r=n(31);class l extends r.XPathElement{constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){return a.Trees.findAllRuleNodes(e,this.ruleIndex)}}i([o.Override],l.prototype,"evaluate",null),t.XPathRuleAnywhereElement=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(2),a=n(1),r=n(26),l=n(31);class s extends l.XPathElement{constructor(e,t){super(e),this.ruleIndex=t}evaluate(e){let t=[];for(let n of r.Trees.getChildren(e))n instanceof o.ParserRuleContext&&(n.ruleIndex===this.ruleIndex&&!this.invert||n.ruleIndex!==this.ruleIndex&&this.invert)&&t.push(n);return t}}i([a.Override],s.prototype,"evaluate",null),t.XPathRuleElement=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(26),r=n(31);class l extends r.XPathElement{constructor(e,t){super(e),this.tokenType=t}evaluate(e){return a.Trees.findAllTokenNodes(e,this.tokenType)}}i([o.Override],l.prototype,"evaluate",null),t.XPathTokenAnywhereElement=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(30),r=n(26),l=n(31);class s extends l.XPathElement{constructor(e,t){super(e),this.tokenType=t}evaluate(e){let t=[];for(let n of r.Trees.getChildren(e))n instanceof a.TerminalNode&&(n.symbol.type===this.tokenType&&!this.invert||n.symbol.type!==this.tokenType&&this.invert)&&t.push(n);return t}}i([o.Override],s.prototype,"evaluate",null),t.XPathTokenElement=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(26),r=n(66),l=n(31);class s extends l.XPathElement{constructor(){super(r.XPath.WILDCARD)}evaluate(e){return this.invert?[]:a.Trees.getDescendants(e)}}i([o.Override],s.prototype,"evaluate",null),t.XPathWildcardAnywhereElement=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1),a=n(26),r=n(66),l=n(31);class s extends l.XPathElement{constructor(){super(r.XPath.WILDCARD)}evaluate(e){let t=[];if(this.invert)return t;for(let n of a.Trees.getChildren(e))t.push(n);return t}}i([o.Override],s.prototype,"evaluate",null),t.XPathWildcardElement=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(1),r=n(4);let l=class{constructor(e,t,n){if(null==e||0===e.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=e,this.bypassTokenType=t,this._label=n}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return r.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};i([a.NotNull],l.prototype,"ruleName",null),i([a.Override],l.prototype,"channel",null),i([a.Override],l.prototype,"text",null),i([a.Override],l.prototype,"type",null),i([a.Override],l.prototype,"line",null),i([a.Override],l.prototype,"charPositionInLine",null),i([a.Override],l.prototype,"tokenIndex",null),i([a.Override],l.prototype,"startIndex",null),i([a.Override],l.prototype,"stopIndex",null),i([a.Override],l.prototype,"tokenSource",null),i([a.Override],l.prototype,"inputStream",null),i([a.Override],l.prototype,"toString",null),l=i([o(0,a.NotNull)],l),t.RuleTagToken=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(105),a=n(1);class r extends o.Chunk{constructor(e,t){if(super(),null==e||0===e.length)throw new Error("tag cannot be null or empty");this._tag=e,this._label=t}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}i([a.NotNull],r.prototype,"tag",null),i([a.Override],r.prototype,"toString",null),t.TagChunk=r},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(105),r=n(1);let l=class extends a.Chunk{constructor(e){if(super(),null==e)throw new Error("text cannot be null");this._text=e}get text(){return this._text}toString(){return"'"+this._text+"'"}};i([r.NotNull],l.prototype,"_text",void 0),i([r.NotNull],l.prototype,"text",null),i([r.Override],l.prototype,"toString",null),l=i([o(0,r.NotNull)],l),t.TextChunk=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(36),r=n(1);let l=class extends a.CommonToken{constructor(e,t,n){super(t),this._tokenName=e,this._label=n}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};i([r.NotNull],l.prototype,"_tokenName",void 0),i([r.NotNull],l.prototype,"tokenName",null),i([r.Override],l.prototype,"text",null),i([r.Override],l.prototype,"toString",null),l=i([o(0,r.NotNull)],l),t.TokenTagToken=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(40),r=n(1);let l=class extends a.DecisionEventInfo{constructor(e,t,n,i,o,a){super(e,t,i,o,a,t.useContext),this.ambigAlts=n}get ambiguousAlternatives(){return this.ambigAlts}};i([r.NotNull],l.prototype,"ambigAlts",void 0),i([r.NotNull],l.prototype,"ambiguousAlternatives",null),l=i([o(1,r.NotNull),o(2,r.NotNull),o(3,r.NotNull)],l),t.AmbiguityInfo=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(40),r=n(1);let l=class extends a.DecisionEventInfo{constructor(e,t,n,i,o){super(e,t,n,i,o,!0)}};l=i([o(1,r.NotNull),o(2,r.NotNull)],l),t.ContextSensitivityInfo=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(1);class a{constructor(e){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=e}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}i([o.Override],a.prototype,"toString",null),t.DecisionInfo=a},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(40),r=n(1);let l=class extends a.DecisionEventInfo{constructor(e,t,n,i,o){super(e,t,n,i,o,t.useContext)}};l=i([o(1,r.NotNull),o(2,r.NotNull)],l),t.ErrorInfo=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(40),r=n(1);let l=class extends a.DecisionEventInfo{constructor(e,t,n,i,o,a,r){super(e,t,i,o,a,r),this.predictedAlt=n}};l=i([o(3,r.NotNull)],l),t.LookaheadEventInfo=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(40),r=n(1);let l=class extends a.DecisionEventInfo{constructor(e,t,n,i,o,a,r,l){super(t,e,n,i,o,e.useContext),this.semctx=a,this.evalResult=r,this.predictedAlt=l}};l=i([o(0,r.NotNull),o(2,r.NotNull),o(5,r.NotNull)],l),t.PredicateEvalInfo=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.SELF=0]="SELF",e[e.PARENTS=1]="PARENTS",e[e.CHILDREN=2]="CHILDREN",e[e.ANCESTORS=3]="ANCESTORS",e[e.DESCENDANTS=4]="DESCENDANTS",e[e.SIBLINGS=5]="SIBLINGS",e[e.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",e[e.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",e[e.PRECEEDING=8]="PRECEEDING",e[e.FOLLOWING=9]="FOLLOWING"}(t.Dependents||(t.Dependents={}))},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(23),r=n(1),l=n(11);class s{constructor(e=!0){this.exactOnly=e,this.exactOnly=e}syntaxError(e,t,n,i,o,a){}reportAmbiguity(e,t,n,i,o,a,r){if(this.exactOnly&&!o)return;let s=`reportAmbiguity d=${this.getDecisionDescription(e,t)}: ambigAlts=${this.getConflictingAlts(a,r)}, input='${e.inputStream.getText(l.Interval.of(n,i))}'`;e.notifyErrorListeners(s)}reportAttemptingFullContext(e,t,n,i,o,a){let r=`reportAttemptingFullContext d=${this.getDecisionDescription(e,t)}, input='${e.inputStream.getText(l.Interval.of(n,i))}'`;e.notifyErrorListeners(r)}reportContextSensitivity(e,t,n,i,o,a){let r=`reportContextSensitivity d=${this.getDecisionDescription(e,t)}, input='${e.inputStream.getText(l.Interval.of(n,i))}'`;e.notifyErrorListeners(r)}getDecisionDescription(e,t){let n=t.decision,i=t.atnStartState.ruleIndex,o=e.ruleNames;if(i<0||i>=o.length)return n.toString();let a=o[i];return a?`${n} (${a})`:n.toString()}getConflictingAlts(e,t){if(null!=e)return e;let n=new a.BitSet;for(let e of t)n.set(e.alt);return n}}i([r.Override],s.prototype,"syntaxError",null),i([r.Override,o(0,r.NotNull),o(1,r.NotNull),o(6,r.NotNull)],s.prototype,"reportAmbiguity",null),i([r.Override,o(0,r.NotNull),o(1,r.NotNull),o(5,r.NotNull)],s.prototype,"reportAttemptingFullContext",null),i([r.Override,o(0,r.NotNull),o(1,r.NotNull),o(5,r.NotNull)],s.prototype,"reportContextSensitivity",null),i([o(0,r.NotNull),o(1,r.NotNull)],s.prototype,"getDecisionDescription",null),i([r.NotNull,o(1,r.NotNull)],s.prototype,"getConflictingAlts",null),t.DiagnosticErrorListener=s},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r},o=this&&this.__param||function(e,t){return function(n,i){t(n,i,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(19),r=n(41),l=n(1),s=n(1);let d=class extends a.Lexer{constructor(e,t,n,i,o,a,l){if(super(l),0!==a.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=e,this._atn=a,this._ruleNames=n.slice(0),this._channelNames=i.slice(0),this._modeNames=o.slice(0),this._vocabulary=t,this._interp=new r.LexerATNSimulator(a,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};i([l.NotNull],d.prototype,"_vocabulary",void 0),i([s.Override],d.prototype,"atn",null),i([s.Override],d.prototype,"grammarFileName",null),i([s.Override],d.prototype,"ruleNames",null),i([s.Override],d.prototype,"channelNames",null),i([s.Override],d.prototype,"modeNames",null),i([s.Override],d.prototype,"vocabulary",null),d=i([o(1,l.NotNull)],d),t.LexerInterpreter=d},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(7),a=n(1),r=n(2);class l extends r.ParserRuleContext{constructor(e,t){void 0!==t?super(e,t):super(),this._altNumber=o.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(e){this._altNumber=e}}i([a.Override],l.prototype,"altNumber",null),t.RuleContextWithAltNum=l},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.RuleDependency=function(e){return(e,t,n)=>{}}},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(t,"__esModule",{value:!0}),t.RuleVersion=function(e){return(e,t,n)=>{}}},function(e,t,n){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var i=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r};Object.defineProperty(t,"__esModule",{value:!0});const o=n(11),a=n(1),r=n(4);class l{constructor(e){this.tokens=e,this.programs=new Map,this.programs.set(l.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(e,t=l.DEFAULT_PROGRAM_NAME){let n=this.programs.get(t);null!=n&&this.programs.set(t,n.slice(l.MIN_TOKEN_INDEX,e))}deleteProgram(e=l.DEFAULT_PROGRAM_NAME){this.rollback(l.MIN_TOKEN_INDEX,e)}insertAfter(e,t,n=l.DEFAULT_PROGRAM_NAME){let i;i="number"==typeof e?e:e.tokenIndex;let o=new c(this.tokens,i,t),a=this.getProgram(n);o.instructionIndex=a.length,a.push(o)}insertBefore(e,t,n=l.DEFAULT_PROGRAM_NAME){let i;i="number"==typeof e?e:e.tokenIndex;let o=new d(this.tokens,i,t),a=this.getProgram(n);o.instructionIndex=a.length,a.push(o)}replaceSingle(e,t){this.replace(e,e,t)}replace(e,t,n,i=l.DEFAULT_PROGRAM_NAME){if("number"!=typeof e&&(e=e.tokenIndex),"number"!=typeof t&&(t=t.tokenIndex),e>t||e<0||t<0||t>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${t}(size=${this.tokens.size})`);let o=new u(this.tokens,e,t,n),a=this.getProgram(i);o.instructionIndex=a.length,a.push(o)}delete(e,t,n=l.DEFAULT_PROGRAM_NAME){void 0===t&&(t=e),this.replace(e,t,"",n)}getLastRewriteTokenIndex(e=l.DEFAULT_PROGRAM_NAME){let t=this.lastRewriteTokenIndexes.get(e);return null==t?-1:t}setLastRewriteTokenIndex(e,t){this.lastRewriteTokenIndexes.set(e,t)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){let t=[];return this.programs.set(e,t),t}getText(e,t=l.DEFAULT_PROGRAM_NAME){let n;n=e instanceof o.Interval?e:o.Interval.of(0,this.tokens.size-1),"string"==typeof e&&(t=e);let i=this.programs.get(t),a=n.a,s=n.b;if(s>this.tokens.size-1&&(s=this.tokens.size-1),a<0&&(a=0),null==i||0===i.length)return this.tokens.getText(n);let d=[],c=this.reduceToSingleOperationPerIndex(i),u=a;for(;u<=s&&u=this.tokens.size-1&&d.push(e.text.toString());return d.join("")}reduceToSingleOperationPerIndex(e){for(let t=0;ti.index&&t.index<=i.lastIndex&&(e[t.instructionIndex]=void 0);let a=this.getKindOfOps(e,u,t);for(let t of a){if(t.index>=i.index&&t.lastIndex<=i.lastIndex){e[t.instructionIndex]=void 0;continue}let n=t.lastIndexi.lastIndex;if(null!=t.text||null!=i.text||n){if(!n)throw new Error(`replace op boundaries of ${i} overlap with previous ${t}`)}else e[t.instructionIndex]=void 0,i.index=Math.min(t.index,i.index),i.lastIndex=Math.max(t.lastIndex,i.lastIndex)}}for(let t=0;t=n.index&&i.index<=n.lastIndex)throw new Error(`insert op ${i} within boundaries of previous ${n}`)}else n.text=this.catOpText(i.text,n.text),e[t]=void 0}let t=new Map;for(let n of e)if(null!=n){if(null!=t.get(n.index))throw new Error("should only be one op per index");t.set(n.index,n)}return t}catOpText(e,t){let n="",i="";return null!=e&&(n=e.toString()),null!=t&&(i=t.toString()),n+i}getKindOfOps(e,t,n){let i=[];for(let o=0;o'}}i([a.Override],s.prototype,"toString",null),t.RewriteOperation=s;class d extends s{constructor(e,t,n){super(e,t,n)}execute(e){return e.push(this.text.toString()),this.tokens.get(this.index).type!==r.Token.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}i([a.Override],d.prototype,"execute",null);class c extends d{constructor(e,t,n){super(e,t+1,n)}}class u extends s{constructor(e,t,n,i){super(e,t,i),this.lastIndex=n}execute(e){return null!=this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}i([a.Override],u.prototype,"execute",null),i([a.Override],u.prototype,"toString",null)},function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"formats",(function(){return Ht})),n.d(i,"addTranslation",(function(){return cn})),n.d(i,"getTranslation",(function(){return un})),n.d(i,"setLocale",(function(){return mn})),n.d(i,"getLocale",(function(){return hn})),n.d(i,"setDefaultLocale",(function(){return pn})),n.d(i,"getDefaultLocale",(function(){return Tn})),n.d(i,"setFormats",(function(){return bn})),n.d(i,"getFormats",(function(){return gn})),n.d(i,"getRegisteredLocales",(function(){return xn})),n.d(i,"translate",(function(){return fn})),n.d(i,"init",(function(){return kn})),n.d(i,"load",(function(){return Sn})),n.d(i,"isPseudoLocale",(function(){return Qt})),n.d(i,"translateUsingPseudoLocale",(function(){return en}));n(108);const o=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function a(e){l(e)||o.onUnexpectedError(e)}function r(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e}function l(e){return e instanceof Error&&"Canceled"===e.name&&"Canceled"===e.message}var s;!function(e){e.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const t=Object.freeze([]);e.empty=function(){return t},e.single=function*(e){yield e},e.from=function(e){return e||t},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){for(const n of e)yield t(n)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.concatNested=function*(e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);to}]},e.equals=function(e,t,n=((e,t)=>e===t)){const i=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){const e=i.next(),t=o.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}}(s||(s={}));let d=null;function c(e){d&&d.markTracked(e)}function u(e){return d?(d.trackDisposable(e),e):e}class m extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function h(e){if(s.is(e)){let t=[];for(const n of e)if(n){c(n);try{n.dispose()}catch(e){t.push(e)}}if(1===t.length)throw t[0];if(t.length>1)throw new m(t);return Array.isArray(e)?[]:e}if(e)return c(e),e.dispose(),e}function p(...e){return e.forEach(c),function(e){const t=u({dispose:()=>{c(t),e()}});return t}(()=>h(e))}class T{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}clear(){try{h(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return c(e),this._isDisposed?T.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}T.DISABLE_DISPOSED_WARNING=!1;class b{constructor(){this._store=new T,u(this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}b.None=Object.freeze({dispose(){}});var g=n(6);function x(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}function f(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const t of e)i[t]=n(t);return i}class k{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((i,o)=>{this._pendingReplies[n]={resolve:i,reject:o},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&(e=new Error,e.name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req;this._handler.handleMessage(t.method,t.args).then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=r(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:r(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}initialize(e,t,n,i){this._protocol.setWorkerId(e);const o=f(i,(e,t)=>this._protocol.sendMessage(e,t));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(x(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,self.require.config(t)),new Promise((e,t)=>{self.require([n],n=>{this._requestHandler=n.create(o),this._requestHandler?e(x(this._requestHandler)):t(new Error("No RequestHandler!"))},t)}))}}class y{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function C(e){return 55296<=e&&e<=56319}function E(e){return 56320<=e&&e<=57343}function A(e,t){return t-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class O{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return O._INSTANCE||(O._INSTANCE=new O),O._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;for(;i<=n;)if(et[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function _(e,t){return(t<<5)-t+e|0}function I(e,t){t=_(149417,t);for(let n=0,i=e.length;n>>i)>>>0}function N(e,t=0,n=e.byteLength,i=0){for(let o=0;oe.toString(16).padStart(2,"0")).join(""):function(e,t,n="0"){for(;e.length>>0).toString(16),t/4)}O._INSTANCE=null;class v{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,o,a=this._buffLen,r=this._leftoverHighSurrogate;for(0!==r?(i=r,o=-1,r=0):(i=e.charCodeAt(0),o=0);;){let l=i;if(C(i)){if(!(o+1>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),R(this._h0)+R(this._h1)+R(this._h2)+R(this._h3)+R(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,N(this._buff,this._buffLen),this._buffLen>56&&(this._step(),N(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=v._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,L(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,o,a=this._h0,r=this._h1,l=this._h2,s=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(n=r&l|~r&s,i=1518500249):t<40?(n=r^l^s,i=1859775393):t<60?(n=r&l|r&s|l&s,i=2400959708):(n=r^l^s,i=3395469782),o=L(a,5)+n+d+i+e.getUint32(4*t,!1)&4294967295,d=s,s=l,l=L(r,30),r=a,a=o;this._h0=this._h0+a&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+l&4294967295,this._h3=this._h3+s&4294967295,this._h4=this._h4+d&4294967295}}v._bigBlock32=new DataView(new ArrayBuffer(320));class D{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new y(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class U{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[i,o,a]=U._getElements(e),[r,l,s]=U._getElements(t);this._hasStrings=a&&s,this._originalStringElements=i,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(U._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let o;return n<=i?(P.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new y(e,0,n,i-n+1)]):e<=t?(P.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),o=[new y(e,t-e+1,n,0)]):(P.Assert(e===t+1,"originalStart should only be one more than originalEnd"),P.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const a=[0],r=[0],l=this.ComputeRecursionPoint(e,t,n,i,a,r,o),s=a[0],d=r[0];if(null!==l)return l;if(!o[0]){const a=this.ComputeDiffRecursive(e,s,n,d,o);let r=[];return r=o[0]?[new y(s+1,t-(s+1)+1,d+1,i-(d+1)+1)]:this.ComputeDiffRecursive(s+1,t,d+1,i,o),this.ConcatenateChanges(a,r)}return[new y(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,o,a,r,l,s,d,c,u,m,h,p,T,b,g){let x=null,f=null,k=new B,S=t,C=n,E=m[0]-T[0]-i,A=-1073741824,O=this.m_forwardHistory.length-1;do{const t=E+e;t===S||t=0&&(e=(s=this.m_forwardHistory[O])[0],S=1,C=s.length-1)}while(--O>=-1);if(x=k.getReverseChanges(),g[0]){let e=m[0]+1,t=T[0]+1;if(null!==x&&x.length>0){const n=x[x.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}f=[new y(e,u-e+1,t,p-t+1)]}else{k=new B,S=a,C=r,E=m[0]-T[0]-l,A=1073741824,O=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=E+o;e===S||e=d[e+1]?(h=(c=d[e+1]-1)-E-l,c>A&&k.MarkNextChange(),A=c+1,k.AddOriginalElement(c+1,h+1),E=e+1-o):(h=(c=d[e-1])-E-l,c>A&&k.MarkNextChange(),A=c,k.AddModifiedElement(c+1,h+1),E=e-1-o),O>=0&&(o=(d=this.m_reverseHistory[O])[0],S=1,C=d.length-1)}while(--O>=-1);f=k.getChanges()}return this.ConcatenateChanges(x,f)}ComputeRecursionPoint(e,t,n,i,o,a,r){let l=0,s=0,d=0,c=0,u=0,m=0;e--,n--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const h=t-e+(i-n),p=h+1,T=new Int32Array(p),b=new Int32Array(p),g=i-n,x=t-e,f=e-n,k=t-i,S=(x-g)%2==0;T[g]=e,b[x]=t,r[0]=!1;for(let C=1;C<=h/2+1;C++){let h=0,E=0;d=this.ClipDiagonalBound(g-C,C,g,p),c=this.ClipDiagonalBound(g+C,C,g,p);for(let e=d;e<=c;e+=2){l=e===d||eh+E&&(h=l,E=s),!S&&Math.abs(e-x)<=C-1&&l>=b[e])return o[0]=l,a[0]=s,n<=b[e]&&C<=1448?this.WALKTRACE(g,d,c,f,x,u,m,k,T,b,l,t,o,s,i,a,S,r):null}const A=(h-e+(E-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(h,A))return r[0]=!0,o[0]=h,a[0]=E,A>0&&C<=1448?this.WALKTRACE(g,d,c,f,x,u,m,k,T,b,l,t,o,s,i,a,S,r):(e++,n++,[new y(e,t-e+1,n,i-n+1)]);u=this.ClipDiagonalBound(x-C,C,x,p),m=this.ClipDiagonalBound(x+C,C,x,p);for(let h=u;h<=m;h+=2){l=h===u||h=b[h+1]?b[h+1]-1:b[h-1],s=l-(h-x)-k;const p=l;for(;l>e&&s>n&&this.ElementsAreEqual(l,s);)l--,s--;if(b[h]=l,S&&Math.abs(h-g)<=C&&l<=T[h])return o[0]=l,a[0]=s,p>=T[h]&&C<=1448?this.WALKTRACE(g,d,c,f,x,u,m,k,T,b,l,t,o,s,i,a,S,r):null}if(C<=1447){let e=new Int32Array(c-d+2);e[0]=g-d+1,F.Copy2(T,d,e,1,c-d+1),this.m_forwardHistory.push(e),e=new Int32Array(m-u+2),e[0]=x-u+1,F.Copy2(b,u,e,1,m-u+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(g,d,c,f,x,u,m,k,T,b,l,t,o,s,i,a,S,r)}PrettifyChanges(e){for(let t=0;t0,r=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let i=0,o=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,o=n.modifiedStart+n.modifiedLength}const a=n.originalLength>0,r=n.modifiedLength>0;let l=0,s=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,d=n.modifiedStart-e;if(ts&&(s=c,l=e)}n.originalStart-=l,n.modifiedStart-=l;const d=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],d)&&(e[t-1]=d[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>l&&(l=n,s=t,d=e)}return l>0?[s,d]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return F.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],F.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return F.Copy(e,0,n,0,e.length),F.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(P.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),P.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let o=e.originalLength;const a=e.modifiedStart;let r=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(r=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new y(i,o,a,r),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e=65&&e<=90||e>=97&&e<=122}function z(e,t,n,i){let o="",a=0,r=-1,l=0,s=0;for(let d=0;d<=e.length;++d){if(d2){const e=o.lastIndexOf(n);-1===e?(o="",a=0):(o=o.slice(0,e),a=o.length-1-o.lastIndexOf(n)),r=d,l=0;continue}if(0!==o.length){o="",a=0,r=d,l=0;continue}}t&&(o+=o.length>0?n+"..":"..",a=2)}else o.length>0?o+=`${n}${e.slice(r+1,d)}`:o=e.slice(r+1,d),a=d-r-1;r=d,l=0}else 46===s&&-1!==l?++l:l=-1}return o}function G(e,t){if(null===t||"object"!=typeof t)throw new q("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const W={resolve(...e){let t="",n="",i=!1;for(let o=e.length-1;o>=-1;o--){let a;if(o>=0){if(a=e[o],j(a,"path"),0===a.length)continue}else 0===t.length?a=w.a():(a=w.b["="+t]||w.a(),(void 0===a||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===a.charCodeAt(2))&&(a=t+"\\"));const r=a.length;let l=0,s="",d=!1;const c=a.charCodeAt(0);if(1===r)H(c)&&(l=1,d=!0);else if(H(c))if(d=!0,H(a.charCodeAt(1))){let e=2,t=e;for(;e2&&H(a.charCodeAt(2))&&(d=!0,l=3));if(s.length>0)if(t.length>0){if(s.toLowerCase()!==t.toLowerCase())continue}else t=s;if(i){if(t.length>0)break}else if(n=`${a.slice(l)}\\${n}`,i=d,d&&t.length>0)break}return n=z(n,!i,"\\",H),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){j(e,"path");const t=e.length;if(0===t)return".";let n,i=0,o=!1;const a=e.charCodeAt(0);if(1===t)return Y(a)?"\\":e;if(H(a))if(o=!0,H(e.charCodeAt(1))){let o=2,a=o;for(;o2&&H(e.charCodeAt(2))&&(o=!0,i=3));let r=i0&&H(e.charCodeAt(t-1))&&(r+="\\"),void 0===n?o?"\\"+r:r:o?`${n}\\${r}`:`${n}${r}`},isAbsolute(e){j(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return H(n)||t>2&&V(n)&&58===e.charCodeAt(1)&&H(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i0&&(void 0===t?t=n=o:t+="\\"+o)}if(void 0===t)return".";let i=!0,o=0;if("string"==typeof n&&H(n.charCodeAt(0))){++o;const e=n.length;e>1&&H(n.charCodeAt(1))&&(++o,e>2&&(H(n.charCodeAt(2))?++o:i=!1))}if(i){for(;o=2&&(t="\\"+t.slice(o))}return W.normalize(t)},relative(e,t){if(j(e,"from"),j(t,"to"),e===t)return"";const n=W.resolve(e),i=W.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let o=0;for(;oo&&92===e.charCodeAt(a-1);)a--;const r=a-o;let l=0;for(;ll&&92===t.charCodeAt(s-1);)s--;const d=s-l,c=rc){if(92===t.charCodeAt(l+m))return i.slice(l+m+1);if(2===m)return i.slice(l+m)}r>c&&(92===e.charCodeAt(o+m)?u=m:2===m&&(u=3)),-1===u&&(u=0)}let h="";for(m=o+u+1;m<=a;++m)m!==a&&92!==e.charCodeAt(m)||(h+=0===h.length?"..":"\\..");return l+=u,h.length>0?`${h}${i.slice(l,s)}`:(92===i.charCodeAt(l)&&++l,i.slice(l,s))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=W.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){const e=t.charCodeAt(2);if(63!==e&&46!==e)return"\\\\?\\UNC\\"+t.slice(2)}}else if(V(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return"\\\\?\\"+t;return e},dirname(e){j(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const o=e.charCodeAt(0);if(1===t)return H(o)?e:".";if(H(o)){if(n=i=1,H(e.charCodeAt(1))){let o=2,a=o;for(;o2&&H(e.charCodeAt(2))?3:2,i=n);let a=-1,r=!0;for(let n=t-1;n>=i;--n)if(H(e.charCodeAt(n))){if(!r){a=n;break}}else r=!1;if(-1===a){if(-1===n)return".";a=n}return e.slice(0,a)},basename(e,t){void 0!==t&&j(t,"ext"),j(e,"path");let n,i=0,o=-1,a=!0;if(e.length>=2&&V(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,l=-1;for(n=e.length-1;n>=i;--n){const s=e.charCodeAt(n);if(H(s)){if(!a){i=n+1;break}}else-1===l&&(a=!1,l=n+1),r>=0&&(s===t.charCodeAt(r)?-1==--r&&(o=n):(r=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=i;--n)if(H(e.charCodeAt(n))){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname(e){j(e,"path");let t=0,n=-1,i=0,o=-1,a=!0,r=0;e.length>=2&&58===e.charCodeAt(1)&&V(e.charCodeAt(0))&&(t=i=2);for(let l=e.length-1;l>=t;--l){const t=e.charCodeAt(l);if(H(t)){if(!a){i=l+1;break}}else-1===o&&(a=!1,o=l+1),46===t?-1===n?n=l:1!==r&&(r=1):-1!==n&&(r=-1)}return-1===n||-1===o||0===r||1===r&&n===o-1&&n===i+1?"":e.slice(n,o)},format:G.bind(null,"\\"),parse(e){j(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,o=e.charCodeAt(0);if(1===n)return H(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(H(o)){if(i=1,H(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,i));let a=-1,r=i,l=-1,s=!0,d=e.length-1,c=0;for(;d>=i;--d)if(o=e.charCodeAt(d),H(o)){if(!s){r=d+1;break}}else-1===l&&(s=!1,l=d+1),46===o?-1===a?a=d:1!==c&&(c=1):-1!==a&&(c=-1);return-1!==l&&(-1===a||0===c||1===c&&a===l-1&&a===r+1?t.base=t.name=e.slice(r,l):(t.name=e.slice(r,a),t.base=e.slice(r,l),t.ext=e.slice(a,l))),t.dir=r>0&&r!==i?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},K={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:w.a();j(o,"path"),0!==o.length&&(t=`${o}/${t}`,n=47===o.charCodeAt(0))}return t=z(t,!n,"/",Y),n?"/"+t:t.length>0?t:"."},normalize(e){if(j(e,"path"),0===e.length)return".";const t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0===(e=z(e,!t,"/",Y)).length?t?"/":n?"./":".":(n&&(e+="/"),t?"/"+e:e)},isAbsolute:e=>(j(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":K.normalize(t)},relative(e,t){if(j(e,"from"),j(t,"to"),e===t)return"";if((e=K.resolve(e))===(t=K.resolve(t)))return"";const n=e.length,i=n-1,o=t.length-1,a=ia){if(47===t.charCodeAt(1+l))return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else i>a&&(47===e.charCodeAt(1+l)?r=l:0===l&&(r=0));let s="";for(l=1+r+1;l<=n;++l)l!==n&&47!==e.charCodeAt(l)||(s+=0===s.length?"..":"/..");return`${s}${t.slice(1+r)}`},toNamespacedPath:e=>e,dirname(e){if(j(e,"path"),0===e.length)return".";const t=47===e.charCodeAt(0);let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&j(t,"ext"),j(e,"path");let n,i=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){const s=e.charCodeAt(n);if(47===s){if(!a){i=n+1;break}}else-1===l&&(a=!1,l=n+1),r>=0&&(s===t.charCodeAt(r)?-1==--r&&(o=n):(r=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname(e){j(e,"path");let t=-1,n=0,i=-1,o=!0,a=0;for(let r=e.length-1;r>=0;--r){const l=e.charCodeAt(r);if(47!==l)-1===i&&(o=!1,i=r+1),46===l?-1===t?t=r:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=r+1;break}}return-1===t||-1===i||0===a||1===a&&t===i-1&&t===n+1?"":e.slice(t,i)},format:G.bind(null,"/"),parse(e){j(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=47===e.charCodeAt(0);let i;n?(t.root="/",i=1):i=0;let o=-1,a=0,r=-1,l=!0,s=e.length-1,d=0;for(;s>=i;--s){const t=e.charCodeAt(s);if(47!==t)-1===r&&(l=!1,r=s+1),46===t?-1===o?o=s:1!==d&&(d=1):-1!==o&&(d=-1);else if(!l){a=s+1;break}}if(-1!==r){const i=0===a&&n?1:a;-1===o||0===d||1===d&&o===r-1&&o===a+1?t.base=t.name=e.slice(i,r):(t.name=e.slice(i,o),t.base=e.slice(i,r),t.ext=e.slice(o,r))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};K.win32=W.win32=W,K.posix=W.posix=K;"win32"===w.c?W.normalize:K.normalize,"win32"===w.c?W.resolve:K.resolve,"win32"===w.c?W.relative:K.relative,"win32"===w.c?W.dirname:K.dirname,"win32"===w.c?W.basename:K.basename,"win32"===w.c?W.extname:K.extname,"win32"===w.c?W.sep:K.sep;const Z=/^\w[\w\d+.-]*$/,X=/^\//,J=/^\/\//;const $="/",Q=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ee{constructor(e,t,n,i,o,a=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file"}(e,a),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==$&&(t=$+t):t=$}return t}(this.scheme,n||""),this.query=i||"",this.fragment=o||"",function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Z.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!X.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(J.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,a))}static isUri(e){return e instanceof ee||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return re(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:o,fragment:a}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===i?i=this.path:null===i&&(i=""),void 0===o?o=this.query:null===o&&(o=""),void 0===a?a=this.fragment:null===a&&(a=""),t===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&a===this.fragment?this:new ne(t,n,i,o,a)}static parse(e,t=!1){const n=Q.exec(e);return n?new ne(n[2]||"",de(n[4]||""),de(n[5]||""),de(n[7]||""),de(n[9]||""),t):new ne("","","","","")}static file(e){let t="";if(g.d&&(e=e.replace(/\\/g,$)),e[0]===$&&e[1]===$){const n=e.indexOf($,2);-1===n?(t=e.substring(2),e=$):(t=e.substring(2,n),e=e.substring(n)||$)}return new ne("file",t,e,"","")}static from(e){return new ne(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=g.d&&"file"===e.scheme?ee.file(W.join(re(e,!0),...t)).path:K.join(e.path,...t),e.with({path:n})}toString(e=!1){return le(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof ee)return e;{const t=new ne(e);return t._formatted=e.external,t._fsPath=e._sep===te?e.fsPath:null,t}}return e}}const te=g.d?1:void 0;class ne extends ee{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=re(this,!1)),this._fsPath}toString(e=!1){return e?le(this,!0):(this._formatted||(this._formatted=le(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=te),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const ie={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function oe(e,t){let n=void 0,i=-1;for(let o=0;o=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a)-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==n&&(n+=e.charAt(o));else{void 0===n&&(n=e.substr(0,o));const t=ie[a];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=t):-1===i&&(i=o)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function ae(e){let t=void 0;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,g.d&&(n=n.replace(/\//g,"\\")),n}function le(e,t){const n=t?ae:oe;let i="",{scheme:o,authority:a,path:r,query:l,fragment:s}=e;if(o&&(i+=o,i+=":"),(a||"file"===o)&&(i+=$,i+=$),a){let e=a.indexOf("@");if(-1!==e){const t=a.substr(0,e);a=a.substr(e+1),e=t.indexOf(":"),-1===e?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}a=a.toLowerCase(),e=a.indexOf(":"),-1===e?i+=n(a,!1):(i+=n(a.substr(0,e),!1),i+=a.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}i+=n(r,!0)}return l&&(i+="?",i+=n(l,!1)),s&&(i+="#",i+=t?s:oe(s,!1)),i}const se=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function de(e){return e.match(se)?e.replace(se,e=>function e(t){try{return decodeURIComponent(t)}catch(n){return t.length>3?t.substr(0,3)+e(t.substr(3)):t}}(e)):e}class ce{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ce(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ce.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ce.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return ue.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return ue.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))}containsRange(e){return ue.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))}strictContainsRange(e){return ue.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return ue.plusRange(this,e)}static plusRange(e,t){let n,i,o,a;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,a=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,a=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,a=e.endColumn),new ue(n,i,o,a)}intersectRanges(e){return ue.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,a=e.endColumn,r=t.startLineNumber,l=t.startColumn,s=t.endLineNumber,d=t.endColumn;return ns?(o=s,a=d):o===s&&(a=Math.min(a,d)),n>o||n===o&&i>a?null:new ue(n,i,o,a)}equalsRange(e){return ue.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return ue.getEndPosition(this)}static getEndPosition(e){return new ce(e.endLineNumber,e.endColumn)}getStartPosition(){return ue.getStartPosition(this)}static getStartPosition(e){return new ce(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new ue(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new ue(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return ue.collapseToStart(this)}static collapseToStart(e){return new ue(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new ue(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new ue(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}function me(e,t,n,i){return new U(e,t,n).ComputeDiff(i)}class he{constructor(e){const t=[],n=[];for(let i=0,o=e.length;i0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const a=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),l=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let s=me(a,l,o,!0).changes;r&&(s=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,o=e.length;i1&&r>1;){if(e.charCodeAt(n-2)!==t.charCodeAt(r-2))break;n--,r--}(n>1||r>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,n,a+1,1,r)}{let n=fe(e,1),r=fe(t,1);const l=e.length+1,s=t.length+1;for(;n=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function ke(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t255?255:0|e}function ye(e){return e<0?0:e>4294967295?4294967295:0|e}class Ce{constructor(e,t){this.index=e,this.remainder=t}}class Ee{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=ye(e);const n=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=ye(e),t=ye(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;let o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=ye(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,n=this.values.length-1,i=0,o=0,a=0;for(;t<=n;)if(i=t+(n-t)/2|0,o=this.prefixSum[i],a=o-this.values[i],e=o))break;t=i+1}return new Ce(i,e-a)}}const Ae=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();const Oe={maxLen:1e3,windowSize:15,timeBudget:150};function _e(e,t,n,i){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=n&&e.lastIndex>=n)return o;if(i>0&&t>i)return null}return null}class Ie{constructor(e){let t=Se(e);this._defaultValue=t,this._asciiMap=Ie._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=Se(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class Le{constructor(e,t,n){const i=new Uint8Array(e*t);for(let o=0,a=e*t;ot&&(t=a),o>n&&(n=o),r>n&&(n=r)}t++,n++;let i=new Le(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let Re=null;let ve=null;class De{static _createLink(e,t,n,i,o){let a=o-1;do{const n=t.charCodeAt(a);if(2!==e.get(n))break;a--}while(a>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(a);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&a--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:a+2},url:t.substring(i,a+1)}}static computeLinks(e,t=function(){return null===Re&&(Re=new Ne([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Re}()){const n=function(){if(null===ve){ve=new Ie(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let t=0;t=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Me.INSTANCE=new Me;class Pe{constructor(e){this.element=e,this.next=Pe.Undefined,this.prev=Pe.Undefined}}Pe.Undefined=new Pe(void 0);class Fe{constructor(){this._first=Pe.Undefined,this._last=Pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Pe.Undefined}clear(){this._first=Pe.Undefined,this._last=Pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Pe(e);if(this._first===Pe.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==Pe.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Pe.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Pe.Undefined&&e.next!==Pe.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Pe.Undefined&&e.next===Pe.Undefined?(this._first=Pe.Undefined,this._last=Pe.Undefined):e.next===Pe.Undefined?(this._last=this._last.prev,this._last.next=Pe.Undefined):e.prev===Pe.Undefined&&(this._first=this._first.next,this._first.prev=Pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Pe.Undefined;)yield e.element,e=e.next}}const Be=g.a.performance&&"function"==typeof g.a.performance.now;class Ue{constructor(e){this._highResolution=Be&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Ue(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?g.a.performance.now():Date.now()}}var we;!function(e){function t(e){return(t,n=null,i)=>{let o,a=!1;return o=e(e=>{if(!a)return o?o.dispose():a=!0,t.call(n,e)},null,i),a&&o.dispose(),o}}function n(e,t){return r((n,i=null,o)=>e(e=>n.call(i,t(e)),null,o))}function i(e,t){return r((n,i=null,o)=>e(e=>{t(e),n.call(i,e)},null,o))}function o(e,t){return r((n,i=null,o)=>e(e=>t(e)&&n.call(i,e),null,o))}function a(e,t,i){let o=i;return n(e,e=>(o=t(o,e),o))}function r(e){let t;const n=new je({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e,t,n=100,i=!1,o){let a,r=void 0,l=void 0,s=0;const d=new je({leakWarningThreshold:o,onFirstListenerAdd(){a=e(e=>{s++,r=t(r,e),i&&!l&&(d.fire(r),r=void 0),clearTimeout(l),l=setTimeout(()=>{const e=r;r=void 0,l=void 0,(!i||s>1)&&d.fire(e),s=0},n)})},onLastListenerRemove(){a.dispose()}});return d.event}function s(e){let t,n=!0;return o(e,e=>{const i=n||e!==t;return n=!1,t=e,i})}e.None=()=>b.None,e.once=t,e.map=n,e.forEach=i,e.filter=o,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>p(...e.map(e=>e(e=>t.call(n,e),null,i)))},e.reduce=a,e.snapshot=r,e.debounce=l,e.stopwatch=function(e){const i=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-i)},e.latch=s,e.buffer=function(e,t=!1,n=[]){let i=n.slice(),o=e(e=>{i?i.push(e):r.fire(e)});const a=()=>{i&&i.forEach(e=>r.fire(e)),i=null},r=new je({onFirstListenerAdd(){o||(o=e(e=>r.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(a):a())},onLastListenerRemove(){o&&o.dispose(),o=null}});return r.event};class d{constructor(e){this.event=e}map(e){return new d(n(this.event,e))}forEach(e){return new d(i(this.event,e))}filter(e){return new d(o(this.event,e))}reduce(e,t){return new d(a(this.event,e,t))}latch(){return new d(s(this.event))}debounce(e,t=100,n=!1,i){return new d(l(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>o.fire(n(...e)),o=new je({onFirstListenerAdd:()=>e.on(t,i),onLastListenerRemove:()=>e.removeListener(t,i)});return o.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>o.fire(n(...e)),o=new je({onFirstListenerAdd:()=>e.addEventListener(t,i),onLastListenerRemove:()=>e.removeEventListener(t,i)});return o.event},e.fromPromise=function(e){const t=new je;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(we||(we={}));class qe{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${qe._idPool++}`}start(e){this._stopWatch=new Ue(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}qe._idPool=0;class je{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new qe(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new Fe);const o=this._listeners.isEmpty();o&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(t?[e,t]:e);o&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const r=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size);let l;return l={dispose:()=>{if(r&&r(),l.dispose=je._noop,!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},n instanceof T?n.add(l):Array.isArray(n)&&n.push(l),l}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Fe);for(let t of this._listeners)this._deliveryQueue.push([t,e]);for(null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){a(e)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n;null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(n=this._leakageMon)||void 0===n||n.dispose(),this._disposed=!0}}je._noop=function(){};const He=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Ye,Ve;(Ve=Ye||(Ye={})).isCancellationToken=function(e){return e===Ve.None||e===Ve.Cancelled||e instanceof ze||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},Ve.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:we.None}),Ve.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:He});class ze{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?He:(this._emitter||(this._emitter=new je),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ge{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new ze),this._token}cancel(){this._token?this._token instanceof ze&&this._token.cancel():this._token=Ye.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof ze&&this._token.dispose():this._token=Ye.None}}class We{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Ke=new We,Ze=new We,Xe=new We;var Je,$e,Qe,et,tt,nt,it,ot,at,rt,lt,st,dt,ct,ut,mt,ht,pt,Tt,bt,gt,xt,ft,kt,St,yt,Ct,Et,At,Ot,_t,It,Lt,Nt,Rt;!function(){function e(e,t,n=t,i=n){Ke.define(e,t),Ze.define(e,n),Xe.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Ke.keyCodeToStr(e)},e.fromString=function(e){return Ke.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Ze.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Xe.keyCodeToStr(e)},e.fromUserSettings=function(e){return Ze.strToKeyCode(e)||Xe.strToKeyCode(e)}}(Je||(Je={}));class vt extends ue{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return vt.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new vt(this.startLineNumber,this.startColumn,e,t):new vt(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new ce(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new vt(e,t,this.endLineNumber,this.endColumn):new vt(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new vt(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new vt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n>>0)>>>0}(e,t)}}Mt.CtrlCmd=2048,Mt.Shift=1024,Mt.Alt=512,Mt.WinCtrl=256;var Pt=function(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{s(i.next(e))}catch(e){a(e)}}function l(e){try{s(i.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,l)}s((i=i.apply(e,t||[])).next())}))};class Ft extends class{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new ce(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;ia.maxLen){let r=t-a.maxLen/2;return r<0?r=0:o+=r,e(t,n,i=i.substring(r,t+a.maxLen/2),o,a)}const r=Date.now(),l=t-1-o;let s=-1,d=null;for(let e=1;!(Date.now()-r>=a.timeBudget);e++){const t=l-a.windowSize*e;n.lastIndex=Math.max(0,t);const o=_e(n,i,l,s);if(!o&&d)break;if(d=o,t<=0)break;s=t}if(d){let e={word:d[0],startColumn:o+1+d.index,endColumn:o+1+d.index+d[0].length};return n.lastIndex=0,e}return null}(e.column,function(e){let t=Ae;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new ue(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,o="",a=0,r=[];return{*[Symbol.iterator](){for(;;)if(athis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class Bt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new Ft(ee.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return Pt(this,void 0,void 0,(function*(){const o=this._getModel(e),a=this._getModel(t);if(!o||!a)return null;const r=o.getLinesContent(),l=a.getLinesContent(),s=new ge(r,l,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}).computeDiff(),d=!(s.changes.length>0)&&this._modelsAreIdentical(o,a);return{quitEarly:s.quitEarly,identical:d,changes:s.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++){if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0}computeMoreMinimalEdits(e,t){return Pt(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const i=[];let o=void 0;t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return ue.compareRangesUsingStarts(e.range,t.range);return(e.range?0:1)-(t.range?0:1)});for(let{range:e,text:a,eol:r}of t){if("number"==typeof r&&(o=r),ue.isEmpty(e)&&!a)continue;const t=n.getValueInRange(e);if(a=a.replace(/\r\n|\n|\r/g,n.eol),t===a)continue;if(Math.max(a.length,t.length)>Bt._diffLimit){i.push({range:e,text:a});continue}const l=M(t,a,!1),s=n.offsetAt(ue.lift(e).getStartPosition());for(const e of l){const t=n.positionAt(s+e.originalStart),o=n.positionAt(s+e.originalStart+e.originalLength),r={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:o.lineNumber,endColumn:o.column}};n.getValueInRange(r.range)!==r.text&&i.push(r)}}return"number"==typeof o&&i.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}))}computeLinks(e){return Pt(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?De.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,i){return Pt(this,void 0,void 0,(function*(){const o=new Ue(!0),a=new RegExp(n,i),r=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(a))if(n!==t&&isNaN(Number(n))&&(r.add(n),r.size>Bt._suggestionsLimit))break e}return{words:Array.from(r),duration:o.elapsed()}}))}computeWordRanges(e,t,n,i){return Pt(this,void 0,void 0,(function*(){let o=this._getModel(e);if(!o)return Object.create(null);const a=new RegExp(n,i),r=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(i,t),Promise.resolve(x(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}Bt._diffLimit=1e5,Bt._suggestionsLimit=1e4,"function"==typeof importScripts&&(g.a.monaco={editor:void 0,languages:void 0,CancellationTokenSource:Ge,Emitter:je,KeyCode:ht,KeyMod:Mt,Position:ce,Range:ue,Selection:vt,SelectionDirection:Et,MarkerSeverity:pt,MarkerTag:Tt,Uri:ee,Token:Dt});let Ut=!1;function wt(e){if(Ut)return;Ut=!0;const t=new S(e=>{self.postMessage(e)},t=>new Bt(t,e));self.onmessage=e=>{t.onmessage(e.data)}}self.onmessage=e=>{Ut||wt(null)};var qt=n(0),jt=n.n(qt);const Ht={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}},relative:{years:{units:"year"},months:{units:"month"},days:{units:"day"},hours:{units:"hour"},minutes:{units:"minute"},seconds:{units:"second"}}};var Yt=n(107),Vt=n.n(Yt),zt=n(27),Gt=n.n(zt),Wt=n(42),Kt=n.n(Wt);const Zt=e=>"string"==typeof e,Xt=e=>"object"==typeof e&&null!==e,Jt=(e,t)=>((e=[])=>[...new Set(e)])([...Object.keys(e),...Object.keys(t)]).reduce((n,i)=>Xt(e[i])&&Xt(t[i])&&!Array.isArray(e[i])&&!Array.isArray(t[i])?{...n,[i]:Jt(e[i],t[i])}:{...n,[i]:void 0===t[i]?e[i]:t[i]},{}),$t=/[A-Za-z]|(\]\([\s\S]*?\))|(<([^"<>]|("[^"]*?"))*?>)|(@I18N@\w*?@I18N@)/g;function Qt(e){return"en-xa"===e.toLowerCase()}function en(e){return e.replace($t,function(){let e=0;return t=>{if(1!==t.length)return t;const n=tn[t]||t;return++e%3==0?n.repeat(2):n}}())}const tn={a:"à",b:"ƀ",c:"ç",d:"ð",e:"é",f:"ƒ",g:"ĝ",h:"ĥ",i:"î",l:"ļ",k:"ķ",j:"ĵ",m:"ɱ",n:"ñ",o:"ô",p:"þ",q:"ǫ",r:"ŕ",s:"š",t:"ţ",u:"û",v:"ṽ",w:"ŵ",x:"ẋ",y:"ý",z:"ž",A:"À",B:"Ɓ",C:"Ç",D:"Ð",E:"É",F:"Ƒ",G:"Ĝ",H:"Ĥ",I:"Î",L:"Ļ",K:"Ķ",J:"Ĵ",M:"Ṁ",N:"Ñ",O:"Ô",P:"Þ",Q:"Ǫ",R:"Ŕ",S:"Š",T:"Ţ",U:"Û",V:"Ṽ",W:"Ŵ",X:"Ẋ",Y:"Ý",Z:"Ž"};function nn(e){Gt.a.__addLocaleData(e),Kt.a.__addLocaleData(e)}nn({locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1),r=o&&n[0].slice(-2);return t?1==a&&11!=r?"one":2==a&&12!=r?"two":3==a&&13!=r?"few":"other":1==e&&i?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}),nn({locale:"en-US",parentLocale:"en"}),nn({locale:"en-xa",pluralRuleFunction:function(e,t){var n=String(e).split("."),i=!n[1],o=Number(n[0])==e,a=o&&n[0].slice(-1),r=o&&n[0].slice(-2);return t?1==a&&11!=r?"one":2==a&&12!=r?"two":3==a&&13!=r?"few":"other":1==e&&i?"one":"other"},fields:{year:{displayName:"ýéààŕ",relative:{0:"ţĥîîš ýééàŕ",1:"ñéẋẋţ ýééàŕ","-1":"ļàššţ ýééàŕ"},relativeTime:{future:{one:"îñ {0} ýýéàŕŕ",other:"îñ {0} ýýéàŕŕš"},past:{one:"{0} ýéààŕ àĝĝô",other:"{0} ýéààŕš ààĝô"}}},"year-short":{displayName:"ýŕ.",relative:{0:"ţĥîîš ýŕŕ.",1:"ñéẋẋţ ýŕŕ.","-1":"ļàššţ ýŕŕ."},relativeTime:{future:{one:"îñ {0} ýýŕ.",other:"îñ {0} ýýŕ."},past:{one:"{0} ýŕ. ààĝô",other:"{0} ýŕ. ààĝô"}}},month:{displayName:"ɱôññţĥ",relative:{0:"ţĥîîš ɱôôñţĥĥ",1:"ñéẋẋţ ɱôôñţĥĥ","-1":"ļàššţ ɱôôñţĥĥ"},relativeTime:{future:{one:"îñ {0} ɱɱôñţţĥ",other:"îñ {0} ɱɱôñţţĥš"},past:{one:"{0} ɱôññţĥ ààĝô",other:"{0} ɱôññţĥšš àĝôô"}}},"month-short":{displayName:"ɱô.",relative:{0:"ţĥîîš ɱôô.",1:"ñéẋẋţ ɱôô.","-1":"ļàššţ ɱôô."},relativeTime:{future:{one:"îñ {0} ɱɱô.",other:"îñ {0} ɱɱô."},past:{one:"{0} ɱô. ààĝô",other:"{0} ɱô. ààĝô"}}},day:{displayName:"ðàýý",relative:{0:"ţôððàý",1:"ţôɱɱôŕŕŕôŵ","-1":"ýéššţéŕŕðàýý"},relativeTime:{future:{one:"îñ {0} ððàý",other:"îñ {0} ððàýšš"},past:{one:"{0} ðàýý àĝôô",other:"{0} ðàýýš àĝĝô"}}},"day-short":{displayName:"ðàýý",relative:{0:"ţôððàý",1:"ţôɱɱôŕŕŕôŵ","-1":"ýéššţéŕŕðàýý"},relativeTime:{future:{one:"îñ {0} ððàý",other:"îñ {0} ððàýšš"},past:{one:"{0} ðàýý àĝôô",other:"{0} ðàýýš àĝĝô"}}},hour:{displayName:"ĥôûûŕ",relative:{0:"ţĥîîš ĥôôûŕ"},relativeTime:{future:{one:"îñ {0} ĥĥôûŕŕ",other:"îñ {0} ĥĥôûŕŕš"},past:{one:"{0} ĥôûûŕ àĝĝô",other:"{0} ĥôûûŕš ààĝô"}}},"hour-short":{displayName:"ĥŕ.",relative:{0:"ţĥîîš ĥôôûŕ"},relativeTime:{future:{one:"îñ {0} ĥĥŕ.",other:"îñ {0} ĥĥŕ."},past:{one:"{0} ĥŕ. ààĝô",other:"{0} ĥŕ. ààĝô"}}},minute:{displayName:"ɱîññûţéé",relative:{0:"ţĥîîš ɱîîñûţţé"},relativeTime:{future:{one:"îñ {0} ɱɱîñûûţé",other:"îñ {0} ɱɱîñûûţéšš"},past:{one:"{0} ɱîññûţéé àĝôô",other:"{0} ɱîññûţééš àĝĝô"}}},"minute-short":{displayName:"ɱîññ.",relative:{0:"ţĥîîš ɱîîñûţţé"},relativeTime:{future:{one:"îñ {0} ɱɱîñ.",other:"îñ {0} ɱɱîñ."},past:{one:"{0} ɱîññ. àĝôô",other:"{0} ɱîññ. àĝôô"}}},second:{displayName:"šéççôñðð",relative:{0:"ñôŵŵ"},relativeTime:{future:{one:"îñ {0} ššéçôôñð",other:"îñ {0} ššéçôôñðšš"},past:{one:"{0} šéççôñðð àĝôô",other:"{0} šéççôñððš àĝĝô"}}},"second-short":{displayName:"šéçç.",relative:{0:"ñôŵŵ"},relativeTime:{future:{one:"îñ {0} ššéç.",other:"îñ {0} ššéç."},past:{one:"{0} šéçç. àĝôô",other:"{0} šéçç. àĝôô"}}}}}),nn({locale:"es",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"},fields:{year:{displayName:"año",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} año",other:"dentro de {0} años"},past:{one:"hace {0} año",other:"hace {0} años"}}},"year-short":{displayName:"a",relative:{0:"este año",1:"el próximo año","-1":"el año pasado"},relativeTime:{future:{one:"dentro de {0} a",other:"dentro de {0} a"},past:{one:"hace {0} a",other:"hace {0} a"}}},month:{displayName:"mes",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} mes",other:"dentro de {0} meses"},past:{one:"hace {0} mes",other:"hace {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mes",1:"el próximo mes","-1":"el mes pasado"},relativeTime:{future:{one:"dentro de {0} m",other:"dentro de {0} m"},past:{one:"hace {0} m",other:"hace {0} m"}}},day:{displayName:"día",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},"day-short":{displayName:"d",relative:{0:"hoy",1:"mañana",2:"pasado mañana","-2":"anteayer","-1":"ayer"},relativeTime:{future:{one:"dentro de {0} día",other:"dentro de {0} días"},past:{one:"hace {0} día",other:"hace {0} días"}}},hour:{displayName:"hora",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} hora",other:"dentro de {0} horas"},past:{one:"hace {0} hora",other:"hace {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"esta hora"},relativeTime:{future:{one:"dentro de {0} h",other:"dentro de {0} h"},past:{one:"hace {0} h",other:"hace {0} h"}}},minute:{displayName:"minuto",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"},past:{one:"hace {0} minuto",other:"hace {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"este minuto"},relativeTime:{future:{one:"dentro de {0} min",other:"dentro de {0} min"},past:{one:"hace {0} min",other:"hace {0} min"}}},second:{displayName:"segundo",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"},past:{one:"hace {0} segundo",other:"hace {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"ahora"},relativeTime:{future:{one:"dentro de {0} s",other:"dentro de {0} s"},past:{one:"hace {0} s",other:"hace {0} s"}}}}}),nn({locale:"es-LA",parentLocale:"es"}),nn({locale:"fr",pluralRuleFunction:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},fields:{year:{displayName:"année",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} an",other:"dans {0} ans"},past:{one:"il y a {0} an",other:"il y a {0} ans"}}},"year-short":{displayName:"an",relative:{0:"cette année",1:"l’année prochaine","-1":"l’année dernière"},relativeTime:{future:{one:"dans {0} a",other:"dans {0} a"},past:{one:"il y a {0} a",other:"il y a {0} a"}}},month:{displayName:"mois",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} mois",other:"dans {0} mois"},past:{one:"il y a {0} mois",other:"il y a {0} mois"}}},"month-short":{displayName:"m.",relative:{0:"ce mois-ci",1:"le mois prochain","-1":"le mois dernier"},relativeTime:{future:{one:"dans {0} m.",other:"dans {0} m."},past:{one:"il y a {0} m.",other:"il y a {0} m."}}},day:{displayName:"jour",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} jour",other:"dans {0} jours"},past:{one:"il y a {0} jour",other:"il y a {0} jours"}}},"day-short":{displayName:"j",relative:{0:"aujourd’hui",1:"demain",2:"après-demain","-2":"avant-hier","-1":"hier"},relativeTime:{future:{one:"dans {0} j",other:"dans {0} j"},past:{one:"il y a {0} j",other:"il y a {0} j"}}},hour:{displayName:"heure",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} heure",other:"dans {0} heures"},past:{one:"il y a {0} heure",other:"il y a {0} heures"}}},"hour-short":{displayName:"h",relative:{0:"cette heure-ci"},relativeTime:{future:{one:"dans {0} h",other:"dans {0} h"},past:{one:"il y a {0} h",other:"il y a {0} h"}}},minute:{displayName:"minute",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} minute",other:"dans {0} minutes"},past:{one:"il y a {0} minute",other:"il y a {0} minutes"}}},"minute-short":{displayName:"min",relative:{0:"cette minute-ci"},relativeTime:{future:{one:"dans {0} min",other:"dans {0} min"},past:{one:"il y a {0} min",other:"il y a {0} min"}}},second:{displayName:"seconde",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} seconde",other:"dans {0} secondes"},past:{one:"il y a {0} seconde",other:"il y a {0} secondes"}}},"second-short":{displayName:"s",relative:{0:"maintenant"},relativeTime:{future:{one:"dans {0} s",other:"dans {0} s"},past:{one:"il y a {0} s",other:"il y a {0} s"}}}}}),nn({locale:"fr-FR",parentLocale:"fr"}),nn({locale:"de",pluralRuleFunction:function(e,t){var n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"},fields:{year:{displayName:"Jahr",relative:{0:"dieses Jahr",1:"nächstes Jahr","-1":"letztes Jahr"},relativeTime:{future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}}},"year-short":{displayName:"Jahr",relative:{0:"dieses Jahr",1:"nächstes Jahr","-1":"letztes Jahr"},relativeTime:{future:{one:"in {0} Jahr",other:"in {0} Jahren"},past:{one:"vor {0} Jahr",other:"vor {0} Jahren"}}},month:{displayName:"Monat",relative:{0:"diesen Monat",1:"nächsten Monat","-1":"letzten Monat"},relativeTime:{future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}}},"month-short":{displayName:"Monat",relative:{0:"diesen Monat",1:"nächsten Monat","-1":"letzten Monat"},relativeTime:{future:{one:"in {0} Monat",other:"in {0} Monaten"},past:{one:"vor {0} Monat",other:"vor {0} Monaten"}}},day:{displayName:"Tag",relative:{0:"heute",1:"morgen",2:"übermorgen","-2":"vorgestern","-1":"gestern"},relativeTime:{future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}}},"day-short":{displayName:"Tag",relative:{0:"heute",1:"morgen",2:"übermorgen","-2":"vorgestern","-1":"gestern"},relativeTime:{future:{one:"in {0} Tag",other:"in {0} Tagen"},past:{one:"vor {0} Tag",other:"vor {0} Tagen"}}},hour:{displayName:"Stunde",relative:{0:"in dieser Stunde"},relativeTime:{future:{one:"in {0} Stunde",other:"in {0} Stunden"},past:{one:"vor {0} Stunde",other:"vor {0} Stunden"}}},"hour-short":{displayName:"Std.",relative:{0:"in dieser Stunde"},relativeTime:{future:{one:"in {0} Std.",other:"in {0} Std."},past:{one:"vor {0} Std.",other:"vor {0} Std."}}},minute:{displayName:"Minute",relative:{0:"in dieser Minute"},relativeTime:{future:{one:"in {0} Minute",other:"in {0} Minuten"},past:{one:"vor {0} Minute",other:"vor {0} Minuten"}}},"minute-short":{displayName:"Min.",relative:{0:"in dieser Minute"},relativeTime:{future:{one:"in {0} Min.",other:"in {0} Min."},past:{one:"vor {0} Min.",other:"vor {0} Min."}}},second:{displayName:"Sekunde",relative:{0:"jetzt"},relativeTime:{future:{one:"in {0} Sekunde",other:"in {0} Sekunden"},past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"}}},"second-short":{displayName:"Sek.",relative:{0:"jetzt"},relativeTime:{future:{one:"in {0} Sek.",other:"in {0} Sek."},past:{one:"vor {0} Sek.",other:"vor {0} Sek."}}}}}),nn({locale:"de-DE",parentLocale:"de"}),nn({locale:"ja",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"翌年","-1":"昨年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},"year-short":{displayName:"年",relative:{0:"今年",1:"翌年","-1":"昨年"},relativeTime:{future:{other:"{0} 年後"},past:{other:"{0} 年前"}}},month:{displayName:"月",relative:{0:"今月",1:"翌月","-1":"先月"},relativeTime:{future:{other:"{0} か月後"},past:{other:"{0} か月前"}}},"month-short":{displayName:"月",relative:{0:"今月",1:"翌月","-1":"先月"},relativeTime:{future:{other:"{0} か月後"},past:{other:"{0} か月前"}}},day:{displayName:"日",relative:{0:"今日",1:"明日",2:"明後日","-2":"一昨日","-1":"昨日"},relativeTime:{future:{other:"{0} 日後"},past:{other:"{0} 日前"}}},"day-short":{displayName:"日",relative:{0:"今日",1:"明日",2:"明後日","-2":"一昨日","-1":"昨日"},relativeTime:{future:{other:"{0} 日後"},past:{other:"{0} 日前"}}},hour:{displayName:"時",relative:{0:"1 時間以内"},relativeTime:{future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}}},"hour-short":{displayName:"時",relative:{0:"1 時間以内"},relativeTime:{future:{other:"{0} 時間後"},past:{other:"{0} 時間前"}}},minute:{displayName:"分",relative:{0:"1 分以内"},relativeTime:{future:{other:"{0} 分後"},past:{other:"{0} 分前"}}},"minute-short":{displayName:"分",relative:{0:"1 分以内"},relativeTime:{future:{other:"{0} 分後"},past:{other:"{0} 分前"}}},second:{displayName:"秒",relative:{0:"今"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}},"second-short":{displayName:"秒",relative:{0:"今"},relativeTime:{future:{other:"{0} 秒後"},past:{other:"{0} 秒前"}}}}}),nn({locale:"ja-JP",parentLocale:"ja"}),nn({locale:"ko",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"년",relative:{0:"올해",1:"내년","-1":"작년"},relativeTime:{future:{other:"{0}년 후"},past:{other:"{0}년 전"}}},"year-short":{displayName:"년",relative:{0:"올해",1:"내년","-1":"작년"},relativeTime:{future:{other:"{0}년 후"},past:{other:"{0}년 전"}}},month:{displayName:"월",relative:{0:"이번 달",1:"다음 달","-1":"지난달"},relativeTime:{future:{other:"{0}개월 후"},past:{other:"{0}개월 전"}}},"month-short":{displayName:"월",relative:{0:"이번 달",1:"다음 달","-1":"지난달"},relativeTime:{future:{other:"{0}개월 후"},past:{other:"{0}개월 전"}}},day:{displayName:"일",relative:{0:"오늘",1:"내일",2:"모레","-2":"그저께","-1":"어제"},relativeTime:{future:{other:"{0}일 후"},past:{other:"{0}일 전"}}},"day-short":{displayName:"일",relative:{0:"오늘",1:"내일",2:"모레","-2":"그저께","-1":"어제"},relativeTime:{future:{other:"{0}일 후"},past:{other:"{0}일 전"}}},hour:{displayName:"시",relative:{0:"현재 시간"},relativeTime:{future:{other:"{0}시간 후"},past:{other:"{0}시간 전"}}},"hour-short":{displayName:"시",relative:{0:"현재 시간"},relativeTime:{future:{other:"{0}시간 후"},past:{other:"{0}시간 전"}}},minute:{displayName:"분",relative:{0:"현재 분"},relativeTime:{future:{other:"{0}분 후"},past:{other:"{0}분 전"}}},"minute-short":{displayName:"분",relative:{0:"현재 분"},relativeTime:{future:{other:"{0}분 후"},past:{other:"{0}분 전"}}},second:{displayName:"초",relative:{0:"지금"},relativeTime:{future:{other:"{0}초 후"},past:{other:"{0}초 전"}}},"second-short":{displayName:"초",relative:{0:"지금"},relativeTime:{future:{other:"{0}초 후"},past:{other:"{0}초 전"}}}}}),nn({locale:"ko-KR",parentLocale:"ko"}),nn({locale:"pt",pluralRuleFunction:function(e,t){return t?"other":1==e?"one":"other"},fields:{year:{displayName:"ano",relative:{0:"este ano",1:"próximo ano","-1":"ano passado"},relativeTime:{future:{one:"em {0} ano",other:"em {0} anos"},past:{one:"há {0} ano",other:"há {0} anos"}}},"year-short":{displayName:"a",relative:{0:"este ano",1:"próximo ano","-1":"último ano"},relativeTime:{future:{one:"em {0} ano",other:"em {0} anos"},past:{one:"há {0} ano",other:"há {0} anos"}}},month:{displayName:"mês",relative:{0:"este mês",1:"próximo mês","-1":"mês passado"},relativeTime:{future:{one:"em {0} mês",other:"em {0} meses"},past:{one:"há {0} mês",other:"há {0} meses"}}},"month-short":{displayName:"m",relative:{0:"este mês",1:"próximo mês","-1":"último mês"},relativeTime:{future:{one:"em {0} mês",other:"em {0} meses"},past:{one:"há {0} mês",other:"há {0} meses"}}},day:{displayName:"dia",relative:{0:"hoje",1:"amanhã","-1":"ontem"},relativeTime:{future:{one:"em {0} dia",other:"em {0} dias"},past:{one:"há {0} dia",other:"há {0} dias"}}},"day-short":{displayName:"d",relative:{0:"hoje",1:"amanhã","-1":"ontem"},relativeTime:{future:{one:"em {0} dia",other:"em {0} dias"},past:{one:"há {0} dia",other:"há {0} dias"}}},hour:{displayName:"hora",relative:{0:"nesta hora"},relativeTime:{future:{one:"em {0} hora",other:"em {0} horas"},past:{one:"há {0} hora",other:"há {0} horas"}}},"hour-short":{displayName:"h",relative:{0:"nesta hora"},relativeTime:{future:{one:"em {0} h",other:"em {0} h"},past:{one:"há {0} h",other:"há {0} h"}}},minute:{displayName:"minuto",relative:{0:"neste minuto"},relativeTime:{future:{one:"em {0} minuto",other:"em {0} minutos"},past:{one:"há {0} minuto",other:"há {0} minutos"}}},"minute-short":{displayName:"min",relative:{0:"neste minuto"},relativeTime:{future:{one:"em {0} min",other:"em {0} min"},past:{one:"há {0} min",other:"há {0} min"}}},second:{displayName:"segundo",relative:{0:"agora"},relativeTime:{future:{one:"em {0} segundo",other:"em {0} segundos"},past:{one:"há {0} segundo",other:"há {0} segundos"}}},"second-short":{displayName:"s",relative:{0:"agora"},relativeTime:{future:{one:"em {0} s",other:"em {0} s"},past:{one:"há {0} s",other:"há {0} s"}}}}}),nn({locale:"pt-BR",parentLocale:"pt"}),nn({locale:"zh",pluralRuleFunction:function(e,t){return"other"},fields:{year:{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},"year-short":{displayName:"年",relative:{0:"今年",1:"明年","-1":"去年"},relativeTime:{future:{other:"{0}年后"},past:{other:"{0}年前"}}},month:{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},"month-short":{displayName:"月",relative:{0:"本月",1:"下个月","-1":"上个月"},relativeTime:{future:{other:"{0}个月后"},past:{other:"{0}个月前"}}},day:{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-2":"前天","-1":"昨天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},"day-short":{displayName:"日",relative:{0:"今天",1:"明天",2:"后天","-2":"前天","-1":"昨天"},relativeTime:{future:{other:"{0}天后"},past:{other:"{0}天前"}}},hour:{displayName:"小时",relative:{0:"这一时间 / 此时"},relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},"hour-short":{displayName:"小时",relative:{0:"这一时间 / 此时"},relativeTime:{future:{other:"{0}小时后"},past:{other:"{0}小时前"}}},minute:{displayName:"分钟",relative:{0:"此刻"},relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},"minute-short":{displayName:"分",relative:{0:"此刻"},relativeTime:{future:{other:"{0}分钟后"},past:{other:"{0}分钟前"}}},second:{displayName:"秒",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒钟后"},past:{other:"{0}秒钟前"}}},"second-short":{displayName:"秒",relative:{0:"现在"},relativeTime:{future:{other:"{0}秒后"},past:{other:"{0}秒前"}}}}}),nn({locale:"zh-CN",parentLocale:"zh"});const on={},an=Vt()(Gt.a);let rn="en",ln="en",sn=Ht;function dn(e){return e.toLowerCase()}function cn(e,t=e.locale){if(!t||!Zt(t))throw new Error("[I18n] A `locale` must be a non-empty string to add messages.");if(e.locale&&e.locale!==t)throw new Error("[I18n] A `locale` in the translation object is different from the one provided as a second argument.");const n=dn(t),i=on[n]||{messages:{}};on[n]={formats:e.formats||i.formats,locale:e.locale||i.locale,messages:{...i.messages,...e.messages}}}function un(){return on[ln]||{messages:{}}}function mn(e){if(!e||!Zt(e))throw new Error("[I18n] A `locale` must be a non-empty string.");ln=dn(e)}function hn(){return ln}function pn(e){if(!e||!Zt(e))throw new Error("[I18n] A `locale` must be a non-empty string.");rn=dn(e),Gt.a.defaultLocale=rn,Kt.a.defaultLocale=rn}function Tn(){return rn}function bn(e){if(!(Xt(e)&&(t=e,Object.keys(t).length>0)))throw new Error("[I18n] A `formats` must be a non-empty object.");var t;sn=((...e)=>e.filter(Xt).reduce((e,t)=>Jt(e,t)))(sn,e)}function gn(){return sn}function xn(){return Object.keys(on)}function fn(e,{values:t={},defaultMessage:n}){const i=Qt(ln);if(!e||!Zt(e))throw new Error("[I18n] An `id` must be a non-empty string to translate a message.");const o=i?n:function(e){const t=un();return t.messages?t.messages[e]:void 0}(e);if(!o&&!n)throw new Error(`[I18n] Cannot format message: "${e}". Default message must be provided.`);if(o)try{const e=an(o,hn(),gn()).format(t);return i?en(e):e}catch(t){throw new Error(`[I18n] Error formatting message: "${e}" for locale: "${hn()}".\n${t}`)}try{return an(n,Tn(),gn()).format(t)}catch(t){throw new Error(`[I18n] Error formatting the default message for: "${e}".\n${t}`)}}function kn(e){e&&(cn(e),e.locale&&mn(e.locale),e.formats&&bn(e.formats))}async function Sn(e){const t=await fetch(e,{credentials:"same-origin"});if(t.status>=300)throw new Error("Translations request failed with status code: "+t.status);kn(await t.json())}Gt.a.defaultLocale=rn,Kt.a.defaultLocale=rn;const yn=i;var Cn=n(70),En=n.t(Cn,2),An=n(71),On=n.t(An,2),_n=n(72),In=n.t(_n,2),Ln=n(73),Nn=n.t(Ln,2),Rn=n(74),vn=n.t(Rn,2),Dn=n(75),Mn=n.t(Dn,2),Pn=n(76),Fn=n.t(Pn,2),Bn=n(77),Un=n.t(Bn,2),wn=n(78),qn=n.t(wn,2),jn=n(79);const Hn={default:"",brackets:[["{","}","delimiter.curly"],["[","]","delimiter.square"],["(",")","delimiter.parenthesis"]],keywords:["if","in","else","while","do","for","continue","break","return","new","try","catch","throw","this","instanceof"],primitives:["void","boolean","byte","short","char","int","long","float","double","def"],constants:["true","false"],operators:["=",">","<","!","~","?","?:","?.",":","==","===","<=",">=","!=","!==","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>=","->","::","=~","==~"],symbols:/[=>{const i=e.map(e=>{const{properties:t,constructorDefinition:n,...i}=e;return i}),o=[...Hn.keywords.map(e=>({label:e,kind:"keyword",documentation:"Keyword: "+e,insertText:e})),{label:"params",kind:"keyword",documentation:yn.translate("monaco.painlessLanguage.autocomplete.paramsKeywordDescription",{defaultMessage:"Access variables passed into the script."}),insertText:"params"}],a=Hn.primitives.map(e=>({label:e,kind:"type",documentation:"Type: "+e,insertText:e}));let r=t?[...o,{label:"doc",kind:"keyword",documentation:yn.translate("monaco.painlessLanguage.autocomplete.docKeywordDescription",{defaultMessage:"Access a field value from a script using the doc['field_name'] syntax"}),insertText:"doc[${1:'my_field'}]",insertTextAsSnippet:!0}]:o;return r=n?[...r,{label:"emit",kind:"keyword",documentation:yn.translate("monaco.painlessLanguage.autocomplete.emitKeywordDescription",{defaultMessage:"Emit value without returning."}),insertText:"emit"}]:r,{isIncomplete:!1,suggestions:[...i,...r,...a]}},Gn=(e,t,n)=>{const i=Vn[e].suggestions,o="painless_test"===e?i:i.concat(Nn.suggestions),a=t[t.length-1],r=Yn.includes(e),l=null==n?void 0:n.filter(e=>"text"!==e.type),s=Boolean(null==l?void 0:l.length);let d={isIncomplete:!1,suggestions:[]};if("new"===(c=t)[c.length-2])d=(e=>{let t=[];const n=e.filter(e=>e.constructorDefinition);return n&&(t=n.map(e=>e.constructorDefinition)),{isIncomplete:!1,suggestions:t}})(o);else if(l&&(e=>{const t=e.indexOf("doc['"),n=t+("doc['".length-1);return-1!==t&&e.length-1===n})(a))d=(e=>({isIncomplete:!1,suggestions:e.map(({name:e})=>({label:e,kind:"field",documentation:yn.translate("monaco.painlessLanguage.autocomplete.fieldValueDescription",{defaultMessage:"Retrieve the value for field '{fieldName}'",values:{fieldName:e}}),insertText:e+"'"}))}))(l);else if((e=>{const t=e.split(".");if(2!==t.length)return!1;return!1===t[1].includes("(")})(a)){d=((e,t)=>{const n=e.find(e=>e.label===t);return{isIncomplete:!1,suggestions:(null==n?void 0:n.properties)||[]}})(o,a.substring(0,a.length-1).split(".")[0])}else((e,t,n)=>{const i=e.split(".");return!1===((e,t)=>2===e.length&&t.includes(e[0]))(t,n)&&!1===(e=>{if(4===e.length){const t=e[0],n=e[2];return"boolean"===t&&"="===n}return!1})(t)&&!1===(e=>{const t=["'",'"'],n=e.split(""),i=n[0],o=n[n.length-1];return t.includes(i)||t.includes(o)})(e)&&1===i.length})(a,t,Hn.primitives)&&(d=zn({suggestions:o,hasFields:s,isRuntimeContext:r}));var c;return d};var Wn=n(67),Kn=n(7),Zn=n(34),Xn=n(8),Jn=n(10),$n=n(32),Qn=n(2),ei=n(33),ti=n(3),ni=n(4),ii=n(17),oi=n(12);class ai extends $n.Parser{get vocabulary(){return ai.VOCABULARY}get grammarFileName(){return"painless_parser.g4"}get ruleNames(){return ai.ruleNames}get serializedATN(){return ai._serializedATN}constructor(e){super(e),this._interp=new ei.ParserATNSimulator(ai._ATN,this)}source(){let e,t=new ri(this._ctx,this.state);this.enterRule(t,0,ai.RULE_source);try{let n;for(this.enterOuterAlt(t,1),this.state=81,this._errHandler.sync(this),n=this.interpreter.adaptivePredict(this._input,0,this._ctx);2!==n&&n!==Kn.ATN.INVALID_ALT_NUMBER;)1===n&&(this.state=78,this.function()),this.state=83,this._errHandler.sync(this),n=this.interpreter.adaptivePredict(this._input,0,this._ctx);for(this.state=87,this._errHandler.sync(this),e=this._input.LA(1);0==(e-5&-32)&&0!=(1<>'","'>>>'","'<'","'<='","'>'","'>='","'=='","'==='","'!='","'!=='","'&'","'^'","'|'","'&&'","'||'","'?'","':'","'?:'","'::'","'->'","'=~'","'==~'","'++'","'--'","'='","'+='","'-='","'*='","'/='","'%='","'&='","'^='","'|='","'<<='","'>>='","'>>>='",void 0,void 0,void 0,void 0,void 0,void 0,"'true'","'false'","'null'",void 0,"'def'"]),jt()(ai,"_SYMBOLIC_NAMES",[void 0,"WS","COMMENT","LBRACK","RBRACK","LBRACE","RBRACE","LP","RP","DOLLAR","DOT","NSDOT","COMMA","SEMICOLON","IF","IN","ELSE","WHILE","DO","FOR","CONTINUE","BREAK","RETURN","NEW","TRY","CATCH","THROW","THIS","INSTANCEOF","BOOLNOT","BWNOT","MUL","DIV","REM","ADD","SUB","LSH","RSH","USH","LT","LTE","GT","GTE","EQ","EQR","NE","NER","BWAND","XOR","BWOR","BOOLAND","BOOLOR","COND","COLON","ELVIS","REF","ARROW","FIND","MATCH","INCR","DECR","ASSIGN","AADD","ASUB","AMUL","ADIV","AREM","AAND","AXOR","AOR","ALSH","ARSH","AUSH","OCTAL","HEX","INTEGER","DECIMAL","STRING","REGEX","TRUE","FALSE","NULL","PRIMITIVE","DEF","ID","DOTINTEGER","DOTID"]),jt()(ai,"VOCABULARY",new ii.VocabularyImpl(ai._LITERAL_NAMES,ai._SYMBOLIC_NAMES,[])),jt()(ai,"_serializedATNSegments",2),jt()(ai,"_serializedATNSegment0",'줝쪺֍꾺体؇쉁XȾ\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!"\t"#\t#$\t$%\t%&\t&\'\t\'(\t(R\n\fU\vX\n\f[\vk\n\fn\vp\nx\n‚\nŠ\n\n“\n—\nœ\n²\n\r³¶\nÄ\nÉ\n\b\b\bÍ\n\b\t\t\tÑ\n\t\f\t\tÔ\v\t\t\t×\n\t\t\t\n\n\v\v\vß\n\v\f\f\r\r\r\r\rç\n\r\f\r\rê\v\rï\n\fò\vù\n\fü\vþ\nă\nĶ\n\fĹ\vņ\nō\nŖ\nŢ\nũ\n\rŪŰ\n\rűŷ\n\fź\vž\n\fƁ\vƃ\nƇ\n\fƊ\vƍ\nƢ\nƧ\nƫ\n       ƾ\n \r  ƿ   DŽ\n \f  LJ\v  lj\n          Ǔ\n \f  ǖ\v  ǘ\n    ǜ\n \f  ǟ\v  ǡ\n !!!!!ǧ\n!\f!!Ǫ\v!!!!!!ǰ\n!"""""Ƕ\n"\f""ǹ\v"""""""Ȁ\n"####$$$$$Ȋ\n$\f$$ȍ\v$$ȏ\n$$$%%%%Ȗ\n%&&&&&&ȝ\n&\f&&Ƞ\v&&Ȣ\n&&&ȥ\n&&&&&Ȫ\n&\'\'ȭ\n\'\'\'((((((((((((ȼ\n((")\b\n\f "$&(*,.02468:<>@BDFHJLN!#$%;<&(),-0?J=> TUKN\v\vVV\f\rWXɹS^c\bw\nµ\fÈÌÎÚÞàâëýÿ Ą"ċ$Ņ&Ō(ŕ*š,ţ.Ƃ0ƌ2ơ4Ʀ6ƪ8Ƭ:ư<Ƴ>Ǡ@ǯBǿDȁFȅHȕJȤLȬNȻPRQPRUSQSTTYUSVX\bWVX[YWYZZ\\[Y\\]]^__`V`aab\tbco\tdeelVfgghhiVikjfknljlmmpnlodoppqqr\nrsx\ntu\fuv\tvxwswtx\tyzz{\t{|$|}\n}\b~‚\b€‚~€‚¶ƒ„„…\t…†$†‰\n‡Š\bˆŠ\n‰‡‰ˆж‹ŒŒŽ\t\vŽŽ’‘“$’‘’““””–•—\f–•–——˜˜›\n™œ\bšœ\n›™›šœ¶žžŸ\tŸ  ¡V¡¢7¢£$£¤\n¤¥\b¥¶¦§§¨\t¨©V©ªª«$«¬\n¬­\b­¶®¯¯±\t°² ±°²³³±³´´¶µyµƒµ‹µµ¦µ®¶\v·¸¸¹\t¹ºº»\t»¼$¼½\n½É¾É\r¿ÉÀÉÁÃÂÄ$ÃÂÃÄÄÉÅÆÆÉ$ÇÉ$È·ȾÈ¿ÈÀÈÁÈÅÈÇÉ\rÊÍ\tËÍ\bÌÊÌËÍÎÒÏÑ\bÐÏÑÔÒÐÒÓÓÖÔÒÕ×\fÖÕÖ×רØÙÙÚÛÛÜß\rÝß$ÞÜÞÝßàá$áâããèäååçæäçêèæèééêèëðìííï\bîìïòðîðññòðóþUôþTõúVö÷\f÷ùXøöùüúøúûûþüúýóýôýõþÿĂVĀā?āă$ĂĀĂă㥹ąĆ\tĆććĈVĈĉ\nĉĊ\tĊ!ċČ\bČč&čķĎď\fďĐ\tĐĶ"đĒ\fĒē\tēĶ"Ĕĕ\f\rĕĖ\tĖĶ"ėĘ\f\fĘę\tęĶ"\rĚě\f\věĜ\tĜĶ"\fĝĞ\f\tĞğ\t\bğĶ"\nĠġ\f\bġĢ1ĢĶ"\tģĤ\fĤĥ2ĥĶ"\bĦħ\fħĨ3ĨĶ"ĩĪ\fĪī4īĶ"Ĭĭ\fĭĮ5ĮĶ"įİ\fİı8ıĶ"IJij\f\nijĴĴĶĵĎĵđĵĔĵėĵĚĵĝĵĠĵģĵĦĵĩĵĬĵįĵIJĶĹķĵķĸĸ#Ĺķĺņ"Ļļ"ļĽ6Ľľ$ľĿ7Ŀŀ$ŀņŁł"łŃ\t\tŃń$ńņŅĺŅĻŅŁņ%Ňň\t\nňō0ʼnŊ\tŊō&ŋō(ŌŇŌʼnŌŋō\'ŎŖ0ŏŐ0Őő\t\nőŖŒœ\t\vœŖ&ŔŖ*ŕŎŕŏŕŒŕŔŖ)ŗŘ\tŘř,řŚ\nŚś&śŢŜŝ\tŝŞ.Şş\nşŠ(ŠŢšŗšŜŢ+ţŤ\t\fŤ-ťŨUŦŧŧũ\bŨŦũŪŪŨŪūūƃŬůTŭŮŮŰ\bůŭŰűűůűŲŲƃųŸVŴŵ\fŵŷXŶŴŷźŸŶŸŹŹſźŸŻżżž\bŽŻžƁſŽſƀƀƃƁſƂťƂŬƂųƃ/Ƅƈ2ƅƇ4ƆƅƇƊƈƆƈƉƉƍƊƈƋƍ> ƌƄƌƋƍ1ƎƏ\tƏƐ$ƐƑ\nƑƢƒƢ\t\rƓƢQƔƢRƕƢSƖƢOƗƢPƘƢ@!ƙƢB"ƚƢVƛƜ\tƜƢF$ƝƞƞƟƟƠF$ƠƢơƎơƒơƓơƔơƕơƖơƗơƘơƙơƚơƛơƝƢ3ƣƧ8ƤƧ:ƥƧ<ƦƣƦƤƦƥƧ5ƨƫ8Ʃƫ:ƪƨƪƩƫ7Ƭƭ\tƭƮXƮƯF$Ư9ưƱ\tƱƲ\tƲ;ƳƴƴƵ$Ƶƶ\bƶ=ƷƸƸƽƹƺƺƻ$ƻƼ\bƼƾƽƹƾƿƿƽƿǀǀLjǁDž6ǂDŽ4ǃǂDŽLJDžǃDždždžljLJDžLjǁLjljljǡNJNjNjnjnjǍǍǎ\bǎǗǏǔ$ǐǑǑǓ$ǒǐǓǖǔǒǔǕǕǘǖǔǗǏǗǘǘǙǙǝǚǜ4ǛǚǜǟǝǛǝǞǞǡǟǝǠƷǠNJǡ?ǢǣǣǨ$Ǥǥǥǧ$ǦǤǧǪǨǦǨǩǩǫǪǨǫǬ\bǬǰǭǮǮǰ\bǯǢǯǭǰADZDzDzǷD#dzǴǴǶD#ǵdzǶǹǷǵǷǸǸǺǹǷǺǻ\bǻȀǼǽǽǾ7ǾȀ\bǿDZǿǼȀCȁȂ$Ȃȃ7ȃȄ$ȄEȅȎ\tȆȋH%ȇȈȈȊH%ȉȇȊȍȋȉȋȌȌȏȍȋȎȆȎȏȏȐȐȑ\nȑGȒȖ$ȓȖJ&ȔȖN(ȕȒȕȓȕȔȖIȗȥL\'Șȡ\tșȞL\'ȚțțȝL\'ȜȚȝȠȞȜȞȟȟȢȠȞȡșȡȢȢȣȣȥ\nȤȗȤȘ'),jt()(ai,"_serializedATNSegment1","ȥȦȦȩ:ȧȪ\tȨȪ$ȩȧȩȨȪKȫȭȬȫȬȭȭȮȮȯVȯMȰȱȱȲ9ȲȳVȳȼȴȵȵȶ9ȶȷȷȼȸȹȹȺ9ȺȼVȻȰȻȴȻȸȼO>SYlow‰Ž’–›³µÃÈÌÒÖÞèðúýĂĵķŅŌŕšŪűŸſƂƈƌơƦƪƿDžLjǔǗǝǠǨǯǷǿȋȎȕȞȡȤȩȬȻ"),jt()(ai,"_serializedATN",oi.join([ai._serializedATNSegment0,ai._serializedATNSegment1],"")),jt()(ai,"__ATN",void 0);class ri extends Qn.ParserRuleContext{EOF(){return this.getToken(ai.EOF,0)}function(e){return void 0===e?this.getRuleContexts(li):this.getRuleContext(e,li)}statement(e){return void 0===e?this.getRuleContexts(di):this.getRuleContext(e,di)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_source}enterRule(e){e.enterSource&&e.enterSource(this)}exitRule(e){e.exitSource&&e.exitSource(this)}}class li extends Qn.ParserRuleContext{decltype(){return this.getRuleContext(0,Ri)}ID(){return this.getToken(ai.ID,0)}parameters(){return this.getRuleContext(0,si)}block(){return this.getRuleContext(0,Oi)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_function}enterRule(e){e.enterFunction&&e.enterFunction(this)}exitRule(e){e.exitFunction&&e.exitFunction(this)}}class si extends Qn.ParserRuleContext{LP(){return this.getToken(ai.LP,0)}RP(){return this.getToken(ai.RP,0)}decltype(e){return void 0===e?this.getRuleContexts(Ri):this.getRuleContext(e,Ri)}ID(e){return void 0===e?this.getTokens(ai.ID):this.getToken(ai.ID,e)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_parameters}enterRule(e){e.enterParameters&&e.enterParameters(this)}exitRule(e){e.exitParameters&&e.exitParameters(this)}}class di extends Qn.ParserRuleContext{rstatement(){return this.tryGetRuleContext(0,ci)}dstatement(){return this.tryGetRuleContext(0,gi)}SEMICOLON(){return this.tryGetToken(ai.SEMICOLON,0)}EOF(){return this.tryGetToken(ai.EOF,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_statement}enterRule(e){e.enterStatement&&e.enterStatement(this)}exitRule(e){e.exitStatement&&e.exitStatement(this)}}class ci extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_rstatement}copyFrom(e){super.copyFrom(e)}}class ui extends ci{IF(){return this.getToken(ai.IF,0)}LP(){return this.getToken(ai.LP,0)}expression(){return this.getRuleContext(0,Hi)}RP(){return this.getToken(ai.RP,0)}trailer(e){return void 0===e?this.getRuleContexts(Ai):this.getRuleContext(e,Ai)}ELSE(){return this.tryGetToken(ai.ELSE,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterIf&&e.enterIf(this)}exitRule(e){e.exitIf&&e.exitIf(this)}}class mi extends ci{WHILE(){return this.getToken(ai.WHILE,0)}LP(){return this.getToken(ai.LP,0)}expression(){return this.getRuleContext(0,Hi)}RP(){return this.getToken(ai.RP,0)}trailer(){return this.tryGetRuleContext(0,Ai)}empty(){return this.tryGetRuleContext(0,_i)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterWhile&&e.enterWhile(this)}exitRule(e){e.exitWhile&&e.exitWhile(this)}}class hi extends ci{FOR(){return this.getToken(ai.FOR,0)}LP(){return this.getToken(ai.LP,0)}SEMICOLON(e){return void 0===e?this.getTokens(ai.SEMICOLON):this.getToken(ai.SEMICOLON,e)}RP(){return this.getToken(ai.RP,0)}trailer(){return this.tryGetRuleContext(0,Ai)}empty(){return this.tryGetRuleContext(0,_i)}initializer(){return this.tryGetRuleContext(0,Ii)}expression(){return this.tryGetRuleContext(0,Hi)}afterthought(){return this.tryGetRuleContext(0,Li)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterFor&&e.enterFor(this)}exitRule(e){e.exitFor&&e.exitFor(this)}}class pi extends ci{FOR(){return this.getToken(ai.FOR,0)}LP(){return this.getToken(ai.LP,0)}decltype(){return this.getRuleContext(0,Ri)}ID(){return this.getToken(ai.ID,0)}COLON(){return this.getToken(ai.COLON,0)}expression(){return this.getRuleContext(0,Hi)}RP(){return this.getToken(ai.RP,0)}trailer(){return this.getRuleContext(0,Ai)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterEach&&e.enterEach(this)}exitRule(e){e.exitEach&&e.exitEach(this)}}class Ti extends ci{FOR(){return this.getToken(ai.FOR,0)}LP(){return this.getToken(ai.LP,0)}ID(){return this.getToken(ai.ID,0)}IN(){return this.getToken(ai.IN,0)}expression(){return this.getRuleContext(0,Hi)}RP(){return this.getToken(ai.RP,0)}trailer(){return this.getRuleContext(0,Ai)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterIneach&&e.enterIneach(this)}exitRule(e){e.exitIneach&&e.exitIneach(this)}}class bi extends ci{TRY(){return this.getToken(ai.TRY,0)}block(){return this.getRuleContext(0,Oi)}trap(e){return void 0===e?this.getRuleContexts(Mi):this.getRuleContext(e,Mi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterTry&&e.enterTry(this)}exitRule(e){e.exitTry&&e.exitTry(this)}}class gi extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_dstatement}copyFrom(e){super.copyFrom(e)}}class xi extends gi{DO(){return this.getToken(ai.DO,0)}block(){return this.getRuleContext(0,Oi)}WHILE(){return this.getToken(ai.WHILE,0)}LP(){return this.getToken(ai.LP,0)}expression(){return this.getRuleContext(0,Hi)}RP(){return this.getToken(ai.RP,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterDo&&e.enterDo(this)}exitRule(e){e.exitDo&&e.exitDo(this)}}class fi extends gi{declaration(){return this.getRuleContext(0,Ni)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterDecl&&e.enterDecl(this)}exitRule(e){e.exitDecl&&e.exitDecl(this)}}class ki extends gi{CONTINUE(){return this.getToken(ai.CONTINUE,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterContinue&&e.enterContinue(this)}exitRule(e){e.exitContinue&&e.exitContinue(this)}}class Si extends gi{BREAK(){return this.getToken(ai.BREAK,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterBreak&&e.enterBreak(this)}exitRule(e){e.exitBreak&&e.exitBreak(this)}}class yi extends gi{RETURN(){return this.getToken(ai.RETURN,0)}expression(){return this.tryGetRuleContext(0,Hi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterReturn&&e.enterReturn(this)}exitRule(e){e.exitReturn&&e.exitReturn(this)}}class Ci extends gi{THROW(){return this.getToken(ai.THROW,0)}expression(){return this.getRuleContext(0,Hi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterThrow&&e.enterThrow(this)}exitRule(e){e.exitThrow&&e.exitThrow(this)}}class Ei extends gi{expression(){return this.getRuleContext(0,Hi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterExpr&&e.enterExpr(this)}exitRule(e){e.exitExpr&&e.exitExpr(this)}}class Ai extends Qn.ParserRuleContext{block(){return this.tryGetRuleContext(0,Oi)}statement(){return this.tryGetRuleContext(0,di)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_trailer}enterRule(e){e.enterTrailer&&e.enterTrailer(this)}exitRule(e){e.exitTrailer&&e.exitTrailer(this)}}class Oi extends Qn.ParserRuleContext{LBRACK(){return this.getToken(ai.LBRACK,0)}RBRACK(){return this.getToken(ai.RBRACK,0)}statement(e){return void 0===e?this.getRuleContexts(di):this.getRuleContext(e,di)}dstatement(){return this.tryGetRuleContext(0,gi)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_block}enterRule(e){e.enterBlock&&e.enterBlock(this)}exitRule(e){e.exitBlock&&e.exitBlock(this)}}class _i extends Qn.ParserRuleContext{SEMICOLON(){return this.getToken(ai.SEMICOLON,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_empty}enterRule(e){e.enterEmpty&&e.enterEmpty(this)}exitRule(e){e.exitEmpty&&e.exitEmpty(this)}}class Ii extends Qn.ParserRuleContext{declaration(){return this.tryGetRuleContext(0,Ni)}expression(){return this.tryGetRuleContext(0,Hi)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_initializer}enterRule(e){e.enterInitializer&&e.enterInitializer(this)}exitRule(e){e.exitInitializer&&e.exitInitializer(this)}}class Li extends Qn.ParserRuleContext{expression(){return this.getRuleContext(0,Hi)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_afterthought}enterRule(e){e.enterAfterthought&&e.enterAfterthought(this)}exitRule(e){e.exitAfterthought&&e.exitAfterthought(this)}}class Ni extends Qn.ParserRuleContext{decltype(){return this.getRuleContext(0,Ri)}declvar(e){return void 0===e?this.getRuleContexts(Di):this.getRuleContext(e,Di)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_declaration}enterRule(e){e.enterDeclaration&&e.enterDeclaration(this)}exitRule(e){e.exitDeclaration&&e.exitDeclaration(this)}}class Ri extends Qn.ParserRuleContext{type(){return this.getRuleContext(0,vi)}LBRACE(e){return void 0===e?this.getTokens(ai.LBRACE):this.getToken(ai.LBRACE,e)}RBRACE(e){return void 0===e?this.getTokens(ai.RBRACE):this.getToken(ai.RBRACE,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_decltype}enterRule(e){e.enterDecltype&&e.enterDecltype(this)}exitRule(e){e.exitDecltype&&e.exitDecltype(this)}}class vi extends Qn.ParserRuleContext{DEF(){return this.tryGetToken(ai.DEF,0)}PRIMITIVE(){return this.tryGetToken(ai.PRIMITIVE,0)}ID(){return this.tryGetToken(ai.ID,0)}DOT(e){return void 0===e?this.getTokens(ai.DOT):this.getToken(ai.DOT,e)}DOTID(e){return void 0===e?this.getTokens(ai.DOTID):this.getToken(ai.DOTID,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_type}enterRule(e){e.enterType&&e.enterType(this)}exitRule(e){e.exitType&&e.exitType(this)}}class Di extends Qn.ParserRuleContext{ID(){return this.getToken(ai.ID,0)}ASSIGN(){return this.tryGetToken(ai.ASSIGN,0)}expression(){return this.tryGetRuleContext(0,Hi)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_declvar}enterRule(e){e.enterDeclvar&&e.enterDeclvar(this)}exitRule(e){e.exitDeclvar&&e.exitDeclvar(this)}}class Mi extends Qn.ParserRuleContext{CATCH(){return this.getToken(ai.CATCH,0)}LP(){return this.getToken(ai.LP,0)}type(){return this.getRuleContext(0,vi)}ID(){return this.getToken(ai.ID,0)}RP(){return this.getToken(ai.RP,0)}block(){return this.getRuleContext(0,Oi)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_trap}enterRule(e){e.enterTrap&&e.enterTrap(this)}exitRule(e){e.exitTrap&&e.exitTrap(this)}}class Pi extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_noncondexpression}copyFrom(e){super.copyFrom(e)}}class Fi extends Pi{unary(){return this.getRuleContext(0,Gi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterSingle&&e.enterSingle(this)}exitRule(e){e.exitSingle&&e.exitSingle(this)}}class Bi extends Pi{noncondexpression(e){return void 0===e?this.getRuleContexts(Pi):this.getRuleContext(e,Pi)}MUL(){return this.tryGetToken(ai.MUL,0)}DIV(){return this.tryGetToken(ai.DIV,0)}REM(){return this.tryGetToken(ai.REM,0)}ADD(){return this.tryGetToken(ai.ADD,0)}SUB(){return this.tryGetToken(ai.SUB,0)}FIND(){return this.tryGetToken(ai.FIND,0)}MATCH(){return this.tryGetToken(ai.MATCH,0)}LSH(){return this.tryGetToken(ai.LSH,0)}RSH(){return this.tryGetToken(ai.RSH,0)}USH(){return this.tryGetToken(ai.USH,0)}BWAND(){return this.tryGetToken(ai.BWAND,0)}XOR(){return this.tryGetToken(ai.XOR,0)}BWOR(){return this.tryGetToken(ai.BWOR,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterBinary&&e.enterBinary(this)}exitRule(e){e.exitBinary&&e.exitBinary(this)}}class Ui extends Pi{noncondexpression(e){return void 0===e?this.getRuleContexts(Pi):this.getRuleContext(e,Pi)}LT(){return this.tryGetToken(ai.LT,0)}LTE(){return this.tryGetToken(ai.LTE,0)}GT(){return this.tryGetToken(ai.GT,0)}GTE(){return this.tryGetToken(ai.GTE,0)}EQ(){return this.tryGetToken(ai.EQ,0)}EQR(){return this.tryGetToken(ai.EQR,0)}NE(){return this.tryGetToken(ai.NE,0)}NER(){return this.tryGetToken(ai.NER,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterComp&&e.enterComp(this)}exitRule(e){e.exitComp&&e.exitComp(this)}}class wi extends Pi{noncondexpression(){return this.getRuleContext(0,Pi)}INSTANCEOF(){return this.getToken(ai.INSTANCEOF,0)}decltype(){return this.getRuleContext(0,Ri)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterInstanceof&&e.enterInstanceof(this)}exitRule(e){e.exitInstanceof&&e.exitInstanceof(this)}}class qi extends Pi{noncondexpression(e){return void 0===e?this.getRuleContexts(Pi):this.getRuleContext(e,Pi)}BOOLAND(){return this.tryGetToken(ai.BOOLAND,0)}BOOLOR(){return this.tryGetToken(ai.BOOLOR,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterBool&&e.enterBool(this)}exitRule(e){e.exitBool&&e.exitBool(this)}}class ji extends Pi{noncondexpression(e){return void 0===e?this.getRuleContexts(Pi):this.getRuleContext(e,Pi)}ELVIS(){return this.getToken(ai.ELVIS,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterElvis&&e.enterElvis(this)}exitRule(e){e.exitElvis&&e.exitElvis(this)}}class Hi extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_expression}copyFrom(e){super.copyFrom(e)}}class Yi extends Hi{noncondexpression(){return this.getRuleContext(0,Pi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNonconditional&&e.enterNonconditional(this)}exitRule(e){e.exitNonconditional&&e.exitNonconditional(this)}}class Vi extends Hi{noncondexpression(){return this.getRuleContext(0,Pi)}COND(){return this.getToken(ai.COND,0)}expression(e){return void 0===e?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}COLON(){return this.getToken(ai.COLON,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterConditional&&e.enterConditional(this)}exitRule(e){e.exitConditional&&e.exitConditional(this)}}class zi extends Hi{noncondexpression(){return this.getRuleContext(0,Pi)}expression(){return this.getRuleContext(0,Hi)}ASSIGN(){return this.tryGetToken(ai.ASSIGN,0)}AADD(){return this.tryGetToken(ai.AADD,0)}ASUB(){return this.tryGetToken(ai.ASUB,0)}AMUL(){return this.tryGetToken(ai.AMUL,0)}ADIV(){return this.tryGetToken(ai.ADIV,0)}AREM(){return this.tryGetToken(ai.AREM,0)}AAND(){return this.tryGetToken(ai.AAND,0)}AXOR(){return this.tryGetToken(ai.AXOR,0)}AOR(){return this.tryGetToken(ai.AOR,0)}ALSH(){return this.tryGetToken(ai.ALSH,0)}ARSH(){return this.tryGetToken(ai.ARSH,0)}AUSH(){return this.tryGetToken(ai.AUSH,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterAssignment&&e.enterAssignment(this)}exitRule(e){e.exitAssignment&&e.exitAssignment(this)}}class Gi extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_unary}copyFrom(e){super.copyFrom(e)}}class Wi extends Gi{chain(){return this.getRuleContext(0,ro)}INCR(){return this.tryGetToken(ai.INCR,0)}DECR(){return this.tryGetToken(ai.DECR,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterPre&&e.enterPre(this)}exitRule(e){e.exitPre&&e.exitPre(this)}}class Ki extends Gi{unary(){return this.getRuleContext(0,Gi)}ADD(){return this.tryGetToken(ai.ADD,0)}SUB(){return this.tryGetToken(ai.SUB,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterAddsub&&e.enterAddsub(this)}exitRule(e){e.exitAddsub&&e.exitAddsub(this)}}class Zi extends Gi{unarynotaddsub(){return this.getRuleContext(0,Xi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNotaddsub&&e.enterNotaddsub(this)}exitRule(e){e.exitNotaddsub&&e.exitNotaddsub(this)}}class Xi extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_unarynotaddsub}copyFrom(e){super.copyFrom(e)}}class Ji extends Xi{chain(){return this.getRuleContext(0,ro)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterRead&&e.enterRead(this)}exitRule(e){e.exitRead&&e.exitRead(this)}}class $i extends Xi{chain(){return this.getRuleContext(0,ro)}INCR(){return this.tryGetToken(ai.INCR,0)}DECR(){return this.tryGetToken(ai.DECR,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterPost&&e.enterPost(this)}exitRule(e){e.exitPost&&e.exitPost(this)}}class Qi extends Xi{unary(){return this.getRuleContext(0,Gi)}BOOLNOT(){return this.tryGetToken(ai.BOOLNOT,0)}BWNOT(){return this.tryGetToken(ai.BWNOT,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNot&&e.enterNot(this)}exitRule(e){e.exitNot&&e.exitNot(this)}}class eo extends Xi{castexpression(){return this.getRuleContext(0,to)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterCast&&e.enterCast(this)}exitRule(e){e.exitCast&&e.exitCast(this)}}class to extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_castexpression}copyFrom(e){super.copyFrom(e)}}class no extends to{LP(){return this.getToken(ai.LP,0)}primordefcasttype(){return this.getRuleContext(0,oo)}RP(){return this.getToken(ai.RP,0)}unary(){return this.getRuleContext(0,Gi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterPrimordefcast&&e.enterPrimordefcast(this)}exitRule(e){e.exitPrimordefcast&&e.exitPrimordefcast(this)}}class io extends to{LP(){return this.getToken(ai.LP,0)}refcasttype(){return this.getRuleContext(0,ao)}RP(){return this.getToken(ai.RP,0)}unarynotaddsub(){return this.getRuleContext(0,Xi)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterRefcast&&e.enterRefcast(this)}exitRule(e){e.exitRefcast&&e.exitRefcast(this)}}class oo extends Qn.ParserRuleContext{DEF(){return this.tryGetToken(ai.DEF,0)}PRIMITIVE(){return this.tryGetToken(ai.PRIMITIVE,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_primordefcasttype}enterRule(e){e.enterPrimordefcasttype&&e.enterPrimordefcasttype(this)}exitRule(e){e.exitPrimordefcasttype&&e.exitPrimordefcasttype(this)}}class ao extends Qn.ParserRuleContext{DEF(){return this.tryGetToken(ai.DEF,0)}LBRACE(e){return void 0===e?this.getTokens(ai.LBRACE):this.getToken(ai.LBRACE,e)}RBRACE(e){return void 0===e?this.getTokens(ai.RBRACE):this.getToken(ai.RBRACE,e)}PRIMITIVE(){return this.tryGetToken(ai.PRIMITIVE,0)}ID(){return this.tryGetToken(ai.ID,0)}DOT(e){return void 0===e?this.getTokens(ai.DOT):this.getToken(ai.DOT,e)}DOTID(e){return void 0===e?this.getTokens(ai.DOTID):this.getToken(ai.DOTID,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_refcasttype}enterRule(e){e.enterRefcasttype&&e.enterRefcasttype(this)}exitRule(e){e.exitRefcasttype&&e.exitRefcasttype(this)}}class ro extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_chain}copyFrom(e){super.copyFrom(e)}}class lo extends ro{primary(){return this.getRuleContext(0,co)}postfix(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterDynamic&&e.enterDynamic(this)}exitRule(e){e.exitDynamic&&e.exitDynamic(this)}}class so extends ro{arrayinitializer(){return this.getRuleContext(0,Io)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNewarray&&e.enterNewarray(this)}exitRule(e){e.exitNewarray&&e.exitNewarray(this)}}class co extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_primary}copyFrom(e){super.copyFrom(e)}}class uo extends co{LP(){return this.getToken(ai.LP,0)}expression(){return this.getRuleContext(0,Hi)}RP(){return this.getToken(ai.RP,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterPrecedence&&e.enterPrecedence(this)}exitRule(e){e.exitPrecedence&&e.exitPrecedence(this)}}class mo extends co{OCTAL(){return this.tryGetToken(ai.OCTAL,0)}HEX(){return this.tryGetToken(ai.HEX,0)}INTEGER(){return this.tryGetToken(ai.INTEGER,0)}DECIMAL(){return this.tryGetToken(ai.DECIMAL,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNumeric&&e.enterNumeric(this)}exitRule(e){e.exitNumeric&&e.exitNumeric(this)}}class ho extends co{TRUE(){return this.getToken(ai.TRUE,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterTrue&&e.enterTrue(this)}exitRule(e){e.exitTrue&&e.exitTrue(this)}}class po extends co{FALSE(){return this.getToken(ai.FALSE,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterFalse&&e.enterFalse(this)}exitRule(e){e.exitFalse&&e.exitFalse(this)}}class To extends co{NULL(){return this.getToken(ai.NULL,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNull&&e.enterNull(this)}exitRule(e){e.exitNull&&e.exitNull(this)}}class bo extends co{STRING(){return this.getToken(ai.STRING,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterString&&e.enterString(this)}exitRule(e){e.exitString&&e.exitString(this)}}class go extends co{REGEX(){return this.getToken(ai.REGEX,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterRegex&&e.enterRegex(this)}exitRule(e){e.exitRegex&&e.exitRegex(this)}}class xo extends co{listinitializer(){return this.getRuleContext(0,Ro)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterListinit&&e.enterListinit(this)}exitRule(e){e.exitListinit&&e.exitListinit(this)}}class fo extends co{mapinitializer(){return this.getRuleContext(0,vo)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterMapinit&&e.enterMapinit(this)}exitRule(e){e.exitMapinit&&e.exitMapinit(this)}}class ko extends co{ID(){return this.getToken(ai.ID,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterVariable&&e.enterVariable(this)}exitRule(e){e.exitVariable&&e.exitVariable(this)}}class So extends co{arguments(){return this.getRuleContext(0,Mo)}ID(){return this.tryGetToken(ai.ID,0)}DOLLAR(){return this.tryGetToken(ai.DOLLAR,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterCalllocal&&e.enterCalllocal(this)}exitRule(e){e.exitCalllocal&&e.exitCalllocal(this)}}class yo extends co{NEW(){return this.getToken(ai.NEW,0)}type(){return this.getRuleContext(0,vi)}arguments(){return this.getRuleContext(0,Mo)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNewobject&&e.enterNewobject(this)}exitRule(e){e.exitNewobject&&e.exitNewobject(this)}}class Co extends Qn.ParserRuleContext{callinvoke(){return this.tryGetRuleContext(0,Ao)}fieldaccess(){return this.tryGetRuleContext(0,Oo)}braceaccess(){return this.tryGetRuleContext(0,_o)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_postfix}enterRule(e){e.enterPostfix&&e.enterPostfix(this)}exitRule(e){e.exitPostfix&&e.exitPostfix(this)}}class Eo extends Qn.ParserRuleContext{callinvoke(){return this.tryGetRuleContext(0,Ao)}fieldaccess(){return this.tryGetRuleContext(0,Oo)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_postdot}enterRule(e){e.enterPostdot&&e.enterPostdot(this)}exitRule(e){e.exitPostdot&&e.exitPostdot(this)}}class Ao extends Qn.ParserRuleContext{DOTID(){return this.getToken(ai.DOTID,0)}arguments(){return this.getRuleContext(0,Mo)}DOT(){return this.tryGetToken(ai.DOT,0)}NSDOT(){return this.tryGetToken(ai.NSDOT,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_callinvoke}enterRule(e){e.enterCallinvoke&&e.enterCallinvoke(this)}exitRule(e){e.exitCallinvoke&&e.exitCallinvoke(this)}}class Oo extends Qn.ParserRuleContext{DOT(){return this.tryGetToken(ai.DOT,0)}NSDOT(){return this.tryGetToken(ai.NSDOT,0)}DOTID(){return this.tryGetToken(ai.DOTID,0)}DOTINTEGER(){return this.tryGetToken(ai.DOTINTEGER,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_fieldaccess}enterRule(e){e.enterFieldaccess&&e.enterFieldaccess(this)}exitRule(e){e.exitFieldaccess&&e.exitFieldaccess(this)}}class _o extends Qn.ParserRuleContext{LBRACE(){return this.getToken(ai.LBRACE,0)}expression(){return this.getRuleContext(0,Hi)}RBRACE(){return this.getToken(ai.RBRACE,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_braceaccess}enterRule(e){e.enterBraceaccess&&e.enterBraceaccess(this)}exitRule(e){e.exitBraceaccess&&e.exitBraceaccess(this)}}class Io extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_arrayinitializer}copyFrom(e){super.copyFrom(e)}}class Lo extends Io{NEW(){return this.getToken(ai.NEW,0)}type(){return this.getRuleContext(0,vi)}LBRACE(e){return void 0===e?this.getTokens(ai.LBRACE):this.getToken(ai.LBRACE,e)}expression(e){return void 0===e?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}RBRACE(e){return void 0===e?this.getTokens(ai.RBRACE):this.getToken(ai.RBRACE,e)}postdot(){return this.tryGetRuleContext(0,Eo)}postfix(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNewstandardarray&&e.enterNewstandardarray(this)}exitRule(e){e.exitNewstandardarray&&e.exitNewstandardarray(this)}}class No extends Io{NEW(){return this.getToken(ai.NEW,0)}type(){return this.getRuleContext(0,vi)}LBRACE(){return this.getToken(ai.LBRACE,0)}RBRACE(){return this.getToken(ai.RBRACE,0)}LBRACK(){return this.getToken(ai.LBRACK,0)}RBRACK(){return this.getToken(ai.RBRACK,0)}expression(e){return void 0===e?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}postfix(e){return void 0===e?this.getRuleContexts(Co):this.getRuleContext(e,Co)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterNewinitializedarray&&e.enterNewinitializedarray(this)}exitRule(e){e.exitNewinitializedarray&&e.exitNewinitializedarray(this)}}class Ro extends Qn.ParserRuleContext{LBRACE(){return this.getToken(ai.LBRACE,0)}expression(e){return void 0===e?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}RBRACE(){return this.getToken(ai.RBRACE,0)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_listinitializer}enterRule(e){e.enterListinitializer&&e.enterListinitializer(this)}exitRule(e){e.exitListinitializer&&e.exitListinitializer(this)}}class vo extends Qn.ParserRuleContext{LBRACE(){return this.getToken(ai.LBRACE,0)}maptoken(e){return void 0===e?this.getRuleContexts(Do):this.getRuleContext(e,Do)}RBRACE(){return this.getToken(ai.RBRACE,0)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}COLON(){return this.tryGetToken(ai.COLON,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_mapinitializer}enterRule(e){e.enterMapinitializer&&e.enterMapinitializer(this)}exitRule(e){e.exitMapinitializer&&e.exitMapinitializer(this)}}class Do extends Qn.ParserRuleContext{expression(e){return void 0===e?this.getRuleContexts(Hi):this.getRuleContext(e,Hi)}COLON(){return this.getToken(ai.COLON,0)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_maptoken}enterRule(e){e.enterMaptoken&&e.enterMaptoken(this)}exitRule(e){e.exitMaptoken&&e.exitMaptoken(this)}}class Mo extends Qn.ParserRuleContext{LP(){return this.tryGetToken(ai.LP,0)}RP(){return this.tryGetToken(ai.RP,0)}argument(e){return void 0===e?this.getRuleContexts(Po):this.getRuleContext(e,Po)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_arguments}enterRule(e){e.enterArguments&&e.enterArguments(this)}exitRule(e){e.exitArguments&&e.exitArguments(this)}}class Po extends Qn.ParserRuleContext{expression(){return this.tryGetRuleContext(0,Hi)}lambda(){return this.tryGetRuleContext(0,Fo)}funcref(){return this.tryGetRuleContext(0,Uo)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_argument}enterRule(e){e.enterArgument&&e.enterArgument(this)}exitRule(e){e.exitArgument&&e.exitArgument(this)}}class Fo extends Qn.ParserRuleContext{ARROW(){return this.getToken(ai.ARROW,0)}lamtype(e){return void 0===e?this.getRuleContexts(Bo):this.getRuleContext(e,Bo)}LP(){return this.tryGetToken(ai.LP,0)}RP(){return this.tryGetToken(ai.RP,0)}block(){return this.tryGetRuleContext(0,Oi)}expression(){return this.tryGetRuleContext(0,Hi)}COMMA(e){return void 0===e?this.getTokens(ai.COMMA):this.getToken(ai.COMMA,e)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_lambda}enterRule(e){e.enterLambda&&e.enterLambda(this)}exitRule(e){e.exitLambda&&e.exitLambda(this)}}class Bo extends Qn.ParserRuleContext{ID(){return this.getToken(ai.ID,0)}decltype(){return this.tryGetRuleContext(0,Ri)}constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_lamtype}enterRule(e){e.enterLamtype&&e.enterLamtype(this)}exitRule(e){e.exitLamtype&&e.exitLamtype(this)}}class Uo extends Qn.ParserRuleContext{constructor(e,t){super(e,t)}get ruleIndex(){return ai.RULE_funcref}copyFrom(e){super.copyFrom(e)}}class wo extends Uo{decltype(){return this.getRuleContext(0,Ri)}REF(){return this.getToken(ai.REF,0)}ID(){return this.getToken(ai.ID,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterClassfuncref&&e.enterClassfuncref(this)}exitRule(e){e.exitClassfuncref&&e.exitClassfuncref(this)}}class qo extends Uo{decltype(){return this.getRuleContext(0,Ri)}REF(){return this.getToken(ai.REF,0)}NEW(){return this.getToken(ai.NEW,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterConstructorfuncref&&e.enterConstructorfuncref(this)}exitRule(e){e.exitConstructorfuncref&&e.exitConstructorfuncref(this)}}class jo extends Uo{THIS(){return this.getToken(ai.THIS,0)}REF(){return this.getToken(ai.REF,0)}ID(){return this.getToken(ai.ID,0)}constructor(e){super(e.parent,e.invokingState),this.copyFrom(e)}enterRule(e){e.enterLocalfuncref&&e.enterLocalfuncref(this)}exitRule(e){e.exitLocalfuncref&&e.exitLocalfuncref(this)}}var Ho=n(19),Yo=n(41);class Vo extends Ho.Lexer{get vocabulary(){return Vo.VOCABULARY}constructor(e){super(e),this._interp=new Yo.LexerATNSimulator(Vo._ATN,this)}get grammarFileName(){return"painless_lexer.g4"}get ruleNames(){return Vo.ruleNames}get serializedATN(){return Vo._serializedATN}get channelNames(){return Vo.channelNames}get modeNames(){return Vo.modeNames}sempred(e,t,n){switch(t){case 31:return this.DIV_sempred(e,n);case 77:return this.REGEX_sempred(e,n)}return!0}DIV_sempred(e,t){switch(t){case 0:return 0==this.isSlashRegex()}return!0}REGEX_sempred(e,t){switch(t){case 1:return this.isSlashRegex()}return!0}static get _ATN(){return Vo.__ATN||(Vo.__ATN=(new Zn.ATNDeserializer).deserialize(oi.toCharArray(Vo._serializedATN))),Vo.__ATN}}jt()(Vo,"WS",1),jt()(Vo,"COMMENT",2),jt()(Vo,"LBRACK",3),jt()(Vo,"RBRACK",4),jt()(Vo,"LBRACE",5),jt()(Vo,"RBRACE",6),jt()(Vo,"LP",7),jt()(Vo,"RP",8),jt()(Vo,"DOLLAR",9),jt()(Vo,"DOT",10),jt()(Vo,"NSDOT",11),jt()(Vo,"COMMA",12),jt()(Vo,"SEMICOLON",13),jt()(Vo,"IF",14),jt()(Vo,"IN",15),jt()(Vo,"ELSE",16),jt()(Vo,"WHILE",17),jt()(Vo,"DO",18),jt()(Vo,"FOR",19),jt()(Vo,"CONTINUE",20),jt()(Vo,"BREAK",21),jt()(Vo,"RETURN",22),jt()(Vo,"NEW",23),jt()(Vo,"TRY",24),jt()(Vo,"CATCH",25),jt()(Vo,"THROW",26),jt()(Vo,"THIS",27),jt()(Vo,"INSTANCEOF",28),jt()(Vo,"BOOLNOT",29),jt()(Vo,"BWNOT",30),jt()(Vo,"MUL",31),jt()(Vo,"DIV",32),jt()(Vo,"REM",33),jt()(Vo,"ADD",34),jt()(Vo,"SUB",35),jt()(Vo,"LSH",36),jt()(Vo,"RSH",37),jt()(Vo,"USH",38),jt()(Vo,"LT",39),jt()(Vo,"LTE",40),jt()(Vo,"GT",41),jt()(Vo,"GTE",42),jt()(Vo,"EQ",43),jt()(Vo,"EQR",44),jt()(Vo,"NE",45),jt()(Vo,"NER",46),jt()(Vo,"BWAND",47),jt()(Vo,"XOR",48),jt()(Vo,"BWOR",49),jt()(Vo,"BOOLAND",50),jt()(Vo,"BOOLOR",51),jt()(Vo,"COND",52),jt()(Vo,"COLON",53),jt()(Vo,"ELVIS",54),jt()(Vo,"REF",55),jt()(Vo,"ARROW",56),jt()(Vo,"FIND",57),jt()(Vo,"MATCH",58),jt()(Vo,"INCR",59),jt()(Vo,"DECR",60),jt()(Vo,"ASSIGN",61),jt()(Vo,"AADD",62),jt()(Vo,"ASUB",63),jt()(Vo,"AMUL",64),jt()(Vo,"ADIV",65),jt()(Vo,"AREM",66),jt()(Vo,"AAND",67),jt()(Vo,"AXOR",68),jt()(Vo,"AOR",69),jt()(Vo,"ALSH",70),jt()(Vo,"ARSH",71),jt()(Vo,"AUSH",72),jt()(Vo,"OCTAL",73),jt()(Vo,"HEX",74),jt()(Vo,"INTEGER",75),jt()(Vo,"DECIMAL",76),jt()(Vo,"STRING",77),jt()(Vo,"REGEX",78),jt()(Vo,"TRUE",79),jt()(Vo,"FALSE",80),jt()(Vo,"NULL",81),jt()(Vo,"PRIMITIVE",82),jt()(Vo,"DEF",83),jt()(Vo,"ID",84),jt()(Vo,"DOTINTEGER",85),jt()(Vo,"DOTID",86),jt()(Vo,"AFTER_DOT",1),jt()(Vo,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),jt()(Vo,"modeNames",["DEFAULT_MODE","AFTER_DOT"]),jt()(Vo,"ruleNames",["WS","COMMENT","LBRACK","RBRACK","LBRACE","RBRACE","LP","RP","DOLLAR","DOT","NSDOT","COMMA","SEMICOLON","IF","IN","ELSE","WHILE","DO","FOR","CONTINUE","BREAK","RETURN","NEW","TRY","CATCH","THROW","THIS","INSTANCEOF","BOOLNOT","BWNOT","MUL","DIV","REM","ADD","SUB","LSH","RSH","USH","LT","LTE","GT","GTE","EQ","EQR","NE","NER","BWAND","XOR","BWOR","BOOLAND","BOOLOR","COND","COLON","ELVIS","REF","ARROW","FIND","MATCH","INCR","DECR","ASSIGN","AADD","ASUB","AMUL","ADIV","AREM","AAND","AXOR","AOR","ALSH","ARSH","AUSH","OCTAL","HEX","INTEGER","DECIMAL","STRING","REGEX","TRUE","FALSE","NULL","PRIMITIVE","DEF","ID","DOTINTEGER","DOTID"]),jt()(Vo,"_LITERAL_NAMES",[void 0,void 0,void 0,"'{'","'}'","'['","']'","'('","')'","'$'","'.'","'?.'","','","';'","'if'","'in'","'else'","'while'","'do'","'for'","'continue'","'break'","'return'","'new'","'try'","'catch'","'throw'","'this'","'instanceof'","'!'","'~'","'*'","'/'","'%'","'+'","'-'","'<<'","'>>'","'>>>'","'<'","'<='","'>'","'>='","'=='","'==='","'!='","'!=='","'&'","'^'","'|'","'&&'","'||'","'?'","':'","'?:'","'::'","'->'","'=~'","'==~'","'++'","'--'","'='","'+='","'-='","'*='","'/='","'%='","'&='","'^='","'|='","'<<='","'>>='","'>>>='",void 0,void 0,void 0,void 0,void 0,void 0,"'true'","'false'","'null'",void 0,"'def'"]),jt()(Vo,"_SYMBOLIC_NAMES",[void 0,"WS","COMMENT","LBRACK","RBRACK","LBRACE","RBRACE","LP","RP","DOLLAR","DOT","NSDOT","COMMA","SEMICOLON","IF","IN","ELSE","WHILE","DO","FOR","CONTINUE","BREAK","RETURN","NEW","TRY","CATCH","THROW","THIS","INSTANCEOF","BOOLNOT","BWNOT","MUL","DIV","REM","ADD","SUB","LSH","RSH","USH","LT","LTE","GT","GTE","EQ","EQR","NE","NER","BWAND","XOR","BWOR","BOOLAND","BOOLOR","COND","COLON","ELVIS","REF","ARROW","FIND","MATCH","INCR","DECR","ASSIGN","AADD","ASUB","AMUL","ADIV","AREM","AAND","AXOR","AOR","ALSH","ARSH","AUSH","OCTAL","HEX","INTEGER","DECIMAL","STRING","REGEX","TRUE","FALSE","NULL","PRIMITIVE","DEF","ID","DOTINTEGER","DOTID"]),jt()(Vo,"VOCABULARY",new ii.VocabularyImpl(Vo._LITERAL_NAMES,Vo._SYMBOLIC_NAMES,[])),jt()(Vo,"_serializedATNSegments",2),jt()(Vo,"_serializedATNSegment0","줝쪺֍꾺体؇쉁Xɾ\b\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tW²\n\r³¼\n\f¿\vÆ\n\fÉ\vÍ\n\b\b\t\t\n\n\v\v\v\v\f\f\f\f\f\r\r  !!!\"\"##$$%%%&&&''''(()))**+++,,,----...////0011223334445566777888999:::;;;;<<<===>>???@@@AAABBBCCCDDDEEEFFFGGGGHHHHIIIIIJJJƾ\nJ\rJJƿJJǃ\nJKKKKLj\nK\rKKljKKǍ\nKLLLLǒ\nL\fLLǕ\vLLǗ\nLLLǚ\nLMMMMǟ\nM\fMMǢ\vMMǤ\nMMMMǨ\nM\rMMǩMǬ\nMMMMǰ\nMMMdz\nM\rMMǴMǷ\nMMMǺ\nMNNNNNNNȂ\nN\fNNȅ\vNNNNNNNNNȎ\nN\fNNȑ\vNNNȔ\nNOOOOOȚ\nO\rOOțOOOȠ\nO\fOOȣ\vOOOPPPPPQQQQQQRRRRRSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSɝ\nSTTTTUUUɥ\nU\fUUɨ\vUVVVVɭ\nV\fVVɰ\vVVɲ\nVVVWWWɸ\nW\fWWɻ\vWWW½ÇȃȏțX\b\n\f\b\t\n\v\f\r \"$&(*,.02468:<> @!B\"D#F$H%J&L'N(P)R*T+V,X-Z.\\/^0`1b2d3f4h5j6l7n8p9r:t;v|?~@€A‚B„C†DˆEŠFŒGŽHI’J”K–L˜MšNœOžP Q¢R¤S¦T¨UªV¬W®X\v\f\"\"\f\f29NNnnZZzz2;CHch3;2;\bFFHHNNffhhnnGGgg--//FFHHffhh$$^^))^^\f\f\f\f11\tWWeekknouuwwzzC\\aac|2;C\\aac|ʤ\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª¬®±Ì\bÐ\nÒ\fÔÖØÚÜÞâçéë î\"ñ$ö&ü(ÿ*ă,Č.Ē0ę2ĝ4ġ6ħ8ĭ:IJ<Ľ>Ŀ@ŁBŃDņFňHŊJŌLŏNŒPŖRŘTśVŝXŠZţ\\ŧ^Ū`ŮbŰdŲfŴhŷjźlżnžpƁrƄtƇvƊxƎzƑ|Ɣ~Ɩ€ƙ‚Ɯ„Ɵ†ƢˆƥŠƨŒƫŽƮƲ’ƶ”ƻ–DŽ˜ǖšǣœȓžȕ Ȧ¢ȫ¤ȱ¦ɜ¨ɞªɢ¬ɱ®ɵ°²\t±°²³³±³´´µµ¶\b¶·¸1¸¹1¹½º¼\v»º¼¿½¾½»¾À¿½ÀÍ\tÁÂ1ÂÃ,ÃÇÄÆ\vÅÄÆÉÇÈÇÅÈÊÉÇÊË,ËÍ1Ì·ÌÁÍÎÎÏ\bÏÐÑ}Ñ\tÒÓÓ\vÔÕ]Õ\rÖ×_רÙ*ÙÚÛ+ÛÜÝ&ÝÞß0ßààá\b\váâãAãä0äååæ\b\fæçè.èéê=êëìkìíhíîïkïðpð!ñògòónóôuôõgõ#ö÷y÷øjøùkùúnúûgû%üýfýþqþ'ÿĀhĀāqāĂtĂ)ăĄeĄąqąĆpĆćvćĈkĈĉpĉĊwĊċgċ+ČčdčĎtĎďgďĐcĐđmđ-ĒētēĔgĔĕvĕĖwĖėtėĘpĘ/ęĚpĚěgěĜyĜ1ĝĞvĞğtğĠ{Ġ3ġĢeĢģcģĤvĤĥeĥĦjĦ5ħĨvĨĩjĩĪtĪīqīĬyĬ7ĭĮvĮįjįİkİıuı9IJijkijĴpĴĵuĵĶvĶķcķĸpĸĹeĹĺgĺĻqĻļhļ;Ľľ#ľ=Ŀŀ€ŀ?Łł,łAŃń1ńŅ!ŅCņŇ'ŇEňʼn-ʼnGŊŋ/ŋIŌō>ōŎ>ŎKŏŐ@Őő@őMŒœ@œŔ@Ŕŕ@ŕOŖŗ>ŗQŘř>řŚ?ŚSśŜ@ŜUŝŞ@Şş?şWŠš?šŢ?ŢYţŤ?Ťť?ťŦ?Ŧ[ŧŨ#Ũũ?ũ]Ūū#ūŬ?Ŭŭ?ŭ_Ůů(ůaŰű`űcŲų~ųeŴŵ(ŵŶ(ŶgŷŸ~ŸŹ~ŹiźŻAŻkżŽ<ŽmžſAſƀ<ƀoƁƂ<Ƃƃ<ƃqƄƅ/ƅƆ@ƆsƇƈ?ƈƉ€ƉuƊƋ?Ƌƌ?ƌƍ€ƍwƎƏ-ƏƐ-ƐyƑƒ/ƒƓ/Ɠ{Ɣƕ?ƕ}ƖƗ-ƗƘ?Ƙƙƚ/ƚƛ?ƛƜƝ,Ɲƞ?ƞƒƟƠ1Ơơ?ơ…Ƣƣ'ƣƤ?Ƥ‡ƥƦ(ƦƧ?Ƨ‰ƨƩ`Ʃƪ?ƪ‹ƫƬ~Ƭƭ?ƭƮƯ>Ưư>ưƱ?ƱƲƳ@Ƴƴ@ƴƵ?Ƶ‘ƶƷ@ƷƸ@Ƹƹ@ƹƺ?ƺ“ƻƽ2Ƽƾ\tƽƼƾƿƿƽƿǀǀǂǁǃ\tǂǁǂǃǃ•DŽDž2DžLJ\tdžLj\tLJdžLjljljLJljNJNJnjNjǍ\tnjNjnjǍǍ—ǎǗ2ǏǓ\t\bǐǒ\t\tǑǐǒǕǓǑǓǔǔǗǕǓǖǎǖǏǗǙǘǚ\t\nǙǘǙǚǚ™ǛǤ2ǜǠ\t\bǝǟ\t\tǞǝǟǢǠǞǠǡǡǤǢǠǣǛǣǜǤǫǥǧ\vǦǨ\t\tǧǦǨǩǩǧǩǪǪǬǫǥǫǬǬǶǭǯ\t\vǮǰ\t\fǯǮǯǰǰDzDZdz\t\tDzDZdzǴǴDzǴǵǵǷǶǭǶǷǷǹǸǺ\t\rǹǸǹǺǺ›ǻȃ$Ǽǽ^ǽȂ$Ǿǿ^ǿȂ^ȀȂ\nȁǼȁǾȁȀȂȅȃȄȃȁȄȆȅȃȆȔ$ȇȏ)Ȉȉ^ȉȎ)Ȋȋ^ȋȎ^ȌȎ\nȍȈ"),jt()(Vo,"_serializedATNSegment1","ȍȊȍȌȎȑȏȐȏȍȐȒȑȏȒȔ)ȓǻȓȇȔȕș1Ȗȗ^ȗȚ\nȘȚ\nșȖșȘȚțțȜțșȜȝȝȡ1ȞȠ\tȟȞȠȣȡȟȡȢȢȤȣȡȤȥOȥŸȦȧvȧȨtȨȩwȩȪgȪ¡ȫȬhȬȭcȭȮnȮȯuȯȰgȰ£ȱȲpȲȳwȳȴnȴȵnȵ¥ȶȷdȷȸqȸȹqȹȺnȺȻgȻȼcȼɝpȽȾdȾȿ{ȿɀvɀɝgɁɂuɂɃjɃɄqɄɅtɅɝvɆɇeɇɈjɈɉcɉɝtɊɋkɋɌpɌɝvɍɎnɎɏqɏɐpɐɝiɑɒhɒɓnɓɔqɔɕcɕɝvɖɗfɗɘqɘəwəɚdɚɛnɛɝgɜȶɜȽɜɁɜɆɜɊɜɍɜɑɜɖɝ§ɞɟfɟɠgɠɡhɡ©ɢɦ\tɣɥ\tɤɣɥɨɦɤɦɧɧ«ɨɦɩɲ2ɪɮ\t\bɫɭ\t\tɬɫɭɰɮɬɮɯɯɲɰɮɱɩɱɪɲɳɳɴ\bVɴ­ɵɹ\tɶɸ\tɷɶɸɻɹɷɹɺɺɼɻɹɼɽ\bWɽ¯$³½ÇÌƿǂljnjǓǖǙǠǣǩǫǯǴǶǹȁȃȍȏȓșțȡɜɦɮɱɹ\b"),jt()(Vo,"_serializedATN",oi.join([Vo._serializedATNSegment0,Vo._serializedATNSegment1],"")),jt()(Vo,"__ATN",void 0);class zo extends Vo{constructor(...e){super(...e),jt()(this,"lastToken",void 0)}nextToken(){return this.lastToken=super.nextToken(),this.lastToken}isSlashRegex(){var e;switch(null===(e=this.lastToken)||void 0===e?void 0:e.type){case Vo.RBRACE:case Vo.RP:case Vo.OCTAL:case Vo.HEX:case Vo.INTEGER:case Vo.DECIMAL:case Vo.ID:case Vo.DOTINTEGER:case Vo.DOTID:return!1;default:return!0}}}class Go{constructor(){jt()(this,"errors",[])}syntaxError(e,t,n,i,o){let a=i+1;null!=t&&t._text&&(a=i+t._text.length),this.errors.push({startLineNumber:n,endLineNumber:n,startColumn:i,endColumn:a,message:o})}getErrors(){return this.errors}}const Wo=e=>{const{errors:t}=(e=>{const t=Wn.CharStreams.fromString(e),n=new zo(t),i=new Go,o=new Wn.CommonTokenStream(n),a=new ai(o);n.removeErrorListeners(),a.removeErrorListeners(),n.addErrorListener(i),a.addErrorListener(i);const r=i.getErrors();return{source:a.source(),errors:r}})(e);return t};class Ko{constructor(e){jt()(this,"_ctx",void 0),this._ctx=e}getTextDocument(e){const t=this._ctx.getMirrorModels().find(t=>t.uri.toString()===e);return null==t?void 0:t.getValue()}async getSyntaxErrors(e){const t=this.getTextDocument(e);if(t)return Wo(t)}provideAutocompleteSuggestions(e,t,n){const i=e.replace("\t","").split(" ");return Gn(t,i,n)}}self.onmessage=()=>{wt((e,t)=>new Ko(e))}}]);