@opra/client 0.11.1 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.min.mjs +1 -0
- package/esm/index.min.mjs +1 -0
- package/package.json +21 -13
- package/typings/common/filter/antlr/OpraFilterLexer.d.ts +11 -12
- package/typings/common/filter/antlr/OpraFilterListener.d.ts +430 -0
- package/typings/common/filter/antlr/OpraFilterParser.d.ts +183 -111
- package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +77 -107
- package/typings/common/filter/errors.d.ts +4 -6
- package/typings/common/filter/filter-tree-visitor.d.ts +5 -3
- package/typings/common/filter/index.d.ts +1 -1
- package/typings/common/filter/opra-error-listener.d.ts +8 -0
- package/typings/common/filter/parse.d.ts +2 -2
- package/typings/common/i18n/i18n.d.ts +3 -3
- package/typings/common/i18n/translate.d.ts +1 -1
- package/cjs/934.min.cjs +0 -1
- package/cjs/main.min.cjs +0 -2
- package/cjs/main.min.cjs.LICENSE.txt +0 -13
- package/esm/934.min.mjs +0 -1
- package/esm/main.min.mjs +0 -2
- package/esm/main.min.mjs.LICENSE.txt +0 -13
- package/typings/antlr4ts/ANTLRErrorListener.d.ts +0 -43
- package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +0 -109
- package/typings/antlr4ts/ANTLRInputStream.d.ts +0 -51
- package/typings/antlr4ts/BailErrorStrategy.d.ts +0 -48
- package/typings/antlr4ts/BufferedTokenStream.d.ts +0 -143
- package/typings/antlr4ts/CharStream.d.ts +0 -26
- package/typings/antlr4ts/CharStreams.d.ts +0 -54
- package/typings/antlr4ts/CodePointBuffer.d.ts +0 -40
- package/typings/antlr4ts/CodePointCharStream.d.ts +0 -45
- package/typings/antlr4ts/CommonToken.d.ts +0 -116
- package/typings/antlr4ts/CommonTokenFactory.d.ts +0 -53
- package/typings/antlr4ts/CommonTokenStream.d.ts +0 -52
- package/typings/antlr4ts/ConsoleErrorListener.d.ts +0 -29
- package/typings/antlr4ts/Decorators.d.ts +0 -8
- package/typings/antlr4ts/DefaultErrorStrategy.d.ts +0 -347
- package/typings/antlr4ts/Dependents.d.ts +0 -69
- package/typings/antlr4ts/DiagnosticErrorListener.d.ts +0 -60
- package/typings/antlr4ts/FailedPredicateException.d.ts +0 -21
- package/typings/antlr4ts/InputMismatchException.d.ts +0 -14
- package/typings/antlr4ts/IntStream.d.ts +0 -197
- package/typings/antlr4ts/InterpreterRuleContext.d.ts +0 -33
- package/typings/antlr4ts/Lexer.d.ts +0 -141
- package/typings/antlr4ts/LexerInterpreter.d.ts +0 -23
- package/typings/antlr4ts/LexerNoViableAltException.d.ts +0 -19
- package/typings/antlr4ts/ListTokenSource.d.ts +0 -86
- package/typings/antlr4ts/NoViableAltException.d.ts +0 -30
- package/typings/antlr4ts/Parser.d.ts +0 -372
- package/typings/antlr4ts/ParserErrorListener.d.ts +0 -112
- package/typings/antlr4ts/ParserInterpreter.d.ts +0 -151
- package/typings/antlr4ts/ParserRuleContext.d.ts +0 -169
- package/typings/antlr4ts/ProxyErrorListener.d.ts +0 -20
- package/typings/antlr4ts/ProxyParserErrorListener.d.ts +0 -21
- package/typings/antlr4ts/RecognitionException.d.ts +0 -87
- package/typings/antlr4ts/Recognizer.d.ts +0 -101
- package/typings/antlr4ts/RuleContext.d.ts +0 -124
- package/typings/antlr4ts/RuleContextWithAltNum.d.ts +0 -22
- package/typings/antlr4ts/RuleDependency.d.ts +0 -32
- package/typings/antlr4ts/RuleVersion.d.ts +0 -11
- package/typings/antlr4ts/Token.d.ts +0 -83
- package/typings/antlr4ts/TokenFactory.d.ts +0 -23
- package/typings/antlr4ts/TokenSource.d.ts +0 -67
- package/typings/antlr4ts/TokenStream.d.ts +0 -145
- package/typings/antlr4ts/TokenStreamRewriter.d.ts +0 -216
- package/typings/antlr4ts/Vocabulary.d.ts +0 -117
- package/typings/antlr4ts/VocabularyImpl.d.ts +0 -47
- package/typings/antlr4ts/WritableToken.d.ts +0 -13
- package/typings/antlr4ts/atn/ATN.d.ts +0 -123
- package/typings/antlr4ts/atn/ATNConfig.d.ts +0 -140
- package/typings/antlr4ts/atn/ATNConfigSet.d.ts +0 -113
- package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +0 -26
- package/typings/antlr4ts/atn/ATNDeserializer.d.ts +0 -86
- package/typings/antlr4ts/atn/ATNSimulator.d.ts +0 -28
- package/typings/antlr4ts/atn/ATNState.d.ts +0 -111
- package/typings/antlr4ts/atn/ATNStateType.d.ts +0 -19
- package/typings/antlr4ts/atn/ATNType.d.ts +0 -19
- package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +0 -13
- package/typings/antlr4ts/atn/ActionTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +0 -60
- package/typings/antlr4ts/atn/AtomTransition.d.ts +0 -18
- package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +0 -13
- package/typings/antlr4ts/atn/BasicState.d.ts +0 -13
- package/typings/antlr4ts/atn/BlockEndState.d.ts +0 -12
- package/typings/antlr4ts/atn/BlockStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/CodePointTransitions.d.ts +0 -27
- package/typings/antlr4ts/atn/ConflictInfo.d.ts +0 -35
- package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +0 -39
- package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +0 -54
- package/typings/antlr4ts/atn/DecisionInfo.d.ts +0 -201
- package/typings/antlr4ts/atn/DecisionState.d.ts +0 -10
- package/typings/antlr4ts/atn/EpsilonTransition.d.ts +0 -24
- package/typings/antlr4ts/atn/ErrorInfo.d.ts +0 -32
- package/typings/antlr4ts/atn/InvalidState.d.ts +0 -13
- package/typings/antlr4ts/atn/LL1Analyzer.d.ts +0 -98
- package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +0 -153
- package/typings/antlr4ts/atn/LexerAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +0 -104
- package/typings/antlr4ts/atn/LexerActionType.d.ts +0 -44
- package/typings/antlr4ts/atn/LexerChannelAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerCustomAction.d.ts +0 -73
- package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +0 -74
- package/typings/antlr4ts/atn/LexerModeAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerMoreAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +0 -48
- package/typings/antlr4ts/atn/LexerSkipAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LexerTypeAction.d.ts +0 -47
- package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +0 -37
- package/typings/antlr4ts/atn/LoopEndState.d.ts +0 -11
- package/typings/antlr4ts/atn/NotSetTransition.d.ts +0 -14
- package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +0 -23
- package/typings/antlr4ts/atn/ParseInfo.d.ts +0 -79
- package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +0 -567
- package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +0 -16
- package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +0 -12
- package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +0 -21
- package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +0 -54
- package/typings/antlr4ts/atn/PredicateTransition.d.ts +0 -25
- package/typings/antlr4ts/atn/PredictionContext.d.ts +0 -89
- package/typings/antlr4ts/atn/PredictionContextCache.d.ts +0 -40
- package/typings/antlr4ts/atn/PredictionMode.d.ts +0 -89
- package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +0 -55
- package/typings/antlr4ts/atn/RangeTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/RuleStartState.d.ts +0 -13
- package/typings/antlr4ts/atn/RuleStopState.d.ts +0 -15
- package/typings/antlr4ts/atn/RuleTransition.d.ts +0 -22
- package/typings/antlr4ts/atn/SemanticContext.d.ts +0 -143
- package/typings/antlr4ts/atn/SetTransition.d.ts +0 -17
- package/typings/antlr4ts/atn/SimulatorState.d.ts +0 -17
- package/typings/antlr4ts/atn/StarBlockStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +0 -37
- package/typings/antlr4ts/atn/StarLoopbackState.d.ts +0 -11
- package/typings/antlr4ts/atn/TokensStartState.d.ts +0 -10
- package/typings/antlr4ts/atn/Transition.d.ts +0 -38
- package/typings/antlr4ts/atn/TransitionType.d.ts +0 -16
- package/typings/antlr4ts/atn/WildcardTransition.d.ts +0 -13
- package/typings/antlr4ts/atn/index.d.ts +0 -73
- package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +0 -33
- package/typings/antlr4ts/dfa/DFA.d.ts +0 -94
- package/typings/antlr4ts/dfa/DFASerializer.d.ts +0 -23
- package/typings/antlr4ts/dfa/DFAState.d.ts +0 -95
- package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +0 -10
- package/typings/antlr4ts/dfa/index.d.ts +0 -9
- package/typings/antlr4ts/index.d.ts +0 -49
- package/typings/antlr4ts/misc/Args.d.ts +0 -13
- package/typings/antlr4ts/misc/Array2DHashMap.d.ts +0 -20
- package/typings/antlr4ts/misc/Array2DHashSet.d.ts +0 -62
- package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +0 -32
- package/typings/antlr4ts/misc/Arrays.d.ts +0 -18
- package/typings/antlr4ts/misc/BitSet.d.ts +0 -268
- package/typings/antlr4ts/misc/Character.d.ts +0 -7
- package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +0 -31
- package/typings/antlr4ts/misc/EqualityComparator.d.ts +0 -29
- package/typings/antlr4ts/misc/IntSet.d.ts +0 -129
- package/typings/antlr4ts/misc/IntegerList.d.ts +0 -69
- package/typings/antlr4ts/misc/IntegerStack.d.ts +0 -15
- package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +0 -39
- package/typings/antlr4ts/misc/Interval.d.ts +0 -57
- package/typings/antlr4ts/misc/IntervalSet.d.ts +0 -96
- package/typings/antlr4ts/misc/MultiMap.d.ts +0 -9
- package/typings/antlr4ts/misc/MurmurHash.d.ts +0 -45
- package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +0 -32
- package/typings/antlr4ts/misc/ParseCancellationException.d.ts +0 -18
- package/typings/antlr4ts/misc/Stubs.d.ts +0 -31
- package/typings/antlr4ts/misc/UUID.d.ts +0 -13
- package/typings/antlr4ts/misc/Utils.d.ts +0 -15
- package/typings/antlr4ts/misc/index.d.ts +0 -25
- package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +0 -103
- package/typings/antlr4ts/tree/ErrorNode.d.ts +0 -17
- package/typings/antlr4ts/tree/ParseTree.d.ts +0 -36
- package/typings/antlr4ts/tree/ParseTreeListener.d.ts +0 -26
- package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +0 -28
- package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +0 -48
- package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +0 -35
- package/typings/antlr4ts/tree/RuleNode.d.ts +0 -21
- package/typings/antlr4ts/tree/SyntaxTree.d.ts +0 -29
- package/typings/antlr4ts/tree/TerminalNode.d.ts +0 -27
- package/typings/antlr4ts/tree/Tree.d.ts +0 -36
- package/typings/antlr4ts/tree/Trees.d.ts +0 -75
- package/typings/antlr4ts/tree/index.d.ts +0 -16
- package/typings/antlr4ts/tree/pattern/Chunk.d.ts +0 -17
- package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +0 -124
- package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +0 -98
- package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +0 -166
- package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +0 -122
- package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +0 -59
- package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +0 -35
- package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +0 -56
- package/typings/antlr4ts/tree/pattern/index.d.ts +0 -9
- package/typings/antlr4ts/tree/xpath/XPath.d.ts +0 -66
- package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +0 -19
- package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +0 -36
- package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +0 -14
- package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +0 -11
- package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +0 -10
- package/typings/antlr4ts/tree/xpath/index.d.ts +0 -14
- package/typings/common/filter/error-listener.d.ts +0 -8
- package/umd/934.min.cjs +0 -1
- package/umd/main.min.cjs +0 -2
- package/umd/main.min.cjs.LICENSE.txt +0 -13
package/esm/main.min.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see main.min.mjs.LICENSE.txt */
|
|
2
|
-
import*as t from"buffer";import*as e from"events";import*as r from"path-browserify";import*as n from"process/browser";import*as i from"fast-tokenizer";import*as o from"i18next";import*as s from"luxon";import*as a from"uid";import*as l from"reflect-metadata";import*as u from"lodash-es";import*as c from"rxjs";var h,p,d,f={7120:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5e3:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5575:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ANTLRInputStream=void 0;const i=r(6804),o=r(2155),s=r(1894);class a{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p<this.n&&this.p++}LA(t){return 0===t?0:t<0&&(t++,this.p+t-1<0)||this.p+t-1>=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p<t;)this.consume()}getText(t){let e=t.a,r=t.b;r>=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],a.prototype,"consume",null),n([o.Override],a.prototype,"LA",null),n([o.Override],a.prototype,"index",null),n([o.Override],a.prototype,"size",null),n([o.Override],a.prototype,"mark",null),n([o.Override],a.prototype,"release",null),n([o.Override],a.prototype,"seek",null),n([o.Override],a.prototype,"getText",null),n([o.Override],a.prototype,"sourceName",null),n([o.Override],a.prototype,"toString",null),e.ANTLRInputStream=a},4583:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BailErrorStrategy=void 0;const i=r(7662),o=r(5362),s=r(2155),a=r(8122);class l extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}recoverInline(t){let e=new o.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new a.ParseCancellationException(e)}sync(t){}}n([s.Override],l.prototype,"recover",null),n([s.Override],l.prototype,"recoverInline",null),n([s.Override],l.prototype,"sync",null),e.BailErrorStrategy=l},9418:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedTokenStream=void 0;const o=r(6804),s=r(9354),a=r(1128),l=r(5548),u=r(2155),c=r(8025);let h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===c.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){o(t>=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e<t;e++){let t=this.tokenSource.nextToken();if(this.isWritableToken(t)&&(t.tokenIndex=this.tokens.length),this.tokens.push(t),t.type===c.Token.EOF)return this.fetchedEOF=!0,e+1}return t}get(t){if(t<0||t>=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===c.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:c.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return o(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter((t=>n.has(t.type))),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===c.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===c.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,l.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,l.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==l.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=a.Interval.of(0,this.size-1):t instanceof a.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===c.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(a.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof s.CommonToken}isToken(t){return t instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),e.BufferedTokenStream=h},3345:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6957:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CharStreams=void 0;const n=r(9337),i=r(5376),o=r(1894);(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),s=new Uint16Array(t.length);for(let e=0;e<t.length;e++)s[e]=t.charCodeAt(e);return r.append(s),i.CodePointCharStream.fromBuffer(r.build(),e)}},9337:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointBuffer=void 0;const n=r(6804),i=r(8910);class o{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new o(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new o.Builder(t)}}e.CodePointBuffer=o,function(t){let e;!function(t){t[t.BYTE=0]="BYTE",t[t.CHAR=1]="CHAR",t[t.INT=2]="INT"}(e||(e={}));class r{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Uint8Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}break;case 1:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Uint16Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}break;case 2:if(this.buffer.length-this.position<t){let e=r.roundUpToNextPowerOfTwo(this.buffer.length+t),n=new Int32Array(e);n.set(this.buffer.subarray(0,this.position),0),this.buffer=n}}}append(t){this.ensureRemaining(t.length),this.appendArray(t)}appendArray(t){switch(this.type){case 0:this.appendArrayByte(t);break;case 1:this.appendArrayChar(t);break;case 2:this.appendArrayInt(t)}}appendArrayByte(t){n(-1===this.prevHighSurrogate);let e=t,r=0,o=t.length,s=this.buffer,a=this.position;for(;r<o;){let n=e[r];if(!(n<=255))return t=t.subarray(r,o),this.position=a,i.isHighSurrogate(n)?(this.byteToIntBuffer(t.length),void this.appendArrayInt(t)):(this.byteToCharBuffer(t.length),void this.appendArrayChar(t));s[a]=n,r++,a++}this.position=a}appendArrayChar(t){n(-1===this.prevHighSurrogate);let e=t,r=0,o=t.length,s=this.buffer,a=this.position;for(;r<o;){let n=e[r];if(i.isHighSurrogate(n))return t=t.subarray(r,o),this.position=a,this.charToIntBuffer(t.length),void this.appendArrayInt(t);s[a]=n,r++,a++}this.position=a}appendArrayInt(t){let e=t,r=0,n=t.length,o=this.buffer,s=this.position;for(;r<n;){let t=e[r];r++,-1!==this.prevHighSurrogate?i.isLowSurrogate(t)?(o[s]=String.fromCharCode(this.prevHighSurrogate,t).codePointAt(0),s++,this.prevHighSurrogate=-1):(o[s]=this.prevHighSurrogate,s++,i.isHighSurrogate(t)?this.prevHighSurrogate=t:(o[s]=t,s++,this.prevHighSurrogate=-1)):i.isHighSurrogate(t)?this.prevHighSurrogate=t:(o[s]=t,s++)}-1!==this.prevHighSurrogate&&(o[s]=this.prevHighSurrogate,s++),this.position=s}byteToCharBuffer(t){let e=new Uint16Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=r}(o=e.CodePointBuffer||(e.CodePointBuffer={}))},5376:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CodePointCharStream=void 0;const i=r(6804),o=r(1894),s=r(1128),a=r(2155);class l{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME),new l(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?o.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?o.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){const e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([a.Override],l.prototype,"consume",null),n([a.Override],l.prototype,"index",null),n([a.Override],l.prototype,"size",null),n([a.Override],l.prototype,"mark",null),n([a.Override],l.prototype,"release",null),n([a.Override],l.prototype,"seek",null),n([a.Override],l.prototype,"sourceName",null),n([a.Override],l.prototype,"toString",null),n([a.Override],l.prototype,"LA",null),n([a.Override],l.prototype,"getText",null),e.CodePointCharStream=l},9354:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonToken=void 0;const o=r(1128),s=r(2155),a=r(8025);let l=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=a.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=a.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start<e&&this.stop<e?t.getText(o.Interval.of(this.start,this.stop)):"<EOF>"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="<no text>";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};l.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],l.prototype,"source",void 0),n([s.Override],l.prototype,"type",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"channel",null),n([s.Override],l.prototype,"startIndex",null),n([s.Override],l.prototype,"stopIndex",null),n([s.Override],l.prototype,"tokenIndex",null),n([s.Override],l.prototype,"tokenSource",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"toString",null),n([i(0,s.NotNull)],l,"fromToken",null),l=n([i(2,s.NotNull)],l),e.CommonToken=l},4487:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenFactory=void 0;const i=r(9354),o=r(1128),s=r(2155);class a{constructor(t=!1){this.copyText=t}create(t,e,r,n,s,a,l,u){let c=new i.CommonToken(e,r,t,n,s,a);return c.line=l,c.charPositionInLine=u,null==r&&this.copyText&&null!=t.stream&&(c.text=t.stream.getText(o.Interval.of(s,a))),c}createSimple(t,e){return new i.CommonToken(t,e)}}n([s.Override],a.prototype,"create",null),n([s.Override],a.prototype,"createSimple",null),e.CommonTokenFactory=a,function(t){t.DEFAULT=new t}(a=e.CommonTokenFactory||(e.CommonTokenFactory={}))},2022:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommonTokenStream=void 0;const o=r(9418),s=r(2155),a=r(8025);let l=class extends o.BufferedTokenStream{constructor(t,e=a.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r++;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let e of this.tokens)if(e.channel===this.channel&&t++,e.type===a.Token.EOF)break;return t}};n([s.Override],l.prototype,"adjustSeekIndex",null),n([s.Override],l.prototype,"tryLB",null),n([s.Override],l.prototype,"tryLT",null),l=n([i(0,s.NotNull)],l),e.CommonTokenStream=l},1166:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleErrorListener=void 0;class r{syntaxError(t,e,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}e.ConsoleErrorListener=r,r.INSTANCE=new r},2155:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SuppressWarnings=e.Override=e.Nullable=e.NotNull=void 0,e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},7662:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultErrorStrategy=void 0;const o=r(9103),s=r(8503),a=r(3771),l=r(5362),u=r(2174),c=r(5314),h=r(7997),p=r(8025),d=r(2155);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof c.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof l.InputMismatchException?this.reportInputMismatch(t,e):e instanceof a.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(p.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new l.InputMismatchException(t);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===p.Token.EOF?"<EOF>":n.getTextFromRange(e.startToken,e.getOffendingToken()):"<unknown input>";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new l.InputMismatchException(t):new l.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=p.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===p.Token.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let o=r,s=t.inputStream.tryLT(-1);return o.type===p.Token.EOF&&null!=s&&(o=s),this.constructToken(t.inputStream.tokenSource,i,e,o)}constructToken(t,e,r,n){let i=t.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:t,stream:s},e,r,p.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"<no token>";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===p.Token.EOF?"<EOF>":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(p.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==p.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([d.Override],f.prototype,"reset",null),n([i(0,d.NotNull)],f.prototype,"beginErrorCondition",null),n([d.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,d.NotNull)],f.prototype,"endErrorCondition",null),n([d.Override],f.prototype,"reportMatch",null),n([d.Override],f.prototype,"reportError",null),n([i(0,d.NotNull)],f.prototype,"notifyErrorListeners",null),n([d.Override],f.prototype,"recover",null),n([d.Override],f.prototype,"sync",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,d.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,d.NotNull)],f.prototype,"reportMissingToken",null),n([d.Override],f.prototype,"recoverInline",null),n([i(0,d.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,d.NotNull)],f.prototype,"singleTokenDeletion",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getMissingSymbol",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,d.NotNull)],f.prototype,"getSymbolText",null),n([i(0,d.NotNull)],f.prototype,"getSymbolType",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"escapeWSAndQuote",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},2827:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Dependents=void 0,(r=e.Dependents||(e.Dependents={}))[r.SELF=0]="SELF",r[r.PARENTS=1]="PARENTS",r[r.CHILDREN=2]="CHILDREN",r[r.ANCESTORS=3]="ANCESTORS",r[r.DESCENDANTS=4]="DESCENDANTS",r[r.SIBLINGS=5]="SIBLINGS",r[r.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",r[r.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",r[r.PRECEEDING=8]="PRECEEDING",r[r.FOLLOWING=9]="FOLLOWING"},1292:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticErrorListener=void 0;const o=r(6426),s=r(2155),a=r(1128);class l{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,o){}reportAmbiguity(t,e,r,n,i,o,s){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}reportContextSensitivity(t,e,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(a.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new o.BitSet;for(let t of e)r.set(t.alt);return r}}n([s.Override],l.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],l.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],l.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],l.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],l.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=l},3771:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.FailedPredicateException=void 0;const o=r(5406),s=r(2155),a=r(1294);let l=class t extends o.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof a.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([s.NotNull],l,"formatMessage",null),l=n([i(0,s.NotNull)],l),e.FailedPredicateException=l},5362:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.InputMismatchException=void 0;const o=r(5406),s=r(2155);let a=class extends o.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};a=n([i(0,s.NotNull)],a),e.InputMismatchException=a},1894:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.IntStream=void 0,(r=e.IntStream||(e.IntStream={})).EOF=-1,r.UNKNOWN_SOURCE_NAME="<unknown>"},535:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InterpreterRuleContext=void 0;const i=r(2155),o=r(6267);class s extends o.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),e.InterpreterRuleContext=s},5548:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0;const i=r(4487),o=r(5389),s=r(1128),a=r(1894),l=r(9849),u=r(6517),c=r(2155),h=r(2580),p=r(8025);class d extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=d.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return p.Token.DEFAULT_CHANNEL}static get HIDDEN(){return p.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=p.Token.INVALID_TYPE,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=d.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=p.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof u.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=d.SKIP}if(this._input.LA(1)===a.IntStream.EOF&&(this._hitEOF=!0),this._type===p.Token.INVALID_TYPE&&(this._type=t),this._type===d.SKIP)continue t}while(this._type===d.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=d.SKIP}more(){this._type=d.MORE}mode(t){this._mode=t}pushMode(t){l.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return l.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,p.Token.EOF,void 0,p.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==p.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case p.Token.EOF:return"<EOF>";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof u.LexerNoViableAltException?this._input.LA(1)!==a.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}d.DEFAULT_MODE=0,d.MORE=-2,d.SKIP=-3,d.MIN_CHAR_VALUE=0,d.MAX_CHAR_VALUE=1114111,n([c.Override],d.prototype,"nextToken",null),n([c.Override],d.prototype,"tokenFactory",null),n([c.Override],d.prototype,"inputStream",null),n([c.Override],d.prototype,"sourceName",null),n([c.Override],d.prototype,"line",null),n([c.Override],d.prototype,"charPositionInLine",null),e.Lexer=d},292:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerInterpreter=void 0;const o=r(5548),s=r(9849),a=r(2155),l=r(2155);let u=class extends o.Lexer{constructor(t,e,r,n,i,o,a){if(super(a),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new s.LexerATNSimulator(o,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}};n([a.NotNull],u.prototype,"_vocabulary",void 0),n([l.Override],u.prototype,"atn",null),n([l.Override],u.prototype,"grammarFileName",null),n([l.Override],u.prototype,"ruleNames",null),n([l.Override],u.prototype,"channelNames",null),n([l.Override],u.prototype,"modeNames",null),n([l.Override],u.prototype,"vocabulary",null),u=n([i(1,a.NotNull)],u),e.LexerInterpreter=u},6517:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerNoViableAltException=void 0;const o=r(5406),s=r(2155),a=r(1128),l=r(9603);let u=class extends o.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(a.Interval.of(this._startIndex,this._startIndex)),t=l.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};n([s.Override],u.prototype,"inputStream",null),n([s.Override],u.prototype,"toString",null),u=n([i(1,s.NotNull)],u),e.LexerNoViableAltException=u},6526:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ListTokenSource=void 0;const o=r(4487),s=r(2155),a=r(8025);let l=class{constructor(t,e){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i<this.tokens.length)return this.tokens[this.i].charPositionInLine;if(null!=this.eofToken)return this.eofToken.charPositionInLine;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},a.Token.EOF,"EOF",a.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===a.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!=this.eofToken)return this.eofToken.line;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t<r.length;t++)"\n"===r.charAt(t)&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!=this.eofToken?this.eofToken.inputStream:this.tokens.length>0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([s.Override],l.prototype,"charPositionInLine",null),n([s.Override],l.prototype,"nextToken",null),n([s.Override],l.prototype,"line",null),n([s.Override],l.prototype,"inputStream",null),n([s.Override],l.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],l.prototype,"tokenFactory",null),l=n([i(0,s.NotNull)],l),e.ListTokenSource=l},5314:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.NoViableAltException=void 0;const i=r(2447),o=r(5406),s=r(2155);class a extends o.RecognitionException{constructor(t,e,r,n,o,s){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===s&&(s=t.context)),super(t,e,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],a.prototype,"_startToken",void 0),e.NoViableAltException=a},2447:function(t,e,r){var n=r(6966),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;const a=r(9603),l=r(1327),u=r(3583),c=r(7662),h=r(1814),p=r(5389),d=r(5548),f=r(2155),y=r(2373),g=r(8541),_=r(6831),m=r(2580),v=r(1310),T=r(8025);class b{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}i([f.Override],b.prototype,"enterEveryRule",null),i([f.Override],b.prototype,"exitEveryRule",null),i([f.Override],b.prototype,"visitErrorNode",null),i([f.Override],b.prototype,"visitTerminal",null);class S extends m.Recognizer{constructor(t){super(),this._errHandler=new c.DefaultErrorStrategy,this._precedenceStack=new p.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&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 e=this.interpreter;null!=e&&e.reset()}match(t){let e=this.currentToken;return e.type===t?(t===T.Token.EOF&&(this.matchedEOF=!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}matchWildcard(){let t=this.currentToken;return t.type>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}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex((e=>e===t));-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=S.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new u.ATNDeserializer(r).deserialize(a.toCharArray(t)),S.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return s(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof d.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then((()=>r(6549)))).ParseTreePatternMatcher)(i,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==S.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new v.TerminalNode(e)}createErrorNode(t,e){return new h.ErrorNode(e)}addContextToParseTree(){let t=this._ctx._parent;null!=t&&t.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,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(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new _.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(T.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(T.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(T.Token.EPSILON)||t!==T.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){let e=this.getRuleIndexMap().get(t);return null!=e?e:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let t=!1;for(let e of this._interp.atn.decisionToDFA)e.isEmpty||(t&&console.log(),console.log("Decision "+e.decision+":"),n.stdout.write(e.toString(this.vocabulary,this.ruleNames)),t=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>r(4612))).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new y.ParseInfo(e)}))}setProfile(t){return s(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>r(4612))),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new g.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new b(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([f.NotNull],S.prototype,"_errHandler",void 0),i([f.NotNull],S.prototype,"match",null),i([f.NotNull],S.prototype,"matchWildcard",null),i([f.NotNull],S.prototype,"getParseListeners",null),i([o(0,f.NotNull)],S.prototype,"addParseListener",null),i([f.NotNull],S.prototype,"getATNWithBypassAlts",null),i([f.NotNull,o(0,f.NotNull)],S.prototype,"errorHandler",null),i([f.Override],S.prototype,"inputStream",null),i([f.NotNull],S.prototype,"currentToken",null),i([o(0,f.NotNull)],S.prototype,"enterRule",null),i([f.Override,o(0,f.Nullable)],S.prototype,"precpred",null),i([f.Override],S.prototype,"getErrorListenerDispatch",null),i([f.NotNull],S.prototype,"getExpectedTokens",null),i([f.NotNull],S.prototype,"getExpectedTokensWithinCurrentRule",null),i([f.Override],S.prototype,"parseInfo",null),e.Parser=S},8250:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},3574:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserInterpreter=void 0;const o=r(9103),s=r(8503),a=r(6426),l=r(3771),u=r(5362),c=r(535),h=r(8028),p=r(2155),d=r(2155),f=r(2447),y=r(8541),g=r(5406),_=r(7381),m=r(8025);let v=class t extends f.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new y.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new a.BitSet(i.states.length);for(let t of i.states)t instanceof _.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new y.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),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(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===s.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof g.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),m.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new l.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new l.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new c.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof u.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=m.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,e.text,m.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{e.tokenSource;let t=this.tokenFactory.create(n,m.Token.INVALID_TYPE,e.text,m.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([p.NotNull],v.prototype,"_vocabulary",void 0),n([d.Override],v.prototype,"reset",null),n([d.Override],v.prototype,"atn",null),n([d.Override],v.prototype,"vocabulary",null),n([d.Override],v.prototype,"ruleNames",null),n([d.Override],v.prototype,"grammarFileName",null),n([d.Override],v.prototype,"enterRecursionRule",null),v=n([i(1,p.NotNull)],v),e.ParserInterpreter=v},6267:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserRuleContext=void 0;const i=r(1814),o=r(1128),s=r(2155),a=r(6997),l=r(1310);class u extends a.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return u.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof l.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof a.RuleContext?void this.addAnyChild(t):(t=new l.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){const e=t;return e.setParent(this),this.addAnyChild(e)}{const e=t;let r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof u)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof l.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof l.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex<this._start.tokenIndex?o.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):o.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):o.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(t){return"ParserRuleContext"+t.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}}u.EMPTY=new u,n([s.Override],u.prototype,"parent",null),n([s.Override],u.prototype,"childCount",null),n([s.Override],u.prototype,"sourceInterval",null),e.ParserRuleContext=u},1855:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyErrorListener=void 0;const o=r(2155);class s{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,o){this.delegates.forEach((s=>{s.syntaxError&&s.syntaxError(t,e,r,n,i,o)}))}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),e.ProxyErrorListener=s},6831:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyParserErrorListener=void 0;const i=r(1855),o=r(2155);class s extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,o,s){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,o,s)}))}reportAttemptingFullContext(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(t,e,r,n,i,o)}))}reportContextSensitivity(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportContextSensitivity&&s.reportContextSensitivity(t,e,r,n,i,o)}))}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=s},5406:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionException=void 0;class r extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=r},2580:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Recognizer=void 0;const o=r(1166),s=r(1855),a=r(2155),l=r(8025),u=r(9603);class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=c.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",l.Token.EOF),e=r,c.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=c.ruleIndexMapCache.get(t);return null==e&&(e=u.toMap(t),c.ruleIndexMapCache.set(t,e)),e}getTokenType(t){let e=this.getTokenTypeMap().get(t);return null!=e?e:l.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(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([a.SuppressWarnings("serial"),a.NotNull],c.prototype,"_listeners",void 0),n([a.NotNull],c.prototype,"getTokenTypeMap",null),n([a.NotNull],c.prototype,"getRuleIndexMap",null),n([a.NotNull],c.prototype,"serializedATN",null),n([a.NotNull],c.prototype,"atn",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"interpreter",null),n([a.NotNull,i(0,a.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,a.NotNull)],c.prototype,"addErrorListener",null),n([i(0,a.NotNull)],c.prototype,"removeErrorListener",null),n([a.NotNull],c.prototype,"getErrorListeners",null),e.Recognizer=c},6997:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContext=void 0;const i=r(7476),o=r(2580),s=r(2196),a=r(1128),l=r(2155),u=r(8766),c=r(6267);class h extends s.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=null!=e?e:-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return a.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e<this.childCount;e++)t+=this.getChild(e).text;return t.toString()}get ruleIndex(){return-1}get altNumber(){return i.ATN.INVALID_ALT_NUMBER}set altNumber(t){}getChild(t){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t){return u.Trees.toStringTree(this,t)}toString(t,e){const r=t instanceof o.Recognizer?t.ruleNames:t;e=e||c.ParserRuleContext.emptyContext();let n="",i=this;for(n+="[";i&&i!==e;){if(r){let t=i.ruleIndex;n+=t>=0&&t<r.length?r[t]:t.toString()}else i.isEmpty||(n+=i.invokingState);!i._parent||!r&&i._parent.isEmpty||(n+=" "),i=i._parent}return n+="]",n.toString()}}n([l.Override],h.prototype,"sourceInterval",null),n([l.Override],h.prototype,"ruleContext",null),n([l.Override],h.prototype,"parent",null),n([l.Override],h.prototype,"setParent",null),n([l.Override],h.prototype,"payload",null),n([l.Override],h.prototype,"text",null),n([l.Override],h.prototype,"getChild",null),n([l.Override],h.prototype,"childCount",null),n([l.Override],h.prototype,"accept",null),n([l.Override],h.prototype,"toStringTree",null),e.RuleContext=h},3450:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleContextWithAltNum=void 0;const i=r(7476),o=r(2155),s=r(6267);class a extends s.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([o.Override],a.prototype,"altNumber",null),e.RuleContextWithAltNum=a},8975:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=void 0,e.RuleDependency=function(t){return(t,e,r)=>{}}},7899:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=void 0,e.RuleVersion=function(t){return(t,e,r)=>{}}},8025:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;const n=r(1894);var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},816:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},2556:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},152:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6024:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RewriteOperation=e.TokenStreamRewriter=void 0;const i=r(1128),o=r(2155),s=r(8025);class a{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(a.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=a.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(a.MIN_TOKEN_INDEX,t))}deleteProgram(t=a.DEFAULT_PROGRAM_NAME){this.rollback(a.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new c(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e,r=a.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new u(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=a.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=this.getProgram(n),o=new h(this.tokens,t,e,i.length,r);i.push(o)}delete(t,e,r=a.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=a.DEFAULT_PROGRAM_NAME){let e=this.lastRewriteTokenIndexes.get(t);return null==e?-1:e}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=a.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),o=r.a,l=r.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=l&&h<this.tokens.size;){let t=c.get(h);c.delete(h);let e=this.tokens.get(h);null==t?(e.type!==s.Token.EOF&&u.push(String(e.text)),h++):h=t.execute(u)}if(l===this.tokens.size-1)for(let t of c.values())t.index>=this.tokens.size-1&&u.push(t.text.toString());return u.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof h))continue;let n=r,i=this.getKindOfOps(t,u,e);for(let e of i)e.index===n.index?(t[e.instructionIndex]=void 0,n.text=e.text.toString()+(null!=n.text?n.text.toString():"")):e.index>n.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let o=this.getKindOfOps(t,h,e);for(let e of o){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<n.index||e.index>n.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof u))continue;let n=r,i=this.getKindOfOps(t,u,e);for(let e of i)e.index===n.index&&(e instanceof c?(n.text=this.catOpText(e.text,n.text),t[e.instructionIndex]=void 0):e instanceof u&&(n.text=this.catOpText(n.text,e.text),t[e.instructionIndex]=void 0));let o=this.getKindOfOps(t,h,e);for(let r of o)if(n.index!==r.index){if(n.index>=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i<r&&i<t.length;i++){let r=t[i];null!=r&&r instanceof e&&n.push(r)}return n}}e.TokenStreamRewriter=a,a.DEFAULT_PROGRAM_NAME="default",a.PROGRAM_INIT_SIZE=100,a.MIN_TOKEN_INDEX=0;class l{constructor(t,e,r,n){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===n?"":n}execute(t){return this.index}toString(){let t=this.constructor.name,e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}n([o.Override],l.prototype,"toString",null),e.RewriteOperation=l;class u extends l{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(t,e,r,n){super(t,e+1,r,n)}}class h extends l{constructor(t,e,r,n,i){super(t,e,n,i),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},3347:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8567:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;const i=r(2155),o=r(8025);class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t<this.literalNames.length)return this.literalNames[t]}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===o.Token.EOF?"EOF":void 0}getDisplayName(t){if(t>=0&&t<this.displayNames.length){let e=this.displayNames[t];if(e)return e}let e=this.getLiteralName(t);return e||(this.getSymbolicName(t)||String(t))}}s.EMPTY_VOCABULARY=new s([],[],[]),n([i.NotNull],s.prototype,"literalNames",void 0),n([i.NotNull],s.prototype,"symbolicNames",void 0),n([i.NotNull],s.prototype,"displayNames",void 0),n([i.Override],s.prototype,"maxTokenType",null),n([i.Override],s.prototype,"getLiteralName",null),n([i.Override],s.prototype,"getSymbolicName",null),n([i.Override,i.NotNull],s.prototype,"getDisplayName",null),n([i.NotNull],s,"EMPTY_VOCABULARY",void 0),e.VocabularyImpl=s},4279:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7476:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATN=void 0;const o=r(5967),s=r(2333),a=r(2174),l=r(9223),u=r(798),c=r(2155),h=r(8871),p=r(7997),d=r(8025),f=r(6804);let y=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new s.DFA(this.decisionToState[t],t);this.modeToDFA=new Array(this.modeToStartState.length);for(let t=0;t<this.modeToDFA.length;t++)this.modeToDFA[t]=new s.DFA(this.modeToStartState[t]);this.contextCache.clear(),this.LL1Table.clear()}get contextCacheSize(){return this.contextCache.size}getCachedContext(t){return p.PredictionContext.getCachedContext(t,this.contextCache,new p.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return f(null!=this.decisionToDFA&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(t,e){return e?new u.LL1Analyzer(this).LOOK(t,e):(t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokens(t,p.PredictionContext.EMPTY_LOCAL),t.nextTokenWithinRule.setReadonly(!0)),t.nextTokenWithinRule)}addState(t){t.atn=this,t.stateNumber=this.states.length,this.states.push(t)}removeState(t){let e=new l.InvalidState;e.atn=this,e.stateNumber=t.stateNumber,this.states[t.stateNumber]=e}defineMode(t,e){this.modeNameToStartState.set(t,e),this.modeToStartState.push(e),this.modeToDFA.push(new s.DFA(e)),this.defineDecisionState(e)}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,this.decisionToDFA.push(new s.DFA(t,t.decision)),t.decision}getDecisionState(t){if(this.decisionToState.length>0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(d.Token.EPSILON))return i;let o=new a.IntervalSet;for(o.addAll(i),o.remove(d.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(d.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(d.Token.EPSILON),r=r._parent}return i.contains(d.Token.EPSILON)&&o.add(d.Token.EOF),o}};n([c.NotNull],y.prototype,"states",void 0),n([c.NotNull],y.prototype,"decisionToState",void 0),n([c.NotNull],y.prototype,"modeNameToStartState",void 0),n([c.NotNull],y.prototype,"modeToStartState",void 0),n([c.NotNull],y.prototype,"decisionToDFA",void 0),n([c.NotNull],y.prototype,"modeToDFA",void 0),n([c.NotNull],y.prototype,"nextTokens",null),n([i(0,c.NotNull)],y.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],y.prototype,"defineMode",null),n([i(0,c.NotNull)],y.prototype,"defineDecisionState",null),n([c.NotNull],y.prototype,"getExpectedTokens",null),y=n([i(0,c.NotNull)],y),e.ATN=y,function(t){t.INVALID_ALT_NUMBER=0}(y=e.ATN||(e.ATN={})),e.ATN=y},4112:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfig=void 0;const o=r(5967),s=r(9618),a=r(1363),l=r(2155),u=r(8871),c=r(7997),h=r(4897),p=r(6804),d=2147483648;let f=class t{constructor(t,e,r){"number"==typeof e?(p((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new _(o,i,e,r,n,!1):new y(i,e,r,n):null!=o?new g(o,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){p(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,o){let s=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=o||s?new _(o,n,e,this,r,s):new y(n,e,this,r):null!=o||s?new g(o,e,this,r,s):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof s.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size<n.size)return!1;if(n.isEmpty)return t.hasEmpty;for(let i=0;i<n.size;i++){let o=t.findReturnState(n.getReturnState(i));if(o<0)return!1;e.push(t.getParent(o)),r.push(n.getParent(i))}}return!1}get isPrecedenceFilterSuppressed(){return 0!=(this.altAndOuterContextDepth&d)}set isPrecedenceFilterSuppressed(t){t?this.altAndOuterContextDepth|=d:this.altAndOuterContextDepth&=2147483647}equals(e){return this===e||e instanceof t&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.reachesIntoOuterContext===e.reachesIntoOuterContext&&this.context.equals(e.context)&&this.semanticContext.equals(e.semanticContext)&&this.isPrecedenceFilterSuppressed===e.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===e.hasPassedThroughNonGreedyDecision&&u.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,e.lexerActionExecutor)}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.state.stateNumber),t=a.MurmurHash.update(t,this.alt),t=a.MurmurHash.update(t,this.reachesIntoOuterContext?1:0),t=a.MurmurHash.update(t,this.context),t=a.MurmurHash.update(t,this.semanticContext),t=a.MurmurHash.update(t,this.hasPassedThroughNonGreedyDecision?1:0),t=a.MurmurHash.update(t,this.lexerActionExecutor),t=a.MurmurHash.finish(t,7),t}toDotString(){let t="";t+="digraph G {\n",t+="rankdir=LR;\n";let e=new o.Array2DHashMap(c.PredictionContext.IdentityEqualityComparator.INSTANCE),r=[];function n(t){let n=e.size,i=e.putIfAbsent(t,n);return null!=i?i:(r.push(t),n)}for(r.push(this.context),e.put(this.context,0);;){let e=r.pop();if(!e)break;for(let r=0;r<e.size;r++)t+=" s"+n(e),t+="->",t+="s"+n(e.getParent(r)),t+='[label="'+e.getReturnState(r)+'"];\n'}return t+="}\n",t.toString()}toString(t,e,r){null==r&&(r=null!=e),null==e&&(e=!0);let n,i="";n=r?this.context.toStrings(t,this.state.stateNumber):["?"];let o=!0;for(let t of n)o?o=!1:i+=", ",i+="(",i+=this.state,e&&(i+=",",i+=this.alt),this.context&&(i+=",",i+=t),this.semanticContext!==h.SemanticContext.NONE&&(i+=",",i+=this.semanticContext),this.reachesIntoOuterContext&&(i+=",up="+this.outerContextDepth),i+=")";return i.toString()}};n([l.NotNull],f.prototype,"_state",void 0),n([l.NotNull],f.prototype,"_context",void 0),n([l.NotNull],f.prototype,"state",null),n([l.NotNull,i(0,l.NotNull)],f.prototype,"context",null),n([l.NotNull],f.prototype,"semanticContext",null),n([l.Override],f.prototype,"clone",null),n([i(0,l.NotNull),i(2,l.NotNull)],f.prototype,"transformImpl",null),n([l.Override],f.prototype,"equals",null),n([l.Override],f.prototype,"hashCode",null),n([i(0,l.NotNull),i(3,l.NotNull)],f,"create",null),f=n([i(0,l.NotNull),i(2,l.NotNull)],f),e.ATNConfig=f;let y=class extends f{constructor(t,e,r,n){super(e,r,n),this._semanticContext=t}get semanticContext(){return this._semanticContext}};n([l.NotNull],y.prototype,"_semanticContext",void 0),n([l.Override],y.prototype,"semanticContext",null),y=n([i(1,l.NotNull),i(2,l.NotNull)],y);let g=class extends f{constructor(t,e,r,n,i){if("number"==typeof r)super(e,r,n);else if(super(e,r,n),r.semanticContext!==h.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=i}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};n([l.Override],g.prototype,"lexerActionExecutor",null),n([l.Override],g.prototype,"hasPassedThroughNonGreedyDecision",null),g=n([i(1,l.NotNull),i(2,l.NotNull)],g);let _=class extends y{constructor(t,e,r,n,i,o){super(e,r,n,i),this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=o}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};n([l.Override],_.prototype,"lexerActionExecutor",null),n([l.Override],_.prototype,"hasPassedThroughNonGreedyDecision",null),_=n([i(1,l.NotNull),i(2,l.NotNull)],_)},4181:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNConfigSet=void 0;const i=r(5967),o=r(4409),s=r(5127),a=r(7476),l=r(4112),u=r(6426),c=r(2155),h=r(8871),p=r(7997),d=r(5657),f=r(4897),y=r(6804),g=r(9603);class _{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function m(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(_.INSTANCE)}_.INSTANCE=new _;class v{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=m(),this.unmerged=[]):(this.mergedConfigs=m(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,!e&&t.isReadOnly||(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=m(),this.unmerged=[],this.configs=[],this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new u.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");y(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new v(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof l.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;y(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=d.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=p.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;i<this.unmerged.length;i++){let o=this.unmerged[i];if(this.canMerge(t,n,o)){o.outerContextDepth=Math.max(o.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(o.isPrecedenceFilterSuppressed=!0);let s=p.PredictionContext.join(o.context,t.context,e);return this.updatePropertiesForMergedConfig(t),o.context!==s&&(o.context=s,r&&(this.mergedConfigs.put(n,o),this.unmerged.splice(i,1)),!0)}}return this.configs.push(t),r?this.mergedConfigs.put(n,t):this.unmerged.push(t),this.updatePropertiesForAddedConfig(t),!0}updatePropertiesForMergedConfig(t){this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,y(!this.outermostConfigSet||!this._dipsIntoOuterContext)}updatePropertiesForAddedConfig(t){1===this.configs.length?this._uniqueAlt=t.alt:this._uniqueAlt!==t.alt&&(this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!f.SemanticContext.NONE.equals(t.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,y(!this.outermostConfigSet||!this._dipsIntoOuterContext)}canMerge(t,e,r){return t.state.stateNumber===r.state.stateNumber&&e.alt===r.alt&&t.semanticContext.equals(r.semanticContext)}getKey(t){return{state:t.state.stateNumber,alt:t.alt}}containsAll(t){for(let e of t){if(!(e instanceof l.ATNConfig))return!1;if(!this.contains(e))return!1}return!0}addAll(t,e){this.ensureWritable();let r=!1;for(let n of t)this.add(n,e)&&(r=!0);return r}clear(){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");this.mergedConfigs.clear(),this.unmerged.length=0,this.configs.length=0,this._dipsIntoOuterContext=!1,this._hasSemanticContext=!1,this._uniqueAlt=a.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0}equals(t){return this===t||t instanceof v&&this.outermostConfigSet===t.outermostConfigSet&&g.equals(this._conflictInfo,t._conflictInfo)&&s.ArrayEqualityComparator.INSTANCE.equals(this.configs,t.configs)}hashCode(){if(this.isReadOnly&&-1!==this.cachedHashCode)return this.cachedHashCode;let t=1;return t=5*t^(this.outermostConfigSet?1:0),t=5*t^s.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=t),t}toString(t){null==t&&(t=!1);let e="",r=this.configs.slice(0);r.sort(((t,e)=>t.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString()))),e+="[";for(let n=0;n<r.length;n++)n>0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}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(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],v.prototype,"getRepresentedAlternatives",null),n([c.Override],v.prototype,"size",null),n([c.Override],v.prototype,"isEmpty",null),n([c.Override],v.prototype,"contains",null),n([c.Override],v.prototype,Symbol.iterator,null),n([c.Override],v.prototype,"toArray",null),n([c.Override],v.prototype,"containsAll",null),n([c.Override],v.prototype,"clear",null),n([c.Override],v.prototype,"equals",null),n([c.Override],v.prototype,"hashCode",null),e.ATNConfigSet=v},1327:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializationOptions=void 0;const i=r(2155);class o{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),e.ATNDeserializationOptions=o},3583:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNDeserializer=void 0;const o=r(9509),s=r(4409),a=r(7476),l=r(1327),u=r(8503),c=r(7557),h=r(2254),p=r(4252),d=r(6426),f=r(2060),y=r(7646),g=r(9618),_=r(2333),m=r(986),v=r(2174),T=r(9223),b=r(1685),S=r(8888),E=r(2917),x=r(9929),O=r(2715),N=r(1844),A=r(4268),w=r(5617),R=r(8028),C=r(2155),P=r(9040),I=r(8541),k=r(1259),L=r(7297),D=r(2163),j=r(1294),M=r(1012),F=r(5957),U=r(7695),z=r(1651),B=r(3883),H=r(985),q=r(3555),$=r(7381),V=r(8025),W=r(637),Y=r(5007),G=r(442);var K;!function(t){t[t.UNICODE_BMP=0]="UNICODE_BMP",t[t.UNICODE_SMP=1]="UNICODE_SMP"}(K||(K={}));class X{constructor(t){void 0===t&&(t=l.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=X.SUPPORTED_UUIDS.findIndex((e=>e.equals(t)));return!(r<0)&&X.SUPPORTED_UUIDS.findIndex((t=>t.equals(e)))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>X.toInt(t[e]),size:1}:{readUnicode:(t,e)=>X.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;e<t.length;e++)t[e]=t[e]-2&65535;let e=0,r=X.toInt(t[e++]);if(r!==X.SERIALIZED_VERSION){let t=`Could not deserialize ATN with version ${r} (expected ${X.SERIALIZED_VERSION}).`;throw new Error(t)}let n=X.toUUID(t,e);if(e+=8,X.SUPPORTED_UUIDS.findIndex((t=>t.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${X.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,n),l=X.toInt(t[e++]),d=X.toInt(t[e++]),g=new a.ATN(l,d),v=[],b=[],E=X.toInt(t[e++]);for(let r=0;r<E;r++){let r=X.toInt(t[e++]);if(r===u.ATNStateType.INVALID_TYPE){g.addState(new T.InvalidState);continue}let n=X.toInt(t[e++]);65535===n&&(n=-1);let i=this.stateFactory(r,n);if(r===u.ATNStateType.LOOP_END){let r=X.toInt(t[e++]);v.push([i,r])}else if(i instanceof y.BlockStartState){let r=X.toInt(t[e++]);b.push([i,r])}g.addState(i)}for(let t of v)t[0].loopBackState=g.states[t[1]];for(let t of b)t[0].endState=g.states[t[1]];let x=X.toInt(t[e++]);for(let r=0;r<x;r++){let r=X.toInt(t[e++]);g.states[r].nonGreedy=!0}let O=X.toInt(t[e++]);for(let r=0;r<O;r++){let r=X.toInt(t[e++]);g.states[r].sll=!0}let N=X.toInt(t[e++]);for(let r=0;r<N;r++){let r=X.toInt(t[e++]);g.states[r].isPrecedenceRule=!0}let A=X.toInt(t[e++]);0===g.grammarType&&(g.ruleToTokenType=new Int32Array(A)),g.ruleToStartState=new Array(A);for(let r=0;r<A;r++){let i=X.toInt(t[e++]),o=g.states[i];if(o.leftFactored=0!==X.toInt(t[e++]),g.ruleToStartState[r]=o,0===g.grammarType){let i=X.toInt(t[e++]);if(65535===i&&(i=V.Token.EOF),g.ruleToTokenType[r]=i,!X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,n)){let r=X.toInt(t[e++]);65535===r&&(r=-1)}}}g.ruleToStopState=new Array(A);for(let t of g.states)t instanceof U.RuleStopState&&(g.ruleToStopState[t.ruleIndex]=t,g.ruleToStartState[t.ruleIndex].stopState=t);let w=X.toInt(t[e++]);for(let r=0;r<w;r++){let r=X.toInt(t[e++]);g.modeToStartState.push(g.states[r])}g.modeToDFA=new Array(w);for(let t=0;t<w;t++)g.modeToDFA[t]=new _.DFA(g.modeToStartState[t]);let C=[];e=this.deserializeSets(t,e,C,X.getUnicodeDeserializer(0)),X.isFeatureSupported(X.ADDED_UNICODE_SMP,n)&&(e=this.deserializeSets(t,e,C,X.getUnicodeDeserializer(1)));let P=X.toInt(t[e++]);for(let r=0;r<P;r++){let r=X.toInt(t[e]),n=X.toInt(t[e+1]),i=X.toInt(t[e+2]),o=X.toInt(t[e+3]),s=X.toInt(t[e+4]),a=X.toInt(t[e+5]),l=this.edgeFactory(g,i,r,n,o,s,a,C);g.states[r].addTransition(l),e+=6}let I=new s.Array2DHashSet({hashCode:t=>t.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),D=[];for(let t of g.states){let e=t.ruleIndex>=0&&g.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r<t.numberOfTransitions;r++){let n=t.transition(r);if(!(n instanceof z.RuleTransition))continue;let i=n;if(!g.ruleToStartState[i.target.ruleIndex].leftFactored&&e)continue;let o=-1;g.ruleToStartState[i.target.ruleIndex].isPrecedenceRule&&0===i.precedence&&(o=i.target.ruleIndex);let s={stopState:i.target.ruleIndex,returnState:i.followState.stateNumber,outermostPrecedenceReturn:o};I.add(s)&&D.push(s)}}for(let t of D){let e=new m.EpsilonTransition(g.states[t.returnState],t.outermostPrecedenceReturn);g.ruleToStopState[t.stopState].addTransition(e)}for(let t of g.states){if(t instanceof y.BlockStartState){if(void 0===t.endState)throw new Error("IllegalStateException");if(void 0!==t.endState.startState)throw new Error("IllegalStateException");t.endState.startState=t}if(t instanceof L.PlusLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof k.PlusBlockStartState&&(r.loopBackState=e)}}else if(t instanceof q.StarLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof $.StarLoopEntryState&&(r.loopBackState=e)}}}let j=X.toInt(t[e++]);for(let r=1;r<=j;r++){let n=X.toInt(t[e++]),i=g.states[n];g.decisionToState.push(i),i.decision=r-1}if(0===g.grammarType)if(i){g.lexerActions=new Array(X.toInt(t[e++]));for(let r=0;r<g.lexerActions.length;r++){let n=X.toInt(t[e++]),i=X.toInt(t[e++]);65535===i&&(i=-1);let o=X.toInt(t[e++]);65535===o&&(o=-1);let s=this.lexerActionFactory(n,i,o);g.lexerActions[r]=s}}else{let t=[];for(let e of g.states)for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);if(!(n instanceof o.ActionTransition))continue;let i=n.ruleIndex,s=n.actionIndex,a=new S.LexerCustomAction(i,s);e.setTransition(r,new o.ActionTransition(n.target,i,t.length,!1)),t.push(a)}g.lexerActions=t}this.markPrecedenceDecisions(g),g.decisionToDFA=new Array(j);for(let t=0;t<j;t++)g.decisionToDFA[t]=new _.DFA(g.decisionToState[t],t);if(this.deserializationOptions.isVerifyATN&&this.verifyATN(g),this.deserializationOptions.isGenerateRuleBypassTransitions&&1===g.grammarType){g.ruleToTokenType=new Int32Array(g.ruleToStartState.length);for(let t=0;t<g.ruleToStartState.length;t++)g.ruleToTokenType[t]=g.maxTokenType+t+1;for(let t=0;t<g.ruleToStartState.length;t++){let e=new h.BasicBlockStartState;e.ruleIndex=t,g.addState(e);let r,n,i=new f.BlockEndState;if(i.ruleIndex=t,g.addState(i),e.endState=i,g.defineDecisionState(e),i.startState=e,g.ruleToStartState[t].isPrecedenceRule){r=void 0;for(let e of g.states){if(e.ruleIndex!==t)continue;if(!(e instanceof $.StarLoopEntryState))continue;let n=e.transition(e.numberOfTransitions-1).target;if(n instanceof R.LoopEndState&&n.epsilonOnlyTransitions&&n.transition(0).target instanceof U.RuleStopState){r=e;break}}if(!r)throw new Error("Couldn't identify final state of the precedence rule prefix section.");n=r.loopBackState.transition(0)}else r=g.ruleToStopState[t];for(let t of g.states)for(let e=0;e<t.numberOfTransitions;e++){let o=t.transition(e);o!==n&&o.target===r&&(o.target=i)}for(;g.ruleToStartState[t].numberOfTransitions>0;){let r=g.ruleToStartState[t].removeTransition(g.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}g.ruleToStartState[t].addTransition(new m.EpsilonTransition(e)),i.addTransition(new m.EpsilonTransition(r));let o=new p.BasicState;g.addState(o),o.addTransition(new c.AtomTransition(i,g.ruleToTokenType[t])),e.addTransition(new m.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(g)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=X.inlineSetRules(g),t+=X.combineChainedEpsilons(g);let e=0===g.grammarType;if(t+=X.optimizeSets(g,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(g)}return X.identifyTailCalls(g),g}deserializeSets(t,e,r,n){let i=X.toInt(t[e++]);for(let o=0;o<i;o++){let i=X.toInt(t[e]);e++;let o=new v.IntervalSet;r.push(o),0!==X.toInt(t[e++])&&o.add(-1);for(let r=0;r<i;r++){let r=n.readUnicode(t,e);e+=n.size;let i=n.readUnicode(t,e);e+=n.size,o.add(r,i)}}return e}markPrecedenceDecisions(t){let e=new Map;for(let r of t.states)if(r instanceof $.StarLoopEntryState&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){let n=r.transition(r.numberOfTransitions-1).target;n instanceof R.LoopEndState&&n.epsilonOnlyTransitions&&n.transition(0).target instanceof U.RuleStopState&&(e.set(r.ruleIndex,r),r.precedenceRuleDecision=!0,r.precedenceLoopbackStates=new d.BitSet(t.states.length))}for(let r of e)for(let e of t.ruleToStopState[r[0]].getTransitions())1===e.serializationType&&-1===e.outermostPrecedenceReturn&&r[1].precedenceLoopbackStates.set(e.target.stateNumber)}verifyATN(t){for(let e of t.states)if(this.checkCondition(void 0!==e,"ATN states should not be undefined."),e.stateType!==u.ATNStateType.INVALID_TYPE){if(this.checkCondition(e.onlyHasEpsilonTransitions||e.numberOfTransitions<=1),e instanceof k.PlusBlockStartState&&this.checkCondition(void 0!==e.loopBackState),e instanceof $.StarLoopEntryState){let t=e;if(this.checkCondition(void 0!==t.loopBackState),this.checkCondition(2===t.numberOfTransitions),t.transition(0).target instanceof H.StarBlockStartState)this.checkCondition(t.transition(1).target instanceof R.LoopEndState),this.checkCondition(!t.nonGreedy);else{if(!(t.transition(0).target instanceof R.LoopEndState))throw new Error("IllegalStateException");this.checkCondition(t.transition(1).target instanceof H.StarBlockStartState),this.checkCondition(t.nonGreedy)}}if(e instanceof q.StarLoopbackState&&(this.checkCondition(1===e.numberOfTransitions),this.checkCondition(e.transition(0).target instanceof $.StarLoopEntryState)),e instanceof R.LoopEndState&&this.checkCondition(void 0!==e.loopBackState),e instanceof F.RuleStartState&&this.checkCondition(void 0!==e.stopState),e instanceof y.BlockStartState&&this.checkCondition(void 0!==e.endState),e instanceof f.BlockEndState&&this.checkCondition(void 0!==e.startState),e instanceof g.DecisionState){let t=e;this.checkCondition(t.numberOfTransitions<=1||t.decision>=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof U.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e<t.ruleToStartState.length;e++){let n=t.ruleToStartState[e];for(;n.onlyHasEpsilonTransitions&&1===n.numberOfOptimizedTransitions&&1===n.getOptimizedTransition(0).serializationType;)n=n.getOptimizedTransition(0).target;if(1!==n.numberOfOptimizedTransitions)continue;let i=n.getOptimizedTransition(0),o=i.target;if(!i.isEpsilon&&o.onlyHasEpsilonTransitions&&1===o.numberOfOptimizedTransitions&&o.getOptimizedTransition(0).target instanceof U.RuleStopState)switch(i.serializationType){case 5:case 2:case 7:r[e]=i;break;default:continue}}for(let n of t.states){if(n.ruleIndex<0)continue;let i;for(let o=0;o<n.numberOfOptimizedTransitions;o++){let s=n.getOptimizedTransition(o);if(!(s instanceof z.RuleTransition)){void 0!==i&&i.push(s);continue}let a=s,l=r[a.target.ruleIndex];if(void 0===l){void 0!==i&&i.push(s);continue}if(void 0===i){i=[];for(let t=0;t<o;t++)i.push(n.getOptimizedTransition(o))}e++;let u=a.followState,h=new p.BasicState;switch(h.setRuleIndex(u.ruleIndex),t.addState(h),i.push(new m.EpsilonTransition(h)),l.serializationType){case 5:h.addTransition(new c.AtomTransition(u,l._label));break;case 2:h.addTransition(new M.RangeTransition(u,l.from,l.to));break;case 7:h.addTransition(new B.SetTransition(u,l.label));break;default:throw new Error("UnsupportedOperationException")}}if(void 0!==i){if(n.isOptimized)for(;n.numberOfOptimizedTransitions>0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let t;t:for(let n=0;n<r.numberOfOptimizedTransitions;n++){let i=r.getOptimizedTransition(n),o=i.target;if(1===i.serializationType&&-1===i.outermostPrecedenceReturn&&o.stateType===u.ATNStateType.BASIC&&o.onlyHasEpsilonTransitions){for(let e=0;e<o.numberOfOptimizedTransitions;e++)if(1!==o.getOptimizedTransition(e).serializationType||-1!==o.getOptimizedTransition(e).outermostPrecedenceReturn){void 0!==t&&t.push(i);continue t}if(e++,void 0===t){t=[];for(let e=0;e<n;e++)t.push(r.getOptimizedTransition(e))}for(let e=0;e<o.numberOfOptimizedTransitions;e++){let r=o.getOptimizedTransition(e).target;t.push(new m.EpsilonTransition(r))}}else void 0!==t&&t.push(i)}if(void 0!==t){if(r.isOptimized)for(;r.numberOfOptimizedTransitions>0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new v.IntervalSet;for(let t=0;t<e.numberOfOptimizedTransitions;t++){let r=e.getOptimizedTransition(t);if(!(r instanceof m.EpsilonTransition))continue;if(1!==r.target.numberOfOptimizedTransitions)continue;let i=r.target.getOptimizedTransition(0);i.target instanceof f.BlockEndState&&(i instanceof P.NotSetTransition||(i instanceof c.AtomTransition||i instanceof M.RangeTransition||i instanceof B.SetTransition)&&n.add(t))}if(n.size<=1)continue;let i=[];for(let t=0;t<e.numberOfOptimizedTransitions;t++)n.contains(t)||i.push(e.getOptimizedTransition(t));let o,s=e.getOptimizedTransition(n.minElement).target.getOptimizedTransition(0).target,a=new v.IntervalSet;for(let t of n.intervals)for(let r=t.a;r<=t.b;r++){let t=e.getOptimizedTransition(r).target.getOptimizedTransition(0);if(t instanceof P.NotSetTransition)throw new Error("Not yet implemented.");a.addAll(t.label)}if(1===a.intervals.length)if(1===a.size)o=new c.AtomTransition(s,a.minElement);else{let t=a.intervals[0];o=new M.RangeTransition(s,t.a,t.b)}else o=new B.SetTransition(s,a);let l=new p.BasicState;if(l.setRuleIndex(e.ruleIndex),t.addState(l),l.addTransition(o),i.push(new m.EpsilonTransition(l)),r+=e.numberOfOptimizedTransitions-i.length,e.isOptimized)for(;e.numberOfOptimizedTransitions>0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return I.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);n instanceof z.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}if(e.isOptimized)for(let r=0;r<e.numberOfOptimizedTransitions;r++){let n=e.getOptimizedTransition(r);n instanceof z.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}}}static testTailCall(t,e,r){if(!r&&e.tailCall)return!0;if(r&&e.optimizedTailCall)return!0;let n=new d.BitSet(t.states.length),i=[];for(i.push(e.followState);;){let t=i.pop();if(!t)break;if(n.get(t.stateNumber))continue;if(t instanceof U.RuleStopState)continue;if(!t.onlyHasEpsilonTransitions)return!1;let e=r?t.numberOfOptimizedTransitions:t.numberOfTransitions;for(let n=0;n<e;n++){let e=r?t.getOptimizedTransition(n):t.transition(n);if(1!==e.serializationType)return!1;i.push(e.target)}}return!0}static toInt(t){return t}static toInt32(t,e){return(t[e]|t[e+1]<<16)>>>0}static toUUID(t,e){let r=X.toInt32(t,e),n=X.toInt32(t,e+2),i=X.toInt32(t,e+4),o=X.toInt32(t,e+6);return new Y.UUID(o,i,n,r)}edgeFactory(t,e,r,n,i,s,a,l){let u=t.states[n];switch(e){case 1:return new m.EpsilonTransition(u);case 2:return 0!==a?new M.RangeTransition(u,V.Token.EOF,s):new M.RangeTransition(u,i,s);case 3:return new z.RuleTransition(t.states[i],s,a,u);case 4:return new j.PredicateTransition(u,i,s,0!==a);case 10:return new D.PrecedencePredicateTransition(u,i);case 5:return 0!==a?new c.AtomTransition(u,V.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==a);case 7:return new B.SetTransition(u,l[i]);case 8:return new P.NotSetTransition(u,l[i]);case 9:return new G.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case u.ATNStateType.INVALID_TYPE:return new T.InvalidState;case u.ATNStateType.BASIC:r=new p.BasicState;break;case u.ATNStateType.RULE_START:r=new F.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new k.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new H.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new W.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new q.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new $.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new L.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new R.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new b.LexerChannelAction(e);case 1:return new S.LexerCustomAction(e,r);case 2:return new E.LexerModeAction(e);case 3:return x.LexerMoreAction.INSTANCE;case 4:return O.LexerPopModeAction.INSTANCE;case 5:return new N.LexerPushModeAction(e);case 6:return A.LexerSkipAction.INSTANCE;case 7:return new w.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}X.BASE_SERIALIZED_UUID=Y.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),X.ADDED_LEXER_ACTIONS=Y.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),X.ADDED_UNICODE_SMP=Y.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,n([C.NotNull],X.prototype,"deserializationOptions",void 0),n([i(0,C.NotNull)],X.prototype,"deserialize",null),n([i(0,C.NotNull)],X.prototype,"markPrecedenceDecisions",null),n([C.NotNull,i(0,C.NotNull)],X.prototype,"edgeFactory",null),e.ATNDeserializer=X},5570:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNSimulator=void 0;const o=r(4181),s=r(1261),a=r(2155),l=r(7997);let u=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new s.DFAState(new o.ATNConfigSet),t._ERROR.stateNumber=l.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([a.NotNull],u.prototype,"atn",void 0),n([a.NotNull],u,"ERROR",null),u=n([i(0,a.NotNull)],u),e.ATNSimulator=u,u=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=u},9103:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ATNState=void 0;const i=r(2155);class o{constructor(){this.stateNumber=o.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(t){return t instanceof o&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),e.ATNState=o,function(t){t.INVALID_STATE_NUMBER=-1}(o=e.ATNState||(e.ATNState={}))},8503:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ATNStateType=void 0,(r=e.ATNStateType||(e.ATNStateType={}))[r.INVALID_TYPE=0]="INVALID_TYPE",r[r.BASIC=1]="BASIC",r[r.RULE_START=2]="RULE_START",r[r.BLOCK_START=3]="BLOCK_START",r[r.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",r[r.STAR_BLOCK_START=5]="STAR_BLOCK_START",r[r.TOKEN_START=6]="TOKEN_START",r[r.RULE_STOP=7]="RULE_STOP",r[r.BLOCK_END=8]="BLOCK_END",r[r.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",r[r.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",r[r.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",r[r.LOOP_END=12]="LOOP_END"},2207:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractPredicateTransition=void 0;const n=r(7224);class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},9509:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ActionTransition=void 0;const o=r(2155),s=r(7224);let a=class extends s.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.ActionTransition=a},8981:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AmbiguityInfo=void 0;const o=r(4826),s=r(2155);let a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o){super(t,e,n,i,o,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],a.prototype,"ambigAlts",void 0),n([s.NotNull],a.prototype,"ambiguousAlternatives",null),a=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],a),e.AmbiguityInfo=a},7557:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AtomTransition=void 0;const o=r(2174),s=r(2155),a=r(7224);let l=class extends a.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.AtomTransition=l},2254:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlockStartState=void 0;const i=r(8503),o=r(7646),s=r(2155);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.BasicBlockStartState=a},4252:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BasicState=void 0;const i=r(9103),o=r(8503),s=r(2155);class a extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],a.prototype,"stateType",null),e.BasicState=a},2060:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.BlockEndState=void 0;const i=r(9103),o=r(8503),s=r(2155);class a extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],a.prototype,"stateType",null),e.BlockEndState=a},7646:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BlockStartState=void 0;const n=r(9618);class i extends n.DecisionState{}e.BlockStartState=i},4137:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ConflictInfo=void 0;const i=r(2155),o=r(9603);class s{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof s&&this.isExact===t.isExact&&o.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),e.ConflictInfo=s},3167:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextSensitivityInfo=void 0;const o=r(4826),s=r(2155);let a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ContextSensitivityInfo=a},4826:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionEventInfo=void 0;const o=r(2155);let s=class{constructor(t,e,r,n,i,o){this.decision=t,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),e.DecisionEventInfo=s},2793:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionInfo=void 0;const i=r(2155);class o{constructor(t){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=t}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+"}"}}n([i.Override],o.prototype,"toString",null),e.DecisionInfo=o},9618:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DecisionState=void 0;const n=r(9103);class i extends n.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}}e.DecisionState=i},986:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.EpsilonTransition=void 0;const o=r(2155),s=r(7224);let a=class extends s.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.EpsilonTransition=a},7099:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInfo=void 0;const o=r(4826),s=r(2155);let a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};a=n([i(1,s.NotNull),i(2,s.NotNull)],a),e.ErrorInfo=a},9223:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.InvalidState=void 0;const i=r(8503),o=r(4252),s=r(2155);class a extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],a.prototype,"stateType",null),e.InvalidState=a},798:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LL1Analyzer=void 0;const o=r(2207),s=r(4409),a=r(4112),l=r(6426),u=r(2174),c=r(2155),h=r(9040),p=r(8871),d=r(7997),f=r(7695),y=r(1651),g=r(8025),_=r(442);let m=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n<e.numberOfTransitions;n++){let i=new u.IntervalSet;r[n]=i;let o=new s.Array2DHashSet(p.ObjectEqualityComparator.INSTANCE),a=!1;this._LOOK(e.transition(n).target,void 0,d.PredictionContext.EMPTY_LOCAL,i,o,new l.BitSet,a,!1),(0===i.size||i.contains(t.HIT_PRED))&&(i=void 0,r[n]=i)}return r}LOOK(t,e,r){if(void 0===r){if(null==t.atn)throw new Error("Illegal state");r=t.atn.ruleToStopState[t.ruleIndex]}else null===r&&(r=void 0);let n=new u.IntervalSet;return this._LOOK(t,r,e,n,new s.Array2DHashSet,new l.BitSet,!0,!0),n}_LOOK(e,r,n,i,s,l,c,p){let m=a.ATNConfig.create(e,0,n);if(!s.add(m))return;if(e===r){if(d.PredictionContext.isEmptyLocal(n))return void i.add(g.Token.EPSILON);if(n.isEmpty)return void(p&&i.add(g.Token.EOF))}if(e instanceof f.RuleStopState){if(n.isEmpty&&!d.PredictionContext.isEmptyLocal(n))return void(p&&i.add(g.Token.EOF));let t=l.get(e.ruleIndex);try{l.clear(e.ruleIndex);for(let t=0;t<n.size;t++){if(n.getReturnState(t)===d.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let e=this.atn.states[n.getReturnState(t)];this._LOOK(e,r,n.getParent(t),i,s,l,c,p)}}finally{t&&l.set(e.ruleIndex)}}let v=e.numberOfTransitions;for(let a=0;a<v;a++){let d=e.transition(a);if(d instanceof y.RuleTransition){if(l.get(d.ruleIndex))continue;let t=n.getChild(d.followState.stateNumber);try{l.set(d.ruleIndex),this._LOOK(d.target,r,t,i,s,l,c,p)}finally{l.clear(d.ruleIndex)}}else if(d instanceof o.AbstractPredicateTransition)c?this._LOOK(d.target,r,n,i,s,l,c,p):i.add(t.HIT_PRED);else if(d.isEpsilon)this._LOOK(d.target,r,n,i,s,l,c,p);else if(d instanceof _.WildcardTransition)i.addAll(u.IntervalSet.of(g.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else{let t=d.label;null!=t&&(d instanceof h.NotSetTransition&&(t=t.complement(u.IntervalSet.of(g.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),i.addAll(t))}}}};m.HIT_PRED=g.Token.INVALID_TYPE,n([c.NotNull],m.prototype,"atn",void 0),n([c.NotNull,i(0,c.NotNull),i(1,c.NotNull)],m.prototype,"LOOK",null),n([i(0,c.NotNull),i(2,c.NotNull),i(3,c.NotNull),i(4,c.NotNull),i(5,c.NotNull)],m.prototype,"_LOOK",null),m=n([i(0,c.NotNull)],m),e.LL1Analyzer=m},9849:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerATNSimulator=void 0;const o=r(4760),s=r(7476),a=r(4112),l=r(4181),u=r(5570),c=r(1261),h=r(1128),p=r(1894),d=r(5548),f=r(3485),y=r(6517),g=r(2155),_=r(4006),m=r(7997),v=r(7695),T=r(8025),b=r(6804);let S=class t extends u.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let n=this.atn.modeToDFA[e].s0;return null==n?this.matchATN(t):this.execATN(t,n)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let t=this.atn.modeToDFA[this.mode];t.s0?s=t.s0:t.s0=s}let a=this.execATN(e,s);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===u.ATNSimulator.ERROR)break;if(n!==p.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===p.IntStream.EOF))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new _.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===p.IntStream.EOF&&e.index===this.startIndex)return T.Token.EOF;throw new y.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t<a;t++){let a=s.state.getOptimizedTransition(t),l=this.getReachableTarget(a,i);if(null!=l){let t,a=s.lexerActionExecutor;null!=a?(a=a.fixOffsetBeforeMatch(e.index-this.startIndex),t=s.transform(l,!0,a)):(b(null==s.lexerActionExecutor),t=s.transform(l,!0));let u=i===p.IntStream.EOF;if(this.closure(e,t,n,r,!0,u)){o=s.alt;break}}}}}accept(e,r,n,i,o,s){t.debug&&console.log(`ACTION ${r}`),e.seek(i),this._line=o,this._charPositionInLine=s,null!=r&&null!=this.recog&&r.execute(this.recog,e,n)}getReachableTarget(t,e){if(t.matches(e,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE))return t.target}computeStartState(t,e){let r=m.PredictionContext.EMPTY_FULL,n=new _.OrderedATNConfigSet;for(let i=0;i<e.numberOfTransitions;i++){let o=e.transition(i).target,s=a.ATNConfig.create(o,i+1,r);this.closure(t,s,n,!1,!1,!1)}return n}closure(e,r,n,i,o,s){if(t.debug&&console.log("closure("+r.toString(this.recog,!0)+")"),r.state instanceof v.RuleStopState){t.debug&&(null!=this.recog?console.log(`closure at ${this.recog.ruleNames[r.state.ruleIndex]} rule stop ${r}`):console.log(`closure at rule stop ${r}`));let a=r.context;if(a.isEmpty)return n.add(r),!0;a.hasEmpty&&(n.add(r.transform(r.state,!0,m.PredictionContext.EMPTY_FULL)),i=!0);for(let t=0;t<a.size;t++){let l=a.getReturnState(t);if(l===m.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let u=a.getParent(t),c=this.atn.states[l],h=r.transform(c,!1,u);i=this.closure(e,h,n,i,o,s)}return i}r.state.onlyHasEpsilonTransitions||i&&r.hasPassedThroughNonGreedyDecision||n.add(r);let a=r.state;for(let t=0;t<a.numberOfOptimizedTransitions;t++){let l=a.getOptimizedTransition(t),u=this.getEpsilonTarget(e,r,l,n,o,s);null!=u&&(i=this.closure(e,u,n,i,o,s))}return i}getEpsilonTarget(e,r,n,i,o,s){let a;switch(n.serializationType){case 3:let l=n;if(this.optimize_tail_calls&&l.optimizedTailCall&&!r.context.hasEmpty)a=r.transform(n.target,!0);else{let t=r.context.getChild(l.followState.stateNumber);a=r.transform(n.target,!0,t)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let u=n;t.debug&&console.log("EVAL rule "+u.ruleIndex+":"+u.predIndex),i.hasSemanticContext=!0,a=this.evaluatePredicate(e,u.ruleIndex,u.predIndex,o)?r.transform(n.target,!0):void 0;break;case 6:if(r.context.hasEmpty){let t=f.LexerActionExecutor.append(r.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);a=r.transform(n.target,!0,t);break}a=r.transform(n.target,!0);break;case 1:a=r.transform(n.target,!0);break;case 5:case 2:case 7:if(s&&n.matches(p.IntStream.EOF,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE)){a=r.transform(n.target,!1);break}a=void 0;break;default:a=void 0}return a}evaluatePredicate(t,e,r,n){if(null==this.recog)return!0;if(!n)return this.recog.sempred(void 0,e,r);let i=this._charPositionInLine,o=this._line,s=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(void 0,e,r)}finally{this._charPositionInLine=i,this._line=o,t.seek(s),t.release(a)}}captureSimState(t,e,r){t.index=e.index,t.line=this._line,t.charPos=this._charPositionInLine,t.dfaState=r}addDFAEdge(e,r,n){if(n instanceof l.ATNConfigSet){let t=n.hasSemanticContext;t&&(n.hasSemanticContext=!1);let i=this.addDFAState(n);return t||this.addDFAEdge(e,r,i),i}t.debug&&console.log("EDGE "+e+" -> "+n+" upon "+String.fromCharCode(r)),null!=e&&e.setTarget(r,n)}addDFAState(t){b(!t.hasSemanticContext);let e=new c.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof v.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};n([g.NotNull],S.prototype,"prevAccept",void 0),n([i(0,g.NotNull)],S.prototype,"copyState",null),n([i(0,g.NotNull)],S.prototype,"match",null),n([g.Override],S.prototype,"reset",null),n([i(0,g.NotNull)],S.prototype,"matchATN",null),n([i(0,g.NotNull),i(1,g.NotNull)],S.prototype,"execATN",null),n([i(0,g.NotNull)],S.prototype,"getExistingTargetState",null),n([g.NotNull,i(0,g.NotNull),i(1,g.NotNull)],S.prototype,"computeTargetState",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],S.prototype,"getReachableConfigSet",null),n([i(0,g.NotNull)],S.prototype,"accept",null),n([g.NotNull,i(0,g.NotNull),i(1,g.NotNull)],S.prototype,"computeStartState",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],S.prototype,"closure",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull),i(3,g.NotNull)],S.prototype,"getEpsilonTarget",null),n([i(0,g.NotNull)],S.prototype,"evaluatePredicate",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],S.prototype,"captureSimState",null),n([g.NotNull,i(0,g.NotNull)],S.prototype,"addDFAState",null),n([g.NotNull],S.prototype,"getDFA",null),n([g.NotNull,i(0,g.NotNull)],S.prototype,"getText",null),n([i(0,g.NotNull)],S.prototype,"consume",null),n([g.NotNull],S.prototype,"getTokenName",null),S=n([i(0,g.NotNull)],S),e.LexerATNSimulator=S,function(t){t.debug=!1,t.dfa_debug=!1,t.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}}}(S=e.LexerATNSimulator||(e.LexerATNSimulator={})),e.LexerATNSimulator=S},3485:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerActionExecutor=void 0;const o=r(5127),s=r(9232),a=r(1363),l=r(2155);let u=class t{constructor(t){this._lexerActions=t;let e=a.MurmurHash.initialize();for(let r of t)e=a.MurmurHash.update(e,r);this.cachedHashCode=a.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t<this._lexerActions.length;t++)!this._lexerActions[t].isPositionDependent||this._lexerActions[t]instanceof s.LexerIndexedCustomAction||(r||(r=this._lexerActions.slice(0)),r[t]=new s.LexerIndexedCustomAction(e,this._lexerActions[t]));return r?new t(r):this}get lexerActions(){return this._lexerActions}execute(t,e,r){let n=!1,i=e.index;try{for(let o of this._lexerActions){if(o instanceof s.LexerIndexedCustomAction){let t=o.offset;e.seek(r+t),o=o.action,n=r+t!==i}else o.isPositionDependent&&(e.seek(i),n=!1);o.execute(t)}}finally{n&&e.seek(i)}}hashCode(){return this.cachedHashCode}equals(e){return e===this||e instanceof t&&this.cachedHashCode===e.cachedHashCode&&o.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,e._lexerActions)}};n([l.NotNull],u.prototype,"_lexerActions",void 0),n([l.NotNull],u.prototype,"lexerActions",null),n([i(0,l.NotNull)],u.prototype,"execute",null),n([l.Override],u.prototype,"hashCode",null),n([l.Override],u.prototype,"equals",null),n([l.NotNull,i(1,l.NotNull)],u,"append",null),u=n([i(0,l.NotNull)],u),e.LexerActionExecutor=u},1685:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerChannelAction=void 0;const o=r(1363),s=r(2155);class a{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._channel),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerChannelAction=a},8888:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerCustomAction=void 0;const o=r(1363),s=r(2155);class a{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._ruleIndex),t=o.MurmurHash.update(t,this._actionIndex),o.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof a&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),e.LexerCustomAction=a},9232:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerIndexedCustomAction=void 0;const o=r(1363),s=r(2155);let a=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this._offset),t=o.MurmurHash.update(t,this._action),o.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([s.NotNull],a.prototype,"action",null),n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),a=n([i(1,s.NotNull)],a),e.LexerIndexedCustomAction=a},2917:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerModeAction=void 0;const o=r(1363),s=r(2155);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerModeAction=a},9929:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerMoreAction=void 0;const o=r(1363),s=r(2155);class a{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerMoreAction=a,function(t){t.INSTANCE=new t}(a=e.LexerMoreAction||(e.LexerMoreAction={}))},2715:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPopModeAction=void 0;const o=r(1363),s=r(2155);class a{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPopModeAction=a,function(t){t.INSTANCE=new t}(a=e.LexerPopModeAction||(e.LexerPopModeAction={}))},1844:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerPushModeAction=void 0;const o=r(1363),s=r(2155);class a{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerPushModeAction=a},4268:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerSkipAction=void 0;const o=r(1363),s=r(2155);class a{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerSkipAction=a,function(t){t.INSTANCE=new t}(a=e.LexerSkipAction||(e.LexerSkipAction={}))},5617:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerTypeAction=void 0;const o=r(1363),s=r(2155);class a{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._type),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof a&&this._type===t._type}toString(){return`type(${this._type})`}}n([s.Override],a.prototype,"actionType",null),n([s.Override],a.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],a.prototype,"execute",null),n([s.Override],a.prototype,"hashCode",null),n([s.Override],a.prototype,"equals",null),n([s.Override],a.prototype,"toString",null),e.LexerTypeAction=a},3283:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LookaheadEventInfo=void 0;const o=r(4826),s=r(2155);let a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s){super(t,e,n,i,o,s),this.predictedAlt=r}};a=n([i(3,s.NotNull)],a),e.LookaheadEventInfo=a},8028:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.LoopEndState=void 0;const i=r(9103),o=r(8503),s=r(2155);class a extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],a.prototype,"stateType",null),e.LoopEndState=a},9040:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.NotSetTransition=void 0;const o=r(2155),s=r(3883);let a=class extends s.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull),i(1,o.Nullable)],a),e.NotSetTransition=a},4006:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.OrderedATNConfigSet=void 0;const i=r(4181),o=r(2155);class s extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new s(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),e.OrderedATNConfigSet=s},2373:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseInfo=void 0;const o=r(2155);let s=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r<t.length;r++)t[r].LL_Fallback>0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r<e.length;r++)t+=this.getDFASize(r);return t}}};n([o.NotNull],s.prototype,"getDecisionInfo",null),n([o.NotNull],s.prototype,"getLLDecisions",null),s=n([i(0,o.NotNull)],s),e.ParseInfo=s},8541:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserATNSimulator=void 0;const o=r(4760),s=r(9509),a=r(4409),l=r(1415),u=r(7476),c=r(4112),h=r(4181),p=r(5570),d=r(8503),f=r(7557),y=r(6426),g=r(4137),_=r(9618),m=r(1261),v=r(6310),T=r(1128),b=r(1894),S=r(2155),E=r(9040),x=r(5314),O=r(8871),N=r(6267),A=r(7997),w=r(5657),R=r(2952),C=r(7695),P=r(1651),I=r(4897),k=r(3883),L=r(6181),D=r(8025),j=r(8567),M=r(6804),F=-2147483648;let U=class t extends p.ATNSimulator{constructor(t,e){super(t),this.predictionMode=R.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=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(M(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==R.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=N.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,e,n,i)),null==o&&(null==n&&(n=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let a=e.mark(),l=e.index;try{let r=this.execDFA(s,e,l,o);return t.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);if(null==e)return;return new L.SimulatorState(r,e,!1,r)}if(null==t.s0)return;return new L.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(M(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?M(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new L.SimulatorState(r,i,n,o):void 0}execDFA(e,r,n,i){let o=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=s.getContextTarget(this.getReturnState(l))),null==t){let t=new L.SimulatorState(i.outerContext,s,i.useContext,l);return this.execATN(e,r,n,t)}M(null!=l),l=l.parent,s=t}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?t.dfa_debug&&console.log("accept "+s):t.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}M(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,a);if(null==u){let u;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=T.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+s.stateNumber)}let c=new L.SimulatorState(o,s,i.useContext,l);return u=this.execATN(e,r,n,c),t.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+u),u}if(u===p.ATNSimulator.ERROR){let t=new L.SimulatorState(o,s,i.useContext,l);return this.handleNoViableAlt(r,n,t)}s=u,this.isAcceptState(s,i.useContext)||a===b.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&e.atnStartState instanceof _.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let t;M(!i.useContext);let a=s.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,o,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new L.SimulatorState(o,s,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,o,!0)}let u=s.predicates;if(null!=u){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===R.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,s,n,t,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+s.prediction),s.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==R.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,a=r.LA(1),l=i,c=new w.PredictionContextCache;for(;;){let i=this.computeReachSet(e,l,a,c);if(null==i)return this.setDFAEdge(l.s0,r.LA(1),p.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,l);let h=i.s0;if(M(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),M(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let l=h.configs.conflictingAlts,c=null==l?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&a>=0&&a<=65535){let t=(e.decision<<16>>>0)+a;this.atn.LL1Table.set(t,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(e,c,i,n,r.index)}c=h.prediction;let p=null!=l&&this.userWantsCtxSensitive;if(p&&(p=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),l=this.evalSemanticContext(t,o,p||this.reportAmbiguities),l.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return l.nextSetBit(0)}e!==n&&r.seek(e)}}if(p){M(!s),M(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+o);let a=this.computeStartState(e,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,l,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=l&&(this.reportAmbiguities&&l.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,l,h.configs),c=l.nextSetBit(0)),c}l=i,a!==b.IntStream.EOF&&(r.consume(),a=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new y.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof C.RuleStopState)&&o.add(t);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=t.index;try{t.seek(e);let o=this.evalSemanticContext(i,r.outerContext,!1);if(!o.isEmpty)return o.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,o=e.remainingOuterContext,s=e.s0;if(i)for(;s.isContextSymbol(r);){let t;if(null!=o&&(o=this.skipTailCalls(o),t=s.getContextTarget(this.getReturnState(o))),null==t)break;M(null!=o),o=o.parent,s=t}if(M(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new L.SimulatorState(e.outerContext,s,i,o);let a=s,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,o,r,i,n);l=e[0],o=e[1]}return l!==p.ATNSimulator.ERROR?(M(!i||!l.configs.dipsIntoOuterContext),new L.SimulatorState(e.outerContext,l,i,o)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,o,s){let a,l,c=r.configs.toArray(),d=new h.ATNConfigSet;do{let e=!o||null!=n;e||(d.isOutermostConfigSet=!0);let r,p=new h.ATNConfigSet;for(let e of c){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof C.RuleStopState){M(e.context.isEmpty),(o&&!e.reachesIntoOuterContext||i===b.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t<n;t++){let r=e.state.getOptimizedTransition(t),n=this.getReachableTarget(e,r,i);null!=n&&p.add(e.transform(n,!1),s)}}if(this.optimize_unique_closure&&null==r&&i!==D.Token.EOF&&p.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER){p.isOutermostConfigSet=d.isOutermostConfigSet,d=p;break}let f=!1,y=i===D.Token.EOF;if(this.closure(p,d,f,e,s,y),l=d.dipsIntoOuterContext,i===b.IntStream.EOF&&(d=this.removeAllConfigsNotInRuleStopState(d,s)),!(null==r||o&&R.PredictionMode.hasConfigInRuleStopState(d))){M(r.length>0);for(let t of r)d.add(t,s)}if(o&&l){d.clear(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==a&&(a=new v.IntegerList),n=n.isEmpty?void 0:n.parent,a.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e<c.length;e++)c[e]=c[e].appendContext(t,s)}}while(o&&l);return d.isEmpty?(this.setDFAEdge(r,i,p.ATNSimulator.ERROR),[p.ATNSimulator.ERROR,n]):[this.addDFAEdge(e,r,i,a,d,s),n]}removeAllConfigsNotInRuleStopState(t,e){if(R.PredictionMode.allConfigsInRuleStopStates(t))return t;let r=new h.ATNConfigSet;for(let n of t)n.state instanceof C.RuleStopState&&r.add(n,e);return r}computeStartState(t,e,r){let n=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,r):r?t.s0full:t.s0;if(null!=n){if(!r)return new L.SimulatorState(e,n,r,e);n.setContextSensitive(this.atn)}t.decision;let i=t.atnStartState,o=0,s=e,a=r?A.PredictionContext.EMPTY_FULL:A.PredictionContext.EMPTY_LOCAL,l=new w.PredictionContextCache;if(r){if(!this.enable_global_context_dfa)for(;null!=s;)s.isEmpty?(o=A.PredictionContext.EMPTY_FULL_STATE_KEY,s=void 0):(o=this.getReturnState(s),a=a.appendSingleContext(o,l),s=s.parent);for(;null!=n&&n.isContextSensitive&&null!=s;){let t;if(s=this.skipTailCalls(s),s.isEmpty?(t=n.getContextTarget(A.PredictionContext.EMPTY_FULL_STATE_KEY),o=A.PredictionContext.EMPTY_FULL_STATE_KEY,s=void 0):(o=this.getReturnState(s),t=n.getContextTarget(o),a=a.appendSingleContext(o,l),s=s.parent),null==t)break;n=t}}if(null!=n&&!n.isContextSensitive)return new L.SimulatorState(e,n,r,s);let u=new h.ATNConfigSet;for(;;){let p=new h.ATNConfigSet,d=i.numberOfTransitions;for(let t=0;t<d;t++){let e=i.transition(t).target;p.add(c.ATNConfig.create(e,t+1,a))}let f=null!=s;f||(u.isOutermostConfigSet=!0);let y=!0;this.closure(p,u,y,f,l,!1);let g,_=u.dipsIntoOuterContext;if(r&&!this.enable_global_context_dfa){n=this.addDFAState(t,u,l);break}if(null==n?t.isPrecedenceDfa?(u=this.applyPrecedenceFilter(u,e,l),g=this.addDFAState(t,u,l),t.setPrecedenceStartState(this._parser.precedence,r,g)):(g=this.addDFAState(t,u,l),r?t.s0full?g=t.s0full:t.s0full=g:t.s0?g=t.s0:t.s0=g):(t.isPrecedenceDfa&&(u=this.applyPrecedenceFilter(u,e,l)),g=this.addDFAState(t,u,l),n.setContextTarget(o,g)),n=g,!r||!_)break;g.setContextSensitive(this.atn),u.clear(),s=this.skipTailCalls(s);let m=this.getReturnState(s);s=s.isEmpty?void 0:s.parent,m!==A.PredictionContext.EMPTY_FULL_STATE_KEY&&(a=a.appendSingleContext(m,l)),o=m}return new L.SimulatorState(e,n,r,s)}applyPrecedenceFilter(t,e,r){let n=new Map,i=new h.ATNConfigSet;for(let o of t){if(1!==o.alt)continue;let t=o.semanticContext.evalPrecedence(this._parser,e);null!=t&&(n.set(o.state.stateNumber,o.context),t!==o.semanticContext?i.add(o.transform(o.state,!1,t),r):i.add(o,r))}for(let e of t)if(1!==e.alt){if(!e.isPrecedenceFilterSuppressed){let t=n.get(e.state.stateNumber);if(null!=t&&t.equals(e.context))continue}i.add(e,r)}return i}getReachableTarget(t,e,r){if(e.matches(r,0,this.atn.maxTokenType))return e.target}predicateDFAState(e,r,n){let i=this.getConflictingAltsFromConfigSet(r);if(!i)throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");t.debug&&console.log("predicateDFAState "+e);let o,s=this.getPredsForAmbigAlts(i,r,n);return null!=s&&(o=this.getPredicatePredictions(i,s),e.predicates=o),o}getPredsForAmbigAlts(e,r,n){let i=new Array(n+1),o=i.length;for(let t of r)e.get(t.alt)&&(i[t.alt]=I.SemanticContext.or(i[t.alt],t.semanticContext));let s=0;for(let t=0;t<o;t++)null==i[t]?i[t]=I.SemanticContext.NONE:i[t]!==I.SemanticContext.NONE&&s++;let a=i;return 0===s&&(a=void 0),t.debug&&console.log("getPredsForAmbigAlts result "+(a?l.Arrays.toString(a):"undefined")),a}getPredicatePredictions(t,e){let r=[],n=!1;for(let i=1;i<e.length;i++){let o=e[i];M(null!=o),null!=t&&t.get(i)&&o===I.SemanticContext.NONE?r.push(new m.DFAState.PredPrediction(o,i)):o!==I.SemanticContext.NONE&&(n=!0,r.push(new m.DFAState.PredPrediction(o,i)))}if(n)return r}evalSemanticContext(e,r,n){let i=new y.BitSet;for(let o of e){if(o.pred===I.SemanticContext.NONE){if(i.set(o.alt),!n)break;continue}let e=this.evalSemanticContextImpl(o.pred,r,o.alt);if((t.debug||t.dfa_debug)&&console.log("eval pred "+o+"="+e),e&&((t.debug||t.dfa_debug)&&console.log("PREDICT "+o.alt),i.set(o.alt),!n))break}return i}evalSemanticContextImpl(t,e,r){return t.eval(this._parser,e)}closure(t,e,r,n,i,o){null==i&&(i=w.PredictionContextCache.UNCACHED);let s=t,l=new a.Array2DHashSet(O.ObjectEqualityComparator.INSTANCE);for(;s.size>0;){let t=new h.ATNConfigSet;for(let a of s)this.closureImpl(a,e,t,l,r,n,i,0,o);s=t}}closureImpl(e,r,n,i,o,a,l,u,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof C.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,l);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===A.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&A.PredictionContext.isEmptyLocal(e.context)&&r.add(e,l)}else{let t=e.context.hasEmpty,s=e.context.size-(t?1:0);for(let t=0;t<s;t++){let s=e.context.getParent(t),p=this.atn.states[e.context.getReturnState(t)],d=c.ATNConfig.create(p,e.alt,s,e.semanticContext);d.outerContextDepth=e.outerContextDepth,d.isPrecedenceFilterSuppressed=e.isPrecedenceFilterSuppressed,M(u>F),this.closureImpl(d,r,n,i,o,a,l,u-1,h)}if(!t||!a)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let p=e.state;p.onlyHasEpsilonTransitions||(r.add(e,l),t.debug&&console.log("added config "+r));for(let c=0;c<p.numberOfOptimizedTransitions;c++){if(0===c&&p.stateType===d.ATNStateType.STAR_LOOP_ENTRY&&p.precedenceRuleDecision&&!e.context.hasEmpty){let t=p,r=!0;for(let n=0;n<e.context.size;n++)if(!t.precedenceLoopbackStates.get(e.context.getReturnState(n))){r=!1;break}if(r)continue}let f=p.getOptimizedTransition(c),y=!(f instanceof s.ActionTransition)&&o,g=this.getEpsilonTarget(e,f,y,0===u,l,h);if(null!=g){if(f instanceof P.RuleTransition&&null!=n&&!o){n.add(g,l);continue}let s=u;if(e.state instanceof C.RuleStopState){if(null!=this.dfa&&this.dfa.isPrecedenceDfa&&f.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&(g.isPrecedenceFilterSuppressed=!0),g.outerContextDepth=g.outerContextDepth+1,!i.add(g))continue;M(s>F),s--,t.debug&&console.log("dips into outer ctx: "+g)}else if(f instanceof P.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?s>=0&&s++:(M(g.context===e.context),0===s&&(s--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(g.outerContextDepth=g.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(g))continue;this.closureImpl(g,r,n,i,y,a,l,s,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,r,n,i,o){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return o&&e.matches(D.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}predTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=I.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,o.stateNumber):e.context.getChild(o.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,o=new y.BitSet,s=n[0].alt;o.set(s);let a,l=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==l){if(t.alt!==s)return;l=e}}if(i){l=n[0].state.nonStopStateNumber,a=new y.BitSet;let t=s;for(let e of n){if(e.state.nonStopStateNumber!==l)break;let r=e.alt;a.set(r),t=r}l=n[0].state.nonStopStateNumber;let e=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==l){if(e!==t){i=!1;break}l=n,e=s}else if(o!==e){if(o!==a.nextSetBit(e+1)){i=!1;break}e=o}}}l=n[0].state.nonStopStateNumber;let c=0,h=0,p=n[0].context;for(let t=1;t<n.length;t++){let e=n[t];if(e.alt!==s)break;if(e.state.nonStopStateNumber!==l)break;h=t,p=r.join(p,n[t].context)}for(let t=h+1;t<n.length;t++){let e=n[t],a=e.state;if(o.set(e.alt),a.nonStopStateNumber!==l){l=a.nonStopStateNumber,c=t,h=t,p=e.context;for(let t=c+1;t<n.length;t++){let e=n[t];if(e.alt!==s)break;if(e.state.nonStopStateNumber!==l)break;h=t,p=r.join(p,e.context)}t=h;continue}let u=e.context,d=e.alt,f=t;for(let t=f+1;t<n.length;t++){let e=n[t];if(e.alt!==d)break;if(e.state.nonStopStateNumber!==l)break;f=t,u=r.join(u,e.context)}t=f;let y=r.join(p,u);if(!p.equals(y))return;i=i&&p.equals(u)}return new g.ConflictInfo(o,i)}getConflictingAltsFromConfigSet(t){let e=t.conflictingAlts;return null==e&&t.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER&&(e=new y.BitSet,e.set(t.uniqueAlt)),e}getTokenName(t){if(t===D.Token.EOF)return"EOF";let e=(null!=this._parser?this._parser.vocabulary:j.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(t);return e===String(t)?e:e+"<"+t+">"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof k.SetTransition&&(e=(r instanceof E.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new x.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=u.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===u.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return u.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof C.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,o,s){M(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,o,s);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);let r=a.getContextTarget(t);null==r?(r=this.addDFAContextState(e,a.configs,t,s),M(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r),a=r):a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(n)),this.setDFAEdge(a,n,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:j.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){null!=t&&t.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return M(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(e,r.clone(!0)),a=this.atn.getDecisionState(e.decision),l=this.getUniqueAlt(r);if(l!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(l);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(s.acceptStateInfo=new o.AcceptStateInfo(t.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,a.numberOfTransitions),!i)return s;let c=e.addState(s);return t.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(t,e){return new m.DFAState(e)}reportAttemptingFullContext(e,r,n,i,o){if(t.debug||t.retry_debug){let t=T.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,o,r,n)}}reportContextSensitivity(e,r,n,i,o){if(t.debug||t.retry_debug){let t=T.Interval.of(i,o);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,o,r,n)}}reportAmbiguity(e,r,n,i,o,s,a){if(t.debug||t.retry_debug){let t=T.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,o,s,a)}}getReturnState(t){return t.isEmpty?A.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(M(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},n([S.NotNull],U.prototype,"predictionMode",void 0),n([S.NotNull],U.prototype,"getPredictionMode",null),n([i(0,S.NotNull)],U.prototype,"setPredictionMode",null),n([S.Override],U.prototype,"reset",null),n([i(0,S.NotNull)],U.prototype,"adaptivePredict",null),n([i(0,S.NotNull),i(1,S.NotNull),i(2,S.NotNull)],U.prototype,"getStartState",null),n([i(0,S.NotNull),i(1,S.NotNull),i(3,S.NotNull)],U.prototype,"execDFA",null),n([i(0,S.NotNull),i(1,S.NotNull),i(3,S.NotNull)],U.prototype,"execATN",null),n([i(0,S.NotNull),i(2,S.NotNull)],U.prototype,"handleNoViableAlt",null),n([i(0,S.NotNull)],U.prototype,"getExistingTargetState",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"computeTargetState",null),n([S.NotNull,i(0,S.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),n([S.NotNull],U.prototype,"computeStartState",null),n([S.NotNull,i(0,S.NotNull)],U.prototype,"applyPrecedenceFilter",null),n([i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"getReachableTarget",null),n([i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"getPredsForAmbigAlts",null),n([i(0,S.NotNull)],U.prototype,"evalSemanticContext",null),n([i(0,S.NotNull)],U.prototype,"evalSemanticContextImpl",null),n([i(1,S.NotNull),i(4,S.Nullable)],U.prototype,"closure",null),n([i(0,S.NotNull),i(1,S.NotNull),i(2,S.Nullable),i(3,S.NotNull),i(6,S.NotNull)],U.prototype,"closureImpl",null),n([S.NotNull],U.prototype,"getRuleName",null),n([i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"getEpsilonTarget",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"actionTransition",null),n([S.Nullable,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"precedenceTransition",null),n([S.Nullable,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"predTransition",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull),i(2,S.Nullable)],U.prototype,"ruleTransition",null),n([i(0,S.NotNull)],U.prototype,"isConflicted",null),n([S.NotNull],U.prototype,"getTokenName",null),n([i(0,S.NotNull)],U.prototype,"dumpDeadEndConfigs",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull),i(2,S.NotNull)],U.prototype,"noViableAlt",null),n([i(0,S.NotNull)],U.prototype,"getUniqueAlt",null),n([i(0,S.NotNull)],U.prototype,"configWithAltAtStopState",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull),i(4,S.NotNull)],U.prototype,"addDFAEdge",null),n([i(0,S.Nullable),i(2,S.Nullable)],U.prototype,"setDFAEdge",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"addDFAContextState",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"addDFAState",null),n([S.NotNull,i(0,S.NotNull),i(1,S.NotNull)],U.prototype,"createDFAState",null),n([i(0,S.NotNull),i(2,S.NotNull)],U.prototype,"reportAttemptingFullContext",null),n([i(0,S.NotNull),i(2,S.NotNull)],U.prototype,"reportContextSensitivity",null),n([i(0,S.NotNull),i(5,S.NotNull),i(6,S.NotNull)],U.prototype,"reportAmbiguity",null),U=n([i(0,S.NotNull)],U),e.ParserATNSimulator=U},1259:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusBlockStartState=void 0;const i=r(8503),o=r(7646),s=r(2155);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.PlusBlockStartState=a},7297:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PlusLoopbackState=void 0;const i=r(8503),o=r(9618),s=r(2155);class a extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.PlusLoopbackState=a},2163:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrecedencePredicateTransition=void 0;const o=r(2207),s=r(2155),a=r(4897);let l=class extends o.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PrecedencePredicateTransition=l},6648:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateEvalInfo=void 0;const o=r(4826),s=r(2155);let a=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s,a){super(e,t,r,n,i,t.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=a}};a=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],a),e.PredicateEvalInfo=a},1294:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.PredicateTransition=void 0;const o=r(2207),s=r(2155),a=r(4897);let l=class extends o.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new a.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],l.prototype,"serializationType",null),n([s.Override],l.prototype,"isEpsilon",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.PredicateTransition=l},7997:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SingletonPredictionContext=e.PredictionContext=void 0;const o=r(5967),s=r(4409),a=r(1415),l=r(1363),u=r(2155),c=r(5657),h=r(6804);class p{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=l.MurmurHash.initialize(1);return t=l.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=l.MurmurHash.initialize(1);return r=l.MurmurHash.update(r,t),r=l.MurmurHash.update(r,e),r=l.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=l.MurmurHash.initialize(1);for(let e of t)r=l.MurmurHash.update(r,e);for(let t of e)r=l.MurmurHash.update(r,t);return r=l.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?p.EMPTY_FULL:p.EMPTY_LOCAL;let n;n=e._parent?p.fromRuleContext(t,e._parent,r):r?p.EMPTY_FULL:p.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=c.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return p.isEmptyLocal(t)?t:p.addEmptyContext(e);if(e.isEmpty)return p.isEmptyLocal(e)?e:p.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let o=0,s=new Array(n+i),a=new Array(s.length),l=0,u=0,d=!0,g=!0;for(;l<n&&u<i;)t.getReturnState(l)===e.getReturnState(u)?(s[o]=r.join(t.getParent(l),e.getParent(u)),a[o]=t.getReturnState(l),d=d&&s[o]===t.getParent(l),g=g&&s[o]===e.getParent(u),l++,u++):t.getReturnState(l)<e.getReturnState(u)?(s[o]=t.getParent(l),a[o]=t.getReturnState(l),g=!1,l++):(h(e.getReturnState(u)<t.getReturnState(l)),s[o]=e.getParent(u),a[o]=e.getReturnState(u),d=!1,u++),o++;for(;l<n;)s[o]=t.getParent(l),a[o]=t.getReturnState(l),l++,g=!1,o++;for(;u<i;)s[o]=e.getParent(u),a[o]=e.getReturnState(u),u++,d=!1,o++;return d?t:g?e:(o<s.length&&(s=s.slice(0,o),a=a.slice(0,o)),0===s.length?p.EMPTY_FULL:1===s.length?new y(s[0],a[0]):new f(s,a))}static isEmptyLocal(t){return t===p.EMPTY_LOCAL}static getCachedContext(t,e,r){if(t.isEmpty)return t;let n=r.get(t);if(n)return n;if(n=e.get(t),n)return r.put(t,n),n;let i,o=!1,s=new Array(t.size);for(let n=0;n<s.length;n++){let i=p.getCachedContext(t.getParent(n),e,r);if(o||i!==t.getParent(n)){if(!o){s=new Array(t.size);for(let e=0;e<t.size;e++)s[e]=t.getParent(e);o=!0}s[n]=i}}if(!o)return n=e.putIfAbsent(t,t),r.put(t,null!=n?n:t),t;if(1===s.length)i=new y(s[0],t.getReturnState(0));else{let e=new Array(t.size);for(let r=0;r<t.size;r++)e[r]=t.getReturnState(r);i=new f(s,e,t.hashCode())}return n=e.putIfAbsent(i,i),r.put(i,n||i),r.put(t,n||i),i}appendSingleContext(t,e){return this.appendContext(p.EMPTY_FULL.getChild(t),e)}getChild(t){return new y(this,t)}hashCode(){return this.cachedHashCode}toStrings(t,e,r=p.EMPTY_FULL){let n=[];t:for(let i=0;;i++){let o=0,s=!0,a=this,l=e,u="";for(u+="[";!a.isEmpty&&a!==r;){let e=0;if(a.size>0){let t=1;for(;1<<t>>>0<a.size;)t++;if(e=i>>o&(1<<t>>>0)-1,s=s&&e>=a.size-1,e>=a.size)continue t;o+=t}if(t){u.length>1&&(u+=" ");let e=t.atn.states[l];u+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==p.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(u.length>1&&(u+=" "),u+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],p.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],p,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],p,"getCachedContext",null),e.PredictionContext=p;class d extends p{constructor(t){super(p.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([u.Override],d.prototype,"addEmptyContext",null),n([u.Override],d.prototype,"removeEmptyContext",null),n([u.Override],d.prototype,"getParent",null),n([u.Override],d.prototype,"getReturnState",null),n([u.Override],d.prototype,"findReturnState",null),n([u.Override],d.prototype,"size",null),n([u.Override],d.prototype,"appendSingleContext",null),n([u.Override],d.prototype,"appendContext",null),n([u.Override],d.prototype,"isEmpty",null),n([u.Override],d.prototype,"hasEmpty",null),n([u.Override],d.prototype,"equals",null),n([u.Override],d.prototype,"toStrings",null);let f=class t extends p{constructor(t,e,r){super(r||p.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==p.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return a.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===p.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(p.EMPTY_FULL),r.push(p.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new y(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new p.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(p.isEmptyLocal(r)){if(e.hasEmpty)return p.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let o=e.size;e.hasEmpty&&o--;let s=new Array(o),a=new Array(o);for(let t=0;t<o;t++)a[t]=e.getReturnState(t);for(let i=0;i<o;i++)s[i]=t.appendContextImpl(e.getParent(i),r,n);1===s.length?i=new y(s[0],a[0]):(h(s.length>1),i=new t(s,a)),e.hasEmpty&&(i=p.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t))return!1;if(this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let t=0;t<s;t++){if(o.x.getReturnState(t)!==o.y.getReturnState(t))return!1;let e=o.x.getParent(t),i=o.y.getParent(t);if(e.hashCode()!==i.hashCode())return!1;e!==i&&(r.push(e),n.push(i))}}else if(!o.x.equals(o.y))return!1}return!0}};n([u.NotNull],f.prototype,"parents",void 0),n([u.NotNull],f.prototype,"returnStates",void 0),n([u.Override],f.prototype,"getParent",null),n([u.Override],f.prototype,"getReturnState",null),n([u.Override],f.prototype,"findReturnState",null),n([u.Override],f.prototype,"size",null),n([u.Override],f.prototype,"isEmpty",null),n([u.Override],f.prototype,"hasEmpty",null),n([u.Override],f.prototype,"addEmptyContext",null),n([u.Override],f.prototype,"removeEmptyContext",null),n([u.Override],f.prototype,"appendContext",null),n([u.Override],f.prototype,"equals",null),f=n([i(0,u.NotNull)],f);let y=class t extends p{constructor(t,e){super(p.calculateSingleHashCode(t,e)),this.parent=t,this.returnState=e}getParent(t){return this.parent}getReturnState(t){return this.returnState}findReturnState(t){return this.returnState===t?0:-1}get size(){return 1}get isEmpty(){return!1}get hasEmpty(){return!1}appendContext(t,e){return e.getChild(this.parent.appendContext(t,e),this.returnState)}addEmptyContext(){let t=[this.parent,p.EMPTY_FULL],e=[this.returnState,p.EMPTY_FULL_STATE_KEY];return new f(t,e)}removeEmptyContext(){return this}equals(e){if(e===this)return!0;if(!(e instanceof t))return!1;let r=e;return this.hashCode()===r.hashCode()&&this.returnState===r.returnState&&this.parent.equals(r.parent)}};n([u.NotNull],y.prototype,"parent",void 0),n([u.Override],y.prototype,"getParent",null),n([u.Override],y.prototype,"getReturnState",null),n([u.Override],y.prototype,"findReturnState",null),n([u.Override],y.prototype,"size",null),n([u.Override],y.prototype,"isEmpty",null),n([u.Override],y.prototype,"hasEmpty",null),n([u.Override],y.prototype,"appendContext",null),n([u.Override],y.prototype,"addEmptyContext",null),n([u.Override],y.prototype,"removeEmptyContext",null),n([u.Override],y.prototype,"equals",null),y=n([i(0,u.NotNull)],y),e.SingletonPredictionContext=y,function(t){t.EMPTY_LOCAL=new d(!1),t.EMPTY_FULL=new d(!0),t.EMPTY_LOCAL_STATE_KEY=-2147483648,t.EMPTY_FULL_STATE_KEY=2147483647;class e extends o.Array2DHashMap{constructor(){super(r.INSTANCE)}}t.IdentityHashMap=e;class r{IdentityEqualityComparator(){}hashCode(t){return t.hashCode()}equals(t,e){return t===e}}r.INSTANCE=new r,n([u.Override],r.prototype,"hashCode",null),n([u.Override],r.prototype,"equals",null),t.IdentityEqualityComparator=r}(p=e.PredictionContext||(e.PredictionContext={}))},5657:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionContextCache=void 0;const i=r(5967),o=r(2155),s=r(8871),a=r(7997),l=r(6804);class u{constructor(t=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new u.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return a.PredictionContext.join(t,e,this);let r=new u.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=a.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}e.PredictionContextCache=u,u.UNCACHED=new u(!1),function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([o.Override],e.prototype,"equals",null),n([o.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){l(null!=t),l(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(u=e.PredictionContextCache||(e.PredictionContextCache={}))},2952:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.PredictionMode=void 0;const i=r(5967),o=r(1363),s=r(2155),a=r(7695);var l;(l=e.PredictionMode||(e.PredictionMode={}))[l.SLL=0]="SLL",l[l.LL=1]="LL",l[l.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){class e extends i.Array2DHashMap{constructor(){super(r.INSTANCE)}}class r{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=o.MurmurHash.initialize(7);return e=o.MurmurHash.update(e,t.state.stateNumber),e=o.MurmurHash.update(e,t.context),e=o.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}r.INSTANCE=new r,n([s.Override],r.prototype,"hashCode",null),n([s.Override],r.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof a.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof a.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},4612:function(t,e,r){var n=r(6966),i=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;const s=r(8981),a=r(7476),l=r(5570),u=r(3167),c=r(2793),h=r(7099),p=r(2155),d=r(3283),f=r(8541),y=r(6648),g=r(4897),_=r(6181);class m extends f.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),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 t=0;t<this.numDecisions;t++)this.decisions.push(new c.DecisionInfo(t))}adaptivePredict(t,e,r,i){if(void 0!==i)return super.adaptivePredict(t,e,r,i);try{this._input=t,this._startIndex=t.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=e,this.currentState=void 0,this.conflictingAltResolvedBySLL=a.ATN.INVALID_ALT_NUMBER;let i=n.hrtime(),o=super.adaptivePredict(t,e,r),s=n.hrtime(),l=1e9*(s[0]-i[0]);0===l?l=s[1]-i[1]:l+=1e9-i[1]+s[1],this.decisions[e].timeInPrediction+=l,this.decisions[e].invocations++;let u=this._sllStopIndex-this._startIndex+1;if(this.decisions[e].SLL_TotalLook+=u,this.decisions[e].SLL_MinLook=0===this.decisions[e].SLL_MinLook?u:Math.min(this.decisions[e].SLL_MinLook,u),u>this.decisions[e].SLL_MaxLook&&(this.decisions[e].SLL_MaxLook=u,this.decisions[e].SLL_MaxLookEvent=new d.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let r=this._llStopIndex-this._startIndex+1;this.decisions[e].LL_TotalLook+=r,this.decisions[e].LL_MinLook=0===this.decisions[e].LL_MinLook?r:Math.min(this.decisions[e].LL_MinLook,r),r>this.decisions[e].LL_MaxLook&&(this.decisions[e].LL_MaxLook=r,this.decisions[e].LL_MaxLookEvent=new d.LookaheadEventInfo(e,void 0,o,t,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){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 r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new _.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new _.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new h.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,o){let s=super.computeTargetState(t,e,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof g.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new y.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,o,l){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=o?o.nextSetBit(0):l.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==a.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new u.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new s.AmbiguityInfo(this.currentDecision,this.currentState,o,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,o,l)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}i([p.Override,o(0,p.NotNull)],m.prototype,"adaptivePredict",null),i([p.Override],m.prototype,"getStartState",null),i([p.Override],m.prototype,"computeStartState",null),i([p.Override],m.prototype,"computeReachSet",null),i([p.Override],m.prototype,"getExistingTargetState",null),i([p.Override],m.prototype,"computeTargetState",null),i([p.Override],m.prototype,"evalSemanticContextImpl",null),i([p.Override],m.prototype,"reportContextSensitivity",null),i([p.Override],m.prototype,"reportAttemptingFullContext",null),i([p.Override,o(0,p.NotNull),o(5,p.NotNull),o(6,p.NotNull)],m.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=m},1012:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RangeTransition=void 0;const o=r(2174),s=r(2155),a=r(7224);let l=class extends a.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],l.prototype,"serializationType",null),n([s.Override,s.NotNull],l.prototype,"label",null),n([s.Override],l.prototype,"matches",null),n([s.Override,s.NotNull],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.RangeTransition=l},5957:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStartState=void 0;const i=r(9103),o=r(8503),s=r(2155);class a extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],a.prototype,"stateType",null),e.RuleStartState=a},7695:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleStopState=void 0;const i=r(9103),o=r(8503),s=r(2155);class a extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],a.prototype,"nonStopStateNumber",null),n([s.Override],a.prototype,"stateType",null),e.RuleStopState=a},1651:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTransition=void 0;const o=r(2155),s=r(7224);let a=class extends s.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([o.NotNull],a.prototype,"followState",void 0),n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"isEpsilon",null),n([o.Override],a.prototype,"matches",null),a=n([i(0,o.NotNull),i(3,o.NotNull)],a),e.RuleTransition=a},4897:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticContext=void 0;const o=r(4409),s=r(5127),a=r(1363),l=r(2155),u=r(8871),c=r(9603);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n<e.length;n++){let i=e[n];i instanceof t.PrecedencePredicate&&(r.push(i),e.splice(n,1),n--)}return r}class r extends t{constructor(t=-1,e=-1,r=!1){super(),this.ruleIndex=t,this.predIndex=e,this.isCtxDependent=r}eval(t,e){let r=this.isCtxDependent?e:void 0;return t.sempred(r,this.ruleIndex,this.predIndex)}hashCode(){let t=a.MurmurHash.initialize();return t=a.MurmurHash.update(t,this.ruleIndex),t=a.MurmurHash.update(t,this.predIndex),t=a.MurmurHash.update(t,this.isCtxDependent?1:0),t=a.MurmurHash.finish(t,3),t}equals(t){return t instanceof r&&(this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent)}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}n([l.Override],r.prototype,"eval",null),n([l.Override],r.prototype,"hashCode",null),n([l.Override],r.prototype,"equals",null),n([l.Override],r.prototype,"toString",null),t.Predicate=r;class h extends t{constructor(t){super(),this.precedence=t}eval(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,r){return e.precpred(r,this.precedence)?t.NONE:void 0}compareTo(t){return this.precedence-t.precedence}hashCode(){let t=1;return t=31*t+this.precedence,t}equals(t){return t instanceof h&&(this===t||this.precedence===t.precedence)}toString(){return"{"+this.precedence+">=prec}?"}}n([l.Override],h.prototype,"eval",null),n([l.Override],h.prototype,"evalPrecedence",null),n([l.Override],h.prototype,"compareTo",null),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class p extends t{}t.Operator=p;let d=class r extends p{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,null==s)return;s!==t.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return t.NONE;let o=i[0];for(let e=1;e<i.length;e++)o=t.and(o,i[e]);return o}toString(){return c.join(this.opnds,"&&")}};n([l.Override],d.prototype,"operands",null),n([l.Override],d.prototype,"equals",null),n([l.Override],d.prototype,"hashCode",null),n([l.Override],d.prototype,"eval",null),n([l.Override],d.prototype,"evalPrecedence",null),n([l.Override],d.prototype,"toString",null),d=n([i(0,l.NotNull),i(1,l.NotNull)],d),t.AND=d;let f=class r extends p{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)<0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return a.MurmurHash.hashCode(this.opnds,486279973)}eval(t,e){for(let r of this.opnds)if(r.eval(t,e))return!0;return!1}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,s===t.NONE)return t.NONE;s&&i.push(s)}if(!n)return this;if(0===i.length)return;let o=i[0];for(let e=1;e<i.length;e++)o=t.or(o,i[e]);return o}toString(){return c.join(this.opnds,"||")}};n([l.Override],f.prototype,"operands",null),n([l.Override],f.prototype,"equals",null),n([l.Override],f.prototype,"hashCode",null),n([l.Override],f.prototype,"eval",null),n([l.Override],f.prototype,"evalPrecedence",null),n([l.Override],f.prototype,"toString",null),f=n([i(0,l.NotNull),i(1,l.NotNull)],f),t.OR=f}(h=e.SemanticContext||(e.SemanticContext={}))},3883:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTransition=void 0;const o=r(2174),s=r(2155),a=r(8025),l=r(7224);let u=class extends l.Transition{constructor(t,e){super(t),null==e&&(e=o.IntervalSet.of(a.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),e.SetTransition=u},6181:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimulatorState=void 0;const o=r(2155),s=r(6267);let a=class{constructor(t,e,r,n){this.outerContext=null!=t?t:s.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};a=n([i(1,o.NotNull)],a),e.SimulatorState=a},985:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarBlockStartState=void 0;const i=r(8503),o=r(7646),s=r(2155);class a extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],a.prototype,"stateType",null),e.StarBlockStartState=a},7381:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopEntryState=void 0;const i=r(8503),o=r(6426),s=r(9618),a=r(2155);class l extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([a.Override],l.prototype,"stateType",null),e.StarLoopEntryState=l},3555:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.StarLoopbackState=void 0;const i=r(9103),o=r(8503),s=r(2155);class a extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],a.prototype,"stateType",null),e.StarLoopbackState=a},637:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TokensStartState=void 0;const i=r(8503),o=r(9618),s=r(2155);class a extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],a.prototype,"stateType",null),e.TokensStartState=a},7224:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=void 0;const o=r(2155);let s=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),e.Transition=s},442:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.WildcardTransition=void 0;const o=r(2155),s=r(7224);let a=class extends s.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([o.Override],a.prototype,"serializationType",null),n([o.Override],a.prototype,"matches",null),n([o.Override,o.NotNull],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.WildcardTransition=a},4760:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=void 0,e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},2333:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFA=void 0;const o=r(4409),s=r(4181),a=r(8812),l=r(1261),u=r(2758),c=r(2155),h=r(8871),p=r(7381),d=r(8567);let f=class{constructor(t,e=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof p.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new l.DFAState(new s.ATNConfigSet),this.s0full=new l.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}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(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=d.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new a.DFASerializer(this,t,e,this.atnStartState.atn):new a.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new u.LexerDFASerializer(this).toString():""}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),e.DFA=f},8812:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DFASerializer=void 0;const i=r(5570),o=r(2155),s=r(7997),a=r(2580),l=r(8567);class u{constructor(t,e,r,n){e instanceof a.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=l.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),o=r.getContextEdgeMap(),s=[...o.keys()].sort(((t,e)=>t-e));for(let o of n){let n=e.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(t+="!",s=!0);let a=n;a&&a.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":s&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of s)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(o.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e<this.ruleNames.length)return"ctx:"+String(t)+"("+this.ruleNames[e]+")"}return"ctx:"+String(t)}getEdgeLabel(t){return this.vocabulary.getDisplayName(t)}getStateString(t){if(t===i.ATNSimulator.ERROR)return"ERROR";let e=t.stateNumber,r="s"+e;if(t.isAcceptState&&(r=t.predicates?":s"+e+"=>"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),e.DFASerializer=u},1261:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.DFAState=void 0;const o=r(7476),s=r(6426),a=r(1363),l=r(2155),u=r(7997),c=r(6804);class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){c(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){c(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new s.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=a.MurmurHash.initialize(7);return t=a.MurmurHash.update(t,this.configs.hashCode()),t=a.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([l.NotNull],h.prototype,"configs",void 0),n([l.NotNull],h.prototype,"edges",void 0),n([l.NotNull],h.prototype,"contextEdges",void 0),n([l.Override],h.prototype,"hashCode",null),n([l.Override],h.prototype,"equals",null),n([l.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([l.NotNull],e.prototype,"pred",void 0),n([l.Override],e.prototype,"toString",null),e=n([i(0,l.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},2758:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.LexerDFASerializer=void 0;const o=r(8812),s=r(2155),a=r(8567);let l=class extends o.DFASerializer{constructor(t){super(t,a.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([s.Override,s.NotNull],l.prototype,"getEdgeLabel",null),l=n([i(0,s.NotNull)],l),e.LexerDFASerializer=l},4412:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(7120),e),i(r(5e3),e),i(r(5575),e),i(r(4583),e),i(r(9418),e),i(r(3345),e),i(r(6957),e),i(r(9337),e),i(r(5376),e),i(r(9354),e),i(r(4487),e),i(r(2022),e),i(r(1166),e),i(r(7662),e),i(r(2827),e),i(r(1292),e),i(r(3771),e),i(r(5362),e),i(r(535),e),i(r(1894),e),i(r(5548),e),i(r(292),e),i(r(6517),e),i(r(6526),e),i(r(5314),e),i(r(2447),e),i(r(8250),e),i(r(3574),e),i(r(6267),e),i(r(1855),e),i(r(6831),e),i(r(5406),e),i(r(2580),e),i(r(6997),e),i(r(3450),e),i(r(8975),e),i(r(7899),e),i(r(8025),e),i(r(816),e),i(r(2556),e),i(r(152),e),i(r(6024),e),i(r(3347),e),i(r(8567),e),i(r(4279),e)},5967:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashMap=void 0;const n=r(4409);class i{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}class o{constructor(t){this.backingStore=t instanceof o?new n.Array2DHashSet(t.backingStore):new n.Array2DHashSet(new i(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof o&&this.backingStore.equals(t.backingStore)}}e.Array2DHashMap=o},4409:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Array2DHashSet=void 0;const o=r(6804),s=r(1707),a=r(2155),l=r(1363);class u{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof u){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;t<this.buckets.length;t++){let e=this.buckets[t];e&&(this.buckets[t]=e.slice(0))}this.n=t.n,this.threshold=t.threshold}else this.comparator=t||s.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(e)}getOrAdd(t){return this.n>this.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=l.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=l.MurmurHash.update(t,this.comparator.hashCode(r))}return t=l.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof u&&(t.size===this.size&&this.containsAll(t))}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}o(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof u){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([a.NotNull],u.prototype,"comparator",void 0),n([a.Override],u.prototype,"hashCode",null),n([a.Override],u.prototype,"equals",null),n([a.Override],u.prototype,"add",null),n([a.Override],u.prototype,"size",null),n([a.Override],u.prototype,"isEmpty",null),n([a.Override],u.prototype,"contains",null),n([i(0,a.Nullable)],u.prototype,"containsFast",null),n([a.Override],u.prototype,Symbol.iterator,null),n([a.Override],u.prototype,"toArray",null),n([a.Override],u.prototype,"containsAll",null),n([a.Override],u.prototype,"addAll",null),n([a.Override],u.prototype,"clear",null),n([a.Override],u.prototype,"toString",null),n([a.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([a.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),e.Array2DHashSet=u},5127:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayEqualityComparator=void 0;const i=r(2155),o=r(1363),s=r(8871);class a{hashCode(t){return null==t?0:o.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e)return!1;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!s.ObjectEqualityComparator.INSTANCE.equals(t[r],e[r]))return!1;return!0}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.ArrayEqualityComparator=a},1415:(t,e)=>{var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Arrays=void 0,(r=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,o=r-1;for(;i<=o;){let e=i+o>>>1,r=t[e];if(r<n)i=e+1;else{if(!(r>n))return e;o=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},r.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},6426:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BitSet=void 0;const n=r(2019),i=r(1363),o=new Uint16Array(0);function s(t){return t>>>4}function a(t){return 16*t}function l(t){let e=1;for(let r=0;r<16;r++){if(0!=(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function u(t){let e=32768;for(let r=15;r>=0;r--){if(0!=(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function c(t,e){return(t&=15)==(e&=15)?1<<t>>>0:65535>>>15-e^65535>>>16-t}const h=new Uint8Array(65536);for(let t=0;t<16;t++){const e=1<<t>>>0;let r=0;for(;r<h.length;){r+=e;for(let t=0;t<e;t++)h[r]++,r++}}class p{constructor(t){if(t)if("number"==typeof t){if(t<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(s(t-1)+1)}else if(t instanceof p)this.data=t.data.slice(0);else{let e=-1;for(let r of t)e<r&&(e=r);this.data=new Uint16Array(s(e-1)+1);for(let e of t)this.set(e)}else this.data=o}and(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let i=-1;for(let t=0;t<n;t++)0!=(e[t]&=r[t])&&(i=t);-1===i&&(this.data=o),i<e.length-1&&(this.data=e.slice(0,i+1))}andNot(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let i=-1;for(let t=0;t<n;t++)0!=(e[t]&=65535^r[t])&&(i=t);-1===i&&(this.data=o),i<e.length-1&&(this.data=e.slice(0,i+1))}cardinality(){if(this.isEmpty)return 0;const t=this.data,e=t.length;let r=0;for(let n=0;n<e;n++)r+=h[t[n]];return r}clear(t,e){null==t?this.data.fill(0):null==e?this.set(t,!1):this.set(t,e,!1)}flip(t,e){if(null==e&&(e=t),t<0||e<t)throw new RangeError;let r=s(t);const n=s(e);if(r===n)this.data[r]^=c(t,e);else{for(this.data[r++]^=c(t,15);r<n;)this.data[r++]^=65535;this.data[r++]^=c(0,e)}}get(t,e){if(void 0===e)return!!(this.data[s(t)]&c(t,t));{let r=new p(e+1);for(let n=t;n<=e;n++)r.set(n,this.get(n));return r}}intersects(t){let e=Math.min(this.length(),t.length());if(0===e)return!1;let r=s(e-1);for(let e=0;e<=r;e++)if(0!=(this.data[e]&t.data[e]))return!0;return!1}get isEmpty(){return 0===this.length()}length(){return this.data.length?this.previousSetBit(a(this.data.length)-1)+1:0}nextClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=s(t);if(n>r)return-1;let i=65535^c(t,15);if(65535==(e[n]|i)){for(n++,i=0;n<r&&65535===e[n];n++);if(n===r)return-1}return a(n)+l(65535^(e[n]|i))}nextSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=s(t);if(n>r)return-1;let i=c(t,15);if(0==(e[n]&i)){for(n++,i=65535;n<r&&0===e[n];n++);if(n>=r)return-1}return a(n)+l(e[n]&i)}or(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i);let a=-1;for(let t=0;t<n;t++)0!=(s[t]=e[t]|r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<i;t++)0!==(s[t]=l[t])&&(a=t);-1===a?this.data=o:s.length===a+1?this.data=s:this.data=s.slice(0,a)}previousClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=s(t);n>=r&&(n=r-1);let i=65535^c(0,t);if(65535==(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return a(n)+u(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=s(t);n>=r&&(n=r-1);let i=c(0,t);if(0==(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return a(n)+u(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=s(t),i=s(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(t,e));else{for(this._setBits(n++,r,c(t,15));n<i;)this.data[n++]=r?65535:0;this._setBits(n,r,c(0,e))}}_setBits(t,e,r){e?this.data[t]|=r:this.data[t]&=65535^r}get size(){return 8*this.data.byteLength}hashCode(){return i.MurmurHash.hashCode(this.data,22)}equals(t){if(t===this)return!0;if(!(t instanceof p))return!1;const e=this.length();if(e!==t.length())return!1;if(0===e)return!0;let r=s(e-1);for(let e=0;e<=r;e++)if(this.data[e]!==t.data[e])return!1;return!0}toString(){let t="{",e=!0;for(let r=this.nextSetBit(0);r>=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i);let a=-1;for(let t=0;t<n;t++)0!=(s[t]=e[t]^r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<i;t++)0!==(s[t]=l[t])&&(a=t);-1===a?this.data=o:s.length===a+1?this.data=s:this.data=s.slice(0,a+1)}clone(){return new p(this)}[Symbol.iterator](){return new d(this.data)}[n.inspect.custom](){return"BitSet "+this.toString()}}e.BitSet=p;class d{constructor(t){this.data=t,this.index=0,this.mask=65535}next(){for(;this.index<this.data.length;){const t=this.data[this.index]&this.mask;if(0!==t){const e=a(this.index)+l(t);return this.mask=c(e+1,15),{done:!1,value:e}}this.index++,this.mask=65535}return{done:!0,value:-1}}[Symbol.iterator](){return this}}},8910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSupplementaryCodePoint=e.isLowSurrogate=e.isHighSurrogate=void 0,e.isHighSurrogate=function(t){return t>=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},1707:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultEqualityComparator=void 0;const i=r(2155),o=r(1363),s=r(8871);class a{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?o.MurmurHash.hashCode([t]):s.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:s.ObjectEqualityComparator.INSTANCE.equals(t,e)}}a.INSTANCE=new a,n([i.Override],a.prototype,"hashCode",null),n([i.Override],a.prototype,"equals",null),e.DefaultEqualityComparator=a},6310:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerList=void 0;const i=r(1415),o=r(2155),s=new Int32Array(0),a=2147483639;class l{constructor(t){if(t)if(t instanceof l)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=s,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=s,this._size=0;for(let e of t)this.add(e)}else this._data=s,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof l)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e<this._size;e++)if(this._data[e]===t)return!0;return!1}set(t,e){if(t<0||t>=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size)throw RangeError();if(t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}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(t){if(t===this)return!0;if(!(t instanceof l))return!1;if(this._size!==t._size)return!1;for(let e=0;e<this._size;e++)if(this._data[e]!==t._data[e])return!1;return!0}hashCode(){let t=1;for(let e=0;e<this._size;e++)t=31*t+this._data[e];return t}toString(){return this._data.toString()}binarySearch(t,e,r){if(void 0===e&&(e=0),void 0===r&&(r=this._size),e<0||r<0||e>this._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>a)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;e<t;)e*=2,(e<0||e>a)&&(e=a);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n<this._size;n++){let i=this._data[n];if(i>=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let o=String.fromCodePoint(i);t[e]=o.charCodeAt(0),t[e+1]=o.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e<this._size;e++)t+=this._data[e]>=65536?2:1;return t}}n([o.NotNull],l.prototype,"_data",void 0),n([o.Override],l.prototype,"equals",null),n([o.Override],l.prototype,"hashCode",null),n([o.Override],l.prototype,"toString",null),e.IntegerList=l},5389:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntegerStack=void 0;const n=r(6310);class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},1128:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Interval=void 0;const i=r(2155);class o{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return o._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new o(t,e):(null==o.cache[t]&&(o.cache[t]=new o(t,t)),o.cache[t])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(t){return t===this||t instanceof o&&this.a===t.a&&this.b===t.b}hashCode(){let t=23;return t=31*t+this.a,t=31*t+this.b,t}startsBeforeDisjoint(t){return this.a<t.a&&this.b<t.a}startsBeforeNonDisjoint(t){return this.a<=t.a&&this.b>=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return o.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return o.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=o.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=o.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),e.Interval=o},2174:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.IntervalSet=void 0;const o=r(5127),s=r(6310),a=r(1128),l=r(5548),u=r(1363),c=r(2155),h=r(8025);class p{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===p._COMPLETE_CHAR_SET&&(p._COMPLETE_CHAR_SET=p.of(l.Lexer.MIN_CHAR_VALUE,l.Lexer.MAX_CHAR_VALUE),p._COMPLETE_CHAR_SET.setReadonly(!0)),p._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==p._EMPTY_SET&&(p._EMPTY_SET=new p,p._EMPTY_SET.setReadonly(!0)),p._EMPTY_SET}static of(t,e=t){let r=new p;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(a.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.b<t.a)){for(let e=0;e<this._intervals.length;e++){let r=this._intervals[e];if(t.equals(r))return;if(t.adjacent(r)||!t.disjoint(r)){let n=t.union(r);for(this._intervals[e]=n;e<this._intervals.length-1;){e++;let t=this._intervals[e];if(!n.adjacent(t)&&n.disjoint(t))break;this._intervals.splice(e,1),e--,this._intervals[e]=n.union(t)}return}if(t.startsBeforeDisjoint(r))return void this._intervals.splice(e,0,t)}this._intervals.push(t)}}static or(t){let e=new p;for(let r of t)e.addAll(r);return e}addAll(t){if(null==t)return this;if(t instanceof p){let e=t,r=e._intervals.length;for(let t=0;t<r;t++){let r=e._intervals[t];this.add(r.a,r.b)}}else for(let e of t.toArray())this.add(e);return this}complementRange(t,e){return this.complement(p.of(t,e))}complement(t){if(t.isNil)return p.EMPTY_SET;let e;return t instanceof p?e=t:(e=new p,e.addAll(t)),e.subtract(this)}subtract(t){if(null==t||t.isNil)return new p(this._intervals);if(t instanceof p)return p.subtract(this,t);let e=new p;return e.addAll(t),p.subtract(this,e)}static subtract(t,e){if(t.isNil)return new p;let r=new p(t._intervals);if(e.isNil)return r;let n=0,i=0;for(;n<r._intervals.length&&i<e._intervals.length;){let t,o,s=r._intervals[n],l=e._intervals[i];if(l.b<s.a)i++;else if(l.a>s.b)n++;else if(l.a>s.a&&(t=new a.Interval(s.a,l.a-1)),l.b<s.b&&(o=new a.Interval(l.b+1,s.b)),t){if(o){r._intervals[n]=t,r._intervals.splice(n+1,0,o),n++,i++;continue}r._intervals[n]=t,n++}else o?(r._intervals[n]=o,i++):r._intervals.splice(n,1)}return r}or(t){let e=new p;return e.addAll(this),e.addAll(t),e}and(t){if(t.isNil)return new p;let e,r=this._intervals,n=t._intervals,i=r.length,o=n.length,s=0,a=0;for(;s<i&&a<o;){let t=r[s],i=n[a];t.startsBeforeDisjoint(i)?s++:i.startsBeforeDisjoint(t)?a++:t.properlyContains(i)?(e||(e=new p),e.addRange(t.intersection(i)),a++):i.properlyContains(t)?(e||(e=new p),e.addRange(t.intersection(i)),s++):t.disjoint(i)||(e||(e=new p),e.addRange(t.intersection(i)),t.startsAfterNonDisjoint(i)?a++:i.startsAfterNonDisjoint(t)&&s++)}return e||new p}contains(t){let e=0,r=this._intervals.length-1;for(;e<=r;){let n=e+r>>1,i=this._intervals[n],o=i.a;if(i.b<t)e=n+1;else{if(!(o>t))return!0;r=n-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 t=u.MurmurHash.initialize();for(let e of this._intervals)t=u.MurmurHash.update(t,e.a),t=u.MurmurHash.update(t,e.b);return t=u.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof p&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;if(i===o)e+=this.elementName(t,i);else for(let r=i;r<=o;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"<EOF>":e===h.Token.EPSILON?"<EPSILON>":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;r<e;r++){let e=this._intervals[r];t+=e.b-e.a+1}return t}toIntegerList(){let t=new s.IntegerList(this.size),e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.add(e)}return t}toSet(){let t=new Set;for(let e of this._intervals){let r=e.a,n=e.b;for(let e=r;e<=n;e++)t.add(e)}return t}toArray(){let t=new Array,e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.push(e)}return t}remove(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;if(t<n)break;if(t===n&&t===i){this._intervals.splice(r,1);break}if(t===n){this._intervals[r]=a.Interval.of(e.a+1,e.b);break}if(t===i){this._intervals[r]=a.Interval.of(e.a,e.b-1);break}if(t>n&&t<i){let n=e.b;this._intervals[r]=a.Interval.of(e.a,t-1),this.add(t+1,n)}}}get isReadonly(){return this.readonly}setReadonly(t){if(this.readonly&&!t)throw new Error("can't alter readonly IntervalSet");this.readonly=t}}n([c.Override],p.prototype,"addAll",null),n([c.Override],p.prototype,"complement",null),n([c.Override],p.prototype,"subtract",null),n([c.Override],p.prototype,"or",null),n([c.Override],p.prototype,"and",null),n([c.Override],p.prototype,"contains",null),n([c.Override],p.prototype,"isNil",null),n([c.Override],p.prototype,"hashCode",null),n([c.Override],p.prototype,"equals",null),n([i(0,c.NotNull)],p.prototype,"toStringVocabulary",null),n([c.NotNull,i(0,c.NotNull)],p.prototype,"elementName",null),n([c.Override],p.prototype,"size",null),n([c.Override],p.prototype,"remove",null),n([c.NotNull],p,"of",null),n([c.NotNull],p,"subtract",null),e.IntervalSet=p},5184:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMap=void 0;class r extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach(((e,r)=>{e.forEach((e=>{t.push([r,e])}))})),t}}e.MultiMap=r},1363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n<e;n++)r=(r<<5>>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function n(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let o=e(i),s=0;for(let e of t)o=r(o,e),s++;return o=n(o,s),o}}(e.MurmurHash||(e.MurmurHash={}))},8871:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectEqualityComparator=void 0;const i=r(2155);class o{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),e.ObjectEqualityComparator=o},8122:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseCancellationException=void 0;class r extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=r},5007:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UUID=void 0;const n=r(1363);class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){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(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),o=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),s=parseInt(e[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.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)}}e.UUID=i},9603:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toCharArray=e.toMap=e.equals=e.join=e.escapeWhitespace=void 0,e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r<t.length;r++)e.set(t[r],r);return e},e.toCharArray=function(t){if("string"==typeof t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}return t.toCharArray()}},2204:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractParseTreeVisitor=void 0;const o=r(2155);class s{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n<r&&this.shouldVisitNextChild(t,e);n++){let r=t.getChild(n).accept(this);e=this.aggregateResult(e,r)}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}aggregateResult(t,e){return e}shouldVisitNextChild(t,e){return!0}}n([o.Override,i(0,o.NotNull)],s.prototype,"visit",null),n([o.Override,i(0,o.NotNull)],s.prototype,"visitChildren",null),n([o.Override,i(0,o.NotNull)],s.prototype,"visitTerminal",null),n([o.Override,i(0,o.NotNull)],s.prototype,"visitErrorNode",null),n([i(0,o.NotNull)],s.prototype,"shouldVisitNextChild",null),e.AbstractParseTreeVisitor=s},1814:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorNode=void 0;const i=r(2155),o=r(1310);class s extends o.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),e.ErrorNode=s},9539:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},6892:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7957:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeProperty=void 0,e.ParseTreeProperty=class{constructor(t="ParseTreeProperty"){this._symbol=Symbol(t)}get(t){return t[this._symbol]}set(t,e){t[this._symbol]=e}removeFrom(t){let e=t[this._symbol];return delete t[this._symbol],e}}},8912:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5965:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeWalker=void 0;const n=r(1814),i=r(1310),o=r(2196);class s{walk(t,e){let r=[],s=[],a=e,l=0;for(;a;)if(a instanceof n.ErrorNode?t.visitErrorNode&&t.visitErrorNode(a):a instanceof i.TerminalNode?t.visitTerminal&&t.visitTerminal(a):this.enterRule(t,a),a.childCount>0)r.push(a),s.push(l),l=0,a=a.getChild(0);else do{if(a instanceof o.RuleNode&&this.exitRule(t,a),0===r.length){a=void 0,l=0;break}let e=r[r.length-1];if(l++,a=l<e.childCount?e.getChild(l):void 0,a)break;a=r.pop(),l=s.pop()}while(a)}enterRule(t,e){let r=e.ruleContext;t.enterEveryRule&&t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){let r=e.ruleContext;r.exitRule(t),t.exitEveryRule&&t.exitEveryRule(r)}}e.ParseTreeWalker=s,function(t){t.DEFAULT=new t}(s=e.ParseTreeWalker||(e.ParseTreeWalker={}))},2196:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=void 0,e.RuleNode=class{}},4698:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1310:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalNode=void 0;const i=r(1128),o=r(2155),s=r(8025);class a{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"<EOF>":this._symbol.text||""}}n([o.Override],a.prototype,"getChild",null),n([o.Override],a.prototype,"parent",null),n([o.Override],a.prototype,"setParent",null),n([o.Override],a.prototype,"payload",null),n([o.Override],a.prototype,"sourceInterval",null),n([o.Override],a.prototype,"childCount",null),n([o.Override],a.prototype,"accept",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"toStringTree",null),n([o.Override],a.prototype,"toString",null),e.TerminalNode=a},9131:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},8766:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.Trees=void 0;const o=r(7476),s=r(9354),a=r(1814),l=r(2155),u=r(2447),c=r(6267),h=r(2196),p=r(1310),d=r(8025),f=r(9603);class y{static toStringTree(t,e){let r;r=e instanceof u.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e<t.childCount;e++)e>0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof u.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof a.ErrorNode)return t.toString();if(t instanceof p.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r<t.childCount;r++)e.push(t.getChild(r));return e}static getAncestors(t){let e=[],r=t.parent;for(;r;)e.unshift(r),r=r.parent;return e}static isAncestorOf(t,e){if(!t||!e||!t.parent)return!1;let r=e.parent;for(;r;){if(t===r)return!0;r=r.parent}return!1}static findAllTokenNodes(t,e){return y.findAllNodes(t,e,!0)}static findAllRuleNodes(t,e){return y.findAllNodes(t,e,!1)}static findAllNodes(t,e,r){let n=[];return y._findAllNodes(t,e,r,n),n}static _findAllNodes(t,e,r,n){r&&t instanceof p.TerminalNode?t.symbol.type===e&&n.push(t):!r&&t instanceof c.ParserRuleContext&&t.ruleIndex===e&&n.push(t);for(let i=0;i<t.childCount;i++)y._findAllNodes(t.getChild(i),e,r,n)}static getDescendants(t){let e=[];return function t(r){e.push(r);const n=r.childCount;for(let e=0;e<n;e++)t(r.getChild(e))}(t),e}static getRootOfSubtreeEnclosingRegion(t,e,r){let n=t.childCount;for(let i=0;i<n;i++){let n=t.getChild(i),o=y.getRootOfSubtreeEnclosingRegion(n,e,r);if(o)return o}if(t instanceof c.ParserRuleContext){let n=t.stop;if(e>=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let o=0;o<i;o++){let i=t.getChild(o),a=i.sourceInterval;if(i instanceof c.ParserRuleContext&&(a.b<r||a.a>n)&&y.isAncestorOf(i,e)){let e=new s.CommonToken(d.Token.INVALID_TYPE,"...");t.children[o]=new p.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n<r;n++){let r=y.findNodeSuchThat(t.getChild(n),e);if(void 0!==r)return r}}}n([i(0,l.NotNull)],y,"toStringTree",null),n([l.NotNull,i(0,l.NotNull)],y,"getAncestors",null),n([i(0,l.NotNull)],y,"getRootOfSubtreeEnclosingRegion",null),e.Trees=y},5466:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(2204),e),i(r(1814),e),i(r(9539),e),i(r(6892),e),i(r(7957),e),i(r(8912),e),i(r(5965),e),i(r(2196),e),i(r(4698),e),i(r(1310),e),i(r(9131),e),i(r(8766),e)},3477:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=void 0,e.Chunk=class{}},4194:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreeMatch=void 0;const o=r(2155);let s=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(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`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),e.ParseTreeMatch=s},7013:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePattern=void 0;const o=r(2155),s=r(2160);let a=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=s.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],a.prototype,"_pattern",void 0),n([o.NotNull],a.prototype,"_patternTree",void 0),n([o.NotNull],a.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],a.prototype,"match",null),n([i(0,o.NotNull)],a.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],a.prototype,"findAll",null),n([o.NotNull],a.prototype,"matcher",null),n([o.NotNull],a.prototype,"pattern",null),n([o.NotNull],a.prototype,"patternTree",null),a=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],a),e.ParseTreePattern=a},6549:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParseTreePatternMatcher=void 0;const o=r(4583),s=r(6957),a=r(2022),l=r(6526),u=r(5184),c=r(2155),h=r(8122),p=r(3574),d=r(6267),f=r(4194),y=r(7013),g=r(5406),_=r(2196),m=r(7975),v=r(5580),T=r(1310),b=r(3661),S=r(8025),E=r(7903);class x{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new u.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new u.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r=this.tokenize(t),n=new l.ListTokenSource(r),i=new a.CommonTokenStream(n);const s=this._parser;let u,c=new p.ParserInterpreter(s.grammarFileName,s.vocabulary,s.ruleNames,s.getATNWithBypassAlts(),i);try{c.errorHandler=new o.BailErrorStrategy,u=c.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof g.RecognitionException?t:t instanceof Error?new x.CannotInvokeStartRule(t):t}if(i.LA(1)!==S.Token.EOF)throw new x.StartRuleDoesNotConsumeFullPattern;return new y.ParseTreePattern(this,t,e,u)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof T.TerminalNode&&e instanceof T.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof E.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);const i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof d.ParserRuleContext&&e instanceof d.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);const e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let o=t.childCount;for(let n=0;n<o;n++){let i=this.matchImpl(t.getChild(n),e.getChild(n),r);if(i)return i}return n}return t}getRuleTagToken(t){if(t instanceof _.RuleNode&&1===t.childCount&&t.getChild(0)instanceof T.TerminalNode){let e=t.getChild(0);if(e.symbol instanceof m.RuleTagToken)return e.symbol}}tokenize(t){let e=this.split(t),r=[];for(let n of e)if(n instanceof v.TagChunk){let e=n;const i=e.tag.substr(0,1);if(i===i.toUpperCase()){let n=this._parser.getTokenType(e.tag);if(n===S.Token.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);let i=new E.TokenTagToken(e.tag,n,e.label);r.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{let n=this._parser.getRuleIndex(e.tag);if(-1===n)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);let i=this._parser.getATNWithBypassAlts().ruleToTokenType[n];r.push(new m.RuleTagToken(e.tag,i,e.label))}}}else{let t=n;this._lexer.inputStream=s.CharStreams.fromString(t.text);let e=this._lexer.nextToken();for(;e.type!==S.Token.EOF;)r.push(e),e=this._lexer.nextToken()}return r}split(t){let e=0,r=t.length,n=[],i=[],o=[];for(;e<r;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(o.push(e),e+=this.stop.length):e++;if(i.length>o.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<o.length)throw new Error("missing start tag in pattern: "+t);let s=i.length;for(let e=0;e<s;e++)if(i[e]>=o[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===s){let e=t.substring(0,r);n.push(new b.TextChunk(e))}if(s>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new b.TextChunk(e))}for(let e=0;e<s;e++){let r,a=t.substring(i[e]+this.start.length,o[e]),l=a,u=a.indexOf(":");if(u>=0&&(r=a.substring(0,u),l=a.substring(u+1,a.length)),n.push(new v.TagChunk(l,r)),e+1<s){let r=t.substring(o[e]+this.stop.length,i[e+1]);n.push(new b.TextChunk(r))}}if(s>0){let e=o[s-1]+this.stop.length;if(e<r){let i=t.substring(e,r);n.push(new b.TextChunk(i))}}for(let t=0;t<n.length;t++){let e=n[t];if(e instanceof b.TextChunk){let r=e.text.replace(this.escapeRE,"");r.length<e.text.length&&(n[t]=new b.TextChunk(r))}}return n}}n([c.NotNull,i(1,c.NotNull)],x.prototype,"match",null),n([c.NotNull],x.prototype,"lexer",null),n([c.NotNull],x.prototype,"parser",null),n([i(0,c.NotNull),i(1,c.NotNull),i(2,c.NotNull)],x.prototype,"matchImpl",null),e.ParseTreePatternMatcher=x,function(t){class e extends Error{constructor(t){super(`CannotInvokeStartRule: ${t}`),this.error=t}}t.CannotInvokeStartRule=e;class r extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern")}}t.StartRuleDoesNotConsumeFullPattern=r}(x=e.ParseTreePatternMatcher||(e.ParseTreePatternMatcher={}))},7975:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.RuleTagToken=void 0;const o=r(2155),s=r(8025);let a=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.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}};n([o.NotNull],a.prototype,"ruleName",null),n([o.Override],a.prototype,"channel",null),n([o.Override],a.prototype,"text",null),n([o.Override],a.prototype,"type",null),n([o.Override],a.prototype,"line",null),n([o.Override],a.prototype,"charPositionInLine",null),n([o.Override],a.prototype,"tokenIndex",null),n([o.Override],a.prototype,"startIndex",null),n([o.Override],a.prototype,"stopIndex",null),n([o.Override],a.prototype,"tokenSource",null),n([o.Override],a.prototype,"inputStream",null),n([o.Override],a.prototype,"toString",null),a=n([i(0,o.NotNull)],a),e.RuleTagToken=a},5580:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.TagChunk=void 0;const i=r(3477),o=r(2155);class s extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),e.TagChunk=s},3661:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TextChunk=void 0;const o=r(3477),s=r(2155);let a=class extends o.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],a.prototype,"_text",void 0),n([s.NotNull],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TextChunk=a},7903:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.TokenTagToken=void 0;const o=r(9354),s=r(2155);let a=class extends o.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}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}};n([s.NotNull],a.prototype,"_tokenName",void 0),n([s.NotNull],a.prototype,"tokenName",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.TokenTagToken=a},2160:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPath=void 0;const n=r(6957),i=r(2022),o=r(6517),s=r(6267),a=r(8025),l=r(6497),u=r(6133),c=r(1857),h=r(3719),p=r(5275),d=r(7255),f=r(5289),y=r(5673);class g{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let e=new l.XPathLexer(n.CharStreams.fromString(t));e.recover=t=>{throw t},e.removeErrorListeners(),e.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,p=0;t:for(;p<h;){let t,e=s[p];switch(e.type){case l.XPathLexer.ROOT:case l.XPathLexer.ANYWHERE:let r=e.type===l.XPathLexer.ANYWHERE;p++,t=s[p];let n=t.type===l.XPathLexer.BANG;n&&(p++,t=s[p]);let i=this.getXPathElement(t,r);i.invert=n,c.push(i),p++;break;case l.XPathLexer.TOKEN_REF:case l.XPathLexer.RULE_REF:case l.XPathLexer.WILDCARD:c.push(this.getXPathElement(e,!1)),p++;break;case a.Token.EOF:break t;default:throw new Error("Unknowth path element "+e)}}return c}getXPathElement(t,e){if(t.type===a.Token.EOF)throw new Error("Missing path element at end of path");let r=t.text;if(null==r)throw new Error("Expected wordToken to have text content.");let n=this.parser.getTokenType(r),i=this.parser.getRuleIndex(r);switch(t.type){case l.XPathLexer.WILDCARD:return e?new f.XPathWildcardAnywhereElement:new y.XPathWildcardElement;case l.XPathLexer.TOKEN_REF:case l.XPathLexer.STRING:if(n===a.Token.INVALID_TYPE)throw new Error(r+" at index "+t.startIndex+" isn't a valid token name");return e?new p.XPathTokenAnywhereElement(r,n):new d.XPathTokenElement(r,n);default:if(-1===i)throw new Error(r+" at index "+t.startIndex+" isn't a valid rule name");return e?new c.XPathRuleAnywhereElement(r,i):new h.XPathRuleElement(r,i)}}static findAll(t,e,r){return new g(r,e).evaluate(t)}evaluate(t){let e=new s.ParserRuleContext;e.addChild(t);let r=new Set([e]),n=0;for(;n<this.elements.length;){let t=new Set;for(let e of r)e.childCount>0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}e.XPath=g,g.WILDCARD="*",g.NOT="!"},3908:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathElement=void 0;const i=r(2155);class o{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),e.XPathElement=o},6497:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexer=void 0;const n=r(3583),i=r(5548),o=r(9849),s=r(8567),a=r(9603);class l extends i.Lexer{constructor(t){super(t),this._interp=new o.LexerATNSimulator(l._ATN,this)}get vocabulary(){return l.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return l.ruleNames}get serializedATN(){return l._serializedATN}get channelNames(){return l.channelNames}get modeNames(){return l.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=l.TOKEN_REF:this.type=l.RULE_REF}}static get _ATN(){return l.__ATN||(l.__ATN=(new n.ATNDeserializer).deserialize(a.toCharArray(l._serializedATN))),l.__ATN}}e.XPathLexer=l,l.TOKEN_REF=1,l.RULE_REF=2,l.ANYWHERE=3,l.ROOT=4,l.WILDCARD=5,l.BANG=6,l.ID=7,l.STRING=8,l.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],l.modeNames=["DEFAULT_MODE"],l.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],l._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],l._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],l.VOCABULARY=new s.VocabularyImpl(l._LITERAL_NAMES,l._SYMBOLIC_NAMES,[]),l._serializedATNSegments=2,l._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_üłŶʂʞʢ˒̡̲̂͌͒ͷΟυϊϑϓϗЂҟҲӕӚӽԂԩԲեܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠࣶࣴࣷंगढऻংহীুਂਂਕਗਙਛਵંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂೂစ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌኑኟኡኪኲዠጇጎጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂᢢᣡᤁᤁ᫂ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',l._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\" !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",l._serializedATN=a.join([l._serializedATNSegment0,l._serializedATNSegment1],"")},6133:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathLexerErrorListener=void 0;const i=r(2155);class o{syntaxError(t,e,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),e.XPathLexerErrorListener=o},1857:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleAnywhereElement=void 0;const i=r(2155),o=r(8766),s=r(3908);class a extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return o.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],a.prototype,"evaluate",null),e.XPathRuleAnywhereElement=a},3719:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathRuleElement=void 0;const i=r(6267),o=r(2155),s=r(8766),a=r(3908);class l extends a.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([o.Override],l.prototype,"evaluate",null),e.XPathRuleElement=l},5275:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenAnywhereElement=void 0;const i=r(2155),o=r(8766),s=r(3908);class a extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return o.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenAnywhereElement=a},7255:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathTokenElement=void 0;const i=r(2155),o=r(1310),s=r(8766),a=r(3908);class l extends a.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenElement=l},5289:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardAnywhereElement=void 0;const i=r(2155),o=r(8766),s=r(2160),a=r(3908);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){return this.invert?[]:o.Trees.getDescendants(t)}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=l},5673:function(t,e,r){var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.XPathWildcardElement=void 0;const i=r(2155),o=r(8766),s=r(2160),a=r(3908);class l extends a.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of o.Trees.getChildren(t))e.push(r);return e}}n([i.Override],l.prototype,"evaluate",null),e.XPathWildcardElement=l},6804:(t,e,r)=>{var n=r(6966);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o,s,a=r(1812).codes,l=a.ERR_AMBIGUOUS_ARGUMENT,u=a.ERR_INVALID_ARG_TYPE,c=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,p=a.ERR_MISSING_ARGS,d=r(622),f=r(2019).inspect,y=r(2019).types,g=y.isPromise,_=y.isRegExp,m=Object.assign?Object.assign:r(1473).assign,v=Object.is?Object.is:r(884);function T(){var t=r(2673);o=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var b=!1,S=t.exports=N,E={};function x(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function O(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function N(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];O.apply(void 0,[N,e.length].concat(e))}S.fail=function t(e,r,i,o,s){var a,l=arguments.length;if(0===l)a="Failed";else if(1===l)i=e,e=void 0;else{if(!1===b){b=!0;var u=n.emitWarning?n.emitWarning:console.warn.bind(console);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(i instanceof Error)throw i;var c={actual:e,expected:r,operator:void 0===o?"fail":o,stackStartFn:s||t};void 0!==i&&(c.message=i);var h=new d(c);throw a&&(h.message=a,h.generatedMessage=!0),h},S.AssertionError=d,S.ok=N,S.equal=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e!=r&&x({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},S.notEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");e==r&&x({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},S.deepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&T(),o(e,r)||x({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},S.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&T(),o(e,r)&&x({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},S.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&T(),s(e,r)||x({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},S.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===o&&T(),s(e,r)&&x({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},S.strictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");v(e,r)||x({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},S.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new p("actual","expected");v(e,r)&&x({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var A=function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&_(e[t])&&e[t].test(n[t])?i[t]=n[t]:i[t]=e[t])}))};function w(t,e,r,n,i,o){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new A(t,i),l=new A(e,i,t),u=new d({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=t,u.expected=e,u.operator=o.name,u}x({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}function R(t,e,r,n){if("function"!=typeof e){if(_(e))return e.test(t);if(2===arguments.length)throw new u("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw s.operator=n.name,s}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new c("error",e,"may not be an empty object");return void 0===o&&T(),a.forEach((function(i){"string"==typeof t[i]&&_(e[i])&&e[i].test(t[i])||w(t,e,i,r,a,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function C(t){if("function"!=typeof t)throw new u("fn","Function",t);try{t()}catch(t){return t}return E}function P(t){return g(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function I(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!P(e=t()))throw new h("instance of Promise","promiseFn",e)}else{if(!P(t))throw new u("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return E})).catch((function(t){return t}))}))}function k(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new l("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new l("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(e===E){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var s="rejects"===t.name?"rejection":"exception";x({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:t})}if(r&&!R(e,r,n,t))throw e}function L(t,e,r,n){if(e!==E){if("string"==typeof r&&(n=r,r=void 0),!r||R(e,r)){var i=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";x({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function D(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];O.apply(void 0,[D,e.length].concat(e))}S.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];k.apply(void 0,[t,C(e)].concat(n))},S.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(e).then((function(e){return k.apply(void 0,[t,e].concat(n))}))},S.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];L.apply(void 0,[t,C(e)].concat(n))},S.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(e).then((function(e){return L.apply(void 0,[t,e].concat(n))}))},S.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=f(e);var n=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=n.stack.split("\n"),l=0;l<s.length;l++){var u=a.indexOf(s[l]);if(-1!==u){a=a.slice(0,u);break}}n.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw n}},S.strict=m(D,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict},622:(t,e,r)=>{var n=r(6966);function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?a(t):e}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,p(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,t)},l(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&h(i,r.prototype),i},c.apply(null,arguments)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}var f=r(2019).inspect,y=r(1812).codes.ERR_INVALID_ARG_TYPE;function g(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var _="",m="",v="",T="",b={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function S(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function E(t){return f(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var x=function(t){function e(t){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),"object"!==d(t)||null===t)throw new y("options","Object",t);var i=t.message,o=t.operator,l=t.stackStartFn,u=t.actual,c=t.expected,h=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=s(this,p(e).call(this,String(i)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(_="[34m",m="[32m",T="[39m",v="[31m"):(_="",m="",T="",v="")),"object"===d(u)&&null!==u&&"object"===d(c)&&null!==c&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=S(u),c=S(c)),"deepStrictEqual"===o||"strictEqual"===o)r=s(this,p(e).call(this,function(t,e,r){var i="",o="",s=0,a="",l=!1,u=E(t),c=u.split("\n"),h=E(e).split("\n"),p=0,f="";if("strictEqual"===r&&"object"===d(t)&&"object"===d(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var y=c[0].length+h[0].length;if(y<=10){if(!("object"===d(t)&&null!==t||"object"===d(e)&&null!==e||0===t&&0===e))return"".concat(b[r],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==r&&y<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;c[0][p]===h[0][p];)p++;p>2&&(f="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var S=c[c.length-1],x=h[h.length-1];S===x&&(p++<2?a="\n ".concat(S).concat(a):i=S,c.pop(),h.pop(),0!==c.length&&0!==h.length);)S=c[c.length-1],x=h[h.length-1];var O=Math.max(c.length,h.length);if(0===O){var N=u.split("\n");if(N.length>30)for(N[26]="".concat(_,"...").concat(T);N.length>27;)N.pop();return"".concat(b.notIdentical,"\n\n").concat(N.join("\n"),"\n")}p>3&&(a="\n".concat(_,"...").concat(T).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var A=0,w=b[r]+"\n".concat(m,"+ actual").concat(T," ").concat(v,"- expected").concat(T),R=" ".concat(_,"...").concat(T," Lines skipped");for(p=0;p<O;p++){var C=p-s;if(c.length<p+1)C>1&&p>2&&(C>4?(o+="\n".concat(_,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(h[p-2]),A++),o+="\n ".concat(h[p-1]),A++),s=p,i+="\n".concat(v,"-").concat(T," ").concat(h[p]),A++;else if(h.length<p+1)C>1&&p>2&&(C>4?(o+="\n".concat(_,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(c[p-2]),A++),o+="\n ".concat(c[p-1]),A++),s=p,o+="\n".concat(m,"+").concat(T," ").concat(c[p]),A++;else{var P=h[p],I=c[p],k=I!==P&&(!g(I,",")||I.slice(0,-1)!==P);k&&g(P,",")&&P.slice(0,-1)===I&&(k=!1,I+=","),k?(C>1&&p>2&&(C>4?(o+="\n".concat(_,"...").concat(T),l=!0):C>3&&(o+="\n ".concat(c[p-2]),A++),o+="\n ".concat(c[p-1]),A++),s=p,o+="\n".concat(m,"+").concat(T," ").concat(I),i+="\n".concat(v,"-").concat(T," ").concat(P),A+=2):(o+=i,i="",1!==C&&0!==p||(o+="\n ".concat(I),A++))}if(A>20&&p<O-2)return"".concat(w).concat(R,"\n").concat(o,"\n").concat(_,"...").concat(T).concat(i,"\n")+"".concat(_,"...").concat(T)}return"".concat(w).concat(l?R:"","\n").concat(o).concat(i).concat(a).concat(f)}(u,c,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var f=b[o],x=E(u).split("\n");if("notStrictEqual"===o&&"object"===d(u)&&null!==u&&(f=b.notStrictEqualObject),x.length>30)for(x[26]="".concat(_,"...").concat(T);x.length>27;)x.pop();r=1===x.length?s(this,p(e).call(this,"".concat(f," ").concat(x[0]))):s(this,p(e).call(this,"".concat(f,"\n\n").concat(x.join("\n"),"\n")))}else{var O=E(u),N="",A=b[o];"notDeepEqual"===o||"notEqual"===o?(O="".concat(b[o],"\n\n").concat(O)).length>1024&&(O="".concat(O.slice(0,1021),"...")):(N="".concat(E(c)),O.length>512&&(O="".concat(O.slice(0,509),"...")),N.length>512&&(N="".concat(N.slice(0,509),"...")),"deepEqual"===o||"equal"===o?O="".concat(A,"\n\n").concat(O,"\n\nshould equal\n\n"):N=" ".concat(o," ").concat(N)),r=s(this,p(e).call(this,"".concat(O).concat(N)))}return Error.stackTraceLimit=h,r.generatedMessage=!i,Object.defineProperty(a(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=c,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(a(r),l),r.stack,r.name="AssertionError",s(r)}var r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,t),r=e,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(t,e){return f(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){i(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],l&&o(r.prototype,l),e}(l(Error));t.exports=x},1812:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}var s,a,l={};function u(t,e,r){r||(r=Error);var s=function(r){function s(r,o,a){var l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),l=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,i(s).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(r,o,a))),l.code=t,l}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,r),s}(r);l[t]=s}function c(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,a,l,u,h;if(void 0===s&&(s=r(6804)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(0,a.length)===a)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))l="The ".concat(t," ").concat(o," ").concat(c(e,"type"));else{var p=("number"!=typeof h&&(h=0),h+".".length>(u=t).length||-1===u.indexOf(".",h)?"argument":"property");l='The "'.concat(t,'" ').concat(p," ").concat(o," ").concat(c(e,"type"))}return l+". Received type ".concat(n(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(2019));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===s&&(s=r(6804)),s(e.length>0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),t.exports.codes=l},2673:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},a=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},l=Object.is?Object.is:r(884),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:r(4396);function h(t){return t.call.bind(t)}var p=h(Object.prototype.hasOwnProperty),d=h(Object.prototype.propertyIsEnumerable),f=h(Object.prototype.toString),y=r(2019).types,g=y.isAnyArrayBuffer,_=y.isArrayBufferView,m=y.isDate,v=y.isMap,T=y.isRegExp,b=y.isSet,S=y.isNativeError,E=y.isBoxedPrimitive,x=y.isNumberObject,O=y.isStringObject,N=y.isBooleanObject,A=y.isBigIntObject,w=y.isSymbolObject,R=y.isFloat32Array,C=y.isFloat64Array;function P(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function I(t){return Object.keys(t).filter(P).concat(u(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function k(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function L(t,e,r,n){if(t===e)return 0!==t||!r||l(t,e);if(r){if("object"!==i(t))return"number"==typeof t&&c(t)&&c(e);if("object"!==i(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var s,a,u,h,p=f(t);if(p!==f(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=I(t),y=I(e);return d.length===y.length&&j(t,e,r,n,1,d)}if("[object Object]"===p&&(!v(t)&&v(e)||!b(t)&&b(e)))return!1;if(m(t)){if(!m(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(T(t)){if(!T(e)||(u=t,h=e,!(o?u.source===h.source&&u.flags===h.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(h))))return!1}else if(S(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(_(t)){if(r||!R(t)&&!C(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===k(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var P=I(t),L=I(e);return P.length===L.length&&j(t,e,r,n,0,P)}if(b(t))return!(!b(e)||t.size!==e.size)&&j(t,e,r,n,2);if(v(t))return!(!v(e)||t.size!==e.size)&&j(t,e,r,n,3);if(g(t)){if(a=e,(s=t).byteLength!==a.byteLength||0!==k(new Uint8Array(s),new Uint8Array(a)))return!1}else if(E(t)&&!function(t,e){return x(t)?x(e)&&l(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):O(t)?O(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):N(t)?N(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):A(t)?A(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):w(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return j(t,e,r,n,0)}function D(t,e){return e.filter((function(e){return d(t,e)}))}function j(t,e,r,n,i,o){if(5===arguments.length){o=Object.keys(t);var s=Object.keys(e);if(o.length!==s.length)return!1}for(var a=0;a<o.length;a++)if(!p(e,o[a]))return!1;if(r&&5===arguments.length){var l=u(t);if(0!==l.length){var c=0;for(a=0;a<l.length;a++){var h=l[a];if(d(t,h)){if(!d(e,h))return!1;o.push(h),c++}else if(d(e,h))return!1}var f=u(e);if(l.length!==f.length&&D(e,f).length!==c)return!1}else{var y=u(e);if(0!==y.length&&0!==D(e,y).length)return!1}}if(0===o.length&&(0===i||1===i&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var g=n.val1.get(t);if(void 0!==g){var _=n.val2.get(e);if(void 0!==_)return g===_}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var m=H(t,e,r,o,n,i);return n.val1.delete(t),n.val2.delete(e),m}function M(t,e,r,n){for(var i=s(t),o=0;o<i.length;o++){var a=i[o];if(L(e,a,r,n))return t.delete(a),!0}return!1}function F(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(c(t))return!1}return!0}function U(t,e,r){var n=F(r);return null!=n?n:e.has(n)&&!t.has(n)}function z(t,e,r,n,i){var o=F(r);if(null!=o)return o;var s=e.get(o);return!(void 0===s&&!e.has(o)||!L(n,s,!1,i))&&!t.has(o)&&L(n,s,!1,i)}function B(t,e,r,n,i,o){for(var a=s(t),l=0;l<a.length;l++){var u=a[l];if(L(r,u,i,o)&&L(n,e.get(u),i,o))return t.delete(u),!0}return!1}function H(t,e,r,o,l,u){var c=0;if(2===u){if(!function(t,e,r,n){for(var o=null,a=s(t),l=0;l<a.length;l++){var u=a[l];if("object"===i(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!e.has(u)){if(r)return!1;if(!U(t,e,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var c=s(e),h=0;h<c.length;h++){var p=c[h];if("object"===i(p)&&null!==p){if(!M(o,p,r,n))return!1}else if(!r&&!t.has(p)&&!M(o,p,r,n))return!1}return 0===o.size}return!0}(t,e,r,l))return!1}else if(3===u){if(!function(t,e,r,o){for(var s=null,l=a(t),u=0;u<l.length;u++){var c=n(l[u],2),h=c[0],p=c[1];if("object"===i(h)&&null!==h)null===s&&(s=new Set),s.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!L(p,d,r,o)){if(r)return!1;if(!z(t,e,h,p,o))return!1;null===s&&(s=new Set),s.add(h)}}}if(null!==s){for(var f=a(e),y=0;y<f.length;y++){var g=n(f[y],2),_=(h=g[0],g[1]);if("object"===i(h)&&null!==h){if(!B(s,t,h,_,r,o))return!1}else if(!(r||t.has(h)&&L(t.get(h),_,!1,o)||B(s,t,h,_,!1,o)))return!1}return 0===s.size}return!0}(t,e,r,l))return!1}else if(1===u)for(;c<t.length;c++){if(!p(t,c)){if(p(e,c))return!1;for(var h=Object.keys(t);c<h.length;c++){var d=h[c];if(!p(e,d)||!L(t[d],e[d],r,l))return!1}return h.length===Object.keys(e).length}if(!p(e,c)||!L(t[c],e[c],r,l))return!1}for(c=0;c<o.length;c++){var f=o[c];if(!L(t[f],e[f],r,l))return!1}return!0}t.exports={isDeepEqual:function(t,e){return L(t,e,!1)},isDeepStrictEqual:function(t,e){return L(t,e,!0)}}},7737:(t,e,r)=>{var n=r(1528),i=r(3235),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},3235:(t,e,r)=>{var n=r(7156),i=r(1528),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=a(n,s,arguments);if(l&&u){var r=l(e,"length");r.configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))})}return e};var h=function(){return a(n,o,arguments)};u?u(t.exports,"apply",{value:h}):t.exports.apply=h},6506:(t,e,r)=>{var n=r(3438),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,l=r(2320)(),u=a&&l,c=function(t,e,r,n){var i;(!(e in t)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(u?a(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},h=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)c(t,o[a],e[o[a]],r[o[a]])};h.supportsDescriptors=!!u,t.exports=h},1473:t=>{function e(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),s=0,a=o.length;s<a;s++){var l=o[s],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(r[l]=i[l])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}}},7025:(t,e,r)=>{var n=r(3765),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))},a=function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)},l=function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))};t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(t)?s(t,e,o):"string"==typeof t?a(t,e,o):l(t,e,o)}},2521:t=>{var e="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";t.exports=function(t){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(e+o);for(var s,a=r.call(arguments,1),l=function(){if(this instanceof s){var e=o.apply(this,a.concat(r.call(arguments)));return Object(e)===e?e:this}return o.apply(t,a.concat(r.call(arguments)))},u=Math.max(0,o.length-a.length),c=[],h=0;h<u;h++)c.push("$"+h);if(s=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(l),o.prototype){var p=function(){};p.prototype=o.prototype,s.prototype=new p,p.prototype=null}return s}},7156:(t,e,r)=>{var n=r(2521);t.exports=Function.prototype.bind||n},1528:(t,e,r)=>{var n,i=SyntaxError,o=Function,s=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(t){l=null}var u=function(){throw new s},c=l?function(){try{return u}catch(t){try{return l(arguments,"callee").get}catch(t){return u}}}():u,h=r(465)(),p=Object.getPrototypeOf||function(t){return t.__proto__},d={},f="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h?p(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=p(i.prototype))}return y[e]=r,r},_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(7156),v=r(8776),T=m.call(Function.call,Array.prototype.concat),b=m.call(Function.apply,Array.prototype.splice),S=m.call(Function.call,String.prototype.replace),E=m.call(Function.call,String.prototype.slice),x=m.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,A=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(t,O,(function(t,e,r,i){n[n.length]=r?S(i,N,"$1"):e||t})),n},w=function(t,e){var r,n=t;if(v(_,n)&&(n="%"+(r=_[n])[0]+"%"),v(y,n)){var o=y[n];if(o===d&&(o=g(n)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A(t),n=r.length>0?r[0]:"",o=w("%"+n+"%",e),a=o.name,u=o.value,c=!1,h=o.alias;h&&(n=h[0],b(r,T([0,1],h)));for(var p=1,d=!0;p<r.length;p+=1){var f=r[p],g=E(f,0,1),_=E(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===_||"'"===_||"`"===_)&&g!==_)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&d||(c=!0),v(y,a="%"+(n+="."+f)+"%"))u=y[a];else if(null!=u){if(!(f in u)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(l&&p+1>=r.length){var m=l(u,f);u=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:u[f]}else d=v(u,f),u=u[f];d&&!c&&(y[a]=u)}}return u}},1455:(t,e,r)=>{var n=r(1528)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},2320:(t,e,r)=>{var n=r(1528)("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},465:(t,e,r)=>{var n="undefined"!=typeof Symbol&&Symbol,i=r(6073);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6073:t=>{t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6686:(t,e,r)=>{var n=r(6073);t.exports=function(){return n()&&!!Symbol.toStringTag}},8776:(t,e,r)=>{var n=r(7156);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},3915:function(t,e,r){var n=r(6966),i=r(2019).inherits,o=r(737),s=r(5178).EventEmitter,a=r(7682).s,l=r(3946).Readable,u=t.exports=function(t,e,r){return new T(t,e,r)},c=Array.prototype.slice,h=Object.prototype.hasOwnProperty,p=function(){return Function.prototype.bind&&!this}();u.isUndefined=function(t){return void 0===t},u.isFunction=function(t){return"function"==typeof t},u.isObject=function(t){return"object"==typeof t&&null!==t},u.isString=function(t){return"string"==typeof t},u.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},"undefined"==typeof setImmediate?u.setImmediate=function(t){setTimeout(t,0)}:u.setImmediate=function(t){setImmediate(t)};var d=this;void 0!==r.g?d=r.g:"undefined"!=typeof window&&(d=window),d.nil||(d.nil={});var f=u.nil=d.nil;function y(){}function g(t,e){return t.once("error",e),function(){t.removeListener("error",e)}}function _(t){return u((function(e,r){var n,i;try{n=t.next()}catch(t){i=t}i?(e(i),e(null,u.nil)):n.done?(u.isUndefined(n.value)||e(null,n.value),e(null,u.nil)):(e(null,n.value),r())}))}function m(t){var e,r=typeof t;return e="function"===r?t:"number"===r?function(){return c.call(arguments,0,t)}:u.isArray(t)?function(){var e=arguments;return t.reduce((function(t,r,n){return t[r]=e[n],t}),{})}:function(t){return t},e}function v(t,e,r,n,i){var o=null;i||(t._send_events=!0);var s=t.consume((function(t,s,a,l){var u;if(t)u=!i||r.call(e,new S(t));else{if(s===f)return void n.call(e);u=r.call(e,s)}!1!==u?l():o=l}));return e.on("drain",a),t._destructors.push((function(){e.removeListener("drain",a)})),e.emit("pipe",t),u.setImmediate((function(){s.resume()})),e;function a(){if(o){var t=o;o=null,t()}}}function T(t,e,r){if(t&&u.isStream(t))return t;s.call(this);var n,i,o,a,l=this;if(l.__HighlandStream__=!0,l.id=(""+Math.random()).substr(2,6),this.paused=!0,this._incoming=[],this._outgoing=[],this._consumers=[],this._observers=[],this._destructors=[],this._send_events=!1,this._nil_pushed=!1,this._delegate=null,this._is_observer=!1,this._in_consume_cb=!1,this._repeat_resume=!1,this._can_drain=!1,this._consume_waiting_for_next=!1,this.source=null,this.writable=!0,l.on("newListener",(function(t){var e,r;"data"===t?(l._send_events=!0,u.setImmediate((e=l.resume,r=l,p?e.bind(r):function(){return e.apply(r,arguments)}))):"end"===t&&(l._send_events=!0)})),l.on("removeListener",(function(t){"end"!==t&&"data"!==t||l.listeners("end").length+l.listeners("data").length===0&&(l._send_events=!1)})),u.isUndefined(t))return this;if(u.isArray(t))return l._incoming=t.concat([f]),this;if(u.isFunction(t))return this._generator=t,this._generator_push=(o=this,a||(a=o.write),function(t,e){a.call(o,t?new S(t):e)}),this._generator_next=function(t){if(l._nil_pushed)throw new Error("Cannot call next after nil");if(t){var e=l.paused;e||l.pause(),l.write(new E(t)),e||l._resume(!1)}else l._generator_running=!1;l.paused||l._resume(!1)},this;if(u.isObject(t)){if(u.isFunction(t.on)&&u.isFunction(t.pipe)){var c=u.isFunction(e)?e:g;return function(t,e,r){var n=e(t,(function(t){r._nil_pushed||(t&&r.write(new S(t)),(null==t||s)&&(a(),r.end()))})),i=!1,o=null,s=!0;function a(){i||(i=!0,o&&o(),t.unpipe&&t.unpipe(r))}u.isFunction(n)?o=n:null!=n&&(o=n.onDestroy,s=!n.continueOnError),t.pipe(r),r._destructors.push(a)}(t,c,l),this}if(u.isFunction(t.then))return n=t,i=!1,u((function(t){n=n.then((function(e){return i=!0,u.setImmediate((function(){t(null,e),t(null,f)})),null}),(function(e){return i=!0,u.setImmediate((function(){t(e),t(null,f)})),null})),u.isFunction(n.finally)&&n.finally((function(){return i||u.setImmediate((function(){t(null,f)})),null}))}));if(u.isFunction(t.next))return _(t);if(!u.isUndefined(d.Symbol)&&t[d.Symbol.iterator])return _(t[d.Symbol.iterator]());throw new Error("Object was not a stream, promise, iterator or iterable: "+typeof t)}if(u.isString(t)){var h=m(r),y=function(){var t=h.apply(this,arguments);l.write(t)};e.on(t,y);var v=e.removeListener||e.unbind;return v&&this._destructors.push((function(){v.call(e,t,y)})),this}throw new Error("Unexpected argument type to Stream(): "+typeof t)}function b(t){var e=T.prototype[t],r=e.length;u[t]=u.ncurry(r+1,(function(){var t=c.call(arguments),r=u(t.pop());return e.apply(r,t)}))}function S(t){this.__HighlandStreamError__=!0,this.error=t}function E(t){this.__HighlandStreamRedirect__=!0,this.to=t}u.curry=function(t){var e=c.call(arguments);return u.ncurry.apply(this,[t.length].concat(e))},u.ncurry=function(t,e){var r=c.call(arguments,2);return r.length>=t?e.apply(this,r.slice(0,t)):u.partial.apply(this,[u.ncurry,t,e].concat(r))},u.partial=function(t){var e=c.call(arguments,1);return function(){return t.apply(this,e.concat(c.call(arguments)))}},u.flip=u.curry((function(t,e,r){return t(r,e)})),u.compose=function(){var t=c.call(arguments).reverse();return u.seq.apply(null,t)},u.seq=function(){var t=c.call(arguments);return function(){if(!t.length)return null;for(var e=t[0].apply(this,arguments),r=1;r<t.length;r++)e=t[r].call(this,e);return e}},i(T,s),u.of=function(t){return u([t])},u.fromError=function(t){return u((function(e){e(t),e(null,u.nil)}))},u.isNil=function(t){return t===u.nil},u.isStream=function(t){return u.isObject(t)&&!!t.__HighlandStream__},u._isStreamError=function(t){return u.isObject(t)&&!!t.__HighlandStreamError__},u._isStreamRedirect=function(t){return u.isObject(t)&&!!t.__HighlandStreamRedirect__},T.prototype._send=function(t,e){var r;if(this._consumers.length){r=t?new S(t):e;for(var n=this._consumers,i=0,o=n.length;i<o;i++)n[i].write(r)}if(this._observers.length){r=t?new S(t):e;for(var s=this._observers,a=0,l=s.length;a<l;a++)s[a].write(r)}this._send_events&&(t?this.emit("error",t):e===f?this.emit("end"):this.emit("data",e)),e===f&&this._onEnd()},T.prototype._onEnd=function(){if(!this.ended){if(this.pause(),this.ended=!0,this.source){var t=this.source;t._removeConsumer(this),t._removeObserver(this)}var e,r,n,i=this._consumers;for(e=0,r=i.length;e<r;e++)this._removeConsumer(i[e]);for(e=0,r=this._observers.length;e<r;e++)(n=this._observers[e]).source===this&&(n.source=null);for(e=0,r=this._destructors.length;e<r;e++)this._destructors[e].call(this);this.source=null,this._consumers=[],this._incoming=[],this._outgoing=[],this._delegate=null,this._generator=null,this._observers=[],this._destructors=[]}},T.prototype.pause=function(){this.paused=!0,!this._is_observer&&this.source&&this.source._checkBackPressure()},T.prototype._checkBackPressure=function(){if(!this._consumers.length)return this._repeat_resume=!1,void this.pause();for(var t=0,e=this._consumers.length;t<e;t++)if(this._consumers[t].paused)return this._repeat_resume=!1,void this.pause();this._resume(!1)},T.prototype._readFromBuffer=function(){for(var t=this._incoming.length,e=0;e<t&&!this.paused;){var r=this._incoming[e];u._isStreamError(r)?this._send(r.error):u._isStreamRedirect(r)?this._redirect(r.to):this._send(null,r),e++}this._incoming.splice(0,e)},T.prototype._sendOutgoing=function(){for(var t=this._outgoing.length,e=0;e<t&&!this.paused;){var r=this._outgoing[e];u._isStreamError(r)?T.prototype._send.call(this,r.error):u._isStreamRedirect(r)?this._redirect(r.to):T.prototype._send.call(this,null,r),e++}this._outgoing.splice(0,e)},T.prototype._resume=function(t){if(this._resume_running||this._in_consume_cb)this._repeat_resume=!0;else{this._resume_running=!0;do{this._repeat_resume=!1,this.paused=!1,this._sendOutgoing(),this._readFromBuffer(),this.paused||this._is_observer||(this.source?this._consume_waiting_for_next&&!t||this.source._checkBackPressure():this._generator?this._runGenerator():this._can_drain&&(this._can_drain=!1,this.emit("drain")))}while(this._repeat_resume);this._resume_running=!1}},T.prototype.resume=function(){this._resume(!0)},T.prototype.end=function(){this._nil_pushed||this.write(f)},T.prototype.pipe=function(t,e){var r;return e=e||{},r=t!==n.stdout&&t!==n.stderr&&!1!==e.end?t.end:y,v(this,t,t.write,r,!1)},T.prototype.destroy=function(){this.ended||(this._nil_pushed||this.end(),this._onEnd())},T.prototype._runGenerator=function(){this._generator_running||(this._generator_running=!0,this._generator(this._generator_push,this._generator_next))},T.prototype._redirect=function(t){for(t=u(t);t._delegate;)t=t._delegate;t._consumers=this._consumers.map((function(e){return e.source=t,e})),this._consumers=[],t._delegate_source=this._delegate_source||this,t._delegate_source._delegate=t,this.paused?t.pause():(this.pause(),t._checkBackPressure())},T.prototype._addConsumer=function(t){if(this._consumers.length)throw new Error("This stream has already been transformed or consumed. Please fork() or observe() the stream if you want to perform parallel transformations.");t.source=this,this._consumers.push(t),this._checkBackPressure()},T.prototype._removeConsumer=function(t){for(var e=this;e._delegate;)e=e._delegate;e._consumers=e._consumers.filter((function(e){return e!==t})),t.source===e&&(t.source=null),e._checkBackPressure()},T.prototype._removeObserver=function(t){this._observers=this._observers.filter((function(e){return e!==t})),t.source===this&&(t.source=null)},T.prototype.consume=function(t){for(var e=this;e._delegate;)e=e._delegate;var r,n,i=new T;i._is_consumer=!0;var o=i._send,s=function(t,n){if(i._nil_pushed)throw new Error("Cannot write to stream after nil");n===f&&(i._nil_pushed=!0,i._consume_waiting_for_next=!1,e._removeConsumer(i),r&&i._resume(!1)),i.paused?t?i._outgoing.push(new S(t)):i._outgoing.push(n):o.call(i,t,n)},a=function(t){if(i._consume_waiting_for_next=!1,i._nil_pushed)throw new Error("Cannot call next after nil");if(t){var e=i.paused;e||i.pause(),i.write(new E(t)),e||i._resume(!1)}else r?i._resume(!1):n=!0};return i._send=function(e,o){r=!1,n=!1,i._in_consume_cb=!0,t(e,o,s,a),i._in_consume_cb=!1,r=!0,n||o===f||(i._consume_waiting_for_next=!0,i.pause()),i._repeat_resume&&(i._repeat_resume=!1,i._resume(!1))},e._addConsumer(i),e._already_consumed=!0,i},b("consume"),T.prototype.pull=function(t){var e=this.consume((function(r,n){e.source._removeConsumer(e),t(r,n)}));e.id="pull:"+e.id,e.resume()},T.prototype.write=function(t){if(this._nil_pushed)throw new Error("Cannot write to stream after nil");return t!==u.nil||this._is_consumer||(this._nil_pushed=!0),this.paused?this._incoming.push(t):u._isStreamError(t)?this._send(t.error):this._send(null,t),this.paused&&(this._can_drain=!0),!this.paused};var x=o((function(){}),"Highland: Calling Stream.fork() on a stream that has already been consumed is deprecated. Always call fork() on a stream that is meant to be forked.");function O(t,e){var r,n=!1;return function(i,o,s,a){i?(s(null,f),e(n?new Error(t+" called on stream emitting multiple values"):i)):o===f?n?e(null,r):e():n?(s(null,f),e(new Error(t+" called on stream emitting multiple values"))):(r=o,n=!0,a())}}T.prototype.fork=function(){this._already_consumed&&x();var t=new T;return t.id="fork:"+t.id,t.source=this,this._consumers.push(t),this._checkBackPressure(),t},T.prototype.observe=function(){var t=new T;return t.id="observe:"+t.id,t.source=this,t._is_observer=!0,this._observers.push(t),t},T.prototype.errors=function(t){return this.consume((function(e,r,n,i){e?(t(e,n),i()):r===f?n(null,f):(n(null,r),i())}))},b("errors"),T.prototype.stopOnError=function(t){return this.consume((function(e,r,n,i){e?(t(e,n),n(null,f)):r===f?n(null,f):(n(null,r),i())}))},b("stopOnError"),T.prototype.each=function(t){var e=this,r=this.consume((function(r,n,i,o){r?e.emit("error",r):n===f?i(null,f):(t(n),o())}));return r.resume(),r},b("each"),T.prototype.apply=function(t){return this.toArray((function(e){t.apply(null,e)}))},b("apply"),T.prototype.toArray=function(t){var e=this;return this.collect().pull((function(r,n){r?e.emit("error",r):t(n)}))},T.prototype.done=function(t){if(this.ended)return t(),null;var e=this;return this.consume((function(r,n,i,o){r?e.emit("error",r):n===f?t():o()})).resume()},T.prototype.toCallback=function(t){this.consume(O("toCallback",t)).resume()},b("toCallback"),T.prototype.toPromise=function(t){var e=this;return new t((function(t,r){e.consume(O("toPromise",(function(e,n){e?r(e):t(n)}))).resume()}))},b("toPromise"),T.prototype.toNodeStream=function(t){return new l(t).wrap(this)},b("toNodeStream");var N=o((function(){}),"Highland: Calling Stream.map() with a non-function argument is deprecated.");T.prototype.map=function(t){if(!u.isFunction(t)){N();var e=t;t=function(){return e}}return this.consume((function(e,r,n,i){if(e)n(e),i();else if(r===f)n(e,r);else{var o,s;try{o=t(r)}catch(t){s=t}n(s,o),i()}}))},b("map"),T.prototype.doto=function(t){return this.map((function(e){return t(e),e}))},b("doto"),T.prototype.tap=T.prototype.doto,u.tap=u.doto,T.prototype.ratelimit=function(t,e){if(t<1)throw new Error("Invalid number of operations per ms: "+t);var r=0;return this.consume((function(n,i,o,s){n?(o(n),s()):i===f?o(null,f):r<t?(r++,o(null,i),s()):setTimeout((function(){r=1,o(null,i),s()}),e)}))},b("ratelimit"),T.prototype.flatMap=function(t){return this.map(t).sequence()},b("flatMap"),T.prototype.pluck=function(t){return this.consume((function(e,r,n,i){e?(n(e),i()):r===f?n(e,r):u.isObject(r)?(n(null,r[t]),i()):(n(new Error("Expected Object, got "+typeof r)),i())}))},b("pluck");var A=u.curry((function(t,e){if(u.isObject(e))return t(e);throw new Error("Expected Object, got "+typeof e)}));function w(t){this.push=t}function R(t){var e=[];for(var r in t)h.call(t,r)&&e.push(r);return e}function C(t){if("function"!=typeof t||!t.prototype)return!1;var e=(p?Object.getOwnPropertyNames:R)(t.prototype);return e.length>0&&!(1===e.length&&"constructor"===e[0])}function P(t){for(var e={},r=t,n=function(t){e[t]=!0};Object.getPrototypeOf(r);)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return R(e)}function I(t,e){for(var r=(p?P:R)(t),n=0,i=r.length;n<i;n++){var o,s=r[n];try{o=t[s]}catch(t){}if(o&&"function"==typeof o&&!C(o)&&!o.__HighlandStreamifiedFunction__){var a=u.wrapCallback(o);a.__HighlandStreamifiedFunction__=!0,t[s+e]=a}}return t}T.prototype.pickBy=function(t){return this.map(A((function(e){var r={},n=p?Object.create(null):{},i=e;function o(i){!0!==n[i]&&t(i,e[i])&&(r[i]=e[i],n[i]=!0)}if(p)do{Object.getOwnPropertyNames(i).forEach(o),i=Object.getPrototypeOf(i)}while(i);else for(var s in e)o(s);return r})))},b("pickBy"),T.prototype.pick=function(t){return this.map(A((function(e){for(var r={},n=0,i=t.length;n<i;n++){var o=t[n];o in e&&(r[o]=e[o])}return r})))},b("pick"),T.prototype.filter=function(t){return this.consume((function(e,r,n,i){if(e)n(e),i();else if(r===f)n(e,r);else{var o,s;try{o=t(r)}catch(t){s=t}s?n(s):o&&n(null,r),i()}}))},b("filter"),T.prototype.flatFilter=function(t){return this.flatMap((function(e){return t(e).take(1).otherwise(u((function(t){t(new Error("Stream returned by function was empty.")),t(null,u.nil)}))).flatMap((function(t){return u(t?[e]:[])}))}))},b("flatFilter"),T.prototype.reject=function(t){return this.filter(u.compose(u.not,t))},b("reject"),T.prototype.find=function(t){return this.filter(t).take(1)},b("find"),T.prototype.findWhere=function(t){return this.where(t).take(1)},b("findWhere"),T.prototype.group=function(t){var e=u.isString(t)?u.get(t):t;return this.reduce({},(function(t,r){var n=e(r);return h.call(t,n)||(t[n]=[]),t[n].push(r),t}))},b("group"),T.prototype.compact=function(){return this.filter((function(t){return t}))},b("compact"),T.prototype.where=function(t){return this.filter((function(e){for(var r in t)if(e[r]!==t[r])return!1;return!0}))},b("where"),T.prototype.uniqBy=function(t){var e=[];return this.consume((function(r,n,i,o){if(r)i(r),o();else if(n===f)i(r,n);else{for(var s,a=!1,l=0,u=e.length;l<u;l++){try{a=t(n,e[l])}catch(t){s=t,a=!0}if(a)break}a||(e.push(n),i(null,n)),s&&i(s),o()}}))},b("uniqBy"),T.prototype.uniq=function(){if(!u.isUndefined(d.Set)){var t=new d.Set,e=t.size;return this.consume((function(r,n,i,o){r?(i(r),o()):n===f?i(r,n):n!=n?(i(null,n),o()):(t.add(n),t.size>e&&(e=t.size,i(null,n)),o())}))}return this.uniqBy((function(t,e){return t===e}))},b("uniq"),T.prototype.zipAll0=function(){var t=0,e=[],r=!1;function n(i,o,s,a,l){s.pull((function(c,h){c?(a(c),n(i,o,s,a,l)):h===u.nil?r||(r=!0,a(null,f)):(t++,e[i]=h,t===o&&(a(null,e),l()))}))}return this.collect().flatMap((function(r){return r.length?u((function(i,o){t=0,e=[];for(var s=0,a=r.length;s<a;s++)n(s,a,r[s],i,o)})):u([])}))},b("zipAll0"),T.prototype.zipAll=function(t){return u([this]).concat(u(t).map(u)).zipAll0()},b("zipAll"),T.prototype.zip=function(t){return u([this,u(t)]).zipAll0()},b("zip"),T.prototype.batch=function(t){return this.batchWithTimeOrCount(-1,t)},b("batch"),T.prototype.batchWithTimeOrCount=function(t,e){var r,n=[];return this.consume((function(i,o,s,a){i?(s(i),a()):o===f?(n.length>0&&(s(null,n),clearTimeout(r)),s(null,f)):(n.push(o),n.length===e?(s(null,n),n=[],clearTimeout(r)):1===n.length&&t>=0&&(r=setTimeout((function(){s(null,n),n=[]}),t)),a())}))},b("batchWithTimeOrCount"),T.prototype.intersperse=function(t){var e=!1;return this.consume((function(r,n,i,o){r?(i(r),o()):n===f?i(null,f):(e?i(null,t):e=!0,i(null,n),o())}))},b("intersperse"),T.prototype.splitBy=function(t){var e=new a,r=!1;function n(n,i){var o=(r=(r||"")+e.write(n)).split(t);r=o.pop(),o.forEach((function(t){i(null,t)}))}return this.consume((function(t,i,o,s){t?(o(t),s()):i===f?(u.isString(r)&&(n(e.end(),o),o(null,r)),o(null,f)):(n(i,o),s())}))},b("splitBy"),T.prototype.split=function(){return this.splitBy(/\r?\n/)},b("split"),T.prototype.slice=function(t,e){var r=0;if(e="number"!=typeof e?1/0:e,0===(t="number"!=typeof t||t<0?0:t)&&e===1/0)return this;if(t>=e)return u([]);var n=this.consume((function(n,i,o,s){var a=i===f;n?o(n):!a&&r++>=t&&o(null,i),!a&&r<e?s():o(null,f)}));return n.id="slice:"+n.id,n},b("slice"),T.prototype.take=function(t){var e=this.slice(0,t);return e.id="take:"+e.id,e},b("take"),T.prototype.drop=function(t){return this.slice(t,1/0)},b("drop"),T.prototype.head=function(){return this.take(1)},b("head"),T.prototype.last=function(){var t={},e=t;return this.consume((function(r,n,i,o){r?(i(r),o()):n===f?(e!==t&&i(null,e),i(null,f)):(e=n,o())}))},b("last"),T.prototype.sortBy=function(t){return this.collect().invoke("sort",[t]).sequence()},b("sortBy"),T.prototype.sort=function(){return this.sortBy()},b("sort"),T.prototype.through=function(t){var e;return u.isFunction(t)?t(this):(e=u(),this.on("error",r),t.on("error",r),v(this,t,t.write,t.end,!1).pipe(e));function r(t){e.write(new S(t))}},b("through"),u.pipeline=function(){if(!arguments.length)return u();var t,e,r=arguments[0];u.isStream(r)||u.isFunction(r.resume)?(e=u(r),t=c.call(arguments,1)):(e=r=u(),t=c.call(arguments));var n=t.reduce((function(t,e){return t.through(e)}),e),i=u((function(t,e){n.pull((function(r,n){t(r,n),n!==f&&e()}))}));return i.write=function(t){return r.write(t)},i.end=function(){return r.end()},r.on("drain",(function(){i.emit("drain")})),i},T.prototype.sequence=function(){var t=this,e=this;return u((function(n,i){e.pull((function(o,s){o?(n(o),i()):u.isArray(s)?(r()?s.forEach((function(t){n(null,t)})):n(null,s),i()):u.isStream(s)?r()?(e=s,i()):(n(null,s),i()):s===f?r()?n(null,f):(e=t,i()):r()?(n(new Error("Expected Stream, got "+typeof s)),i()):(n(null,s),i())}))}));function r(){return e===t}},b("sequence"),T.prototype.series=T.prototype.sequence,u.series=u.sequence,T.prototype.flatten=function(){var t=this,e=[];return u((function(r,n){t.pull((function(i,o){if(i)return r(i),void n();u.isArray(o)&&(o=u(o)),u.isStream(o)?(e.push(t),t=o,n()):o===f?e.length?(t=e.pop(),n()):r(null,f):(r(null,o),n())}))}))},b("flatten"),T.prototype.parallel=function(t){var e=this,r=[],n=!1,i=!1;if("number"!=typeof t)throw new Error("Must specify a number to parallel().");if(t<=0)throw new Error("The parallelism factor must be positive");return u((function(o,s){r.length<t&&!n&&!i?(i=!0,e.pull((function(t,e){if(i=!1,t)o(t);else if(e===f)n=!0;else if(u.isStream(e)){var a={stream:e,buffer:[]};r.push(a),e.consume((function(t,e,n,i){r[0]===a?e===f?(r.shift(),function(){for(;r.length&&r[0].buffer.length;){for(var t=r[0].buffer,e=0;e<t.length;e++){if(t[e][1]===f){r.shift();break}o.apply(null,t[e])}t.length=0}}(),s()):o(t,e):a.buffer.push([t,e]),e!==f&&i()})).resume()}else o(new Error("Expected Stream, got "+typeof e));return s()}))):!r.length&&n&&o(null,f)}))},b("parallel"),T.prototype.otherwise=function(t){var e=this;return e.consume((function(r,n,i,o){r?(i(r),o()):n===f?u.isFunction(t)?o(t()):o(t):(i(null,n),o(e))}))},b("otherwise"),T.prototype.append=function(t){return this.consume((function(e,r,n,i){r===f?(n(null,t),n(null,u.nil)):(n(e,r),i())}))},b("append"),T.prototype.reduce=function(t,e){return this.consume((function(r,n,i,o){if(n===f)i(null,t),i(null,u.nil);else if(r)i(r),o();else{try{t=e(t,n)}catch(t){return i(t),void i(null,u.nil)}o()}}))},b("reduce"),T.prototype.reduce1=function(t){var e=this;return u((function(r,n){e.pull((function(i,o){i?(r(i),n()):o===f?r(null,f):n(e.reduce(o,t))}))}))},b("reduce1"),T.prototype.collect=function(){var t=[];return this.consume((function(e,r,n,i){e?(n(e),i()):r===f?(n(null,t),n(null,f)):(t.push(r),i())}))},b("collect"),T.prototype.scan=function(t,e){return u([t]).concat(this.consume((function(r,n,i,o){if(n===f)i(null,u.nil);else if(r)i(r),o();else{try{t=e(t,n)}catch(t){return i(t),void i(null,u.nil)}i(null,t),o()}})))},b("scan"),T.prototype.scan1=function(t){var e=this;return u((function(r,n){e.pull((function(i,o){i?(r(i),n()):o===f?r(null,f):n(e.scan(o,t))}))}))},b("scan1"),w.prototype["@@transducer/init"]=function(){return this.push},w.prototype["@@transducer/result"]=function(t){return t},w.prototype["@@transducer/step"]=function(t,e){return t(null,e),t},T.prototype.transduce=function(t){var e=null,r=null;return this.consume((function(i,o,s,a){if(null==e&&(e=t(new w(s)),r=e["@@transducer/init"]()),i)s(i),a();else if(o===u.nil)n(s,r);else{var l=function(t,r,n){try{return e["@@transducer/step"](r,n)}catch(e){return t(e),t(null,u.nil),null}}(s,r,o);if(!l)return;(r=l)["@@transducer/reduced"]?n(r["@@transducer/value"]):a()}}));function n(t,r){try{e["@@transducer/result"](r)}catch(e){t(e)}t(null,u.nil)}},b("transduce"),T.prototype.concat=function(t){return t=u(t),this.consume((function(e,r,n,i){r===f?i(t):(n(e,r),i())}))},b("concat"),T.prototype.merge=function(){var t=this,e=[],r=[],n=!0,i=!1;return u((function(s,a){n&&(n=!1,function(n,i){for(var s,a=!1,l=function(l,u){s=!1,a?o(n,i,t)(l,u):l?n(l):u===f?a=!0:(e.push(u),r.push(u))};!a;)s=!0,t.pull(l),s&&(a=!0,e.unshift(t))}(s,a)),0===e.length?s(null,f):r.length?(function(t,e){var n=r;r=[],n.forEach((function(r){r.pull(o(t,e,r))}))}(s,a),a()):i=!0}));function o(n,o,s){return function(a,l){a?(n(a),r.push(s)):l===f?e=e.filter((function(t){return t!==s})):s===t?(e.push(l),r.push(l),r.unshift(t)):(n(null,l),r.push(s)),i&&(i=!1,o())}}},b("merge"),T.prototype.mergeWithLimit=function(t){var e=this,r=0,n=!1;if("number"!=typeof t||t<1)throw new Error("mergeWithLimit expects a positive number, but got: "+t);return t===1/0?this.merge():u((function(i,o){e.pull((function(e,s){var a=s===f;e?(i(e),o()):s===f?i(null,f):(r++,i(e,s),s._destructors.push((function(){r--,n&&(n=!1,o())})),!a&&r<t?o():n=!0)}))})).merge()},b("mergeWithLimit"),T.prototype.invoke=function(t,e){return this.map((function(r){return r[t].apply(r,e)}))},b("invoke"),T.prototype.nfcall=function(t){return this.map((function(e){return u.wrapCallback(e).apply(e,t)}))},b("nfcall"),T.prototype.throttle=function(t){var e=0-t;return this.consume((function(r,n,i,o){var s=(new Date).getTime();r?(i(r),o()):n===f?i(null,f):s-t>=e?(e=s,i(null,n),o()):o()}))},b("throttle"),T.prototype.debounce=function(t){var e=null,r={},n=r;return this.consume((function(i,o,s,a){i?(s(i),a()):o===f?(e&&clearTimeout(e),n!==r&&s(null,n),s(null,f)):(n=o,e&&clearTimeout(e),e=setTimeout((function(){s(null,o)}),t),a())}))},b("debounce"),T.prototype.latest=function(){var t={},e=t,r=[],n=!1,i=null;return this.consume((function(t,o,s,a){if(null!=i){var l=i;i=null,l(t,o)}t?(r.push(t),a()):o===f?n=!0:(e=o,a())})).resume(),u((function(o,s){var a=r;r=[],a.length||e!==t||n?(a.forEach(o),e!==t&&o(null,e),n?o(null,f):s()):i=function(t,e){o(t,e),e!==f&&s()}}))},b("latest"),u.values=function(t){return u.keys(t).map((function(e){return t[e]}))},u.keys=function(t){return u(R(t))},u.pairs=function(t){return u.keys(t).map((function(e){return[e,t[e]]}))},u.extend=u.curry((function(t,e){for(var r in t)h.call(t,r)&&(e[r]=t[r]);return e})),u.get=u.curry((function(t,e){return e[t]})),u.set=u.curry((function(t,e,r){return r[t]=e,r})),u.log=function(){console.log.apply(console,arguments)},u.wrapCallback=function(t,e){var r=m(e);return function(){var e=this,n=c.call(arguments);return u((function(i){t.apply(e,n.concat([function(t){if(t)i(t);else{var e=c.call(arguments,1),n=r.apply(this,e);i(null,n)}i(null,f)}]))}))}},u.streamifyAll=function(t){if("function"!=typeof t&&"object"!=typeof t)throw new TypeError("takes an object or a constructor function");var e="Stream",r=I(t,e);return C(t)&&(r.prototype=I(t.prototype,e)),r},u.add=u.curry((function(t,e){return t+e})),u.not=function(t){return!t}},2088:(t,e,r)=>{var n=r(6804);function i(t){n.ok(t===i.REQUEST||t===i.RESPONSE||void 0===t),void 0===t||this.initialize(t),this.maxHeaderSize=i.maxHeaderSize}i.prototype.initialize=function(t,e){n.ok(t===i.REQUEST||t===i.RESPONSE),this.type=t,this.state=t+"_LINE",this.info={headers:[],upgrade:!1},this.trailers=[],this.line="",this.isChunked=!1,this.connection="",this.headerSize=0,this.body_bytes=null,this.isUserCall=!1,this.hadError=!1},i.encoding="ascii",i.maxHeaderSize=81920,i.REQUEST="REQUEST",i.RESPONSE="RESPONSE";var o=i.kOnHeaders=1,s=i.kOnHeadersComplete=2,a=i.kOnBody=3,l=i.kOnMessageComplete=4;i.prototype[o]=i.prototype[s]=i.prototype[a]=i.prototype[l]=function(){};var u=!0;Object.defineProperty(i,"kOnExecute",{get:function(){return u=!1,99}});var c=i.methods=["DELETE","GET","HEAD","POST","PUT","CONNECT","OPTIONS","TRACE","COPY","LOCK","MKCOL","MOVE","PROPFIND","PROPPATCH","SEARCH","UNLOCK","BIND","REBIND","UNBIND","ACL","REPORT","MKACTIVITY","CHECKOUT","MERGE","M-SEARCH","NOTIFY","SUBSCRIBE","UNSUBSCRIBE","PATCH","PURGE","MKCALENDAR","LINK","UNLINK","SOURCE"],h=c.indexOf("CONNECT");i.prototype.reinitialize=i,i.prototype.close=i.prototype.pause=i.prototype.resume=i.prototype.free=function(){},i.prototype._compatMode0_11=!1,i.prototype.getAsyncId=function(){return 0};var p={REQUEST_LINE:!0,RESPONSE_LINE:!0,HEADER:!0};i.prototype.execute=function(t,e,r){if(!(this instanceof i))throw new TypeError("not a HTTPParser");e=e||0,r="number"==typeof r?r:t.length,this.chunk=t,this.offset=e;var n=this.end=e+r;try{for(;this.offset<n&&!this[this.state](););}catch(t){if(this.isUserCall)throw t;return this.hadError=!0,t}return this.chunk=null,r=this.offset-e,p[this.state]&&(this.headerSize+=r,this.headerSize>(this.maxHeaderSize||i.maxHeaderSize))?new Error("max header size exceeded"):r};var d={REQUEST_LINE:!0,RESPONSE_LINE:!0,BODY_RAW:!0};i.prototype.finish=function(){if(!this.hadError)return d[this.state]?void("BODY_RAW"===this.state&&this.userCall()(this[l]())):new Error("invalid state for EOF")},i.prototype.consume=i.prototype.unconsume=i.prototype.getCurrentBuffer=function(){},i.prototype.userCall=function(){this.isUserCall=!0;var t=this;return function(e){return t.isUserCall=!1,e}},i.prototype.nextRequest=function(){this.userCall()(this[l]()),this.reinitialize(this.type)},i.prototype.consumeLine=function(){for(var t=this.end,e=this.chunk,r=this.offset;r<t;r++)if(10===e[r]){var n=this.line+e.toString(i.encoding,this.offset,r);return"\r"===n.charAt(n.length-1)&&(n=n.substr(0,n.length-1)),this.line="",this.offset=r+1,n}this.line+=e.toString(i.encoding,this.offset,this.end),this.offset=this.end};var f=/^([^: \t]+):[ \t]*((?:.*[^ \t])|)/,y=/^[ \t]+(.*[^ \t])/;i.prototype.parseHeader=function(t,e){if(-1!==t.indexOf("\r"))throw m("HPE_LF_EXPECTED");var r=f.exec(t),n=r&&r[1];if(n)e.push(n),e.push(r[2]);else{var i=y.exec(t);i&&e.length&&(e[e.length-1]&&(e[e.length-1]+=" "),e[e.length-1]+=i[1])}};var g=/^([A-Z-]+) ([^ ]+) HTTP\/(\d)\.(\d)$/;i.prototype.REQUEST_LINE=function(){var t=this.consumeLine();if(t){var e=g.exec(t);if(null===e)throw m("HPE_INVALID_CONSTANT");if(this.info.method=this._compatMode0_11?e[1]:c.indexOf(e[1]),-1===this.info.method)throw new Error("invalid request method");this.info.url=e[2],this.info.versionMajor=+e[3],this.info.versionMinor=+e[4],this.body_bytes=0,this.state="HEADER"}};var _=/^HTTP\/(\d)\.(\d) (\d{3}) ?(.*)$/;function m(t){var e=new Error("Parse Error");return e.code=t,e}i.prototype.RESPONSE_LINE=function(){var t=this.consumeLine();if(t){var e=_.exec(t);if(null===e)throw m("HPE_INVALID_CONSTANT");this.info.versionMajor=+e[1],this.info.versionMinor=+e[2];var r=this.info.statusCode=+e[3];this.info.statusMessage=e[4],1!=(r/100|0)&&204!==r&&304!==r||(this.body_bytes=0),this.state="HEADER"}},i.prototype.shouldKeepAlive=function(){if(this.info.versionMajor>0&&this.info.versionMinor>0){if(-1!==this.connection.indexOf("close"))return!1}else if(-1===this.connection.indexOf("keep-alive"))return!1;return!(null===this.body_bytes&&!this.isChunked)},i.prototype.HEADER=function(){var t=this.consumeLine();if(void 0!==t){var e=this.info;if(t)this.parseHeader(t,e.headers);else{for(var r,n,o=e.headers,a=!1,l=!1,c=0;c<o.length;c+=2)switch(o[c].toLowerCase()){case"transfer-encoding":this.isChunked="chunked"===o[c+1].toLowerCase();break;case"content-length":if(r=+o[c+1],a){if(r!==this.body_bytes)throw m("HPE_UNEXPECTED_CONTENT_LENGTH")}else a=!0,this.body_bytes=r;break;case"connection":this.connection+=o[c+1].toLowerCase();break;case"upgrade":l=!0}if(this.isChunked&&a&&(a=!1,this.body_bytes=null),l&&-1!=this.connection.indexOf("upgrade")?e.upgrade=this.type===i.REQUEST||101===e.statusCode:e.upgrade=e.method===h,this.isChunked&&e.upgrade&&(this.isChunked=!1),e.shouldKeepAlive=this.shouldKeepAlive(),2===(n=u?this.userCall()(this[s](e)):this.userCall()(this[s](e.versionMajor,e.versionMinor,e.headers,e.method,e.url,e.statusCode,e.statusMessage,e.upgrade,e.shouldKeepAlive))))return this.nextRequest(),!0;if(this.isChunked&&!n)this.state="BODY_CHUNKHEAD";else{if(n||0===this.body_bytes)return this.nextRequest(),e.upgrade;null===this.body_bytes?this.state="BODY_RAW":this.state="BODY_SIZED"}}}},i.prototype.BODY_CHUNKHEAD=function(){var t=this.consumeLine();void 0!==t&&(this.body_bytes=parseInt(t,16),this.body_bytes?this.state="BODY_CHUNK":this.state="BODY_CHUNKTRAILERS")},i.prototype.BODY_CHUNK=function(){var t=Math.min(this.end-this.offset,this.body_bytes);this.userCall()(this[a](this.chunk,this.offset,t)),this.offset+=t,this.body_bytes-=t,this.body_bytes||(this.state="BODY_CHUNKEMPTYLINE")},i.prototype.BODY_CHUNKEMPTYLINE=function(){var t=this.consumeLine();void 0!==t&&(n.equal(t,""),this.state="BODY_CHUNKHEAD")},i.prototype.BODY_CHUNKTRAILERS=function(){var t=this.consumeLine();void 0!==t&&(t?this.parseHeader(t,this.trailers):(this.trailers.length&&this.userCall()(this[o](this.trailers,"")),this.nextRequest()))},i.prototype.BODY_RAW=function(){var t=this.end-this.offset;this.userCall()(this[a](this.chunk,this.offset,t)),this.offset=this.end},i.prototype.BODY_SIZED=function(){var t=Math.min(this.end-this.offset,this.body_bytes);this.userCall()(this[a](this.chunk,this.offset,t)),this.offset+=t,this.body_bytes-=t,this.body_bytes||this.nextRequest()},["Headers","HeadersComplete","Body","MessageComplete"].forEach((function(t){var e=i["kOn"+t];Object.defineProperty(i.prototype,"on"+t,{get:function(){return this[e]},set:function(t){return this._compatMode0_11=!0,h="CONNECT",this[e]=t}})}))},2111:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},4043:(t,e,r)=>{var n=r(6686)(),i=r(7737)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},3765:t=>{var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},a=function(t){try{return!s(t)&&(n.call(t),!0)}catch(t){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;l.call(p)===l.call(document.all)&&(h=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=l.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!s(t)&&a(t)}:function(t){if(h(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(u)return a(t);if(s(t))return!1;var e=l.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&a(t)}},6936:(t,e,r)=>{var n,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=r(6686)(),l=Object.getPrototypeOf;t.exports=function(t){if("function"!=typeof t)return!1;if(s.test(o.call(t)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(t);if(!l)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&l(e)}return l(t)===n}},9387:t=>{t.exports=function(t){return t!=t}},4396:(t,e,r)=>{var n=r(3235),i=r(6506),o=r(9387),s=r(9956),a=r(8386),l=n(s(),Number);i(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},9956:(t,e,r)=>{var n=r(9387);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},8386:(t,e,r)=>{var n=r(6506),i=r(9956);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},6421:(t,e,r)=>{var n=r(7025),i=r(3206),o=r(7737),s=o("Object.prototype.toString"),a=r(6686)(),l=r(1455),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),h=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},p=o("String.prototype.slice"),d={},f=Object.getPrototypeOf;a&&l&&f&&n(c,(function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=f(e),n=l(r,Symbol.toStringTag);if(!n){var i=f(r);n=l(i,Symbol.toStringTag)}d[t]=n.get}})),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!a||!(Symbol.toStringTag in t)){var e=p(s(t),8,-1);return h(c,e)>-1}return!!l&&function(t){var e=!1;return n(d,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}},8502:t=>{var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},884:(t,e,r)=>{var n=r(6506),i=r(3235),o=r(8502),s=r(5453),a=r(9789),l=i(s(),Object);n(l,{getPolyfill:s,implementation:o,shim:a}),t.exports=l},5453:(t,e,r)=>{var n=r(8502);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9789:(t,e,r)=>{var n=r(5453),i=r(6506);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},9113:(t,e,r)=>{var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(8441),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var f=u&&r;if(a&&t.length>0&&!i.call(t,0))for(var y=0;y<t.length;++y)p.push(String(y));if(n&&t.length>0)for(var g=0;g<t.length;++g)p.push(String(g));else for(var _ in t)f&&"prototype"===_||!i.call(t,_)||p.push(String(_));if(l)for(var m=function(t){if("undefined"==typeof window||!d)return h(t);try{return h(t)}catch(t){return!1}}(t),v=0;v<c.length;++v)m&&"constructor"===c[v]||!i.call(t,c[v])||p.push(c[v]);return p}}t.exports=n},3438:(t,e,r)=>{var n=Array.prototype.slice,i=r(8441),o=Object.keys,s=o?function(t){return o(t)}:r(9113),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},8441:t=>{var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},2589:t=>{const e=Function.prototype.toString.call(Object);t.exports=function(t){if("object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)){const r=Object.getPrototypeOf(t);if(r){const t=Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&Function.prototype.toString.call(t)===e}return!0}return!1}},4346:t=>{const e=t=>t&&"object"==typeof t&&!Array.isArray(t);function r(t,n,i={}){if(!e(t))throw new TypeError('Property "target" requires object type');if(!n)return t;if(!e(n))throw new TypeError('Property "source" requires object type');if(n===t)return t;const o=Object.getOwnPropertyNames(n);o.push(...Object.getOwnPropertySymbols(n));for(const s of o){if("__proto__"===s||"constructor"===s)continue;if(i.filter&&!i.filter(n,s))continue;if((i.combine||i.adjunct)&&t.hasOwnProperty(s))continue;const o=Object.getOwnPropertyDescriptor(n,s);if(i.descriptor&&(o.get||o.set)){Object.defineProperty(t,s,o);continue}let a=n[s];if(void 0===a)continue;delete o.get,delete o.set,i.descriptor||(o.enumerable=!0,o.configurable=!0,o.writable=!0);let l=t[s];if(e(a)){if(i.deep){e(l)||(o.value=l={},Object.defineProperty(t,s,o)),r(l,a,i);continue}i.clone&&(a=r({},a,i))}else Array.isArray(a)&&(i.arrayMerge&&Array.isArray(l)?a="function"==typeof i.arrayMerge?i.arrayMerge(l,a):r.arrayCombine(l,a):i.clone&&(a=a.slice()));o.value=a,Object.defineProperty(t,s,o)}return t}r.all=function(t,e={}){const n=t[0];for(const[i,o]of t.entries())i>0&&r(n,o,e);return n},r.arrayCombine=function(t,e){return t.concat(e.filter((e=>!t.includes(e))))},t.exports=r},9410:(t,e,r)=>{const n=function(t){return n.isPromise(t)?t:"function"!=typeof t?n.Promise.resolve(t):new Promise(((e,r)=>{try{const i=t();n.isPromise(i)?i.then((t=>e(t))).catch((t=>r(t))):e(i)}catch(t){r(t)}}))};n.fromCallback=function(t){return new n.Promise(((e,r)=>{try{t(((t,n)=>{t?r(t):e(n)}))}catch(t){r(t)}}))},n.isPromise=function(t){return t&&(t instanceof r.g.Promise||t instanceof n.Promise||"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch)},n.deepResolve=function(t){if(t instanceof Promise)return Promise.resolve(t).then((t=>n.deepResolve(t)));const e=new Set,r=[];return function t(n){if(n&&"object"==typeof n){if(e.has(n))return;e.add(n)}if(Array.isArray(n)){const e=n.length;for(let i=0;i<e;i++)n[i]instanceof Promise?r.push(n[i].then((t=>n[i]=t))):t(n[i])}else if(n&&"object"==typeof n)for(const e of Object.keys(n))n[e]instanceof Promise?r.push(n[e].then((t=>n[e]=t))):t(n[e])}(t),r.length?Promise.all(r).then((()=>n.deepResolve(t))):t},n.wait=function(t){return new Promise((e=>{setTimeout(e,t)}))},n.await=function(t,e){if(n.isPromise(t))return t.then((t=>e&&e(void 0,t))).catch((t=>e&&e(t)));e&&e(void 0,t)},n.Promise=r.g.Promise,t.exports=n},4556:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});const r=/^(\d{4})-?(0[1-9]|1[012])?-?([123]0|[012][1-9]|31)?(?:[T ]?([01][0-9]|2[0-3]):?([0-5][0-9]):?([0-5][0-9])?(?:\.(\d+))?(?:(Z)|(?:([+-])([01]?[0-9]|2[0-3]):?([0-5][0-9])?))?)?$/,n=/^true|t|1|yes|y$/i;function i(t){return null!=t?""+t:void 0}function o(t,e){return null!=t?""+t:i(e)}function s(t){if(null!=t)return"string"==typeof t?n.test(t):!!t}function a(t,e){return s(null!=t?t:e)}function l(t){if(null==t)return;const e=parseFloat(t);if(e||0===e)return e;throw new TypeError(`"${t}" is not a valid number value.`)}function u(t,e){return l(null!=t?t:e)}function c(t){if(null==t)return;const e=parseInt(t,10);if(e||0===e)return e;throw new TypeError(`"${t}" is not a valid integer value.`)}function h(t,e){return c(null!=t?t:e)}function p(t){if(null!=t){if(t instanceof Date)return t;if("number"==typeof t)return new Date(t);if("string"==typeof t)return g(t);throw new TypeError(`"${t}" is not a valid date value.`)}}function d(t,e){return p(null!=t?t:e)}function f(t){return Array.isArray(t)?t:t?[t]:void 0}function y(t,e){return f(null!=t?t:e)}function g(t,e){const n=t.match(r);if(!n)throw new TypeError(`"${t}" is not a valid date value.`);let i=n[1]+"-"+(n[2]||"01")+"-"+(n[3]||"01")+"T";return e&&e.dateOnly?i+="00:00:00":(i+=(n[4]||"00")+":"+(n[5]||"00")+":"+(n[6]||"00")+(n[7]?"."+n[7]:""),e&&e.ignoreTimezone||(i+=n[8]?"Z":n[9]?n[9]+(n[10]||"00")+":"+(n[11]||"00"):"")),new Date(i)}function _(t){return t.replace(/[\W_\s]+([^\W_\s])/g,((t,e)=>e[0].toUpperCase()))}t.exports={coalesce:function(...t){const e=t.length;let r;for(let n=0;n<e;n++)if(r=t[n],null!=r)return r},toString:i,toStringDef:o,toBoolean:s,toBooleanDef:a,toNumber:l,toNumberDef:u,toInt:c,toIntDef:h,toDate:p,toDateDef:d,toArray:f,toArrayDef:y,parseDate:g,camelCase:_,pascalCase:function(t){const e=_(t);return e[0].toUpperCase()+e.substring(1)},upperFirst:function(t){return(t=i(t))?t[0].toUpperCase()+t.substring(1):t},mapDistinct:function(t,e){return t.reduce(((t,r)=>(null==(r=e?e(r):r)||t.includes(r)||t.push(r),t)),[])},coerceToArray:y,coerceToString:o,coerceToBoolean:a,coerceToNumber:u,coerceToInt:h,coerceToDate:d}},5386:t=>{var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,o,s,a,l;if("string"==typeof e&&(o="not ",e.substr(0,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var u=("number"!=typeof l&&(l=0),l+".".length>(a=t).length||-1===a.indexOf(".",l)?"argument":"property");s='The "'.concat(t,'" ').concat(u," ").concat(i," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},7879:(t,e,r)=>{var n=r(6966),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=r(2070),s=r(2501);r(2111)(c,o);for(var a=i(s.prototype),l=0;l<a.length;l++){var u=a[l];c.prototype[u]||(c.prototype[u]=s.prototype[u])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||n.nextTick(p,this)}function p(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},4100:(t,e,r)=>{t.exports=i;var n=r(6269);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(2111)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},2070:(t,e,r)=>{var n,i=r(6966);t.exports=O,O.ReadableState=x,r(5178).EventEmitter;var o,s=function(t,e){return t.listeners(e).length},a=r(5072),l=r(3368).Buffer,u=r.g.Uint8Array||function(){},c=r(6072);o=c&&c.debuglog?c.debuglog("stream"):function(){};var h,p,d,f=r(9799),y=r(4204),g=r(2044).getHighWaterMark,_=r(5386).q,m=_.ERR_INVALID_ARG_TYPE,v=_.ERR_STREAM_PUSH_AFTER_EOF,T=_.ERR_METHOD_NOT_IMPLEMENTED,b=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(2111)(O,a);var S=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function x(t,e,i){n=n||r(7879),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=r(7682).s),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function O(t){if(n=n||r(7879),!(this instanceof O))return new O(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function N(t,e,r,n,i){o("readableAddChunk",e);var s,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(o("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?C(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,P(t)))}}(t,a);else if(i||(s=function(t,e){var r,n;return n=e,l.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],e)),r}(a,e)),s)S(t,s);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),n)a.endEmitted?S(t,new b):A(t,a,e,!0);else if(a.ended)S(t,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):I(t,a)):A(t,a,e,!1)}else n||(a.reading=!1,I(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&C(t)),I(t,e)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(t,e){e(t)},O.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=l.from(t,e),e=""),r=!0),N(this,t,e,!1,r)},O.prototype.unshift=function(t){return N(this,t,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(t){h||(h=r(7682).s);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var w=1073741824;function R(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=w?t=w:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(P,t))}function P(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,M(t)}function I(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(k,t,e))}function k(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(o("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function L(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){o("readable nexttick read 0"),t.read(0)}function j(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),M(t),e.flowing&&!e.reading&&t.read(0)}function M(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function U(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(z,e,t))}function z(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function B(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}O.prototype.read=function(t){o("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?U(this):C(this),null;if(0===(t=R(t,e))&&e.ended)return 0===e.length&&U(this),null;var n,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&o("length less than watermark",i=!0),e.ended||e.reading?o("reading or ended",i=!1):i&&(o("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=R(r,e))),null===(n=t>0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&U(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(t){S(this,new T("_read()"))},O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,e);var a=e&&!1===e.end||t===i.stdout||t===i.stderr?y:l;function l(){o("onend"),t.end()}n.endEmitted?i.nextTick(a):r.once("end",a),t.on("unpipe",(function e(i,s){o("onunpipe"),i===r&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,o("cleanup"),t.removeListener("close",d),t.removeListener("finish",f),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",e),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",h),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}));var u=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,M(t))}}(r);t.on("drain",u);var c=!1;function h(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==B(n.pipes,t))&&!c&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(e){o("onerror",e),y(),t.removeListener("error",p),0===s(t,"error")&&S(t,e)}function d(){t.removeListener("finish",f),y()}function f(){o("onfinish"),t.removeListener("close",d),y()}function y(){o("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",p),t.once("close",d),t.once("finish",f),t.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),t},O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=B(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},O.prototype.on=function(t,e){var r=a.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?C(this):n.reading||i.nextTick(D,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(L,this),r},O.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(L,this),e},O.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(j,t,e))}(this,t)),t.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var s=0;s<E.length;s++)t.on(E[s],this.emit.bind(this,E[s]));return this._read=function(e){o("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(5978)),p(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),O._fromList=F,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(t,e){return void 0===d&&(d=r(1625)),d(O,t,e)})},6269:(t,e,r)=>{t.exports=c;var n=r(5386).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=r(7879);function u(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush((function(e,r){p(t,e,r)}))}function p(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r(2111)(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},2501:(t,e,r)=>{var n,i=r(6966);function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(undefined),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=O,O.WritableState=x;var s,a={deprecate:r(737)},l=r(5072),u=r(3368).Buffer,c=r.g.Uint8Array||function(){},h=r(4204),p=r(2044).getHighWaterMark,d=r(5386).q,f=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,_=d.ERR_STREAM_CANNOT_PIPE,m=d.ERR_STREAM_DESTROYED,v=d.ERR_STREAM_NULL_VALUES,T=d.ERR_STREAM_WRITE_AFTER_END,b=d.ERR_UNKNOWN_ENCODING,S=h.errorOrDestroy;function E(){}function x(t,e,s){n=n||r(7879),t=t||{},"boolean"!=typeof s&&(s=e instanceof n),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=p(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,o){--e.pendingcb,r?(i.nextTick(o,n),i.nextTick(P,t,e),t._writableState.errorEmitted=!0,S(t,n)):(o(n),t._writableState.errorEmitted=!0,S(t,n),P(t,e))}(t,r,n,e,o);else{var s=R(r)||t.destroyed;s||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),n?i.nextTick(A,t,r,s,o):A(t,r,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(t){var e=this instanceof(n=n||r(7879));if(!e&&!s.call(O,this))return new O(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function N(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new m("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),P(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),s=e.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)i[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;i.allBuffers=l,N(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,h=r.callback;if(N(t,e,!1,e.objectMode?1:u.length,u,c,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function R(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function P(t,e){var r=R(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(C,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(2111)(O,l),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===O&&t&&t._writableState instanceof x}})):s=function(t){return t instanceof this},O.prototype.pipe=function(){S(this,new _)},O.prototype.write=function(t,e,r){var n,o=this._writableState,s=!1,a=!o.objectMode&&(n=t,u.isBuffer(n)||n instanceof c);return a&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(r=e,e=null),a?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(t,e){var r=new T;S(t,r),i.nextTick(e,r)}(this,r):(a||function(t,e,r,n){var o;return null===r?o=new v:"string"==typeof r||e.objectMode||(o=new f("chunk",["string","Buffer"],r)),!o||(S(t,o),i.nextTick(n,o),!1)}(this,o,t,r))&&(o.pendingcb++,s=function(t,e,r,n,i,o){if(!r){var s=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r)),e}(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else N(t,e,!1,a,n,i,o);return l}(this,o,a,t,e,r)),s},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||w(this,t))},O.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new b(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,P(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=h.destroy,O.prototype._undestroy=h.undestroy,O.prototype._destroy=function(t,e){e(t)}},5978:(t,e,r)=>{var n,i=r(6966);function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s=r(6738),a=Symbol("lastResolve"),l=Symbol("lastReject"),u=Symbol("error"),c=Symbol("ended"),h=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function y(t){var e=t[a];if(null!==e){var r=t[d].read();null!==r&&(t[h]=null,t[a]=null,t[l]=null,e(f(r,!1)))}}function g(t){i.nextTick(y,t)}var _=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((o(n={get stream(){return this[d]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise((function(e,r){i.nextTick((function(){t[u]?r(t[u]):e(f(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(f(void 0,!0)):e[p](r,n)}),n)}}(n,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(f(o,!1));r=new Promise(this[p])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),o(n,"return",(function(){var t=this;return new Promise((function(e,r){t[d].destroy(null,(function(t){t?r(t):e(f(void 0,!0))}))}))})),n),_);t.exports=function(t){var e,r=Object.create(m,(o(e={},d,{value:t,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,p,{value:function(t,e){var n=r[d].read();n?(r[h]=null,r[a]=null,r[l]=null,t(f(n,!1))):(r[a]=t,r[l]=e)},writable:!0}),e));return r[h]=null,s(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[l];return null!==e&&(r[h]=null,r[a]=null,r[l]=null,e(t)),void(r[u]=t)}var n=r[a];null!==n&&(r[h]=null,r[a]=null,r[l]=null,n(f(void 0,!0))),r[c]=!0})),t.on("readable",g.bind(null,r)),r}},9799:(t,e,r)=>{function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=r(3368).Buffer,a=r(7015).inspect,l=a&&a.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,r,n,i=s.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,r=i,n=a,s.prototype.copy.call(e,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return a(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],r&&o(e.prototype,r),t}()},4204:(t,e,r)=>{var n=r(6966);function i(t,e){s(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function s(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,t)):n.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(o,r),e(t)):n.nextTick(o,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6738:(t,e,r)=>{var n=r(5386).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,l=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,s||o.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){s=!1,h=!0,a||o.call(e)},d=function(t){o.call(e,t)},f=function(){var t;return s&&!h?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):a&&!u?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},y=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",f),e.req?y():e.on("request",y)):a&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",c),!1!==r.error&&e.on("error",d),e.on("close",f),function(){e.removeListener("complete",c),e.removeListener("abort",f),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",c),e.removeListener("end",p),e.removeListener("error",d),e.removeListener("close",f)}}},1625:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},6718:(t,e,r)=>{var n,i=r(5386).q,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function l(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=r(6738)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);a=!0,o()}));var l=!1;return function(e){if(!a&&!l)return l=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}function u(t){t()}function c(t,e){return t.pipe(e)}function h(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n,i=h(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var s=e.map((function(t,r){var o=r<e.length-1;return l(t,o,r>0,(function(t){n||(n=t),t&&s.forEach(u),o||(s.forEach(u),i(n))}))}));return e.reduce(c)}},2044:(t,e,r)=>{var n=r(5386).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},5072:(t,e,r)=>{t.exports=r(5178).EventEmitter},707:(t,e,r)=>{var n=r(3368),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},3946:(t,e,r)=>{t.exports=i;var n=r(5178).EventEmitter;function i(){n.call(this)}r(2111)(i,n),i.Readable=r(2070),i.Writable=r(2501),i.Duplex=r(7879),i.Transform=r(6269),i.PassThrough=r(4100),i.finished=r(6738),i.pipeline=r(6718),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",l));var s=!1;function a(){s||(s=!0,t.end())}function l(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",u),t.on("error",u),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},7682:(t,e,r)=>{var n=r(707).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=h,e=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},737:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},7502:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1268:(t,e,r)=>{var n=r(4043),i=r(6936),o=r(9154),s=r(6421);function a(t){return t.call.bind(t)}var l="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,c=a(Object.prototype.toString),h=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(u)var y=a(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function _(t){return"[object Map]"===c(t)}function m(t){return"[object Set]"===c(t)}function v(t){return"[object WeakMap]"===c(t)}function T(t){return"[object WeakSet]"===c(t)}function b(t){return"[object ArrayBuffer]"===c(t)}function S(t){return"undefined"!=typeof ArrayBuffer&&(b.working?b(t):t instanceof ArrayBuffer)}function E(t){return"[object DataView]"===c(t)}function x(t){return"undefined"!=typeof DataView&&(E.working?E(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||x(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},_.working="undefined"!=typeof Map&&_(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(_.working?_(t):t instanceof Map)},m.working="undefined"!=typeof Set&&m(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(m.working?m(t):t instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},T.working="undefined"!=typeof WeakSet&&T(new WeakSet),e.isWeakSet=function(t){return T(t)},b.working="undefined"!=typeof ArrayBuffer&&b(new ArrayBuffer),e.isArrayBuffer=S,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function N(t){return"[object SharedArrayBuffer]"===c(t)}function A(t){return void 0!==O&&(void 0===N.working&&(N.working=N(new O)),N.working?N(t):t instanceof O)}function w(t){return g(t,h)}function R(t){return g(t,p)}function C(t){return g(t,d)}function P(t){return l&&g(t,f)}function I(t){return u&&g(t,y)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===c(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===c(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===c(t)},e.isGeneratorObject=function(t){return"[object Generator]"===c(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===c(t)},e.isNumberObject=w,e.isStringObject=R,e.isBooleanObject=C,e.isBigIntObject=P,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return w(t)||R(t)||C(t)||P(t)||I(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(S(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},2019:(t,e,r)=>{var n=r(6966),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(u(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,s=String(t).replace(o,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),a=n[r];r<i;a=n[++r])_(a)||!S(a)?s+=" "+a:s+=" "+u(a);return s},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+l+"$","i")}function u(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&e._extend(n,r),T(n.showHidden)&&(n.showHidden=!1),T(n.depth)&&(n.depth=2),T(n.colors)&&(n.colors=!1),T(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),p(n,t,n.depth)}function c(t,e){var r=u.styles[e];return r?"["+u.colors[r][0]+"m"+t+"["+u.colors[r][1]+"m":t}function h(t,e){return t}function p(t,r,n){if(t.customInspect&&r&&O(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return v(i)||(i=p(t,i,n)),i}var o=function(t,e){if(T(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):_(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var s=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),x(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(O(r)){var l=r.name?": "+r.name:"";return t.stylize("[Function"+l+"]","special")}if(b(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(x(r))return d(r)}var u,c="",h=!1,S=["{","}"];return y(r)&&(h=!0,S=["[","]"]),O(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(c=" "+RegExp.prototype.toString.call(r)),E(r)&&(c=" "+Date.prototype.toUTCString.call(r)),x(r)&&(c=" "+d(r)),0!==s.length||h&&0!=r.length?n<0?b(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=h?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)C(e,String(s))?o.push(f(t,e,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(t,e,r,n,i,!0))})),o}(t,r,n,a,s):s.map((function(e){return f(t,r,n,a,e,h)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(u,c,S)):S[0]+c+S[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),C(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(l.value)<0?(a=_(r)?p(t,l.value,null):p(t,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),T(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function y(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function _(t){return null===t}function m(t){return"number"==typeof t}function v(t){return"string"==typeof t}function T(t){return void 0===t}function b(t){return S(t)&&"[object RegExp]"===N(t)}function S(t){return"object"==typeof t&&null!==t}function E(t){return S(t)&&"[object Date]"===N(t)}function x(t){return S(t)&&("[object Error]"===N(t)||t instanceof Error)}function O(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(a.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){};return s[t]},e.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(1268),e.isArray=y,e.isBoolean=g,e.isNull=_,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=T,e.isRegExp=b,e.types.isRegExp=b,e.isObject=S,e.isDate=E,e.types.isDate=E,e.isError=x,e.types.isNativeError=x,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(7502);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),w[t.getMonth()],e].join(" ")}function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=r(2111),e._extend=function(t,e){if(!e||!S(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(P&&t[P]){var e;if("function"!=typeof(e=t[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),P&&Object.defineProperty(e,P,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=P,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(s.bind(null,null,t))}),(function(t){n.nextTick(I.bind(null,t,s))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},9154:(t,e,r)=>{var n=r(7025),i=r(3206),o=r(7737),s=r(1455),a=o("Object.prototype.toString"),l=r(6686)(),u="undefined"==typeof globalThis?r.g:globalThis,c=i(),h=o("String.prototype.slice"),p={},d=Object.getPrototypeOf;l&&s&&d&&n(c,(function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=s(r,Symbol.toStringTag);if(!n){var i=d(r);n=s(i,Symbol.toStringTag)}p[t]=n.get}}}));var f=r(6421);t.exports=function(t){return!!f(t)&&(l&&Symbol.toStringTag in t?function(t){var e=!1;return n(p,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):h(a(t),8,-1))}},3368:e=>{e.exports=t},5178:(t,r,n)=>{var i,o;t.exports=(i={EventEmitter:()=>e.EventEmitter},o={},n.d(o,i),o)},6666:t=>{t.exports=r},6966:t=>{t.exports=n},7015:()=>{},6072:()=>{},3206:(t,e,r)=>{var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}}},y={};function g(t){var e=y[t];if(void 0!==e)return e.exports;var r=y[t]={exports:{}};return f[t].call(r.exports,r,r.exports,g),r.exports}g.m=f,p=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,g.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var r=Object.create(null);g.r(r);var n={};h=h||[null,p({}),p([]),p(p)];for(var i=2&e&&t;"object"==typeof i&&!~h.indexOf(i);i=p(i))Object.getOwnPropertyNames(i).forEach((e=>n[e]=()=>t[e]));return n.default=()=>t,g.d(r,n),r},g.d=(t,e)=>{for(var r in e)g.o(e,r)&&!g.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},g.f={},g.e=t=>Promise.all(Object.keys(g.f).reduce(((e,r)=>(g.f[r](t,e),e)),[])),g.u=t=>t+".min.mjs",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),g.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),d={},g.l=(t,e,r,n)=>{if(d[t])d[t].push(e);else{var i,o;if(void 0!==r)for(var s=document.getElementsByTagName("script"),a=0;a<s.length;a++){var l=s[a];if(l.getAttribute("src")==t){i=l;break}}i||(o=!0,(i=document.createElement("script")).type="module",i.charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.src=t),d[t]=[e];var u=(e,r)=>{i.onerror=i.onload=null,clearTimeout(c);var n=d[t];if(delete d[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((t=>t(r))),e)return e(r)},c=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),o&&document.head.appendChild(i)}},g.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;if("string"==typeof import.meta.url&&(t=import.meta.url),!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=t})(),(()=>{var t={179:0};g.f.j=(e,r)=>{var n=g.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=t[e]=[r,i]));r.push(n[2]=i);var o=g.p+g.u(e),s=new Error;g.l(o,(r=>{if(g.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,n[1](s)}}),"chunk-"+e,e)}};var e=(e,r)=>{var n,i,[o,s,a]=r,l=0;if(o.some((e=>0!==t[e]))){for(n in s)g.o(s,n)&&(g.m[n]=s[n]);a&&a(g)}for(e&&e(r);l<o.length;l++)i=o[l],g.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=self.webpackChunk=self.webpackChunk||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})();var _={};(()=>{g.d(_,{uy:()=>rn,XF:()=>Ur,n7:()=>Wr,pf:()=>Yr,HK:()=>Gr,b$:()=>Kr,bf:()=>Xr,CJ:()=>Qr,db:()=>Zr,i1:()=>Jr,aW:()=>$r,Ds:()=>tn,Zu:()=>en,hQ:()=>an});const t=(e={splitString:()=>i.splitString,tokenize:()=>i.tokenize},r={},g.d(r,e),r);var e,r;const n=(t=>{var e={};return g.d(e,t),e})({default:()=>o.default}),l=/^(https?:\/\/.)[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/i,h=/\\(.)/g;function p(t){return t.replace(h,"$1")}var d=g(3368).Buffer;const f=Object.getPrototypeOf(n.default).constructor,y=[];class m extends f{async init(t,e){const r="object"==typeof t?t:{},n="function"==typeof t?t:e;try{const t=await super.init(r),e=this.services.formatter;if(e.add("lowercase",((t,e)=>t.toLocaleLowerCase(e))),e.add("uppercase",((t,e)=>t.toLocaleUpperCase(e))),e.add("upperFirst",((t,e)=>t.charAt(0).toLocaleUpperCase(e)+t.substring(1))),y.length&&await this.loadResourceDir(y,!1,!0),r?.resourceDirs?.length&&await this.loadResourceDir(r.resourceDirs,!1,!0),r?.resources)for(const t of Object.keys(r.resources)){const e=r.resources[t];for(const r of Object.keys(e))this.addResourceBundle(t,r,e[r],!1,!0)}return n&&n(null,t),t}catch(t){throw n&&n(t,this.t),t}}deep(t,e){if(null==t)return t;const r=new WeakMap;return this._deepTranslate(t,r,e)}registerLocaleDir(...t){y.push(...t)}async loadResourceBundle(t,e,r,n,i){let o;if(s=r,l.test(s))o=(await fetch(r,{headers:{accept:"application/json"}})).json();else{const t=(await g.e(934).then(g.t.bind(g,6934,19))).readFileSync(r,"utf8");o=JSON.parse(t)}var s;this.addResourceBundle(t,e,o,n,i)}async loadResourceDir(t,e,r){const n=await g.e(934).then(g.t.bind(g,6934,19)),i=await Promise.resolve().then(g.bind(g,6666));for(const o of Array.isArray(t)?t:[t]){if(!n.statSync(o).isDirectory()){console.warn(`Locale directory does not exists. (${o})`);continue}const t=n.readdirSync(o);for(const s of t){const t=i.join(o,s);if(n.statSync(t).isDirectory()){const o=n.readdirSync(t);for(const a of o){const o=i.join(t,a),l=i.extname(a);if(".json"===l&&n.statSync(o).isFile()){const t=i.basename(a,l);await this.loadResourceBundle(s,t,o,e,r)}}}}}}createInstance(t={},e){return new m(t,e)}static createInstance(t,e){return new m(t,e)}_deepTranslate(e,r,n){if(null==e)return e;if(n?.ignore&&n.ignore(e,this))return e;if("object"==typeof e&&r.has(e))return r.get(e);if("string"==typeof e){let r="";for(let i of(0,t.tokenize)(e,{brackets:{"$t(":")"},quotes:!0,keepQuotes:!0,keepBrackets:!0,keepDelimiters:!0}))if(i.startsWith("$t(")&&i.endsWith(")")){i=i.substring(3,i.length-1);const e=(0,t.splitString)(i,{delimiters:"?",quotes:!0,brackets:{"{":"}"}}),o=p(i.substring((e[0]||"").length+1));i=e[0]||"";const s=[];let a=null;for(const e of(0,t.tokenize)(i,{delimiters:",",quotes:!0,brackets:{"{":"}"}}))e.startsWith("{")?a=JSON.parse(e):s.push(e);const l=s.length>1?"$t("+s.join(",")+")":s[0];r+=o?this.t(l,o,{...n,...a}):this.t(l,{...n,...a})}else r+=i;return r}if(Array.isArray(e)){const t=Array(e.length);r.set(e,t);for(let i=0,o=e.length;i<o;i++)t[i]=this._deepTranslate(e[i],r,n);return r.delete(e),t}if("object"==typeof e){if(d.isBuffer(e))return e;if(d.isBuffer(e)||e instanceof Symbol||e instanceof RegExp||e instanceof Map||e instanceof Set||e instanceof WeakMap||e instanceof WeakSet)return e;const t={};r.set(e,t);const i=Object.keys(e);for(let o=0,s=i.length;o<s;o++){const s=i[o];t[s]=this._deepTranslate(e[s],r,n)}return r.delete(e),t}return e}static get defaultInstance(){return v}}const v=m.createInstance();m.createInstance().init().catch((()=>{}));class T extends Error{constructor(t,e){super(""),this.status=500,this._initName(),e&&(this.cause=e,e.stack&&(this.stack=e.stack)),this._init(t||e||"Unknown error"),this.message=i18n.deep(this.issue.message)}get issue(){return this._issue}setIssue(t){this._issue={message:"Unknown error",severity:"error",...t}}setStatus(t){return this.status=t,this}_initName(){this.name=this.constructor.name}_init(t){t instanceof Error?("number"==typeof t.status?this.status=t.status:"function"==typeof t.getStatus&&(this.status=t.getStatus()),this.setIssue({message:t.message})):"object"==typeof t?this.setIssue(t):this.setIssue({message:String(t)})}}var b;!function(t){let e;!function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.info="info"}(e=t.Enum||(t.Enum={})),t.name="IssueSeverity",t.description="Severity of the issue",t.Keys=Object.keys(t),t.descriptions={fatal:"The issue caused the action to fail and no further checking could be performed",error:"The issue is sufficiently important to cause the action to fail",warning:"The issue is not important enough to cause the action to fail but may cause it to be performed suboptimally or in a way that is not as desired",info:"The issue has no relation to the degree of success of the action"}}(b||(b={}));class S{constructor(){this.kind=Object.getPrototypeOf(this).constructor.name}}class E extends S{}class x extends E{constructor(){super(),this.items=[]}append(t,e){return this.items.push(new O({op:t,expression:e})),this}toString(){return this.items.map(((t,e)=>(e>0?t.op:"")+t.expression)).join("")}}class O{constructor(t){Object.assign(this,t)}}class N extends E{}class A extends N{constructor(t){super(),this.items=t}toString(){return"["+this.items.map((t=>""+t)).join(",")+"]"}}const w=/\w/;class R extends E{constructor(t){super(),Object.assign(this,t)}toString(){return`${this.left}${w.test(this.op)?" "+this.op+" ":this.op}${this.right}`}}class C extends E{constructor(t){super(),Object.assign(this,t)}toString(){return this.items.map((t=>""+t)).join(" "+this.op+" ")}}class P extends E{constructor(t){super(),this.expression=t}toString(){return`(${this.expression})`}}class I extends N{constructor(t){super(),this.value=t}toString(){return""+this.value}}class k extends I{constructor(t){super(t)}}const L=(t=>{var e={};return g.d(e,t),e})({DateTime:()=>s.DateTime});class D extends TypeError{}class j extends TypeError{}class M extends Error{constructor(t,e){super(t),Object.assign(this,e)}}const F=/'/g,U=/(\\)/g,z=/\\(.)/g;function B(t){return"'"+function(t){return t.replace(U,"\\\\")}(t).replace(F,"\\'")+"'"}function H(t){return t&&(t.startsWith("'")||t.startsWith('"'))&&t.endsWith(t.charAt(0))?function(t){return t.replace(z,"$1")}(t.substring(1,t.length-1)):t}const q=/^(\d{4})-(0[1-9]|1[012])-([123]0|[012][1-9]|31)/;class $ extends I{constructor(t){if(super(""),t instanceof Date)this.value=t.toISOString();else{if("string"!=typeof t||!q.test(t)||!L.DateTime.fromISO(t).isValid)throw new j(`Invalid date value "${t}"`);this.value=t}}toString(){return B(this.value)}}class V extends I{constructor(){super(null),this.value=null}}class W extends I{constructor(t){if(super(0),"number"!=typeof t&&"bigint"!=typeof t){try{if("string"==typeof t){if(t.includes("."))return void(this.value=parseFloat(t));const e=Number(t);return void(this.value=""+e===t?e:BigInt(t))}}catch{}throw new j(`Invalid number literal ${t}`)}this.value=t}toString(){return"bigint"==typeof this.value?(""+this.value).replace(/n$/,""):""+this.value}}class Y extends I{constructor(t){super(""+t)}}class G extends I{constructor(t){super(""+t)}toString(){return B(this.value)}}const K=/^([01]\d|2[0-3]):([0-5]\d)(:[0-5]\d)?(\.(\d+))?$/;class X extends I{constructor(t){if(super(""),t instanceof Date)this.value=Q(t.getHours())+":"+Q(t.getMinutes())+(t.getSeconds()?":"+Q(t.getSeconds()):"")+(t.getMilliseconds()?"."+Q(t.getMilliseconds()):"");else{if("string"!=typeof t||!K.test(t))throw new j(`Invalid time value "${t}"`);this.value=t}}toString(){return B(this.value)}}function Q(t){return t<=9?"0"+t:""+t}var Z=g(4412),J=g(3583),tt=g(5548),et=g(9849),rt=g(8567),nt=g(9603);class it extends tt.Lexer{constructor(t){super(t),this._interp=new et.LexerATNSimulator(it._ATN,this)}get vocabulary(){return it.VOCABULARY}get grammarFileName(){return"OpraFilter.g4"}get ruleNames(){return it.ruleNames}get serializedATN(){return it._serializedATN}get channelNames(){return it.channelNames}get modeNames(){return it.modeNames}static get _ATN(){return it.__ATN||(it.__ATN=(new J.ATNDeserializer).deserialize(nt.toCharArray(it._serializedATN))),it.__ATN}}it.T__0=1,it.T__1=2,it.T__2=3,it.T__3=4,it.T__4=5,it.T__5=6,it.T__6=7,it.T__7=8,it.T__8=9,it.T__9=10,it.T__10=11,it.T__11=12,it.T__12=13,it.T__13=14,it.T__14=15,it.T__15=16,it.T__16=17,it.T__17=18,it.T__18=19,it.T__19=20,it.T__20=21,it.T__21=22,it.T__22=23,it.T__23=24,it.T__24=25,it.T__25=26,it.T__26=27,it.T__27=28,it.T__28=29,it.T__29=30,it.T__30=31,it.T__31=32,it.T__32=33,it.T__33=34,it.T__34=35,it.T__35=36,it.T__36=37,it.T__37=38,it.T__38=39,it.T__39=40,it.T__40=41,it.T__41=42,it.T__42=43,it.T__43=44,it.T__44=45,it.T__45=46,it.DATE=47,it.DATETIME=48,it.TIME=49,it.IDENTIFIER=50,it.STRING=51,it.NUMBER=52,it.INTEGER=53,it.WHITESPACE=54,it.COMMENT=55,it.LINE_COMMENT=56,it.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],it.modeNames=["DEFAULT_MODE"],it.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","DATE","DATETIME","TIME","IDENTIFIER","STRING","NUMBER","INTEGER","WHITESPACE","COMMENT","LINE_COMMENT","NUMBERFORMAT","INTEGERFORMAT","DATEFORMAT","TIMEFORMAT","TIMEZONEOFFSETFORMAT","ESC","UNICODE","HEX"],it._LITERAL_NAMES=[void 0,"'('","')'","'['","','","']'","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'","'.'","'@'","'<='","'<'","'>'","'>='","'='","'!='","'in'","'!in'","'like'","'!like'","'ilike'","'!ilike'","'+'","'-'","'*'","'/'","'and'","'or'","'true'","'false'","'null'","'Infinity'","'infinity'"],it._SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"DATE","DATETIME","TIME","IDENTIFIER","STRING","NUMBER","INTEGER","WHITESPACE","COMMENT","LINE_COMMENT"],it.VOCABULARY=new rt.VocabularyImpl(it._LITERAL_NAMES,it._SYMBOLIC_NAMES,[]),it._serializedATN='줝쪺֍꾺体؇쉁:Ț\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\tA\b\b\b\b\b\b\t\t\t\t\t\n\n\n\n\v\v\v\v\v\f\f\f\f\f\f\f\r\r\r\r\r\r\r !!!!!""""""######$$$$$$$%%&&\'\'(())))***+++++,,,,,,-----........./////////000000000ŧ\n0111111111111111ŷ\n1222222222Ɓ\n2333ƅ\n3\f33ƈ\v34444ƍ\n4\f44Ɛ\v444444Ɩ\n4\f44ƙ\v444Ɯ\n4556677ƣ\n7\r77Ƥ7788888ƭ\n8\f88ư\v88888899999ƻ\n9\f99ƾ\v999::ǃ\n:\r::DŽ:::lj\n:\r::NJ:Ǎ\n:;;<<<<<<<<<<ǚ\n<<<<<<<<<ǣ\n<=====ǩ\n============ǵ\n=\r==Ƕ=ǹ\n==ǻ\n=>>>>Ȁ\n>>>>>ȅ\n>>>>>Ȋ\n>>Ȍ\n>????ȑ\n?@@@@@@AAƮB\t\v\r\b\t\n\v\f\r!#%\')+-/13579;= ?!A"C#E$G%I&K\'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:suwy{}&&C\\aac|&&2;C\\aac|))$$\v\f""\f\f2;223;332435232527--//2;CHchȬ\t\v\r!#%\')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoq
\t\v\r¡¦´ÀÆ!Í#Ó%Ø\'Þ)æ+î-û/ý1ÿ3Ă5Ą7Ć9ĉ;ċ=Ď?đAĕCĚEĠGĦIĭKįMıOijQĵSĹUļWŁYŇ[Ō]ŕ_ŦaŶcƀeƂgƛiƝkƟmƢoƨqƶsǂuǎwǐyǨ{ȋ}ȍȒȘ*
+]\b.\n_\f{gctoqpvjyggmfc { ¡¢j¢£q£¤w¤¥t¥¦§o§¨k¨©p©ªwª«v«¬g¬®u®¯g¯°e°±q±²p²³f³´µoµ¶k¶·n·¸n¸¹k¹ºuº»g»¼e¼½q½¾p¾¿f¿ÀÁ{ÁÂgÂÃcÃÄtÄÅuÅÆÇoÇÈqÈÉpÉÊvÊËjËÌuÌ ÍÎyÎÏgÏÐgÐÑmÑÒuÒ"ÓÔfÔÕcÕÖ{Ö×u×$ØÙjÙÚqÚÛwÛÜtÜÝuÝ&Þßoßàkàápáâwâãvãägäåuå(æçuçègèéeéêqêëpëìfìíuí*îïoïðkðñnñònòókóôuôõgõöeö÷q÷øpøùfùúuú,ûü0ü.ýþBþ0ÿĀ>Āā?ā2Ăă>ă4Ąą@ą6Ćć@ćĈ?Ĉ8ĉĊ?Ċ:ċČ#Čč?č<ĎďkďĐpĐ>đĒ#ĒēkēĔpĔ@ĕĖnĖėkėĘmĘęgęBĚě#ěĜnĜĝkĝĞmĞğgğDĠġkġĢnĢģkģĤmĤĥgĥFĦħ#ħĨkĨĩnĩĪkĪīmīĬgĬHĭĮ-ĮJįİ/İLıIJ,IJNijĴ1ĴPĵĶcĶķpķĸfĸRĹĺqĺĻtĻTļĽvĽľtľĿwĿŀgŀVŁłhłŃcŃńnńŅuŅņgņXŇňpňʼnwʼnŊnŊŋnŋZŌōKōŎpŎŏhŏŐkŐőpőŒkŒœvœŔ{Ŕ\\ŕŖkŖŗpŗŘhŘřkřŚpŚśkśŜvŜŝ{ŝ^Şş)şŠw<Šš)šŧŢţ$ţŤw<Ťť$ťŧŦŞŦŢŧ`Ũũ)ũŪw<ŪūVūŬy=Ŭŭ{>ŭŮ)ŮŷůŰ$Űűw<űŲVŲųy=ųŴ{>Ŵŵ$ŵŷŶŨŶůŷbŸŹ)Źźy=źŻ)ŻƁżŽ$Žžy=žſ$ſƁƀŸƀżƁdƂƆ\tƃƅ\tƄƃƅƈƆƄƆƇƇfƈƆƉƎ)Ɗƍ}?Ƌƍ\nƌƊƌƋƍƐƎƌƎƏƏƑƐƎƑƜ)ƒƗ$ƓƖ}?ƔƖ\nƕƓƕƔƖƙƗƕƗƘƘƚƙƗƚƜ$ƛƉƛƒƜhƝƞs:ƞjƟƠu;Ơlơƣ\tƢơƣƤƤƢƤƥƥƦƦƧ\b7ƧnƨƩ1Ʃƪ,ƪƮƫƭ\vƬƫƭưƮƯƮƬƯƱưƮƱƲ,ƲƳ1ƳƴƴƵ\b8ƵpƶƷ1ƷƸ1ƸƼƹƻ\nƺƹƻƾƼƺƼƽƽƿƾƼƿǀ\b9ǀrǁǃ\t\bǂǁǃDŽDŽǂDŽDžDžnjdžLj0LJlj\t\bLjLJljNJNJLjNJNjNjǍnjdžnjǍǍtǎǏ\t\bǏvǐǑ\t\bǑǒ\t\bǒǓ\t\bǓǔ\t\bǔǙ/Ǖǖ\t\tǖǚ\t\nǗǘ\t\vǘǚ\t\fǙǕǙǗǚǛǛǢ/ǜǝ\t\rǝǣ\t\tǞǟ\t\fǟǣ\t\nǠǡ5ǡǣ3ǢǜǢǞǢǠǣxǤǥ\tǥǩ\t\bǦǧ4ǧǩ\tǨǤǨǦǩǪǪǫ<ǫǬ\tǬǭ\t\bǭǺǮǯ<ǯǰ\tǰDZ\t\bDZǸDzǴ0dzǵ\t\bǴdzǵǶǶǴǶǷǷǹǸDzǸǹǹǻǺǮǺǻǻzǼȌ\\ǽȄ\tǾȀ\tǿǾǿȀȀȁȁȅ\t\bȂȃ4ȃȅ\tȄǿȄȂȅȉȆȇ<ȇȈ\tȈȊ\t\bȉȆȉȊȊȌȋǼȋǽȌ|ȍȐ^Ȏȑ@ȏȑ\vȐȎȐȏȑ~ȒȓwȓȔAȔȕAȕȖAȖȗAȗȘș\tșŦŶƀƆƌƎƕƗƛƤƮƼDŽNJnjǙǢǨǶǸǺǿȄȉȋȐ';var ot=g(7476),st=g(3771),at=g(5314),lt=g(2447),ut=g(6267),ct=g(8541),ht=g(5406),pt=g(8025);class dt extends lt.Parser{constructor(t){super(t),this._interp=new ct.ParserATNSimulator(dt._ATN,this)}get vocabulary(){return dt.VOCABULARY}get grammarFileName(){return"OpraFilter.g4"}get ruleNames(){return dt.ruleNames}get serializedATN(){return dt._serializedATN}createFailedPredicateException(t,e){return new st.FailedPredicateException(this,t,e)}root(){let t=new ft(this._ctx,this.state);this.enterRule(t,0,dt.RULE_root);try{this.enterOuterAlt(t,1),this.state=44,this.expression(0),this.state=45,this.match(dt.EOF)}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expression(t){void 0===t&&(t=0);let e,r=this._ctx,n=this.state,i=new yt(this._ctx,n),o=i;this.enterRecursionRule(i,2,dt.RULE_expression,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=67,this._errHandler.sync(this),this._input.LA(1)){case dt.T__22:case dt.T__41:case dt.T__42:case dt.T__43:case dt.T__44:case dt.T__45:case dt.DATE:case dt.DATETIME:case dt.TIME:case dt.IDENTIFIER:case dt.STRING:case dt.NUMBER:i=new gt(i),this._ctx=i,o=i,this.state=48,this.term();break;case dt.T__35:case dt.T__36:i=new _t(i),this._ctx=i,o=i,this.state=49,this.polarOp(),this.state=50,this.expression(6);break;case dt.T__0:i=new bt(i),this._ctx=i,o=i,this.state=52,this.match(dt.T__0),this.state=53,this.expression(0),this.state=54,this.match(dt.T__1);break;case dt.T__2:for(i=new St(i),this._ctx=i,o=i,this.state=56,this.match(dt.T__2),this.state=57,this.expression(0),this.state=62,this._errHandler.sync(this),e=this._input.LA(1);e===dt.T__3;)this.state=58,this.match(dt.T__3),this.state=59,this.expression(0),this.state=64,this._errHandler.sync(this),e=this._input.LA(1);this.state=65,this.match(dt.T__4);break;default:throw new at.NoViableAltException(this)}for(this._ctx._stop=this._input.tryLT(-1),this.state=83,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,3,this._ctx);2!==t&&t!==ot.ATN.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),o=i,this.state=81,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,2,this._ctx)){case 1:if(i=new mt(new yt(r,n)),this.pushNewRecursionContext(i,2,dt.RULE_expression),this.state=69,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=70,this.arthOp(),this.state=71,this.expression(6);break;case 2:if(i=new vt(new yt(r,n)),this.pushNewRecursionContext(i,2,dt.RULE_expression),this.state=73,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=74,this.compOp(),this.state=75,this.expression(5);break;case 3:if(i=new Tt(new yt(r,n)),this.pushNewRecursionContext(i,2,dt.RULE_expression),this.state=77,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=78,this.logOp(),this.state=79,this.expression(4)}this.state=85,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,3,this._ctx)}}catch(t){if(!(t instanceof ht.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}term(){let t=new Et(this._ctx,this.state);this.enterRule(t,4,dt.RULE_term);try{switch(this.state=89,this._errHandler.sync(this),this._input.LA(1)){case dt.T__41:case dt.T__42:case dt.T__43:case dt.T__44:case dt.T__45:case dt.DATE:case dt.DATETIME:case dt.TIME:case dt.STRING:case dt.NUMBER:t=new xt(t),this.enterOuterAlt(t,1),this.state=86,this.literal();break;case dt.IDENTIFIER:t=new Ot(t),this.enterOuterAlt(t,2),this.state=87,this.qualifiedIdentifier();break;case dt.T__22:t=new Nt(t),this.enterOuterAlt(t,3),this.state=88,this.externalConstant();break;default:throw new at.NoViableAltException(this)}}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}invocable(){let t=new At(this._ctx,this.state);this.enterRule(t,6,dt.RULE_invocable);try{this.enterOuterAlt(t,1),this.state=91,this.function()}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}invocation(){let t=new wt(this._ctx,this.state);this.enterRule(t,8,dt.RULE_invocation);try{t=new Rt(t),this.enterOuterAlt(t,1),this.state=93,this.identifier()}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}indexer(){let t=new Ct(this._ctx,this.state);this.enterRule(t,10,dt.RULE_indexer);try{switch(this.state=97,this._errHandler.sync(this),this._input.LA(1)){case dt.IDENTIFIER:t=new Pt(t),this.enterOuterAlt(t,1),this.state=95,this.identifier();break;case dt.INTEGER:t=new It(t),this.enterOuterAlt(t,2),this.state=96,this.match(dt.INTEGER);break;default:throw new at.NoViableAltException(this)}}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}function(){let t,e=new kt(this._ctx,this.state);this.enterRule(e,12,dt.RULE_function);try{this.enterOuterAlt(e,1),this.state=99,this.identifier(),this.state=100,this.match(dt.T__0),this.state=102,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dt.T__0|1<<dt.T__2|1<<dt.T__22))||0==(t-36&-32)&&0!=(1<<t-36&(1<<dt.T__35-36|1<<dt.T__36-36|1<<dt.T__41-36|1<<dt.T__42-36|1<<dt.T__43-36|1<<dt.T__44-36|1<<dt.T__45-36|1<<dt.DATE-36|1<<dt.DATETIME-36|1<<dt.TIME-36|1<<dt.IDENTIFIER-36|1<<dt.STRING-36|1<<dt.NUMBER-36)))&&(this.state=101,this.paramList()),this.state=104,this.match(dt.T__1)}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}paramList(){let t,e=new Lt(this._ctx,this.state);this.enterRule(e,14,dt.RULE_paramList);try{for(this.enterOuterAlt(e,1),this.state=106,this.expression(0),this.state=111,this._errHandler.sync(this),t=this._input.LA(1);t===dt.T__3;)this.state=107,this.match(dt.T__3),this.state=108,this.expression(0),this.state=113,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}unit(){let t=new Dt(this._ctx,this.state);this.enterRule(t,16,dt.RULE_unit);try{switch(this.state=117,this._errHandler.sync(this),this._input.LA(1)){case dt.T__5:case dt.T__6:case dt.T__7:case dt.T__8:case dt.T__9:case dt.T__10:case dt.T__11:case dt.T__12:this.enterOuterAlt(t,1),this.state=114,this.dateTimePrecision();break;case dt.T__13:case dt.T__14:case dt.T__15:case dt.T__16:case dt.T__17:case dt.T__18:case dt.T__19:case dt.T__20:this.enterOuterAlt(t,2),this.state=115,this.pluralDateTimePrecision();break;case dt.STRING:this.enterOuterAlt(t,3),this.state=116,this.match(dt.STRING);break;default:throw new at.NoViableAltException(this)}}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}dateTimePrecision(){let t,e=new jt(this._ctx,this.state);this.enterRule(e,18,dt.RULE_dateTimePrecision);try{this.enterOuterAlt(e,1),this.state=119,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&(1<<dt.T__5|1<<dt.T__6|1<<dt.T__7|1<<dt.T__8|1<<dt.T__9|1<<dt.T__10|1<<dt.T__11|1<<dt.T__12))?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pluralDateTimePrecision(){let t,e=new Mt(this._ctx,this.state);this.enterRule(e,20,dt.RULE_pluralDateTimePrecision);try{this.enterOuterAlt(e,1),this.state=121,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&(1<<dt.T__13|1<<dt.T__14|1<<dt.T__15|1<<dt.T__16|1<<dt.T__17|1<<dt.T__18|1<<dt.T__19|1<<dt.T__20))?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}qualifiedIdentifier(){let t=new Ft(this._ctx,this.state);this.enterRule(t,22,dt.RULE_qualifiedIdentifier);try{let e;for(this.enterOuterAlt(t,1),this.state=128,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,9,this._ctx);2!==e&&e!==ot.ATN.INVALID_ALT_NUMBER;)1===e&&(this.state=123,this.identifier(),this.state=124,this.match(dt.T__21)),this.state=130,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,9,this._ctx);this.state=131,this.identifier()}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}externalConstant(){let t,e=new Ut(this._ctx,this.state);this.enterRule(e,24,dt.RULE_externalConstant);try{this.enterOuterAlt(e,1),this.state=133,this.match(dt.T__22),this.state=134,t=this._input.LA(1),t!==dt.IDENTIFIER&&t!==dt.STRING?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifier(){let t=new zt(this._ctx,this.state);this.enterRule(t,26,dt.RULE_identifier);try{this.enterOuterAlt(t,1),this.state=136,this.match(dt.IDENTIFIER)}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}literal(){let t=new Bt(this._ctx,this.state);this.enterRule(t,28,dt.RULE_literal);try{switch(this.state=146,this._errHandler.sync(this),this._input.LA(1)){case dt.NUMBER:t=new Ht(t),this.enterOuterAlt(t,1),this.state=138,this.match(dt.NUMBER);break;case dt.T__44:case dt.T__45:t=new qt(t),this.enterOuterAlt(t,2),this.state=139,this.infinity();break;case dt.T__41:case dt.T__42:t=new $t(t),this.enterOuterAlt(t,3),this.state=140,this.boolean();break;case dt.T__43:t=new Vt(t),this.enterOuterAlt(t,4),this.state=141,this.null();break;case dt.DATE:t=new Wt(t),this.enterOuterAlt(t,5),this.state=142,this.match(dt.DATE);break;case dt.DATETIME:t=new Yt(t),this.enterOuterAlt(t,6),this.state=143,this.match(dt.DATETIME);break;case dt.TIME:t=new Gt(t),this.enterOuterAlt(t,7),this.state=144,this.match(dt.TIME);break;case dt.STRING:t=new Kt(t),this.enterOuterAlt(t,8),this.state=145,this.match(dt.STRING);break;default:throw new at.NoViableAltException(this)}}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}compOp(){let t,e=new Xt(this._ctx,this.state);this.enterRule(e,30,dt.RULE_compOp);try{this.enterOuterAlt(e,1),this.state=148,t=this._input.LA(1),0!=(t-24&-32)||0==(1<<t-24&(1<<dt.T__23-24|1<<dt.T__24-24|1<<dt.T__25-24|1<<dt.T__26-24|1<<dt.T__27-24|1<<dt.T__28-24|1<<dt.T__29-24|1<<dt.T__30-24|1<<dt.T__31-24|1<<dt.T__32-24|1<<dt.T__33-24|1<<dt.T__34-24))?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}arthOp(){let t,e=new Qt(this._ctx,this.state);this.enterRule(e,32,dt.RULE_arthOp);try{this.enterOuterAlt(e,1),this.state=150,t=this._input.LA(1),0!=(t-36&-32)||0==(1<<t-36&(1<<dt.T__35-36|1<<dt.T__36-36|1<<dt.T__37-36|1<<dt.T__38-36))?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}polarOp(){let t,e=new Zt(this._ctx,this.state);this.enterRule(e,34,dt.RULE_polarOp);try{this.enterOuterAlt(e,1),this.state=152,t=this._input.LA(1),t!==dt.T__35&&t!==dt.T__36?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}logOp(){let t,e=new Jt(this._ctx,this.state);this.enterRule(e,36,dt.RULE_logOp);try{this.enterOuterAlt(e,1),this.state=154,t=this._input.LA(1),t!==dt.T__39&&t!==dt.T__40?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}boolean(){let t,e=new te(this._ctx,this.state);this.enterRule(e,38,dt.RULE_boolean);try{this.enterOuterAlt(e,1),this.state=156,t=this._input.LA(1),t!==dt.T__41&&t!==dt.T__42?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}null(){let t=new ee(this._ctx,this.state);this.enterRule(t,40,dt.RULE_null);try{this.enterOuterAlt(t,1),this.state=158,this.match(dt.T__43)}catch(e){if(!(e instanceof ht.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}infinity(){let t,e=new re(this._ctx,this.state);this.enterRule(e,42,dt.RULE_infinity);try{this.enterOuterAlt(e,1),this.state=160,t=this._input.LA(1),t!==dt.T__44&&t!==dt.T__45?this._errHandler.recoverInline(this):(this._input.LA(1)===pt.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ht.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}sempred(t,e,r){return 1!==e||this.expression_sempred(t,r)}expression_sempred(t,e){switch(e){case 0:return this.precpred(this._ctx,5);case 1:return this.precpred(this._ctx,4);case 2:return this.precpred(this._ctx,3)}return!0}static get _ATN(){return dt.__ATN||(dt.__ATN=(new J.ATNDeserializer).deserialize(nt.toCharArray(dt._serializedATN))),dt.__ATN}}dt.T__0=1,dt.T__1=2,dt.T__2=3,dt.T__3=4,dt.T__4=5,dt.T__5=6,dt.T__6=7,dt.T__7=8,dt.T__8=9,dt.T__9=10,dt.T__10=11,dt.T__11=12,dt.T__12=13,dt.T__13=14,dt.T__14=15,dt.T__15=16,dt.T__16=17,dt.T__17=18,dt.T__18=19,dt.T__19=20,dt.T__20=21,dt.T__21=22,dt.T__22=23,dt.T__23=24,dt.T__24=25,dt.T__25=26,dt.T__26=27,dt.T__27=28,dt.T__28=29,dt.T__29=30,dt.T__30=31,dt.T__31=32,dt.T__32=33,dt.T__33=34,dt.T__34=35,dt.T__35=36,dt.T__36=37,dt.T__37=38,dt.T__38=39,dt.T__39=40,dt.T__40=41,dt.T__41=42,dt.T__42=43,dt.T__43=44,dt.T__44=45,dt.T__45=46,dt.DATE=47,dt.DATETIME=48,dt.TIME=49,dt.IDENTIFIER=50,dt.STRING=51,dt.NUMBER=52,dt.INTEGER=53,dt.WHITESPACE=54,dt.COMMENT=55,dt.LINE_COMMENT=56,dt.RULE_root=0,dt.RULE_expression=1,dt.RULE_term=2,dt.RULE_invocable=3,dt.RULE_invocation=4,dt.RULE_indexer=5,dt.RULE_function=6,dt.RULE_paramList=7,dt.RULE_unit=8,dt.RULE_dateTimePrecision=9,dt.RULE_pluralDateTimePrecision=10,dt.RULE_qualifiedIdentifier=11,dt.RULE_externalConstant=12,dt.RULE_identifier=13,dt.RULE_literal=14,dt.RULE_compOp=15,dt.RULE_arthOp=16,dt.RULE_polarOp=17,dt.RULE_logOp=18,dt.RULE_boolean=19,dt.RULE_null=20,dt.RULE_infinity=21,dt.ruleNames=["root","expression","term","invocable","invocation","indexer","function","paramList","unit","dateTimePrecision","pluralDateTimePrecision","qualifiedIdentifier","externalConstant","identifier","literal","compOp","arthOp","polarOp","logOp","boolean","null","infinity"],dt._LITERAL_NAMES=[void 0,"'('","')'","'['","','","']'","'year'","'month'","'week'","'day'","'hour'","'minute'","'second'","'millisecond'","'years'","'months'","'weeks'","'days'","'hours'","'minutes'","'seconds'","'milliseconds'","'.'","'@'","'<='","'<'","'>'","'>='","'='","'!='","'in'","'!in'","'like'","'!like'","'ilike'","'!ilike'","'+'","'-'","'*'","'/'","'and'","'or'","'true'","'false'","'null'","'Infinity'","'infinity'"],dt._SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"DATE","DATETIME","TIME","IDENTIFIER","STRING","NUMBER","INTEGER","WHITESPACE","COMMENT","LINE_COMMENT"],dt.VOCABULARY=new rt.VocabularyImpl(dt._LITERAL_NAMES,dt._SYMBOLIC_NAMES,[]),dt._serializedATN='줝쪺֍꾺体؇쉁:¥\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?\n\fB\vF\nT\n\fW\v\\\nd\n\b\b\b\bi\n\b\b\b\t\t\t\tp\n\t\f\t\ts\v\t\n\n\n\nx\n\n\v\v\f\f\r\r\r\r\n\r\f\r\r\v\r\r\r\n\b\n\f "$&(*,\v\b45%&)&\'*+,-/0¤.E[\b]\n_\fcelwy{ "$&(* ,¢.//0012\b2F34$45\b5F6778899F:;;@<==?><?B@>@AACB@CDDFE1E3E6E:FUGH\fHI"IJ\bJTKL\fLM MNNTOP\fPQ&QRRTSGSKSOTWUSUVVWUX\\Y\\\rZ\\[X[Y[Z\\]^\b^\t_``\vadbd7cacbd\reffhgi\thghiijjkklqmnnpompsqoqrrsqtx\vux\fvx5wtwuwvxyz\tz{|\t|}~~}
\t46,(*1235\t!\t#\t%\t\b\'\t\t) ¡.¡+¢£\t\n£-\r@ESU[chqw';class ft extends ut.ParserRuleContext{expression(){return this.getRuleContext(0,yt)}EOF(){return this.getToken(dt.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_root}accept(t){return t.visitRoot?t.visitRoot(this):t.visitChildren(this)}}class yt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_expression}copyFrom(t){super.copyFrom(t)}}class gt extends yt{term(){return this.getRuleContext(0,Et)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitTermExpression?t.visitTermExpression(this):t.visitChildren(this)}}class _t extends yt{polarOp(){return this.getRuleContext(0,Zt)}expression(){return this.getRuleContext(0,yt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitPolarityExpression?t.visitPolarityExpression(this):t.visitChildren(this)}}class mt extends yt{expression(t){return void 0===t?this.getRuleContexts(yt):this.getRuleContext(t,yt)}arthOp(){return this.getRuleContext(0,Qt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitArithmeticExpression?t.visitArithmeticExpression(this):t.visitChildren(this)}}class vt extends yt{expression(t){return void 0===t?this.getRuleContexts(yt):this.getRuleContext(t,yt)}compOp(){return this.getRuleContext(0,Xt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitComparisonExpression?t.visitComparisonExpression(this):t.visitChildren(this)}}class Tt extends yt{expression(t){return void 0===t?this.getRuleContexts(yt):this.getRuleContext(t,yt)}logOp(){return this.getRuleContext(0,Jt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitLogicalExpression?t.visitLogicalExpression(this):t.visitChildren(this)}}class bt extends yt{expression(){return this.getRuleContext(0,yt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitParenthesizedExpression?t.visitParenthesizedExpression(this):t.visitChildren(this)}}class St extends yt{expression(t){return void 0===t?this.getRuleContexts(yt):this.getRuleContext(t,yt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitArrayExpression?t.visitArrayExpression(this):t.visitChildren(this)}}class Et extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_term}copyFrom(t){super.copyFrom(t)}}class xt extends Et{literal(){return this.getRuleContext(0,Bt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitLiteralTerm?t.visitLiteralTerm(this):t.visitChildren(this)}}class Ot extends Et{qualifiedIdentifier(){return this.getRuleContext(0,Ft)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitQualifiedIdentifierTerm?t.visitQualifiedIdentifierTerm(this):t.visitChildren(this)}}class Nt extends Et{externalConstant(){return this.getRuleContext(0,Ut)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitExternalConstantTerm?t.visitExternalConstantTerm(this):t.visitChildren(this)}}class At extends ut.ParserRuleContext{function(){return this.getRuleContext(0,kt)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_invocable}accept(t){return t.visitInvocable?t.visitInvocable(this):t.visitChildren(this)}}class wt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_invocation}copyFrom(t){super.copyFrom(t)}}class Rt extends wt{identifier(){return this.getRuleContext(0,zt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitMemberInvocation?t.visitMemberInvocation(this):t.visitChildren(this)}}class Ct extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_indexer}copyFrom(t){super.copyFrom(t)}}class Pt extends Ct{identifier(){return this.getRuleContext(0,zt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitMemberIndex?t.visitMemberIndex(this):t.visitChildren(this)}}class It extends Ct{INTEGER(){return this.getToken(dt.INTEGER,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitNumberIndex?t.visitNumberIndex(this):t.visitChildren(this)}}class kt extends ut.ParserRuleContext{identifier(){return this.getRuleContext(0,zt)}paramList(){return this.tryGetRuleContext(0,Lt)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_function}accept(t){return t.visitFunction?t.visitFunction(this):t.visitChildren(this)}}class Lt extends ut.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(yt):this.getRuleContext(t,yt)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_paramList}accept(t){return t.visitParamList?t.visitParamList(this):t.visitChildren(this)}}class Dt extends ut.ParserRuleContext{dateTimePrecision(){return this.tryGetRuleContext(0,jt)}pluralDateTimePrecision(){return this.tryGetRuleContext(0,Mt)}STRING(){return this.tryGetToken(dt.STRING,0)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_unit}accept(t){return t.visitUnit?t.visitUnit(this):t.visitChildren(this)}}class jt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_dateTimePrecision}accept(t){return t.visitDateTimePrecision?t.visitDateTimePrecision(this):t.visitChildren(this)}}class Mt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_pluralDateTimePrecision}accept(t){return t.visitPluralDateTimePrecision?t.visitPluralDateTimePrecision(this):t.visitChildren(this)}}class Ft extends ut.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(zt):this.getRuleContext(t,zt)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_qualifiedIdentifier}accept(t){return t.visitQualifiedIdentifier?t.visitQualifiedIdentifier(this):t.visitChildren(this)}}class Ut extends ut.ParserRuleContext{IDENTIFIER(){return this.tryGetToken(dt.IDENTIFIER,0)}STRING(){return this.tryGetToken(dt.STRING,0)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_externalConstant}accept(t){return t.visitExternalConstant?t.visitExternalConstant(this):t.visitChildren(this)}}class zt extends ut.ParserRuleContext{IDENTIFIER(){return this.getToken(dt.IDENTIFIER,0)}constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_identifier}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}}class Bt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_literal}copyFrom(t){super.copyFrom(t)}}class Ht extends Bt{NUMBER(){return this.getToken(dt.NUMBER,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}}class qt extends Bt{infinity(){return this.getRuleContext(0,re)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitInfinityLiteral?t.visitInfinityLiteral(this):t.visitChildren(this)}}class $t extends Bt{boolean(){return this.getRuleContext(0,te)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitBooleanLiteral?t.visitBooleanLiteral(this):t.visitChildren(this)}}class Vt extends Bt{null(){return this.getRuleContext(0,ee)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitNullLiteral?t.visitNullLiteral(this):t.visitChildren(this)}}class Wt extends Bt{DATE(){return this.getToken(dt.DATE,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitDateLiteral?t.visitDateLiteral(this):t.visitChildren(this)}}class Yt extends Bt{DATETIME(){return this.getToken(dt.DATETIME,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitDateTimeLiteral?t.visitDateTimeLiteral(this):t.visitChildren(this)}}class Gt extends Bt{TIME(){return this.getToken(dt.TIME,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitTimeLiteral?t.visitTimeLiteral(this):t.visitChildren(this)}}class Kt extends Bt{STRING(){return this.getToken(dt.STRING,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}}class Xt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_compOp}accept(t){return t.visitCompOp?t.visitCompOp(this):t.visitChildren(this)}}class Qt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_arthOp}accept(t){return t.visitArthOp?t.visitArthOp(this):t.visitChildren(this)}}class Zt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_polarOp}accept(t){return t.visitPolarOp?t.visitPolarOp(this):t.visitChildren(this)}}class Jt extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_logOp}accept(t){return t.visitLogOp?t.visitLogOp(this):t.visitChildren(this)}}class te extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_boolean}accept(t){return t.visitBoolean?t.visitBoolean(this):t.visitChildren(this)}}class ee extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_null}accept(t){return t.visitNull?t.visitNull(this):t.visitChildren(this)}}class re extends ut.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return dt.RULE_infinity}accept(t){return t.visitInfinity?t.visitInfinity(this):t.visitChildren(this)}}class ne{constructor(t){this.errors=t}syntaxError(t,e,r,n,i,o){this.errors.push(new M(i,{recognizer:t,offendingSymbol:e,line:r,charPositionInLine:n,e:o}))}}var ie=g(5466);class oe extends I{constructor(t){super(""+t)}toString(){return"@"+super.toString()}}class se extends ie.AbstractParseTreeVisitor{constructor(t){super(),this._timeZone=t?.timeZone}defaultResult(){}visitRoot(t){return this.visit(t.expression())}visitIdentifier(t){return t.text}visitNullLiteral(){return new V}visitBooleanLiteral(t){return new k("true"===t.text)}visitNumberLiteral(t){return new W(t.text)}visitStringLiteral(t){return new G(H(t.text))}visitInfinityLiteral(){return new W(1/0)}visitDateLiteral(t){return new $(H(t.text))}visitDateTimeLiteral(t){return new $(H(t.text))}visitTimeLiteral(t){return new X(H(t.text))}visitQualifiedIdentifierTerm(t){return new Y(t.text)}visitPolarityExpression(t){const e=this.visit(t.expression());if("NumberLiteral"===e.kind)return"-"===t.polarOp().text&&(e.value*=-1),e;throw new D('Unexpected token "'+t.text+'"')}visitExternalConstantTerm(t){return new oe(t.externalConstant().text.substring(1))}visitParenthesizedExpression(t){const e=this.visit(t.expression());return new P(e)}visitArrayExpression(t){return new A(t.expression().map((t=>this.visit(t))))}visitComparisonExpression(t){return new R({op:t.compOp().text,left:this.visit(t.expression(0)),right:this.visit(t.expression(1))})}visitLogicalExpression(t){const e=[],r=(t,n)=>{for(const i of t){if(i instanceof Tt&&i.logOp().text===n){r(i.expression(),i.logOp().text);continue}const t=this.visit(i);e.push(t)}};return r(t.expression(),t.logOp().text),new C({op:t.logOp().text,items:e})}visitArithmeticExpression(t){const e=new x,r=(t,n)=>{for(let i=0,o=t.length;i<o;i++){const o=t[i];if(o instanceof mt){r(o.expression(),o.arthOp().text);continue}const s=this.visit(o);e.append(n||"+",s)}};return r(t.expression(),t.arthOp().text),e}}var ae=g(3915);const le=(t=>{var e={};return g.d(e,t),e})({uid:()=>a.uid});function ue(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function ce(t){return ue(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState}function he(t){return null!==t&&"string"==typeof t.host&&"string"==typeof t.href}var pe,de;!function(t){t.X_Opra_Version="X-Opra-Version",t.X_Opra_DataType="X-Opra-DataType",t.X_Opra_Count="X-Opra-Count",t.WWW_Authenticate="WWW-Authenticate",t.Authorization="Authorization",t.Proxy_Authenticate="Proxy-Authenticate",t.Proxy_Authorization="Proxy-Authorization",t.Age="Age",t.Cache_Control="Cache-Control",t.Clear_Site_Data="Clear-Site-Data",t.Expires="Expires",t.Pragma="Pragma",t.Last_Modified="Last-Modified",t.ETag="ETag",t.If_Match="If-Match",t.If_None_Match="If-None-Match",t.If_Modified_Since="If-Modified-Since",t.If_Unmodified_Since="If-Unmodified-Since",t.Vary="Vary",t.Connection="Connection",t.Keep_Alive="Keep-Alive",t.Accept="Accept",t.Accept_Encoding="Accept-Encoding",t.Accept_Language="Accept-Language",t.Expect="Expect",t.Cookie="Cookie",t.Set_Cookie="Set-Cookie",t.Access_Control_Allow_Origin="Access-Control-Allow-Origin",t.Access_Control_Allow_Credentials="Access-Control-Allow-Credentials",t.Access_Control_Allow_Headers="Access-Control-Allow-Headers",t.Access_Control_Allow_Methods="Access-Control-Allow-Methods",t.Access_Control_Expose_Headers="Access-Control-Expose-Headers",t.Access_Control_Max_Age="Access-Control-Max-Age",t.Access_Control_Request_Headers="Access-Control-Request-Headers",t.Access_Control_Request_Method="Access-Control-Request-Method",t.Origin="Origin",t.Timing_Allow_Origin="Timing-Allow-Origin",t.Content_Disposition="Content-Disposition",t.Content_ID="Content-ID",t.Content_Length="Content-Length",t.Content_Type="Content-Type",t.Content_Transfer_Encoding="Content-Transfer-Encoding",t.Content_Encoding="Content-Encoding",t.Content_Language="Content-Language",t.Content_Location="Content-Location",t.Forwarded="Forwarded",t.X_Forwarded_For="X-Forwarded-For",t.X_Forwarded_Host="X-Forwarded-Host",t.X_Forwarded_Proto="X-Forwarded-Proto",t.Via="Via",t.Location="Location",t.From="From",t.Host="Host",t.Referer="Referer",t.Referrer_Policy="Referrer-Policy",t.User_Agent="User-Agent",t.Allow="Allow",t.Server="Server",t.Accept_Ranges="Accept-Ranges",t.Range="Range",t.If_Range="If-Range",t.Content_Range="Content-Range",t.Cross_Origin_Embedder_Policy="Cross-Origin-Embedder-Policy",t.Cross_Origin_Opener_Policy="Cross-Origin-Opener-Policy",t.Cross_Origin_Resource_Policy="Cross-Origin-Resource-Policy",t.Content_Security_Policy="Content-Security-Policy",t.Content_Security_Policy_Report_Only="Content-Security-Policy-Report-Only",t.Expect_CT="Expect-CT",t.Feature_Policy="Feature-Policy",t.Strict_Transport_Security="Strict-Transport-Security",t.Upgrade_Insecure_Requests="Upgrade-Insecure-Requests",t.X_Content_Type_Options="X-Content-Type-Options",t.X_Download_Options="X-Download-Options",t.X_Frame_Options="X-Frame-Options",t.X_Permitted_Cross_Domain_Policies="X-Permitted-Cross-Domain-Policies",t.X_Powered_By="X-Powered-By",t.X_XSS_Protection="X-XSS-Protection",t.Transfer_Encoding="Transfer-Encoding",t.TE="TE",t.Trailer="Trailer",t.Sec_WebSocket_Key="Sec-WebSocket-Key",t.Sec_WebSocket_Extensions="Sec-WebSocket-Extensions",t.Sec_WebSocket_Accept="Sec-WebSocket-Accept",t.Sec_WebSocket_Protocol="Sec-WebSocket-Protocol",t.Sec_WebSocket_Version="Sec-WebSocket-Version",t.Date="Date",t.Retry_After="Retry-After",t.Server_Timing="Server-Timing",t.X_DNS_Prefetch_Control="X-DNS-Prefetch-Control"}(pe||(pe={})),function(t){t[t.CONTINUE=100]="CONTINUE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.PROCESSING=102]="PROCESSING",t[t.EARLYHINTS=103]="EARLYHINTS",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.AMBIGUOUS=300]="AMBIGUOUS",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.FOUND=302]="FOUND",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",t[t.URI_TOO_LONG=414]="URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",t[t.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.LOCKED=423]="LOCKED",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.TOO_EARLY=425]="TOO_EARLY",t[t.UPGRADE_REQUIRED=428]="UPGRADE_REQUIRED",t[t.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",t[t.VARIANT_ALSO_NEGOTIATES=506]="VARIANT_ALSO_NEGOTIATES",t[t.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",t[t.LOOP_DETECTED=508]="LOOP_DETECTED",t[t.NOT_EXTENDED=510]="NOT_EXTENDED",t[t.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"}(de||(de={}));const fe=Object.keys(pe),ye=fe.map((t=>t.toLowerCase()));function ge(t,e){return t&&Object.keys(t).reduce(((r,n)=>{const i=t[n],o=e?fe[ye.indexOf(n.toLowerCase())]||n.replace(/(^\w|[A-Z]|\b\w)/g,(function(t){return t.toUpperCase()})):n.toLowerCase();return"set-cookie"===n.toLowerCase()?r[o]=Array.isArray(i)?i:[i]:r[o]=Array.isArray(i)?i.join(";"):i,r}),{})||{}}class _e{constructor(t){this.method=t.method,this.url=encodeURI(decodeURI(t.url)),this.headers=t.headers,this.data=t.data}}class me{constructor(t){this.status=t.status,this.headers=t.headers,this.data=t.data}}var ve=g(3368).Buffer;const Te="\r\n",be=/ *charset=./i;class Se{constructor(){this._parts=[],this.boundary="batch_"+(0,le.uid)(12)}addRequestPart(t,e){const r={...ge(e?.headers||{},!0),[pe.Content_Type]:"application/http",[pe.Content_Transfer_Encoding]:"binary"};return e?.contentId&&(r[pe.Content_ID]=e.contentId),this._parts.push({headers:r,contentId:e?.contentId,content:new _e(t)}),this}addHttpResponse(t,e){const r={...ge(e?.headers||{},!0),[pe.Content_Type]:"application/http",[pe.Content_Transfer_Encoding]:"binary"};return e?.contentId&&(r[pe.Content_ID]=e.contentId),this._parts.push({headers:r,contentId:e?.contentId,content:new me(t)}),this}addBatch(t,e){const r={...ge(e?.headers||{},!0),[pe.Content_Type]:"application/http",[pe.Content_Transfer_Encoding]:"binary"};return e?.contentId&&(r[pe.Content_ID]=e.contentId),this._parts.push({headers:r,contentId:e?.contentId,content:t}),this}stream(){const t=[];return this._build(t),ae(t).flatten().toNodeStream()}_build(t){for(const e of this._parts){if(!(e.content instanceof _e||e.content instanceof me))throw new Error("Not implemented yet");{let r=e.content.data,n=0;const i=ge(e.content.headers);if(r){const t=String(i["content-type"]||"").split(/\s*;\s*/);let e="";if(ce(r)?n=parseInt(String(i["content-length"]),10)||0:"object"==typeof r?"function"==typeof r.stream?(t[0]=r.type||"binary",n=r.size,r=r.stream()):ve.isBuffer(r)?i["content-length"]=String(r.length):(t[0]=t[0]||"application/json",e="utf-8",r=ve.from(JSON.stringify(r),"utf-8"),n=r.length):(t[0]=t[0]||"text/plain",e="utf-8",r=ve.from(String(r),"utf-8"),n=r.length),t[0]){if(e){const r=t.findIndex((t=>be.test(String(t))));r>0?t[r]="charset="+e:t.join("charset="+e)}i["content-type"]=t.join(";")}n&&(i["content-length"]=String(n))}let o="--"+this.boundary+Te;for(const[t,r]of Object.entries(e.headers))""!==r&&null!=r&&(o+=t+": "+(Array.isArray(r)?r.join(";"):r)+Te);if(o+=Te,e.content instanceof _e?o+=(e.content.method||"GET").toUpperCase()+" "+e.content.url+" HTTP/1.1"+Te:o+="HTTP/1.1 "+e.content.status+(de[e.content.status]||"Unknown")+Te,e.content.headers)for(const[t,r]of Object.entries(e.content.headers))""!==r&&null!=r&&("set-cookie"===t&&Array.isArray(r)?r.forEach((e=>o+=t+": "+e)):o+=t+": "+(Array.isArray(r)?r.join(";"):r)+Te);o+=Te,t.push(ve.from(o,"utf-8")),r&&(t.push(r),t.push(ve.from(Te+Te)))}}t.push(ve.from("--"+this.boundary+"--"+Te,"utf-8"))}}g.d({},{});const Ee="opra:resolver.metadata",xe="opra:ignore_resolver-method",Oe=["create","delete","get","update"],Ne=[...Oe,"count","deleteMany","updateMany","search"];var Ae;!function(t){t.Version="1.0",t.isDataType=function(t){return t&&"object"==typeof t&&("ComplexType"===t.kind||"SimpleType"===t.kind||"UnionType"===t.kind)},t.isComplexType=function(t){return t&&"object"==typeof t&&"ComplexType"===t.kind},t.isSimpleType=function(t){return t&&"object"==typeof t&&"SimpleType"===t.kind},t.isUnionTypee=function(t){return t&&"object"==typeof t&&"UnionType"===t.kind},t.isResource=function(t){return t&&"object"==typeof t&&"ContainerResource"===t.kind||"CollectionResource"===t.kind||"SingletonResource"===t.kind},t.isCollectionResource=function(t){return t&&"object"==typeof t&&"CollectionResource"===t.kind},t.isSingletonResource=function(t){return t&&"object"==typeof t&&"SingletonResource"===t.kind},t.isContainerResource=function(t){return t&&"object"==typeof t&&"ContainerResource"===t.kind}}(Ae||(Ae={}));const we=(t=>{var e={};return g.d(e,t),e})({omit:()=>u.omit});var Re=g(9410);class Ce extends Map{constructor(t,e){super(),this._keyMap=new Map,this._keyOrder=[],this._wellKnownKeyMap=new Map,e&&e.forEach((t=>this._wellKnownKeyMap.set(t.toLowerCase(),t))),"function"==typeof t?.forEach?t.forEach(((t,e)=>this.set(e,t))):t&&"object"==typeof t&&Object.keys(t).forEach((e=>this.set(e,t[e])))}clear(){super.clear(),this._keyMap.clear(),this._keyOrder=[]}get(t){const e=this._getOriginalKey(t);return super.get(e)}has(t){return this._keyMap.has(this._getLowerKey(t))}set(t,e){return t=this._getOriginalKey(t),this._keyMap.set(this._getLowerKey(t),t),this._keyOrder.includes(t)||this._keyOrder.push(t),super.set(t,e)}keys(){return this._keyOrder.values()}values(){let t=-1;const e=this._keyOrder,r=this;return{[Symbol.iterator](){return this},next:()=>(t++,{done:t>=e.length,value:r.get(e[t])})}}entries(){let t=-1;const e=this._keyOrder,r=this;return{[Symbol.iterator](){return this},next:()=>(t++,{done:t>=e.length,value:[e[t],r.get(e[t])]})}}delete(t){const e=this._getOriginalKey(t),r=this._getLowerKey(t);this._keyMap.delete(r);const n=this._keyOrder.indexOf(e);return n>=0&&this._keyOrder.splice(n,1),super.delete(e)}sort(t){return this._keyOrder.sort(t),this}[Symbol.iterator](){return this.entries()}_getOriginalKey(t){return"string"==typeof t?this._keyMap.get(t.toLowerCase())??this._wellKnownKeyMap.get(t.toLowerCase())??t:t}_getLowerKey(t){return"string"==typeof t?t.toLowerCase():t}}function Pe(t){return"function"==typeof t&&!(!t.prototype||!t.prototype.constructor)}const Ie={kind:"UnionType",description:"Any value",ctor:Object,types:[]};var ke=g(3368).Buffer;const Le={kind:"SimpleType",description:"A stream of bytes, base64 encoded",ctor:Object.getPrototypeOf(ke.from("")).constructor,parse:t=>ke.from(t),serialize:t=>ke.isBuffer(t)?t.toString("base64"):void 0},De={kind:"SimpleType",description:"BigInt number",ctor:Object.getPrototypeOf(BigInt(0)).constructor,parse:t=>BigInt(t),serialize:t=>String(t)};var je=g(4556);const Me={kind:"SimpleType",description:"Simple true/false value",ctor:Boolean,parse:t=>(0,je.toBoolean)(t),serialize:t=>(0,je.toBoolean)(t)},Fe={kind:"SimpleType",description:"A date, date-time or partial date",ctor:String,parse:t=>(0,je.toDate)(t),serialize:t=>String(t)},Ue={kind:"SimpleType",description:"A date, date-time or partial date in string format",ctor:String,parse:t=>(0,je.toString)(t),serialize:t=>(0,je.toString)(t)},ze={kind:"SimpleType",description:"A guid value",ctor:String,parse:t=>(0,je.toString)(t),serialize:t=>(0,je.toString)(t)},Be={kind:"SimpleType",description:"An integer number",ctor:Number,parse:t=>(0,je.toInt)(t),serialize:t=>(0,je.toInt)(t)},He={kind:"SimpleType",description:"Both Integer as well as Floating-Point numbers",ctor:Number,parse:t=>(0,je.toNumber)(t),serialize:t=>(0,je.toNumber)(t)},qe={kind:"ComplexType",description:"A non modelled object",ctor:Object,additionalFields:!0,parse:t=>t,serialize:t=>t},$e={kind:"SimpleType",description:"A sequence of characters",ctor:String,parse:t=>(0,je.toString)(t),serialize:t=>(0,je.toString)(t)};var Ve=g(3368).Buffer;const We=Object.getPrototypeOf(BigInt(0)).constructor,Ye=Object.getPrototypeOf(Ve.from("")).constructor,Ge=new Ce;Ge.set("any",Ie),Ge.set("base64Binary",Le),Ge.set("bigint",De),Ge.set("boolean",Me),Ge.set("date",Fe),Ge.set("dateString",Ue),Ge.set("guid",ze),Ge.set("integer",Be),Ge.set("number",He),Ge.set("object",qe),Ge.set("string",$e);const Ke=new Map;Ke.set(Boolean,"boolean"),Ke.set(String,"string"),Ke.set(Number,"number"),Ke.set(Date,"date"),Ke.set(We,"bigint"),Ke.set(Ye,"base64Binary"),Ke.set(Object,"object");var Xe=g(2589),Qe=g(4346);function Ze(t,e){return Qe({},t,{deep:!0,clone:!0,filter:(t,r)=>{const n=t[r];return null!=n&&!e||"function"!=typeof n&&("object"!=typeof n||Xe(n)||Array.isArray(n))}})}const Je=Symbol.for("opra.optional-lib.sqb-connect");const tr=Symbol.for("opra.optional-lib.sqb-connect");class er{constructor(t){this._dataTypes=new Ce,this._resources=new Ce,this._args=t}buildSchema(){const t={...this._args,version:Ae.Version};return this._dataTypes.size&&(t.types=Array.from(this._dataTypes.keys()).sort().reduce(((t,e)=>(t[e]=this._dataTypes.get(e),t)),{})),this._resources.size&&(t.resources=Array.from(this._resources.keys()).sort().reduce(((t,e)=>(t[e]=this._resources.get(e),t)),{})),t}async addDataTypeSchema(t,e){if(!Ae.isDataType(e))throw new TypeError("Invalid DataType schema");const r=this._dataTypes.get(t);if(r){if(r.kind!==e.kind||!r.ctor||r.ctor!==e.ctor)throw new Error(`An other instance of "${t}" data type previously defined`)}else if(this._dataTypes.set(t,e),Ae.isComplexType(e)){if(e.extends)for(const t of e.extends)"string"!=typeof t.type&&(t.type=await this.addDataTypeClass(t.type));if(e.fields)for(const t of Object.values(e.fields))t.type=t.type||"string","string"!=typeof t.type&&(t.type=await this.addDataTypeClass(t.type))}}async addDataTypeClass(t){if(!Pe(t=(0,Re.isPromise)(t)?await t:t))return this.addDataTypeClass(t());const e=Ke.get(t);if(e)return e;const r=await async function(t){const e=Reflect.getMetadata("opra:data_type.metadata",t);if(!e)throw new TypeError(`Class "${t}" doesn't have "DataType" metadata information`);if(Ae.isComplexType(e))return await async function(t,e){const r=Ze(e);r.ctor=t;const n=Reflect.getMetadata("opra:mapped_type.metadata",t);n&&(r.extends=[...n.map((t=>Ze(t)))]);const i=Reflect.getMetadata("opra:complex_type.fields",t);if(i){r.fields=Ze(i);for(const[e,n]of Object.entries(r.fields)){if("function"==typeof n.type){const t=Ke.get(n.type);t&&(n.type=t)}const r=globalThis[Je]?.SqbConnect;let i;if(r){const{EntityMetadata:o,isAssociationField:s}=r,a=o.get(t);if(i=a&&o.getField(a,e),i){if((n.type===Function||"object"===n.type||n.type===Object||"any"===n.type)&&(n.type="any",s(i))){i.association.returnsMany()||delete n.isArray;const t=await i.association.resolveTarget();t&&(n.type=t.ctor)}i.exclusive&&void 0===n.exclusive&&(n.exclusive=i.exclusive)}}if(i&&"column"===i.kind){const t=r.DataType;if("number"===n.type||n.type===Number)switch(i.dataType){case t.INTEGER:case t.SMALLINT:n.type="integer";break;case t.BIGINT:n.type="bigint"}else"string"!==n.type&&n.type!==String||i.dataType!==t.GUID||(n.type="guid");i.notNull&&void 0===n.required&&(n.required=i.notNull),i.exclusive&&void 0===n.exclusive&&(n.exclusive=i.exclusive),void 0!==i.default&&void 0===n.default&&(n.default=i.default)}}}return r}(t,e);if(Ae.isSimpleType(e))return await async function(t,e){const r=Ze(e);return r.ctor=t,r}(t,e);throw new TypeError("Invalid DataType metadata")}(t),n=r.name,i=r;return delete i.name,await this.addDataTypeSchema(n,i),n}async addResourceSchema(t,e){if(!Ae.isResource(e))throw new TypeError("Invalid Resource schema");if(this._resources.has(t))throw new Error(`An other instance of "${t}" resource previously defined`);if(Ae.isCollectionResource(e)||Ae.isSingletonResource(e)){const t="function"==typeof e.type?await this.addDataTypeClass(e.type):e.type;if(e.type=t,!this._dataTypes.has(e.type)&&!Ge.has(e.type))throw new Error(`Resource registration error. Type "${e.type}" not found.`)}if(Ae.isCollectionResource(e)&&!e.keyFields){const r=this._dataTypes.get(e.type),n=globalThis[tr]?.SqbConnect;if(n&&r?.ctor){const t=n.EntityMetadata.get(r?.ctor);if(t?.indexes){const r=t.indexes.find((t=>t.primary));r&&(e.keyFields=r.columns)}}if(e.keyFields=Array.isArray(e.keyFields)?e.keyFields.length?e.keyFields:"":e.keyFields,!e.keyFields)throw new TypeError(`You must provide keyFields for "${t}" entity resource`)}this._resources.set(t,e)}async addResourceInstance(t){let e;"function"==typeof(t=(0,Re.isPromise)(t)?await t:t)?Pe(t)?(e={},Object.setPrototypeOf(e,t.prototype)):e=await t():e=t;const r=await async function(t){const e=Object.getPrototypeOf(t).constructor,r=Reflect.getMetadata("opra:resource.metadata",e);if(!r)throw new TypeError(`Class "${e.name}" doesn't have "Resource" metadata information`);const n=Ze(r);if(n.instance=t,n.name=r.name||e.name.replace(/(Resource|Controller)$/,""),Ae.isCollectionResource(r))return await async function(t){const e=t.instance,r=Object.getPrototypeOf(t.instance);let n,i;const o=(t,e)=>{i=t[e],n=Reflect.getMetadata(Ee,t,e),null==i&&n&&(t=Object.getPrototypeOf(t),i=t[e])};for(const s of Ne){if(o(e,s),"function"!=typeof i)continue;const a=t[s]={...n};Reflect.hasMetadata(xe,r.constructor,s)||(a.handler=i.bind(e),i=e["pre_"+s],"function"==typeof i&&(t["pre_"+s]=i.bind(e)))}return t}(n);if(Ae.isSingletonResource(r))return await async function(t){const e=t.instance,r=Object.getPrototypeOf(t.instance);let n,i;const o=(t,e)=>{i=t[e],n=Reflect.getMetadata(Ee,t,e),null==i&&n&&(t=Object.getPrototypeOf(t),i=t[e])};for(const s of Oe){if(o(e,s),"function"!=typeof i)continue;const a=t[s]={...n};Reflect.hasMetadata(xe,r.constructor,s)||(a.handler=i.bind(e),i=e["pre_"+s],"function"==typeof i&&(t["pre_"+s]=i.bind(e)))}return t}(n);throw new TypeError("Invalid Resource metadata")}(e),n=r.name,i=r;return delete i.name,await this.addResourceSchema(n,i),n}}function rr(t,e){return t<e?-1:t>e?1:0}const nr=Symbol.for("nodejs.util.inspect.custom"),ir="[0m",or="[33m",sr="[35m";class ar{constructor(t,e,r){this._document=t,this._name=e,this._metadata=r}get document(){return this._document}get kind(){return this._metadata.kind}get name(){return this._name}get description(){return this._metadata.description}get ctor(){return this._metadata.ctor}parse(t){return this._metadata.parse?this._metadata.parse(t):t}getSchema(t){return Ze(this._metadata,t)}}class lr extends ar{constructor(t,e,r){super(t,e,{kind:"ComplexType",...r}),this._initialized=!1,this.ownFields=new Ce,this.fields=new Ce}get abstract(){return!!this._metadata.abstract}get additionalFields(){return this._metadata.additionalFields||this._mixinAdditionalFields}get extends(){return this._metadata.extends}getField(t){if(t.includes(".")){let e=this;const r=t.split(".");let n;for(const t of r)n=e.getField(t),e=e.document.getDataType(n.type||"string");return n}const e=this.fields.get(t);if(!e)throw new Error(`"${this.name}" type doesn't have a field named "${t}"`);return e}getFieldType(t){const e=this.getField(t);return this.document.getDataType(e.type||"string")}getOwnField(t){const e=this.ownFields.get(t);if(!e)throw new Error(`"${this.name}" type doesn't have an own field named "${t}"`);return e}getSchema(){const t=super.getSchema();if(this.additionalFields&&(t.additionalFields=this.additionalFields),this.ownFields.size){t.fields={};for(const[e,r]of this.ownFields)t.fields[e]=Ze(r),delete t.fields[e].name}return t}toString(){return`[${Object.getPrototypeOf(this).constructor.name} ${this.name}]`}[nr](){return`[${or+Object.getPrototypeOf(this).constructor.name+ir} ${sr+this.name+ir}]`}init(){if(this._initialized)return;this._initialized=!0;const t=this._metadata;if(t.extends)for(const e of t.extends){const t=this.document.types.get(e.type);if(!t)throw new TypeError(`Extending schema (${e.type}) of data type "${this.name}" does not exists`);if(!(t instanceof lr))throw new TypeError(`Cannot extend ${this.name} from a "${t.kind}"`);t.init(),t.additionalFields&&(this._mixinAdditionalFields=!0);for(const[e,r]of t.fields){const t=Ze(r);t.name=e,t.parent=this,this.fields.set(e,t)}}if(t.fields)for(const[e,r]of Object.entries(t.fields)){if(!this.document.types.get(r.type))throw new TypeError(`Type "${r.type}" defined for "${this.name}.${e}" does not exists`);const t=Ze(r);t.name=e,this.fields.set(e,t),this.ownFields.set(e,t)}}}class ur extends ar{constructor(t,e,r){super(t,e,{kind:"SimpleType",...r})}toString(){return`[${Object.getPrototypeOf(this).constructor.name} ${this.name}]`}[nr](){return`[${or+Object.getPrototypeOf(this).constructor.name+ir} ${sr+this.name+ir}]`}}class cr extends ar{constructor(t,e,r){super(t,e,(0,we.omit)({kind:"UnionType",...r},["types"])),this.types=r.types,this.hasAdditionalFields="any"===e||!!this.types.find((t=>t instanceof lr&&t.additionalFields))}toString(){return`[${Object.getPrototypeOf(this).constructor.name} ${this.name}]`}[nr](){return`[${or+Object.getPrototypeOf(this).constructor.name+ir} ${sr+this.name+ir}]`}}const hr=/^([^.]+)\.(.*)$/;function pr(t){if(t.length)return dr(t,{})}function dr(t,e){for(const r of t){const t=hr.exec(r);if(t){const r=t[1];if(!0===e[r])continue;const n=e[r]="object"==typeof e[r]?e[r]:{};dr([t[2]],n)}else e[r]=!0}return e}function fr(t,e,r,n=""){return yr([],t,e,pr(r)||{},"",n,{additionalFields:!0})}function yr(t,e,r,n,i="",o="",s){let a="";for(const l of Object.keys(n)){const u=n[l],c=r?.fields.get(l);if(!c){if(a=i?i+"."+l:l,!s?.additionalFields||r&&!r.additionalFields)throw new TypeError(`Unknown field "${a}"`);"object"==typeof u?yr(t,e,void 0,u,a,o,s):t.push(a);continue}a=i?i+"."+c.name:c.name;const h=e.getDataType(c.type||"string");if("object"!=typeof u)t.findIndex((t=>t.startsWith(a+".")))>=0&&(t=t.filter((t=>!t.startsWith(a+".")))),t.push(a);else{if(!(h&&h instanceof lr))throw new TypeError(`"${o?o+"."+a:a}" is not a complex type and has no sub fields`);if(t.findIndex((t=>t===i))>=0)continue;t=yr(t,e,h,u,a,o,s)}}return t}class gr{constructor(t,e,r){this.document=t,this.name=e,this.metadata=r}get instance(){return this.metadata.instance}get kind(){return this.metadata.kind}get description(){return this.metadata.description}toString(){return`[${Object.getPrototypeOf(this).constructor.name} ${this.name}]`}validateQueryOptions(){}getSchema(t){return Ze(this.metadata,t)}[nr](){return`[${or+Object.getPrototypeOf(this).constructor.name+ir} ${sr+this.name+ir}]`}}class _r extends gr{constructor(t,e,r,n){if(!n.keyFields)throw new TypeError(`You should provide key fields for ${e}`);super(t,e,n),n.keyFields=Array.isArray(n.keyFields)?n.keyFields:[n.keyFields],n.keyFields.forEach((t=>r.getField(t))),this.dataType=r,n.search&&n.search.sortFields&&(n.search.sortFields=fr(t,r,n.search.sortFields))}get keyFields(){return this.metadata.keyFields}get create(){return this.metadata.create}get count(){return this.metadata.count}get delete(){return this.metadata.delete}get deleteMany(){return this.metadata.deleteMany}get get(){return this.metadata.get}get update(){return this.metadata.update}get updateMany(){return this.metadata.updateMany}get search(){return this.metadata.search}getSchema(t){const e=super.getSchema(t);e.keyFields.length<2&&(e.keyFields=e.keyFields[0]);for(const t of Ne)"object"!=typeof e[t]||Object.keys(e[t]).length||(e[t]=!0);return e}}class mr extends gr{constructor(t,e,r,n){if(!(r instanceof lr))throw new TypeError('You should provide a ComplexType as "dataType" argument');super(t,e,n),this.dataType=r}get create(){return this.metadata.create}get delete(){return this.metadata.delete}get get(){return this.metadata.get}get update(){return this.metadata.update}getSchema(t){const e=super.getSchema(t);for(const t of Oe)"object"!=typeof e[t]||Object.keys(e[t]).length||(e[t]=!0);return e}}class vr{constructor(t){this._ownTypes=new Ce,this._types=new Ce,this._resources=new Ce,this._meta=(0,we.omit)(t,["types","resources"]);for(const[t,e]of Ge.entries())this._addDataType(t,e,!1);if(t.types)for(const[e,r]of Object.entries(t.types))this._addDataType(e,r,!0);if(this._initTypes(),t.resources)for(const[e,r]of Object.entries(t.resources))this._addResource(e,r)}get info(){return this._meta.info}get types(){return this._types}getDataType(t){const e=this.types.get(t);if(e)return e;throw new Error(`Data type "${t}" does not exists`)}getComplexDataType(t){const e=this.getDataType(t);if(e&&e instanceof lr)return e;throw new Error(`Data type "${t}" is not a ComplexType`)}getSimpleDataType(t){const e=this.getDataType(t);if(e&&e instanceof ur)return e;throw new Error(`Data type "${t}" is not a SimpleType`)}getUnionDataType(t){const e=this.getDataType(t);if(e&&e instanceof cr)return e;throw new Error(`Data type "${t}" is not a UnionType`)}get resources(){return this._resources}get servers(){return this._meta.servers}getResource(t){const e=this.resources.get(t);if(!e)throw new Error(`Resource "${t}" does not exists`);return e}getCollectionResource(t){const e=this.getResource(t);if(!(e instanceof _r))throw new Error(`"${t}" is not a CollectionResource`);return e}getSingletonResource(t){const e=this.getResource(t);if(!(e instanceof mr))throw new Error(`"${t}" is not a SingletonResource`);return e}getMetadata(t){const e={version:Ae.Version,info:Ze(this.info)};return this._ownTypes.size&&(e.types=Array.from(this._ownTypes.values()).sort(((t,e)=>rr(t.name,e.name))).reduce(((e,r)=>(e[r.name]=r.getSchema(t),e)),{})),this.resources.size&&(e.resources=Array.from(this._resources.values()).sort(((t,e)=>rr(t.name,e.name))).reduce(((e,r)=>(e[r.name]=r.getSchema(t),e)),{})),e}_addDataType(t,e,r){let n=this._types.get(t);if(n)return n;if(Ae.isComplexType(e))n=new lr(this,t,e);else if(Ae.isSimpleType(e))n=new ur(this,t,e);else{if(!Ae.isUnionTypee(e))throw new TypeError("Invalid data type schema");n=new cr(this,t,{...e,types:[]})}return this._types.set(t,n),r&&this._ownTypes.set(t,n),n}_addResource(t,e){if(!Ae.isCollectionResource(e)&&!Ae.isSingletonResource(e))throw new TypeError(`Unknown resource kind (${e.kind})`);{const r=this.getDataType(e.type);if(!r)throw new TypeError(`Datatype "${e.type}" declared in CollectionResource (${t}) does not exists`);if(!(r instanceof lr))throw new TypeError(`${e.type} is not an ComplexType`);Ae.isCollectionResource(e)?this.resources.set(t,new _r(this,t,r,e)):this.resources.set(t,new mr(this,t,r,e))}}_initTypes(){for(const t of this._types.values())t instanceof lr&&t.init()}static async create(t){const e=new er(t);if(t.types)if(Array.isArray(t.types))for(const r of t.types)await e.addDataTypeClass(r);else for(const[r,n]of Object.entries(t.types))await e.addDataTypeSchema(r,n);if(t.resources)if(Array.isArray(t.resources))for(const r of t.resources)await e.addResourceInstance(r);else for(const[r,n]of Object.entries(t.resources))await e.addResourceSchema(r,n);const r=e.buildSchema();return new vr(r)}}Symbol.for("opra.optional-lib.sqb-connect"),Symbol.for("opra.optional-lib.sqb-connect");var Tr=g(5178);function br(t,e){if(!t)return"";for(;e&&t.startsWith("/");)t=t.substring(1);for(;t.endsWith("/");)t=t.substring(0,t.length-1);return t}const Sr=/^([^/?#:@]+)(?:@([^/?#:]*))?(?:::(.*))?$/;function Er(e){const r=Sr.exec(e);if(!r)throw Object.assign(new TypeError("Invalid URL path"),{code:"ERR_INVALID_URL_PATH",input:e});const n=decodeURIComponent(r[1]);let i;if(r[2]){const n=decodeURIComponent(r[2]||""),o=(0,t.splitString)(n,{delimiters:";",quotes:!0,escape:!1});for(const r of o){const n=(0,t.splitString)(r,{delimiters:"=",quotes:!0,escape:!1});if(o.length>1&&n.length<2||i&&n.length>=2&&"object"!=typeof i||n.length<2&&"object"==typeof i)throw Object.assign(new TypeError("Invalid URL path. name:value pair required for multiple key format"),{pathComponent:e,code:"ERR_INVALID_URL_PATH"});n.length>=2?(i=i||{},i[n.shift()||""]=n.join("=")):i=n[0]}}return r[3]?{resource:n,key:i,typeCast:r[3]}:{resource:n,key:i}}function xr(t,e,r){if(null==t)return"";let n="";if(""!==e&&null!=e)if(Xe(e)){const t=[];for(const r of Object.keys(e))t.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));n=t.join(";")}else n=encodeURIComponent(""+e);return r&&(r=encodeURIComponent(r)),encodeURIComponent(t).replace(/%24/,"$")+(n?"@"+n:"")+(r?"::"+r:"")}const Or=Symbol.for("nodejs.util.inspect.custom");class Nr{constructor(t){this.resource=t.resource,this.key=t.key,this.typeCast=t.typeCast}toString(){const t=xr(this.resource,this.key,this.typeCast);return t&&Object.setPrototypeOf(t,Nr.prototype),t}[Or](){const t={resource:this.resource};return null!=this.key&&(t.key=this.key),null!=this.typeCast&&(t.typeCast=this.typeCast),t}}const Ar=Symbol.for("nodejs.util.inspect.custom");class wr extends Tr.EventEmitter{constructor(...t){super(),this._entries=[];for(const e of t)he(e)?this._parse(e.pathname):e instanceof wr?this._entries.push(...e._entries):this.add(e)}get size(){return this._entries.length}add(t,e,r){this._add(t,e,r),this.emit("change")}clear(){this._entries=[],this.emit("change")}get(t){return this._entries[t]}join(e){const r=(0,t.tokenize)(br(e,!0),{delimiters:"/",quotes:!0,brackets:!0});for(const t of r){const e=Er(t);this._add(e)}return this.emit("change"),this}entries(){let t=-1;const e=[...this._entries];return{[Symbol.iterator](){return this},next:()=>(t++,{done:t>=e.length,value:[e[t],t]})}}values(){let t=-1;const e=[...this._entries];return{[Symbol.iterator](){return this},next:()=>(t++,{done:t>=e.length,value:e[t]})}}forEach(t){for(const e of this._entries)t.call(this,e.resource,e.key,this)}getResource(t){const e=this._entries[t];return null==e?void 0:e.resource}getKey(t){const e=this._entries[t];return null==e?void 0:e.key}toString(){return this._entries.map((t=>xr(t.resource,t.key,t.typeCast))).join("/")}[Symbol.iterator](){return this.entries()}[Ar](){return this._entries}_add(t,e,r){t instanceof Nr?this._entries.push(t):"object"==typeof t?this._entries.push(new Nr(t)):this._entries.push(new Nr({resource:t,key:e,typeCast:r}))}_parse(e){if(!e)return;const r=(0,t.tokenize)(e,{delimiters:"/",quotes:!0,brackets:!0});for(const t of r){if(!t)continue;const e=Er(t);this._add(e)}this.emit("change")}}class Rr{}const Cr=["true","t","yes","y","1"],Pr=["false","f","no","n","0"],Ir=/^(\d{4})(?:-?(0[1-9]|1[012])(?:-?([123]0|[012][1-9]|31))?)?(?:[T ]?([01][0-9]|2[0-3]):?([0-5][0-9]):?([0-5][0-9])?(?:\.(\d+))?(?:(Z)|(?:([+-])([01]?[0-9]|2[0-3]):?([0-5][0-9])?))?)?$/;function kr(t,e,r){if(""===t||null==t)return"";const n=t.match(Ir);if(!n)throw new TypeError(`"${t}" is not a valid date.`);let i=n[1]+"-"+(n[2]||"01")+"-"+(n[3]||"01");return e&&(i+="T"+(n[4]||"00")+":"+(n[5]||"00")+":"+(n[6]||"00")+(n[7]?"."+n[7]:""),r&&(i+=n[8]?"Z":n[9]?n[9]+(n[10]||"00")+":"+(n[11]||"00"):"")),i}class Lr extends Rr{constructor(t){super(),this.max=t?.max,this.min=t?.min}parse(t){const e="number"==typeof t?t:parseFloat(t);if(isNaN(e))throw new TypeError(`"${t}" is not a valid number`);if(null!=this.min&&e<this.min)throw new TypeError(`Value must be ${this.min} or greater.`);if(null!=this.max&&e>this.max)throw new TypeError(`Value must be ${this.max} or less.`);return e}stringify(t){return"number"==typeof t?""+t:""}}class Dr extends Lr{constructor(t){super(t),this.enum=t?.enum}parse(t){const e=super.parse(t);if(!Number.isInteger(e))throw new TypeError(`"${t}" is not a valid integer`);if(this.enum&&!this.enum.includes(e))throw new TypeError(`"${t}" is not one of allowed enum values (${this.enum}).`);return e}}const jr={integer:new Dr,number:new Lr,string:new class extends Rr{constructor(t){super(),this.maxLength=t?.maxLength,this.minLength=t?.minLength,this.enum=t?.enum}parse(t){if(null!=this.minLength&&t.length<this.minLength)throw new TypeError(`Value must be at least ${this.minLength} character${this.minLength>1?"s":""} long.`);if(null!=this.maxLength&&t.length>this.maxLength)throw new TypeError(`Value can be up to ${this.maxLength} character${this.maxLength>1?"s":""} long.`);if(this.enum&&!this.enum.includes(t))throw new TypeError(`"${t}" is not one of allowed enum values (${this.enum}).`);return t}stringify(t){return null==t?"":""+t}},boolean:new class extends Rr{parse(t){if(""===t)return!0;if("boolean"==typeof t)return t;if(Cr.includes(t.toLowerCase()))return!0;if(Pr.includes(t.toLowerCase()))return!1;throw new TypeError(`"${t}" is not a valid boolean`)}stringify(t){return"boolean"==typeof t?t?"true":"false":""}},date:new class extends Rr{constructor(t){super(),this.max=t?.max?kr(t.max):void 0,this.min=t?.min?kr(t.min):void 0,this.time=t?.time??!0,this.timeZone=t?.timeZone??!0}parse(t){const e=kr(t,this.time,this.timeZone);if(null!=this.min&&e<this.min)throw new TypeError(`Value must be ${this.min} or greater.`);if(null!=this.max&&e>this.max)throw new TypeError(`Value must be ${this.max} or less.`);return e}stringify(t){return kr(t,this.time,this.timeZone)}},filter:new class extends Rr{parse(t){return t instanceof E?t:function(t,e){const r=Z.CharStreams.fromString(t),n=new it(r),i=new Z.CommonTokenStream(n),o=new dt(i);o.buildParseTree=!0;const s=[],a=new ne(s);n.removeErrorListeners(),n.addErrorListener(a),o.removeErrorListeners(),o.addErrorListener(a);const l=o.root(),u=(e=e||new se).visit(l);if(s.length){const t=[];for(const e of s)t.push(e.message+" at (line: "+e.line+" column: "+e.charPositionInLine+")");const e=new D(t.join("\n"));throw e.errors=s,e}return u}(t)}stringify(t){return t?""+t:""}}},Mr=Symbol.for("nodejs.util.inspect.custom");class Fr extends Tr.EventEmitter{constructor(t){super(),this._params=new Ce,this._entries=new Ce,this._size=0,this.defineParam("$filter",{format:"filter"}),this.defineParam("$limit",{format:new Dr({min:0})}),this.defineParam("$skip",{format:new Dr({min:0})}),this.defineParam("$pick",{format:"string",array:"strict"}),this.defineParam("$omit",{format:"string",array:"strict"}),this.defineParam("$include",{format:"string",array:"strict"}),this.defineParam("$sort",{format:"string",array:"strict"}),this.defineParam("$distinct",{format:"boolean"}),this.defineParam("$count",{format:"boolean"}),t&&("string"==typeof t?this.parse(t):this.addAll(t))}get size(){return this._size}addAll(t){let e=!1;if("function"==typeof t.forEach)t.forEach(((t,r)=>{e=this._add(r,t)||e}));else{if("object"!=typeof t)throw new TypeError("Invalid argument");Object.entries(((t,r)=>{e=this._add(t,r)||e}))}e&&this.emit("change")}append(t,e){this._add(t,e)&&this.emit("change")}clear(){this._entries.clear(),this._size=0,this.emit("change")}defineParam(t,e){if(!t)throw new Error("Parameter name required");const r={...e,name:t,format:e?.format||"string"};if("string"==typeof r.format&&!jr[r.format])throw new Error(`Unknown data format "${r.format}"`);return r.format=r.format||"string",this._params.set(t,r),this}delete(t){this._delete(t)&&this.emit("change")}entries(){const t=[];return this.forEach(((e,r)=>{t.push([r,e])})),t.values()}forEach(t){for(const[e,r]of this._entries.entries())for(let n=0;n<r.length;n++)t(r[n],e,this)}get(t,e){const r=this._entries.get(t),n=r&&r[e||0];return null==n?null:n}getAll(t){const e=this._entries.get(t);return e?e.slice(0):[]}has(t){return this._entries.has(t)}keys(){return this._entries.keys()}set(t,e){this._delete(t),this._add(t,e),this.emit("change")}sort(t){this._entries.sort(t),this.emit("change")}values(){const t=[];return this.forEach((e=>t.push(e))),t.values()}toString(){let t="";return this.forEach(((e,r)=>{const n=this._params.get(r),i=n?"string"==typeof n.format?jr[n.format]:n.format:void 0,o=t=>encodeURIComponent(i?i.stringify(t,r):null==t?"":""+t),s=Array.isArray(e)?e.map(o).join(n?.arrayDelimiter||","):o(e);s&&(t.length>0&&(t+="&"),t+=r+"="+s)})),t}parse(e){if(this._entries.clear(),this._size=0,e&&e.startsWith("?")&&(e=e.substring(1)),!e)return;const r=(0,t.tokenize)(e,{delimiters:"&",quotes:!0,brackets:!0});for(const e of r){if(!e)continue;const r=(0,t.tokenize)(e,{delimiters:"=",quotes:!0,brackets:!0}),n=decodeURIComponent(r.next()||""),i=r.join("="),o=this._params.get(n);if(o?.array){const e=(0,t.splitString)(i,{delimiters:o?.arrayDelimiter||",",brackets:!0,quotes:!0}).map((t=>decodeURIComponent(t)));this._add(n,e)}else this._add(n,decodeURIComponent(i))}this.emit("change")}toURLSearchParams(){const t=new URLSearchParams;return this.forEach(((e,r)=>{const n=this._params.get(r),i=n?"string"==typeof n.format?jr[n.format]:n.format:void 0,o=t=>i?i.stringify(t,r):null==t?"":""+t,s=Array.isArray(e)?e.map(o).join(n?.arrayDelimiter||","):o(e);t.append(r,s)})),t}[Symbol.iterator](){return this.entries()}get[Symbol.toStringTag](){return"URLSearchParams"}[Mr](){return this._entries}_delete(t){const e=this._entries.get(t);return!!e&&(this._size-=e.length,this._entries.delete(t),!0)}_add(t,e){const r=this._params.get(t),n=r?"string"==typeof r.format?jr[r.format]:r.format:void 0,i=e=>n?n.parse(e,t):e;let o=Array.isArray(e)?e.map(i):i(e);if(r&&("strict"===r.array?o=Array.isArray(o)?o:[o]:r.array&&(o=Array.isArray(o)&&1===o.length?o[0]:o),Array.isArray(o))){if(r.minArrayItems&&o.length<r.minArrayItems)throw new Error(`"${t}" parameter requires at least ${r.minArrayItems} values`);if(r.maxArrayItems&&o.length>r.maxArrayItems)throw new Error(`"${t}" parameter accepts up to ${r.maxArrayItems} values`)}let s=this._entries.get(t);return s||(s=[],this._entries.set(t,s)),s.push(o),this._size++,!0}}Symbol.for("nodejs.util.inspect.custom"),Symbol.for("opra.url.context"),Symbol.for("opra.url.path"),Symbol.for("opra.url.searchparams"),g(2088),g(3946),g(3368).Buffer.from("\r\n"),Symbol("kHeaders"),Symbol("kHeadersCount"),Symbol("kTrailers"),Symbol("kTrailersCount");class Ur extends Error{constructor(t,e){super(t.message),this.cause=e,this.issues=t.issues||[],this.status=t.status,e&&(this.cause=e,e.stack&&(this.stack=e.stack))}}const zr=/^application\/([\w-]+\+)?\bjson\b/i,Br=/^text\/.*$/i,Hr=/^multipart\/\bform-data\b/i,qr=(t=>{var e={};return g.d(e,t),e})({Observable:()=>c.Observable});class $r extends qr.Observable{constructor(t,e={}){super((t=>{"response"!==e.observe?this.resolve().then((e=>{t.next(e),t.complete()})).catch((e=>t.error(e))):this.fetch().then((e=>{t.next(e),t.complete()})).catch((e=>t.error(e)))})),this._handler=t,this.options=e,this.contentId=(0,le.uid)(6),this.options=e}header(t,e){return this._headers=this._headers||{},this._headers[t]=e,this}async fetch(){const t=this._promise||(this._promise=new Promise(((t,e)=>{setTimeout((()=>{this._execute().then(t).catch(e)}),0)})));return await t}async resolve(){return(await this.fetch()).data}with(t){return t(this),this}binding(){return{}}async _execute(){const t=this.prepare();return await this._handler(t)}}function Vr(t,...e){let r;const n=[t,...e];let i;for(let t=n.length-1;t>=0;t--){const e=n[t];e?.headers&&(i=i||{},Object.assign(i,ge(e.headers)))}for(const e of n)e&&(Object.assign(t,e),e?.params&&(r=r||new Fr,e.params.forEach(((t,e)=>r?.append(e,t)))));return t.headers=i,t.params=r,t}class Wr extends $r{constructor(t,e,r,n={}){super(t,n),this._handler=t,this.resource=e,this.data=r,this.options=n}prepare(){const t=new Fr;return this.options.include&&t.set("$include",this.options.include),this.options.pick&&t.set("$pick",this.options.pick),this.options.omit&&t.set("$omit",this.options.omit),Vr({method:"POST",path:this.resource.name,params:t,body:this.data},this.options.http)}}class Yr extends $r{constructor(t,e,r={}){super(t,r),this._handler=t,this.resource=e,this.options=r}prepare(){const t=new Fr;return this.options.filter&&t.set("$filter",this.options.filter),Vr({method:"DELETE",path:this.resource.name,params:t},this.options.http)}}class Gr extends $r{constructor(t,e,r,n={}){super(t,n),this._handler=t,this.resource=e,this.keyValue=r,this.options=n}prepare(){if(null==this.keyValue||""===this.keyValue)throw new TypeError('Key value required to perform "delete" request');return Vr({method:"DELETE",path:new wr({resource:this.resource.name,key:this.keyValue}).toString()},this.options.http)}}class Kr extends $r{constructor(t,e,r,n={}){super(t,n),this._handler=t,this.resource=e,this.keyValue=r,this.options=n}prepare(){if(null==this.keyValue||""===this.keyValue)throw new TypeError('Key value required to perform "get" request');const t=new wr({resource:this.resource.name,key:this.keyValue}),e=new Fr;return this.options.include&&e.set("$include",this.options.include),this.options.pick&&e.set("$pick",this.options.pick),this.options.omit&&e.set("$omit",this.options.omit),Vr({method:"GET",path:t.toString(),params:e},this.options.http)}}class Xr extends $r{constructor(t,e,r={}){super(t,r),this._handler=t,this.resource=e,this.options=r}prepare(){const t=new Fr;return this.options.include&&t.set("$include",this.options.include),this.options.pick&&t.set("$pick",this.options.pick),this.options.omit&&t.set("$omit",this.options.omit),this.options.sort&&t.set("$sort",this.options.sort),this.options.filter&&t.set("$filter",this.options.filter),null!=this.options.limit&&t.set("$limit",this.options.limit),null!=this.options.skip&&t.set("$skip",this.options.skip),null!=this.options.count&&t.set("$count",this.options.count),null!=this.options.distinct&&t.set("$distinct",this.options.distinct),Vr({method:"GET",path:this.resource.name,params:t},this.options.http)}}class Qr extends $r{constructor(t,e,r,n={}){super(t,n),this._handler=t,this.resource=e,this.data=r,this.options=n}prepare(){const t=new Fr;return this.options.filter&&t.set("$filter",this.options.filter),Vr({method:"PATCH",path:this.resource.name,params:t,body:this.data},this.options.http)}}class Zr extends $r{constructor(t,e,r,n,i={}){super(t,i),this._handler=t,this.resource=e,this.keyValue=r,this.data=n,this.options=i}prepare(){if(null==this.keyValue||""===this.keyValue)throw new TypeError('Key value required to perform "get" request');const t=new wr({resource:this.resource.name,key:this.keyValue}),e=new Fr;return this.options.include&&e.set("$include",this.options.include),this.options.pick&&e.set("$pick",this.options.pick),this.options.omit&&e.set("$omit",this.options.omit),Vr({method:"PATCH",path:t.toString(),params:e,body:this.data},this.options.http)}}class Jr{constructor(t,e){this.resource=t,this._handler=e}create(t,e){return new Wr(this._handler,this.resource,t,e)}delete(t,e){return new Gr(this._handler,this.resource,t,e)}deleteMany(t){return new Yr(this._handler,this.resource,t)}get(t,e){return new Kr(this._handler,this.resource,t,e)}search(t){return new Xr(this._handler,this.resource,t)}update(t,e,r){return new Zr(this._handler,this.resource,t,e,r)}updateMany(t,e){return new Qr(this._handler,this.resource,t,e)}}class tn extends $r{constructor(t,e,r={}){super(t,r),this._handler=t,this.resource=e,this.options=r}prepare(){const t=new URLSearchParams;return this.options.include&&t.set("$include",""+this.options.include),this.options.pick&&t.set("$pick",""+this.options.pick),this.options.omit&&t.set("$omit",""+this.options.omit),Vr({method:"GET",path:this.resource.name,params:t},this.options.http)}}class en{constructor(t,e){this.resource=t,this._handler=e}get(t){return new tn(this._handler,this.resource,t)}}class rn extends $r{constructor(t,e,r={}){super(t,r),this._handler=t,this.requests=e,this.options=r,this._results=new WeakMap,this._listeners=new Set,e.forEach((t=>{Object.defineProperty(t,"_execute",{writable:!0,enumerable:!1,configurable:!0,value:()=>new Promise(((e,r)=>{const n=this._results.get(t);if(n)return n.error?r(n.error):e(n.response);const i=(t,n)=>{if(this._listeners.delete(i),t)return r(t);e(n)};this._listeners.add(i)}))})}))}prepare(){const t=this._buildBatchMultipart(this);return Vr({method:"POST",path:"/$batch",headers:{"content-type":"multipart/mixed;boundary="+t.boundary},body:t.stream()},this.options.http)}_buildBatchMultipart(t){const e=new Se;for(const r of t.requests){const t=r.prepare();if(r instanceof rn){const t=this._buildBatchMultipart(r);e.addBatch(t)}else e.addRequestPart({method:t.method,url:t.path,headers:t.headers,data:t.body})}return e}async _execute(){const t=this.prepare();return await this._handler(t)}}var nn=g(3368).Buffer;const on=new Map,sn=new Map;class an{constructor(t,e){if(this._serviceUrl=t,this._metadata=e?.document,!this._metadata){const t=on.get(this.serviceUrl.toLowerCase());t&&(this._metadata=t)}this.defaults=e?.defaults||{}}get serviceUrl(){return this._serviceUrl}get initialized(){return!!this._metadata}get metadata(){return this._assertMetadata(),this._metadata}async init(t){if(!t&&this.initialized)return;const e=this.serviceUrl.toLowerCase();let r=sn.get(e);if(!r)return r=this._resolveMetadata(),sn.set(e,r),r.catch((()=>{})).finally((()=>sn.delete(e)));await r}batch(t){return this._assertMetadata(),new rn((t=>this._handleRequest(t)),t)}collection(t){this._assertMetadata(),"function"==typeof t&&(t=t.name);const e=this.metadata.getCollectionResource(t);return new Jr(e,(t=>this._handleRequest(t)))}singleton(t){this._assertMetadata(),"function"==typeof t&&(t=t.name);const e=this.metadata.getSingletonResource(t);return new en(e,(t=>this._handleRequest(t)))}async _resolveMetadata(){const t=await this._handleRequest({method:"GET",path:"/$metadata",headers:{accept:"application/json"}});this._metadata=new vr(t.data)}async _handleRequest(t){Vr(t,this.defaults);let e=function(...t){const e=[];let r;for(let n=0,i=t.length;n<i;n++)r=br(t[n],n>0),r&&e.push(r);return e.join("/")}(this.serviceUrl,t.path);return t.params&&(e+="?"+t.params.toString()),t.body&&"object"==typeof t.body&&(ce(t.body)||function(t){return ue(t)&&!1!==t.readable&&"function"==typeof t.getReader&&"function"==typeof t.pipeThrough&&"function"==typeof t.pipeTo}(t.body)||nn.isBuffer(t.body)||(t.headers?.["content-type"]||(t.headers=t.headers||{},t.headers["content-type"]="application/json"),t.body=JSON.stringify(t.body))),this._fetch(e,t)}async _fetch(t,e){const r=await fetch(t,e);let n;if(r.body&&(zr.test(r.headers.get("Content-Type")||"")?(n=await r.json(),"string"==typeof n&&(n=JSON.parse(n))):n=Br.test(r.headers.get("Content-Type")||"")?await r.text():Hr.test(r.headers.get("Content-Type")||"")?await r.formData():await r.arrayBuffer()),r.status>=400&&r.status<600)throw new Ur({message:r.status+" "+r.statusText,status:r.status,issues:n?.errors});return{get headers(){return r.headers},get ok(){return r.ok},get redirected(){return r.redirected},get status(){return r.status},get statusText(){return r.statusText},get type(){return r.type},get url(){return r.url},get contentId(){return r.headers.get("Content-ID")},get data(){return n}}}_assertMetadata(){if(!this._metadata)throw new Error("You must call init() to before using the client instance")}static async create(t,e){const r=new this(t,e);return r._metadata||await r.init(),r}}})();var m=_.uy,v=_.XF,T=_.n7,b=_.pf,S=_.HK,E=_.b$,x=_.bf,O=_.CJ,N=_.db,A=_.i1,w=_.aW,R=_.Ds,C=_.Zu,P=_.hQ;export{m as BatchRequest,v as ClientError,T as CollectionCreateRequest,b as CollectionDeleteManyRequest,S as CollectionDeleteRequest,E as CollectionGetRequest,x as CollectionSearchRequest,O as CollectionUpdateManyRequest,N as CollectionUpdateRequest,A as HttpCollectionService,w as HttpRequest,R as HttpSingletonGetRequest,C as HttpSingletonService,P as OpraHttpClient};
|