prettier-plugin-solidity 2.3.0 → 2.3.1
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/dist/standalone.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var t,e,r,s,i,n={3121(t){var e;"undefined"!=typeof globalThis||"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,e=()=>{var t=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={};((e,r)=>{for(var s in r)t(e,s,{get:r[s],enumerable:!0})})(i,{ParserError:()=>Oe,default:()=>Fe,parse:()=>Pe,tokenize:()=>De,visit:()=>qe});var n={92:()=>{}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};(()=>{o.d(c,{dx:()=>W,q2:()=>At,FO:()=>Ee,xf:()=>ke,Gy:()=>Le,s4:()=>Nt,c7:()=>Oe,_7:()=>ce,tx:()=>_e,gp:()=>xe,cK:()=>Ct,zs:()=>ge,AV:()=>ke,Xp:()=>x,VS:()=>v,ul:()=>z,hW:()=>Mt,x1:()=>Xt,z5:()=>ee,oN:()=>de,TB:()=>pe,u1:()=>me,_b:()=>Pe,$F:()=>se,_T:()=>Fe,db:()=>ie,Zx:()=>te,_x:()=>Pt,r8:()=>q,JI:()=>K,TP:()=>N,WU:()=>t,Nj:()=>h,ZP:()=>Xe});class t{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}}function e(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!(t[r]===e[r]||t[r].equals&&t[r].equals(e[r])))return!1;return!0}t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1;const r=Math.round(Math.random()*Math.pow(2,32));function s(t){if(!t)return 0;const e=typeof t,s="string"===e?t:!("object"!==e||!t.toString)&&t.toString();if(!s)return 0;let i,n;const a=3&s.length,o=s.length-a;let c=r;const l=3432918353,h=461845907;let u=0;for(;u<o;)n=255&s.charCodeAt(u)|(255&s.charCodeAt(++u))<<8|(255&s.charCodeAt(++u))<<16|(255&s.charCodeAt(++u))<<24,++u,n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n,c=c<<13|c>>>19,i=5*(65535&c)+((5*(c>>>16)&65535)<<16)&4294967295,c=27492+(65535&i)+((58964+(i>>>16)&65535)<<16);switch(n=0,a){case 3:n^=(255&s.charCodeAt(u+2))<<16;case 2:n^=(255&s.charCodeAt(u+1))<<8;case 1:n^=255&s.charCodeAt(u),n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n}return c^=s.length,c^=c>>>16,c=2246822507*(65535&c)+((2246822507*(c>>>16)&65535)<<16)&4294967295,c^=c>>>13,c=3266489909*(65535&c)+((3266489909*(c>>>16)&65535)<<16)&4294967295,c^=c>>>16,c>>>0}class i{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=s(e);break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let r=this.hash^t;r=r<<13|r>>>19,r=5*r+3864292196,this.hash=r}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}static hashStuff(){const t=new i;return t.update.apply(t,arguments),t.finish()}}function n(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function a(t,e){return t?t.equals(e):t===e}function l(t){return null===t?"null":t}function h(t){return Array.isArray(t)?"["+t.map(l).join(", ")+"]":"null"}const u="h-";class d{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||a}add(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e];return r.push(t),t}return this.data[e]=[t],t}has(t){return null!=this.get(t)}get(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e]}return null}values(){return Object.keys(this.data).filter(t=>t.startsWith(u)).flatMap(t=>this.data[t],this)}toString(){return h(this.values())}get length(){return Object.keys(this.data).filter(t=>t.startsWith(u)).map(t=>this.data[t].length,this).reduce((t,e)=>t+e,0)}}class p{hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===p.NONE)return e;if(null===e||e===p.NONE)return t;const r=new m(t,e);return 1===r.opnds.length?r.opnds[0]:r}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===p.NONE||e===p.NONE)return p.NONE;const r=new y(t,e);return 1===r.opnds.length?r.opnds[0]:r}}class m extends p{constructor(t,e){super();const r=new d;t instanceof m?t.opnds.map(function(t){r.add(t)}):r.add(t),e instanceof m?e.opnds.map(function(t){r.add(t)}):r.add(e);const s=f(r);if(s.length>0){let t=null;s.map(function(e){(null===t||e.precedence<t.precedence)&&(t=e)}),r.add(t)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof m&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(!this.opnds[r].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,null===a)return null;a!==p.NONE&&s.push(a)}if(!r)return this;if(0===s.length)return p.NONE;let i=null;return s.map(function(t){i=null===i?t:p.andContext(i,t)}),i}toString(){const t=this.opnds.map(t=>t.toString());return(t.length>3?t.slice(3):t).join("&&")}}class y extends p{constructor(t,e){super();const r=new d;t instanceof y?t.opnds.map(function(t){r.add(t)}):r.add(t),e instanceof y?e.opnds.map(function(t){r.add(t)}):r.add(e);const s=f(r);if(s.length>0){const t=s.sort(function(t,e){return t.compareTo(e)}),e=t[t.length-1];r.add(e)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof y&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(this.opnds[r].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,a===p.NONE)return p.NONE;null!==a&&s.push(a)}return r?(0===s.length||s.map(function(t){return t}),null):this}toString(){const t=this.opnds.map(t=>t.toString());return(t.length>3?t.slice(3):t).join("||")}}function f(t){const e=[];return t.values().map(function(t){t instanceof p.PrecedencePredicate&&e.push(t)}),e}function g(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const r={};return r.state=t.state||null,r.alt=void 0===t.alt?null:t.alt,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}}class w{constructor(t,e){this.checkContext(t,e),t=g(t),e=g(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:p.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new i;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==p.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class x{constructor(t,e){this.start=t,this.stop=e}clone(){return new x(this.start,this.stop)}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}}x.INVALID_INTERVAL=new x(-1,-2);class v{constructor(){this.intervals=null,this.readOnly=!1}first(e){return null===this.intervals||0===this.intervals.length?t.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new x(t,t+1))}addRange(t,e){this.addInterval(new x(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t.clone());else{for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t.stop<r.start)return void this.intervals.splice(e,0,t);if(t.stop===r.start)return void(this.intervals[e]=new x(t.start,r.stop));if(t.start<=r.stop)return this.intervals[e]=new x(Math.min(r.start,t.start),Math.max(r.stop,t.stop)),void this.reduce(e)}this.intervals.push(t.clone())}}addSet(t){return null!==t.intervals&&t.intervals.forEach(t=>this.addInterval(t),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],r=this.intervals[t+1];e.stop>=r.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=r.start&&(this.intervals[t]=new x(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new v;return r.addInterval(new x(t,e+1)),null!==this.intervals&&this.intervals.forEach(t=>r.removeRange(t)),r}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let r=0;r<this.intervals.length;r++){const r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new x(r.start,t.start);const s=new x(t.stop,r.stop);return void this.intervals.splice(e,0,s)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new x(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new x(t.stop,r.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t<r.start)return;if(t===r.start&&t===r.stop-1)return void this.intervals.splice(e,1);if(t===r.start)return void(this.intervals[e]=new x(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new x(r.start,r.stop-1));if(t<r.stop-1){const s=new x(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,s)}}}toString(t,e,r){return t=t||null,e=e||null,r=r||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):r?this.toCharString():this.toIndexString()}toCharString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(s.start)+"'"):e.push("'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]}toIndexString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push(s.start.toString()):e.push(s.start.toString()+".."+(s.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]}toTokenString(t,e){const r=[];for(let s=0;s<this.intervals.length;s++){const i=this.intervals[s];for(let s=i.start;s<i.stop;s++)r.push(this.elementName(t,e,s))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(e,r,s){return s===t.EOF?"<EOF>":s===t.EPSILON?"<EPSILON>":e[s]||r[s]}get length(){return this.intervals.map(t=>t.length).reduce((t,e)=>t+e)}}class b{constructor(){this.atn=null,this.stateNumber=b.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof b&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}}b.INVALID_TYPE=0,b.BASIC=1,b.RULE_START=2,b.BLOCK_START=3,b.PLUS_BLOCK_START=4,b.STAR_BLOCK_START=5,b.TOKEN_START=6,b.RULE_STOP=7,b.BLOCK_END=8,b.STAR_LOOP_BACK=9,b.STAR_LOOP_ENTRY=10,b.PLUS_LOOP_BACK=11,b.LOOP_END=12,b.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],b.INVALID_STATE_NUMBER=-1;class _ extends b{constructor(){return super(),this.stateType=b.RULE_STOP,this}}class E{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}E.EPSILON=1,E.RANGE=2,E.RULE=3,E.PREDICATE=4,E.ATOM=5,E.ACTION=6,E.SET=7,E.NOT_SET=8,E.WILDCARD=9,E.PRECEDENCE=10,E.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],E.serializationTypes={EpsilonTransition:E.EPSILON,RangeTransition:E.RANGE,RuleTransition:E.RULE,PredicateTransition:E.PREDICATE,AtomTransition:E.ATOM,ActionTransition:E.ACTION,SetTransition:E.SET,NotSetTransition:E.NOT_SET,WildcardTransition:E.WILDCARD,PrecedencePredicateTransition:E.PRECEDENCE};class T extends E{constructor(t,e,r,s){super(t),this.ruleIndex=e,this.precedence=r,this.followState=s,this.serializationType=E.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}}class S extends E{constructor(e,r){super(e),this.serializationType=E.SET,null!=r?this.label=r:(this.label=new v,this.label.addOne(t.INVALID_TYPE))}matches(t,e,r){return this.label.contains(t)}toString(){return this.label.toString()}}class k extends S{constructor(t,e){super(t,e),this.serializationType=E.NOT_SET}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}}class R extends E{constructor(t){super(t),this.serializationType=E.WILDCARD}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}}class A extends E{constructor(t){super(t)}}class C{}class L extends C{}class I extends L{}class K extends I{get ruleContext(){throw new Error("missing interface implementation")}}class N extends I{}class O extends N{}const D={toStringTree:function(t,e,r){e=e||null,null!==(r=r||null)&&(e=r.ruleNames);let s=D.getNodeText(t,e);s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const i=t.getChildCount();if(0===i)return s;let n="("+s+" ";i>0&&(s=D.toStringTree(t.getChild(0),e),n=n.concat(s));for(let r=1;r<i;r++)s=D.toStringTree(t.getChild(r),e),n=n.concat(" "+s);return n=n.concat(")"),n},getNodeText:function(e,r,s){if(r=r||null,null!==(s=s||null)&&(r=s.ruleNames),null!==r){if(e instanceof K){const t=e.ruleContext.getAltNumber();return 0!=t?r[e.ruleIndex]+":"+t:r[e.ruleIndex]}if(e instanceof O)return e.toString();if(e instanceof N&&null!==e.symbol)return e.symbol.text}const i=e.getPayload();return i instanceof t?i.text:e.getPayload().toString()},getChildren:function(t){const e=[];for(let r=0;r<t.getChildCount();r++)e.push(t.getChild(r));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return D.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return D.findAllNodes(t,e,!1)},findAllNodes:function(t,e,r){const s=[];return D._findAllNodes(t,e,r,s),s},_findAllNodes:function(t,e,r,s){r&&t instanceof N?t.symbol.type===e&&s.push(t):!r&&t instanceof K&&t.ruleIndex===e&&s.push(t);for(let i=0;i<t.getChildCount();i++)D._findAllNodes(t.getChild(i),e,r,s)},descendants:function(t){let e=[t];for(let r=0;r<t.getChildCount();r++)e=e.concat(D.descendants(t.getChild(r)));return e}},P=D;class q extends K{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return x.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map(function(t){return t.getText()}).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return P.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let r=this,s="[";for(;null!==r&&r!==e;){if(null===t)r.isEmpty()||(s+=r.invokingState);else{const e=r.ruleIndex;s+=e>=0&&e<t.length?t[e]:""+e}null===r.parentCtx||null===t&&r.parentCtx.isEmpty()||(s+=" "),r=r.parentCtx}return s+="]",s}}class M{constructor(t){this.cachedHashCode=t}isEmpty(){return this===M.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===M.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}M.EMPTY=null,M.EMPTY_RETURN_STATE=2147483647,M.globalNodeCount=1,M.id=M.globalNodeCount,M.trace_atn_sim=!1;class F extends M{constructor(t,e){const r=new i;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===M.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof F&&this.hashCode()===t.hashCode()&&e(this.returnStates,t.returnStates)&&e(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==M.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}}class U extends M{constructor(t,e){let r=0;const s=new i;null!==t?s.update(t,e):s.update(1),r=s.finish(),super(r),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof U&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===M.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===M.EMPTY_RETURN_STATE&&null===t?M.EMPTY:new U(t,e)}}class Y extends U{constructor(){super(null,M.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}M.EMPTY=new Y;const V="h-";class j{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||a}set(t,e){const r=V+this.hashFunction(t);if(r in this.data){const s=this.data[r];for(let r=0;r<s.length;r++){const i=s[r];if(this.equalsFunction(t,i.key)){const t=i.value;return i.value=e,t}}return s.push({key:t,value:e}),e}return this.data[r]=[{key:t,value:e}],e}containsKey(t){const e=V+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return!0}}return!1}get(t){const e=V+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return s.value}}return null}entries(){return Object.keys(this.data).filter(t=>t.startsWith(V)).flatMap(t=>this.data[t],this)}getKeys(){return this.entries().map(t=>t.key)}getValues(){return this.entries().map(t=>t.value)}toString(){return"["+this.entries().map(t=>"{"+t.key+":"+t.value+"}").join(", ")+"]"}get length(){return Object.keys(this.data).filter(t=>t.startsWith(V)).map(t=>this.data[t].length,this).reduce((t,e)=>t+e,0)}}function B(t,e){if(null==e&&(e=q.EMPTY),null===e.parentCtx||e===q.EMPTY)return M.EMPTY;const r=B(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return U.create(r,s.followState.stateNumber)}function H(t,e,r){if(t.isEmpty())return t;let s=r.get(t)||null;if(null!==s)return s;if(s=e.get(t),null!==s)return r.set(t,s),s;let i=!1,n=[];for(let s=0;s<n.length;s++){const a=H(t.getParent(s),e,r);if(i||a!==t.getParent(s)){if(!i){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);i=!0}n[s]=a}}if(!i)return e.add(t),r.set(t,t),t;let a=null;return a=0===n.length?M.EMPTY:1===n.length?U.create(n[0],t.getReturnState(0)):new F(n,t.returnStates),e.add(a),r.set(a,a),r.set(t,a),a}function $(t,e,r,s){if(t===e)return t;if(t instanceof U&&e instanceof U)return function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return r;if(r=s.get(e,t),null!==r)return r}const i=function(t,e,r){if(r){if(t===M.EMPTY)return M.EMPTY;if(e===M.EMPTY)return M.EMPTY}else{if(t===M.EMPTY&&e===M.EMPTY)return M.EMPTY;if(t===M.EMPTY){const t=[e.returnState,M.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new F(r,t)}if(e===M.EMPTY){const e=[t.returnState,M.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new F(r,e)}}return null}(t,e,r);if(null!==i)return null!==s&&s.set(t,e,i),i;if(t.returnState===e.returnState){const i=$(t.parentCtx,e.parentCtx,r,s);if(i===t.parentCtx)return t;if(i===e.parentCtx)return e;const n=U.create(i,t.returnState);return null!==s&&s.set(t,e,n),n}{let r=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(r=t.parentCtx),null!==r){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const n=new F([r,r],i);return null!==s&&s.set(t,e,n),n}const i=[t.returnState,e.returnState];let n=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,n=[e.parentCtx,t.parentCtx]);const a=new F(n,i);return null!==s&&s.set(t,e,a),a}}(t,e,r,s);if(r){if(t instanceof Y)return t;if(e instanceof Y)return e}return t instanceof U&&(t=new F([t.getParent()],[t.returnState])),e instanceof U&&(e=new F([e.getParent()],[e.returnState])),function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r;if(r=s.get(e,t),null!==r)return M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r}let i=0,n=0,a=0,o=new Array(t.returnStates.length+e.returnStates.length).fill(0),c=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&n<e.returnStates.length;){const l=t.parents[i],h=e.parents[n];if(t.returnStates[i]===e.returnStates[n]){const e=t.returnStates[i];e===M.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[a]=l,o[a]=e):(c[a]=$(l,h,r,s),o[a]=e),i+=1,n+=1}else t.returnStates[i]<e.returnStates[n]?(c[a]=l,o[a]=t.returnStates[i],i+=1):(c[a]=h,o[a]=e.returnStates[n],n+=1);a+=1}if(i<t.returnStates.length)for(let e=i;e<t.returnStates.length;e++)c[a]=t.parents[e],o[a]=t.returnStates[e],a+=1;else for(let t=n;t<e.returnStates.length;t++)c[a]=e.parents[t],o[a]=e.returnStates[t],a+=1;if(a<c.length){if(1===a){const r=U.create(c[0],o[0]);return null!==s&&s.set(t,e,r),r}c=c.slice(0,a),o=o.slice(0,a)}const l=new F(c,o);return l.equals(t)?(null!==s&&s.set(t,e,t),M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==s&&s.set(t,e,e),M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new j;for(let r=0;r<t.length;r++){const s=t[r];e.containsKey(s)||e.set(s,s)}for(let r=0;r<t.length;r++)t[r]=e.get(t[r])}(c),null!==s&&s.set(t,e,l),M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> "+l),l)}(t,e,r,s)}class G{constructor(){this.data=[]}add(t){this.data[t]=!0}or(t){Object.keys(t.data).map(t=>this.add(t),this)}remove(t){delete this.data[t]}has(t){return!0===this.data[t]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return i.hashStuff(this.values())}equals(t){return t instanceof G&&e(this.data,t.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class z{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,r=[];for(let s=0;s<e;s++){r[s]=new v;const e=new d,i=!1;this._LOOK(t.transition(s).target,null,M.EMPTY,r[s],e,new G,i,!1),(0===r[s].length||r[s].contains(z.HIT_PRED))&&(r[s]=null)}return r}LOOK(t,e,r){const s=new v,i=null!==(r=r||null)?B(t.atn,r):null;return this._LOOK(t,e,i,s,new d,new G,!0,!0),s}_LOOK(e,r,s,i,n,a,o,c){const l=new w({state:e,alt:0,context:s},null);if(!n.has(l)){if(n.add(l),e===r){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF)}if(e instanceof _){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF);if(s!==M.EMPTY){const t=a.has(e.ruleIndex);try{a.remove(e.ruleIndex);for(let t=0;t<s.length;t++){const e=this.atn.states[s.getReturnState(t)];this._LOOK(e,r,s.getParent(t),i,n,a,o,c)}}finally{t&&a.add(e.ruleIndex)}return}}for(let l=0;l<e.transitions.length;l++){const h=e.transitions[l];if(h.constructor===T){if(a.has(h.target.ruleIndex))continue;const t=U.create(s,h.followState.stateNumber);try{a.add(h.target.ruleIndex),this._LOOK(h.target,r,t,i,n,a,o,c)}finally{a.remove(h.target.ruleIndex)}}else if(h instanceof A)o?this._LOOK(h.target,r,s,i,n,a,o,c):i.addOne(z.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,s,i,n,a,o,c);else if(h.constructor===R)i.addRange(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let e=h.label;null!==e&&(h instanceof k&&(e=e.complement(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(e))}}}}}z.HIT_PRED=t.INVALID_TYPE;class W{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new z(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(e,r){if(e<0||e>=this.states.length)throw"Invalid state number.";const s=this.states[e];let i=this.nextTokens(s);if(!i.contains(t.EPSILON))return i;const n=new v;for(n.addSet(i),n.removeOne(t.EPSILON);null!==r&&r.invokingState>=0&&i.contains(t.EPSILON);){const e=this.states[r.invokingState].transitions[0];i=this.nextTokens(e.followState),n.addSet(i),n.removeOne(t.EPSILON),r=r.parentCtx}return i.contains(t.EPSILON)&&n.addOne(t.EOF),n}}W.INVALID_ALT_NUMBER=0;class X extends b{constructor(){super(),this.stateType=b.BASIC}}class Q extends b{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class J extends Q{constructor(){return super(),this.endState=null,this}}class Z extends b{constructor(){return super(),this.stateType=b.BLOCK_END,this.startState=null,this}}class tt extends b{constructor(){return super(),this.stateType=b.LOOP_END,this.loopBackState=null,this}}class et extends b{constructor(){return super(),this.stateType=b.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class rt extends Q{constructor(){return super(),this.stateType=b.TOKEN_START,this}}class st extends Q{constructor(){return super(),this.stateType=b.PLUS_LOOP_BACK,this}}class it extends b{constructor(){return super(),this.stateType=b.STAR_LOOP_BACK,this}}class nt extends Q{constructor(){return super(),this.stateType=b.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class at extends J{constructor(){return super(),this.stateType=b.PLUS_BLOCK_START,this.loopBackState=null,this}}class ot extends J{constructor(){return super(),this.stateType=b.STAR_BLOCK_START,this}}class ct extends J{constructor(){return super(),this.stateType=b.BLOCK_START,this}}class lt extends E{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=E.ATOM}makeLabel(){const t=new v;return t.addOne(this.label_),t}matches(t,e,r){return this.label_===t}toString(){return this.label_}}class ht extends E{constructor(t,e,r){super(t),this.serializationType=E.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel()}makeLabel(){const t=new v;return t.addRange(this.start,this.stop),t}matches(t,e,r){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class ut extends E{constructor(t,e,r,s){super(t),this.serializationType=E.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this.isEpsilon=!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class dt extends E{constructor(t,e){super(t),this.serializationType=E.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,r){return!1}toString(){return"epsilon"}}class pt extends p{constructor(t,e,r){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==r&&r}evaluate(t,e){const r=this.isCtxDependent?e:null;return t.sempred(r,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof pt&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}p.NONE=new pt;class mt extends A{constructor(t,e,r,s){super(t),this.serializationType=E.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=s,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new pt(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class yt extends p{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?p.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof yt&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}p.PrecedencePredicate=yt;class ft extends A{constructor(t,e){super(t),this.serializationType=E.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new yt(this.precedence)}toString(){return this.precedence+" >= _p"}}class gt{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}gt.defaultOptions=new gt,gt.defaultOptions.readOnly=!0;class wt{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class xt extends wt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}xt.INSTANCE=new xt;class vt extends wt{constructor(t){super(0),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof vt&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}}class bt extends wt{constructor(t,e){super(1),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof bt&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}}class _t extends wt{constructor(){super(3)}execute(t){t.more()}toString(){return"more"}}_t.INSTANCE=new _t;class Et extends wt{constructor(t){super(7),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof Et&&this.type===t.type}toString(){return"type("+this.type+")"}}class Tt extends wt{constructor(t){super(5),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof Tt&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}}class St extends wt{constructor(){super(4)}execute(t){t.popMode()}toString(){return"popMode"}}St.INSTANCE=new St;class kt extends wt{constructor(t){super(2),this.mode=t}execute(t){t.mode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof kt&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}}function Rt(t,e){const r=[];return r[t-1]=e,r.map(function(t){return e})}class At{constructor(t){null==t&&(t=gt.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}deserialize(t){const e=this.reset(t);this.checkVersion(e),e&&this.skipUUID();const r=this.readATN();this.readStates(r,e),this.readRules(r,e),this.readModes(r);const s=[];return this.readSets(r,s,this.readInt.bind(this)),e&&this.readSets(r,s,this.readInt32.bind(this)),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r,e),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&1===r.grammarType&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}reset(t){if(3===(t.charCodeAt?t.charCodeAt(0):t[0])){const e=function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534},r=t.split("").map(e);return r[0]=t.charCodeAt(0),this.data=r,this.pos=0,!0}return this.data=t,this.pos=0,!1}skipUUID(){let t=0;for(;t++<8;)this.readInt()}checkVersion(t){const e=this.readInt();if(!t&&4!==e)throw"Could not deserialize ATN with version "+e+" (expected 4)."}readATN(){const t=this.readInt(),e=this.readInt();return new W(t,e)}readStates(t,e){let r,s,i;const n=[],a=[],o=this.readInt();for(let r=0;r<o;r++){const r=this.readInt();if(r===b.INVALID_TYPE){t.addState(null);continue}let s=this.readInt();e&&65535===s&&(s=-1);const i=this.stateFactory(r,s);if(r===b.LOOP_END){const t=this.readInt();n.push([i,t])}else if(i instanceof J){const t=this.readInt();a.push([i,t])}t.addState(i)}for(r=0;r<n.length;r++)s=n[r],s[0].loopBackState=t.states[s[1]];for(r=0;r<a.length;r++)s=a[r],s[0].endState=t.states[s[1]];let c=this.readInt();for(r=0;r<c;r++)i=this.readInt(),t.states[i].nonGreedy=!0;let l=this.readInt();for(r=0;r<l;r++)i=this.readInt(),t.states[i].isPrecedenceRule=!0}readRules(e,r){let s;const i=this.readInt();for(0===e.grammarType&&(e.ruleToTokenType=Rt(i,0)),e.ruleToStartState=Rt(i,0),s=0;s<i;s++){const i=this.readInt();if(e.ruleToStartState[s]=e.states[i],0===e.grammarType){let i=this.readInt();r&&65535===i&&(i=t.EOF),e.ruleToTokenType[s]=i}}for(e.ruleToStopState=Rt(i,0),s=0;s<e.states.length;s++){const t=e.states[s];t instanceof _&&(e.ruleToStopState[t.ruleIndex]=t,e.ruleToStartState[t.ruleIndex].stopState=t)}}readModes(t){const e=this.readInt();for(let r=0;r<e;r++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,r){const s=this.readInt();for(let t=0;t<s;t++){const t=new v;e.push(t);const s=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<s;e++){const e=r(),s=r();t.addRange(e,s)}}}readEdges(t,e){let r,s,i,n,a;const o=this.readInt();for(r=0;r<o;r++){const r=this.readInt(),s=this.readInt(),i=this.readInt(),a=this.readInt(),o=this.readInt(),c=this.readInt();n=this.edgeFactory(t,i,r,s,a,o,c,e),t.states[r].addTransition(n)}for(r=0;r<t.states.length;r++)for(i=t.states[r],s=0;s<i.transitions.length;s++){const e=i.transitions[s];if(!(e instanceof T))continue;let r=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(r=e.target.ruleIndex),n=new dt(e.followState,r),t.ruleToStopState[e.target.ruleIndex].addTransition(n)}for(r=0;r<t.states.length;r++){if(i=t.states[r],i instanceof J){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof st)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof at&&(a.loopBackState=i);else if(i instanceof it)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof nt&&(a.loopBackState=i)}}readDecisions(t){const e=this.readInt();for(let r=0;r<e;r++){const e=this.readInt(),s=t.states[e];t.decisionToState.push(s),s.decision=r}}readLexerActions(t,e){if(0===t.grammarType){const r=this.readInt();t.lexerActions=Rt(r,null);for(let s=0;s<r;s++){const r=this.readInt();let i=this.readInt();e&&65535===i&&(i=-1);let n=this.readInt();e&&65535===n&&(n=-1),t.lexerActions[s]=this.lexerActionFactory(r,i,n)}}}generateRuleBypassTransitions(t){let e;const r=t.ruleToStartState.length;for(e=0;e<r;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<r;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let r,s;const i=new ct;i.ruleIndex=e,t.addState(i);const n=new Z;n.ruleIndex=e,t.addState(n),i.endState=n,t.defineDecisionState(i),n.startState=i;let a=null,o=null;if(t.ruleToStartState[e].isPrecedenceRule){for(o=null,r=0;r<t.states.length;r++)if(s=t.states[r],this.stateIsEndStateFor(s,e)){o=s,a=s.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else o=t.ruleToStopState[e];for(r=0;r<t.states.length;r++){s=t.states[r];for(let t=0;t<s.transitions.length;t++){const e=s.transitions[t];e!==a&&e.target===o&&(e.target=n)}}const c=t.ruleToStartState[e],l=c.transitions.length;for(;l>0;)i.addTransition(c.transitions[l-1]),c.transitions=c.transitions.slice(-1);t.ruleToStartState[e].addTransition(new dt(i)),n.addTransition(new dt(o));const h=new X;t.addState(h),h.addTransition(new lt(n,t.ruleToTokenType[e])),i.addTransition(new dt(h))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof nt))return null;const r=t.transitions[t.transitions.length-1].target;return r instanceof tt&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof _?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const r=t.states[e];if(r instanceof nt&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){const t=r.transitions[r.transitions.length-1].target;t instanceof tt&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof _&&(r.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const r=t.states[e];if(null!==r)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof at)this.checkCondition(null!==r.loopBackState);else if(r instanceof nt)if(this.checkCondition(null!==r.loopBackState),this.checkCondition(2===r.transitions.length),r.transitions[0].target instanceof ot)this.checkCondition(r.transitions[1].target instanceof tt),this.checkCondition(!r.nonGreedy);else{if(!(r.transitions[0].target instanceof tt))throw"IllegalState";this.checkCondition(r.transitions[1].target instanceof ot),this.checkCondition(r.nonGreedy)}else r instanceof it?(this.checkCondition(1===r.transitions.length),this.checkCondition(r.transitions[0].target instanceof nt)):r instanceof tt?this.checkCondition(null!==r.loopBackState):r instanceof et?this.checkCondition(null!==r.stopState):r instanceof J?this.checkCondition(null!==r.endState):r instanceof Z?this.checkCondition(null!==r.startState):r instanceof Q?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof _)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(e,r,s,i,n,a,o,c){const l=e.states[i];switch(r){case E.EPSILON:return new dt(l);case E.RANGE:return new ht(l,0!==o?t.EOF:n,a);case E.RULE:return new T(e.states[n],a,o,l);case E.PREDICATE:return new mt(l,n,a,0!==o);case E.PRECEDENCE:return new ft(l,n);case E.ATOM:return new lt(l,0!==o?t.EOF:n);case E.ACTION:return new ut(l,n,a,0!==o);case E.SET:return new S(l,c[n]);case E.NOT_SET:return new k(l,c[n]);case E.WILDCARD:return new R(l);default:throw"The specified transition type: "+r+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[b.INVALID_TYPE]=null,t[b.BASIC]=()=>new X,t[b.RULE_START]=()=>new et,t[b.BLOCK_START]=()=>new ct,t[b.PLUS_BLOCK_START]=()=>new at,t[b.STAR_BLOCK_START]=()=>new ot,t[b.TOKEN_START]=()=>new rt,t[b.RULE_STOP]=()=>new _,t[b.BLOCK_END]=()=>new Z,t[b.STAR_LOOP_BACK]=()=>new it,t[b.STAR_LOOP_ENTRY]=()=>new nt,t[b.PLUS_LOOP_BACK]=()=>new st,t[b.LOOP_END]=()=>new tt,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const r=this.stateFactories[t]();if(null!==r)return r.ruleIndex=e,r}}lexerActionFactory(t,e,r){if(null===this.actionFactories){const t=[];t[0]=(t,e)=>new vt(t),t[1]=(t,e)=>new bt(t,e),t[2]=(t,e)=>new kt(t),t[3]=(t,e)=>_t.INSTANCE,t[4]=(t,e)=>St.INSTANCE,t[5]=(t,e)=>new Tt(t),t[6]=(t,e)=>xt.INSTANCE,t[7]=(t,e)=>new Et(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,r)}}class Ct{syntaxError(t,e,r,s,i,n){}reportAmbiguity(t,e,r,s,i,n,a){}reportAttemptingFullContext(t,e,r,s,i,n){}reportContextSensitivity(t,e,r,s,i,n){}}class Lt extends Ct{constructor(){super()}syntaxError(t,e,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Lt.INSTANCE=new Lt;class It extends Ct{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,r,s,i,n){this.delegates.map(a=>a.syntaxError(t,e,r,s,i,n))}reportAmbiguity(t,e,r,s,i,n,a){this.delegates.map(o=>o.reportAmbiguity(t,e,r,s,i,n,a))}reportAttemptingFullContext(t,e,r,s,i,n){this.delegates.map(a=>a.reportAttemptingFullContext(t,e,r,s,i,n))}reportContextSensitivity(t,e,r,s,i,n){this.delegates.map(a=>a.reportContextSensitivity(t,e,r,s,i,n))}}class Kt{constructor(){this._listeners=[Lt.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){const e="4.13.1";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const t=this.getLiteralNames(),e=this.getSymbolicNames(),r=t.length>e.length?t.length:e.length;this.tokenNames=[];for(let s=0;s<r;s++)this.tokenNames[s]=t[s]||e[s]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";let r=this.tokenTypeMapCache[e];return void 0===r&&(r=e.reduce(function(t,e,r){t[e]=r}),r.EOF=t.EOF,this.tokenTypeMapCache[e]=r),r}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce(function(t,e,r){t[e]=r}),this.ruleIndexMapCache[t]=e),e}getTokenType(e){const r=this.getTokenTypeMap()[e];return void 0!==r?r:t.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),r=r.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+r+"'"}getErrorListenerDispatch(){return new It(this._listeners)}sempred(t,e,r){return!0}precpred(t,e){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}Kt.tokenTypeMapCache={},Kt.ruleIndexMapCache={};class Nt extends t{constructor(e,r,s,i,n){super(),this.source=void 0!==e?e:Nt.EMPTY_SOURCE,this.type=void 0!==r?r:null,this.channel=void 0!==s?s:t.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==n?n:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1}clone(){const t=new Nt(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}cloneWithType(e){const r=new Nt(this.source,e,this.channel,this.start,this.stop);return r.tokenIndex=this.tokenIndex,r.line=this.line,r.column=this.column,e===t.EOF&&(r.text=""),r}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}}Nt.EMPTY_SOURCE=[null,null];class Ot{}class Dt extends Ot{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,r,s,i,n,a,o){const c=new Nt(t,e,s,i,n);return c.line=a,c.column=o,null!==r?c.text=r:this.copyText&&null!==t[1]&&(c.text=t[1].getText(i,n)),c}createThin(t,e){const r=new Nt(null,t);return r.text=e,r}}Dt.DEFAULT=new Dt;class Pt extends Error{constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,Pt),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class qt extends Pt{constructor(t,e,r,s){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=s}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new x(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Mt extends Kt{constructor(e){super(),this._input=e,this._factory=Dt.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=Mt.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Mt.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let e=!1;for(;;){this._type=t.INVALID_TYPE;let r=Mt.SKIP;try{r=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof Pt))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=r),this._type===Mt.SKIP){e=!0;break}if(this._type!==Mt.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Mt.SKIP}more(){this._type=Mt.MORE}mode(t){this._mode=t}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const e=this.column,r=this.line,s=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,r,e);return this.emitToken(s),s}getCharIndex(){return this._input.index}getAllTokens(){const e=[];let r=this.nextToken();for(;r.type!==t.EOF;)e.push(r),r=this.nextToken();return e}notifyListeners(t){const e=this._tokenStartCharIndex,r=this._input.index,s=this._input.getText(e,r),i="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,t)}getErrorDisplay(t){const e=[];for(let r=0;r<t.length;r++)e.push(t[r]);return e.join("")}getErrorDisplayForChar(e){return e.charCodeAt(0)===t.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(e){this._input.LA(1)!==t.EOF&&(e instanceof qt?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}}function Ft(t){return t.hashCodeForConfigSet()}function Ut(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Mt.DEFAULT_MODE=0,Mt.MORE=-2,Mt.SKIP=-3,Mt.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Mt.HIDDEN=t.HIDDEN_CHANNEL,Mt.MIN_CHAR_VALUE=0,Mt.MAX_CHAR_VALUE=1114111;class Yt{constructor(t){this.configLookup=new d(Ft,Ut),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==p.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(t);if(r===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const s=!this.fullCtx,i=$(r.context,t.context,s,e);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=i,!0}getStates(){const t=new d;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const r=this.configs[e].semanticContext;r!==p.NONE&&t.push(r.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];r.context=t.getCachedContext(r.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof Yt&&e(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new i;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new d}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return h(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==W.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Vt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Yt),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new d;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];t.add(r.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof Vt&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new i;return t.update(this.configs),t.finish()}}class jt{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new j;return H(t,this.sharedContextCache,e)}}jt.ERROR=new Vt(2147483647,new Yt);class Bt extends Yt{constructor(){super(),this.configLookup=new d}}class Ht extends w{constructor(t,e){super(t,e);const r=t.lexerActionExecutor||null;return this.lexerActionExecutor=r||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=Ht.prototype.hashCode,this.equalsForConfigSet=Ht.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof Ht&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof Q&&e.nonGreedy}}class $t extends wt{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof $t&&this.offset===t.offset&&this.action===t.action}}class Gt{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=i.hashStuff(t),this}fixOffsetBeforeMatch(t){let e=null;for(let r=0;r<this.lexerActions.length;r++)!this.lexerActions[r].isPositionDependent||this.lexerActions[r]instanceof $t||(null===e&&(e=this.lexerActions.concat([])),e[r]=new $t(t,this.lexerActions[r]));return null===e?this:new Gt(e)}execute(t,e,r){let s=!1;const i=e.index;try{for(let n=0;n<this.lexerActions.length;n++){let a=this.lexerActions[n];if(a instanceof $t){const t=a.offset;e.seek(r+t),a=a.action,s=r+t!==i}else a.isPositionDependent&&(e.seek(i),s=!1);a.execute(t)}}finally{s&&e.seek(i)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof Gt){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let r=0;r<e;++r)if(!this.lexerActions[r].equals(t.lexerActions[r]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new Gt([e]);const r=t.lexerActions.concat([e]);return new Gt(r)}}function zt(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}class Wt{constructor(){zt(this)}reset(){zt(this)}}class Xt extends jt{constructor(t,e,r,s){super(e,s),this.decisionToDFA=r,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=Mt.DEFAULT_MODE,this.prevAccept=new Wt}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;const r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=Mt.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];Xt.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const r=this.mode,s=this.computeStartState(t,e),i=s.hasSemanticContext;s.hasSemanticContext=!1;const n=this.addDFAState(s);i||(this.decisionToDFA[this.mode].s0=n);const a=this.execATN(t,n);return Xt.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),a}execATN(e,r){Xt.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let s=e.LA(1),i=r;for(;;){Xt.debug&&console.log("execATN loop starting closure: "+i.configs);let r=this.getExistingTargetState(i,s);if(null===r&&(r=this.computeTargetState(e,i,s)),r===jt.ERROR)break;if(s!==t.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),s===t.EOF))break;s=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,s)}getExistingTargetState(t,e){if(null===t.edges||e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE)return null;let r=t.edges[e-Xt.MIN_DFA_EDGE];return void 0===r&&(r=null),Xt.debug&&null!==r&&console.log("reuse state "+t.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(t,e,r){const s=new Bt;return this.getReachableConfigSet(t,e.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,r,jt.ERROR),jt.ERROR):this.addDFAEdge(e,r,null,s)}failOrAccept(e,r,s,i){if(null!==this.prevAccept.dfaState){const t=e.dfaState.lexerActionExecutor;return this.accept(r,t,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(i===t.EOF&&r.index===this.startIndex)return t.EOF;throw new qt(this.recog,r,this.startIndex,s)}getReachableConfigSet(e,r,s,i){let n=W.INVALID_ALT_NUMBER;for(let a=0;a<r.items.length;a++){const o=r.items[a],c=o.alt===n;if(!c||!o.passedThroughNonGreedyDecision){Xt.debug&&console.log("testing %s at %s\n",this.getTokenName(i),o.toString(this.recog,!0));for(let r=0;r<o.state.transitions.length;r++){const a=o.state.transitions[r],l=this.getReachableTarget(a,i);if(null!==l){let r=o.lexerActionExecutor;null!==r&&(r=r.fixOffsetBeforeMatch(e.index-this.startIndex));const a=i===t.EOF,h=new Ht({state:l,lexerActionExecutor:r},o);this.closure(e,h,s,c,!0,a)&&(n=o.alt)}}}}}accept(t,e,r,s,i,n){Xt.debug&&console.log("ACTION %s\n",e),t.seek(s),this.line=i,this.column=n,null!==e&&null!==this.recog&&e.execute(this.recog,t,r)}getReachableTarget(t,e){return t.matches(e,0,Mt.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=M.EMPTY,s=new Bt;for(let i=0;i<e.transitions.length;i++){const n=e.transitions[i].target,a=new Ht({state:n,alt:i+1,context:r},null);this.closure(t,a,s,!1,!1,!1)}return s}closure(t,e,r,s,i,n){let a=null;if(Xt.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof _){if(Xt.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return r.add(e),!0;r.add(new Ht({state:e.state,context:M.EMPTY},e)),s=!0}if(null!==e.context&&!e.context.isEmpty())for(let o=0;o<e.context.length;o++)if(e.context.getReturnState(o)!==M.EMPTY_RETURN_STATE){const c=e.context.getParent(o),l=this.atn.states[e.context.getReturnState(o)];a=new Ht({state:l,context:c},e),s=this.closure(t,a,r,s,i,n)}return s}e.state.epsilonOnlyTransitions||s&&e.passedThroughNonGreedyDecision||r.add(e);for(let o=0;o<e.state.transitions.length;o++){const c=e.state.transitions[o];a=this.getEpsilonTarget(t,e,c,r,i,n),null!==a&&(s=this.closure(t,a,r,s,i,n))}return s}getEpsilonTarget(e,r,s,i,n,a){let o=null;if(s.serializationType===E.RULE){const t=U.create(r.context,s.followState.stateNumber);o=new Ht({state:s.target,context:t},r)}else{if(s.serializationType===E.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===E.PREDICATE)Xt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new Ht({state:s.target},r));else if(s.serializationType===E.ACTION)if(null===r.context||r.context.hasEmptyPath()){const t=Gt.append(r.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new Ht({state:s.target,lexerActionExecutor:t},r)}else o=new Ht({state:s.target},r);else s.serializationType===E.EPSILON?o=new Ht({state:s.target},r):s.serializationType!==E.ATOM&&s.serializationType!==E.RANGE&&s.serializationType!==E.SET||a&&s.matches(t.EOF,0,Mt.MAX_CHAR_VALUE)&&(o=new Ht({state:s.target},r))}return o}evaluatePredicate(t,e,r,s){if(null===this.recog)return!0;if(!s)return this.recog.sempred(null,e,r);const i=this.column,n=this.line,a=t.index,o=t.mark();try{return this.consume(t),this.recog.sempred(null,e,r)}finally{this.column=i,this.line=n,t.seek(a),t.release(o)}}captureSimState(t,e,r){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=r}addDFAEdge(t,e,r,s){if(void 0===r&&(r=null),void 0===s&&(s=null),null===r&&null!==s){const t=s.hasSemanticContext;if(s.hasSemanticContext=!1,r=this.addDFAState(s),t)return r}return e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE||(Xt.debug&&console.log("EDGE "+t+" -> "+r+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-Xt.MIN_DFA_EDGE]=r),r}addDFAState(t){const e=new Vt(null,t);let r=null;for(let e=0;e<t.items.length;e++){const s=t.items[e];if(s.state instanceof _){r=s;break}}null!==r&&(e.isAcceptState=!0,e.lexerActionExecutor=r.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const s=this.decisionToDFA[this.mode],i=s.states.get(e);if(null!==i)return i;const n=e;return n.stateNumber=s.states.length,t.setReadonly(!0),n.configs=t,s.states.add(n),n}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}}Xt.debug=!1,Xt.dfa_debug=!1,Xt.MIN_DFA_EDGE=0,Xt.MAX_DFA_EDGE=127;class Qt{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}class Jt{constructor(){this.data={}}get(t){return this.data["k-"+t]||null}set(t,e){this.data["k-"+t]=e}values(){return Object.keys(this.data).filter(t=>t.startsWith("k-")).map(t=>this.data[t],this)}}const Zt={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(Zt.allConfigsInRuleStopStates(e))return!0;if(t===Zt.SLL&&e.hasSemanticContext){const t=new Yt;for(let r=0;r<e.items.length;r++){let s=e.items[r];s=new w({semanticContext:p.NONE},s),t.add(s)}e=t}const r=Zt.getConflictingAltSubsets(e);return Zt.hasConflictingAltSet(r)&&!Zt.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof _)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof _))return!1;return!0},resolvesToJustOneViableAlt:function(t){return Zt.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!Zt.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r];if(null===e)e=s;else if(s!==e)return!1}return!0},getUniqueAlt:function(t){const e=Zt.getAlts(t);return 1===e.length?e.minValue():W.INVALID_ALT_NUMBER},getAlts:function(t){const e=new G;return t.map(function(t){e.or(t)}),e},getConflictingAltSubsets:function(t){const e=new j;return e.hashFunction=function(t){i.hashStuff(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map(function(t){let r=e.get(t);null===r&&(r=new G,e.set(t,r)),r.add(t.alt)}),e.getValues()},getStateToAltMap:function(t){const e=new Jt;return t.items.map(function(t){let r=e.get(t.state);null===r&&(r=new G,e.set(t.state,r)),r.add(t.alt)}),e},hasStateAssociatedWithOneAlt:function(t){const e=Zt.getStateToAltMap(t).values();for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r].minValue();if(null===e)e=s;else if(e!==s)return W.INVALID_ALT_NUMBER}return e}},te=Zt;class ee extends Pt{constructor(t,e,r,s,i,n){n=n||t._ctx,s=s||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:n}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=s}}class re{constructor(t){this.defaultMapCtor=t||j,this.cacheMap=new this.defaultMapCtor}get(t,e){const r=this.cacheMap.get(t)||null;return null===r?null:r.get(e)||null}set(t,e,r){let s=this.cacheMap.get(t)||null;null===s&&(s=new this.defaultMapCtor,this.cacheMap.set(t,s)),s.set(e,r)}}class se extends jt{constructor(t,e,r,s){super(e,s),this.parser=t,this.decisionToDFA=r,this.predictionMode=te.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,r){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=r;const s=this.decisionToDFA[e];this._dfa=s;const i=t.mark(),n=t.index;try{let e;if(e=s.precedenceDfa?s.getPrecedenceStartState(this.parser.getPrecedence()):s.s0,null===e){null===r&&(r=q.EMPTY),this.debug&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+r.toString(this.parser.ruleNames));const i=!1;let n=this.computeStartState(s.atnStartState,q.EMPTY,i);s.precedenceDfa?(s.s0.configs=n,n=this.applyPrecedenceFilter(n),e=this.addDFAState(s,new Vt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Vt(null,n)),s.s0=e)}const i=this.execATN(s,e,t,n,r);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),i}finally{this._dfa=null,this.mergeCache=null,t.seek(n),t.release(i)}}execATN(e,r,s,i,n){let a;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+e.decision+", DFA state "+r+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let o=r;this.debug&&console.log("s0 = "+r);let c=s.LA(1);for(;;){let r=this.getExistingTargetState(o,c);if(null===r&&(r=this.computeTargetState(e,o,c)),r===jt.ERROR){const t=this.noViableAlt(s,n,o.configs,i);if(s.seek(i),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,n),a!==W.INVALID_ALT_NUMBER)return a;throw t}if(r.requiresFullContext&&this.predictionMode!==te.SLL){let t=null;if(null!==r.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=s.index;if(e!==i&&s.seek(i),t=this.evalSemanticContext(r.predicates,n,!0),1===t.length)return this.debug&&console.log("Full LL avoided"),t.minValue();e!==i&&s.seek(e)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+r);const o=!0,c=this.computeStartState(e.atnStartState,n,o);return this.reportAttemptingFullContext(e,t,r.configs,i,s.index),a=this.execATNWithFullContext(e,r,c,s,i,n),a}if(r.isAcceptState){if(null===r.predicates)return r.prediction;const t=s.index;s.seek(i);const a=this.evalSemanticContext(r.predicates,n,!0);if(0===a.length)throw this.noViableAlt(s,n,r.configs,i);return 1===a.length||this.reportAmbiguity(e,r,i,t,!1,a,r.configs),a.minValue()}o=r,c!==t.EOF&&(s.consume(),c=s.LA(1))}}getExistingTargetState(t,e){const r=t.edges;return null===r?null:r[e+1]||null}computeTargetState(t,e,r){const s=this.computeReachSet(e.configs,r,!1);if(null===s)return this.addDFAEdge(t,e,r,jt.ERROR),jt.ERROR;let i=new Vt(null,s);const n=this.getUniqueAlt(s);if(this.debug){const t=te.getConflictingAltSubsets(s);console.log("SLL altSubSets="+h(t)+", configs="+s+", predict="+n+", allSubsetsConflict="+te.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(s))}return n!==W.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=n,i.prediction=n):te.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(i.configs.conflictingAlts=this.getConflictingAlts(s),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(t.decision)),null!==i.predicates&&(i.prediction=W.INVALID_ALT_NUMBER)),i=this.addDFAEdge(t,e,r,i),i}predicateDFAState(t,e){const r=e.transitions.length,s=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(s,t.configs,r);null!==i?(t.predicates=this.getPredicatePredictions(s,i),t.prediction=W.INVALID_ALT_NUMBER):t.prediction=s.minValue()}execATNWithFullContext(e,r,s,i,n,a){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+s);let o,c=!1,l=s;i.seek(n);let h=i.LA(1),u=-1;for(;;){if(o=this.computeReachSet(l,h,!0),null===o){const t=this.noViableAlt(i,a,l,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,a);if(e!==W.INVALID_ALT_NUMBER)return e;throw t}const e=te.getConflictingAltSubsets(o);if(this.debug&&console.log("LL altSubSets="+e+", predict="+te.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+te.resolvesToJustOneViableAlt(e)),o.uniqueAlt=this.getUniqueAlt(o),o.uniqueAlt!==W.INVALID_ALT_NUMBER){u=o.uniqueAlt;break}if(this.predictionMode!==te.LL_EXACT_AMBIG_DETECTION){if(u=te.resolvesToJustOneViableAlt(e),u!==W.INVALID_ALT_NUMBER)break}else if(te.allSubsetsConflict(e)&&te.allSubsetsEqual(e)){c=!0,u=te.getSingleViableAlt(e);break}l=o,h!==t.EOF&&(i.consume(),h=i.LA(1))}return o.uniqueAlt!==W.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,o,n,i.index),u):(this.reportAmbiguity(e,r,n,i.index,c,null,o),u)}computeReachSet(e,r,s){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new re);const i=new Yt(s);let n=null;for(let a=0;a<e.items.length;a++){const o=e.items[a];if(this.debug&&console.log("testing "+this.getTokenName(r)+" at "+o),o.state instanceof _)(s||r===t.EOF)&&(null===n&&(n=[]),n.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let t=0;t<o.state.transitions.length;t++){const e=o.state.transitions[t],s=this.getReachableTarget(e,r);if(null!==s){const t=new w({state:s},o);i.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let a=null;if(null===n&&r!==t.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==W.INVALID_ALT_NUMBER)&&(a=i),null===a){a=new Yt(s);const e=new d,n=r===t.EOF;for(let t=0;t<i.items.length;t++)this.closure(i.items[t],a,e,!1,s,n)}if(r===t.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===i)),!(null===n||s&&te.hasConfigInRuleStopState(a)))for(let t=0;t<n.length;t++)a.add(n[t],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+e+" -> "+a),0===a.items.length?null:a}removeAllConfigsNotInRuleStopState(e,r){if(te.allConfigsInRuleStopStates(e))return e;const s=new Yt(e.fullCtx);for(let i=0;i<e.items.length;i++){const n=e.items[i];if(n.state instanceof _)s.add(n,this.mergeCache);else if(r&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(t.EPSILON)){const t=this.atn.ruleToStopState[n.state.ruleIndex];s.add(new w({state:t},n),this.mergeCache)}}return s}computeStartState(t,e,r){const s=B(this.atn,e),i=new Yt(r);this.trace_atn_sim&&console.log("computeStartState from ATN state "+t+" initialContext="+s.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const n=t.transitions[e].target,a=new w({state:n,alt:e+1,context:s},null),o=new d;this.closure(a,i,o,!0,r,!1)}return i}applyPrecedenceFilter(t){let e;const r=[],s=new Yt(t.fullCtx);for(let i=0;i<t.items.length;i++){if(e=t.items[i],1!==e.alt)continue;const n=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==n&&(r[e.state.stateNumber]=e.context,n!==e.semanticContext?s.add(new w({semanticContext:n},e),this.mergeCache):s.add(e,this.mergeCache))}for(let i=0;i<t.items.length;i++)if(e=t.items[i],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=r[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}s.add(e,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,r){let s=[];for(let r=0;r<e.items.length;r++){const i=e.items[r];t.has(i.alt)&&(s[i.alt]=p.orContext(s[i.alt]||null,i.semanticContext))}let i=0;for(let t=1;t<r+1;t++){const e=s[t]||null;null===e?s[t]=p.NONE:e!==p.NONE&&(i+=1)}return 0===i&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+h(s)),s}getPredicatePredictions(t,e){const r=[];let s=!1;for(let i=1;i<e.length;i++){const n=e[i];null!==t&&t.has(i)&&r.push(new Qt(n,i)),n!==p.NONE&&(s=!0)}return s?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const r=this.splitAccordingToSemanticValidity(t,e),s=r[0],i=r[1];let n=this.getAltThatFinishedDecisionEntryRule(s);return n!==W.INVALID_ALT_NUMBER||i.items.length>0&&(n=this.getAltThatFinishedDecisionEntryRule(i),n!==W.INVALID_ALT_NUMBER)?n:W.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let r=0;r<t.items.length;r++){const s=t.items[r];(s.reachesIntoOuterContext>0||s.state instanceof _&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt)}return 0===e.length?W.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const r=new Yt(t.fullCtx),s=new Yt(t.fullCtx);for(let i=0;i<t.items.length;i++){const n=t.items[i];n.semanticContext!==p.NONE?n.semanticContext.evaluate(this.parser,e)?r.add(n):s.add(n):r.add(n)}return[r,s]}evalSemanticContext(t,e,r){const s=new G;for(let i=0;i<t.length;i++){const n=t[i];if(n.pred===p.NONE){if(s.add(n.alt),!r)break;continue}const a=n.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+n+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+n.alt),s.add(n.alt),!r))break}return s}closure(t,e,r,s,i,n){this.closureCheckingStopState(t,e,r,s,i,0,n)}closureCheckingStopState(t,e,r,s,i,n,a){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof _){if(!t.context.isEmpty()){for(let o=0;o<t.context.length;o++){if(t.context.getReturnState(o)===M.EMPTY_RETURN_STATE){if(i){e.add(new w({state:t.state,context:M.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,r,s,i,n,a);continue}const c=this.atn.states[t.context.getReturnState(o)],l=t.context.getParent(o),h={state:c,alt:t.alt,context:l,semanticContext:t.semanticContext},u=new w(h,null);u.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(u,e,r,s,i,n-1,a)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,r,s,i,n,a)}closure_(t,e,r,s,i,n,a){const o=t.state;o.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let c=0;c<o.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const l=o.transitions[c],h=s&&!(l instanceof ut),u=this.getEpsilonTarget(t,l,h,0===n,i,a);if(null!==u){let s=n;if(t.state instanceof _){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,r.add(u)!==u)continue;e.dipsIntoOuterContext=!0,s-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!l.isEpsilon&&r.add(u)!==u)continue;l instanceof T&&s>=0&&(s+=1)}this.closureCheckingStopState(u,e,r,h,i,s,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==b.STAR_LOOP_ENTRY)return!1;if(e.stateType!==b.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const r=t.context.length;for(let s=0;s<r;s++)if(this.atn.states[t.context.getReturnState(s)].ruleIndex!==e.ruleIndex)return!1;const s=e.transitions[0].target.endState.stateNumber,i=this.atn.states[s];for(let s=0;s<r;s++){const r=t.context.getReturnState(s),n=this.atn.states[r];if(1!==n.transitions.length||!n.transitions[0].isEpsilon)return!1;const a=n.transitions[0].target;if(!(n.stateType===b.BLOCK_END&&a===e||n===i||a===i||a.stateType===b.BLOCK_END&&1===a.transitions.length&&a.transitions[0].isEpsilon&&a.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(e,r,s,i,n,a){switch(r.serializationType){case E.RULE:return this.ruleTransition(e,r);case E.PRECEDENCE:return this.precedenceTransition(e,r,s,i,n);case E.PREDICATE:return this.predTransition(e,r,s,i,n);case E.ACTION:return this.actionTransition(e,r);case E.EPSILON:return new w({state:r.target},e);case E.ATOM:case E.RANGE:case E.SET:return a&&r.matches(t.EOF,0,1)?new w({state:r.target},e):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new w({state:e.target},t)}precedenceTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&s)if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}predTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&(e.isCtxDependent&&s||!e.isCtxDependent))if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const r=e.followState,s=U.create(t.context,r.stateNumber);return new w({state:e.target,context:s},t)}getConflictingAlts(t){const e=te.getConflictingAltSubsets(t);return te.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==W.INVALID_ALT_NUMBER?(e=new G,e.add(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(e){if(e===t.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let t=0;t<e.length;t++){const r=e[t];let s="no edges";if(r.state.transitions.length>0){const t=r.state.transitions[0];t instanceof lt?s="Atom "+this.getTokenName(t.label):t instanceof S&&(s=(t instanceof k?"~":"")+"Set "+t.set)}console.error(r.toString(this.parser,!0)+":"+s)}}noViableAlt(t,e,r,s){return new ee(this.parser,t,t.get(s),t.LT(1),r,e)}getUniqueAlt(t){let e=W.INVALID_ALT_NUMBER;for(let r=0;r<t.items.length;r++){const s=t.items[r];if(e===W.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return W.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,r,s){if(this.debug&&console.log("EDGE "+e+" -> "+s+" upon "+this.getTokenName(r)),null===s)return null;if(s=this.addDFAState(t,s),null===e||r<-1||r>this.atn.maxTokenType)return s;if(null===e.edges&&(e.edges=[]),e.edges[r+1]=s,this.debug){const e=null===this.parser?null:this.parser.literalNames,r=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,r))}return s}addDFAState(t,e){if(e===jt.ERROR)return e;const r=t.states.get(e);return null!==r?(this.trace_atn_sim&&console.log("addDFAState "+e+" exists"),r):(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+e),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,s,i,e,r)}reportContextSensitivity(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,s,i,e,r)}reportAmbiguity(t,e,r,s,i,n,a){if(this.debug||this.retry_debug){const t=new x(r,s+1);console.log("reportAmbiguity "+n+":"+a+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,r,s,i,n,a)}}class ie{constructor(){this.cache=new j}add(t){if(t===M.EMPTY)return M.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.set(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}}const ne={ATN:W,ATNDeserializer:At,LexerATNSimulator:Xt,ParserATNSimulator:se,PredictionMode:te,PredictionContextCache:ie};class ae{constructor(t,e,r){this.dfa=t,this.literalNames=e||[],this.symbolicNames=r||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let r=0;r<e.length;r++){const s=e[r];if(null!==s.edges){const e=s.edges.length;for(let r=0;r<e;r++){const e=s.edges[r]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(s)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(r)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+h(t.predicates):e+"=>"+t.prediction.toString():e}}class oe extends ae{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}class ce{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new d,this.s0=null,this.precedenceDfa=!1,t instanceof nt&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new Vt(null,new Yt);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new d,t){const t=new Vt(null,new Yt);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort(function(t,e){return t.stateNumber-e.stateNumber})}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new ae(this,t,e).toString()}toLexerString(){return null===this.s0?"":new oe(this).toString()}get states(){return this._states}}const le={DFA:ce,DFASerializer:ae,LexerDFASerializer:oe,PredPrediction:Qt},he={PredictionContext:M},ue={Interval:x,IntervalSet:v};class de{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}}class pe{visit(t){return Array.isArray(t)?t.map(function(t){return t.accept(this)},this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}}class me{walk(t,e){if(e instanceof O||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof N)t.visitTerminal(e);else{this.enterRule(t,e);for(let r=0;r<e.getChildCount();r++){const s=e.getChild(r);this.walk(t,s)}this.exitRule(t,e)}}enterRule(t,e){const r=e.ruleContext;t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){const r=e.ruleContext;r.exitRule(t),t.exitEveryRule(r)}}me.DEFAULT=new me;const ye={Trees:P,RuleNode:K,ErrorNode:O,TerminalNode:N,ParseTreeListener:de,ParseTreeVisitor:pe,ParseTreeWalker:me};class fe extends Pt{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}}class ge extends Pt{constructor(t,e,r){super({message:we(e,r||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const s=t._interp.atn.states[t.state].transitions[0];s instanceof mt?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}}function we(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}class xe extends Ct{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,r,s,i,n,a){if(this.exactOnly&&!i)return;const o="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(n,a)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(o)}reportAttemptingFullContext(t,e,r,s,i,n){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,s,i,n){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const r=e.decision,s=e.atnStartState.ruleIndex,i=t.ruleNames;if(s<0||s>=i.length)return""+r;const n=i[s]||null;return null===n||0===n.length?""+r:`${r} (${n})`}getConflictingAlts(t,e){if(null!==t)return t;const r=new G;for(let t=0;t<e.items.length;t++)r.add(e.items[t].alt);return`{${r.values().join(", ")}}`}}class ve extends Error{constructor(){super(),Error.captureStackTrace(this,ve)}}class be{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}}class _e extends be{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ee?this.reportNoViableAlternative(t,e):e instanceof fe?this.reportInputMismatch(t,e):e instanceof ge?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(e){if(this.inErrorRecoveryMode(e))return;const r=e._interp.atn.states[e.state],s=e.getTokenStream().LA(1),i=e.atn.nextTokens(r);if(i.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(i.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);else switch(r.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new fe(e);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new v;t.addSet(e.getExpectedTokens());const r=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,r)}}}reportNoViableAlternative(e,r){const s=e.getTokenStream();let i;i=null!==s?r.startToken.type===t.EOF?"<EOF>":s.getText(new x(r.startToken.tokenIndex,r.offendingToken.tokenIndex)):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(i);e.notifyErrorListeners(n,r.offendingToken,r)}reportInputMismatch(t,e){const r="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e.offendingToken,e)}reportFailedPredicate(t,e){const r="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(r,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new fe(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),r=t._interp.atn,s=r.states[t.state].transitions[0].target;return!!r.nextTokens(s,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(e){const r=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let i;i=s===t.EOF?"<missing EOF>":"<missing "+e.literalNames[s]+">";let n=r;const a=e.getTokenStream().LT(-1);return n.type===t.EOF&&null!==a&&(n=a),e.getTokenFactory().create(n.source,s,i,t.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(r)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const r=e._interp.atn;let s=e._ctx;const i=new v;for(;null!==s&&s.invokingState>=0;){const t=r.states[s.invokingState].transitions[0],e=r.nextTokens(t.followState);i.addSet(e),s=s.parentCtx}return i.removeOne(t.EPSILON),i}consumeUntil(e,r){let s=e.getTokenStream().LA(1);for(;s!==t.EOF&&!r.contains(s);)e.consume(),s=e.getTokenStream().LA(1)}}class Ee extends _e{constructor(){super()}recover(t,e){let r=t._ctx;for(;null!==r;)r.exception=e,r=r.parentCtx;throw new ve(e)}recoverInline(t){this.recover(t,new fe(t))}sync(t){}}const Te={RecognitionException:Pt,NoViableAltException:ee,LexerNoViableAltException:qt,InputMismatchException:fe,FailedPredicateException:ge,DiagnosticErrorListener:xe,BailErrorStrategy:Ee,DefaultErrorStrategy:_e,ErrorListener:Ct};class Se{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let t=0;t<this.strdata.length;){const e=this.strdata.codePointAt(t);this.data.push(e),t+=e<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let t=0;t<this.strdata.length;t++)this.data[t]=this.strdata.charCodeAt(t)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const r=this._index+e-1;return r<0||r>=this._size?t.EOF:this.data[r]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let r="";for(let s=t;s<=e;s++)r+=String.fromCodePoint(this.data[s]);return r}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class ke extends Se{constructor(t,e){super(t,e)}}var Re=o(92);const Ae="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class Ce extends ke{static fromPath(t,e,r){if(!Ae)throw new Error("FileStream is only available when running in Node!");Re.readFile(t,e,function(t,e){let s=null;null!==e&&(s=new Se(e,!0)),r(t,s)})}constructor(t,e,r){if(!Ae)throw new Error("FileStream is only available when running in Node!");super(Re.readFileSync(t,e||"utf-8"),r),this.fileName=t}}const Le={fromString:function(t){return new Se(t,!0)},fromBlob:function(t,e,r,s){const i=new window.FileReader;i.onload=function(t){const e=new Se(t.target.result,!0);r(e)},i.onerror=s,i.readAsText(t,e)},fromBuffer:function(t,e){return new Se(t.toString(e),!0)},fromPath:function(t,e,r){Ce.fromPath(t,e,r)},fromPathSync:function(t,e){return new Ce(t,e)}},Ie={arrayToString:h,stringToCharArray:function(t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}};class Ke{}class Ne extends Ke{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get(t){return this.lazyInit(),this.tokens[t]}consume(){let e=!1;if(e=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!e&&this.LA(1)===t.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(e){if(this.fetchedEOF)return 0;for(let r=0;r<e;r++){const e=this.tokenSource.nextToken();if(e.tokenIndex=this.tokens.length,this.tokens.push(e),e.type===t.EOF)return this.fetchedEOF=!0,r+1}return e}getTokens(e,r,s){if(void 0===s&&(s=null),e<0||r<0)return null;this.lazyInit();const i=[];r>=this.tokens.length&&(r=this.tokens.length-1);for(let n=e;n<r;n++){const e=this.tokens[n];if(e.type===t.EOF)break;(null===s||s.contains(e.type))&&i.push(e)}return i}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+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.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,r){if(this.sync(e),e>=this.tokens.length)return-1;let s=this.tokens[e];for(;s.channel!==this.channel;){if(s.type===t.EOF)return-1;e+=1,this.sync(e),s=this.tokens[e]}return e}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.nextTokenOnChannel(t+1,Mt.DEFAULT_TOKEN_CHANNEL),s=t+1,i=-1===r?this.tokens.length-1:r;return this.filterForChannel(s,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.previousTokenOnChannel(t-1,Mt.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return null;const s=r+1,i=t-1;return this.filterForChannel(s,i,e)}filterForChannel(t,e,r){const s=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===r?t.channel!==Mt.DEFAULT_TOKEN_CHANNEL&&s.push(t):t.channel===r&&s.push(t)}return 0===s.length?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e||(e=new x(0,this.tokens.length-1));let r=e.start;r instanceof t&&(r=r.tokenIndex);let s=e.stop;if(s instanceof t&&(s=s.tokenIndex),null===r||null===s||r<0||s<0)return"";s>=this.tokens.length&&(s=this.tokens.length-1);let i="";for(let e=r;e<s+1;e++){const r=this.tokens[e];if(r.type===t.EOF)break;i+=r.text}return i}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(Ne,"size",{get:function(){return this.tokens.length}});class Oe extends Ne{constructor(e,r){super(e),this.channel=void 0===r?t.DEFAULT_CHANNEL:r}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,r=1;for(;r<=t;)e=this.previousTokenOnChannel(e-1,this.channel),r+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let r=0;r<this.tokens.length;r++){const s=this.tokens[r];if(s.channel===this.channel&&(e+=1),s.type===t.EOF)break}return e}}class De extends de{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class Pe extends Kt{constructor(t){super(),this._input=null,this._errHandler=new _e,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.forEach(function(e){e.enterEveryRule(t),t.enterRule(e)})}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(e){t.exitRule(e),e.exitEveryRule(t)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const r=new gt;r.generateRuleBypassTransitions=!0,e=new At(r).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){r=r||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const s=e.line,i=e.column;this.getErrorListenerDispatch().syntaxError(this,e,s,i,t,r)}consume(){const e=this.getCurrentToken();e.type!==t.EOF&&this.getInputStream().consume();const r=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||r){let t;t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e),t.invokingState=this.state,r&&this._parseListeners.forEach(function(e){t instanceof O||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof N&&e.visitTerminal(t)})}return e}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.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()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,r,s){this.state=e,this._precedenceStack.push(s),this._ctx=t,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){const s=this._ctx;s.parentCtx=t,s.invokingState=e,s.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx,r=this.getParseListeners();if(null!==r&&r.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(e){const r=this._interp.atn;let s=this._ctx;const i=r.states[this.state];let n=r.nextTokens(i);if(n.contains(e))return!0;if(!n.contains(t.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&n.contains(t.EPSILON);){const t=r.states[s.invokingState].transitions[0];if(n=r.nextTokens(t.followState),n.contains(e))return!0;s=s.parentCtx}return!(!n.contains(t.EPSILON)||e!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const r=t.ruleIndex;r<0?e.push("n/a"):e.push(this.ruleNames[r]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const r=this._interp.decisionToDFA[e];r.states.length>0&&(t&&console.log(),this.printer.println("Decision "+r.decision+":"),this.printer.print(r.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.sourceName}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new De(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}Pe.bypassAltsAtnCache={};class qe extends N{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return x.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new x(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"<EOF>":this.symbol.text}}class Me extends qe{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Fe extends q{constructor(t,e){super(t,e),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map(function(t){t instanceof Me&&(this.children.push(t),t.parentCtx=this)},this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new qe(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new Me(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof e){if(0===t)return s;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof N&&s.symbol.type===t){if(0===e)return s;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof N&&s.symbol.type===t&&e.push(s)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof t&&e.push(s)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?x.INVALID_INTERVAL:new x(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Fe;class Ue{constructor(t){this.tokens=t,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(s),n=new ze(this.tokens,r,i.length,e);i.push(n)}insertBefore(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;const i=this.getProgram(s),n=new Ge(this.tokens,r,i.length,e);i.push(n)}replaceSingle(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;this.replace(t,t,e,r)}replace(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue.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(s),n=new We(this.tokens,t,e,i.length,r);i.push(n)}delete(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;void 0===e&&(e=t),this.replace(t,e,null,r)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e){let r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.DEFAULT_PROGRAM_NAME;r=e instanceof x?e:new x(0,this.tokens.size-1),"string"==typeof e&&(s=e);const i=this.programs.get(s);let n=r.start,a=r.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getText(new x(n,a));let o=[],c=this.reduceToSingleOperationPerIndex(i),l=n;for(;l<=a&&l<this.tokens.size;){let e=c.get(l);c.delete(l);let r=this.tokens.get(l);null==e?(r.type!==t.EOF&&o.push(String(r.text)),l++):l=e.execute(o)}if(a===this.tokens.size-1)for(const t of c.values())t.index>=this.tokens.size-1&&o.push(t.text.toString());return o.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof We))continue;let s=r,i=this.getKindOfOps(t,Ge,e);for(let e of i)e.index===s.index?(t[e.instructionIndex]=void 0,s.text=e.text.toString()+(null!=s.text?s.text.toString():"")):e.index>s.index&&e.index<=s.lastIndex&&(t[e.instructionIndex]=void 0);let n=this.getKindOfOps(t,We,e);for(let e of n){if(e.index>=s.index&&e.lastIndex<=s.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<s.index||e.index>s.lastIndex;if(null!=e.text||null!=s.text||r){if(!r)throw new Error(`replace op boundaries of ${s} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,s.index=Math.min(e.index,s.index),s.lastIndex=Math.max(e.lastIndex,s.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof Ge))continue;let s=r,i=this.getKindOfOps(t,Ge,e);for(let e of i)e.index===s.index&&(e instanceof ze?(s.text=this.catOpText(e.text,s.text),t[e.instructionIndex]=void 0):e instanceof Ge&&(s.text=this.catOpText(s.text,e.text),t[e.instructionIndex]=void 0));let n=this.getKindOfOps(t,We,e);for(let r of n)if(s.index!==r.index){if(s.index>=r.index&&s.index<=r.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${r}`)}else r.text=this.catOpText(s.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="",s="";return null!=t&&(r=t.toString()),null!=e&&(s=e.toString()),r+s}getKindOfOps(t,e,r){return t.slice(0,r).filter(t=>t&&t instanceof e)}}var Ye,Ve,je,Be,He;Ye=Ue,je="default",Be="DEFAULT_PROGRAM_NAME",(Ve="symbol"==typeof(He=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(Be))?He:String(He))in Ye?Object.defineProperty(Ye,Ve,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ye[Ve]=je;class $e{constructor(t,e,r,s){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===s?"":s}toString(){let t=this.constructor.name;const e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class Ge extends $e{constructor(t,e,r,s){super(t,e,r,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==t.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}class ze extends Ge{constructor(t,e,r,s){super(t,e+1,r,s)}}class We extends $e{constructor(t,e,r,s,i){super(t,e,s,i),this.lastIndex=r}execute(t){return 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+'">'}}const Xe={atn:ne,dfa:le,context:he,misc:ue,tree:ye,error:Te,Token:t,CommonToken:Nt,CharStreams:Le,CharStream:ke,InputStream:ke,CommonTokenStream:Oe,Lexer:Mt,Parser:Pe,ParserRuleContext:Fe,Interval:x,IntervalSet:v,LL1Analyzer:z,Utils:Ie,TokenStreamRewriter:Ue}})();var l=c.dx,h=c.q2,u=c.xf,d=c.c7,p=c._7,m=c.cK,y=c.zs,f=c.hW,g=c.x1,w=c.z5,x=c.TB,v=c._b,b=c.$F,_=c._T,E=c.db,T=c._x,S=c.WU,k=class t extends f{constructor(e){super(e),this._interp=new g(this,t._ATN,t.DecisionsToDFA,new E)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static get _ATN(){return t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};k.T__0=1,k.T__1=2,k.T__2=3,k.T__3=4,k.T__4=5,k.T__5=6,k.T__6=7,k.T__7=8,k.T__8=9,k.T__9=10,k.T__10=11,k.T__11=12,k.T__12=13,k.T__13=14,k.T__14=15,k.T__15=16,k.T__16=17,k.T__17=18,k.T__18=19,k.T__19=20,k.T__20=21,k.T__21=22,k.T__22=23,k.T__23=24,k.T__24=25,k.T__25=26,k.T__26=27,k.T__27=28,k.T__28=29,k.T__29=30,k.T__30=31,k.T__31=32,k.T__32=33,k.T__33=34,k.T__34=35,k.T__35=36,k.T__36=37,k.T__37=38,k.T__38=39,k.T__39=40,k.T__40=41,k.T__41=42,k.T__42=43,k.T__43=44,k.T__44=45,k.T__45=46,k.T__46=47,k.T__47=48,k.T__48=49,k.T__49=50,k.T__50=51,k.T__51=52,k.T__52=53,k.T__53=54,k.T__54=55,k.T__55=56,k.T__56=57,k.T__57=58,k.T__58=59,k.T__59=60,k.T__60=61,k.T__61=62,k.T__62=63,k.T__63=64,k.T__64=65,k.T__65=66,k.T__66=67,k.T__67=68,k.T__68=69,k.T__69=70,k.T__70=71,k.T__71=72,k.T__72=73,k.T__73=74,k.T__74=75,k.T__75=76,k.T__76=77,k.T__77=78,k.T__78=79,k.T__79=80,k.T__80=81,k.T__81=82,k.T__82=83,k.T__83=84,k.T__84=85,k.T__85=86,k.T__86=87,k.T__87=88,k.T__88=89,k.T__89=90,k.T__90=91,k.T__91=92,k.T__92=93,k.T__93=94,k.T__94=95,k.T__95=96,k.T__96=97,k.T__97=98,k.Int=99,k.Uint=100,k.Byte=101,k.Fixed=102,k.Ufixed=103,k.BooleanLiteral=104,k.DecimalNumber=105,k.HexNumber=106,k.NumberUnit=107,k.HexLiteralFragment=108,k.ReservedKeyword=109,k.AnonymousKeyword=110,k.BreakKeyword=111,k.ConstantKeyword=112,k.TransientKeyword=113,k.ImmutableKeyword=114,k.ContinueKeyword=115,k.LeaveKeyword=116,k.ExternalKeyword=117,k.IndexedKeyword=118,k.InternalKeyword=119,k.PayableKeyword=120,k.PrivateKeyword=121,k.PublicKeyword=122,k.VirtualKeyword=123,k.PureKeyword=124,k.TypeKeyword=125,k.ViewKeyword=126,k.GlobalKeyword=127,k.ConstructorKeyword=128,k.FallbackKeyword=129,k.ReceiveKeyword=130,k.Identifier=131,k.StringLiteralFragment=132,k.VersionLiteral=133,k.WS=134,k.COMMENT=135,k.LINE_COMMENT=136,k.EOF=S.EOF,k.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],k.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],k.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k.modeNames=["DEFAULT_MODE"],k.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","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","T__54","T__55","T__56","T__57","T__58","T__59","T__60","T__61","T__62","T__63","T__64","T__65","T__66","T__67","T__68","T__69","T__70","T__71","T__72","T__73","T__74","T__75","T__76","T__77","T__78","T__79","T__80","T__81","T__82","T__83","T__84","T__85","T__86","T__87","T__88","T__89","T__90","T__91","T__92","T__93","T__94","T__95","T__96","T__97","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","IdentifierStart","IdentifierPart","StringLiteralFragment","DoubleQuotedStringCharacter","SingleQuotedStringCharacter","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k._serializedATN=[4,0,136,1444,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,3,98,738,8,98,1,99,1,99,1,99,1,99,1,99,1,99,3,99,746,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,755,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,4,101,766,8,101,11,101,12,101,767,3,101,770,8,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,4,102,782,8,102,11,102,12,102,783,3,102,786,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,871,8,103,1,104,1,104,1,104,1,104,1,104,3,104,878,8,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,3,105,889,8,105,1,106,1,106,3,106,893,8,106,1,106,1,106,3,106,897,8,106,1,106,1,106,3,106,901,8,106,1,106,3,106,904,8,106,1,107,1,107,3,107,908,8,107,1,107,5,107,911,8,107,10,107,12,107,914,9,107,1,108,1,108,1,108,1,108,1,109,1,109,3,109,922,8,109,1,109,5,109,925,8,109,10,109,12,109,928,9,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,3,110,986,8,110,1,111,1,111,1,111,1,111,1,111,1,111,3,111,994,8,111,1,111,1,111,1,111,3,111,999,8,111,1,111,3,111,1002,8,111,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,3,113,1176,8,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,5,135,1348,8,135,10,135,12,135,1351,9,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,3,138,1364,8,138,1,138,1,138,5,138,1368,8,138,10,138,12,138,1371,9,138,1,138,1,138,1,138,5,138,1376,8,138,10,138,12,138,1379,9,138,1,138,3,138,1382,8,138,1,139,1,139,1,139,3,139,1387,8,139,1,140,1,140,1,140,3,140,1392,8,140,1,141,4,141,1395,8,141,11,141,12,141,1396,1,141,1,141,4,141,1401,8,141,11,141,12,141,1402,1,141,1,141,4,141,1407,8,141,11,141,12,141,1408,3,141,1411,8,141,1,142,4,142,1414,8,142,11,142,12,142,1415,1,142,1,142,1,143,1,143,1,143,1,143,5,143,1424,8,143,10,143,12,143,1427,9,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,5,144,1438,8,144,10,144,12,144,1441,9,144,1,144,1,144,1,1425,0,145,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,102,205,103,207,0,209,0,211,104,213,105,215,0,217,106,219,0,221,107,223,108,225,0,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,129,269,130,271,131,273,0,275,0,277,132,279,0,281,0,283,133,285,134,287,135,289,136,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1538,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,1,291,1,0,0,0,3,298,1,0,0,0,5,300,1,0,0,0,7,302,1,0,0,0,9,305,1,0,0,0,11,307,1,0,0,0,13,309,1,0,0,0,15,312,1,0,0,0,17,314,1,0,0,0,19,316,1,0,0,0,21,319,1,0,0,0,23,321,1,0,0,0,25,324,1,0,0,0,27,331,1,0,0,0,29,336,1,0,0,0,31,338,1,0,0,0,33,340,1,0,0,0,35,342,1,0,0,0,37,351,1,0,0,0,39,360,1,0,0,0,41,370,1,0,0,0,43,378,1,0,0,0,45,381,1,0,0,0,47,383,1,0,0,0,49,385,1,0,0,0,51,392,1,0,0,0,53,395,1,0,0,0,55,401,1,0,0,0,57,407,1,0,0,0,59,411,1,0,0,0,61,413,1,0,0,0,63,415,1,0,0,0,65,417,1,0,0,0,67,419,1,0,0,0,69,421,1,0,0,0,71,423,1,0,0,0,73,426,1,0,0,0,75,429,1,0,0,0,77,436,1,0,0,0,79,445,1,0,0,0,81,454,1,0,0,0,83,462,1,0,0,0,85,468,1,0,0,0,87,473,1,0,0,0,89,475,1,0,0,0,91,477,1,0,0,0,93,485,1,0,0,0,95,487,1,0,0,0,97,495,1,0,0,0,99,498,1,0,0,0,101,505,1,0,0,0,103,513,1,0,0,0,105,522,1,0,0,0,107,525,1,0,0,0,109,530,1,0,0,0,111,534,1,0,0,0,113,540,1,0,0,0,115,546,1,0,0,0,117,556,1,0,0,0,119,565,1,0,0,0,121,568,1,0,0,0,123,575,1,0,0,0,125,581,1,0,0,0,127,586,1,0,0,0,129,593,1,0,0,0,131,597,1,0,0,0,133,602,1,0,0,0,135,609,1,0,0,0,137,614,1,0,0,0,139,617,1,0,0,0,141,620,1,0,0,0,143,624,1,0,0,0,145,626,1,0,0,0,147,633,1,0,0,0,149,635,1,0,0,0,151,638,1,0,0,0,153,641,1,0,0,0,155,644,1,0,0,0,157,647,1,0,0,0,159,649,1,0,0,0,161,652,1,0,0,0,163,655,1,0,0,0,165,658,1,0,0,0,167,662,1,0,0,0,169,666,1,0,0,0,171,669,1,0,0,0,173,672,1,0,0,0,175,675,1,0,0,0,177,678,1,0,0,0,179,681,1,0,0,0,181,685,1,0,0,0,183,688,1,0,0,0,185,691,1,0,0,0,187,698,1,0,0,0,189,703,1,0,0,0,191,711,1,0,0,0,193,714,1,0,0,0,195,723,1,0,0,0,197,732,1,0,0,0,199,739,1,0,0,0,201,747,1,0,0,0,203,756,1,0,0,0,205,771,1,0,0,0,207,870,1,0,0,0,209,877,1,0,0,0,211,888,1,0,0,0,213,896,1,0,0,0,215,905,1,0,0,0,217,915,1,0,0,0,219,919,1,0,0,0,221,985,1,0,0,0,223,987,1,0,0,0,225,1003,1,0,0,0,227,1175,1,0,0,0,229,1177,1,0,0,0,231,1187,1,0,0,0,233,1193,1,0,0,0,235,1202,1,0,0,0,237,1212,1,0,0,0,239,1222,1,0,0,0,241,1231,1,0,0,0,243,1237,1,0,0,0,245,1246,1,0,0,0,247,1254,1,0,0,0,249,1263,1,0,0,0,251,1271,1,0,0,0,253,1279,1,0,0,0,255,1286,1,0,0,0,257,1294,1,0,0,0,259,1299,1,0,0,0,261,1304,1,0,0,0,263,1309,1,0,0,0,265,1316,1,0,0,0,267,1328,1,0,0,0,269,1337,1,0,0,0,271,1345,1,0,0,0,273,1352,1,0,0,0,275,1354,1,0,0,0,277,1363,1,0,0,0,279,1386,1,0,0,0,281,1391,1,0,0,0,283,1394,1,0,0,0,285,1413,1,0,0,0,287,1419,1,0,0,0,289,1433,1,0,0,0,291,292,5,112,0,0,292,293,5,114,0,0,293,294,5,97,0,0,294,295,5,103,0,0,295,296,5,109,0,0,296,297,5,97,0,0,297,2,1,0,0,0,298,299,5,59,0,0,299,4,1,0,0,0,300,301,5,42,0,0,301,6,1,0,0,0,302,303,5,124,0,0,303,304,5,124,0,0,304,8,1,0,0,0,305,306,5,94,0,0,306,10,1,0,0,0,307,308,5,126,0,0,308,12,1,0,0,0,309,310,5,62,0,0,310,311,5,61,0,0,311,14,1,0,0,0,312,313,5,62,0,0,313,16,1,0,0,0,314,315,5,60,0,0,315,18,1,0,0,0,316,317,5,60,0,0,317,318,5,61,0,0,318,20,1,0,0,0,319,320,5,61,0,0,320,22,1,0,0,0,321,322,5,97,0,0,322,323,5,115,0,0,323,24,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,26,1,0,0,0,331,332,5,102,0,0,332,333,5,114,0,0,333,334,5,111,0,0,334,335,5,109,0,0,335,28,1,0,0,0,336,337,5,123,0,0,337,30,1,0,0,0,338,339,5,44,0,0,339,32,1,0,0,0,340,341,5,125,0,0,341,34,1,0,0,0,342,343,5,97,0,0,343,344,5,98,0,0,344,345,5,115,0,0,345,346,5,116,0,0,346,347,5,114,0,0,347,348,5,97,0,0,348,349,5,99,0,0,349,350,5,116,0,0,350,36,1,0,0,0,351,352,5,99,0,0,352,353,5,111,0,0,353,354,5,110,0,0,354,355,5,116,0,0,355,356,5,114,0,0,356,357,5,97,0,0,357,358,5,99,0,0,358,359,5,116,0,0,359,38,1,0,0,0,360,361,5,105,0,0,361,362,5,110,0,0,362,363,5,116,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365,366,5,102,0,0,366,367,5,97,0,0,367,368,5,99,0,0,368,369,5,101,0,0,369,40,1,0,0,0,370,371,5,108,0,0,371,372,5,105,0,0,372,373,5,98,0,0,373,374,5,114,0,0,374,375,5,97,0,0,375,376,5,114,0,0,376,377,5,121,0,0,377,42,1,0,0,0,378,379,5,105,0,0,379,380,5,115,0,0,380,44,1,0,0,0,381,382,5,40,0,0,382,46,1,0,0,0,383,384,5,41,0,0,384,48,1,0,0,0,385,386,5,108,0,0,386,387,5,97,0,0,387,388,5,121,0,0,388,389,5,111,0,0,389,390,5,117,0,0,390,391,5,116,0,0,391,50,1,0,0,0,392,393,5,97,0,0,393,394,5,116,0,0,394,52,1,0,0,0,395,396,5,101,0,0,396,397,5,114,0,0,397,398,5,114,0,0,398,399,5,111,0,0,399,400,5,114,0,0,400,54,1,0,0,0,401,402,5,117,0,0,402,403,5,115,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,103,0,0,406,56,1,0,0,0,407,408,5,102,0,0,408,409,5,111,0,0,409,410,5,114,0,0,410,58,1,0,0,0,411,412,5,124,0,0,412,60,1,0,0,0,413,414,5,38,0,0,414,62,1,0,0,0,415,416,5,43,0,0,416,64,1,0,0,0,417,418,5,45,0,0,418,66,1,0,0,0,419,420,5,47,0,0,420,68,1,0,0,0,421,422,5,37,0,0,422,70,1,0,0,0,423,424,5,61,0,0,424,425,5,61,0,0,425,72,1,0,0,0,426,427,5,33,0,0,427,428,5,61,0,0,428,74,1,0,0,0,429,430,5,115,0,0,430,431,5,116,0,0,431,432,5,114,0,0,432,433,5,117,0,0,433,434,5,99,0,0,434,435,5,116,0,0,435,76,1,0,0,0,436,437,5,109,0,0,437,438,5,111,0,0,438,439,5,100,0,0,439,440,5,105,0,0,440,441,5,102,0,0,441,442,5,105,0,0,442,443,5,101,0,0,443,444,5,114,0,0,444,78,1,0,0,0,445,446,5,102,0,0,446,447,5,117,0,0,447,448,5,110,0,0,448,449,5,99,0,0,449,450,5,116,0,0,450,451,5,105,0,0,451,452,5,111,0,0,452,453,5,110,0,0,453,80,1,0,0,0,454,455,5,114,0,0,455,456,5,101,0,0,456,457,5,116,0,0,457,458,5,117,0,0,458,459,5,114,0,0,459,460,5,110,0,0,460,461,5,115,0,0,461,82,1,0,0,0,462,463,5,101,0,0,463,464,5,118,0,0,464,465,5,101,0,0,465,466,5,110,0,0,466,467,5,116,0,0,467,84,1,0,0,0,468,469,5,101,0,0,469,470,5,110,0,0,470,471,5,117,0,0,471,472,5,109,0,0,472,86,1,0,0,0,473,474,5,91,0,0,474,88,1,0,0,0,475,476,5,93,0,0,476,90,1,0,0,0,477,478,5,97,0,0,478,479,5,100,0,0,479,480,5,100,0,0,480,481,5,114,0,0,481,482,5,101,0,0,482,483,5,115,0,0,483,484,5,115,0,0,484,92,1,0,0,0,485,486,5,46,0,0,486,94,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489,490,5,112,0,0,490,491,5,112,0,0,491,492,5,105,0,0,492,493,5,110,0,0,493,494,5,103,0,0,494,96,1,0,0,0,495,496,5,61,0,0,496,497,5,62,0,0,497,98,1,0,0,0,498,499,5,109,0,0,499,500,5,101,0,0,500,501,5,109,0,0,501,502,5,111,0,0,502,503,5,114,0,0,503,504,5,121,0,0,504,100,1,0,0,0,505,506,5,115,0,0,506,507,5,116,0,0,507,508,5,111,0,0,508,509,5,114,0,0,509,510,5,97,0,0,510,511,5,103,0,0,511,512,5,101,0,0,512,102,1,0,0,0,513,514,5,99,0,0,514,515,5,97,0,0,515,516,5,108,0,0,516,517,5,108,0,0,517,518,5,100,0,0,518,519,5,97,0,0,519,520,5,116,0,0,520,521,5,97,0,0,521,104,1,0,0,0,522,523,5,105,0,0,523,524,5,102,0,0,524,106,1,0,0,0,525,526,5,101,0,0,526,527,5,108,0,0,527,528,5,115,0,0,528,529,5,101,0,0,529,108,1,0,0,0,530,531,5,116,0,0,531,532,5,114,0,0,532,533,5,121,0,0,533,110,1,0,0,0,534,535,5,99,0,0,535,536,5,97,0,0,536,537,5,116,0,0,537,538,5,99,0,0,538,539,5,104,0,0,539,112,1,0,0,0,540,541,5,119,0,0,541,542,5,104,0,0,542,543,5,105,0,0,543,544,5,108,0,0,544,545,5,101,0,0,545,114,1,0,0,0,546,547,5,117,0,0,547,548,5,110,0,0,548,549,5,99,0,0,549,550,5,104,0,0,550,551,5,101,0,0,551,552,5,99,0,0,552,553,5,107,0,0,553,554,5,101,0,0,554,555,5,100,0,0,555,116,1,0,0,0,556,557,5,97,0,0,557,558,5,115,0,0,558,559,5,115,0,0,559,560,5,101,0,0,560,561,5,109,0,0,561,562,5,98,0,0,562,563,5,108,0,0,563,564,5,121,0,0,564,118,1,0,0,0,565,566,5,100,0,0,566,567,5,111,0,0,567,120,1,0,0,0,568,569,5,114,0,0,569,570,5,101,0,0,570,571,5,116,0,0,571,572,5,117,0,0,572,573,5,114,0,0,573,574,5,110,0,0,574,122,1,0,0,0,575,576,5,116,0,0,576,577,5,104,0,0,577,578,5,114,0,0,578,579,5,111,0,0,579,580,5,119,0,0,580,124,1,0,0,0,581,582,5,101,0,0,582,583,5,109,0,0,583,584,5,105,0,0,584,585,5,116,0,0,585,126,1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,118,0,0,589,590,5,101,0,0,590,591,5,114,0,0,591,592,5,116,0,0,592,128,1,0,0,0,593,594,5,118,0,0,594,595,5,97,0,0,595,596,5,114,0,0,596,130,1,0,0,0,597,598,5,98,0,0,598,599,5,111,0,0,599,600,5,111,0,0,600,601,5,108,0,0,601,132,1,0,0,0,602,603,5,115,0,0,603,604,5,116,0,0,604,605,5,114,0,0,605,606,5,105,0,0,606,607,5,110,0,0,607,608,5,103,0,0,608,134,1,0,0,0,609,610,5,98,0,0,610,611,5,121,0,0,611,612,5,116,0,0,612,613,5,101,0,0,613,136,1,0,0,0,614,615,5,43,0,0,615,616,5,43,0,0,616,138,1,0,0,0,617,618,5,45,0,0,618,619,5,45,0,0,619,140,1,0,0,0,620,621,5,110,0,0,621,622,5,101,0,0,622,623,5,119,0,0,623,142,1,0,0,0,624,625,5,58,0,0,625,144,1,0,0,0,626,627,5,100,0,0,627,628,5,101,0,0,628,629,5,108,0,0,629,630,5,101,0,0,630,631,5,116,0,0,631,632,5,101,0,0,632,146,1,0,0,0,633,634,5,33,0,0,634,148,1,0,0,0,635,636,5,42,0,0,636,637,5,42,0,0,637,150,1,0,0,0,638,639,5,60,0,0,639,640,5,60,0,0,640,152,1,0,0,0,641,642,5,62,0,0,642,643,5,62,0,0,643,154,1,0,0,0,644,645,5,38,0,0,645,646,5,38,0,0,646,156,1,0,0,0,647,648,5,63,0,0,648,158,1,0,0,0,649,650,5,124,0,0,650,651,5,61,0,0,651,160,1,0,0,0,652,653,5,94,0,0,653,654,5,61,0,0,654,162,1,0,0,0,655,656,5,38,0,0,656,657,5,61,0,0,657,164,1,0,0,0,658,659,5,60,0,0,659,660,5,60,0,0,660,661,5,61,0,0,661,166,1,0,0,0,662,663,5,62,0,0,663,664,5,62,0,0,664,665,5,61,0,0,665,168,1,0,0,0,666,667,5,43,0,0,667,668,5,61,0,0,668,170,1,0,0,0,669,670,5,45,0,0,670,671,5,61,0,0,671,172,1,0,0,0,672,673,5,42,0,0,673,674,5,61,0,0,674,174,1,0,0,0,675,676,5,47,0,0,676,677,5,61,0,0,677,176,1,0,0,0,678,679,5,37,0,0,679,680,5,61,0,0,680,178,1,0,0,0,681,682,5,108,0,0,682,683,5,101,0,0,683,684,5,116,0,0,684,180,1,0,0,0,685,686,5,58,0,0,686,687,5,61,0,0,687,182,1,0,0,0,688,689,5,61,0,0,689,690,5,58,0,0,690,184,1,0,0,0,691,692,5,115,0,0,692,693,5,119,0,0,693,694,5,105,0,0,694,695,5,116,0,0,695,696,5,99,0,0,696,697,5,104,0,0,697,186,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,115,0,0,701,702,5,101,0,0,702,188,1,0,0,0,703,704,5,100,0,0,704,705,5,101,0,0,705,706,5,102,0,0,706,707,5,97,0,0,707,708,5,117,0,0,708,709,5,108,0,0,709,710,5,116,0,0,710,190,1,0,0,0,711,712,5,45,0,0,712,713,5,62,0,0,713,192,1,0,0,0,714,715,5,99,0,0,715,716,5,97,0,0,716,717,5,108,0,0,717,718,5,108,0,0,718,719,5,98,0,0,719,720,5,97,0,0,720,721,5,99,0,0,721,722,5,107,0,0,722,194,1,0,0,0,723,724,5,111,0,0,724,725,5,118,0,0,725,726,5,101,0,0,726,727,5,114,0,0,727,728,5,114,0,0,728,729,5,105,0,0,729,730,5,100,0,0,730,731,5,101,0,0,731,196,1,0,0,0,732,733,5,105,0,0,733,734,5,110,0,0,734,735,5,116,0,0,735,737,1,0,0,0,736,738,3,207,103,0,737,736,1,0,0,0,737,738,1,0,0,0,738,198,1,0,0,0,739,740,5,117,0,0,740,741,5,105,0,0,741,742,5,110,0,0,742,743,5,116,0,0,743,745,1,0,0,0,744,746,3,207,103,0,745,744,1,0,0,0,745,746,1,0,0,0,746,200,1,0,0,0,747,748,5,98,0,0,748,749,5,121,0,0,749,750,5,116,0,0,750,751,5,101,0,0,751,752,5,115,0,0,752,754,1,0,0,0,753,755,3,209,104,0,754,753,1,0,0,0,754,755,1,0,0,0,755,202,1,0,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,207,103,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,204,1,0,0,0,771,772,5,117,0,0,772,773,5,102,0,0,773,774,5,105,0,0,774,775,5,120,0,0,775,776,5,101,0,0,776,777,5,100,0,0,777,785,1,0,0,0,778,779,3,207,103,0,779,781,5,120,0,0,780,782,7,0,0,0,781,780,1,0,0,0,782,783,1,0,0,0,783,781,1,0,0,0,783,784,1,0,0,0,784,786,1,0,0,0,785,778,1,0,0,0,785,786,1,0,0,0,786,206,1,0,0,0,787,871,5,56,0,0,788,789,5,49,0,0,789,871,5,54,0,0,790,791,5,50,0,0,791,871,5,52,0,0,792,793,5,51,0,0,793,871,5,50,0,0,794,795,5,52,0,0,795,871,5,48,0,0,796,797,5,52,0,0,797,871,5,56,0,0,798,799,5,53,0,0,799,871,5,54,0,0,800,801,5,54,0,0,801,871,5,52,0,0,802,803,5,55,0,0,803,871,5,50,0,0,804,805,5,56,0,0,805,871,5,48,0,0,806,807,5,56,0,0,807,871,5,56,0,0,808,809,5,57,0,0,809,871,5,54,0,0,810,811,5,49,0,0,811,812,5,48,0,0,812,871,5,52,0,0,813,814,5,49,0,0,814,815,5,49,0,0,815,871,5,50,0,0,816,817,5,49,0,0,817,818,5,50,0,0,818,871,5,48,0,0,819,820,5,49,0,0,820,821,5,50,0,0,821,871,5,56,0,0,822,823,5,49,0,0,823,824,5,51,0,0,824,871,5,54,0,0,825,826,5,49,0,0,826,827,5,52,0,0,827,871,5,52,0,0,828,829,5,49,0,0,829,830,5,53,0,0,830,871,5,50,0,0,831,832,5,49,0,0,832,833,5,54,0,0,833,871,5,48,0,0,834,835,5,49,0,0,835,836,5,54,0,0,836,871,5,56,0,0,837,838,5,49,0,0,838,839,5,55,0,0,839,871,5,54,0,0,840,841,5,49,0,0,841,842,5,56,0,0,842,871,5,52,0,0,843,844,5,49,0,0,844,845,5,57,0,0,845,871,5,50,0,0,846,847,5,50,0,0,847,848,5,48,0,0,848,871,5,48,0,0,849,850,5,50,0,0,850,851,5,48,0,0,851,871,5,56,0,0,852,853,5,50,0,0,853,854,5,49,0,0,854,871,5,54,0,0,855,856,5,50,0,0,856,857,5,50,0,0,857,871,5,52,0,0,858,859,5,50,0,0,859,860,5,51,0,0,860,871,5,50,0,0,861,862,5,50,0,0,862,863,5,52,0,0,863,871,5,48,0,0,864,865,5,50,0,0,865,866,5,52,0,0,866,871,5,56,0,0,867,868,5,50,0,0,868,869,5,53,0,0,869,871,5,54,0,0,870,787,1,0,0,0,870,788,1,0,0,0,870,790,1,0,0,0,870,792,1,0,0,0,870,794,1,0,0,0,870,796,1,0,0,0,870,798,1,0,0,0,870,800,1,0,0,0,870,802,1,0,0,0,870,804,1,0,0,0,870,806,1,0,0,0,870,808,1,0,0,0,870,810,1,0,0,0,870,813,1,0,0,0,870,816,1,0,0,0,870,819,1,0,0,0,870,822,1,0,0,0,870,825,1,0,0,0,870,828,1,0,0,0,870,831,1,0,0,0,870,834,1,0,0,0,870,837,1,0,0,0,870,840,1,0,0,0,870,843,1,0,0,0,870,846,1,0,0,0,870,849,1,0,0,0,870,852,1,0,0,0,870,855,1,0,0,0,870,858,1,0,0,0,870,861,1,0,0,0,870,864,1,0,0,0,870,867,1,0,0,0,871,208,1,0,0,0,872,878,7,1,0,0,873,874,7,2,0,0,874,878,7,0,0,0,875,876,5,51,0,0,876,878,7,3,0,0,877,872,1,0,0,0,877,873,1,0,0,0,877,875,1,0,0,0,878,210,1,0,0,0,879,880,5,116,0,0,880,881,5,114,0,0,881,882,5,117,0,0,882,889,5,101,0,0,883,884,5,102,0,0,884,885,5,97,0,0,885,886,5,108,0,0,886,887,5,115,0,0,887,889,5,101,0,0,888,879,1,0,0,0,888,883,1,0,0,0,889,212,1,0,0,0,890,897,3,215,107,0,891,893,3,215,107,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,895,5,46,0,0,895,897,3,215,107,0,896,890,1,0,0,0,896,892,1,0,0,0,897,903,1,0,0,0,898,900,7,4,0,0,899,901,5,45,0,0,900,899,1,0,0,0,900,901,1,0,0,0,901,902,1,0,0,0,902,904,3,215,107,0,903,898,1,0,0,0,903,904,1,0,0,0,904,214,1,0,0,0,905,912,7,0,0,0,906,908,5,95,0,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0,0,909,911,7,0,0,0,910,907,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,216,1,0,0,0,914,912,1,0,0,0,915,916,5,48,0,0,916,917,7,5,0,0,917,918,3,219,109,0,918,218,1,0,0,0,919,926,3,225,112,0,920,922,5,95,0,0,921,920,1,0,0,0,921,922,1,0,0,0,922,923,1,0,0,0,923,925,3,225,112,0,924,921,1,0,0,0,925,928,1,0,0,0,926,924,1,0,0,0,926,927,1,0,0,0,927,220,1,0,0,0,928,926,1,0,0,0,929,930,5,119,0,0,930,931,5,101,0,0,931,986,5,105,0,0,932,933,5,103,0,0,933,934,5,119,0,0,934,935,5,101,0,0,935,986,5,105,0,0,936,937,5,115,0,0,937,938,5,122,0,0,938,939,5,97,0,0,939,940,5,98,0,0,940,986,5,111,0,0,941,942,5,102,0,0,942,943,5,105,0,0,943,944,5,110,0,0,944,945,5,110,0,0,945,946,5,101,0,0,946,986,5,121,0,0,947,948,5,101,0,0,948,949,5,116,0,0,949,950,5,104,0,0,950,951,5,101,0,0,951,986,5,114,0,0,952,953,5,115,0,0,953,954,5,101,0,0,954,955,5,99,0,0,955,956,5,111,0,0,956,957,5,110,0,0,957,958,5,100,0,0,958,986,5,115,0,0,959,960,5,109,0,0,960,961,5,105,0,0,961,962,5,110,0,0,962,963,5,117,0,0,963,964,5,116,0,0,964,965,5,101,0,0,965,986,5,115,0,0,966,967,5,104,0,0,967,968,5,111,0,0,968,969,5,117,0,0,969,970,5,114,0,0,970,986,5,115,0,0,971,972,5,100,0,0,972,973,5,97,0,0,973,974,5,121,0,0,974,986,5,115,0,0,975,976,5,119,0,0,976,977,5,101,0,0,977,978,5,101,0,0,978,979,5,107,0,0,979,986,5,115,0,0,980,981,5,121,0,0,981,982,5,101,0,0,982,983,5,97,0,0,983,984,5,114,0,0,984,986,5,115,0,0,985,929,1,0,0,0,985,932,1,0,0,0,985,936,1,0,0,0,985,941,1,0,0,0,985,947,1,0,0,0,985,952,1,0,0,0,985,959,1,0,0,0,985,966,1,0,0,0,985,971,1,0,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,222,1,0,0,0,987,988,5,104,0,0,988,989,5,101,0,0,989,990,5,120,0,0,990,1001,1,0,0,0,991,993,5,34,0,0,992,994,3,219,109,0,993,992,1,0,0,0,993,994,1,0,0,0,994,995,1,0,0,0,995,1002,5,34,0,0,996,998,5,39,0,0,997,999,3,219,109,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1002,5,39,0,0,1001,991,1,0,0,0,1001,996,1,0,0,0,1002,224,1,0,0,0,1003,1004,7,6,0,0,1004,226,1,0,0,0,1005,1006,5,97,0,0,1006,1007,5,102,0,0,1007,1008,5,116,0,0,1008,1009,5,101,0,0,1009,1176,5,114,0,0,1010,1011,5,97,0,0,1011,1012,5,108,0,0,1012,1013,5,105,0,0,1013,1014,5,97,0,0,1014,1176,5,115,0,0,1015,1016,5,97,0,0,1016,1017,5,112,0,0,1017,1018,5,112,0,0,1018,1019,5,108,0,0,1019,1176,5,121,0,0,1020,1021,5,97,0,0,1021,1022,5,117,0,0,1022,1023,5,116,0,0,1023,1176,5,111,0,0,1024,1025,5,99,0,0,1025,1026,5,97,0,0,1026,1027,5,115,0,0,1027,1176,5,101,0,0,1028,1029,5,99,0,0,1029,1030,5,111,0,0,1030,1031,5,112,0,0,1031,1032,5,121,0,0,1032,1033,5,111,0,0,1033,1176,5,102,0,0,1034,1035,5,100,0,0,1035,1036,5,101,0,0,1036,1037,5,102,0,0,1037,1038,5,97,0,0,1038,1039,5,117,0,0,1039,1040,5,108,0,0,1040,1176,5,116,0,0,1041,1042,5,100,0,0,1042,1043,5,101,0,0,1043,1044,5,102,0,0,1044,1045,5,105,0,0,1045,1046,5,110,0,0,1046,1176,5,101,0,0,1047,1048,5,102,0,0,1048,1049,5,105,0,0,1049,1050,5,110,0,0,1050,1051,5,97,0,0,1051,1176,5,108,0,0,1052,1053,5,105,0,0,1053,1054,5,109,0,0,1054,1055,5,112,0,0,1055,1056,5,108,0,0,1056,1057,5,101,0,0,1057,1058,5,109,0,0,1058,1059,5,101,0,0,1059,1060,5,110,0,0,1060,1061,5,116,0,0,1061,1176,5,115,0,0,1062,1063,5,105,0,0,1063,1176,5,110,0,0,1064,1065,5,105,0,0,1065,1066,5,110,0,0,1066,1067,5,108,0,0,1067,1068,5,105,0,0,1068,1069,5,110,0,0,1069,1176,5,101,0,0,1070,1071,5,108,0,0,1071,1072,5,101,0,0,1072,1176,5,116,0,0,1073,1074,5,109,0,0,1074,1075,5,97,0,0,1075,1076,5,99,0,0,1076,1077,5,114,0,0,1077,1176,5,111,0,0,1078,1079,5,109,0,0,1079,1080,5,97,0,0,1080,1081,5,116,0,0,1081,1082,5,99,0,0,1082,1176,5,104,0,0,1083,1084,5,109,0,0,1084,1085,5,117,0,0,1085,1086,5,116,0,0,1086,1087,5,97,0,0,1087,1088,5,98,0,0,1088,1089,5,108,0,0,1089,1176,5,101,0,0,1090,1091,5,110,0,0,1091,1092,5,117,0,0,1092,1093,5,108,0,0,1093,1176,5,108,0,0,1094,1095,5,111,0,0,1095,1176,5,102,0,0,1096,1097,5,112,0,0,1097,1098,5,97,0,0,1098,1099,5,114,0,0,1099,1100,5,116,0,0,1100,1101,5,105,0,0,1101,1102,5,97,0,0,1102,1176,5,108,0,0,1103,1104,5,112,0,0,1104,1105,5,114,0,0,1105,1106,5,111,0,0,1106,1107,5,109,0,0,1107,1108,5,105,0,0,1108,1109,5,115,0,0,1109,1176,5,101,0,0,1110,1111,5,114,0,0,1111,1112,5,101,0,0,1112,1113,5,102,0,0,1113,1114,5,101,0,0,1114,1115,5,114,0,0,1115,1116,5,101,0,0,1116,1117,5,110,0,0,1117,1118,5,99,0,0,1118,1176,5,101,0,0,1119,1120,5,114,0,0,1120,1121,5,101,0,0,1121,1122,5,108,0,0,1122,1123,5,111,0,0,1123,1124,5,99,0,0,1124,1125,5,97,0,0,1125,1126,5,116,0,0,1126,1127,5,97,0,0,1127,1128,5,98,0,0,1128,1129,5,108,0,0,1129,1176,5,101,0,0,1130,1131,5,115,0,0,1131,1132,5,101,0,0,1132,1133,5,97,0,0,1133,1134,5,108,0,0,1134,1135,5,101,0,0,1135,1176,5,100,0,0,1136,1137,5,115,0,0,1137,1138,5,105,0,0,1138,1139,5,122,0,0,1139,1140,5,101,0,0,1140,1141,5,111,0,0,1141,1176,5,102,0,0,1142,1143,5,115,0,0,1143,1144,5,116,0,0,1144,1145,5,97,0,0,1145,1146,5,116,0,0,1146,1147,5,105,0,0,1147,1176,5,99,0,0,1148,1149,5,115,0,0,1149,1150,5,117,0,0,1150,1151,5,112,0,0,1151,1152,5,112,0,0,1152,1153,5,111,0,0,1153,1154,5,114,0,0,1154,1155,5,116,0,0,1155,1176,5,115,0,0,1156,1157,5,115,0,0,1157,1158,5,119,0,0,1158,1159,5,105,0,0,1159,1160,5,116,0,0,1160,1161,5,99,0,0,1161,1176,5,104,0,0,1162,1163,5,116,0,0,1163,1164,5,121,0,0,1164,1165,5,112,0,0,1165,1166,5,101,0,0,1166,1167,5,100,0,0,1167,1168,5,101,0,0,1168,1176,5,102,0,0,1169,1170,5,116,0,0,1170,1171,5,121,0,0,1171,1172,5,112,0,0,1172,1173,5,101,0,0,1173,1174,5,111,0,0,1174,1176,5,102,0,0,1175,1005,1,0,0,0,1175,1010,1,0,0,0,1175,1015,1,0,0,0,1175,1020,1,0,0,0,1175,1024,1,0,0,0,1175,1028,1,0,0,0,1175,1034,1,0,0,0,1175,1041,1,0,0,0,1175,1047,1,0,0,0,1175,1052,1,0,0,0,1175,1062,1,0,0,0,1175,1064,1,0,0,0,1175,1070,1,0,0,0,1175,1073,1,0,0,0,1175,1078,1,0,0,0,1175,1083,1,0,0,0,1175,1090,1,0,0,0,1175,1094,1,0,0,0,1175,1096,1,0,0,0,1175,1103,1,0,0,0,1175,1110,1,0,0,0,1175,1119,1,0,0,0,1175,1130,1,0,0,0,1175,1136,1,0,0,0,1175,1142,1,0,0,0,1175,1148,1,0,0,0,1175,1156,1,0,0,0,1175,1162,1,0,0,0,1175,1169,1,0,0,0,1176,228,1,0,0,0,1177,1178,5,97,0,0,1178,1179,5,110,0,0,1179,1180,5,111,0,0,1180,1181,5,110,0,0,1181,1182,5,121,0,0,1182,1183,5,109,0,0,1183,1184,5,111,0,0,1184,1185,5,117,0,0,1185,1186,5,115,0,0,1186,230,1,0,0,0,1187,1188,5,98,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,1191,5,97,0,0,1191,1192,5,107,0,0,1192,232,1,0,0,0,1193,1194,5,99,0,0,1194,1195,5,111,0,0,1195,1196,5,110,0,0,1196,1197,5,115,0,0,1197,1198,5,116,0,0,1198,1199,5,97,0,0,1199,1200,5,110,0,0,1200,1201,5,116,0,0,1201,234,1,0,0,0,1202,1203,5,116,0,0,1203,1204,5,114,0,0,1204,1205,5,97,0,0,1205,1206,5,110,0,0,1206,1207,5,115,0,0,1207,1208,5,105,0,0,1208,1209,5,101,0,0,1209,1210,5,110,0,0,1210,1211,5,116,0,0,1211,236,1,0,0,0,1212,1213,5,105,0,0,1213,1214,5,109,0,0,1214,1215,5,109,0,0,1215,1216,5,117,0,0,1216,1217,5,116,0,0,1217,1218,5,97,0,0,1218,1219,5,98,0,0,1219,1220,5,108,0,0,1220,1221,5,101,0,0,1221,238,1,0,0,0,1222,1223,5,99,0,0,1223,1224,5,111,0,0,1224,1225,5,110,0,0,1225,1226,5,116,0,0,1226,1227,5,105,0,0,1227,1228,5,110,0,0,1228,1229,5,117,0,0,1229,1230,5,101,0,0,1230,240,1,0,0,0,1231,1232,5,108,0,0,1232,1233,5,101,0,0,1233,1234,5,97,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,242,1,0,0,0,1237,1238,5,101,0,0,1238,1239,5,120,0,0,1239,1240,5,116,0,0,1240,1241,5,101,0,0,1241,1242,5,114,0,0,1242,1243,5,110,0,0,1243,1244,5,97,0,0,1244,1245,5,108,0,0,1245,244,1,0,0,0,1246,1247,5,105,0,0,1247,1248,5,110,0,0,1248,1249,5,100,0,0,1249,1250,5,101,0,0,1250,1251,5,120,0,0,1251,1252,5,101,0,0,1252,1253,5,100,0,0,1253,246,1,0,0,0,1254,1255,5,105,0,0,1255,1256,5,110,0,0,1256,1257,5,116,0,0,1257,1258,5,101,0,0,1258,1259,5,114,0,0,1259,1260,5,110,0,0,1260,1261,5,97,0,0,1261,1262,5,108,0,0,1262,248,1,0,0,0,1263,1264,5,112,0,0,1264,1265,5,97,0,0,1265,1266,5,121,0,0,1266,1267,5,97,0,0,1267,1268,5,98,0,0,1268,1269,5,108,0,0,1269,1270,5,101,0,0,1270,250,1,0,0,0,1271,1272,5,112,0,0,1272,1273,5,114,0,0,1273,1274,5,105,0,0,1274,1275,5,118,0,0,1275,1276,5,97,0,0,1276,1277,5,116,0,0,1277,1278,5,101,0,0,1278,252,1,0,0,0,1279,1280,5,112,0,0,1280,1281,5,117,0,0,1281,1282,5,98,0,0,1282,1283,5,108,0,0,1283,1284,5,105,0,0,1284,1285,5,99,0,0,1285,254,1,0,0,0,1286,1287,5,118,0,0,1287,1288,5,105,0,0,1288,1289,5,114,0,0,1289,1290,5,116,0,0,1290,1291,5,117,0,0,1291,1292,5,97,0,0,1292,1293,5,108,0,0,1293,256,1,0,0,0,1294,1295,5,112,0,0,1295,1296,5,117,0,0,1296,1297,5,114,0,0,1297,1298,5,101,0,0,1298,258,1,0,0,0,1299,1300,5,116,0,0,1300,1301,5,121,0,0,1301,1302,5,112,0,0,1302,1303,5,101,0,0,1303,260,1,0,0,0,1304,1305,5,118,0,0,1305,1306,5,105,0,0,1306,1307,5,101,0,0,1307,1308,5,119,0,0,1308,262,1,0,0,0,1309,1310,5,103,0,0,1310,1311,5,108,0,0,1311,1312,5,111,0,0,1312,1313,5,98,0,0,1313,1314,5,97,0,0,1314,1315,5,108,0,0,1315,264,1,0,0,0,1316,1317,5,99,0,0,1317,1318,5,111,0,0,1318,1319,5,110,0,0,1319,1320,5,115,0,0,1320,1321,5,116,0,0,1321,1322,5,114,0,0,1322,1323,5,117,0,0,1323,1324,5,99,0,0,1324,1325,5,116,0,0,1325,1326,5,111,0,0,1326,1327,5,114,0,0,1327,266,1,0,0,0,1328,1329,5,102,0,0,1329,1330,5,97,0,0,1330,1331,5,108,0,0,1331,1332,5,108,0,0,1332,1333,5,98,0,0,1333,1334,5,97,0,0,1334,1335,5,99,0,0,1335,1336,5,107,0,0,1336,268,1,0,0,0,1337,1338,5,114,0,0,1338,1339,5,101,0,0,1339,1340,5,99,0,0,1340,1341,5,101,0,0,1341,1342,5,105,0,0,1342,1343,5,118,0,0,1343,1344,5,101,0,0,1344,270,1,0,0,0,1345,1349,3,273,136,0,1346,1348,3,275,137,0,1347,1346,1,0,0,0,1348,1351,1,0,0,0,1349,1347,1,0,0,0,1349,1350,1,0,0,0,1350,272,1,0,0,0,1351,1349,1,0,0,0,1352,1353,7,7,0,0,1353,274,1,0,0,0,1354,1355,7,8,0,0,1355,276,1,0,0,0,1356,1357,5,117,0,0,1357,1358,5,110,0,0,1358,1359,5,105,0,0,1359,1360,5,99,0,0,1360,1361,5,111,0,0,1361,1362,5,100,0,0,1362,1364,5,101,0,0,1363,1356,1,0,0,0,1363,1364,1,0,0,0,1364,1381,1,0,0,0,1365,1369,5,34,0,0,1366,1368,3,279,139,0,1367,1366,1,0,0,0,1368,1371,1,0,0,0,1369,1367,1,0,0,0,1369,1370,1,0,0,0,1370,1372,1,0,0,0,1371,1369,1,0,0,0,1372,1382,5,34,0,0,1373,1377,5,39,0,0,1374,1376,3,281,140,0,1375,1374,1,0,0,0,1376,1379,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1380,1,0,0,0,1379,1377,1,0,0,0,1380,1382,5,39,0,0,1381,1365,1,0,0,0,1381,1373,1,0,0,0,1382,278,1,0,0,0,1383,1387,8,9,0,0,1384,1385,5,92,0,0,1385,1387,9,0,0,0,1386,1383,1,0,0,0,1386,1384,1,0,0,0,1387,280,1,0,0,0,1388,1392,8,10,0,0,1389,1390,5,92,0,0,1390,1392,9,0,0,0,1391,1388,1,0,0,0,1391,1389,1,0,0,0,1392,282,1,0,0,0,1393,1395,7,0,0,0,1394,1393,1,0,0,0,1395,1396,1,0,0,0,1396,1394,1,0,0,0,1396,1397,1,0,0,0,1397,1398,1,0,0,0,1398,1400,5,46,0,0,1399,1401,7,0,0,0,1400,1399,1,0,0,0,1401,1402,1,0,0,0,1402,1400,1,0,0,0,1402,1403,1,0,0,0,1403,1410,1,0,0,0,1404,1406,5,46,0,0,1405,1407,7,0,0,0,1406,1405,1,0,0,0,1407,1408,1,0,0,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1411,1,0,0,0,1410,1404,1,0,0,0,1410,1411,1,0,0,0,1411,284,1,0,0,0,1412,1414,7,11,0,0,1413,1412,1,0,0,0,1414,1415,1,0,0,0,1415,1413,1,0,0,0,1415,1416,1,0,0,0,1416,1417,1,0,0,0,1417,1418,6,142,0,0,1418,286,1,0,0,0,1419,1420,5,47,0,0,1420,1421,5,42,0,0,1421,1425,1,0,0,0,1422,1424,9,0,0,0,1423,1422,1,0,0,0,1424,1427,1,0,0,0,1425,1426,1,0,0,0,1425,1423,1,0,0,0,1426,1428,1,0,0,0,1427,1425,1,0,0,0,1428,1429,5,42,0,0,1429,1430,5,47,0,0,1430,1431,1,0,0,0,1431,1432,6,143,1,0,1432,288,1,0,0,0,1433,1434,5,47,0,0,1434,1435,5,47,0,0,1435,1439,1,0,0,0,1436,1438,8,12,0,0,1437,1436,1,0,0,0,1438,1441,1,0,0,0,1439,1437,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1439,1,0,0,0,1442,1443,6,144,1,0,1443,290,1,0,0,0,38,0,737,745,754,767,769,783,785,870,877,888,892,896,900,903,907,912,921,926,985,993,998,1001,1175,1349,1363,1369,1377,1381,1386,1391,1396,1402,1408,1410,1415,1425,1439,2,6,0,0,0,1,0],k.DecisionsToDFA=k._ATN.decisionToState.map((t,e)=>new p(t,e));var R=k,A=class t extends v{get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new y(this,t,e)}constructor(e){super(e),this._interp=new b(this,t._ATN,t.DecisionsToDFA,new E)}sourceUnit(){let e,r=new L(this,this._ctx,this.state);this.enterRule(r,0,t.RULE_sourceUnit);try{for(this.enterOuterAlt(r,1),this.state=217,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&507273218||!(e-38&-32)&&1<<e-38&2080392501||!(e-97&-32)&&1<<e-97&3498573949||!(e-129&-32)&&1<<e-129&7;){switch(this.state=215,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=204,this.pragmaDirective();break;case 2:this.state=205,this.importDirective();break;case 3:this.state=206,this.contractDefinition();break;case 4:this.state=207,this.enumDefinition();break;case 5:this.state=208,this.eventDefinition();break;case 6:this.state=209,this.structDefinition();break;case 7:this.state=210,this.functionDefinition();break;case 8:this.state=211,this.fileLevelConstant();break;case 9:this.state=212,this.customErrorDefinition();break;case 10:this.state=213,this.typeDefinition();break;case 11:this.state=214,this.usingForDeclaration()}this.state=219,this._errHandler.sync(this),e=this._input.LA(1)}this.state=220,this.match(t.EOF)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}pragmaDirective(){let e=new I(this,this._ctx,this.state);this.enterRule(e,2,t.RULE_pragmaDirective);try{this.enterOuterAlt(e,1),this.state=222,this.match(t.T__0),this.state=223,this.pragmaName(),this.state=224,this.pragmaValue(),this.state=225,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaName(){let e=new K(this,this._ctx,this.state);this.enterRule(e,4,t.RULE_pragmaName);try{this.enterOuterAlt(e,1),this.state=227,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaValue(){let e=new N(this,this._ctx,this.state);this.enterRule(e,6,t.RULE_pragmaValue);try{switch(this.state=232,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=229,this.match(t.T__2);break;case 2:this.enterOuterAlt(e,2),this.state=230,this.version();break;case 3:this.enterOuterAlt(e,3),this.state=231,this.expression(0)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}version(){let e,r=new O(this,this._ctx,this.state);this.enterRule(r,8,t.RULE_version);try{for(this.enterOuterAlt(r,1),this.state=234,this.versionConstraint(),this.state=241,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&4080||105===e||133===e;)this.state=236,this._errHandler.sync(this),e=this._input.LA(1),4===e&&(this.state=235,this.match(t.T__3)),this.state=238,this.versionConstraint(),this.state=243,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionOperator(){let e,r=new D(this,this._ctx,this.state);this.enterRule(r,10,t.RULE_versionOperator);try{this.enterOuterAlt(r,1),this.state=244,e=this._input.LA(1),-32&e||!(1<<e&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionConstraint(){let e,r=new P(this,this._ctx,this.state);this.enterRule(r,12,t.RULE_versionConstraint);try{switch(this.state=254,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=247,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=246,this.versionOperator()),this.state=249,this.match(t.VersionLiteral);break;case 2:this.enterOuterAlt(r,2),this.state=251,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=250,this.versionOperator()),this.state=253,this.match(t.DecimalNumber)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDeclaration(){let e,r=new q(this,this._ctx,this.state);this.enterRule(r,14,t.RULE_importDeclaration);try{this.enterOuterAlt(r,1),this.state=256,this.identifier(),this.state=259,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=257,this.match(t.T__11),this.state=258,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDirective(){let e,r=new M(this,this._ctx,this.state);this.enterRule(r,16,t.RULE_importDirective);try{switch(this.state=297,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=261,this.match(t.T__12),this.state=262,this.importPath(),this.state=265,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=263,this.match(t.T__11),this.state=264,this.identifier()),this.state=267,this.match(t.T__1);break;case 2:switch(this.enterOuterAlt(r,2),this.state=269,this.match(t.T__12),this.state=272,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=270,this.match(t.T__2);break;case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.state=271,this.identifier();break;default:throw new w(this)}this.state=276,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=274,this.match(t.T__11),this.state=275,this.identifier()),this.state=278,this.match(t.T__13),this.state=279,this.importPath(),this.state=280,this.match(t.T__1);break;case 3:for(this.enterOuterAlt(r,3),this.state=282,this.match(t.T__12),this.state=283,this.match(t.T__14),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=285,this.match(t.T__15),this.state=286,this.importDeclaration(),this.state=291,this._errHandler.sync(this),e=this._input.LA(1);this.state=292,this.match(t.T__16),this.state=293,this.match(t.T__13),this.state=294,this.importPath(),this.state=295,this.match(t.T__1)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importPath(){let e=new F(this,this._ctx,this.state);this.enterRule(e,18,t.RULE_importPath);try{this.enterOuterAlt(e,1),this.state=299,this.match(t.StringLiteralFragment)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractDefinition(){let e,r=new U(this,this._ctx,this.state);this.enterRule(r,20,t.RULE_contractDefinition);try{if(this.enterOuterAlt(r,1),this.state=302,this._errHandler.sync(this),e=this._input.LA(1),18===e&&(this.state=301,this.match(t.T__17)),this.state=304,e=this._input.LA(1),-32&e||!(1<<e&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=305,this.identifier(),this.state=307,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,15,this._ctx)&&(this.state=306,this.customStorageLayout()),this.state=318,this._errHandler.sync(this),e=this._input.LA(1),22===e)for(this.state=309,this.match(t.T__21),this.state=310,this.inheritanceSpecifier(),this.state=315,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=311,this.match(t.T__15),this.state=312,this.inheritanceSpecifier(),this.state=317,this._errHandler.sync(this),e=this._input.LA(1);for(this.state=321,this._errHandler.sync(this),e=this._input.LA(1),25===e&&(this.state=320,this.customStorageLayout()),this.state=323,this.match(t.T__14),this.state=327,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&503332864||!(e-38&-32)&&1<<e-38&2080392503||!(e-97&-32)&&1<<e-97&3498573949||!(e-129&-32)&&1<<e-129&7;)this.state=324,this.contractPart(),this.state=329,this._errHandler.sync(this),e=this._input.LA(1);this.state=330,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inheritanceSpecifier(){let e,r=new Y(this,this._ctx,this.state);this.enterRule(r,22,t.RULE_inheritanceSpecifier);try{this.enterOuterAlt(r,1),this.state=332,this.userDefinedTypeName(),this.state=338,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=333,this.match(t.T__22),this.state=335,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=334,this.expressionList()),this.state=337,this.match(t.T__23))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}customStorageLayout(){let e=new V(this,this._ctx,this.state);this.enterRule(e,24,t.RULE_customStorageLayout);try{this.enterOuterAlt(e,1),this.state=340,this.match(t.T__24),this.state=341,this.match(t.T__25),this.state=342,this.expression(0)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let e=new j(this,this._ctx,this.state);this.enterRule(e,26,t.RULE_contractPart);try{switch(this.state=353,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,22,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=344,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(e,2),this.state=345,this.usingForDeclaration();break;case 3:this.enterOuterAlt(e,3),this.state=346,this.structDefinition();break;case 4:this.enterOuterAlt(e,4),this.state=347,this.modifierDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=348,this.functionDefinition();break;case 6:this.enterOuterAlt(e,6),this.state=349,this.eventDefinition();break;case 7:this.enterOuterAlt(e,7),this.state=350,this.enumDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=351,this.customErrorDefinition();break;case 9:this.enterOuterAlt(e,9),this.state=352,this.typeDefinition()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateVariableDeclaration(){let e,r=new B(this,this._ctx,this.state);this.enterRule(r,28,t.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(r,1),this.state=355,this.typeName(0),this.state=365,this._errHandler.sync(this),e=this._input.LA(1);!(e-98&-32)&&1<<e-98&27377665;){switch(this.state=363,this._errHandler.sync(this),this._input.LA(1)){case 122:this.state=356,this.match(t.PublicKeyword);break;case 119:this.state=357,this.match(t.InternalKeyword);break;case 121:this.state=358,this.match(t.PrivateKeyword);break;case 112:this.state=359,this.match(t.ConstantKeyword);break;case 113:this.state=360,this.match(t.TransientKeyword);break;case 114:this.state=361,this.match(t.ImmutableKeyword);break;case 98:this.state=362,this.overrideSpecifier();break;default:throw new w(this)}this.state=367,this._errHandler.sync(this),e=this._input.LA(1)}this.state=368,this.identifier(),this.state=371,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=369,this.match(t.T__10),this.state=370,this.expression(0)),this.state=373,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}fileLevelConstant(){let e=new H(this,this._ctx,this.state);this.enterRule(e,30,t.RULE_fileLevelConstant);try{this.enterOuterAlt(e,1),this.state=375,this.typeName(0),this.state=376,this.match(t.ConstantKeyword),this.state=377,this.identifier(),this.state=378,this.match(t.T__10),this.state=379,this.expression(0),this.state=380,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}customErrorDefinition(){let e=new $(this,this._ctx,this.state);this.enterRule(e,32,t.RULE_customErrorDefinition);try{this.enterOuterAlt(e,1),this.state=382,this.match(t.T__26),this.state=383,this.identifier(),this.state=384,this.parameterList(),this.state=385,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeDefinition(){let e=new G(this,this._ctx,this.state);this.enterRule(e,34,t.RULE_typeDefinition);try{this.enterOuterAlt(e,1),this.state=387,this.match(t.TypeKeyword),this.state=388,this.identifier(),this.state=389,this.match(t.T__21),this.state=390,this.elementaryTypeName(),this.state=391,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForDeclaration(){let e,r=new z(this,this._ctx,this.state);this.enterRule(r,36,t.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(r,1),this.state=393,this.match(t.T__27),this.state=394,this.usingForObject(),this.state=395,this.match(t.T__28),this.state=398,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=396,this.match(t.T__2);break;case 14:case 25:case 26:case 27:case 40:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 97:case 99:case 100:case 101:case 102:case 103:case 116:case 120:case 127:case 128:case 130:case 131:this.state=397,this.typeName(0);break;default:throw new w(this)}this.state=401,this._errHandler.sync(this),e=this._input.LA(1),127===e&&(this.state=400,this.match(t.GlobalKeyword)),this.state=403,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObject(){let e,r=new W(this,this._ctx,this.state);this.enterRule(r,38,t.RULE_usingForObject);try{switch(this.state=417,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.enterOuterAlt(r,1),this.state=405,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(r,2),this.state=406,this.match(t.T__14),this.state=407,this.usingForObjectDirective(),this.state=412,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=408,this.match(t.T__15),this.state=409,this.usingForObjectDirective(),this.state=414,this._errHandler.sync(this),e=this._input.LA(1);this.state=415,this.match(t.T__16);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObjectDirective(){let e,r=new X(this,this._ctx,this.state);this.enterRule(r,40,t.RULE_usingForObjectDirective);try{this.enterOuterAlt(r,1),this.state=419,this.userDefinedTypeName(),this.state=422,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=420,this.match(t.T__11),this.state=421,this.userDefinableOperators())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}userDefinableOperators(){let e,r=new Q(this,this._ctx,this.state);this.enterRule(r,42,t.RULE_userDefinableOperators);try{this.enterOuterAlt(r,1),this.state=424,e=this._input.LA(1),!(-32&e)&&1<<e&3221227496||!(e-32&-32)&&1<<e-32&63?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}structDefinition(){let e,r=new J(this,this._ctx,this.state);this.enterRule(r,44,t.RULE_structDefinition);try{if(this.enterOuterAlt(r,1),this.state=426,this.match(t.T__37),this.state=427,this.identifier(),this.state=428,this.match(t.T__14),this.state=439,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=429,this.variableDeclaration(),this.state=430,this.match(t.T__1),this.state=436,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e;)this.state=431,this.variableDeclaration(),this.state=432,this.match(t.T__1),this.state=438,this._errHandler.sync(this),e=this._input.LA(1);this.state=441,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierDefinition(){let e,r=new Z(this,this._ctx,this.state);this.enterRule(r,46,t.RULE_modifierDefinition);try{for(this.enterOuterAlt(r,1),this.state=443,this.match(t.T__38),this.state=444,this.identifier(),this.state=446,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=445,this.parameterList()),this.state=452,this._errHandler.sync(this),e=this._input.LA(1);98===e||123===e;){switch(this.state=450,this._errHandler.sync(this),this._input.LA(1)){case 123:this.state=448,this.match(t.VirtualKeyword);break;case 98:this.state=449,this.overrideSpecifier();break;default:throw new w(this)}this.state=454,this._errHandler.sync(this),e=this._input.LA(1)}switch(this.state=457,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=455,this.match(t.T__1);break;case 15:this.state=456,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierInvocation(){let e,r=new tt(this,this._ctx,this.state);this.enterRule(r,48,t.RULE_modifierInvocation);try{this.enterOuterAlt(r,1),this.state=459,this.identifier(),this.state=465,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=460,this.match(t.T__22),this.state=462,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=461,this.expressionList()),this.state=464,this.match(t.T__23))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDefinition(){let e,r=new et(this,this._ctx,this.state);this.enterRule(r,50,t.RULE_functionDefinition);try{switch(this.enterOuterAlt(r,1),this.state=467,this.functionDescriptor(),this.state=468,this.parameterList(),this.state=469,this.modifierList(),this.state=471,this._errHandler.sync(this),e=this._input.LA(1),41===e&&(this.state=470,this.returnParameters()),this.state=475,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=473,this.match(t.T__1);break;case 15:this.state=474,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDescriptor(){let e,r=new rt(this,this._ctx,this.state);this.enterRule(r,52,t.RULE_functionDescriptor);try{switch(this.state=484,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(r,1),this.state=477,this.match(t.T__39),this.state=479,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=478,this.identifier());break;case 128:this.enterOuterAlt(r,2),this.state=481,this.match(t.ConstructorKeyword);break;case 129:this.enterOuterAlt(r,3),this.state=482,this.match(t.FallbackKeyword);break;case 130:this.enterOuterAlt(r,4),this.state=483,this.match(t.ReceiveKeyword);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}returnParameters(){let e=new st(this,this._ctx,this.state);this.enterRule(e,54,t.RULE_returnParameters);try{this.enterOuterAlt(e,1),this.state=486,this.match(t.T__40),this.state=487,this.parameterList()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierList(){let e,r=new it(this,this._ctx,this.state);this.enterRule(r,56,t.RULE_modifierList);try{for(this.enterOuterAlt(r,1),this.state=499,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&4023943171||130===e||131===e;){switch(this.state=497,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:this.state=489,this.match(t.ExternalKeyword);break;case 2:this.state=490,this.match(t.PublicKeyword);break;case 3:this.state=491,this.match(t.InternalKeyword);break;case 4:this.state=492,this.match(t.PrivateKeyword);break;case 5:this.state=493,this.match(t.VirtualKeyword);break;case 6:this.state=494,this.stateMutability();break;case 7:this.state=495,this.modifierInvocation();break;case 8:this.state=496,this.overrideSpecifier()}this.state=501,this._errHandler.sync(this),e=this._input.LA(1)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventDefinition(){let e,r=new nt(this,this._ctx,this.state);this.enterRule(r,58,t.RULE_eventDefinition);try{this.enterOuterAlt(r,1),this.state=502,this.match(t.T__41),this.state=503,this.identifier(),this.state=504,this.eventParameterList(),this.state=506,this._errHandler.sync(this),e=this._input.LA(1),110===e&&(this.state=505,this.match(t.AnonymousKeyword)),this.state=508,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}enumValue(){let e=new at(this,this._ctx,this.state);this.enterRule(e,60,t.RULE_enumValue);try{this.enterOuterAlt(e,1),this.state=510,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumDefinition(){let e,r=new ot(this,this._ctx,this.state);this.enterRule(r,62,t.RULE_enumDefinition);try{for(this.enterOuterAlt(r,1),this.state=512,this.match(t.T__42),this.state=513,this.identifier(),this.state=514,this.match(t.T__14),this.state=516,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=515,this.enumValue()),this.state=522,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=518,this.match(t.T__15),this.state=519,this.enumValue(),this.state=524,this._errHandler.sync(this),e=this._input.LA(1);this.state=525,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameterList(){let e,r=new ct(this,this._ctx,this.state);this.enterRule(r,64,t.RULE_parameterList);try{if(this.enterOuterAlt(r,1),this.state=527,this.match(t.T__22),this.state=536,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=528,this.parameter(),this.state=533,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=529,this.match(t.T__15),this.state=530,this.parameter(),this.state=535,this._errHandler.sync(this),e=this._input.LA(1);this.state=538,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameter(){let e,r=new lt(this,this._ctx,this.state);this.enterRule(r,66,t.RULE_parameter);try{this.enterOuterAlt(r,1),this.state=540,this.typeName(0),this.state=542,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,50,this._ctx)&&(this.state=541,this.storageLocation()),this.state=545,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=544,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameterList(){let e,r=new ht(this,this._ctx,this.state);this.enterRule(r,68,t.RULE_eventParameterList);try{if(this.enterOuterAlt(r,1),this.state=547,this.match(t.T__22),this.state=556,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=548,this.eventParameter(),this.state=553,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=549,this.match(t.T__15),this.state=550,this.eventParameter(),this.state=555,this._errHandler.sync(this),e=this._input.LA(1);this.state=558,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameter(){let e,r=new ut(this,this._ctx,this.state);this.enterRule(r,70,t.RULE_eventParameter);try{this.enterOuterAlt(r,1),this.state=560,this.typeName(0),this.state=562,this._errHandler.sync(this),e=this._input.LA(1),118===e&&(this.state=561,this.match(t.IndexedKeyword)),this.state=565,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=564,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameterList(){let e,r=new dt(this,this._ctx,this.state);this.enterRule(r,72,t.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(r,1),this.state=567,this.match(t.T__22),this.state=576,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=568,this.functionTypeParameter(),this.state=573,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=569,this.match(t.T__15),this.state=570,this.functionTypeParameter(),this.state=575,this._errHandler.sync(this),e=this._input.LA(1);this.state=578,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameter(){let e,r=new pt(this,this._ctx,this.state);this.enterRule(r,74,t.RULE_functionTypeParameter);try{this.enterOuterAlt(r,1),this.state=580,this.typeName(0),this.state=582,this._errHandler.sync(this),e=this._input.LA(1),!(e-50&-32)&&1<<e-50&7&&(this.state=581,this.storageLocation())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclaration(){let e=new mt(this,this._ctx,this.state);this.enterRule(e,76,t.RULE_variableDeclaration);try{this.enterOuterAlt(e,1),this.state=584,this.typeName(0),this.state=586,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,59,this._ctx)&&(this.state=585,this.storageLocation()),this.state=588,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeName(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new yt(this,this._ctx,i),a=n;this.enterRecursionRule(n,78,t.RULE_typeName,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,60,this._ctx)){case 1:this.state=591,this.elementaryTypeName();break;case 2:this.state=592,this.userDefinedTypeName();break;case 3:this.state=593,this.mapping();break;case 4:this.state=594,this.functionTypeName();break;case 5:this.state=595,this.match(t.T__45),this.state=596,this.match(t.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=607,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,62,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,n=new yt(this,s,i),this.pushNewRecursionContext(n,78,t.RULE_typeName),this.state=599,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=600,this.match(t.T__43),this.state=602,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=601,this.expression(0)),this.state=604,this.match(t.T__44)}this.state=609,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,62,this._ctx)}}catch(t){if(!(t instanceof T))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}userDefinedTypeName(){let e=new ft(this,this._ctx,this.state);this.enterRule(e,80,t.RULE_userDefinedTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=610,this.identifier(),this.state=615,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;)1===r&&(this.state=611,this.match(t.T__46),this.state=612,this.identifier()),this.state=617,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKey(){let e=new gt(this,this._ctx,this.state);this.enterRule(e,82,t.RULE_mappingKey);try{switch(this.state=620,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,64,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=618,this.elementaryTypeName();break;case 2:this.enterOuterAlt(e,2),this.state=619,this.userDefinedTypeName()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mapping(){let e,r=new wt(this,this._ctx,this.state);this.enterRule(r,84,t.RULE_mapping);try{this.enterOuterAlt(r,1),this.state=622,this.match(t.T__47),this.state=623,this.match(t.T__22),this.state=624,this.mappingKey(),this.state=626,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=625,this.mappingKeyName()),this.state=628,this.match(t.T__48),this.state=629,this.typeName(0),this.state=631,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=630,this.mappingValueName()),this.state=633,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}mappingKeyName(){let e=new xt(this,this._ctx,this.state);this.enterRule(e,86,t.RULE_mappingKeyName);try{this.enterOuterAlt(e,1),this.state=635,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingValueName(){let e=new vt(this,this._ctx,this.state);this.enterRule(e,88,t.RULE_mappingValueName);try{this.enterOuterAlt(e,1),this.state=637,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeName(){let e=new bt(this,this._ctx,this.state);this.enterRule(e,90,t.RULE_functionTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=639,this.match(t.T__39),this.state=640,this.functionTypeParameterList(),this.state=646,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;){if(1===r)switch(this.state=644,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=641,this.match(t.InternalKeyword);break;case 117:this.state=642,this.match(t.ExternalKeyword);break;case 112:case 120:case 124:case 126:this.state=643,this.stateMutability();break;default:throw new w(this)}this.state=648,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx)}this.state=651,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,69,this._ctx)&&(this.state=649,this.match(t.T__40),this.state=650,this.functionTypeParameterList())}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}storageLocation(){let e,r=new _t(this,this._ctx,this.state);this.enterRule(r,92,t.RULE_storageLocation);try{this.enterOuterAlt(r,1),this.state=653,e=this._input.LA(1),e-50&-32||!(1<<e-50&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stateMutability(){let e,r=new Et(this,this._ctx,this.state);this.enterRule(r,94,t.RULE_stateMutability);try{this.enterOuterAlt(r,1),this.state=655,e=this._input.LA(1),e-112&-32||!(1<<e-112&20737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}block(){let e,r=new Tt(this,this._ctx,this.state);this.enterRule(r,96,t.RULE_block);try{for(this.enterOuterAlt(r,1),this.state=657,this.match(t.T__14),this.state=661,this._errHandler.sync(this),e=this._input.LA(1);!(e-6&-32)&&1<<e-6&213517057||!(e-40&-32)&&1<<e-40&4294881617||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248548427;)this.state=658,this.statement(),this.state=663,this._errHandler.sync(this),e=this._input.LA(1);this.state=664,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}statement(){let e=new St(this,this._ctx,this.state);this.enterRule(e,98,t.RULE_statement);try{switch(this.state=681,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=666,this.ifStatement();break;case 2:this.enterOuterAlt(e,2),this.state=667,this.tryStatement();break;case 3:this.enterOuterAlt(e,3),this.state=668,this.whileStatement();break;case 4:this.enterOuterAlt(e,4),this.state=669,this.forStatement();break;case 5:this.enterOuterAlt(e,5),this.state=670,this.block();break;case 6:this.enterOuterAlt(e,6),this.state=671,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(e,7),this.state=672,this.doWhileStatement();break;case 8:this.enterOuterAlt(e,8),this.state=673,this.continueStatement();break;case 9:this.enterOuterAlt(e,9),this.state=674,this.breakStatement();break;case 10:this.enterOuterAlt(e,10),this.state=675,this.returnStatement();break;case 11:this.enterOuterAlt(e,11),this.state=676,this.throwStatement();break;case 12:this.enterOuterAlt(e,12),this.state=677,this.emitStatement();break;case 13:this.enterOuterAlt(e,13),this.state=678,this.simpleStatement();break;case 14:this.enterOuterAlt(e,14),this.state=679,this.uncheckedStatement();break;case 15:this.enterOuterAlt(e,15),this.state=680,this.revertStatement()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionStatement(){let e=new kt(this,this._ctx,this.state);this.enterRule(e,100,t.RULE_expressionStatement);try{this.enterOuterAlt(e,1),this.state=683,this.expression(0),this.state=684,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}ifStatement(){let e=new Rt(this,this._ctx,this.state);this.enterRule(e,102,t.RULE_ifStatement);try{this.enterOuterAlt(e,1),this.state=686,this.match(t.T__52),this.state=687,this.match(t.T__22),this.state=688,this.expression(0),this.state=689,this.match(t.T__23),this.state=690,this.statement(),this.state=693,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,72,this._ctx)&&(this.state=691,this.match(t.T__53),this.state=692,this.statement())}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tryStatement(){let e,r=new At(this,this._ctx,this.state);this.enterRule(r,104,t.RULE_tryStatement);try{this.enterOuterAlt(r,1),this.state=695,this.match(t.T__54),this.state=696,this.expression(0),this.state=698,this._errHandler.sync(this),e=this._input.LA(1),41===e&&(this.state=697,this.returnParameters()),this.state=700,this.block(),this.state=702,this._errHandler.sync(this),e=this._input.LA(1);do{this.state=701,this.catchClause(),this.state=704,this._errHandler.sync(this),e=this._input.LA(1)}while(56===e)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}catchClause(){let e,r=new Ct(this,this._ctx,this.state);this.enterRule(r,106,t.RULE_catchClause);try{this.enterOuterAlt(r,1),this.state=706,this.match(t.T__55),this.state=711,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&243286016||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=708,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=707,this.identifier()),this.state=710,this.parameterList()),this.state=713,this.block()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}whileStatement(){let e=new Lt(this,this._ctx,this.state);this.enterRule(e,108,t.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=715,this.match(t.T__56),this.state=716,this.match(t.T__22),this.state=717,this.expression(0),this.state=718,this.match(t.T__23),this.state=719,this.statement()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}simpleStatement(){let e=new It(this,this._ctx,this.state);this.enterRule(e,110,t.RULE_simpleStatement);try{switch(this.enterOuterAlt(e,1),this.state=723,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,77,this._ctx)){case 1:this.state=721,this.variableDeclarationStatement();break;case 2:this.state=722,this.expressionStatement()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}uncheckedStatement(){let e=new Kt(this,this._ctx,this.state);this.enterRule(e,112,t.RULE_uncheckedStatement);try{this.enterOuterAlt(e,1),this.state=725,this.match(t.T__57),this.state=726,this.block()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}forStatement(){let e,r=new Nt(this,this._ctx,this.state);this.enterRule(r,114,t.RULE_forStatement);try{switch(this.enterOuterAlt(r,1),this.state=728,this.match(t.T__28),this.state=729,this.match(t.T__22),this.state=732,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=730,this.simpleStatement();break;case 2:this.state=731,this.match(t.T__1);break;default:throw new w(this)}switch(this.state=736,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=734,this.expressionStatement();break;case 2:this.state=735,this.match(t.T__1);break;default:throw new w(this)}this.state=739,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=738,this.expression(0)),this.state=741,this.match(t.T__23),this.state=742,this.statement()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatement(){let e,r=new Ot(this,this._ctx,this.state);this.enterRule(r,116,t.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(r,1),this.state=744,this.match(t.T__58),this.state=746,this._errHandler.sync(this),e=this._input.LA(1),132===e&&(this.state=745,this.match(t.StringLiteralFragment)),this.state=752,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=748,this.match(t.T__22),this.state=749,this.inlineAssemblyStatementFlag(),this.state=750,this.match(t.T__23)),this.state=754,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatementFlag(){let e=new Dt(this,this._ctx,this.state);this.enterRule(e,118,t.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(e,1),this.state=756,this.stringLiteral()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}doWhileStatement(){let e=new Pt(this,this._ctx,this.state);this.enterRule(e,120,t.RULE_doWhileStatement);try{this.enterOuterAlt(e,1),this.state=758,this.match(t.T__59),this.state=759,this.statement(),this.state=760,this.match(t.T__56),this.state=761,this.match(t.T__22),this.state=762,this.expression(0),this.state=763,this.match(t.T__23),this.state=764,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}continueStatement(){let e=new qt(this,this._ctx,this.state);this.enterRule(e,122,t.RULE_continueStatement);try{this.enterOuterAlt(e,1),this.state=766,this.match(t.ContinueKeyword),this.state=767,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}breakStatement(){let e=new Mt(this,this._ctx,this.state);this.enterRule(e,124,t.RULE_breakStatement);try{this.enterOuterAlt(e,1),this.state=769,this.match(t.BreakKeyword),this.state=770,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnStatement(){let e,r=new Ft(this,this._ctx,this.state);this.enterRule(r,126,t.RULE_returnStatement);try{this.enterOuterAlt(r,1),this.state=772,this.match(t.T__60),this.state=774,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=773,this.expression(0)),this.state=776,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}throwStatement(){let e=new Ut(this,this._ctx,this.state);this.enterRule(e,128,t.RULE_throwStatement);try{this.enterOuterAlt(e,1),this.state=778,this.match(t.T__61),this.state=779,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}emitStatement(){let e=new Yt(this,this._ctx,this.state);this.enterRule(e,130,t.RULE_emitStatement);try{this.enterOuterAlt(e,1),this.state=781,this.match(t.T__62),this.state=782,this.functionCall(),this.state=783,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}revertStatement(){let e=new Vt(this,this._ctx,this.state);this.enterRule(e,132,t.RULE_revertStatement);try{this.enterOuterAlt(e,1),this.state=785,this.match(t.T__63),this.state=786,this.functionCall(),this.state=787,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationStatement(){let e,r=new jt(this,this._ctx,this.state);this.enterRule(r,134,t.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(r,1),this.state=796,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,84,this._ctx)){case 1:this.state=789,this.match(t.T__64),this.state=790,this.identifierList();break;case 2:this.state=791,this.variableDeclaration();break;case 3:this.state=792,this.match(t.T__22),this.state=793,this.variableDeclarationList(),this.state=794,this.match(t.T__23)}this.state=800,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=798,this.match(t.T__10),this.state=799,this.expression(0)),this.state=802,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclarationList(){let e,r=new Bt(this,this._ctx,this.state);this.enterRule(r,136,t.RULE_variableDeclarationList);try{for(this.enterOuterAlt(r,1),this.state=805,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)&&(this.state=804,this.variableDeclaration()),this.state=813,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=807,this.match(t.T__15),this.state=809,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)&&(this.state=808,this.variableDeclaration()),this.state=815,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifierList(){let e,r=new Ht(this,this._ctx,this.state);this.enterRule(r,138,t.RULE_identifierList);try{let s;for(this.enterOuterAlt(r,1),this.state=816,this.match(t.T__22),this.state=823,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=818,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=817,this.identifier()),this.state=820,this.match(t.T__15)),this.state=825,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);this.state=827,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=826,this.identifier()),this.state=829,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}elementaryTypeName(){let e,r=new $t(this,this._ctx,this.state);this.enterRule(r,140,t.RULE_elementaryTypeName);try{this.enterOuterAlt(r,1),this.state=831,e=this._input.LA(1),!(e-46&-32)&&1<<e-46&7864321||!(e-99&-32)&&1<<e-99&31?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}expression(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new Gt(this,this._ctx,i),a=n,o=142;this.enterRecursionRule(n,142,t.RULE_expression,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=851,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,92,this._ctx)){case 1:this.state=834,this.match(t.T__70),this.state=835,this.typeName(0);break;case 2:this.state=836,this.match(t.T__22),this.state=837,this.expression(0),this.state=838,this.match(t.T__23);break;case 3:this.state=840,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=841,this.expression(19);break;case 4:this.state=842,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=843,this.expression(18);break;case 5:this.state=844,this.match(t.T__72),this.state=845,this.expression(17);break;case 6:this.state=846,this.match(t.T__73),this.state=847,this.expression(16);break;case 7:this.state=848,this.match(t.T__5),this.state=849,this.expression(15);break;case 8:this.state=850,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=927,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,96,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,this.state=925,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=853,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=854,this.match(t.T__74),this.state=855,this.expression(14);break;case 2:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=856,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=857,r=this._input.LA(1),3!==r&&34!==r&&35!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=858,this.expression(14);break;case 3:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=859,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=860,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=861,this.expression(13);break;case 4:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=862,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=863,r=this._input.LA(1),76!==r&&77!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=864,this.expression(12);break;case 5:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=865,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=866,this.match(t.T__30),this.state=867,this.expression(11);break;case 6:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=868,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=869,this.match(t.T__4),this.state=870,this.expression(10);break;case 7:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=871,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=872,this.match(t.T__29),this.state=873,this.expression(9);break;case 8:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=874,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=875,r=this._input.LA(1),-32&r||!(1<<r&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=876,this.expression(8);break;case 9:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=877,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=878,r=this._input.LA(1),36!==r&&37!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=879,this.expression(7);break;case 10:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=880,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=881,this.match(t.T__77),this.state=882,this.expression(6);break;case 11:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=883,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=884,this.match(t.T__3),this.state=885,this.expression(5);break;case 12:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=886,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=887,this.match(t.T__78),this.state=888,this.expression(0),this.state=889,this.match(t.T__71),this.state=890,this.expression(3);break;case 13:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=892,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=893,r=this._input.LA(1),11===r||!(r-80&-32)&&1<<r-80&1023?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=894,this.expression(3);break;case 14:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=895,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=896,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=897,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=898,this.match(t.T__43),this.state=899,this.expression(0),this.state=900,this.match(t.T__44);break;case 16:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=902,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=903,this.match(t.T__43),this.state=905,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=904,this.expression(0)),this.state=907,this.match(t.T__71),this.state=909,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=908,this.expression(0)),this.state=911,this.match(t.T__44);break;case 17:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=912,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=913,this.match(t.T__46),this.state=914,this.identifier();break;case 18:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=915,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=916,this.match(t.T__14),this.state=917,this.nameValueList(),this.state=918,this.match(t.T__16);break;case 19:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=920,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=921,this.match(t.T__22),this.state=922,this.functionCallArguments(),this.state=923,this.match(t.T__23)}this.state=929,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,96,this._ctx)}}catch(t){if(!(t instanceof T))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}primaryExpression(){let e=new zt(this,this._ctx,this.state);this.enterRule(e,144,t.RULE_primaryExpression);try{switch(this.state=939,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,97,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=930,this.match(t.BooleanLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=931,this.numberLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=932,this.hexLiteral();break;case 4:this.enterOuterAlt(e,4),this.state=933,this.stringLiteral();break;case 5:this.enterOuterAlt(e,5),this.state=934,this.identifier();break;case 6:this.enterOuterAlt(e,6),this.state=935,this.match(t.TypeKeyword);break;case 7:this.enterOuterAlt(e,7),this.state=936,this.match(t.PayableKeyword);break;case 8:this.enterOuterAlt(e,8),this.state=937,this.tupleExpression();break;case 9:this.enterOuterAlt(e,9),this.state=938,this.typeName(0)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionList(){let e,r=new Wt(this,this._ctx,this.state);this.enterRule(r,146,t.RULE_expressionList);try{for(this.enterOuterAlt(r,1),this.state=941,this.expression(0),this.state=946,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=942,this.match(t.T__15),this.state=943,this.expression(0),this.state=948,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValueList(){let e,r=new Xt(this,this._ctx,this.state);this.enterRule(r,148,t.RULE_nameValueList);try{let s;for(this.enterOuterAlt(r,1),this.state=949,this.nameValue(),this.state=954,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=950,this.match(t.T__15),this.state=951,this.nameValue()),this.state=956,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);this.state=958,this._errHandler.sync(this),e=this._input.LA(1),16===e&&(this.state=957,this.match(t.T__15))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValue(){let e=new Qt(this,this._ctx,this.state);this.enterRule(e,150,t.RULE_nameValue);try{this.enterOuterAlt(e,1),this.state=960,this.identifier(),this.state=961,this.match(t.T__71),this.state=962,this.expression(0)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCallArguments(){let e,r=new Jt(this,this._ctx,this.state);this.enterRule(r,152,t.RULE_functionCallArguments);try{switch(this.state=972,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(r,1),this.state=964,this.match(t.T__14),this.state=966,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=965,this.nameValueList()),this.state=968,this.match(t.T__16);break;case 6:case 14:case 23:case 24:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.enterOuterAlt(r,2),this.state=970,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=969,this.expressionList());break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionCall(){let e=new Zt(this,this._ctx,this.state);this.enterRule(e,154,t.RULE_functionCall);try{this.enterOuterAlt(e,1),this.state=974,this.expression(0),this.state=975,this.match(t.T__22),this.state=976,this.functionCallArguments(),this.state=977,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyBlock(){let e,r=new te(this,this._ctx,this.state);this.enterRule(r,156,t.RULE_assemblyBlock);try{for(this.enterOuterAlt(r,1),this.state=979,this.match(t.T__14),this.state=983,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&780189696||!(e-40&-32)&&1<<e-40&287322177||!(e-90&-32)&&1<<e-90&1176879241||!(e-127&-32)&&1<<e-127&59;)this.state=980,this.assemblyItem(),this.state=985,this._errHandler.sync(this),e=this._input.LA(1);this.state=986,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyItem(){let e=new ee(this,this._ctx,this.state);this.enterRule(e,158,t.RULE_assemblyItem);try{switch(this.state=1005,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=988,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=989,this.assemblyBlock();break;case 3:this.enterOuterAlt(e,3),this.state=990,this.assemblyExpression();break;case 4:this.enterOuterAlt(e,4),this.state=991,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=992,this.assemblyAssignment();break;case 6:this.enterOuterAlt(e,6),this.state=993,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(e,7),this.state=994,this.labelDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=995,this.assemblySwitch();break;case 9:this.enterOuterAlt(e,9),this.state=996,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(e,10),this.state=997,this.assemblyFor();break;case 11:this.enterOuterAlt(e,11),this.state=998,this.assemblyIf();break;case 12:this.enterOuterAlt(e,12),this.state=999,this.match(t.BreakKeyword);break;case 13:this.enterOuterAlt(e,13),this.state=1e3,this.match(t.ContinueKeyword);break;case 14:this.enterOuterAlt(e,14),this.state=1001,this.match(t.LeaveKeyword);break;case 15:this.enterOuterAlt(e,15),this.state=1002,this.numberLiteral();break;case 16:this.enterOuterAlt(e,16),this.state=1003,this.stringLiteral();break;case 17:this.enterOuterAlt(e,17),this.state=1004,this.hexLiteral()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyExpression(){let e=new re(this,this._ctx,this.state);this.enterRule(e,160,t.RULE_assemblyExpression);try{switch(this.state=1010,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,106,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1007,this.assemblyCall();break;case 2:this.enterOuterAlt(e,2),this.state=1008,this.assemblyLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=1009,this.assemblyMember()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyMember(){let e=new se(this,this._ctx,this.state);this.enterRule(e,162,t.RULE_assemblyMember);try{this.enterOuterAlt(e,1),this.state=1012,this.identifier(),this.state=1013,this.match(t.T__46),this.state=1014,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCall(){let e,r=new ie(this,this._ctx,this.state);this.enterRule(r,164,t.RULE_assemblyCall);try{switch(this.enterOuterAlt(r,1),this.state=1020,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,107,this._ctx)){case 1:this.state=1016,this.match(t.T__60);break;case 2:this.state=1017,this.match(t.T__45);break;case 3:this.state=1018,this.match(t.T__67);break;case 4:this.state=1019,this.identifier()}if(this.state=1034,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,110,this._ctx)){for(this.state=1022,this.match(t.T__22),this.state=1024,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&4489281||!(e-97&-32)&&1<<e-97&3230141313||!(e-130&-32)&&1<<e-130&7)&&(this.state=1023,this.assemblyExpression()),this.state=1030,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1026,this.match(t.T__15),this.state=1027,this.assemblyExpression(),this.state=1032,this._errHandler.sync(this),e=this._input.LA(1);this.state=1033,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyLocalDefinition(){let e,r=new ne(this,this._ctx,this.state);this.enterRule(r,166,t.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(r,1),this.state=1036,this.match(t.T__89),this.state=1037,this.assemblyIdentifierOrList(),this.state=1040,this._errHandler.sync(this),e=this._input.LA(1),91===e&&(this.state=1038,this.match(t.T__90),this.state=1039,this.assemblyExpression())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyAssignment(){let e=new ae(this,this._ctx,this.state);this.enterRule(e,168,t.RULE_assemblyAssignment);try{this.enterOuterAlt(e,1),this.state=1042,this.assemblyIdentifierOrList(),this.state=1043,this.match(t.T__90),this.state=1044,this.assemblyExpression()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierOrList(){let e=new oe(this,this._ctx,this.state);this.enterRule(e,170,t.RULE_assemblyIdentifierOrList);try{switch(this.state=1053,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,112,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1046,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=1047,this.assemblyMember();break;case 3:this.enterOuterAlt(e,3),this.state=1048,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(e,4),this.state=1049,this.match(t.T__22),this.state=1050,this.assemblyIdentifierList(),this.state=1051,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierList(){let e,r=new ce(this,this._ctx,this.state);this.enterRule(r,172,t.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(r,1),this.state=1055,this.identifier(),this.state=1060,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1056,this.match(t.T__15),this.state=1057,this.identifier(),this.state=1062,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyStackAssignment(){let e=new le(this,this._ctx,this.state);this.enterRule(e,174,t.RULE_assemblyStackAssignment);try{this.enterOuterAlt(e,1),this.state=1063,this.assemblyExpression(),this.state=1064,this.match(t.T__91),this.state=1065,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}labelDefinition(){let e=new he(this,this._ctx,this.state);this.enterRule(e,176,t.RULE_labelDefinition);try{this.enterOuterAlt(e,1),this.state=1067,this.identifier(),this.state=1068,this.match(t.T__71)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblySwitch(){let e,r=new ue(this,this._ctx,this.state);this.enterRule(r,178,t.RULE_assemblySwitch);try{for(this.enterOuterAlt(r,1),this.state=1070,this.match(t.T__92),this.state=1071,this.assemblyExpression(),this.state=1075,this._errHandler.sync(this),e=this._input.LA(1);94===e||95===e;)this.state=1072,this.assemblyCase(),this.state=1077,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyCase(){let e=new de(this,this._ctx,this.state);this.enterRule(e,180,t.RULE_assemblyCase);try{switch(this.state=1084,this._errHandler.sync(this),this._input.LA(1)){case 94:this.enterOuterAlt(e,1),this.state=1078,this.match(t.T__93),this.state=1079,this.assemblyLiteral(),this.state=1080,this.assemblyBlock();break;case 95:this.enterOuterAlt(e,2),this.state=1082,this.match(t.T__94),this.state=1083,this.assemblyBlock();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionDefinition(){let e,r=new pe(this,this._ctx,this.state);this.enterRule(r,182,t.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(r,1),this.state=1086,this.match(t.T__39),this.state=1087,this.identifier(),this.state=1088,this.match(t.T__22),this.state=1090,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=1089,this.assemblyIdentifierList()),this.state=1092,this.match(t.T__23),this.state=1094,this._errHandler.sync(this),e=this._input.LA(1),96===e&&(this.state=1093,this.assemblyFunctionReturns()),this.state=1096,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyFunctionReturns(){let e=new me(this,this._ctx,this.state);this.enterRule(e,184,t.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(e,1),this.state=1098,this.match(t.T__95),this.state=1099,this.assemblyIdentifierList()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFor(){let e=new ye(this,this._ctx,this.state);this.enterRule(e,186,t.RULE_assemblyFor);try{switch(this.enterOuterAlt(e,1),this.state=1101,this.match(t.T__28),this.state=1104,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1102,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1103,this.assemblyExpression();break;default:throw new w(this)}switch(this.state=1106,this.assemblyExpression(),this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1107,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1108,this.assemblyExpression();break;default:throw new w(this)}this.state=1111,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIf(){let e=new fe(this,this._ctx,this.state);this.enterRule(e,188,t.RULE_assemblyIf);try{this.enterOuterAlt(e,1),this.state=1113,this.match(t.T__52),this.state=1114,this.assemblyExpression(),this.state=1115,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLiteral(){let e=new ge(this,this._ctx,this.state);this.enterRule(e,190,t.RULE_assemblyLiteral);try{switch(this.state=1122,this._errHandler.sync(this),this._input.LA(1)){case 132:this.enterOuterAlt(e,1),this.state=1117,this.stringLiteral();break;case 105:this.enterOuterAlt(e,2),this.state=1118,this.match(t.DecimalNumber);break;case 106:this.enterOuterAlt(e,3),this.state=1119,this.match(t.HexNumber);break;case 108:this.enterOuterAlt(e,4),this.state=1120,this.hexLiteral();break;case 104:this.enterOuterAlt(e,5),this.state=1121,this.match(t.BooleanLiteral);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tupleExpression(){let e,r=new we(this,this._ctx,this.state);this.enterRule(r,192,t.RULE_tupleExpression);try{switch(this.state=1150,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(r,1),this.state=1124,this.match(t.T__22),this.state=1126,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=1125,this.expression(0)),this.state=1134,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1128,this.match(t.T__15),this.state=1130,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=1129,this.expression(0)),this.state=1136,this._errHandler.sync(this),e=this._input.LA(1);this.state=1137,this.match(t.T__23);break;case 44:if(this.enterOuterAlt(r,2),this.state=1138,this.match(t.T__43),this.state=1147,this._errHandler.sync(this),e=this._input.LA(1),!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)for(this.state=1139,this.expression(0),this.state=1144,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1140,this.match(t.T__15),this.state=1141,this.expression(0),this.state=1146,this._errHandler.sync(this),e=this._input.LA(1);this.state=1149,this.match(t.T__44);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}numberLiteral(){let e,r=new xe(this,this._ctx,this.state);this.enterRule(r,194,t.RULE_numberLiteral);try{this.enterOuterAlt(r,1),this.state=1152,e=this._input.LA(1),105!==e&&106!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1154,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,127,this._ctx)&&(this.state=1153,this.match(t.NumberUnit))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifier(){let e,r=new ve(this,this._ctx,this.state);this.enterRule(r,196,t.RULE_identifier);try{this.enterOuterAlt(r,1),this.state=1156,e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}hexLiteral(){let e=new be(this,this._ctx,this.state);this.enterRule(e,198,t.RULE_hexLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1159,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1158,this.match(t.HexLiteralFragment),this.state=1161,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,128,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}overrideSpecifier(){let e,r=new _e(this,this._ctx,this.state);this.enterRule(r,200,t.RULE_overrideSpecifier);try{if(this.enterOuterAlt(r,1),this.state=1163,this.match(t.T__97),this.state=1175,this._errHandler.sync(this),e=this._input.LA(1),23===e){for(this.state=1164,this.match(t.T__22),this.state=1165,this.userDefinedTypeName(),this.state=1170,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1166,this.match(t.T__15),this.state=1167,this.userDefinedTypeName(),this.state=1172,this._errHandler.sync(this),e=this._input.LA(1);this.state=1173,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stringLiteral(){let e=new Ee(this,this._ctx,this.state);this.enterRule(e,202,t.RULE_stringLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1178,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1177,this.match(t.StringLiteralFragment),this.state=1180,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,131,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}sempred(t,e,r){switch(e){case 39:return this.typeName_sempred(t,r);case 71:return this.expression_sempred(t,r)}return!0}typeName_sempred(t,e){return 0!==e||this.precpred(this._ctx,3)}expression_sempred(t,e){switch(e){case 1:return this.precpred(this._ctx,14);case 2:return this.precpred(this._ctx,13);case 3:return this.precpred(this._ctx,12);case 4:return this.precpred(this._ctx,11);case 5:return this.precpred(this._ctx,10);case 6:return this.precpred(this._ctx,9);case 7:return this.precpred(this._ctx,8);case 8:return this.precpred(this._ctx,7);case 9:return this.precpred(this._ctx,6);case 10:return this.precpred(this._ctx,5);case 11:return this.precpred(this._ctx,4);case 12:return this.precpred(this._ctx,3);case 13:return this.precpred(this._ctx,2);case 14:return this.precpred(this._ctx,27);case 15:return this.precpred(this._ctx,25);case 16:return this.precpred(this._ctx,24);case 17:return this.precpred(this._ctx,23);case 18:return this.precpred(this._ctx,22);case 19:return this.precpred(this._ctx,21)}return!0}static get _ATN(){return t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};A.T__0=1,A.T__1=2,A.T__2=3,A.T__3=4,A.T__4=5,A.T__5=6,A.T__6=7,A.T__7=8,A.T__8=9,A.T__9=10,A.T__10=11,A.T__11=12,A.T__12=13,A.T__13=14,A.T__14=15,A.T__15=16,A.T__16=17,A.T__17=18,A.T__18=19,A.T__19=20,A.T__20=21,A.T__21=22,A.T__22=23,A.T__23=24,A.T__24=25,A.T__25=26,A.T__26=27,A.T__27=28,A.T__28=29,A.T__29=30,A.T__30=31,A.T__31=32,A.T__32=33,A.T__33=34,A.T__34=35,A.T__35=36,A.T__36=37,A.T__37=38,A.T__38=39,A.T__39=40,A.T__40=41,A.T__41=42,A.T__42=43,A.T__43=44,A.T__44=45,A.T__45=46,A.T__46=47,A.T__47=48,A.T__48=49,A.T__49=50,A.T__50=51,A.T__51=52,A.T__52=53,A.T__53=54,A.T__54=55,A.T__55=56,A.T__56=57,A.T__57=58,A.T__58=59,A.T__59=60,A.T__60=61,A.T__61=62,A.T__62=63,A.T__63=64,A.T__64=65,A.T__65=66,A.T__66=67,A.T__67=68,A.T__68=69,A.T__69=70,A.T__70=71,A.T__71=72,A.T__72=73,A.T__73=74,A.T__74=75,A.T__75=76,A.T__76=77,A.T__77=78,A.T__78=79,A.T__79=80,A.T__80=81,A.T__81=82,A.T__82=83,A.T__83=84,A.T__84=85,A.T__85=86,A.T__86=87,A.T__87=88,A.T__88=89,A.T__89=90,A.T__90=91,A.T__91=92,A.T__92=93,A.T__93=94,A.T__94=95,A.T__95=96,A.T__96=97,A.T__97=98,A.Int=99,A.Uint=100,A.Byte=101,A.Fixed=102,A.Ufixed=103,A.BooleanLiteral=104,A.DecimalNumber=105,A.HexNumber=106,A.NumberUnit=107,A.HexLiteralFragment=108,A.ReservedKeyword=109,A.AnonymousKeyword=110,A.BreakKeyword=111,A.ConstantKeyword=112,A.TransientKeyword=113,A.ImmutableKeyword=114,A.ContinueKeyword=115,A.LeaveKeyword=116,A.ExternalKeyword=117,A.IndexedKeyword=118,A.InternalKeyword=119,A.PayableKeyword=120,A.PrivateKeyword=121,A.PublicKeyword=122,A.VirtualKeyword=123,A.PureKeyword=124,A.TypeKeyword=125,A.ViewKeyword=126,A.GlobalKeyword=127,A.ConstructorKeyword=128,A.FallbackKeyword=129,A.ReceiveKeyword=130,A.Identifier=131,A.StringLiteralFragment=132,A.VersionLiteral=133,A.WS=134,A.COMMENT=135,A.LINE_COMMENT=136,A.EOF=S.EOF,A.RULE_sourceUnit=0,A.RULE_pragmaDirective=1,A.RULE_pragmaName=2,A.RULE_pragmaValue=3,A.RULE_version=4,A.RULE_versionOperator=5,A.RULE_versionConstraint=6,A.RULE_importDeclaration=7,A.RULE_importDirective=8,A.RULE_importPath=9,A.RULE_contractDefinition=10,A.RULE_inheritanceSpecifier=11,A.RULE_customStorageLayout=12,A.RULE_contractPart=13,A.RULE_stateVariableDeclaration=14,A.RULE_fileLevelConstant=15,A.RULE_customErrorDefinition=16,A.RULE_typeDefinition=17,A.RULE_usingForDeclaration=18,A.RULE_usingForObject=19,A.RULE_usingForObjectDirective=20,A.RULE_userDefinableOperators=21,A.RULE_structDefinition=22,A.RULE_modifierDefinition=23,A.RULE_modifierInvocation=24,A.RULE_functionDefinition=25,A.RULE_functionDescriptor=26,A.RULE_returnParameters=27,A.RULE_modifierList=28,A.RULE_eventDefinition=29,A.RULE_enumValue=30,A.RULE_enumDefinition=31,A.RULE_parameterList=32,A.RULE_parameter=33,A.RULE_eventParameterList=34,A.RULE_eventParameter=35,A.RULE_functionTypeParameterList=36,A.RULE_functionTypeParameter=37,A.RULE_variableDeclaration=38,A.RULE_typeName=39,A.RULE_userDefinedTypeName=40,A.RULE_mappingKey=41,A.RULE_mapping=42,A.RULE_mappingKeyName=43,A.RULE_mappingValueName=44,A.RULE_functionTypeName=45,A.RULE_storageLocation=46,A.RULE_stateMutability=47,A.RULE_block=48,A.RULE_statement=49,A.RULE_expressionStatement=50,A.RULE_ifStatement=51,A.RULE_tryStatement=52,A.RULE_catchClause=53,A.RULE_whileStatement=54,A.RULE_simpleStatement=55,A.RULE_uncheckedStatement=56,A.RULE_forStatement=57,A.RULE_inlineAssemblyStatement=58,A.RULE_inlineAssemblyStatementFlag=59,A.RULE_doWhileStatement=60,A.RULE_continueStatement=61,A.RULE_breakStatement=62,A.RULE_returnStatement=63,A.RULE_throwStatement=64,A.RULE_emitStatement=65,A.RULE_revertStatement=66,A.RULE_variableDeclarationStatement=67,A.RULE_variableDeclarationList=68,A.RULE_identifierList=69,A.RULE_elementaryTypeName=70,A.RULE_expression=71,A.RULE_primaryExpression=72,A.RULE_expressionList=73,A.RULE_nameValueList=74,A.RULE_nameValue=75,A.RULE_functionCallArguments=76,A.RULE_functionCall=77,A.RULE_assemblyBlock=78,A.RULE_assemblyItem=79,A.RULE_assemblyExpression=80,A.RULE_assemblyMember=81,A.RULE_assemblyCall=82,A.RULE_assemblyLocalDefinition=83,A.RULE_assemblyAssignment=84,A.RULE_assemblyIdentifierOrList=85,A.RULE_assemblyIdentifierList=86,A.RULE_assemblyStackAssignment=87,A.RULE_labelDefinition=88,A.RULE_assemblySwitch=89,A.RULE_assemblyCase=90,A.RULE_assemblyFunctionDefinition=91,A.RULE_assemblyFunctionReturns=92,A.RULE_assemblyFor=93,A.RULE_assemblyIf=94,A.RULE_assemblyLiteral=95,A.RULE_tupleExpression=96,A.RULE_numberLiteral=97,A.RULE_identifier=98,A.RULE_hexLiteral=99,A.RULE_overrideSpecifier=100,A.RULE_stringLiteral=101,A.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],A.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],A.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","customStorageLayout","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],A._serializedATN=[4,1,136,1183,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,216,8,0,10,0,12,0,219,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,233,8,3,1,4,1,4,3,4,237,8,4,1,4,5,4,240,8,4,10,4,12,4,243,9,4,1,5,1,5,1,6,3,6,248,8,6,1,6,1,6,3,6,252,8,6,1,6,3,6,255,8,6,1,7,1,7,1,7,3,7,260,8,7,1,8,1,8,1,8,1,8,3,8,266,8,8,1,8,1,8,1,8,1,8,1,8,3,8,273,8,8,1,8,1,8,3,8,277,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,288,8,8,10,8,12,8,291,9,8,1,8,1,8,1,8,1,8,1,8,3,8,298,8,8,1,9,1,9,1,10,3,10,303,8,10,1,10,1,10,1,10,3,10,308,8,10,1,10,1,10,1,10,1,10,5,10,314,8,10,10,10,12,10,317,9,10,3,10,319,8,10,1,10,3,10,322,8,10,1,10,1,10,5,10,326,8,10,10,10,12,10,329,9,10,1,10,1,10,1,11,1,11,1,11,3,11,336,8,11,1,11,3,11,339,8,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,354,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,5,14,364,8,14,10,14,12,14,367,9,14,1,14,1,14,1,14,3,14,372,8,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,3,18,399,8,18,1,18,3,18,402,8,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,5,19,411,8,19,10,19,12,19,414,9,19,1,19,1,19,3,19,418,8,19,1,20,1,20,1,20,3,20,423,8,20,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,5,22,435,8,22,10,22,12,22,438,9,22,3,22,440,8,22,1,22,1,22,1,23,1,23,1,23,3,23,447,8,23,1,23,1,23,5,23,451,8,23,10,23,12,23,454,9,23,1,23,1,23,3,23,458,8,23,1,24,1,24,1,24,3,24,463,8,24,1,24,3,24,466,8,24,1,25,1,25,1,25,1,25,3,25,472,8,25,1,25,1,25,3,25,476,8,25,1,26,1,26,3,26,480,8,26,1,26,1,26,1,26,3,26,485,8,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,5,28,498,8,28,10,28,12,28,501,9,28,1,29,1,29,1,29,1,29,3,29,507,8,29,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,31,3,31,517,8,31,1,31,1,31,5,31,521,8,31,10,31,12,31,524,9,31,1,31,1,31,1,32,1,32,1,32,1,32,5,32,532,8,32,10,32,12,32,535,9,32,3,32,537,8,32,1,32,1,32,1,33,1,33,3,33,543,8,33,1,33,3,33,546,8,33,1,34,1,34,1,34,1,34,5,34,552,8,34,10,34,12,34,555,9,34,3,34,557,8,34,1,34,1,34,1,35,1,35,3,35,563,8,35,1,35,3,35,566,8,35,1,36,1,36,1,36,1,36,5,36,572,8,36,10,36,12,36,575,9,36,3,36,577,8,36,1,36,1,36,1,37,1,37,3,37,583,8,37,1,38,1,38,3,38,587,8,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,598,8,39,1,39,1,39,1,39,3,39,603,8,39,1,39,5,39,606,8,39,10,39,12,39,609,9,39,1,40,1,40,1,40,5,40,614,8,40,10,40,12,40,617,9,40,1,41,1,41,3,41,621,8,41,1,42,1,42,1,42,1,42,3,42,627,8,42,1,42,1,42,1,42,3,42,632,8,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,5,45,645,8,45,10,45,12,45,648,9,45,1,45,1,45,3,45,652,8,45,1,46,1,46,1,47,1,47,1,48,1,48,5,48,660,8,48,10,48,12,48,663,9,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,682,8,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,694,8,51,1,52,1,52,1,52,3,52,699,8,52,1,52,1,52,4,52,703,8,52,11,52,12,52,704,1,53,1,53,3,53,709,8,53,1,53,3,53,712,8,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,3,55,724,8,55,1,56,1,56,1,56,1,57,1,57,1,57,1,57,3,57,733,8,57,1,57,1,57,3,57,737,8,57,1,57,3,57,740,8,57,1,57,1,57,1,57,1,58,1,58,3,58,747,8,58,1,58,1,58,1,58,1,58,3,58,753,8,58,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,1,62,1,63,1,63,3,63,775,8,63,1,63,1,63,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,797,8,67,1,67,1,67,3,67,801,8,67,1,67,1,67,1,68,3,68,806,8,68,1,68,1,68,3,68,810,8,68,5,68,812,8,68,10,68,12,68,815,9,68,1,69,1,69,3,69,819,8,69,1,69,5,69,822,8,69,10,69,12,69,825,9,69,1,69,3,69,828,8,69,1,69,1,69,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,852,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,906,8,71,1,71,1,71,3,71,910,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,5,71,926,8,71,10,71,12,71,929,9,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,940,8,72,1,73,1,73,1,73,5,73,945,8,73,10,73,12,73,948,9,73,1,74,1,74,1,74,5,74,953,8,74,10,74,12,74,956,9,74,1,74,3,74,959,8,74,1,75,1,75,1,75,1,75,1,76,1,76,3,76,967,8,76,1,76,1,76,3,76,971,8,76,3,76,973,8,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,5,78,982,8,78,10,78,12,78,985,9,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,3,79,1006,8,79,1,80,1,80,1,80,3,80,1011,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,3,82,1021,8,82,1,82,1,82,3,82,1025,8,82,1,82,1,82,5,82,1029,8,82,10,82,12,82,1032,9,82,1,82,3,82,1035,8,82,1,83,1,83,1,83,1,83,3,83,1041,8,83,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,3,85,1054,8,85,1,86,1,86,1,86,5,86,1059,8,86,10,86,12,86,1062,9,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,5,89,1074,8,89,10,89,12,89,1077,9,89,1,90,1,90,1,90,1,90,1,90,1,90,3,90,1085,8,90,1,91,1,91,1,91,1,91,3,91,1091,8,91,1,91,1,91,3,91,1095,8,91,1,91,1,91,1,92,1,92,1,92,1,93,1,93,1,93,3,93,1105,8,93,1,93,1,93,1,93,3,93,1110,8,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,3,95,1123,8,95,1,96,1,96,3,96,1127,8,96,1,96,1,96,3,96,1131,8,96,5,96,1133,8,96,10,96,12,96,1136,9,96,1,96,1,96,1,96,1,96,1,96,5,96,1143,8,96,10,96,12,96,1146,9,96,3,96,1148,8,96,1,96,3,96,1151,8,96,1,97,1,97,3,97,1155,8,97,1,98,1,98,1,99,4,99,1160,8,99,11,99,12,99,1161,1,100,1,100,1,100,1,100,1,100,5,100,1169,8,100,10,100,12,100,1172,9,100,1,100,1,100,3,100,1176,8,100,1,101,4,101,1179,8,101,11,101,12,101,1180,1,101,0,2,78,142,102,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,30,37,1,0,50,52,4,0,112,112,120,120,124,124,126,126,3,0,46,46,65,68,99,103,1,0,69,70,1,0,32,33,2,0,3,3,34,35,1,0,76,77,1,0,7,10,1,0,36,37,2,0,11,11,80,89,1,0,105,106,10,0,14,14,25,27,46,46,52,52,64,64,97,97,116,116,120,120,127,128,130,131,1314,0,217,1,0,0,0,2,222,1,0,0,0,4,227,1,0,0,0,6,232,1,0,0,0,8,234,1,0,0,0,10,244,1,0,0,0,12,254,1,0,0,0,14,256,1,0,0,0,16,297,1,0,0,0,18,299,1,0,0,0,20,302,1,0,0,0,22,332,1,0,0,0,24,340,1,0,0,0,26,353,1,0,0,0,28,355,1,0,0,0,30,375,1,0,0,0,32,382,1,0,0,0,34,387,1,0,0,0,36,393,1,0,0,0,38,417,1,0,0,0,40,419,1,0,0,0,42,424,1,0,0,0,44,426,1,0,0,0,46,443,1,0,0,0,48,459,1,0,0,0,50,467,1,0,0,0,52,484,1,0,0,0,54,486,1,0,0,0,56,499,1,0,0,0,58,502,1,0,0,0,60,510,1,0,0,0,62,512,1,0,0,0,64,527,1,0,0,0,66,540,1,0,0,0,68,547,1,0,0,0,70,560,1,0,0,0,72,567,1,0,0,0,74,580,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,610,1,0,0,0,82,620,1,0,0,0,84,622,1,0,0,0,86,635,1,0,0,0,88,637,1,0,0,0,90,639,1,0,0,0,92,653,1,0,0,0,94,655,1,0,0,0,96,657,1,0,0,0,98,681,1,0,0,0,100,683,1,0,0,0,102,686,1,0,0,0,104,695,1,0,0,0,106,706,1,0,0,0,108,715,1,0,0,0,110,723,1,0,0,0,112,725,1,0,0,0,114,728,1,0,0,0,116,744,1,0,0,0,118,756,1,0,0,0,120,758,1,0,0,0,122,766,1,0,0,0,124,769,1,0,0,0,126,772,1,0,0,0,128,778,1,0,0,0,130,781,1,0,0,0,132,785,1,0,0,0,134,796,1,0,0,0,136,805,1,0,0,0,138,816,1,0,0,0,140,831,1,0,0,0,142,851,1,0,0,0,144,939,1,0,0,0,146,941,1,0,0,0,148,949,1,0,0,0,150,960,1,0,0,0,152,972,1,0,0,0,154,974,1,0,0,0,156,979,1,0,0,0,158,1005,1,0,0,0,160,1010,1,0,0,0,162,1012,1,0,0,0,164,1020,1,0,0,0,166,1036,1,0,0,0,168,1042,1,0,0,0,170,1053,1,0,0,0,172,1055,1,0,0,0,174,1063,1,0,0,0,176,1067,1,0,0,0,178,1070,1,0,0,0,180,1084,1,0,0,0,182,1086,1,0,0,0,184,1098,1,0,0,0,186,1101,1,0,0,0,188,1113,1,0,0,0,190,1122,1,0,0,0,192,1150,1,0,0,0,194,1152,1,0,0,0,196,1156,1,0,0,0,198,1159,1,0,0,0,200,1163,1,0,0,0,202,1178,1,0,0,0,204,216,3,2,1,0,205,216,3,16,8,0,206,216,3,20,10,0,207,216,3,62,31,0,208,216,3,58,29,0,209,216,3,44,22,0,210,216,3,50,25,0,211,216,3,30,15,0,212,216,3,32,16,0,213,216,3,34,17,0,214,216,3,36,18,0,215,204,1,0,0,0,215,205,1,0,0,0,215,206,1,0,0,0,215,207,1,0,0,0,215,208,1,0,0,0,215,209,1,0,0,0,215,210,1,0,0,0,215,211,1,0,0,0,215,212,1,0,0,0,215,213,1,0,0,0,215,214,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,220,1,0,0,0,219,217,1,0,0,0,220,221,5,0,0,1,221,1,1,0,0,0,222,223,5,1,0,0,223,224,3,4,2,0,224,225,3,6,3,0,225,226,5,2,0,0,226,3,1,0,0,0,227,228,3,196,98,0,228,5,1,0,0,0,229,233,5,3,0,0,230,233,3,8,4,0,231,233,3,142,71,0,232,229,1,0,0,0,232,230,1,0,0,0,232,231,1,0,0,0,233,7,1,0,0,0,234,241,3,12,6,0,235,237,5,4,0,0,236,235,1,0,0,0,236,237,1,0,0,0,237,238,1,0,0,0,238,240,3,12,6,0,239,236,1,0,0,0,240,243,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,9,1,0,0,0,243,241,1,0,0,0,244,245,7,0,0,0,245,11,1,0,0,0,246,248,3,10,5,0,247,246,1,0,0,0,247,248,1,0,0,0,248,249,1,0,0,0,249,255,5,133,0,0,250,252,3,10,5,0,251,250,1,0,0,0,251,252,1,0,0,0,252,253,1,0,0,0,253,255,5,105,0,0,254,247,1,0,0,0,254,251,1,0,0,0,255,13,1,0,0,0,256,259,3,196,98,0,257,258,5,12,0,0,258,260,3,196,98,0,259,257,1,0,0,0,259,260,1,0,0,0,260,15,1,0,0,0,261,262,5,13,0,0,262,265,3,18,9,0,263,264,5,12,0,0,264,266,3,196,98,0,265,263,1,0,0,0,265,266,1,0,0,0,266,267,1,0,0,0,267,268,5,2,0,0,268,298,1,0,0,0,269,272,5,13,0,0,270,273,5,3,0,0,271,273,3,196,98,0,272,270,1,0,0,0,272,271,1,0,0,0,273,276,1,0,0,0,274,275,5,12,0,0,275,277,3,196,98,0,276,274,1,0,0,0,276,277,1,0,0,0,277,278,1,0,0,0,278,279,5,14,0,0,279,280,3,18,9,0,280,281,5,2,0,0,281,298,1,0,0,0,282,283,5,13,0,0,283,284,5,15,0,0,284,289,3,14,7,0,285,286,5,16,0,0,286,288,3,14,7,0,287,285,1,0,0,0,288,291,1,0,0,0,289,287,1,0,0,0,289,290,1,0,0,0,290,292,1,0,0,0,291,289,1,0,0,0,292,293,5,17,0,0,293,294,5,14,0,0,294,295,3,18,9,0,295,296,5,2,0,0,296,298,1,0,0,0,297,261,1,0,0,0,297,269,1,0,0,0,297,282,1,0,0,0,298,17,1,0,0,0,299,300,5,132,0,0,300,19,1,0,0,0,301,303,5,18,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,304,1,0,0,0,304,305,7,1,0,0,305,307,3,196,98,0,306,308,3,24,12,0,307,306,1,0,0,0,307,308,1,0,0,0,308,318,1,0,0,0,309,310,5,22,0,0,310,315,3,22,11,0,311,312,5,16,0,0,312,314,3,22,11,0,313,311,1,0,0,0,314,317,1,0,0,0,315,313,1,0,0,0,315,316,1,0,0,0,316,319,1,0,0,0,317,315,1,0,0,0,318,309,1,0,0,0,318,319,1,0,0,0,319,321,1,0,0,0,320,322,3,24,12,0,321,320,1,0,0,0,321,322,1,0,0,0,322,323,1,0,0,0,323,327,5,15,0,0,324,326,3,26,13,0,325,324,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1,0,0,0,328,330,1,0,0,0,329,327,1,0,0,0,330,331,5,17,0,0,331,21,1,0,0,0,332,338,3,80,40,0,333,335,5,23,0,0,334,336,3,146,73,0,335,334,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,339,5,24,0,0,338,333,1,0,0,0,338,339,1,0,0,0,339,23,1,0,0,0,340,341,5,25,0,0,341,342,5,26,0,0,342,343,3,142,71,0,343,25,1,0,0,0,344,354,3,28,14,0,345,354,3,36,18,0,346,354,3,44,22,0,347,354,3,46,23,0,348,354,3,50,25,0,349,354,3,58,29,0,350,354,3,62,31,0,351,354,3,32,16,0,352,354,3,34,17,0,353,344,1,0,0,0,353,345,1,0,0,0,353,346,1,0,0,0,353,347,1,0,0,0,353,348,1,0,0,0,353,349,1,0,0,0,353,350,1,0,0,0,353,351,1,0,0,0,353,352,1,0,0,0,354,27,1,0,0,0,355,365,3,78,39,0,356,364,5,122,0,0,357,364,5,119,0,0,358,364,5,121,0,0,359,364,5,112,0,0,360,364,5,113,0,0,361,364,5,114,0,0,362,364,3,200,100,0,363,356,1,0,0,0,363,357,1,0,0,0,363,358,1,0,0,0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363,362,1,0,0,0,364,367,1,0,0,0,365,363,1,0,0,0,365,366,1,0,0,0,366,368,1,0,0,0,367,365,1,0,0,0,368,371,3,196,98,0,369,370,5,11,0,0,370,372,3,142,71,0,371,369,1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,2,0,0,374,29,1,0,0,0,375,376,3,78,39,0,376,377,5,112,0,0,377,378,3,196,98,0,378,379,5,11,0,0,379,380,3,142,71,0,380,381,5,2,0,0,381,31,1,0,0,0,382,383,5,27,0,0,383,384,3,196,98,0,384,385,3,64,32,0,385,386,5,2,0,0,386,33,1,0,0,0,387,388,5,125,0,0,388,389,3,196,98,0,389,390,5,22,0,0,390,391,3,140,70,0,391,392,5,2,0,0,392,35,1,0,0,0,393,394,5,28,0,0,394,395,3,38,19,0,395,398,5,29,0,0,396,399,5,3,0,0,397,399,3,78,39,0,398,396,1,0,0,0,398,397,1,0,0,0,399,401,1,0,0,0,400,402,5,127,0,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,2,0,0,404,37,1,0,0,0,405,418,3,80,40,0,406,407,5,15,0,0,407,412,3,40,20,0,408,409,5,16,0,0,409,411,3,40,20,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,416,5,17,0,0,416,418,1,0,0,0,417,405,1,0,0,0,417,406,1,0,0,0,418,39,1,0,0,0,419,422,3,80,40,0,420,421,5,12,0,0,421,423,3,42,21,0,422,420,1,0,0,0,422,423,1,0,0,0,423,41,1,0,0,0,424,425,7,2,0,0,425,43,1,0,0,0,426,427,5,38,0,0,427,428,3,196,98,0,428,439,5,15,0,0,429,430,3,76,38,0,430,436,5,2,0,0,431,432,3,76,38,0,432,433,5,2,0,0,433,435,1,0,0,0,434,431,1,0,0,0,435,438,1,0,0,0,436,434,1,0,0,0,436,437,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,439,429,1,0,0,0,439,440,1,0,0,0,440,441,1,0,0,0,441,442,5,17,0,0,442,45,1,0,0,0,443,444,5,39,0,0,444,446,3,196,98,0,445,447,3,64,32,0,446,445,1,0,0,0,446,447,1,0,0,0,447,452,1,0,0,0,448,451,5,123,0,0,449,451,3,200,100,0,450,448,1,0,0,0,450,449,1,0,0,0,451,454,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,457,1,0,0,0,454,452,1,0,0,0,455,458,5,2,0,0,456,458,3,96,48,0,457,455,1,0,0,0,457,456,1,0,0,0,458,47,1,0,0,0,459,465,3,196,98,0,460,462,5,23,0,0,461,463,3,146,73,0,462,461,1,0,0,0,462,463,1,0,0,0,463,464,1,0,0,0,464,466,5,24,0,0,465,460,1,0,0,0,465,466,1,0,0,0,466,49,1,0,0,0,467,468,3,52,26,0,468,469,3,64,32,0,469,471,3,56,28,0,470,472,3,54,27,0,471,470,1,0,0,0,471,472,1,0,0,0,472,475,1,0,0,0,473,476,5,2,0,0,474,476,3,96,48,0,475,473,1,0,0,0,475,474,1,0,0,0,476,51,1,0,0,0,477,479,5,40,0,0,478,480,3,196,98,0,479,478,1,0,0,0,479,480,1,0,0,0,480,485,1,0,0,0,481,485,5,128,0,0,482,485,5,129,0,0,483,485,5,130,0,0,484,477,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,53,1,0,0,0,486,487,5,41,0,0,487,488,3,64,32,0,488,55,1,0,0,0,489,498,5,117,0,0,490,498,5,122,0,0,491,498,5,119,0,0,492,498,5,121,0,0,493,498,5,123,0,0,494,498,3,94,47,0,495,498,3,48,24,0,496,498,3,200,100,0,497,489,1,0,0,0,497,490,1,0,0,0,497,491,1,0,0,0,497,492,1,0,0,0,497,493,1,0,0,0,497,494,1,0,0,0,497,495,1,0,0,0,497,496,1,0,0,0,498,501,1,0,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,57,1,0,0,0,501,499,1,0,0,0,502,503,5,42,0,0,503,504,3,196,98,0,504,506,3,68,34,0,505,507,5,110,0,0,506,505,1,0,0,0,506,507,1,0,0,0,507,508,1,0,0,0,508,509,5,2,0,0,509,59,1,0,0,0,510,511,3,196,98,0,511,61,1,0,0,0,512,513,5,43,0,0,513,514,3,196,98,0,514,516,5,15,0,0,515,517,3,60,30,0,516,515,1,0,0,0,516,517,1,0,0,0,517,522,1,0,0,0,518,519,5,16,0,0,519,521,3,60,30,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,17,0,0,526,63,1,0,0,0,527,536,5,23,0,0,528,533,3,66,33,0,529,530,5,16,0,0,530,532,3,66,33,0,531,529,1,0,0,0,532,535,1,0,0,0,533,531,1,0,0,0,533,534,1,0,0,0,534,537,1,0,0,0,535,533,1,0,0,0,536,528,1,0,0,0,536,537,1,0,0,0,537,538,1,0,0,0,538,539,5,24,0,0,539,65,1,0,0,0,540,542,3,78,39,0,541,543,3,92,46,0,542,541,1,0,0,0,542,543,1,0,0,0,543,545,1,0,0,0,544,546,3,196,98,0,545,544,1,0,0,0,545,546,1,0,0,0,546,67,1,0,0,0,547,556,5,23,0,0,548,553,3,70,35,0,549,550,5,16,0,0,550,552,3,70,35,0,551,549,1,0,0,0,552,555,1,0,0,0,553,551,1,0,0,0,553,554,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,556,548,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,24,0,0,559,69,1,0,0,0,560,562,3,78,39,0,561,563,5,118,0,0,562,561,1,0,0,0,562,563,1,0,0,0,563,565,1,0,0,0,564,566,3,196,98,0,565,564,1,0,0,0,565,566,1,0,0,0,566,71,1,0,0,0,567,576,5,23,0,0,568,573,3,74,37,0,569,570,5,16,0,0,570,572,3,74,37,0,571,569,1,0,0,0,572,575,1,0,0,0,573,571,1,0,0,0,573,574,1,0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,576,568,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,24,0,0,579,73,1,0,0,0,580,582,3,78,39,0,581,583,3,92,46,0,582,581,1,0,0,0,582,583,1,0,0,0,583,75,1,0,0,0,584,586,3,78,39,0,585,587,3,92,46,0,586,585,1,0,0,0,586,587,1,0,0,0,587,588,1,0,0,0,588,589,3,196,98,0,589,77,1,0,0,0,590,591,6,39,-1,0,591,598,3,140,70,0,592,598,3,80,40,0,593,598,3,84,42,0,594,598,3,90,45,0,595,596,5,46,0,0,596,598,5,120,0,0,597,590,1,0,0,0,597,592,1,0,0,0,597,593,1,0,0,0,597,594,1,0,0,0,597,595,1,0,0,0,598,607,1,0,0,0,599,600,10,3,0,0,600,602,5,44,0,0,601,603,3,142,71,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,606,5,45,0,0,605,599,1,0,0,0,606,609,1,0,0,0,607,605,1,0,0,0,607,608,1,0,0,0,608,79,1,0,0,0,609,607,1,0,0,0,610,615,3,196,98,0,611,612,5,47,0,0,612,614,3,196,98,0,613,611,1,0,0,0,614,617,1,0,0,0,615,613,1,0,0,0,615,616,1,0,0,0,616,81,1,0,0,0,617,615,1,0,0,0,618,621,3,140,70,0,619,621,3,80,40,0,620,618,1,0,0,0,620,619,1,0,0,0,621,83,1,0,0,0,622,623,5,48,0,0,623,624,5,23,0,0,624,626,3,82,41,0,625,627,3,86,43,0,626,625,1,0,0,0,626,627,1,0,0,0,627,628,1,0,0,0,628,629,5,49,0,0,629,631,3,78,39,0,630,632,3,88,44,0,631,630,1,0,0,0,631,632,1,0,0,0,632,633,1,0,0,0,633,634,5,24,0,0,634,85,1,0,0,0,635,636,3,196,98,0,636,87,1,0,0,0,637,638,3,196,98,0,638,89,1,0,0,0,639,640,5,40,0,0,640,646,3,72,36,0,641,645,5,119,0,0,642,645,5,117,0,0,643,645,3,94,47,0,644,641,1,0,0,0,644,642,1,0,0,0,644,643,1,0,0,0,645,648,1,0,0,0,646,644,1,0,0,0,646,647,1,0,0,0,647,651,1,0,0,0,648,646,1,0,0,0,649,650,5,41,0,0,650,652,3,72,36,0,651,649,1,0,0,0,651,652,1,0,0,0,652,91,1,0,0,0,653,654,7,3,0,0,654,93,1,0,0,0,655,656,7,4,0,0,656,95,1,0,0,0,657,661,5,15,0,0,658,660,3,98,49,0,659,658,1,0,0,0,660,663,1,0,0,0,661,659,1,0,0,0,661,662,1,0,0,0,662,664,1,0,0,0,663,661,1,0,0,0,664,665,5,17,0,0,665,97,1,0,0,0,666,682,3,102,51,0,667,682,3,104,52,0,668,682,3,108,54,0,669,682,3,114,57,0,670,682,3,96,48,0,671,682,3,116,58,0,672,682,3,120,60,0,673,682,3,122,61,0,674,682,3,124,62,0,675,682,3,126,63,0,676,682,3,128,64,0,677,682,3,130,65,0,678,682,3,110,55,0,679,682,3,112,56,0,680,682,3,132,66,0,681,666,1,0,0,0,681,667,1,0,0,0,681,668,1,0,0,0,681,669,1,0,0,0,681,670,1,0,0,0,681,671,1,0,0,0,681,672,1,0,0,0,681,673,1,0,0,0,681,674,1,0,0,0,681,675,1,0,0,0,681,676,1,0,0,0,681,677,1,0,0,0,681,678,1,0,0,0,681,679,1,0,0,0,681,680,1,0,0,0,682,99,1,0,0,0,683,684,3,142,71,0,684,685,5,2,0,0,685,101,1,0,0,0,686,687,5,53,0,0,687,688,5,23,0,0,688,689,3,142,71,0,689,690,5,24,0,0,690,693,3,98,49,0,691,692,5,54,0,0,692,694,3,98,49,0,693,691,1,0,0,0,693,694,1,0,0,0,694,103,1,0,0,0,695,696,5,55,0,0,696,698,3,142,71,0,697,699,3,54,27,0,698,697,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,702,3,96,48,0,701,703,3,106,53,0,702,701,1,0,0,0,703,704,1,0,0,0,704,702,1,0,0,0,704,705,1,0,0,0,705,105,1,0,0,0,706,711,5,56,0,0,707,709,3,196,98,0,708,707,1,0,0,0,708,709,1,0,0,0,709,710,1,0,0,0,710,712,3,64,32,0,711,708,1,0,0,0,711,712,1,0,0,0,712,713,1,0,0,0,713,714,3,96,48,0,714,107,1,0,0,0,715,716,5,57,0,0,716,717,5,23,0,0,717,718,3,142,71,0,718,719,5,24,0,0,719,720,3,98,49,0,720,109,1,0,0,0,721,724,3,134,67,0,722,724,3,100,50,0,723,721,1,0,0,0,723,722,1,0,0,0,724,111,1,0,0,0,725,726,5,58,0,0,726,727,3,96,48,0,727,113,1,0,0,0,728,729,5,29,0,0,729,732,5,23,0,0,730,733,3,110,55,0,731,733,5,2,0,0,732,730,1,0,0,0,732,731,1,0,0,0,733,736,1,0,0,0,734,737,3,100,50,0,735,737,5,2,0,0,736,734,1,0,0,0,736,735,1,0,0,0,737,739,1,0,0,0,738,740,3,142,71,0,739,738,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,5,24,0,0,742,743,3,98,49,0,743,115,1,0,0,0,744,746,5,59,0,0,745,747,5,132,0,0,746,745,1,0,0,0,746,747,1,0,0,0,747,752,1,0,0,0,748,749,5,23,0,0,749,750,3,118,59,0,750,751,5,24,0,0,751,753,1,0,0,0,752,748,1,0,0,0,752,753,1,0,0,0,753,754,1,0,0,0,754,755,3,156,78,0,755,117,1,0,0,0,756,757,3,202,101,0,757,119,1,0,0,0,758,759,5,60,0,0,759,760,3,98,49,0,760,761,5,57,0,0,761,762,5,23,0,0,762,763,3,142,71,0,763,764,5,24,0,0,764,765,5,2,0,0,765,121,1,0,0,0,766,767,5,115,0,0,767,768,5,2,0,0,768,123,1,0,0,0,769,770,5,111,0,0,770,771,5,2,0,0,771,125,1,0,0,0,772,774,5,61,0,0,773,775,3,142,71,0,774,773,1,0,0,0,774,775,1,0,0,0,775,776,1,0,0,0,776,777,5,2,0,0,777,127,1,0,0,0,778,779,5,62,0,0,779,780,5,2,0,0,780,129,1,0,0,0,781,782,5,63,0,0,782,783,3,154,77,0,783,784,5,2,0,0,784,131,1,0,0,0,785,786,5,64,0,0,786,787,3,154,77,0,787,788,5,2,0,0,788,133,1,0,0,0,789,790,5,65,0,0,790,797,3,138,69,0,791,797,3,76,38,0,792,793,5,23,0,0,793,794,3,136,68,0,794,795,5,24,0,0,795,797,1,0,0,0,796,789,1,0,0,0,796,791,1,0,0,0,796,792,1,0,0,0,797,800,1,0,0,0,798,799,5,11,0,0,799,801,3,142,71,0,800,798,1,0,0,0,800,801,1,0,0,0,801,802,1,0,0,0,802,803,5,2,0,0,803,135,1,0,0,0,804,806,3,76,38,0,805,804,1,0,0,0,805,806,1,0,0,0,806,813,1,0,0,0,807,809,5,16,0,0,808,810,3,76,38,0,809,808,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811,807,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,137,1,0,0,0,815,813,1,0,0,0,816,823,5,23,0,0,817,819,3,196,98,0,818,817,1,0,0,0,818,819,1,0,0,0,819,820,1,0,0,0,820,822,5,16,0,0,821,818,1,0,0,0,822,825,1,0,0,0,823,821,1,0,0,0,823,824,1,0,0,0,824,827,1,0,0,0,825,823,1,0,0,0,826,828,3,196,98,0,827,826,1,0,0,0,827,828,1,0,0,0,828,829,1,0,0,0,829,830,5,24,0,0,830,139,1,0,0,0,831,832,7,5,0,0,832,141,1,0,0,0,833,834,6,71,-1,0,834,835,5,71,0,0,835,852,3,78,39,0,836,837,5,23,0,0,837,838,3,142,71,0,838,839,5,24,0,0,839,852,1,0,0,0,840,841,7,6,0,0,841,852,3,142,71,19,842,843,7,7,0,0,843,852,3,142,71,18,844,845,5,73,0,0,845,852,3,142,71,17,846,847,5,74,0,0,847,852,3,142,71,16,848,849,5,6,0,0,849,852,3,142,71,15,850,852,3,144,72,0,851,833,1,0,0,0,851,836,1,0,0,0,851,840,1,0,0,0,851,842,1,0,0,0,851,844,1,0,0,0,851,846,1,0,0,0,851,848,1,0,0,0,851,850,1,0,0,0,852,927,1,0,0,0,853,854,10,14,0,0,854,855,5,75,0,0,855,926,3,142,71,14,856,857,10,13,0,0,857,858,7,8,0,0,858,926,3,142,71,14,859,860,10,12,0,0,860,861,7,7,0,0,861,926,3,142,71,13,862,863,10,11,0,0,863,864,7,9,0,0,864,926,3,142,71,12,865,866,10,10,0,0,866,867,5,31,0,0,867,926,3,142,71,11,868,869,10,9,0,0,869,870,5,5,0,0,870,926,3,142,71,10,871,872,10,8,0,0,872,873,5,30,0,0,873,926,3,142,71,9,874,875,10,7,0,0,875,876,7,10,0,0,876,926,3,142,71,8,877,878,10,6,0,0,878,879,7,11,0,0,879,926,3,142,71,7,880,881,10,5,0,0,881,882,5,78,0,0,882,926,3,142,71,6,883,884,10,4,0,0,884,885,5,4,0,0,885,926,3,142,71,5,886,887,10,3,0,0,887,888,5,79,0,0,888,889,3,142,71,0,889,890,5,72,0,0,890,891,3,142,71,3,891,926,1,0,0,0,892,893,10,2,0,0,893,894,7,12,0,0,894,926,3,142,71,3,895,896,10,27,0,0,896,926,7,6,0,0,897,898,10,25,0,0,898,899,5,44,0,0,899,900,3,142,71,0,900,901,5,45,0,0,901,926,1,0,0,0,902,903,10,24,0,0,903,905,5,44,0,0,904,906,3,142,71,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,5,72,0,0,908,910,3,142,71,0,909,908,1,0,0,0,909,910,1,0,0,0,910,911,1,0,0,0,911,926,5,45,0,0,912,913,10,23,0,0,913,914,5,47,0,0,914,926,3,196,98,0,915,916,10,22,0,0,916,917,5,15,0,0,917,918,3,148,74,0,918,919,5,17,0,0,919,926,1,0,0,0,920,921,10,21,0,0,921,922,5,23,0,0,922,923,3,152,76,0,923,924,5,24,0,0,924,926,1,0,0,0,925,853,1,0,0,0,925,856,1,0,0,0,925,859,1,0,0,0,925,862,1,0,0,0,925,865,1,0,0,0,925,868,1,0,0,0,925,871,1,0,0,0,925,874,1,0,0,0,925,877,1,0,0,0,925,880,1,0,0,0,925,883,1,0,0,0,925,886,1,0,0,0,925,892,1,0,0,0,925,895,1,0,0,0,925,897,1,0,0,0,925,902,1,0,0,0,925,912,1,0,0,0,925,915,1,0,0,0,925,920,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,143,1,0,0,0,929,927,1,0,0,0,930,940,5,104,0,0,931,940,3,194,97,0,932,940,3,198,99,0,933,940,3,202,101,0,934,940,3,196,98,0,935,940,5,125,0,0,936,940,5,120,0,0,937,940,3,192,96,0,938,940,3,78,39,0,939,930,1,0,0,0,939,931,1,0,0,0,939,932,1,0,0,0,939,933,1,0,0,0,939,934,1,0,0,0,939,935,1,0,0,0,939,936,1,0,0,0,939,937,1,0,0,0,939,938,1,0,0,0,940,145,1,0,0,0,941,946,3,142,71,0,942,943,5,16,0,0,943,945,3,142,71,0,944,942,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,147,1,0,0,0,948,946,1,0,0,0,949,954,3,150,75,0,950,951,5,16,0,0,951,953,3,150,75,0,952,950,1,0,0,0,953,956,1,0,0,0,954,952,1,0,0,0,954,955,1,0,0,0,955,958,1,0,0,0,956,954,1,0,0,0,957,959,5,16,0,0,958,957,1,0,0,0,958,959,1,0,0,0,959,149,1,0,0,0,960,961,3,196,98,0,961,962,5,72,0,0,962,963,3,142,71,0,963,151,1,0,0,0,964,966,5,15,0,0,965,967,3,148,74,0,966,965,1,0,0,0,966,967,1,0,0,0,967,968,1,0,0,0,968,973,5,17,0,0,969,971,3,146,73,0,970,969,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,964,1,0,0,0,972,970,1,0,0,0,973,153,1,0,0,0,974,975,3,142,71,0,975,976,5,23,0,0,976,977,3,152,76,0,977,978,5,24,0,0,978,155,1,0,0,0,979,983,5,15,0,0,980,982,3,158,79,0,981,980,1,0,0,0,982,985,1,0,0,0,983,981,1,0,0,0,983,984,1,0,0,0,984,986,1,0,0,0,985,983,1,0,0,0,986,987,5,17,0,0,987,157,1,0,0,0,988,1006,3,196,98,0,989,1006,3,156,78,0,990,1006,3,160,80,0,991,1006,3,166,83,0,992,1006,3,168,84,0,993,1006,3,174,87,0,994,1006,3,176,88,0,995,1006,3,178,89,0,996,1006,3,182,91,0,997,1006,3,186,93,0,998,1006,3,188,94,0,999,1006,5,111,0,0,1e3,1006,5,115,0,0,1001,1006,5,116,0,0,1002,1006,3,194,97,0,1003,1006,3,202,101,0,1004,1006,3,198,99,0,1005,988,1,0,0,0,1005,989,1,0,0,0,1005,990,1,0,0,0,1005,991,1,0,0,0,1005,992,1,0,0,0,1005,993,1,0,0,0,1005,994,1,0,0,0,1005,995,1,0,0,0,1005,996,1,0,0,0,1005,997,1,0,0,0,1005,998,1,0,0,0,1005,999,1,0,0,0,1005,1e3,1,0,0,0,1005,1001,1,0,0,0,1005,1002,1,0,0,0,1005,1003,1,0,0,0,1005,1004,1,0,0,0,1006,159,1,0,0,0,1007,1011,3,164,82,0,1008,1011,3,190,95,0,1009,1011,3,162,81,0,1010,1007,1,0,0,0,1010,1008,1,0,0,0,1010,1009,1,0,0,0,1011,161,1,0,0,0,1012,1013,3,196,98,0,1013,1014,5,47,0,0,1014,1015,3,196,98,0,1015,163,1,0,0,0,1016,1021,5,61,0,0,1017,1021,5,46,0,0,1018,1021,5,68,0,0,1019,1021,3,196,98,0,1020,1016,1,0,0,0,1020,1017,1,0,0,0,1020,1018,1,0,0,0,1020,1019,1,0,0,0,1021,1034,1,0,0,0,1022,1024,5,23,0,0,1023,1025,3,160,80,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1030,1,0,0,0,1026,1027,5,16,0,0,1027,1029,3,160,80,0,1028,1026,1,0,0,0,1029,1032,1,0,0,0,1030,1028,1,0,0,0,1030,1031,1,0,0,0,1031,1033,1,0,0,0,1032,1030,1,0,0,0,1033,1035,5,24,0,0,1034,1022,1,0,0,0,1034,1035,1,0,0,0,1035,165,1,0,0,0,1036,1037,5,90,0,0,1037,1040,3,170,85,0,1038,1039,5,91,0,0,1039,1041,3,160,80,0,1040,1038,1,0,0,0,1040,1041,1,0,0,0,1041,167,1,0,0,0,1042,1043,3,170,85,0,1043,1044,5,91,0,0,1044,1045,3,160,80,0,1045,169,1,0,0,0,1046,1054,3,196,98,0,1047,1054,3,162,81,0,1048,1054,3,172,86,0,1049,1050,5,23,0,0,1050,1051,3,172,86,0,1051,1052,5,24,0,0,1052,1054,1,0,0,0,1053,1046,1,0,0,0,1053,1047,1,0,0,0,1053,1048,1,0,0,0,1053,1049,1,0,0,0,1054,171,1,0,0,0,1055,1060,3,196,98,0,1056,1057,5,16,0,0,1057,1059,3,196,98,0,1058,1056,1,0,0,0,1059,1062,1,0,0,0,1060,1058,1,0,0,0,1060,1061,1,0,0,0,1061,173,1,0,0,0,1062,1060,1,0,0,0,1063,1064,3,160,80,0,1064,1065,5,92,0,0,1065,1066,3,196,98,0,1066,175,1,0,0,0,1067,1068,3,196,98,0,1068,1069,5,72,0,0,1069,177,1,0,0,0,1070,1071,5,93,0,0,1071,1075,3,160,80,0,1072,1074,3,180,90,0,1073,1072,1,0,0,0,1074,1077,1,0,0,0,1075,1073,1,0,0,0,1075,1076,1,0,0,0,1076,179,1,0,0,0,1077,1075,1,0,0,0,1078,1079,5,94,0,0,1079,1080,3,190,95,0,1080,1081,3,156,78,0,1081,1085,1,0,0,0,1082,1083,5,95,0,0,1083,1085,3,156,78,0,1084,1078,1,0,0,0,1084,1082,1,0,0,0,1085,181,1,0,0,0,1086,1087,5,40,0,0,1087,1088,3,196,98,0,1088,1090,5,23,0,0,1089,1091,3,172,86,0,1090,1089,1,0,0,0,1090,1091,1,0,0,0,1091,1092,1,0,0,0,1092,1094,5,24,0,0,1093,1095,3,184,92,0,1094,1093,1,0,0,0,1094,1095,1,0,0,0,1095,1096,1,0,0,0,1096,1097,3,156,78,0,1097,183,1,0,0,0,1098,1099,5,96,0,0,1099,1100,3,172,86,0,1100,185,1,0,0,0,1101,1104,5,29,0,0,1102,1105,3,156,78,0,1103,1105,3,160,80,0,1104,1102,1,0,0,0,1104,1103,1,0,0,0,1105,1106,1,0,0,0,1106,1109,3,160,80,0,1107,1110,3,156,78,0,1108,1110,3,160,80,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,1111,1,0,0,0,1111,1112,3,156,78,0,1112,187,1,0,0,0,1113,1114,5,53,0,0,1114,1115,3,160,80,0,1115,1116,3,156,78,0,1116,189,1,0,0,0,1117,1123,3,202,101,0,1118,1123,5,105,0,0,1119,1123,5,106,0,0,1120,1123,3,198,99,0,1121,1123,5,104,0,0,1122,1117,1,0,0,0,1122,1118,1,0,0,0,1122,1119,1,0,0,0,1122,1120,1,0,0,0,1122,1121,1,0,0,0,1123,191,1,0,0,0,1124,1126,5,23,0,0,1125,1127,3,142,71,0,1126,1125,1,0,0,0,1126,1127,1,0,0,0,1127,1134,1,0,0,0,1128,1130,5,16,0,0,1129,1131,3,142,71,0,1130,1129,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1128,1,0,0,0,1133,1136,1,0,0,0,1134,1132,1,0,0,0,1134,1135,1,0,0,0,1135,1137,1,0,0,0,1136,1134,1,0,0,0,1137,1151,5,24,0,0,1138,1147,5,44,0,0,1139,1144,3,142,71,0,1140,1141,5,16,0,0,1141,1143,3,142,71,0,1142,1140,1,0,0,0,1143,1146,1,0,0,0,1144,1142,1,0,0,0,1144,1145,1,0,0,0,1145,1148,1,0,0,0,1146,1144,1,0,0,0,1147,1139,1,0,0,0,1147,1148,1,0,0,0,1148,1149,1,0,0,0,1149,1151,5,45,0,0,1150,1124,1,0,0,0,1150,1138,1,0,0,0,1151,193,1,0,0,0,1152,1154,7,13,0,0,1153,1155,5,107,0,0,1154,1153,1,0,0,0,1154,1155,1,0,0,0,1155,195,1,0,0,0,1156,1157,7,14,0,0,1157,197,1,0,0,0,1158,1160,5,108,0,0,1159,1158,1,0,0,0,1160,1161,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162,199,1,0,0,0,1163,1175,5,98,0,0,1164,1165,5,23,0,0,1165,1170,3,80,40,0,1166,1167,5,16,0,0,1167,1169,3,80,40,0,1168,1166,1,0,0,0,1169,1172,1,0,0,0,1170,1168,1,0,0,0,1170,1171,1,0,0,0,1171,1173,1,0,0,0,1172,1170,1,0,0,0,1173,1174,5,24,0,0,1174,1176,1,0,0,0,1175,1164,1,0,0,0,1175,1176,1,0,0,0,1176,201,1,0,0,0,1177,1179,5,132,0,0,1178,1177,1,0,0,0,1179,1180,1,0,0,0,1180,1178,1,0,0,0,1180,1181,1,0,0,0,1181,203,1,0,0,0,132,215,217,232,236,241,247,251,254,259,265,272,276,289,297,302,307,315,318,321,327,335,338,353,363,365,371,398,401,412,417,422,436,439,446,450,452,457,462,465,471,475,479,484,497,499,506,516,522,533,536,542,545,553,556,562,565,573,576,582,586,597,602,607,615,620,626,631,644,646,651,661,681,693,698,704,708,711,723,732,736,739,746,752,774,796,800,805,809,813,818,823,827,851,905,909,925,927,939,946,954,958,966,970,972,983,1005,1010,1020,1024,1030,1034,1040,1053,1060,1075,1084,1090,1094,1104,1109,1122,1126,1130,1134,1144,1147,1150,1154,1161,1170,1175,1180],A.DecisionsToDFA=A._ATN.decisionToState.map((t,e)=>new p(t,e));var C=A,L=class extends _{constructor(t,e,r){super(e,r),this.parser=t}EOF(){return this.getToken(C.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(I)}pragmaDirective(t){return this.getTypedRuleContext(I,t)}importDirective_list(){return this.getTypedRuleContexts(M)}importDirective(t){return this.getTypedRuleContext(M,t)}contractDefinition_list(){return this.getTypedRuleContexts(U)}contractDefinition(t){return this.getTypedRuleContext(U,t)}enumDefinition_list(){return this.getTypedRuleContexts(ot)}enumDefinition(t){return this.getTypedRuleContext(ot,t)}eventDefinition_list(){return this.getTypedRuleContexts(nt)}eventDefinition(t){return this.getTypedRuleContext(nt,t)}structDefinition_list(){return this.getTypedRuleContexts(J)}structDefinition(t){return this.getTypedRuleContext(J,t)}functionDefinition_list(){return this.getTypedRuleContexts(et)}functionDefinition(t){return this.getTypedRuleContext(et,t)}fileLevelConstant_list(){return this.getTypedRuleContexts(H)}fileLevelConstant(t){return this.getTypedRuleContext(H,t)}customErrorDefinition_list(){return this.getTypedRuleContexts($)}customErrorDefinition(t){return this.getTypedRuleContext($,t)}typeDefinition_list(){return this.getTypedRuleContexts(G)}typeDefinition(t){return this.getTypedRuleContext(G,t)}usingForDeclaration_list(){return this.getTypedRuleContexts(z)}usingForDeclaration(t){return this.getTypedRuleContext(z,t)}get ruleIndex(){return C.RULE_sourceUnit}enterRule(t){t.enterSourceUnit&&t.enterSourceUnit(this)}exitRule(t){t.exitSourceUnit&&t.exitSourceUnit(this)}accept(t){return t.visitSourceUnit?t.visitSourceUnit(this):t.visitChildren(this)}},I=class extends _{constructor(t,e,r){super(e,r),this.parser=t}pragmaName(){return this.getTypedRuleContext(K,0)}pragmaValue(){return this.getTypedRuleContext(N,0)}get ruleIndex(){return C.RULE_pragmaDirective}enterRule(t){t.enterPragmaDirective&&t.enterPragmaDirective(this)}exitRule(t){t.exitPragmaDirective&&t.exitPragmaDirective(this)}accept(t){return t.visitPragmaDirective?t.visitPragmaDirective(this):t.visitChildren(this)}},K=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_pragmaName}enterRule(t){t.enterPragmaName&&t.enterPragmaName(this)}exitRule(t){t.exitPragmaName&&t.exitPragmaName(this)}accept(t){return t.visitPragmaName?t.visitPragmaName(this):t.visitChildren(this)}},N=class extends _{constructor(t,e,r){super(e,r),this.parser=t}version(){return this.getTypedRuleContext(O,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_pragmaValue}enterRule(t){t.enterPragmaValue&&t.enterPragmaValue(this)}exitRule(t){t.exitPragmaValue&&t.exitPragmaValue(this)}accept(t){return t.visitPragmaValue?t.visitPragmaValue(this):t.visitChildren(this)}},O=class extends _{constructor(t,e,r){super(e,r),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(P)}versionConstraint(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return C.RULE_version}enterRule(t){t.enterVersion&&t.enterVersion(this)}exitRule(t){t.exitVersion&&t.exitVersion(this)}accept(t){return t.visitVersion?t.visitVersion(this):t.visitChildren(this)}},D=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_versionOperator}enterRule(t){t.enterVersionOperator&&t.enterVersionOperator(this)}exitRule(t){t.exitVersionOperator&&t.exitVersionOperator(this)}accept(t){return t.visitVersionOperator?t.visitVersionOperator(this):t.visitChildren(this)}},P=class extends _{constructor(t,e,r){super(e,r),this.parser=t}VersionLiteral(){return this.getToken(C.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(D,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}get ruleIndex(){return C.RULE_versionConstraint}enterRule(t){t.enterVersionConstraint&&t.enterVersionConstraint(this)}exitRule(t){t.exitVersionConstraint&&t.exitVersionConstraint(this)}accept(t){return t.visitVersionConstraint?t.visitVersionConstraint(this):t.visitChildren(this)}},q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_importDeclaration}enterRule(t){t.enterImportDeclaration&&t.enterImportDeclaration(this)}exitRule(t){t.exitImportDeclaration&&t.exitImportDeclaration(this)}accept(t){return t.visitImportDeclaration?t.visitImportDeclaration(this):t.visitChildren(this)}},M=class extends _{constructor(t,e,r){super(e,r),this.parser=t}importPath(){return this.getTypedRuleContext(F,0)}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}importDeclaration_list(){return this.getTypedRuleContexts(q)}importDeclaration(t){return this.getTypedRuleContext(q,t)}get ruleIndex(){return C.RULE_importDirective}enterRule(t){t.enterImportDirective&&t.enterImportDirective(this)}exitRule(t){t.exitImportDirective&&t.exitImportDirective(this)}accept(t){return t.visitImportDirective?t.visitImportDirective(this):t.visitChildren(this)}},F=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}get ruleIndex(){return C.RULE_importPath}enterRule(t){t.enterImportPath&&t.enterImportPath(this)}exitRule(t){t.exitImportPath&&t.exitImportPath(this)}accept(t){return t.visitImportPath?t.visitImportPath(this):t.visitChildren(this)}},U=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}customStorageLayout_list(){return this.getTypedRuleContexts(V)}customStorageLayout(t){return this.getTypedRuleContext(V,t)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(Y)}inheritanceSpecifier(t){return this.getTypedRuleContext(Y,t)}contractPart_list(){return this.getTypedRuleContexts(j)}contractPart(t){return this.getTypedRuleContext(j,t)}get ruleIndex(){return C.RULE_contractDefinition}enterRule(t){t.enterContractDefinition&&t.enterContractDefinition(this)}exitRule(t){t.exitContractDefinition&&t.exitContractDefinition(this)}accept(t){return t.visitContractDefinition?t.visitContractDefinition(this):t.visitChildren(this)}},Y=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.RULE_inheritanceSpecifier}enterRule(t){t.enterInheritanceSpecifier&&t.enterInheritanceSpecifier(this)}exitRule(t){t.exitInheritanceSpecifier&&t.exitInheritanceSpecifier(this)}accept(t){return t.visitInheritanceSpecifier?t.visitInheritanceSpecifier(this):t.visitChildren(this)}},V=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_customStorageLayout}enterRule(t){t.enterCustomStorageLayout&&t.enterCustomStorageLayout(this)}exitRule(t){t.exitCustomStorageLayout&&t.exitCustomStorageLayout(this)}accept(t){return t.visitCustomStorageLayout?t.visitCustomStorageLayout(this):t.visitChildren(this)}},j=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext(z,0)}structDefinition(){return this.getTypedRuleContext(J,0)}modifierDefinition(){return this.getTypedRuleContext(Z,0)}functionDefinition(){return this.getTypedRuleContext(et,0)}eventDefinition(){return this.getTypedRuleContext(nt,0)}enumDefinition(){return this.getTypedRuleContext(ot,0)}customErrorDefinition(){return this.getTypedRuleContext($,0)}typeDefinition(){return this.getTypedRuleContext(G,0)}get ruleIndex(){return C.RULE_contractPart}enterRule(t){t.enterContractPart&&t.enterContractPart(this)}exitRule(t){t.exitContractPart&&t.exitContractPart(this)}accept(t){return t.visitContractPart?t.visitContractPart(this):t.visitChildren(this)}},B=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}identifier(){return this.getTypedRuleContext(ve,0)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(C.ConstantKeyword)}ConstantKeyword(t){return this.getToken(C.ConstantKeyword,t)}TransientKeyword_list(){return this.getTokens(C.TransientKeyword)}TransientKeyword(t){return this.getToken(C.TransientKeyword,t)}ImmutableKeyword_list(){return this.getTokens(C.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(C.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_stateVariableDeclaration}enterRule(t){t.enterStateVariableDeclaration&&t.enterStateVariableDeclaration(this)}exitRule(t){t.exitStateVariableDeclaration&&t.exitStateVariableDeclaration(this)}accept(t){return t.visitStateVariableDeclaration?t.visitStateVariableDeclaration(this):t.visitChildren(this)}},H=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_fileLevelConstant}enterRule(t){t.enterFileLevelConstant&&t.enterFileLevelConstant(this)}exitRule(t){t.exitFileLevelConstant&&t.exitFileLevelConstant(this)}accept(t){return t.visitFileLevelConstant?t.visitFileLevelConstant(this):t.visitChildren(this)}},$=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}parameterList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.RULE_customErrorDefinition}enterRule(t){t.enterCustomErrorDefinition&&t.enterCustomErrorDefinition(this)}exitRule(t){t.exitCustomErrorDefinition&&t.exitCustomErrorDefinition(this)}accept(t){return t.visitCustomErrorDefinition?t.visitCustomErrorDefinition(this):t.visitChildren(this)}},G=class extends _{constructor(t,e,r){super(e,r),this.parser=t}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}elementaryTypeName(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.RULE_typeDefinition}enterRule(t){t.enterTypeDefinition&&t.enterTypeDefinition(this)}exitRule(t){t.exitTypeDefinition&&t.exitTypeDefinition(this)}accept(t){return t.visitTypeDefinition?t.visitTypeDefinition(this):t.visitChildren(this)}},z=class extends _{constructor(t,e,r){super(e,r),this.parser=t}usingForObject(){return this.getTypedRuleContext(W,0)}typeName(){return this.getTypedRuleContext(yt,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}get ruleIndex(){return C.RULE_usingForDeclaration}enterRule(t){t.enterUsingForDeclaration&&t.enterUsingForDeclaration(this)}exitRule(t){t.exitUsingForDeclaration&&t.exitUsingForDeclaration(this)}accept(t){return t.visitUsingForDeclaration?t.visitUsingForDeclaration(this):t.visitChildren(this)}},W=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(X)}usingForObjectDirective(t){return this.getTypedRuleContext(X,t)}get ruleIndex(){return C.RULE_usingForObject}enterRule(t){t.enterUsingForObject&&t.enterUsingForObject(this)}exitRule(t){t.exitUsingForObject&&t.exitUsingForObject(this)}accept(t){return t.visitUsingForObject?t.visitUsingForObject(this):t.visitChildren(this)}},X=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}userDefinableOperators(){return this.getTypedRuleContext(Q,0)}get ruleIndex(){return C.RULE_usingForObjectDirective}enterRule(t){t.enterUsingForObjectDirective&&t.enterUsingForObjectDirective(this)}exitRule(t){t.exitUsingForObjectDirective&&t.exitUsingForObjectDirective(this)}accept(t){return t.visitUsingForObjectDirective?t.visitUsingForObjectDirective(this):t.visitChildren(this)}},Q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_userDefinableOperators}enterRule(t){t.enterUserDefinableOperators&&t.enterUserDefinableOperators(this)}exitRule(t){t.exitUserDefinableOperators&&t.exitUserDefinableOperators(this)}accept(t){return t.visitUserDefinableOperators?t.visitUserDefinableOperators(this):t.visitChildren(this)}},J=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}variableDeclaration_list(){return this.getTypedRuleContexts(mt)}variableDeclaration(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return C.RULE_structDefinition}enterRule(t){t.enterStructDefinition&&t.enterStructDefinition(this)}exitRule(t){t.exitStructDefinition&&t.exitStructDefinition(this)}accept(t){return t.visitStructDefinition?t.visitStructDefinition(this):t.visitChildren(this)}},Z=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}get ruleIndex(){return C.RULE_modifierDefinition}enterRule(t){t.enterModifierDefinition&&t.enterModifierDefinition(this)}exitRule(t){t.exitModifierDefinition&&t.exitModifierDefinition(this)}accept(t){return t.visitModifierDefinition?t.visitModifierDefinition(this):t.visitChildren(this)}},tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.RULE_modifierInvocation}enterRule(t){t.enterModifierInvocation&&t.enterModifierInvocation(this)}exitRule(t){t.exitModifierInvocation&&t.exitModifierInvocation(this)}accept(t){return t.visitModifierInvocation?t.visitModifierInvocation(this):t.visitChildren(this)}},et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(rt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}modifierList(){return this.getTypedRuleContext(it,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(st,0)}get ruleIndex(){return C.RULE_functionDefinition}enterRule(t){t.enterFunctionDefinition&&t.enterFunctionDefinition(this)}exitRule(t){t.exitFunctionDefinition&&t.exitFunctionDefinition(this)}accept(t){return t.visitFunctionDefinition?t.visitFunctionDefinition(this):t.visitChildren(this)}},rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(C.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}get ruleIndex(){return C.RULE_functionDescriptor}enterRule(t){t.enterFunctionDescriptor&&t.enterFunctionDescriptor(this)}exitRule(t){t.exitFunctionDescriptor&&t.exitFunctionDescriptor(this)}accept(t){return t.visitFunctionDescriptor?t.visitFunctionDescriptor(this):t.visitChildren(this)}},st=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameterList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.RULE_returnParameters}enterRule(t){t.enterReturnParameters&&t.enterReturnParameters(this)}exitRule(t){t.exitReturnParameters&&t.exitReturnParameters(this)}accept(t){return t.visitReturnParameters?t.visitReturnParameters(this):t.visitChildren(this)}},it=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}modifierInvocation_list(){return this.getTypedRuleContexts(tt)}modifierInvocation(t){return this.getTypedRuleContext(tt,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}get ruleIndex(){return C.RULE_modifierList}enterRule(t){t.enterModifierList&&t.enterModifierList(this)}exitRule(t){t.exitModifierList&&t.exitModifierList(this)}accept(t){return t.visitModifierList?t.visitModifierList(this):t.visitChildren(this)}},nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}eventParameterList(){return this.getTypedRuleContext(ht,0)}AnonymousKeyword(){return this.getToken(C.AnonymousKeyword,0)}get ruleIndex(){return C.RULE_eventDefinition}enterRule(t){t.enterEventDefinition&&t.enterEventDefinition(this)}exitRule(t){t.exitEventDefinition&&t.exitEventDefinition(this)}accept(t){return t.visitEventDefinition?t.visitEventDefinition(this):t.visitChildren(this)}},at=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_enumValue}enterRule(t){t.enterEnumValue&&t.enterEnumValue(this)}exitRule(t){t.exitEnumValue&&t.exitEnumValue(this)}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}enumValue_list(){return this.getTypedRuleContexts(at)}enumValue(t){return this.getTypedRuleContext(at,t)}get ruleIndex(){return C.RULE_enumDefinition}enterRule(t){t.enterEnumDefinition&&t.enterEnumDefinition(this)}exitRule(t){t.exitEnumDefinition&&t.exitEnumDefinition(this)}accept(t){return t.visitEnumDefinition?t.visitEnumDefinition(this):t.visitChildren(this)}},ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameter_list(){return this.getTypedRuleContexts(lt)}parameter(t){return this.getTypedRuleContext(lt,t)}get ruleIndex(){return C.RULE_parameterList}enterRule(t){t.enterParameterList&&t.enterParameterList(this)}exitRule(t){t.exitParameterList&&t.exitParameterList(this)}accept(t){return t.visitParameterList?t.visitParameterList(this):t.visitChildren(this)}},lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_parameter}enterRule(t){t.enterParameter&&t.enterParameter(this)}exitRule(t){t.exitParameter&&t.exitParameter(this)}accept(t){return t.visitParameter?t.visitParameter(this):t.visitChildren(this)}},ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(ut)}eventParameter(t){return this.getTypedRuleContext(ut,t)}get ruleIndex(){return C.RULE_eventParameterList}enterRule(t){t.enterEventParameterList&&t.enterEventParameterList(this)}exitRule(t){t.exitEventParameterList&&t.exitEventParameterList(this)}accept(t){return t.visitEventParameterList?t.visitEventParameterList(this):t.visitChildren(this)}},ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}IndexedKeyword(){return this.getToken(C.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_eventParameter}enterRule(t){t.enterEventParameter&&t.enterEventParameter(this)}exitRule(t){t.exitEventParameter&&t.exitEventParameter(this)}accept(t){return t.visitEventParameter?t.visitEventParameter(this):t.visitChildren(this)}},dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(pt)}functionTypeParameter(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return C.RULE_functionTypeParameterList}enterRule(t){t.enterFunctionTypeParameterList&&t.enterFunctionTypeParameterList(this)}exitRule(t){t.exitFunctionTypeParameterList&&t.exitFunctionTypeParameterList(this)}accept(t){return t.visitFunctionTypeParameterList?t.visitFunctionTypeParameterList(this):t.visitChildren(this)}},pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return C.RULE_functionTypeParameter}enterRule(t){t.enterFunctionTypeParameter&&t.enterFunctionTypeParameter(this)}exitRule(t){t.exitFunctionTypeParameter&&t.exitFunctionTypeParameter(this)}accept(t){return t.visitFunctionTypeParameter?t.visitFunctionTypeParameter(this):t.visitChildren(this)}},mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}identifier(){return this.getTypedRuleContext(ve,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return C.RULE_variableDeclaration}enterRule(t){t.enterVariableDeclaration&&t.enterVariableDeclaration(this)}exitRule(t){t.exitVariableDeclaration&&t.exitVariableDeclaration(this)}accept(t){return t.visitVariableDeclaration?t.visitVariableDeclaration(this):t.visitChildren(this)}},yt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext($t,0)}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}mapping(){return this.getTypedRuleContext(wt,0)}functionTypeName(){return this.getTypedRuleContext(bt,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(t,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_typeName}enterRule(t){t.enterTypeName&&t.enterTypeName(this)}exitRule(t){t.exitTypeName&&t.exitTypeName(this)}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_userDefinedTypeName}enterRule(t){t.enterUserDefinedTypeName&&t.enterUserDefinedTypeName(this)}exitRule(t){t.exitUserDefinedTypeName&&t.exitUserDefinedTypeName(this)}accept(t){return t.visitUserDefinedTypeName?t.visitUserDefinedTypeName(this):t.visitChildren(this)}},gt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext($t,0)}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}get ruleIndex(){return C.RULE_mappingKey}enterRule(t){t.enterMappingKey&&t.enterMappingKey(this)}exitRule(t){t.exitMappingKey&&t.exitMappingKey(this)}accept(t){return t.visitMappingKey?t.visitMappingKey(this):t.visitChildren(this)}},wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}mappingKey(){return this.getTypedRuleContext(gt,0)}typeName(){return this.getTypedRuleContext(yt,0)}mappingKeyName(){return this.getTypedRuleContext(xt,0)}mappingValueName(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_mapping}enterRule(t){t.enterMapping&&t.enterMapping(this)}exitRule(t){t.exitMapping&&t.exitMapping(this)}accept(t){return t.visitMapping?t.visitMapping(this):t.visitChildren(this)}},xt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_mappingKeyName}enterRule(t){t.enterMappingKeyName&&t.enterMappingKeyName(this)}exitRule(t){t.exitMappingKeyName&&t.exitMappingKeyName(this)}accept(t){return t.visitMappingKeyName?t.visitMappingKeyName(this):t.visitChildren(this)}},vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_mappingValueName}enterRule(t){t.enterMappingValueName&&t.enterMappingValueName(this)}exitRule(t){t.exitMappingValueName&&t.exitMappingValueName(this)}accept(t){return t.visitMappingValueName?t.visitMappingValueName(this):t.visitChildren(this)}},bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(dt)}functionTypeParameterList(t){return this.getTypedRuleContext(dt,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return C.RULE_functionTypeName}enterRule(t){t.enterFunctionTypeName&&t.enterFunctionTypeName(this)}exitRule(t){t.exitFunctionTypeName&&t.exitFunctionTypeName(this)}accept(t){return t.visitFunctionTypeName?t.visitFunctionTypeName(this):t.visitChildren(this)}},_t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_storageLocation}enterRule(t){t.enterStorageLocation&&t.enterStorageLocation(this)}exitRule(t){t.exitStorageLocation&&t.exitStorageLocation(this)}accept(t){return t.visitStorageLocation?t.visitStorageLocation(this):t.visitChildren(this)}},Et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}PureKeyword(){return this.getToken(C.PureKeyword,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}ViewKeyword(){return this.getToken(C.ViewKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}get ruleIndex(){return C.RULE_stateMutability}enterRule(t){t.enterStateMutability&&t.enterStateMutability(this)}exitRule(t){t.exitStateMutability&&t.exitStateMutability(this)}accept(t){return t.visitStateMutability?t.visitStateMutability(this):t.visitChildren(this)}},Tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement_list(){return this.getTypedRuleContexts(St)}statement(t){return this.getTypedRuleContext(St,t)}get ruleIndex(){return C.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}},St=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ifStatement(){return this.getTypedRuleContext(Rt,0)}tryStatement(){return this.getTypedRuleContext(At,0)}whileStatement(){return this.getTypedRuleContext(Lt,0)}forStatement(){return this.getTypedRuleContext(Nt,0)}block(){return this.getTypedRuleContext(Tt,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(Ot,0)}doWhileStatement(){return this.getTypedRuleContext(Pt,0)}continueStatement(){return this.getTypedRuleContext(qt,0)}breakStatement(){return this.getTypedRuleContext(Mt,0)}returnStatement(){return this.getTypedRuleContext(Ft,0)}throwStatement(){return this.getTypedRuleContext(Ut,0)}emitStatement(){return this.getTypedRuleContext(Yt,0)}simpleStatement(){return this.getTypedRuleContext(It,0)}uncheckedStatement(){return this.getTypedRuleContext(Kt,0)}revertStatement(){return this.getTypedRuleContext(Vt,0)}get ruleIndex(){return C.RULE_statement}enterRule(t){t.enterStatement&&t.enterStatement(this)}exitRule(t){t.exitStatement&&t.exitStatement(this)}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_expressionStatement}enterRule(t){t.enterExpressionStatement&&t.enterExpressionStatement(this)}exitRule(t){t.exitExpressionStatement&&t.exitExpressionStatement(this)}accept(t){return t.visitExpressionStatement?t.visitExpressionStatement(this):t.visitChildren(this)}},Rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}statement_list(){return this.getTypedRuleContexts(St)}statement(t){return this.getTypedRuleContext(St,t)}get ruleIndex(){return C.RULE_ifStatement}enterRule(t){t.enterIfStatement&&t.enterIfStatement(this)}exitRule(t){t.exitIfStatement&&t.exitIfStatement(this)}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},At=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(st,0)}catchClause_list(){return this.getTypedRuleContexts(Ct)}catchClause(t){return this.getTypedRuleContext(Ct,t)}get ruleIndex(){return C.RULE_tryStatement}enterRule(t){t.enterTryStatement&&t.enterTryStatement(this)}exitRule(t){t.exitTryStatement&&t.exitTryStatement(this)}accept(t){return t.visitTryStatement?t.visitTryStatement(this):t.visitChildren(this)}},Ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_catchClause}enterRule(t){t.enterCatchClause&&t.enterCatchClause(this)}exitRule(t){t.exitCatchClause&&t.exitCatchClause(this)}accept(t){return t.visitCatchClause?t.visitCatchClause(this):t.visitChildren(this)}},Lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}statement(){return this.getTypedRuleContext(St,0)}get ruleIndex(){return C.RULE_whileStatement}enterRule(t){t.enterWhileStatement&&t.enterWhileStatement(this)}exitRule(t){t.exitWhileStatement&&t.exitWhileStatement(this)}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},It=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(jt,0)}expressionStatement(){return this.getTypedRuleContext(kt,0)}get ruleIndex(){return C.RULE_simpleStatement}enterRule(t){t.enterSimpleStatement&&t.enterSimpleStatement(this)}exitRule(t){t.exitSimpleStatement&&t.exitSimpleStatement(this)}accept(t){return t.visitSimpleStatement?t.visitSimpleStatement(this):t.visitChildren(this)}},Kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return C.RULE_uncheckedStatement}enterRule(t){t.enterUncheckedStatement&&t.enterUncheckedStatement(this)}exitRule(t){t.exitUncheckedStatement&&t.exitUncheckedStatement(this)}accept(t){return t.visitUncheckedStatement?t.visitUncheckedStatement(this):t.visitChildren(this)}},Nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(St,0)}simpleStatement(){return this.getTypedRuleContext(It,0)}expressionStatement(){return this.getTypedRuleContext(kt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_forStatement}enterRule(t){t.enterForStatement&&t.enterForStatement(this)}exitRule(t){t.exitForStatement&&t.exitForStatement(this)}accept(t){return t.visitForStatement?t.visitForStatement(this):t.visitChildren(this)}},Ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(te,0)}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Dt,0)}get ruleIndex(){return C.RULE_inlineAssemblyStatement}enterRule(t){t.enterInlineAssemblyStatement&&t.enterInlineAssemblyStatement(this)}exitRule(t){t.exitInlineAssemblyStatement&&t.exitInlineAssemblyStatement(this)}accept(t){return t.visitInlineAssemblyStatement?t.visitInlineAssemblyStatement(this):t.visitChildren(this)}},Dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}get ruleIndex(){return C.RULE_inlineAssemblyStatementFlag}enterRule(t){t.enterInlineAssemblyStatementFlag&&t.enterInlineAssemblyStatementFlag(this)}exitRule(t){t.exitInlineAssemblyStatementFlag&&t.exitInlineAssemblyStatementFlag(this)}accept(t){return t.visitInlineAssemblyStatementFlag?t.visitInlineAssemblyStatementFlag(this):t.visitChildren(this)}},Pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(St,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_doWhileStatement}enterRule(t){t.enterDoWhileStatement&&t.enterDoWhileStatement(this)}exitRule(t){t.exitDoWhileStatement&&t.exitDoWhileStatement(this)}accept(t){return t.visitDoWhileStatement?t.visitDoWhileStatement(this):t.visitChildren(this)}},qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}get ruleIndex(){return C.RULE_continueStatement}enterRule(t){t.enterContinueStatement&&t.enterContinueStatement(this)}exitRule(t){t.exitContinueStatement&&t.exitContinueStatement(this)}accept(t){return t.visitContinueStatement?t.visitContinueStatement(this):t.visitChildren(this)}},Mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}get ruleIndex(){return C.RULE_breakStatement}enterRule(t){t.enterBreakStatement&&t.enterBreakStatement(this)}exitRule(t){t.exitBreakStatement&&t.exitBreakStatement(this)}accept(t){return t.visitBreakStatement?t.visitBreakStatement(this):t.visitChildren(this)}},Ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_returnStatement}enterRule(t){t.enterReturnStatement&&t.enterReturnStatement(this)}exitRule(t){t.exitReturnStatement&&t.exitReturnStatement(this)}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},Ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_throwStatement}enterRule(t){t.enterThrowStatement&&t.enterThrowStatement(this)}exitRule(t){t.exitThrowStatement&&t.exitThrowStatement(this)}accept(t){return t.visitThrowStatement?t.visitThrowStatement(this):t.visitChildren(this)}},Yt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.RULE_emitStatement}enterRule(t){t.enterEmitStatement&&t.enterEmitStatement(this)}exitRule(t){t.exitEmitStatement&&t.exitEmitStatement(this)}accept(t){return t.visitEmitStatement?t.visitEmitStatement(this):t.visitChildren(this)}},Vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.RULE_revertStatement}enterRule(t){t.enterRevertStatement&&t.enterRevertStatement(this)}exitRule(t){t.exitRevertStatement&&t.exitRevertStatement(this)}accept(t){return t.visitRevertStatement?t.visitRevertStatement(this):t.visitChildren(this)}},jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifierList(){return this.getTypedRuleContext(Ht,0)}variableDeclaration(){return this.getTypedRuleContext(mt,0)}variableDeclarationList(){return this.getTypedRuleContext(Bt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_variableDeclarationStatement}enterRule(t){t.enterVariableDeclarationStatement&&t.enterVariableDeclarationStatement(this)}exitRule(t){t.exitVariableDeclarationStatement&&t.exitVariableDeclarationStatement(this)}accept(t){return t.visitVariableDeclarationStatement?t.visitVariableDeclarationStatement(this):t.visitChildren(this)}},Bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(mt)}variableDeclaration(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return C.RULE_variableDeclarationList}enterRule(t){t.enterVariableDeclarationList&&t.enterVariableDeclarationList(this)}exitRule(t){t.exitVariableDeclarationList&&t.exitVariableDeclarationList(this)}accept(t){return t.visitVariableDeclarationList?t.visitVariableDeclarationList(this):t.visitChildren(this)}},Ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_identifierList}enterRule(t){t.enterIdentifierList&&t.enterIdentifierList(this)}exitRule(t){t.exitIdentifierList&&t.exitIdentifierList(this)}accept(t){return t.visitIdentifierList?t.visitIdentifierList(this):t.visitChildren(this)}},$t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}Int(){return this.getToken(C.Int,0)}Uint(){return this.getToken(C.Uint,0)}Byte(){return this.getToken(C.Byte,0)}Fixed(){return this.getToken(C.Fixed,0)}Ufixed(){return this.getToken(C.Ufixed,0)}get ruleIndex(){return C.RULE_elementaryTypeName}enterRule(t){t.enterElementaryTypeName&&t.enterElementaryTypeName(this)}exitRule(t){t.exitElementaryTypeName&&t.exitElementaryTypeName(this)}accept(t){return t.visitElementaryTypeName?t.visitElementaryTypeName(this):t.visitChildren(this)}},Gt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}expression_list(){return this.getTypedRuleContexts(t)}expression(e){return this.getTypedRuleContext(t,e)}primaryExpression(){return this.getTypedRuleContext(zt,0)}identifier(){return this.getTypedRuleContext(ve,0)}nameValueList(){return this.getTypedRuleContext(Xt,0)}functionCallArguments(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.RULE_expression}enterRule(t){t.enterExpression&&t.enterExpression(this)}exitRule(t){t.exitExpression&&t.exitExpression(this)}accept(t){return t.visitExpression?t.visitExpression(this):t.visitChildren(this)}},zt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(xe,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}identifier(){return this.getTypedRuleContext(ve,0)}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(we,0)}typeName(){return this.getTypedRuleContext(yt,0)}get ruleIndex(){return C.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}accept(t){return t.visitPrimaryExpression?t.visitPrimaryExpression(this):t.visitChildren(this)}},Wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}get ruleIndex(){return C.RULE_expressionList}enterRule(t){t.enterExpressionList&&t.enterExpressionList(this)}exitRule(t){t.exitExpressionList&&t.exitExpressionList(this)}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},Xt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}nameValue_list(){return this.getTypedRuleContexts(Qt)}nameValue(t){return this.getTypedRuleContext(Qt,t)}get ruleIndex(){return C.RULE_nameValueList}enterRule(t){t.enterNameValueList&&t.enterNameValueList(this)}exitRule(t){t.exitNameValueList&&t.exitNameValueList(this)}accept(t){return t.visitNameValueList?t.visitNameValueList(this):t.visitChildren(this)}},Qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_nameValue}enterRule(t){t.enterNameValue&&t.enterNameValue(this)}exitRule(t){t.exitNameValue&&t.exitNameValue(this)}accept(t){return t.visitNameValue?t.visitNameValue(this):t.visitChildren(this)}},Jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}nameValueList(){return this.getTypedRuleContext(Xt,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.RULE_functionCallArguments}enterRule(t){t.enterFunctionCallArguments&&t.enterFunctionCallArguments(this)}exitRule(t){t.exitFunctionCallArguments&&t.exitFunctionCallArguments(this)}accept(t){return t.visitFunctionCallArguments?t.visitFunctionCallArguments(this):t.visitChildren(this)}},Zt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}functionCallArguments(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.RULE_functionCall}enterRule(t){t.enterFunctionCall&&t.enterFunctionCall(this)}exitRule(t){t.exitFunctionCall&&t.exitFunctionCall(this)}accept(t){return t.visitFunctionCall?t.visitFunctionCall(this):t.visitChildren(this)}},te=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(ee)}assemblyItem(t){return this.getTypedRuleContext(ee,t)}get ruleIndex(){return C.RULE_assemblyBlock}enterRule(t){t.enterAssemblyBlock&&t.enterAssemblyBlock(this)}exitRule(t){t.exitAssemblyBlock&&t.exitAssemblyBlock(this)}accept(t){return t.visitAssemblyBlock?t.visitAssemblyBlock(this):t.visitChildren(this)}},ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(ne,0)}assemblyAssignment(){return this.getTypedRuleContext(ae,0)}assemblyStackAssignment(){return this.getTypedRuleContext(le,0)}labelDefinition(){return this.getTypedRuleContext(he,0)}assemblySwitch(){return this.getTypedRuleContext(ue,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(pe,0)}assemblyFor(){return this.getTypedRuleContext(ye,0)}assemblyIf(){return this.getTypedRuleContext(fe,0)}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(xe,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}get ruleIndex(){return C.RULE_assemblyItem}enterRule(t){t.enterAssemblyItem&&t.enterAssemblyItem(this)}exitRule(t){t.exitAssemblyItem&&t.exitAssemblyItem(this)}accept(t){return t.visitAssemblyItem?t.visitAssemblyItem(this):t.visitChildren(this)}},re=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyCall(){return this.getTypedRuleContext(ie,0)}assemblyLiteral(){return this.getTypedRuleContext(ge,0)}assemblyMember(){return this.getTypedRuleContext(se,0)}get ruleIndex(){return C.RULE_assemblyExpression}enterRule(t){t.enterAssemblyExpression&&t.enterAssemblyExpression(this)}exitRule(t){t.exitAssemblyExpression&&t.exitAssemblyExpression(this)}accept(t){return t.visitAssemblyExpression?t.visitAssemblyExpression(this):t.visitChildren(this)}},se=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_assemblyMember}enterRule(t){t.enterAssemblyMember&&t.enterAssemblyMember(this)}exitRule(t){t.exitAssemblyMember&&t.exitAssemblyMember(this)}accept(t){return t.visitAssemblyMember?t.visitAssemblyMember(this):t.visitChildren(this)}},ie=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyExpression_list(){return this.getTypedRuleContexts(re)}assemblyExpression(t){return this.getTypedRuleContext(re,t)}get ruleIndex(){return C.RULE_assemblyCall}enterRule(t){t.enterAssemblyCall&&t.enterAssemblyCall(this)}exitRule(t){t.exitAssemblyCall&&t.exitAssemblyCall(this)}accept(t){return t.visitAssemblyCall?t.visitAssemblyCall(this):t.visitChildren(this)}},ne=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(oe,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.RULE_assemblyLocalDefinition}enterRule(t){t.enterAssemblyLocalDefinition&&t.enterAssemblyLocalDefinition(this)}exitRule(t){t.exitAssemblyLocalDefinition&&t.exitAssemblyLocalDefinition(this)}accept(t){return t.visitAssemblyLocalDefinition?t.visitAssemblyLocalDefinition(this):t.visitChildren(this)}},ae=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(oe,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.RULE_assemblyAssignment}enterRule(t){t.enterAssemblyAssignment&&t.enterAssemblyAssignment(this)}exitRule(t){t.exitAssemblyAssignment&&t.exitAssemblyAssignment(this)}accept(t){return t.visitAssemblyAssignment?t.visitAssemblyAssignment(this):t.visitChildren(this)}},oe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyMember(){return this.getTypedRuleContext(se,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.RULE_assemblyIdentifierOrList}enterRule(t){t.enterAssemblyIdentifierOrList&&t.enterAssemblyIdentifierOrList(this)}exitRule(t){t.exitAssemblyIdentifierOrList&&t.exitAssemblyIdentifierOrList(this)}accept(t){return t.visitAssemblyIdentifierOrList?t.visitAssemblyIdentifierOrList(this):t.visitChildren(this)}},ce=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_assemblyIdentifierList}enterRule(t){t.enterAssemblyIdentifierList&&t.enterAssemblyIdentifierList(this)}exitRule(t){t.exitAssemblyIdentifierList&&t.exitAssemblyIdentifierList(this)}accept(t){return t.visitAssemblyIdentifierList?t.visitAssemblyIdentifierList(this):t.visitChildren(this)}},le=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_assemblyStackAssignment}enterRule(t){t.enterAssemblyStackAssignment&&t.enterAssemblyStackAssignment(this)}exitRule(t){t.exitAssemblyStackAssignment&&t.exitAssemblyStackAssignment(this)}accept(t){return t.visitAssemblyStackAssignment?t.visitAssemblyStackAssignment(this):t.visitChildren(this)}},he=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_labelDefinition}enterRule(t){t.enterLabelDefinition&&t.enterLabelDefinition(this)}exitRule(t){t.exitLabelDefinition&&t.exitLabelDefinition(this)}accept(t){return t.visitLabelDefinition?t.visitLabelDefinition(this):t.visitChildren(this)}},ue=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyCase_list(){return this.getTypedRuleContexts(de)}assemblyCase(t){return this.getTypedRuleContext(de,t)}get ruleIndex(){return C.RULE_assemblySwitch}enterRule(t){t.enterAssemblySwitch&&t.enterAssemblySwitch(this)}exitRule(t){t.exitAssemblySwitch&&t.exitAssemblySwitch(this)}accept(t){return t.visitAssemblySwitch?t.visitAssemblySwitch(this):t.visitChildren(this)}},de=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(ge,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return C.RULE_assemblyCase}enterRule(t){t.enterAssemblyCase&&t.enterAssemblyCase(this)}exitRule(t){t.exitAssemblyCase&&t.exitAssemblyCase(this)}accept(t){return t.visitAssemblyCase?t.visitAssemblyCase(this):t.visitChildren(this)}},pe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(me,0)}get ruleIndex(){return C.RULE_assemblyFunctionDefinition}enterRule(t){t.enterAssemblyFunctionDefinition&&t.enterAssemblyFunctionDefinition(this)}exitRule(t){t.exitAssemblyFunctionDefinition&&t.exitAssemblyFunctionDefinition(this)}accept(t){return t.visitAssemblyFunctionDefinition?t.visitAssemblyFunctionDefinition(this):t.visitChildren(this)}},me=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.RULE_assemblyFunctionReturns}enterRule(t){t.enterAssemblyFunctionReturns&&t.enterAssemblyFunctionReturns(this)}exitRule(t){t.exitAssemblyFunctionReturns&&t.exitAssemblyFunctionReturns(this)}accept(t){return t.visitAssemblyFunctionReturns?t.visitAssemblyFunctionReturns(this):t.visitChildren(this)}},ye=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(re)}assemblyExpression(t){return this.getTypedRuleContext(re,t)}assemblyBlock_list(){return this.getTypedRuleContexts(te)}assemblyBlock(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return C.RULE_assemblyFor}enterRule(t){t.enterAssemblyFor&&t.enterAssemblyFor(this)}exitRule(t){t.exitAssemblyFor&&t.exitAssemblyFor(this)}accept(t){return t.visitAssemblyFor?t.visitAssemblyFor(this):t.visitChildren(this)}},fe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return C.RULE_assemblyIf}enterRule(t){t.enterAssemblyIf&&t.enterAssemblyIf(this)}exitRule(t){t.exitAssemblyIf&&t.exitAssemblyIf(this)}accept(t){return t.visitAssemblyIf?t.visitAssemblyIf(this):t.visitChildren(this)}},ge=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}get ruleIndex(){return C.RULE_assemblyLiteral}enterRule(t){t.enterAssemblyLiteral&&t.enterAssemblyLiteral(this)}exitRule(t){t.exitAssemblyLiteral&&t.exitAssemblyLiteral(this)}accept(t){return t.visitAssemblyLiteral?t.visitAssemblyLiteral(this):t.visitChildren(this)}},we=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}get ruleIndex(){return C.RULE_tupleExpression}enterRule(t){t.enterTupleExpression&&t.enterTupleExpression(this)}exitRule(t){t.exitTupleExpression&&t.exitTupleExpression(this)}accept(t){return t.visitTupleExpression?t.visitTupleExpression(this):t.visitChildren(this)}},xe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}NumberUnit(){return this.getToken(C.NumberUnit,0)}get ruleIndex(){return C.RULE_numberLiteral}enterRule(t){t.enterNumberLiteral&&t.enterNumberLiteral(this)}exitRule(t){t.exitNumberLiteral&&t.exitNumberLiteral(this)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},ve=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}Identifier(){return this.getToken(C.Identifier,0)}get ruleIndex(){return C.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},be=class extends _{constructor(t,e,r){super(e,r),this.parser=t}HexLiteralFragment_list(){return this.getTokens(C.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(C.HexLiteralFragment,t)}get ruleIndex(){return C.RULE_hexLiteral}enterRule(t){t.enterHexLiteral&&t.enterHexLiteral(this)}exitRule(t){t.exitHexLiteral&&t.exitHexLiteral(this)}accept(t){return t.visitHexLiteral?t.visitHexLiteral(this):t.visitChildren(this)}},_e=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(ft)}userDefinedTypeName(t){return this.getTypedRuleContext(ft,t)}get ruleIndex(){return C.RULE_overrideSpecifier}enterRule(t){t.enterOverrideSpecifier&&t.enterOverrideSpecifier(this)}exitRule(t){t.exitOverrideSpecifier&&t.exitOverrideSpecifier(this)}accept(t){return t.visitOverrideSpecifier?t.visitOverrideSpecifier(this):t.visitChildren(this)}},Ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment_list(){return this.getTokens(C.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(C.StringLiteralFragment,t)}get ruleIndex(){return C.RULE_stringLiteral}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}},Te=["SourceUnit","PragmaDirective","ImportDirective","ContractDefinition","InheritanceSpecifier","StateVariableDeclaration","UsingForDeclaration","StructDefinition","ModifierDefinition","ModifierInvocation","FunctionDefinition","EventDefinition","CustomErrorDefinition","RevertStatement","EnumValue","EnumDefinition","VariableDeclaration","UserDefinedTypeName","Mapping","ArrayTypeName","FunctionTypeName","Block","ExpressionStatement","IfStatement","WhileStatement","ForStatement","InlineAssemblyStatement","DoWhileStatement","ContinueStatement","Break","Continue","BreakStatement","ReturnStatement","EmitStatement","ThrowStatement","VariableDeclarationStatement","ElementaryTypeName","FunctionCall","AssemblyBlock","AssemblyCall","AssemblyLocalDefinition","AssemblyAssignment","AssemblyStackAssignment","LabelDefinition","AssemblySwitch","AssemblyCase","AssemblyFunctionDefinition","AssemblyFor","AssemblyIf","TupleExpression","NameValueExpression","BooleanLiteral","NumberLiteral","Identifier","BinaryOperation","UnaryOperation","NewExpression","Conditional","StringLiteral","HexLiteral","HexNumber","DecimalNumber","MemberAccess","IndexAccess","IndexRangeAccess","NameValueList","UncheckedStatement","TryStatement","CatchClause","FileLevelConstant","AssemblyMemberAccess","TypeDefinition"],Se=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],ke=["-","+","++","--","~","after","delete","!"],Re=class extends x{constructor(t){super(),this.options=t,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(t){const e={type:"SourceUnit",children:(t.children??[]).slice(0,-1).map(t=>this.visit(t))},r=this._addMeta(e,t);return this.result=r,r}visitContractPart(t){return this.visit(t.getChild(0))}visitContractDefinition(t){const e=this._toText(t.identifier()),r=this._toText(t.getChild(0));this._currentContract=e;const s=t.customStorageLayout_list();if(s.length>1)throw new Error("Only one custom storage layout is allowed per contract");const i={type:"ContractDefinition",name:e,baseContracts:t.inheritanceSpecifier_list().map(t=>this.visitInheritanceSpecifier(t)),subNodes:t.contractPart_list().map(t=>this.visit(t)),kind:r};return 1===s.length&&(i.storageLayout=this.visitExpression(s[0].expression())),this._addMeta(i,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),s=this._toText(r);let i=null;const n=t.expression();n&&(i=this.visitExpression(n));let a="default";t.InternalKeyword_list().length>0?a="internal":t.PublicKeyword_list().length>0?a="public":t.PrivateKeyword_list().length>0&&(a="private");let o,c=!1;t.ConstantKeyword_list().length>0&&(c=!0);const l=t.overrideSpecifier_list();o=0===l.length?null:l[0].userDefinedTypeName_list().map(t=>this.visitUserDefinedTypeName(t));let h=!1;t.ImmutableKeyword_list().length>0&&(h=!0);let u=!1;t.TransientKeyword_list().length>0&&(u=!0);const d={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,isTransient:u,override:o,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(d,t)],initialValue:i};return this._addMeta(p,t)}visitVariableDeclaration(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));const s=t.identifier(),i={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(s),identifier:this.visitIdentifier(s),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,t)}visitVariableDeclarationStatement(t){let e=[];const r=t.variableDeclaration(),s=t.identifierList(),i=t.variableDeclarationList();r?e=[this.visitVariableDeclaration(r)]:s?e=this.buildIdentifierList(s):i&&(e=this.buildVariableDeclarationList(i));let n=null;const a=t.expression();a&&(n=this.visitExpression(a));const o={type:"VariableDeclarationStatement",variables:e,initialValue:n};return this._addMeta(o,t)}visitStatement(t){return this.visit(t.getChild(0))}visitSimpleStatement(t){return this.visit(t.getChild(0))}visitEventDefinition(t){const e=t.eventParameterList().eventParameter_list().map(t=>{const e=this.visitTypeName(t.typeName());let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"VariableDeclaration",typeName:e,name:r,identifier:s?this.visitIdentifier(s):null,isStateVar:!1,isIndexed:Boolean(t.IndexedKeyword()),storageLocation:null,expression:null};return this._addMeta(i,t)}),r={type:"EventDefinition",name:this._toText(t.identifier()),parameters:e,isAnonymous:Boolean(t.AnonymousKeyword())};return this._addMeta(r,t)}visitBlock(t){const e={type:"Block",statements:t.statement_list().map(t=>this.visitStatement(t))};return this._addMeta(e,t)}visitParameter(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));let s=null;const i=t.identifier();i&&(s=this._toText(i));const n={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:s,identifier:i?this.visitIdentifier(i):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,t)}visitFunctionDefinition(t){let e=!1,r=!1,s=!1,i=!1,n=null,a=[],o=null,c=null;const l=t.block();l&&(c=this.visitBlock(l));const h=t.modifierList().modifierInvocation_list().map(t=>this.visitModifierInvocation(t));let u=null;t.modifierList().stateMutability_list().length>0&&(u=this._stateMutabilityToText(t.modifierList().stateMutability(0)));const d=t.returnParameters();let p,m="default";switch(t.modifierList().ExternalKeyword_list().length>0?m="external":t.modifierList().InternalKeyword_list().length>0?m="internal":t.modifierList().PublicKeyword_list().length>0?m="public":t.modifierList().PrivateKeyword_list().length>0&&(m="private"),this._toText(t.functionDescriptor().getChild(0))){case"constructor":a=t.parameterList().parameter_list().map(t=>this.visit(t)),e=!0;break;case"fallback":a=t.parameterList().parameter_list().map(t=>this.visit(t)),o=d?this.visitReturnParameters(d):null,r=!0;break;case"receive":s=!0;break;case"function":{const s=t.functionDescriptor().identifier();n=s?this._toText(s):"",a=t.parameterList().parameter_list().map(t=>this.visit(t)),o=d?this.visitReturnParameters(d):null,e=n===this._currentContract,r=""===n;break}}t.modifierList().VirtualKeyword_list().length>0&&(i=!0);const y=t.modifierList().overrideSpecifier_list();p=0===y.length?null:y[0].userDefinedTypeName_list().map(t=>this.visitUserDefinedTypeName(t));const f={type:"FunctionDefinition",name:n,parameters:a,returnParameters:o,body:c,visibility:m,modifiers:h,override:p,isConstructor:e,isReceiveEther:s,isFallback:r,isVirtual:i,stateMutability:u};return this._addMeta(f,t)}visitEnumDefinition(t){const e={type:"EnumDefinition",name:this._toText(t.identifier()),members:t.enumValue_list().map(t=>this.visitEnumValue(t))};return this._addMeta(e,t)}visitEnumValue(t){const e={type:"EnumValue",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitElementaryTypeName(t){const e={type:"ElementaryTypeName",name:this._toText(t),stateMutability:null};return this._addMeta(e,t)}visitIdentifier(t){const e={type:"Identifier",name:this._toText(t)};return this._addMeta(e,t)}visitTypeName(t){if(t.children&&t.children.length>2){let e=null;if(4===t.children.length){const r=t.expression();if(null==r)throw new Error("Assertion error: a typeName with 4 children should have an expression");e=this.visitExpression(r)}const r={type:"ArrayTypeName",baseTypeName:this.visitTypeName(t.typeName()),length:e};return this._addMeta(r,t)}if(2===t.children?.length){const e={type:"ElementaryTypeName",name:this._toText(t.getChild(0)),stateMutability:this._toText(t.getChild(1))};return this._addMeta(e,t)}if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());if(t.mapping())return this.visitMapping(t.mapping());if(t.functionTypeName())return this.visitFunctionTypeName(t.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(t){const e={type:"UserDefinedTypeName",namePath:this._toText(t)};return this._addMeta(e,t)}visitUsingForDeclaration(t){let e=null;const r=t.typeName();r&&(e=this.visitTypeName(r));const s=Boolean(t.GlobalKeyword()),i=t.usingForObject(),n=i.userDefinedTypeName();let a;if(n)a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:this._toText(n),functions:[],operators:[]};else{const t=i.usingForObjectDirective_list(),r=[],n=[];for(const e of t){r.push(this._toText(e.userDefinedTypeName()));const t=e.userDefinableOperators();t?n.push(this._toText(t)):n.push(null)}a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:null,functions:r,operators:n}}return this._addMeta(a,t)}visitPragmaDirective(t){const e=t.pragmaValue().version();let r=this._toText(t.pragmaValue());e?.children&&(r=e.children.map(t=>this._toText(t)).join(" "));const s={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:r};return this._addMeta(s,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),r=e?e.expression_list().map(t=>this.visitExpression(t)):[],s={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:r};return this._addMeta(s,t)}visitModifierInvocation(t){const e=t.expressionList();let r;r=null!=e?e.expression_list().map(t=>this.visit(t)):t.children&&t.children.length>1?[]:null;const s={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:r};return this._addMeta(s,t)}visitFunctionTypeName(t){const e=t.functionTypeParameterList(0).functionTypeParameter_list().map(t=>this.visitFunctionTypeParameter(t));let r=[];t.functionTypeParameterList_list().length>1&&(r=t.functionTypeParameterList(1).functionTypeParameter_list().map(t=>this.visitFunctionTypeParameter(t)));let s="default";t.InternalKeyword_list().length>0?s="internal":t.ExternalKeyword_list().length>0&&(s="external");let i=null;t.stateMutability_list().length>0&&(i=this._toText(t.stateMutability(0)));const n={type:"FunctionTypeName",parameterTypes:e,returnTypes:r,visibility:s,stateMutability:i};return this._addMeta(n,t)}visitFunctionTypeParameter(t){let e=null;t.storageLocation()&&(e=this._toText(t.storageLocation()));const r={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:null,identifier:null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,t)}visitThrowStatement(t){return this._addMeta({type:"ThrowStatement"},t)}visitReturnStatement(t){let e=null;const r=t.expression();r&&(e=this.visitExpression(r));const s={type:"ReturnStatement",expression:e};return this._addMeta(s,t)}visitEmitStatement(t){const e={type:"EmitStatement",eventCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitCustomErrorDefinition(t){const e={type:"CustomErrorDefinition",name:this._toText(t.identifier()),parameters:this.visitParameterList(t.parameterList())};return this._addMeta(e,t)}visitTypeDefinition(t){const e={type:"TypeDefinition",name:this._toText(t.identifier()),definition:this.visitElementaryTypeName(t.elementaryTypeName())};return this._addMeta(e,t)}visitRevertStatement(t){const e={type:"RevertStatement",revertCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitFunctionCall(t){let e=[];const r=[],s=[],i=t.functionCallArguments(),n=i.expressionList(),a=i.nameValueList();if(n)e=n.expression_list().map(t=>this.visitExpression(t));else if(a)for(const t of a.nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const o={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:r,identifiers:s};return this._addMeta(o,t)}visitStructDefinition(t){const e={type:"StructDefinition",name:this._toText(t.identifier()),members:t.variableDeclaration_list().map(t=>this.visitVariableDeclaration(t))};return this._addMeta(e,t)}visitWhileStatement(t){const e={type:"WhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitDoWhileStatement(t){const e={type:"DoWhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitIfStatement(t){const e=this.visitStatement(t.statement(0));let r=null;t.statement_list().length>1&&(r=this.visitStatement(t.statement(1)));const s={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:r};return this._addMeta(s,t)}visitTryStatement(t){let e=null;const r=t.returnParameters();r&&(e=this.visitReturnParameters(r));const s=t.catchClause_list().map(t=>this.visitCatchClause(t)),i={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:s};return this._addMeta(i,t)}visitCatchClause(t){let e=null;if(t.parameterList()&&(e=this.visitParameterList(t.parameterList())),t.identifier()&&"Error"!==this._toText(t.identifier())&&"Panic"!==this._toText(t.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(i,t)}visitExpressionStatement(t){if(!t)return null;const e={type:"ExpressionStatement",expression:this.visitExpression(t.expression())};return this._addMeta(e,t)}visitNumberLiteral(t){const e=this._toText(t.getChild(0));let r=null;2===t.children?.length&&(r=this._toText(t.getChild(1)));const s={type:"NumberLiteral",number:e,subdenomination:r};return this._addMeta(s,t)}visitMappingKey(t){if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(t){const e=t.mappingKeyName(),r=t.mappingValueName(),s={type:"Mapping",keyType:this.visitMappingKey(t.mappingKey()),keyName:e?this.visitIdentifier(e.identifier()):null,valueType:this.visitTypeName(t.typeName()),valueName:r?this.visitIdentifier(r.identifier()):null};return this._addMeta(s,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let r,s=!1;t.VirtualKeyword_list().length>0&&(s=!0);const i=t.overrideSpecifier_list();r=0===i.length?null:i[0].userDefinedTypeName_list().map(t=>this.visitUserDefinedTypeName(t));let n=null;const a=t.block();a&&(n=this.visitBlock(a));const o={type:"ModifierDefinition",name:this._toText(t.identifier()),parameters:e,body:n,isVirtual:s,override:r};return this._addMeta(o,t)}visitUncheckedStatement(t){const e={type:"UncheckedStatement",block:this.visitBlock(t.block())};return this._addMeta(e,t)}visitExpression(t){let e;switch(t.children.length){case 1:{const e=t.primaryExpression();if(null==e)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(e)}case 2:if(e=this._toText(t.getChild(0)),"new"===e){const e={type:"NewExpression",typeName:this.visitTypeName(t.typeName())};return this._addMeta(e,t)}if(ke.includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!0};return this._addMeta(r,t)}if(e=this._toText(t.getChild(1)),["++","--"].includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!1};return this._addMeta(r,t)}break;case 3:if("("===this._toText(t.getChild(0))&&")"===this._toText(t.getChild(2))){const e={type:"TupleExpression",components:[this.visitExpression(t.expression(0))],isArray:!1};return this._addMeta(e,t)}if(e=this._toText(t.getChild(1)),"."===e){const e={type:"MemberAccess",expression:this.visitExpression(t.expression(0)),memberName:this._toText(t.identifier())};return this._addMeta(e,t)}if(function(t){return Se.includes(t)}(e)){const r={type:"BinaryOperation",operator:e,left:this.visitExpression(t.expression(0)),right:this.visitExpression(t.expression(1))};return this._addMeta(r,t)}break;case 4:if("("===this._toText(t.getChild(1))&&")"===this._toText(t.getChild(3))){let e=[];const r=[],s=[],i=t.functionCallArguments();if(i.expressionList())e=i.expressionList().expression_list().map(t=>this.visitExpression(t));else if(i.nameValueList())for(const t of i.nameValueList().nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const n={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:r,identifiers:s};return this._addMeta(n,t)}if("["===this._toText(t.getChild(1))&&"]"===this._toText(t.getChild(3))){if(":"===t.getChild(2).getText()){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0))};return this._addMeta(e,t)}const e={type:"IndexAccess",base:this.visitExpression(t.expression(0)),index:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("{"===this._toText(t.getChild(1))&&"}"===this._toText(t.getChild(3))){const e={type:"NameValueExpression",expression:this.visitExpression(t.expression(0)),arguments:this.visitNameValueList(t.nameValueList())};return this._addMeta(e,t)}break;case 5:if("?"===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))){const e={type:"Conditional",condition:this.visitExpression(t.expression(0)),trueExpression:this.visitExpression(t.expression(1)),falseExpression:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(2))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexEnd:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}break;case 6:if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(5))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1)),indexEnd:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}}throw new Error("Unrecognized expression")}visitNameValueList(t){const e=[],r=[],s=[];for(const i of t.nameValue_list())e.push(this._toText(i.identifier())),r.push(this.visitIdentifier(i.identifier())),s.push(this.visitExpression(i.expression()));const i={type:"NameValueList",names:e,identifiers:r,arguments:s};return this._addMeta(i,t)}visitFileLevelConstant(t){const e={type:"FileLevelConstant",typeName:this.visitTypeName(t.typeName()),name:this._toText(t.identifier()),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(e,t)}visitForStatement(t){let e=this.visitExpressionStatement(t.expressionStatement());e&&(e=e.expression);const r={type:"ForStatement",initExpression:t.simpleStatement()?this.visitSimpleStatement(t.simpleStatement()):null,conditionExpression:e,loopExpression:{type:"ExpressionStatement",expression:t.expression()?this.visitExpression(t.expression()):null},body:this.visitStatement(t.statement())};return this._addMeta(r,t)}visitHexLiteral(t){const e=t.HexLiteralFragment_list().map(t=>this._toText(t)).map(t=>t.substring(4,t.length-1)),r={type:"HexLiteral",value:e.join(""),parts:e};return this._addMeta(r,t)}visitPrimaryExpression(t){if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){const e=t.stringLiteral().StringLiteralFragment_list().map(t=>{let e=this._toText(t);const r="unicode"===e.slice(0,7);r&&(e=e.slice(7));const s="'"===e[0],i=e.substring(1,e.length-1);return{value:s?i.replace(new RegExp("\\\\'","g"),"'"):i.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}}),r=e.map(t=>t.value),s={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:e.map(t=>t.isUnicode)};return this._addMeta(s,t)}if(t.numberLiteral())return this.visitNumberLiteral(t.numberLiteral());if(t.TypeKeyword()){const e={type:"Identifier",name:"type"};return this._addMeta(e,t)}return t.typeName()?this.visitTypeName(t.typeName()):this.visit(t.getChild(0))}visitTupleExpression(t){const e=t.children.slice(1,-1),r={type:"TupleExpression",components:this._mapCommasToNulls(e).map(t=>null===t?null:this.visit(t)),isArray:"["===this._toText(t.getChild(0))};return this._addMeta(r,t)}buildIdentifierList(t){const e=t.children.slice(1,-1),r=t.identifier_list();let s=0;return this._mapCommasToNulls(e).map(t=>{if(null===t)return null;const e=r[s];s++;const i={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(i,e)})}buildVariableDeclarationList(t){const e=t.variableDeclaration_list();let r=0;return this._mapCommasToNulls(t.children??[]).map(t=>{if(!t)return null;const s=e[r];r++;let i=null;s.storageLocation()&&(i=this._toText(s.storageLocation()));const n=s.identifier(),a={type:"VariableDeclaration",name:this._toText(n),identifier:this.visitIdentifier(n),typeName:this.visitTypeName(s.typeName()),storageLocation:i,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,s)})}visitImportDirective(t){const e=this._toText(t.importPath());let r=null,s=null,i=null,n=null;if(t.importDeclaration_list().length>0)i=t.importDeclaration_list().map(t=>{const e=this._toText(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this._toText(t.identifier(1))),[e,r]}),n=t.importDeclaration_list().map(t=>{const e=this.visitIdentifier(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this.visitIdentifier(t.identifier(1))),[e,r]});else{const e=t.identifier_list();if(0===e.length);else if(1===e.length){const e=t.identifier(0);r=this._toText(e),s=this.visitIdentifier(e)}else{if(2!==e.length)throw new Error("Assertion error: an import should have one or two identifiers");{const e=t.identifier(1);r=this._toText(e),s=this.visitIdentifier(e)}}}const a=e.substring(1,e.length-1),o={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]},c={type:"ImportDirective",path:a,pathLiteral:this._addMeta(o,t.importPath()),unitAlias:r,unitAliasIdentifier:s,symbolAliases:i,symbolAliasesIdentifiers:n};return this._addMeta(c,t)}buildEventParameterList(t){return t.eventParameter_list().map(t=>{const e=this.visit(t.typeName()),r=t.identifier();return{type:"VariableDeclaration",typeName:e,name:r?this._toText(r):null,isStateVar:!1,isIndexed:!!t.IndexedKeyword()}})}visitReturnParameters(t){return this.visitParameterList(t.parameterList())}visitParameterList(t){return t.parameter_list().map(t=>this.visitParameter(t))}visitInlineAssemblyStatement(t){let e=null;t.StringLiteralFragment()&&(e=this._toText(t.StringLiteralFragment()),e=e.substring(1,e.length-1));const r=[],s=t.inlineAssemblyStatementFlag();if(s){const t=this._toText(s.stringLiteral());r.push(t.slice(1,t.length-1))}const i={type:"InlineAssemblyStatement",language:e,flags:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(i,t)}visitAssemblyBlock(t){const e={type:"AssemblyBlock",operations:t.assemblyItem_list().map(t=>this.visitAssemblyItem(t))};return this._addMeta(e,t)}visitAssemblyItem(t){let e;if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){e=this._toText(t.stringLiteral());const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BreakKeyword()){const e={type:"Break"};return this._addMeta(e,t)}if(t.ContinueKeyword()){const e={type:"Continue"};return this._addMeta(e,t)}return this.visit(t.getChild(0))}visitAssemblyExpression(t){return this.visit(t.getChild(0))}visitAssemblyCall(t){const e={type:"AssemblyCall",functionName:this._toText(t.getChild(0)),arguments:t.assemblyExpression_list().map(t=>this.visitAssemblyExpression(t))};return this._addMeta(e,t)}visitAssemblyLiteral(t){let e;if(t.stringLiteral()){e=this._toText(t);const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.DecimalNumber()){const e={type:"DecimalNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.HexNumber()){const e={type:"HexNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(t){const e={type:"AssemblySwitch",expression:this.visitAssemblyExpression(t.assemblyExpression()),cases:t.assemblyCase_list().map(t=>this.visitAssemblyCase(t))};return this._addMeta(e,t)}visitAssemblyCase(t){let e=null;"case"===this._toText(t.getChild(0))&&(e=this.visitAssemblyLiteral(t.assemblyLiteral()));const r={type:"AssemblyCase",block:this.visitAssemblyBlock(t.assemblyBlock()),value:e,default:null===e};return this._addMeta(r,t)}visitAssemblyLocalDefinition(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map(t=>this.visitIdentifier(t));let s=null;t.assemblyExpression()&&(s=this.visitAssemblyExpression(t.assemblyExpression()));const i={type:"AssemblyLocalDefinition",names:r,expression:s};return this._addMeta(i,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),r=e?e.identifier_list().map(t=>this.visitIdentifier(t)):[],s=t.assemblyFunctionReturns(),i=s?s.assemblyIdentifierList().identifier_list().map(t=>this.visitIdentifier(t)):[],n={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:r,returnArguments:i,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(n,t)}visitAssemblyAssignment(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map(t=>this.visitIdentifier(t));const s={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(s,t)}visitAssemblyMember(t){const[e,r]=t.identifier_list(),s={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(r)};return this._addMeta(s,t)}visitLabelDefinition(t){const e={type:"LabelDefinition",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitAssemblyStackAssignment(t){const e={type:"AssemblyStackAssignment",name:this._toText(t.identifier()),expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(e,t)}visitAssemblyFor(t){const e={type:"AssemblyFor",pre:this.visit(t.getChild(1)),condition:this.visit(t.getChild(2)),post:this.visit(t.getChild(3)),body:this.visit(t.getChild(4))};return this._addMeta(e,t)}visitAssemblyIf(t){const e={type:"AssemblyIf",condition:this.visitAssemblyExpression(t.assemblyExpression()),body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(e,t)}visitContinueStatement(t){return this._addMeta({type:"ContinueStatement"},t)}visitBreakStatement(t){return this._addMeta({type:"BreakStatement"},t)}_toText(t){const e=t.getText();if(null==e)throw new Error("Assertion error: text should never be undefined");return e}_stateMutabilityToText(t){if(t.PureKeyword())return"pure";if(t.ConstantKeyword())return"constant";if(t.PayableKeyword())return"payable";if(t.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(t){return{start:{line:t.start.line,column:t.start.column},end:{line:t.stop?t.stop.line:t.start.line,column:t.stop?t.stop.column:t.start.column}}}_range(t){return[t.start.start,t.stop?.stop??t.start.start]}_addMeta(t,e){const r={type:t.type};return!0===this.options.loc&&(t.loc=this._loc(e)),!0===this.options.range&&(t.range=this._range(e)),{...r,...t}}_mapCommasToNulls(t){if(0===t.length)return[];const e=[];let r=!0;for(const s of t)if(r)","===this._toText(s)?e.push(null):(e.push(s),r=!1);else{if(","!==this._toText(s))throw new Error("expected comma");r=!0}return r&&e.push(null),e}},Ae=class extends m{constructor(){super(),this._errors=[]}syntaxError(t,e,r,s,i){this._errors.push({message:i,line:r,column:s})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},Ce={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"layout",26:"at",27:"error",28:"using",29:"for",30:"|",31:"&",32:"+",33:"-",34:"/",35:"%",36:"==",37:"!=",38:"struct",39:"modifier",40:"function",41:"returns",42:"event",43:"enum",44:"[",45:"]",46:"address",47:".",48:"mapping",49:"=>",50:"memory",51:"storage",52:"calldata",53:"if",54:"else",55:"try",56:"catch",57:"while",58:"unchecked",59:"assembly",60:"do",61:"return",62:"throw",63:"emit",64:"revert",65:"var",66:"bool",67:"string",68:"byte",69:"++",70:"--",71:"new",72:":",73:"delete",74:"!",75:"**",76:"<<",77:">>",78:"&&",79:"?",80:"|=",81:"^=",82:"&=",83:"<<=",84:">>=",85:"+=",86:"-=",87:"*=",88:"/=",89:"%=",90:"let",91:":=",92:"=:",93:"switch",94:"case",95:"default",96:"->",97:"callback",98:"override",99:"Int",100:"Uint",101:"Byte",102:"Fixed",103:"Ufixed",104:"BooleanLiteral",105:"DecimalNumber",106:"HexNumber",107:"NumberUnit",108:"HexLiteralFragment",109:"ReservedKeyword",110:"anonymous",111:"break",112:"constant",113:"transient",114:"immutable",115:"continue",116:"leave",117:"external",118:"indexed",119:"internal",120:"payable",121:"private",122:"public",123:"virtual",124:"pure",125:"type",126:"view",127:"global",128:"constructor",129:"fallback",130:"receive",131:"Identifier",132:"StringLiteralFragment",133:"VersionLiteral",134:"WS",135:"COMMENT",136:"LINE_COMMENT"},Le=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Ie(t){return[t.start,t.stop+1]}function Ke(t){const e=(t.text??"").split(/\r?\n/),r=e.length-1;return{start:{line:t.line,column:t.column},end:{line:t.line+r,column:e[r].length+(0===r?t.column:0)}}}function Ne(t,e){return t.map(t=>{var r;const s={type:"Identifier"===(r=Ce[t.type.toString()])||"from"===r?"Identifier":"TrueLiteral"===r||"FalseLiteral"===r?"Boolean":"VersionLiteral"===r?"Version":"StringLiteral"===r?"String":Le.includes(r)?"Type":"NumberUnit"===r?"Subdenomination":"DecimalNumber"===r?"Numeric":"HexLiteral"===r?"Hex":"ReservedKeyword"===r?"Reserved":/^\W+$/.test(r)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(s.range=Ie(t)),!0===e.loc&&(s.loc=Ke(t)),s})}var Oe=class extends Error{constructor(t){super();const{message:e,line:r,column:s}=t.errors[0];this.message=`${e} (${r}:${s})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function De(t,e={}){const r=new u(t);return Ne(new R(r).getAllTokens(),e)}function Pe(t,e={}){const r=new u(t),s=new R(r),i=new d(s),n=new C(i),a=new Ae;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),c=new Re(e);c.visit(o);const l=c.result;if(null===l)throw new Error("ast should never be null");if(!0===e.tokens&&(l.tokens=Ne(i.tokens,e)),!0===e.comments&&(l.comments=function(t,e,r){return t.filter(t=>t.channel===e).map(t=>{const e=t.text.startsWith("//")?{type:"LineComment",value:t.text.slice(2)}:{type:"BlockComment",value:t.text.slice(2,-2)};return!0===r.range&&(e.range=Ie(t)),!0===r.loc&&(e.loc=Ke(t)),e})}(i.tokens,s.channelNames.indexOf("HIDDEN"),e)),a.hasErrors()){if(!0!==e.tolerant)throw new Oe({errors:a.getErrors()});l.errors=a.getErrors()}return l}function qe(t,e,r){if(Array.isArray(t)&&t.forEach(t=>qe(t,e,r)),!function(t){if("object"!=typeof t||null===t)return!1;const e=t;return!(!Object.prototype.hasOwnProperty.call(e,"type")||"string"!=typeof e.type)&&Te.includes(e.type)}(t))return;let s=!0;if(void 0!==e[t.type]&&(s=e[t.type](t,r)),!1===s)return;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&qe(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}var Me,Fe={ParserError:Oe,parse:Pe,tokenize:De,visit:qe};return Me=i,((i,n,a,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of r(n))s.call(i,a)||void 0===a||t(i,a,{get:()=>n[a],enumerable:!(o=e(n,a))||o.enumerable});return i})(t({},"__esModule",{value:!0}),Me)})();return t},t.exports=e()},3904(t,e,r){const s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(t,e){if(e=n(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===s||t===s)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return c(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(t.value,e).test(this.value):""===t.operator?""===t.value||new u(this.value,e).test(t.semver):!((e=n(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const n=r(8587),{safeRe:a,t:o}=r(9718),c=r(2111),l=r(7272),h=r(3908),u=r(8311)},8311(t,e,r){const s=/\s+/g;class i{constructor(t,e){if(e=a(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(s," "),this.set=this.raw.split("||").map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter(t=>!g(t[0])),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&w(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");const e=this.set[t];for(let t=0;t<e.length;t++)t>0&&(this.formatted+=" "),this.formatted+=e[t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&y)|(this.options.loose&&f))+":"+t,r=n.get(e);if(r)return r;const s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];t=t.replace(i,L(this.options.includePrerelease)),c("hyphen replace",t),t=t.replace(h[u.COMPARATORTRIM],d),c("comparator trim",t),t=t.replace(h[u.TILDETRIM],p),c("tilde trim",t),t=t.replace(h[u.CARETTRIM],m),c("caret trim",t);let a=t.split(" ").map(t=>v(t,this.options)).join(" ").split(/\s+/).map(t=>C(t,this.options));s&&(a=a.filter(t=>(c("loose invalid filter",t,this.options),!!t.match(h[u.COMPARATORLOOSE])))),c("range list",a);const l=new Map,w=a.map(t=>new o(t,this.options));for(const t of w){if(g(t))return[t];l.set(t.value,t)}l.size>1&&l.has("")&&l.delete("");const x=[...l.values()];return n.set(e,x),x}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some(r=>x(r,e)&&t.set.some(t=>x(t,e)&&r.every(r=>t.every(t=>r.intersects(t,e)))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(I(this.set[e],t,this.options))return!0;return!1}}t.exports=i;const n=new(r(8794)),a=r(8587),o=r(3904),c=r(7272),l=r(3908),{safeRe:h,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(9718),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:f}=r(6874),g=t=>"<0.0.0-0"===t.value,w=t=>""===t.value,x=(t,e)=>{let r=!0;const s=t.slice();let i=s.pop();for(;r&&s.length;)r=s.every(t=>i.intersects(t,e)),i=s.pop();return r},v=(t,e)=>(t=t.replace(h[u.BUILD],""),c("comp",t,e),t=T(t,e),c("caret",t),t=_(t,e),c("tildes",t),t=k(t,e),c("xrange",t),t=A(t,e),c("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,_=(t,e)=>t.trim().split(/\s+/).map(t=>E(t,e)).join(" "),E=(t,e)=>{const r=e.loose?h[u.TILDELOOSE]:h[u.TILDE];return t.replace(r,(e,r,s,i,n)=>{let a;return c("tilde",t,e,r,s,i,n),b(r)?a="":b(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(c("replaceTilde pr",n),a=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,c("tilde return",a),a})},T=(t,e)=>t.trim().split(/\s+/).map(t=>S(t,e)).join(" "),S=(t,e)=>{c("caret",t,e);const r=e.loose?h[u.CARETLOOSE]:h[u.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(e,r,i,n,a)=>{let o;return c("caret",t,e,r,i,n,a),b(r)?o="":b(i)?o=`>=${r}.0.0${s} <${+r+1}.0.0-0`:b(n)?o="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:a?(c("replaceCaret pr",a),o="0"===r?"0"===i?`>=${r}.${i}.${n}-${a} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${a} <${+r+1}.0.0-0`):(c("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${n}${s} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),c("caret return",o),o})},k=(t,e)=>(c("replaceXRanges",t,e),t.split(/\s+/).map(t=>R(t,e)).join(" ")),R=(t,e)=>{t=t.trim();const r=e.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return t.replace(r,(r,s,i,n,a,o)=>{c("xRange",t,r,s,i,n,a,o);const l=b(i),h=l||b(n),u=h||b(a),d=u;return"="===s&&d&&(s=""),o=e.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(h&&(n=0),a=0,">"===s?(s=">=",h?(i=+i+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(o="-0"),r=`${s+i}.${n}.${a}${o}`):h?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${o} <${i}.${+n+1}.0-0`),c("xRange return",r),r})},A=(t,e)=>(c("replaceStars",t,e),t.trim().replace(h[u.STAR],"")),C=(t,e)=>(c("replaceGTE0",t,e),t.trim().replace(h[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),L=t=>(e,r,s,i,n,a,o,c,l,h,u,d)=>`${r=b(s)?"":b(i)?`>=${s}.0.0${t?"-0":""}`:b(n)?`>=${s}.${i}.0${t?"-0":""}`:a?`>=${r}`:`>=${r}${t?"-0":""}`} ${c=b(l)?"":b(h)?`<${+l+1}.0.0-0`:b(u)?`<${l}.${+h+1}.0-0`:d?`<=${l}.${h}.${u}-${d}`:t?`<${l}.${h}.${+u+1}-0`:`<=${c}`}`.trim(),I=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(c(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}},3908(t,e,r){const s=r(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(6874),{safeRe:a,t:o}=r(9718),c=r(8587),{compareIdentifiers:l}=r(1123);class h{constructor(t,e){if(e=c(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);s("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(s("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(s("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(s("build compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}inc(t,e,r){if(t.startsWith("pre")){if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(e){const t=`-${e}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!t||t[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[t];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let s=[e,t];!1===r&&(s=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=h},7414(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},2111(t,e,r){const s=r(4641),i=r(3999),n=r(5580),a=r(4089),o=r(7059),c=r(5200);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return s(t,r,l);case"!=":return i(t,r,l);case">":return n(t,r,l);case">=":return a(t,r,l);case"<":return o(t,r,l);case"<=":return c(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},6170(t,e,r){const s=r(3908),i=r(144),{safeRe:n,t:a}=r(9718);t.exports=(t,e)=>{if(t instanceof s)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){const s=e.includePrerelease?n[a.COERCERTLFULL]:n[a.COERCERTL];let i;for(;(i=s.exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else r=t.match(e.includePrerelease?n[a.COERCEFULL]:n[a.COERCE]);if(null===r)return null;const o=r[2],c=r[3]||"0",l=r[4]||"0",h=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${o}.${c}.${l}${h}${u}`,e)}},909(t,e,r){const s=r(3908);t.exports=(t,e,r)=>{const i=new s(t,r),n=new s(e,r);return i.compare(n)||i.compareBuild(n)}},1763(t,e,r){const s=r(560);t.exports=(t,e)=>s(t,e,!0)},560(t,e,r){const s=r(3908);t.exports=(t,e,r)=>new s(t,r).compare(new s(e,r))},1832(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t,null,!0),i=s(e,null,!0),n=r.compare(i);if(0===n)return null;const a=n>0,o=a?r:i,c=a?i:r,l=!!o.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(o))return c.minor&&!c.patch?"minor":"patch"}const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},4641(t,e,r){const s=r(560);t.exports=(t,e,r)=>0===s(t,e,r)},5580(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>0},4089(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>=0},3007(t,e,r){const s=r(3908);t.exports=(t,e,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(t instanceof s?t.version:t,r).inc(e,i,n).version}catch(t){return null}}},7059(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<0},5200(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<=0},2938(t,e,r){const s=r(3908);t.exports=(t,e)=>new s(t,e).major},6254(t,e,r){const s=r(3908);t.exports=(t,e)=>new s(t,e).minor},3999(t,e,r){const s=r(560);t.exports=(t,e,r)=>0!==s(t,e,r)},144(t,e,r){const s=r(3908);t.exports=(t,e,r=!1)=>{if(t instanceof s)return t;try{return new s(t,e)}catch(t){if(!r)return null;throw t}}},4493(t,e,r){const s=r(3908);t.exports=(t,e)=>new s(t,e).patch},1729(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r&&r.prerelease.length?r.prerelease:null}},9970(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(e,t,r)},4277(t,e,r){const s=r(909);t.exports=(t,e)=>t.sort((t,r)=>s(r,t,e))},7638(t,e,r){const s=r(8311);t.exports=(t,e,r)=>{try{e=new s(e,r)}catch(t){return!1}return e.test(t)}},6308(t,e,r){const s=r(909);t.exports=(t,e)=>t.sort((t,r)=>s(t,r,e))},6953(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r?r.version:null}},9589(t,e,r){const s=r(9718),i=r(6874),n=r(3908),a=r(1123),o=r(144),c=r(6953),l=r(7414),h=r(3007),u=r(1832),d=r(2938),p=r(6254),m=r(4493),y=r(1729),f=r(560),g=r(9970),w=r(1763),x=r(909),v=r(6308),b=r(4277),_=r(5580),E=r(7059),T=r(4641),S=r(3999),k=r(4089),R=r(5200),A=r(2111),C=r(6170),L=r(3904),I=r(8311),K=r(7638),N=r(7631),O=r(9628),D=r(270),P=r(1261),q=r(3874),M=r(7075),F=r(5571),U=r(5342),Y=r(6780),V=r(2525),j=r(5032);t.exports={parse:o,valid:c,clean:l,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:y,compare:f,rcompare:g,compareLoose:w,compareBuild:x,sort:v,rsort:b,gt:_,lt:E,eq:T,neq:S,gte:k,lte:R,cmp:A,coerce:C,Comparator:L,Range:I,satisfies:K,toComparators:N,maxSatisfying:O,minSatisfying:D,minVersion:P,validRange:q,outside:M,gtr:F,ltr:U,intersects:Y,simplifyRange:V,subset:j,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},6874(t){const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(t){const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},1123(t){const e=/^[0-9]+$/,r=(t,r)=>{if("number"==typeof t&&"number"==typeof r)return t===r?0:t<r?-1:1;const s=e.test(t),i=e.test(r);return s&&i&&(t=+t,r=+r),t===r?0:s&&!i?-1:i&&!s?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},8794(t){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(t){const e=this.map.get(t);return void 0===e?void 0:(this.map.delete(t),this.map.set(t,e),e)}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}},8587(t){const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},9718(t,e,r){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(6874),a=r(7272),o=(e=t.exports={}).re=[],c=e.safeRe=[],l=e.src=[],h=e.safeSrc=[],u=e.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",n],[p,i]],y=(t,e,r)=>{const s=(t=>{for(const[e,r]of m)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=d++;a(t,i,e),u[t]=i,l[i]=e,h[i]=s,o[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${p}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),y("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("COERCERTLFULL",l[u.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571(t,e,r){const s=r(7075);t.exports=(t,e,r)=>s(t,e,">",r)},6780(t,e,r){const s=r(8311);t.exports=(t,e,r)=>(t=new s(t,r),e=new s(e,r),t.intersects(e,r))},5342(t,e,r){const s=r(7075);t.exports=(t,e,r)=>s(t,e,"<",r)},9628(t,e,r){const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach(t=>{o.test(t)&&(n&&-1!==a.compare(t)||(n=t,a=new s(n,r)))}),n}},270(t,e,r){const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach(t=>{o.test(t)&&(n&&1!==a.compare(t)||(n=t,a=new s(n,r)))}),n}},1261(t,e,r){const s=r(3908),i=r(8311),n=r(5580);t.exports=(t,e)=>{t=new i(t,e);let r=new s("0.0.0");if(t.test(r))return r;if(r=new s("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let a=null;i.forEach(t=>{const e=new s(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!n(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}),!a||r&&!n(r,a)||(r=a)}return r&&t.test(r)?r:null}},7075(t,e,r){const s=r(3908),i=r(3904),{ANY:n}=i,a=r(8311),o=r(7638),c=r(5580),l=r(7059),h=r(5200),u=r(4089);t.exports=(t,e,r,d)=>{let p,m,y,f,g;switch(t=new s(t,d),e=new a(e,d),r){case">":p=c,m=h,y=l,f=">",g=">=";break;case"<":p=l,m=u,y=c,f="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(t,e,d))return!1;for(let r=0;r<e.set.length;++r){const s=e.set[r];let a=null,o=null;if(s.forEach(t=>{t.semver===n&&(t=new i(">=0.0.0")),a=a||t,o=o||t,p(t.semver,a.semver,d)?a=t:y(t.semver,o.semver,d)&&(o=t)}),a.operator===f||a.operator===g)return!1;if((!o.operator||o.operator===f)&&m(t,o.semver))return!1;if(o.operator===g&&y(t,o.semver))return!1}return!0}},2525(t,e,r){const s=r(7638),i=r(560);t.exports=(t,e,r)=>{const n=[];let a=null,o=null;const c=t.sort((t,e)=>i(t,e,r));for(const t of c)s(t,e,r)?(o=t,a||(a=t)):(o&&n.push([a,o]),o=null,a=null);a&&n.push([a,null]);const l=[];for(const[t,e]of n)t===e?l.push(t):e||t!==c[0]?e?t===c[0]?l.push(`<=${e}`):l.push(`${t} - ${e}`):l.push(`>=${t}`):l.push("*");const h=l.join(" || "),u="string"==typeof e.raw?e.raw:String(e);return h.length<u.length?h:e}},5032(t,e,r){const s=r(8311),i=r(3904),{ANY:n}=i,a=r(7638),o=r(560),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],h=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===n){if(1===e.length&&e[0].semver===n)return!0;t=r.includePrerelease?c:l}if(1===e.length&&e[0].semver===n){if(r.includePrerelease)return!0;e=l}const s=new Set;let i,h,p,m,y,f,g;for(const e of t)">"===e.operator||">="===e.operator?i=u(i,e,r):"<"===e.operator||"<="===e.operator?h=d(h,e,r):s.add(e.semver);if(s.size>1)return null;if(i&&h){if(p=o(i.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==i.operator||"<="!==h.operator))return null}for(const t of s){if(i&&!a(t,String(i),r))return null;if(h&&!a(t,String(h),r))return null;for(const s of e)if(!a(t,String(s),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,x=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,f=f||"<"===t.operator||"<="===t.operator,i)if(x&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===x.major&&t.semver.minor===x.minor&&t.semver.patch===x.patch&&(x=!1),">"===t.operator||">="===t.operator){if(m=u(i,t,r),m===t&&m!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(t),r))return!1;if(h)if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),"<"===t.operator||"<="===t.operator){if(y=d(h,t,r),y===t&&y!==h)return!1}else if("<="===h.operator&&!a(h.semver,String(t),r))return!1;if(!t.operator&&(h||i)&&0!==p)return!1}return!(i&&f&&!h&&0!==p||h&&g&&!i&&0!==p||x||w)},u=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s>0?t:s<0||">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s<0?t:s>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new s(t,r),e=new s(e,r);let i=!1;t:for(const s of t.set){for(const t of e.set){const e=h(s,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},7631(t,e,r){const s=r(8311);t.exports=(t,e)=>new s(t,e).set.map(t=>t.map(t=>t.value).join(" ").trim().split(" "))},3874(t,e,r){const s=r(8311);t.exports=(t,e)=>{try{return new s(t,e).range||"*"}catch(t){return null}}},8965(t,e,r){r.d(e,{A:()=>n});const s=new Set(["loc","range","comments"]);function i(){}i.ignoredProperties=s;const n=i},8156(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>A});var i=r(4687),n=r(1815),a=r(8965),o=r(7671),c=r(1410),l=r(4242),h=r(2680),u=r(3927),d=r(466),p=r(7540),m=r(9060),y=t([n,u,d,p]);[n,u,d,p]=y.then?(await y)():y;const f="slang",g="antlr",w="slang-ast",x="antlr-ast",v=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[f,g],vscodeLanguageIds:["solidity"]}],b=Object.assign({astFormat:x,parse:l.A},o.A),_={astFormat:w,parse:u.A,locStart:m.z,locEnd:m.I},E={[f]:_,[g]:b},T=t=>"string"!=typeof t&&void 0!==t&&t.kind&&!(0,p.C)(t),S={canAttachComment:({type:t})=>"string"==typeof t&&"BlockComment"!==t&&"LineComment"!==t,handleComments:{ownLine:i.bd,endOfLine:i.rN,remaining:i.F7},isBlockComment:i.tN,massageAstNode:a.A,print:h.A,printComment:i.X5},k={canAttachComment:T,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,printComment:n.o},R={bracketSpacing:!1,tabWidth:4},A={languages:v,parsers:E,printers:{[w]:k,[x]:S},options:c.A,defaultOptions:R};s()}catch(t){s(t)}})},1410(t,e,r){r.d(e,{A:()=>a});const s="Global",i="Common",n="JavaScript",a={printWidth:{category:s,type:"int",default:80,description:"The line length where Prettier will try to wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},tabWidth:{type:"int",category:s,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{category:s,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{category:i,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:i,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:n,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},experimentalOperatorPosition:{category:n,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}}},7611(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(769),n=t([i]),a=n.then?(await n)():n;function o(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some(t=>t(l))}function c(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some(t=>t(l))}function l(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some(t=>t(l))}i=a[0];const h={ownLine:o,endOfLine:c,remaining:l};s()}catch(u){s(u)}})},4796(t,e,r){r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addLeadingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[0],e)}},876(t,e,r){r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addTrailingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[t.items.length-1],e)}},2038(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.Block&&((null==t?void 0:t.kind)===i.q3.Statements?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Statements&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},4597(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(876),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ContractDefinition)return!1;const l=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));if((null==s?void 0:s.kind)===i.q3.ContractSpecifiers||(null==s?void 0:s.kind)===i.q3.ContractMembers&&"{"!==l)return h(r,c),!0;if((null==e?void 0:e.kind)===i.q3.ContractMembers)return(0,o.A)(e,c),!0;if("{"===l&&(null==e?void 0:e.kind)===i.q3.ContractSpecifiers){if(0===e.items.length)return u(e,c),!0;const t=e.items[e.items.length-1];if(t.kind===i.q3.InheritanceSpecifier)return(0,o.A)(t.types,c),!0;if(t.kind===i.q3.StorageLayoutSpecifier)return u(t.expression,c),!0}return!1}s()}catch(p){s(p)}})},3449(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(838),a=r(876),o=t([i]),c=o.then?(await o)():o;i=c[0];const{addTrailingComment:l}=n.util;function h({precedingNode:t,enclosingNode:e,comment:r}){if((null==e?void 0:e.kind)!==i.q3.ContractSpecifiers)return!1;if(t){if(t.kind===i.q3.InheritanceSpecifier)return(0,a.A)(t.types,r),!0;if(t.kind===i.q3.StorageLayoutSpecifier)return l(t.expression,r),!0}return!1}s()}catch(u){s(u)}})},7265(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(838),a=r(4796),o=t([i]),c=o.then?(await o)():o;i=c[0];const{addLeadingComment:l}=n.util;function h({enclosingNode:t,followingNode:e,comment:r}){return!((null==t?void 0:t.kind)!==i.q3.ElseBranch||!e||e!==t.body||e.kind!==i.q3.IfStatement||(e.body.kind===i.q3.Block?(0,a.A)(e.body.statements,r):l(e.body,r),0))}s()}catch(u){s(u)}})},8534(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.IfStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))||e===r.body&&s===r.elseBranch?(u(e,c),!0):s.kind===i.q3.IfStatement?(s.body.kind===i.q3.Block?(0,o.A)(s.body.statements,c):h(s.body,c),!0):r.body===s&&(s.kind===i.q3.Block?(0,o.A)(s.statements,c):h(s,c),!0))}s()}catch(p){s(p)}})},6318(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=t([i]),h=l.then?(await l)():l;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.InterfaceDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.InterfaceMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.InterfaceMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},6718(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=t([i]),h=l.then?(await l)():l;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.LibraryDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.LibraryMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.LibraryMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},4923(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ModifierInvocation)return!1;const l=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));return(null==e?void 0:e.kind)===i.q3.IdentifierPath&&"("===l&&(null==s?void 0:s.kind)===i.q3.PositionalArgumentsDeclaration&&(0===s.arguments.items.length?h(r,c):(0,o.A)(s.arguments,c),!0)}s()}catch(d){s(d)}})},2120(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.ParametersDeclaration&&((null==t?void 0:t.kind)===i.q3.Parameters?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Parameters&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},3273(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.PositionalArgumentsDeclaration&&((null==t?void 0:t.kind)===i.q3.PositionalArguments?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.PositionalArguments&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},9981(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,followingNode:e,comment:r}){return e&&e.kind===i.q3.SourceUnitMembers?((0,n.A)(e,r),!0):!(!t||t.kind!==i.q3.SourceUnitMembers||((0,a.A)(t,r),0))}i=c[0],s()}catch(h){s(h)}})},4850(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(838),a=t([i]),o=a.then?(await a)():a;i=o[0];const{addLeadingComment:c}=n.util;function l({enclosingNode:t,followingNode:e,comment:r}){return(null==t?void 0:t.kind)===i.q3.StorageLayoutSpecifier&&(null==e?void 0:e.kind)===i.q3.Expression&&(c(e,r),!0)}s()}catch(h){s(h)}})},2416(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=t([i]),h=l.then?(await l)():l;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.StructDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.StructMembers&&"}"===h?((0,c.A)(e,l),!0):(null==s?void 0:s.kind)===i.q3.StructMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},5710(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.WhileStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))||r.condition===e?(u(e,c),!0):r.body===s&&(s.kind===i.q3.Block?(0,o.A)(s.statements,c):h(s,c),!0))}s()}catch(p){s(p)}})},543(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(838),a=t([i]),o=a.then?(await a)():a;i=o[0];const{addLeadingComment:c,addDanglingComment:l}=n.util;function h({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.YulBlock&&((null==t?void 0:t.kind)===i.q3.YulStatements&&0===t.items.length?(l(t,s,!1),!0):(null==r?void 0:r.kind)===i.q3.YulStatements&&r.items.length>0&&(c(r.items[0],s),!0))}s()}catch(u){s(u)}})},769(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>v});var i=r(2038),n=r(4597),a=r(3449),o=r(7265),c=r(8534),l=r(6318),h=r(6718),u=r(4923),d=r(2120),p=r(3273),m=r(9981),y=r(4850),f=r(2416),g=r(5710),w=r(543),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;const v=[i.A,n.A,a.A,o.A,c.A,l.A,h.A,u.A,d.A,p.A,m.A,y.A,f.A,g.A,w.A];s()}catch(t){s(t)}})},1815(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>i.X,o:()=>n.X});var i=r(7611),n=r(7431),a=t([i,n]);[i,n]=a.then?(await a)():a,s()}catch(t){s(t)}})},7431(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>o});var i=r(7540),n=t([i]),a=n.then?(await n)():n;function o({node:t}){if((0,i.C)(t))return t.print();throw new Error(`Not a comment: ${JSON.stringify(t)}`)}i=a[0],s()}catch(c){s(c)}})},1475(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>c});var i=r(8269),n=r(6095),a=r(9455),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.AbicoderPragma,this.version=new a.G(t.version,e),this.updateMetadata(this.version)}print(t,e){return["abicoder ",t.call(e,"version")]}}s()}catch(t){s(t)}})},9455(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.AbicoderVersion,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},2054(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["%"]),p=(0,n.WV)((0,o.n)([i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AdditiveExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},7614(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){var r;super(t,e),this.kind=i.q3.AddressType,this.payableKeyword=null===(r=t.payableKeyword)||void 0===r?void 0:r.unparse()}print(){return["address",this.payableKeyword?" payable":""]}}s()}catch(t){s(t)}})},2745(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>h});var i=r(8269),n=r(8409),a=r(4003),o=r(6095),c=r(8926),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AndExpression,this.leftOperand=(0,a.f)(new c.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,a.f)(new c.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}})},5756(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9182),l=r(7832),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.V34,c.V],[i.Qy6,l.Q]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ArgumentsDeclaration,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},6233(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>c});var i=r(8269),n=r(6095),a=r(3857),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ArrayExpression,this.items=new a.A(t.items,e,r),this.updateMetadata(this.items)}print(t,e){return["[",t.call(e,"items"),"]"]}}s()}catch(t){s(t)}})},4968(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ArrayTypeName,this.operand=(0,n.f)(new o.C(t.operand,e,r)),t.index&&(this.index=(0,n.f)(new c.r(t.index,e,r))),this.updateMetadata(this.operand,this.index)}print(t,e){return[t.call(e,"operand"),"[",t.call(e,"index"),"]"]}}s()}catch(t){s(t)}})},3857(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(7578),a=r(4003),o=r(6095),c=r(8926),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ArrayValues,this.items=t.items.map(t=>(0,a.f)(new c.r(t,e,r)))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},7041(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(3562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.AssemblyFlags,this.items=t.items.map(t=>new o.L(t,e,r))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},8085(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(8269),n=r(6095),a=r(7041),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AssemblyFlagsDeclaration,this.flags=new a.Y(t.flags,e,r),this.updateMetadata(this.flags)}print(t,e){return["(",t.call(e,"flags"),")"]}}s()}catch(t){s(t)}})},7299(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>u});var i=r(8269),n=r(1e3),a=r(6095),o=r(3562),c=r(8085),l=r(2319),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AssemblyStatement,t.label&&(this.label=new o.L(t.label,e,r)),t.flags&&(this.flags=new c.e(t.flags,e,r)),this.body=new l.M(t.body,e,r),this.updateMetadata(this.label,this.flags,this.body)}print(t,e){return(0,n.I)(" ",["assembly",t.call(e,"label"),t.call(e,"flags"),t.call(e,"body")])}}s()}catch(t){s(t)}})},5287(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>h});var i=r(8269),n=r(4003),a=r(5536),o=r(6095),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AssignmentExpression,this.leftOperand=(0,n.f)(new c.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,n.f)(new c.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(t,e){return[t.call(e,"leftOperand"),` ${this.operator}`,(0,a.U)(t.call(e,"rightOperand"),this.rightOperand)]}}s()}catch(t){s(t)}})},7162(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.BitwiseAndExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},7438(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>","&","^"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.BitwiseOrExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},4654(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>","&"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.BitwiseXorExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},6511(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(8269),n=r(6095),a=r(1322),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.Block,this.statements=new a.$(t.statements,e,r),this.updateMetadata(this.statements)}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}})},3144(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.BreakStatement}print(){return"break;"}}s()}catch(t){s(t)}})},6380(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(316),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.CallOptions,this.items=t.items.map(t=>new c.j(t,e,r))}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}})},2514(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=r(6380),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.CallOptionsExpression,this.operand=(0,n.f)(new o.r(t.operand,e,r)),this.options=new c.p(t.options,e,r),this.updateMetadata(this.operand,this.options)}print(t,e){return[t.call(e,"operand"),"{",t.call(e,"options"),"}"]}}s()}catch(t){s(t)}})},1292(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>l});var i=r(8269),n=r(6095),a=r(8152),o=r(6511),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.CatchClause,t.error&&(this.error=new a.$(t.error,e,r)),this.body=new o.e(t.body,e,r),this.updateMetadata(this.error,this.body)}print(t,e){return["catch ",t.call(e,"error"),t.call(e,"body")]}}s()}catch(t){s(t)}})},8152(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=r(9002),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.CatchClauseError,t.name&&(this.name=new o.x(t.name,e)),this.parameters=new c.Z(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return[t.call(e,"name"),h(t.call(e,"parameters"))," "]}}s()}catch(t){s(t)}})},7259(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{m:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(1292),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.CatchClauses,this.items=t.items.map(t=>new o.D(t,e,r)),this.updateMetadata(...this.items)}print(t,e){return l(" ",t.map(e,"items"))}}s()}catch(t){s(t)}})},8567(t,e,r){r.d(e,{A:()=>s});class s{constructor(t,e){this.loc={start:e,end:e+t.textLength.utf16}}}},6312(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>x});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const{group:u,hardline:d,ifBreak:p,indent:m,line:y}=n.doc.builders;function f(t,e,r,{useTabs:s,tabWidth:n}){const o=e.parent,c=o.kind===i.q3.ConditionalExpression,l=c&&o.trueExpression===t,h=t.falseExpression.kind,f=h===i.q3.TupleExpression||h===i.q3.ConditionalExpression,g=e.call(r,"operand"),w=u([t.operand.kind===i.q3.TupleExpression?g:p(["(",(0,a.K)(g),")"],g)," ?"]),x=m([l?d:y,e.call(r,"trueExpression")]),v=Symbol("Slang.ConditionalExpression.trueExpression"),b=u([w,x],{id:v}),_=s?"\t":n>2?" ".repeat(n-1):" ",E=e.call(r,"falseExpression"),T=[c?d:y,":",f?[" ",E]:p([_,m(E)],[" ",E],{groupId:v})];return u([b,T])}function g(t,e){return u([t.call(e,"operand"),m([t.parent.kind===i.q3.ConditionalExpression?d:y,"? ",t.call(e,"trueExpression"),y,": ",t.call(e,"falseExpression")])])}function w(t){return t.kind===i.q3.TupleExpression?t.items.getSingleExpression():void 0}class x extends c.w{constructor(t,e,r){if(super(t,e),this.kind=i.q3.ConditionalExpression,this.operand=(0,o.f)(new l.r(t.operand,e,r)),this.trueExpression=(0,o.f)(new l.r(t.trueExpression,e,r)),this.falseExpression=(0,o.f)(new l.r(t.falseExpression,e,r)),this.updateMetadata(this.operand,this.trueExpression,this.falseExpression),r.experimentalTernaries){const t=this.operand.loc;for(let t=w(this.operand);t&&t.kind!==i.q3.ConditionalExpression;t=w(this.operand))this.operand=t;this.operand.loc=t}}print(t,e,r){return r.experimentalTernaries?f(this,t,e,r):g(t,e)}}s()}catch(v){s(v)}})},9885(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{y:()=>d});var i=r(8269),n=r(4003),a=r(5536),o=r(6095),c=r(9979),l=r(8388),h=r(8926),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ConstantDefinition,this.typeName=(0,n.f)(new c.C(t.typeName,e,r)),this.name=new l.x(t.name,e),this.value=(0,n.f)(new h.r(t.value,e,r)),this.updateMetadata(this.typeName,this.value)}print(t,e){return[t.call(e,"typeName")," constant ",t.call(e,"name")," =",(0,a.U)(t.call(e,"value"),this.value),";"]}}s()}catch(t){s(t)}})},4192(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{F:()=>l});var i=r(8269),n=r(6095),a=r(1699),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ConstructorAttribute;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.u(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2567(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(4192),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ConstructorAttributes,this.items=t.items.map(t=>(0,o.f)(new l.F(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},5959(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{s:()=>u});var i=r(8269),n=r(304),a=r(6095),o=r(9002),c=r(2567),l=r(6511),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ConstructorDefinition,this.parameters=new o.Z(t.parameters,e,r),this.attributes=new c.O(t.attributes,e,r),this.body=new l.e(t.body,e,r),this.updateMetadata(this.parameters,this.attributes,this.body)}print(t,e){return(0,n.E)("constructor",this,t,e)}}s()}catch(t){s(t)}})},9892(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ContinueStatement}print(){return"continue;"}}s()}catch(t){s(t)}})},2795(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>m});var i=r(8269),n=r(838),a=r(9589),o=r(6095),c=r(8388),l=r(5451),h=r(5907),u=t([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{group:d,line:p}=n.doc.builders;class m extends o.w{constructor(t,e,r){var s;if(super(t,e),this.kind=i.q3.ContractDefinition,this.abstractKeyword=null===(s=t.abstractKeyword)||void 0===s?void 0:s.unparse(),this.name=new c.x(t.name,e),this.specifiers=new l.o(t.specifiers,e,r),this.members=new h.I(t.members,e,r),this.updateMetadata(this.specifiers,this.members),!(0,a.satisfies)(r.compiler,">=0.5.0"))for(const t of this.members.items)t.kind===i.q3.FunctionDefinition&&t.name.value!==this.name.value&&t.cleanModifierInvocationArguments()}print(t,e){return[d([this.abstractKeyword?"abstract ":"","contract ",t.call(e,"name"),t.call(e,"specifiers"),this.specifiers.items.length>0?"":p,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},4468(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(33),l=r(7281),h=r(5959),u=r(9394),d=r(9640),p=r(6871),m=r(1204),y=r(8324),f=r(3820),g=r(4351),w=r(918),x=r(897),v=r(7260),b=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.R)([[i.Ke0,c.K],[i.Wgi,l.W],[i.s2A,h.s],[i.pT,u.p],[i.oMV,d.o],[i.ulb,p.u],[i.zxr,m.z],[i.ZOq,y.Z],[i.P3w,f.P],[i.wyV,g.w],[i.zac,w.z],[i.em6,x.e],[i.zFc,v.z]]);class E extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ContractMember,this.variant=_(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},5907(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(4468),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ContractMembers,this.items=t.items.map(t=>(0,c.f)(new h.B(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},3868(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3892),l=r(4557),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.RCX,c.R],[i.oVh,l.o]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ContractSpecifier,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},5451(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>f});var i=r(8269),n=r(838),a=r(4145),o=r(7578),c=r(4003),l=r(6095),h=r(3868),u=t([i,a,l,h]);[i,a,l,h]=u.then?(await u)():u;const{group:d,ifBreak:p,line:m,softline:y}=n.doc.builders;class f extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ContractSpecifiers,this.items=t.items.map(t=>(0,c.f)(new h.Z(t,e,r))),this.items.sort(a.Y)}print(t,e){const[r,s]=t.map(e,"items");if(void 0===r)return"";if(void 0===s)return[" ",r];const i=Symbol("Slang.ContractSpecifiers.inheritance");return(0,o.J)([d(r,{id:i}),s],{firstSeparator:m,separator:p("",y,{groupId:i})})}}s()}catch(t){s(t)}})},1390(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(1e3),a=r(6095),o=r(6603),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.DecimalNumberExpression,this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit,e)),this.updateMetadata(this.unit)}print(t,e){return(0,n.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}})},8943(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(5211),h=r(8926),u=t([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;const{line:d}=n.doc.builders;class p extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.DoWhileStatement,this.body=(0,o.f)(new l.W(t.body,e,r)),this.condition=(0,o.f)(new h.r(t.condition,e,r)),this.updateMetadata(this.body,this.condition)}print(t,e){const r=t.call(e,"body");return["do",this.body.kind===i.q3.Block?[" ",r," "]:(0,a.K)(r,{firstSeparator:d}),"while (",(0,a.K)(t.call(e,"condition")),");"]}}s()}catch(t){s(t)}})},3198(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>l});var i=r(8269),n=r(6095),a=r(7614),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ElementaryType;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.R(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},3117(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>d});var i=r(8269),n=r(6563),a=r(4374),o=r(4003),c=r(6095),l=r(5211),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const u=(0,n.n)([i.q3.Block,i.q3.IfStatement]);class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ElseBranch,this.body=(0,o.f)(new l.W(t.body,e,r)),this.updateMetadata(this.body)}print(t,e){return["else",(0,a.w)(t.call(e,"body"),!u(this.body))]}}s()}catch(t){s(t)}})},3406(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.EmitStatement,this.event=new o.D(t.event,e),this.arguments=(0,n.f)(new c.Z(t.arguments,e,r)),this.updateMetadata(this.event,this.arguments)}print(t,e){return["emit ",t.call(e,"event"),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}})},3820(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(2238),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.EnumDefinition,this.name=new a.x(t.name,e),this.members=new o.P(t.members,e),this.updateMetadata(this.members)}print(t,e){return["enum ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},2238(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(8388),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.EnumMembers,this.items=t.items.map(t=>new c.x(t,e))}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}})},6442(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{t:()=>m});var i=r(8269),n=r(142),a=r(6563),o=r(4209),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,o,l,h]);[i,n,o,l,h]=u.then?(await u)():u;const d=(0,n.H)(["==","!="]),p=(0,o.WV)((0,a.n)([i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.EqualityExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},897(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(1142),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ErrorDefinition,this.name=new a.x(t.name,e),this.members=new o.$(t.members,e,r),this.updateMetadata(this.members)}print(t,e){return["error ",t.call(e,"name"),t.call(e,"members"),";"]}}s()}catch(t){s(t)}})},7105(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{m:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ErrorParameter,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.typeName)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}})},2048(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(7105),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ErrorParameters,this.items=t.items.map(t=>new o.m(t,e,r))}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}})},1142(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(8269),n=r(6095),a=r(2048),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ErrorParametersDeclaration,this.parameters=new a.h(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},4351(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{w:()=>l});var i=r(8269),n=r(6095),a=r(2828),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.EventDefinition,this.name=new o.x(t.name,e),this.parameters=new a.$(t.parameters,e,r),this.anonymousKeyword=null===(s=t.anonymousKeyword)||void 0===s?void 0:s.unparse(),this.updateMetadata(this.parameters)}print(t,e){return["event ",t.call(e,"name"),t.call(e,"parameters"),this.anonymousKeyword?" anonymous;":";"]}}s()}catch(t){s(t)}})},4027(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.EventParameter,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),this.indexedKeyword=null===(s=t.indexedKeyword)||void 0===s?void 0:s.unparse(),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.typeName)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),this.indexedKeyword,t.call(e,"name")])}}s()}catch(t){s(t)}})},170(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(4027),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.EventParameters,this.items=t.items.map(t=>new o.Q(t,e,r))}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}})},2828(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(8269),n=r(6095),a=r(170),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.EventParametersDeclaration,this.parameters=new a.p(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},2254(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(8269),n=r(6095),a=r(3562),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExperimentalFeature;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.L(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},6162(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(2254),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExperimentalPragma,this.feature=(0,n.f)(new o.R(t.feature,e,r)),this.updateMetadata(this.feature)}print(t,e){return["experimental ",t.call(e,"feature")]}}s()}catch(t){s(t)}})},6121(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>w});var i=r(8269),n=r(838),a=r(1059),o=r(4209),c=r(142),l=r(6563),h=r(4003),u=r(6095),d=r(8926),p=t([i,a,o,c,u,d]);[i,a,o,c,u,d]=p.then?(await p)():p;const{group:m}=n.doc.builders,y=(0,c.H)(["**"]),f=(0,l.n)([i.q3.MultiplicativeExpression,i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]),g=(0,a.f)(()=>t=>m(t),(0,o.Wu)(f));class w extends u.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExponentiationExpression,this.leftOperand=(0,h.f)(new d.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,h.f)(new d.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.rightOperand=y(this.rightOperand),this.leftOperand=y(this.leftOperand)}print(t,e,r){return g(this,t,e,r)}}s()}catch(t){s(t)}})},8926(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>M});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5287),l=r(6312),h=r(8947),u=r(2745),d=r(6442),p=r(6405),m=r(7438),y=r(4654),f=r(7162),g=r(4852),w=r(2054),x=r(8968),v=r(6121),b=r(4109),_=r(8802),E=r(9894),T=r(2514),S=r(4138),k=r(4882),R=r(6010),A=r(4274),C=r(86),L=r(6233),I=r(9804),K=r(1390),N=r(9511),O=r(3198),D=r(8388),P=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,L,I,K,N,O,D]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,L,I,K,N,O,D]=P.then?(await P)():P;const q=(0,a.$)([[i.kAK,c.k],[i.TZT,l.T],[i.KfV,h.K],[i.gHf,u.g],[i.tt2,d.t],[i.u6S,p.u],[i.JXG,m.J],[i.Rbz,y.R],[i.Jxp,f.J],[i.Zm3,g.Z],[i.zSR,w.z],[i.dst,x.d],[i.grs,v.g],[i._Y1,b._],[i.BdE,_.B],[i.jy0,E.j],[i.XwB,T.X],[i.nWe,S.n],[i.zc0,k.z],[i.Zd1,R.Z],[i.bUO,A.b],[i.jy1,C.j],[i.gH0,L.g],[i.$rk,I.$],[i.jqW,K.j]],[[i.OXe,N.O],[i.$ge,O.$]]);class M extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.Expression;const s=t.variant;s instanceof n.xo?this.variant=new D.x(s,e):(this.variant=q(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},6157(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExpressionStatement,this.expression=(0,n.f)(new o.r(t.expression,e,r)),this.updateMetadata(this.expression)}print(t,e){return[t.call(e,"expression"),";"]}}s()}catch(t){s(t)}})},7532(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.FallbackFunctionAttribute;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},7435(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(7532),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.FallbackFunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.h(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},9640(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>p});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(7435),h=r(7181),u=r(1580),d=t([i,n,o,c,l,h,u]);[i,n,o,c,l,h,u]=d.then?(await d)():d;class p extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FallbackFunctionDefinition,this.parameters=new c.Z(t.parameters,e,r),this.attributes=new l.i(t.attributes,e,r),t.returns&&(this.returns=new h.I(t.returns,e,r)),this.body=(0,a.f)(new u.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.returns,this.body);for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.E)("fallback",this,t,e)}}s()}catch(t){s(t)}})},3816(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>f});var i=r(8269),n=r(838),a=r(7578),o=r(4374),c=r(4003),l=r(6095),h=r(6716),u=r(91),d=r(8926),p=r(5211),m=t([i,l,h,u,d,p]);[i,l,h,u,d,p]=m.then?(await m)():m;const{line:y}=n.doc.builders;class f extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ForStatement,this.initialization=(0,c.f)(new h.n(t.initialization,e,r)),this.condition=(0,c.f)(new u.Q(t.condition,e,r)),t.iterator&&(this.iterator=(0,c.f)(new d.r(t.iterator,e,r))),this.body=(0,c.f)(new p.W(t.body,e,r)),this.updateMetadata(this.initialization,this.condition,this.iterator,this.body)}print(t,e){const r=t.call(e,"initialization"),s=t.call(e,"condition"),n=t.call(e,"iterator");return["for (",(0,a.J)([r,s,n],{separator:";"!==r||";"!==s||""!==n?y:""}),")",(0,o.w)(t.call(e,"body"),this.body.kind!==i.q3.Block)]}}s()}catch(t){s(t)}})},91(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>l});var i=r(8269),n=r(6095),a=r(6157),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ForStatementCondition;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.Q(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},6716(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>m});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(6157),l=r(2421),h=r(6773),u=r(8388),d=t([i,n,o,c,l,h,u]);[i,n,o,c,l,h,u]=d.then?(await d)():d;const p=(0,a.R)([[i.Qrp,c.Q],[i._U4,l._],[i.aez,h.a]]);class m extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ForStatementInitialization;const s=t.variant;s instanceof n.xo?this.variant=new u.x(s,e):(this.variant=p(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},5798(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.FunctionAttribute;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},3685(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(5798),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.FunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.V(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},1580(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(8269),n=r(6095),a=r(6511),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionBody;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.e(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},9894(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>m});var i=r(8269),n=r(838),a=r(4079),o=r(9857),c=r(4003),l=r(6095),h=r(8926),u=r(5756),d=t([i,l,h,u]);[i,l,h,u]=d.then?(await d)():d;const{label:p}=n.doc.builders;class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionCallExpression,this.operand=(0,c.f)(new h.r(t.operand,e,r)),this.arguments=(0,c.f)(new u.Z(t.arguments,e,r)),this.updateMetadata(this.operand,this.arguments)}print(t,e){const r=t.call(e,"operand"),s=t.call(e,"arguments");return(0,a.J)(r)&&"MemberAccessChain"===r.label?p("MemberAccessChain",(0,o.u)(r.contents,s)):[r,s].flat()}}s()}catch(t){s(t)}})},7281(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>y});var i=r(8269),n=r(9589),a=r(304),o=r(4003),c=r(6095),l=r(1615),h=r(9002),u=r(3685),d=r(7181),p=r(1580),m=t([i,a,c,l,h,u,d,p]);[i,a,c,l,h,u,d,p]=m.then?(await m)():m;class y extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionDefinition,this.name=(0,o.f)(new l.s(t.name,e)),this.parameters=new h.Z(t.parameters,e,r),this.attributes=new u.S(t.attributes,e,r),t.returns&&(this.returns=new d.I(t.returns,e,r)),this.body=(0,o.f)(new p.r(t.body,e,r)),this.updateMetadata(this.name,this.parameters,this.attributes,this.returns,this.body),(0,n.satisfies)(r.compiler,">=0.5.0")&&this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,a.E)(["function ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}})},1615(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{s:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.FunctionName,this.variant=new a.x(t.variant,e)}}s()}catch(t){s(t)}})},3476(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>u});var i=r(8269),n=r(304),a=r(6095),o=r(9002),c=r(221),l=r(7181),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionType,this.parameters=new o.Z(t.parameters,e,r),this.attributes=new c.C(t.attributes,e),t.returns&&(this.returns=new l.I(t.returns,e,r)),this.updateMetadata(this.parameters,this.attributes,this.returns)}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}})},6222(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{l:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.FunctionTypeAttribute,this.variant=new a.x(t.variant,e)}}s()}catch(t){s(t)}})},221(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(6222),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.FunctionTypeAttributes,this.items=t.items.map(t=>(0,o.f)(new l.l(t,e))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},9804(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>l});var i=r(8269),n=r(1e3),a=r(6095),o=r(6603),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.HexNumberExpression,this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit,e)),this.updateMetadata(this.unit)}print(t,e){return(0,n.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}})},5191(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=t([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.HexStringLiteral,this.variant=t.variant.unparse(),this.variant=`hex${(0,n.T)(this.variant.slice(4,-1),r)}`}print(){return this.variant}}s()}catch(t){s(t)}})},7598(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(5191),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.HexStringLiterals,this.items=t.items.map(t=>new o.C(t,e,r))}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},2912(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.IdentifierPath,this.items=t.items.map(t=>new o.x(t,e))}print(t,e){return l(".",t.map(e,"items"))}}s()}catch(t){s(t)}})},7978(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{v:()=>f});var i=r(8269),n=r(838),a=r(8941),o=r(4374),c=r(7540),l=r(4003),h=r(6095),u=r(8926),d=r(5211),p=r(3117),m=t([i,c,h,u,d,p]);[i,c,h,u,d,p]=m.then?(await m)():m;const{hardline:y}=n.doc.builders;class f extends h.w{constructor(t,e,r){super(t,e),this.kind=i.q3.IfStatement,this.condition=(0,l.f)(new u.r(t.condition,e,r)),this.body=(0,l.f)(new d.W(t.body,e,r)),t.elseBranch&&(this.elseBranch=new p.O(t.elseBranch,e,r)),this.updateMetadata(this.condition,this.body,this.elseBranch)}print(t,e){const{kind:r,comments:s}=this.body;return["if (",(0,a.K)(t.call(e,"condition")),")",(0,o.w)(t.call(e,"body"),r!==i.q3.Block,{shouldBreak:r===i.q3.IfStatement}),this.elseBranch?[r!==i.q3.Block||(null==s?void 0:s.some(t=>!(0,c.t)(t)||"ownLine"===t.placement))?y:" ",t.call(e,"elseBranch")]:""]}}s()}catch(t){s(t)}})},6485(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ImportAlias,this.identifier=new a.x(t.identifier,e)}print(t,e){return[" as ",t.call(e,"identifier")]}}s()}catch(t){s(t)}})},5996(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9150),l=r(3534),h=r(979),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.N$9,c.N],[i.RrN,l.R],[i.qV6,h.q]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ImportClause,this.variant=d(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},979(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>l});var i=r(8269),n=r(6095),a=r(2386),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ImportDeconstruction,this.symbols=new a.z(t.symbols,e),this.path=new o.L(t.path,e,r),this.updateMetadata(this.symbols,this.path)}print(t,e){return["{",t.call(e,"symbols"),"} from ",t.call(e,"path")]}}s()}catch(t){s(t)}})},4163(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ImportDeconstructionSymbol,this.name=new a.x(t.name,e),t.alias&&(this.alias=new o.G(t.alias,e)),this.updateMetadata(this.alias)}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}})},2386(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(8269),n=r(838),a=r(9589),o=r(7578),c=r(6095),l=r(4163),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const{line:u,softline:d}=n.doc.builders;class p extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.ImportDeconstructionSymbols,this.items=t.items.map(t=>new l.g(t,e))}print(t,e,{compiler:r,bracketSpacing:s}){const i=t.map(e,"items");return(0,o.J)(i,i.length>1&&(0,a.satisfies)(r,">=0.7.4")?{firstSeparator:s?u:d}:{firstSeparator:s?" ":"",separator:", "})}}s()}catch(t){s(t)}})},8668(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(5996),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ImportDirective,this.clause=(0,n.f)(new o.r(t.clause,e,r)),this.updateMetadata(this.clause)}print(t,e){return["import ",t.call(e,"clause"),";"]}}s()}catch(t){s(t)}})},4899(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.IndexAccessEnd,t.end&&(this.end=(0,n.f)(new o.r(t.end,e,r))),this.updateMetadata(this.end)}print(t,e){return[":",t.call(e,"end")]}}s()}catch(t){s(t)}})},4882(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(8269),n=r(838),a=r(8941),o=r(9857),c=r(4079),l=r(4003),h=r(6095),u=r(8926),d=r(4899),p=t([i,h,u,d]);[i,h,u,d]=p.then?(await p)():p;const{label:m}=n.doc.builders;class y extends h.w{constructor(t,e,r){super(t,e),this.kind=i.q3.IndexAccessExpression,this.operand=(0,l.f)(new u.r(t.operand,e,r)),t.start&&(this.start=(0,l.f)(new u.r(t.start,e,r))),t.end&&(this.end=new d.Q(t.end,e,r)),this.updateMetadata(this.operand,this.start,this.end)}print(t,e){const r=t.call(e,"operand"),s=["[",(0,a.K)([t.call(e,"start"),t.call(e,"end")]),"]"];return(0,c.J)(r)&&"MemberAccessChain"===r.label?m("MemberAccessChain",(0,o.u)(r.contents,s)):[r,s].flat()}}s()}catch(t){s(t)}})},6405(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{u:()=>d});var i=r(8269),n=r(6563),a=r(4209),o=r(4003),c=r(6095),l=r(8926),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const u=(0,a.WV)((0,n.n)([i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InequalityExpression,this.leftOperand=(0,o.f)(new l.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,o.f)(new l.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(t,e,r){return u(this,t,e,r)}}s()}catch(t){s(t)}})},3892(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>c});var i=r(8269),n=r(6095),a=r(3717),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InheritanceSpecifier,this.types=new a.W(t.types,e,r),this.updateMetadata(this.types)}print(t,e){return["is",t.call(e,"types")]}}s()}catch(t){s(t)}})},3990(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InheritanceType,this.typeName=new o.D(t.typeName,e),t.arguments&&(this.arguments=(0,n.f)(new c.Z(t.arguments,e,r))),this.updateMetadata(this.typeName,this.arguments)}print(t,e){return[t.call(e,"typeName"),t.call(e,"arguments")]}}s()}catch(t){s(t)}})},3717(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(3990),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.InheritanceTypes,this.items=t.items.map(t=>new c.H(t,e,r))}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}})},3692(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=r(3892),l=r(7646),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=n.doc.builders;class p extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InterfaceDefinition,this.name=new o.x(t.name,e),t.inheritance&&(this.inheritance=new c.R(t.inheritance,e,r)),this.members=new l.l(t.members,e,r),this.updateMetadata(this.inheritance,this.members)}print(t,e){return[u(["interface ",t.call(e,"name"),this.inheritance?[" ",t.call(e,"inheritance")]:d,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},7646(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{l:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(4468),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.InterfaceMembers,this.items=t.items.map(t=>(0,c.f)(new h.B(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},1132(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(8269),n=r(838),a=r(9589),o=r(6095),c=r(8388),l=r(910),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=n.doc.builders;class p extends o.w{constructor(t,e,r){if(super(t,e),this.kind=i.q3.LibraryDefinition,this.name=new c.x(t.name,e),this.members=new l.r(t.members,e,r),this.updateMetadata(this.members),!(0,a.satisfies)(r.compiler,">=0.5.0"))for(const t of this.members.items)t.kind===i.q3.FunctionDefinition&&t.cleanModifierInvocationArguments()}print(t,e){return[u(["library ",t.call(e,"name"),d,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},910(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(4468),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.LibraryMembers,this.items=t.items.map(t=>(0,c.f)(new h.B(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},2585(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(305),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e){super(t,e),this.kind=i.q3.MappingKey,this.keyType=(0,a.f)(new c.o(t.keyType,e)),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.keyType)}print(t,e){return(0,n.I)(" ",[t.call(e,"keyType"),t.call(e,"name")])}}s()}catch(t){s(t)}})},305(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3198),l=r(2912),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.$)([[i.Ddx,l.D]],[[i.$ge,c.$]]);class d extends o.w{constructor(t,e){super(t,e),this.kind=n.q3.MappingKeyType,this.variant=u(t.variant,e),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},9184(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>l});var i=r(8269),n=r(6095),a=r(2585),o=r(8615),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MappingType,this.keyType=new a.a(t.keyType,e),this.valueType=new o.k(t.valueType,e,r),this.updateMetadata(this.keyType,this.valueType)}print(t,e){return["mapping(",t.call(e,"keyType")," => ",t.call(e,"valueType"),")"]}}s()}catch(t){s(t)}})},8615(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MappingValue,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.typeName)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}})},4138(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>x});var i=r(8269),n=r(838),a=r(4079),o=r(4003),c=r(6543),l=r(6095),h=r(8926),u=r(8388),d=t([i,c,l,h,u]);[i,c,l,h,u]=d.then?(await d)():d;const{group:p,indent:m,label:y,softline:f}=n.doc.builders;function g(t,e){for(let r,s=1,n=t;r=e.getNode(s),(0,c.Y)(r);s++,n=r)switch(r.kind){case i.q3.MemberAccessExpression:return!1;case i.q3.IndexAccessExpression:case i.q3.FunctionCallExpression:if(n!==r.operand)return!0}return!0}function w(t){const e=t.findIndex(t=>(0,a.J)(t)&&"separator"===t.label);return y("MemberAccessChain",[t.slice(0,e),p(m(t.slice(e)))])}class x extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MemberAccessExpression,this.operand=(0,o.f)(new h.r(t.operand,e,r)),this.member=new u.x(t.member,e),this.updateMetadata(this.operand)}print(t,e){const r=[t.call(e,"operand"),y("separator",[f,"."]),t.call(e,"member")].flat();return g(this,t)?w(r):r}}s()}catch(v){s(v)}})},2085(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>l});var i=r(8269),n=r(6095),a=r(7178),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ModifierAttribute;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.l(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},4652(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2085),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.ModifierAttributes,this.items=t.items.map(t=>(0,o.f)(new l.K(t,e))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},1204(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>m});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(8388),l=r(9002),h=r(4716),u=r(4652),d=r(1580),p=t([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;class m extends o.w{constructor(t,e,r){if(super(t,e),this.kind=i.q3.ModifierDefinition,this.name=new c.x(t.name,e),t.parameters&&(this.parameters=new l.Z(t.parameters,e,r)),this.attributes=new u.r(t.attributes,e),this.body=(0,a.f)(new d.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.body),!this.parameters){const t=this.attributes.loc.outerStart,e={outerStart:t,outerEnd:t,start:t,end:t};this.parameters=Object.assign(Object.create(l.Z.prototype),{kind:i.q3.ParametersDeclaration,loc:Object.assign({},e),comments:[],parameters:Object.assign(Object.create(h.H.prototype),{kind:i.q3.Parameters,loc:Object.assign({},e),comments:[],items:[]})})}}print(t,e){return(0,n.E)(["modifier ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}})},1699(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{u:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ModifierInvocation,this.name=new o.D(t.name,e),t.arguments&&(this.arguments=(0,n.f)(new c.Z(t.arguments,e,r))),this.updateMetadata(this.name,this.arguments)}cleanModifierInvocationArguments(){this.arguments&&this.arguments.kind===i.q3.PositionalArgumentsDeclaration&&this.arguments.isEmpty&&delete this.arguments}print(t,e){return[t.call(e,"name"),t.call(e,"arguments")]}}s()}catch(t){s(t)}})},7088(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>p});var i=r(8269),n=r(838),a=r(9959),o=r(7958),c=r(8567),l=t([i]),h=l.then?(await l)():l;i=h[0];const{join:u,literalline:d}=n.doc.builders;class p extends c.A{constructor(t,e){super(t,e),this.kind=i.hP.MultiLineComment,this.value=t.unparse()}print(){return(0,a.f)(this)?(0,o.a)(this):u(d,this.value.split("\n"))}}s()}catch(t){s(t)}})},7576(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>p});var i=r(8269),n=r(838),a=r(9959),o=r(7958),c=r(8567),l=t([i]),h=l.then?(await l)():l;i=h[0];const{join:u,literalline:d}=n.doc.builders;class p extends c.A{constructor(t,e){super(t,e),this.kind=i.hP.MultiLineNatSpecComment,this.value=t.unparse()}print(){return(0,a.f)(this)?(0,o.a)(this):u(d,this.value.split("\n"))}}s()}catch(t){s(t)}})},8968(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d={"*":(0,a.H)(["/","%"]),"/":(0,a.H)(["*","%"]),"%":(0,a.H)(["*","/","%"])},p=(0,n.WV)((0,o.n)([i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MultiplicativeExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand);const s=d[this.operator];if(void 0===s)throw new Error(`Unexpected operator: ${this.operator}`);this.leftOperand=s(this.leftOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},316(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8388),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedArgument,this.name=new o.x(t.name,e),this.value=(0,n.f)(new c.r(t.value,e,r)),this.updateMetadata(this.value)}print(t,e){return[t.call(e,"name"),": ",t.call(e,"value")]}}s()}catch(t){s(t)}})},4797(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>c});var i=r(8269),n=r(6095),a=r(2603),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedArgumentGroup,this.arguments=new a.q(t.arguments,e,r),this.updateMetadata(this.arguments)}print(t,e){return["{",t.call(e,"arguments"),"}"]}}s()}catch(t){s(t)}})},2603(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(316),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.NamedArguments,this.items=t.items.map(t=>new c.j(t,e,r))}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}})},7832(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(8269),n=r(6095),a=r(4797),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedArgumentsDeclaration,t.arguments&&(this.arguments=new a.S(t.arguments,e,r)),this.updateMetadata(this.arguments)}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}})},3534(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(8269),n=r(6095),a=r(6485),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedImport,this.alias=new a.G(t.alias,e),this.path=new o.L(t.path,e,r),this.updateMetadata(this.alias,this.path)}print(t,e){return["*",t.call(e,"alias")," from ",t.call(e,"path")]}}s()}catch(t){s(t)}})},6010(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NewExpression,this.typeName=(0,n.f)(new o.C(t.typeName,e,r)),this.updateMetadata(this.typeName)}print(t,e){return["new ",t.call(e,"typeName")]}}s()}catch(t){s(t)}})},6603(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.NumberUnit,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},8947(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>d});var i=r(8269),n=r(8409),a=r(142),o=r(4003),c=r(6095),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["&&"]);class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.OrExpression,this.leftOperand=(0,o.f)(new l.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,o.f)(new l.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}})},2818(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(2912),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.OverridePaths,this.items=t.items.map(t=>new o.D(t,e))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},6004(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{v:()=>c});var i=r(8269),n=r(6095),a=r(2818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.OverridePathsDeclaration,this.paths=new a.r(t.paths,e),this.updateMetadata(this.paths)}print(t,e){return["(",t.call(e,"paths"),")"]}}s()}catch(t){s(t)}})},7178(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{l:()=>c});var i=r(8269),n=r(6095),a=r(6004),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.OverrideSpecifier,t.overridden&&(this.overridden=new a.v(t.overridden,e)),this.updateMetadata(this.overridden)}print(t,e){return["override",t.call(e,"overridden")]}}s()}catch(t){s(t)}})},3541(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>m});var i=r(8269),n=r(838),a=r(1e3),o=r(4003),c=r(6095),l=r(9979),h=r(1616),u=r(8388),d=t([i,c,l,h,u]);[i,c,l,h,u]=d.then?(await d)():d;const{group:p}=n.doc.builders;class m extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.Parameter,this.typeName=(0,o.f)(new l.C(t.typeName,e,r)),t.storageLocation&&(this.storageLocation=new h.$(t.storageLocation,e)),t.name&&(this.name=new u.x(t.name,e)),this.updateMetadata(this.typeName,this.storageLocation)}print(t,e){return p((0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")]))}}s()}catch(t){s(t)}})},4716(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(8269),n=r(7578),a=r(8941),o=r(7134),c=r(6095),l=r(3541),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.Parameters,this.items=t.items.map(t=>new l.k(t,e,r))}print(t,e,r){if(this.items.length>0)return(0,n.J)(t.map(e,"items"),{grouped:!1});const s=(0,o.i)(this,t,r);return s.length>0?(0,a.K)(s):""}}s()}catch(t){s(t)}})},9002(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>c});var i=r(8269),n=r(6095),a=r(4716),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ParametersDeclaration,this.parameters=new a.H(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},9150(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>l});var i=r(8269),n=r(6095),a=r(3562),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PathImport,this.path=new a.L(t.path,e,r),t.alias&&(this.alias=new o.G(t.alias,e)),this.updateMetadata(this.path,this.alias)}print(t,e){return[t.call(e,"path"),t.call(e,"alias")]}}s()}catch(t){s(t)}})},4872(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>d});var i=r(8269),n=r(7134),a=r(8941),o=r(7578),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,l,h]);[i,n,l,h]=u.then?(await u)():u;class d extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.PositionalArguments,this.items=t.items.map(t=>(0,c.f)(new h.r(t,e,r)))}print(t,e,r){if(this.items.length>0)return(0,o.J)(t.map(e,"items"));const s=(0,n.i)(this,t,r);return s.length>0?(0,a.K)(s):""}}s()}catch(t){s(t)}})},9182(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(8269),n=r(7540),a=r(6095),o=r(4872),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PositionalArgumentsDeclaration,this.arguments=new o.T(t.arguments,e,r),this.updateMetadata(this.arguments),this.isEmpty=0===this.arguments.items.length&&!t.cst.children().some(({node:t})=>(0,n.t)(t))}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}})},4109(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{_:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PostfixExpression,this.operand=(0,n.f)(new o.r(t.operand,e,r)),this.operator=t.operator.unparse(),this.updateMetadata(this.operand)}print(t,e){return[t.call(e,"operand"),this.operator]}}s()}catch(t){s(t)}})},2440(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1475),l=r(6162),h=r(8234),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.Ya3,c.Y],[i.jAT,l.j],[i.hXl,h.h]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.Pragma,this.variant=d(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},5887(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(2440),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PragmaDirective,this.pragma=(0,n.f)(new o.n(t.pragma,e,r)),this.updateMetadata(this.pragma)}print(t,e){return["pragma ",t.call(e,"pragma"),";"]}}s()}catch(t){s(t)}})},8802(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PrefixExpression,this.operator=t.operator.unparse(),this.operand=(0,n.f)(new o.r(t.operand,e,r)),this.updateMetadata(this.operand),"delete"===this.operator&&(this.operator="delete ")}print(t,e){return[this.operator,t.call(e,"operand")]}}s()}catch(t){s(t)}})},4700(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ReceiveFunctionAttribute;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},694(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(4700),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ReceiveFunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.Y(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},9394(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(694),h=r(1580),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ReceiveFunctionDefinition,this.parameters=new c.Z(t.parameters,e,r),this.attributes=new l.P(t.attributes,e,r),this.body=(0,a.f)(new h.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.body);for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.E)("receive",this,t,e)}}s()}catch(t){s(t)}})},2993(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>h});var i=r(8269),n=r(4374),a=r(4003),o=r(6095),c=r(8926),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ReturnStatement,t.expression&&(this.expression=(0,a.f)(new c.r(t.expression,e,r))),this.updateMetadata(this.expression)}print(t,e,r){var s;const a=null===(s=this.expression)||void 0===s?void 0:s.kind;return["return",a?(0,n.w)(t.call(e,"expression"),a!==i.q3.TupleExpression&&(!r.experimentalTernaries||a!==i.q3.ConditionalExpression)):"",";"]}}s()}catch(t){s(t)}})},7181(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(9002),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{group:l}=n.doc.builders;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ReturnsDeclaration,this.variables=new o.Z(t.variables,e,r),this.updateMetadata(this.variables)}print(t,e){return["returns ",l(t.call(e,"variables"))]}}s()}catch(t){s(t)}})},6133(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.RevertStatement,this.error=new o.D(t.error,e),this.arguments=(0,n.f)(new c.Z(t.arguments,e,r)),this.updateMetadata(this.error,this.arguments)}print(t,e){return["revert ",t.call(e,"error"),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}})},4852(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>y});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>"]),p=(0,a.H)(["+","-","*","/","**"]),m=(0,n.WV)((0,o.n)([i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class y extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ShiftExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=p(this.rightOperand)}print(t,e,r){return m(this,t,e,r)}}s()}catch(t){s(t)}})},717(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.SimpleVersionLiteral,this.items=t.items.map(t=>t.unparse())}print(){return this.items.join(".")}}s()}catch(t){s(t)}})},9441(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>c});var i=r(8269),n=r(8567),a=t([i]),o=a.then?(await a)():a;i=o[0];class c extends n.A{constructor(t,e){super(t,e),this.kind=i.hP.SingleLineComment,this.value=t.unparse()}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}})},4867(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>c});var i=r(8269),n=r(8567),a=t([i]),o=a.then?(await a)():a;i=o[0];class c extends n.A{constructor(t,e){super(t,e),this.kind=i.hP.SingleLineNatSpecComment,this.value=t.unparse()}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}})},6095(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{w:()=>u});var i=r(8269),n=r(7088),a=r(7576),o=r(9441),c=r(4867),l=t([i,n,a,o,c]);function h(t){return{[Symbol.iterator](){let e=t.length;return{next:function(){return e--,{done:e<0,value:t[e]}}}}}}[i,n,a,o,c]=l.then?(await l)():l;class u{constructor(t,e,r=!1){if(t instanceof i.xo){const r=e.offsets.get(t.id)||0,s=r+t.textLength.utf16;return void(this.loc={outerStart:r,outerEnd:s,start:r,end:s})}const s=t.cst,l=e.offsets.get(s.id)||0;let h,u,d=l,p=0;r&&(h=0,u=0);for(const{node:t}of s.children()){const r=t.textLength.utf16;if(t.isNonterminalNode()||!i.di.isTrivia(t.kind))e.offsets.set(t.id,d),null!=h||(h=p),p=0;else{switch(t.kind){case i.hP.MultiLineComment:e.comments.push(new n.j(t,d));break;case i.hP.MultiLineNatSpecComment:e.comments.push(new a.H(t,d));break;case i.hP.SingleLineComment:e.comments.push(new o.a(t,d));break;case i.hP.SingleLineNatSpecComment:e.comments.push(new c.c(t,d))}p+=r}d+=r}null!=h||(h=0),null!=u||(u=p),this.loc={outerStart:l,outerEnd:d,start:l+h,end:d-u}}updateMetadata(...t){const{loc:e}=this;if(e.outerStart===e.start)for(const r of t){if(void 0===r)continue;const{outerStart:t,start:s}=r.loc;if(t===e.start){e.start=s;break}}if(e.outerEnd===e.end)for(const r of h(t)){if(void 0===r)continue;const{outerEnd:t,end:s}=r.loc;if(t===e.end){e.end=s;break}}this.loc=e}}s()}catch(d){s(d)}})},6811(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{M:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(6404),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{line:l}=n.doc.builders;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.SourceUnit,this.members=new o.d(t.members,e,r),this.updateMetadata(this.members)}print(t,e,r){return[t.call(e,"members"),r.parentParser?"":l]}}s()}catch(t){s(t)}})},3357(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5887),l=r(8668),h=r(2795),u=r(3692),d=r(1132),p=r(8324),m=r(3820),y=r(7281),f=r(9885),g=r(897),w=r(7260),x=r(33),v=r(4351),b=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.R)([[i.Kx2,c.K],[i.pMj,l.p],[i.ePz,h.e],[i.JOu,u.J],[i.J4F,d.J],[i.ZOq,p.Z],[i.P3w,m.P],[i.Wgi,y.W],[i.yuy,f.y],[i.em6,g.e],[i.zFc,w.z],[i.Ke0,x.K],[i.wyV,v.w]]);class E extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.SourceUnitMember,this.variant=_(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},6404(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(3357),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.SourceUnitMembers,this.items=t.items.map(t=>(0,a.f)(new c.A(t,e,r)))}print(t,e,r){return(0,n.V)(this,t,e,r)}}s()}catch(t){s(t)}})},2203(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>l});var i=r(8269),n=r(6095),a=r(7178),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.StateVariableAttribute;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.l(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},3002(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2203),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.StateVariableAttributes,this.items=t.items.map(t=>(0,o.f)(new l.c(t,e))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},918(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(8269),n=r(838),a=r(9857),o=r(4003),c=r(6095),l=r(9979),h=r(3002),u=r(8388),d=r(4965),p=t([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{indent:m}=n.doc.builders;class y extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StateVariableDefinition,this.typeName=(0,o.f)(new l.C(t.typeName,e,r)),this.attributes=new h.T(t.attributes,e),this.name=new u.x(t.name,e),t.value&&(this.value=new d.S(t.value,e,r)),this.updateMetadata(this.typeName,this.attributes,this.value)}print(t,e){return(0,a.u)([t.call(e,"typeName"),m(t.call(e,"attributes"))," ",t.call(e,"name")],[t.call(e,"value"),";"])}}s()}catch(t){s(t)}})},4965(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>h});var i=r(8269),n=r(5536),a=r(4003),o=r(6095),c=r(8926),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StateVariableDefinitionValue,this.value=(0,a.f)(new c.r(t.value,e,r)),this.updateMetadata(this.value)}print(t,e){return[" =",(0,n.U)(t.call(e,"value"),this.value)]}}s()}catch(t){s(t)}})},5211(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>R});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(6157),l=r(2421),h=r(6773),u=r(7978),d=r(3816),p=r(826),m=r(8943),y=r(9892),f=r(3144),g=r(2993),w=r(1553),x=r(3406),v=r(698),b=r(6133),_=r(7299),E=r(6511),T=r(6470),S=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T]=S.then?(await S)():S;const k=(0,a.R)([[i.Qrp,c.Q],[i._U4,l._],[i.aez,h.a],[i.vSB,u.v],[i.peC,d.p],[i.xvE,p.x],[i.IAp,m.I],[i.HdO,y.H],[i.VG,f.V],[i.chs,g.c],[i.emu,w.e],[i.x7K,x.x],[i.HwF,v.H],[i.iiK,b.i],[i.Iy0,_.I],[i.Evn,T.E]]);class R extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.Statement;const s=t.variant;this.variant=s instanceof i.eBw?new E.e(s,e,r):k(s,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},1322(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(5211),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.Statements,this.items=t.items.map(t=>(0,c.f)(new h.W(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},4557(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>d});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StorageLayoutSpecifier,this.expression=(0,o.f)(new l.r(t.expression,e,r)),this.updateMetadata(this.expression)}print(t,e){return["layout at",(0,a.K)(t.call(e,"expression"),{firstSeparator:u,lastSeparator:t.isFirst?u:""})]}}s()}catch(t){s(t)}})},1616(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.StorageLocation,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},9511(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>y});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3562),l=r(1073),h=r(5191),u=r(7598),d=r(8580),p=t([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;const m=(0,a.R)([[i.LWj,c.L],[i.Kyi,l.K],[i.Cp,h.C],[i.P4c,u.P],[i.Zeo,d.Z]]);class y extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.StringExpression,this.variant=m(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},3562(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=t([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StringLiteral,this.variant=t.variant.unparse(),this.variant=(0,n.T)(this.variant.slice(1,-1),r)}print(){return this.variant}}s()}catch(t){s(t)}})},1073(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(3562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.StringLiterals,this.items=t.items.map(t=>new o.L(t,e,r))}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},8324(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(7462),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StructDefinition,this.name=new a.x(t.name,e),this.members=new o.N(t.members,e,r),this.updateMetadata(this.members)}print(t,e){return["struct ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},5839(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StructMember,this.typeName=(0,n.f)(new o.C(t.typeName,e,r)),this.name=new c.x(t.name,e),this.updateMetadata(this.typeName)}print(t,e){return[t.call(e,"typeName")," ",t.call(e,"name"),";"]}}s()}catch(t){s(t)}})},7462(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(5839),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;class u extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.StructMembers,this.items=t.items.map(t=>new c.Y(t,e,r))}print(t,e){return this.items.length>0?(0,a.J)(t.map(e,"items"),{firstSeparator:h,separator:h}):""}}s()}catch(t){s(t)}})},8388(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>o});var i=r(6095),n=t([i]),a=n.then?(await n)():n;i=a[0];class o extends i.w{constructor(t,e){super(t,e),this.kind=t.kind,this.value=t.unparse()}print(){return this.value}}s()}catch(t){s(t)}})},1553(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ThrowStatement}print(){return"throw;"}}s()}catch(t){s(t)}})},698(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>f});var i=r(8269),n=r(838),a=r(8941),o=r(1e3),c=r(4003),l=r(6095),h=r(8926),u=r(7181),d=r(6511),p=r(7259),m=t([i,l,h,u,d,p]);[i,l,h,u,d,p]=m.then?(await m)():m;const{line:y}=n.doc.builders;class f extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TryStatement,this.expression=(0,c.f)(new h.r(t.expression,e,r)),t.returns&&(this.returns=new u.I(t.returns,e,r)),this.body=new d.e(t.body,e,r),this.catchClauses=new p.m(t.catchClauses,e,r),this.updateMetadata(this.expression,this.returns,this.body,this.catchClauses)}print(t,e){return["try",(0,a.K)(t.call(e,"expression"),{firstSeparator:y}),(0,o.I)(" ",[t.call(e,"returns"),t.call(e,"body"),t.call(e,"catchClauses")])]}}s()}catch(t){s(t)}})},9400(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(7562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TupleDeconstructionElement,t.member&&(this.member=(0,n.f)(new o.n(t.member,e,r))),this.updateMetadata(this.member)}print(t,e){return t.call(e,"member")}}s()}catch(t){s(t)}})},9839(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(9400),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.TupleDeconstructionElements,this.items=t.items.map(t=>new o.r(t,e,r))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},6773(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>u});var i=r(8269),n=r(9857),a=r(4003),o=r(6095),c=r(9839),l=r(8926),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.TupleDeconstructionStatement,this.varKeyword=null===(s=t.varKeyword)||void 0===s?void 0:s.unparse(),this.elements=new c.Y(t.elements,e,r),this.expression=(0,a.f)(new l.r(t.expression,e,r)),this.updateMetadata(this.elements,this.expression)}print(t,e){return(0,n.u)([this.varKeyword?"var (":"(",t.call(e,"elements"),") = "],[t.call(e,"expression"),";"])}}s()}catch(t){s(t)}})},4274(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{b:()=>c});var i=r(8269),n=r(6095),a=r(1634),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TupleExpression,this.items=new a.X(t.items,e,r),this.updateMetadata(this.items)}print(t,e){return["(",t.call(e,"items"),")"]}}s()}catch(t){s(t)}})},7562(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3700),l=r(539),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.ZCC,c.Z],[i.iRq,l.i]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.TupleMember,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},7651(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{E:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TupleValue,t.expression&&(this.expression=(0,n.f)(new o.r(t.expression,e,r))),this.updateMetadata(this.expression)}print(t,e){return t.call(e,"expression")}}s()}catch(t){s(t)}})},1634(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(8269),n=r(7578),a=r(1376),o=r(6095),c=r(7651),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.TupleValues,this.items=t.items.map(t=>new c.E(t,e,r))}getSingleExpression(){const t=this.items;return 1===t.length?t[0].expression:void 0}print(t,e){const r=this.getSingleExpression(),s=t.map(e,"items");return r&&(0,a.D)(r)?s:(0,n.J)(s)}}s()}catch(t){s(t)}})},86(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TypeExpression,this.typeName=(0,n.f)(new o.C(t.typeName,e,r)),this.updateMetadata(this.typeName)}print(t,e){return["type(",t.call(e,"typeName"),")"]}}s()}catch(t){s(t)}})},9979(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>y});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(4968),l=r(3476),h=r(9184),u=r(3198),d=r(2912),p=t([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;const m=(0,a.$)([[i.fhq,c.f],[i.RKz,l.R],[i.dMb,h.d],[i.Ddx,d.D]],[[i.$ge,u.$]]);class y extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.TypeName,this.variant=m(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},3700(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(1616),h=r(8388),u=t([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TypedTupleMember,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),t.storageLocation&&(this.storageLocation=new l.$(t.storageLocation,e)),this.name=new h.x(t.name,e),this.updateMetadata(this.typeName,this.storageLocation)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}})},6470(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{E:()=>c});var i=r(8269),n=r(6095),a=r(6511),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UncheckedBlock,this.block=new a.e(t.block,e,r),this.updateMetadata(this.block)}print(t,e){return["unchecked ",t.call(e,"block")]}}s()}catch(t){s(t)}})},1309(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=t([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UnicodeStringLiteral,this.variant=t.variant.unparse(),this.variant=`unicode${(0,n.T)(this.variant.slice(8,-1),r)}`}print(){return this.variant}}s()}catch(t){s(t)}})},8580(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(1309),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.UnicodeStringLiterals,this.items=t.items.map(t=>new o.G(t,e,r))}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},2080(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>l});var i=r(8269),n=r(6095),a=r(1699),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UnnamedFunctionAttribute;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.u(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2263(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2080),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.UnnamedFunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.L(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},6871(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{u:()=>d});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(2263),h=r(1580),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UnnamedFunctionDefinition,this.parameters=new c.Z(t.parameters,e,r),this.attributes=new l.q(t.attributes,e,r),this.body=(0,a.f)(new h.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.body);for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.E)("function",this,t,e)}}s()}catch(t){s(t)}})},539(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(8269),n=r(1e3),a=r(6095),o=r(1616),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.UntypedTupleMember,t.storageLocation&&(this.storageLocation=new o.$(t.storageLocation,e)),this.name=new c.x(t.name,e),this.updateMetadata(this.storageLocation)}print(t,e){return(0,n.I)(" ",[t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}})},7260(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8388),c=r(3198),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.UserDefinedValueTypeDefinition,this.name=new o.x(t.name,e),this.valueType=(0,n.f)(new c.$(t.valueType,e)),this.updateMetadata(this.valueType)}print(t,e){return["type ",t.call(e,"name")," is ",t.call(e,"valueType"),";"]}}s()}catch(t){s(t)}})},4916(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(8269),n=r(6095),a=r(7818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingAlias,this.operator=new a.Z(t.operator,e),this.updateMetadata(this.operator)}print(t,e){return[" as ",t.call(e,"operator")]}}s()}catch(t){s(t)}})},6575(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(2912),l=r(7972),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.Ddx,c.D],[i.rNJ,l.r]]);class d extends o.w{constructor(t,e){super(t,e),this.kind=n.q3.UsingClause,this.variant=u(t.variant,e),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},7972(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(8269),n=r(6095),a=r(983),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingDeconstruction,this.symbols=new a.e(t.symbols,e),this.updateMetadata(this.symbols)}print(t,e){return["{",t.call(e,"symbols"),"}"]}}s()}catch(t){s(t)}})},4288(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(8269),n=r(6095),a=r(2912),o=r(4916),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingDeconstructionSymbol,this.name=new a.D(t.name,e),t.alias&&(this.alias=new o.j(t.alias,e)),this.updateMetadata(this.name,this.alias)}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}})},983(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(4288),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.UsingDeconstructionSymbols,this.items=t.items.map(t=>new c.B(t,e))}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}})},33(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(6575),c=r(2399),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.UsingDirective,this.clause=(0,n.f)(new o.g(t.clause,e)),this.target=(0,n.f)(new c.A(t.target,e,r)),this.globalKeyword=null===(s=t.globalKeyword)||void 0===s?void 0:s.unparse(),this.updateMetadata(this.clause,this.target)}print(t,e){return["using ",t.call(e,"clause")," for ",t.call(e,"target"),this.globalKeyword?" global;":";"]}}s()}catch(t){s(t)}})},7818(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingOperator,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},2399(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UsingTarget;const s=t.variant;s instanceof i.xo?this.variant=new c.x(s,e):(this.variant=(0,n.f)(new o.C(s,e,r)),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2421(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{_:()=>f});var i=r(8269),n=r(838),a=r(9857),o=r(4003),c=r(6095),l=r(6030),h=r(1616),u=r(8388),d=r(1829),p=t([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{indent:m,line:y}=n.doc.builders;class f extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.VariableDeclarationStatement,this.variableType=(0,o.f)(new l.L(t.variableType,e,r)),t.storageLocation&&(this.storageLocation=new h.$(t.storageLocation,e)),this.name=new u.x(t.name,e),t.value&&(this.value=new d.y(t.value,e,r)),this.updateMetadata(this.variableType,this.storageLocation,this.value)}print(t,e){return(0,a.u)([t.call(e,"variableType"),this.storageLocation?m([y,t.call(e,"storageLocation")]):""," ",t.call(e,"name")],[t.call(e,"value"),";"])}}s()}catch(t){s(t)}})},6030(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.VariableDeclarationType;const s=t.variant;s instanceof i.xo?this.variant=new c.x(s,e):(this.variant=(0,n.f)(new o.C(s,e,r)),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},1829(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{y:()=>h});var i=r(8269),n=r(5536),a=r(4003),o=r(6095),c=r(8926),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.VariableDeclarationValue,this.expression=(0,a.f)(new c.r(t.expression,e,r)),this.updateMetadata(this.expression)}print(t,e){return[" =",(0,n.U)(t.call(e,"expression"),this.expression)]}}s()}catch(t){s(t)}})},852(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(8225),l=r(6336),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.GoE,c.G],[i.BIR,l.B]]);class d extends o.w{constructor(t,e){super(t,e),this.kind=n.q3.VersionExpression,this.variant=u(t.variant,e),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},3586(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>u});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(852),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{join:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.VersionExpressionSet,this.items=t.items.map(t=>(0,a.f)(new c.L(t,e)))}print(t,e){return h(" ",t.map(e,"items"))}}s()}catch(t){s(t)}})},4313(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(3586),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.VersionExpressionSets,this.items=t.items.map(t=>new o.T(t,e))}print(t,e){return l(" || ",t.map(e,"items"))}}s()}catch(t){s(t)}})},3091(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{w:()=>l});var i=r(8269),n=r(6095),a=r(717),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionLiteral;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.i(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2754(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionOperator,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},8234(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>c});var i=r(8269),n=r(6095),a=r(4313),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionPragma,this.sets=new a.k(t.sets,e),this.updateMetadata(this.sets)}print(t,e){return["solidity ",t.call(e,"sets")]}}s()}catch(t){s(t)}})},8225(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(3091),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionRange,this.start=(0,n.f)(new o.w(t.start,e)),this.end=(0,n.f)(new o.w(t.end,e)),this.updateMetadata(this.start,this.end)}print(t,e){return[t.call(e,"start")," - ",t.call(e,"end")]}}s()}catch(t){s(t)}})},6336(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2754),c=r(3091),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionTerm,t.operator&&(this.operator=new o.X(t.operator,e)),this.literal=(0,n.f)(new c.w(t.literal,e)),this.updateMetadata(this.operator,this.literal)}print(t,e){return[t.call(e,"operator"),t.call(e,"literal")]}}s()}catch(t){s(t)}})},826(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>d});var i=r(8269),n=r(8941),a=r(4374),o=r(4003),c=r(6095),l=r(8926),h=r(5211),u=t([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.WhileStatement,this.condition=(0,o.f)(new l.r(t.condition,e,r)),this.body=(0,o.f)(new h.W(t.body,e,r)),this.updateMetadata(this.condition,this.body)}print(t,e){return["while (",(0,n.K)(t.call(e,"condition")),")",(0,a.w)(t.call(e,"body"),this.body.kind!==i.q3.Block)]}}s()}catch(t){s(t)}})},9466(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>h});var i=r(8269),n=r(7578),a=r(4003),o=r(6095),c=r(9838),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.YulArguments,this.items=t.items.map(t=>(0,a.f)(new c.h(t,e,r)))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},5101(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>l});var i=r(8269),n=r(6095),a=r(8906),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulAssignmentOperator;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.d(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2319(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{M:()=>c});var i=r(8269),n=r(6095),a=r(1514),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulBlock,this.statements=new a.f(t.statements,e,r),this.updateMetadata(this.statements)}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}})},2888(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{b:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulBreakStatement}print(){return"break"}}s()}catch(t){s(t)}})},8906(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulColonAndEqual}print(){return":="}}s()}catch(t){s(t)}})},900(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulContinueStatement}print(){return"continue"}}s()}catch(t){s(t)}})},3495(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>c});var i=r(8269),n=r(6095),a=r(2319),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulDefaultCase,this.body=new a.M(t.body,e,r),this.updateMetadata(this.body)}print(t,e){return["default ",t.call(e,"body")]}}s()}catch(t){s(t)}})},2830(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulEqualAndColon}print(){return"=:"}}s()}catch(t){s(t)}})},9838(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9878),l=r(7769),h=r(3859),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.$)([[i.VZT,c.V],[i.i7X,h.i]],[[i.KO$,l.K]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulExpression,this.variant=d(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},9192(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(2319),l=r(9838),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{join:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulForStatement,this.initialization=new c.M(t.initialization,e,r),this.condition=(0,a.f)(new l.h(t.condition,e,r)),this.iterator=new c.M(t.iterator,e,r),this.body=new c.M(t.body,e,r),this.updateMetadata(this.initialization,this.condition,this.iterator,this.body)}print(t,e){return u(" ",["for",t.call(e,"initialization"),t.call(e,"condition"),t.call(e,"iterator"),t.call(e,"body")])}}s()}catch(t){s(t)}})},9878(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9838),c=r(9466),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulFunctionCallExpression,this.operand=(0,n.f)(new o.h(t.operand,e,r)),this.arguments=new c.H(t.arguments,e,r),this.updateMetadata(this.operand,this.arguments)}print(t,e){return[t.call(e,"operand"),"(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}})},3457(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>u});var i=r(8269),n=r(6095),a=r(8388),o=r(8026),c=r(3437),l=r(2319),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulFunctionDefinition,this.name=new a.x(t.name,e),this.parameters=new o.f(t.parameters,e),t.returns&&(this.returns=new c.c(t.returns,e)),this.body=new l.M(t.body,e,r),this.updateMetadata(this.parameters,this.returns,this.body)}print(t,e){return["function ",t.call(e,"name"),t.call(e,"parameters"),t.call(e,"returns")||" ",t.call(e,"body")]}}s()}catch(t){s(t)}})},6570(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9838),c=r(2319),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulIfStatement,this.condition=(0,n.f)(new o.h(t.condition,e,r)),this.body=new c.M(t.body,e,r),this.updateMetadata(this.condition,this.body)}print(t,e){return["if ",t.call(e,"condition")," ",t.call(e,"body")]}}s()}catch(t){s(t)}})},672(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{dedent:l,line:h}=n.doc.builders;class u extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.YulLabel,this.label=new o.x(t.label,e)}print(t,e){return[l(h),t.call(e,"label"),":"]}}s()}catch(t){s(t)}})},9976(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulLeaveStatement}print(){return"leave"}}s()}catch(t){s(t)}})},7769(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5191),l=r(3562),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.Cp,c.C],[i.LWj,l.L]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulLiteral;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},9388(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulParameters,this.items=t.items.map(t=>new o.x(t,e))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},8026(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>c});var i=r(8269),n=r(6095),a=r(9388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulParametersDeclaration,this.parameters=new a.j(t.parameters,e),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},3859(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulPath,this.items=t.items.map(t=>new o.x(t,e))}print(t,e){return l(".",t.map(e,"items"))}}s()}catch(t){s(t)}})},8578(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{F:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(3859),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulPaths,this.items=t.items.map(t=>new o.i(t,e))}print(t,e){return l(", ",t.map(e,"items"))}}s()}catch(t){s(t)}})},3437(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>u});var i=r(8269),n=r(838),a=r(8941),o=r(6095),c=r(8634),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e),this.kind=i.q3.YulReturnsDeclaration,this.variables=new c.b(t.variables,e),this.updateMetadata(this.variables)}print(t,e){return(0,a.K)(["->",t.call(e,"variables")],{firstSeparator:h})}}s()}catch(t){s(t)}})},5003(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(8269),n=r(6095),a=r(2830),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulStackAssignmentOperator;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.T(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},5394(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(5003),h=r(8388),u=t([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;const{line:d}=n.doc.builders;class p extends c.w{constructor(t,e){super(t,e),this.kind=i.q3.YulStackAssignmentStatement,this.assignment=(0,o.f)(new l.g(t.assignment,e)),this.variable=new h.x(t.variable,e),this.updateMetadata(this.assignment)}print(t,e){return[t.call(e,"assignment"),(0,a.K)(t.call(e,"variable"),{firstSeparator:d,lastSeparator:""})]}}s()}catch(t){s(t)}})},6155(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(2319),l=r(3457),h=r(8453),u=r(3752),d=r(5394),p=r(6570),m=r(9192),y=r(1335),f=r(9976),g=r(2888),w=r(900),x=r(672),v=r(9838),b=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.$)([[i.gPA,l.g],[i.OKT,h.O],[i.xu3,u.x],[i.fOI,d.f],[i.Nv1,p.N],[i.D7j,m.D],[i.Q2m,y.Q],[i.d6v,f.d],[i.bbA,g.b],[i.NM3,w.N],[i.pOL,x.p]],[[i.h7v,v.h]]);class E extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulStatement;const s=t.variant;this.variant=s instanceof i.Mmb?new c.M(s,e,r):_(s,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},1514(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(6155),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.YulStatements,this.items=t.items.map(t=>(0,c.f)(new h.C(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},2688(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3495),l=r(3211),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.a1h,c.a],[i.Gpj,l.G]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulSwitchCase,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},9543(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(2688),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h,join:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.YulSwitchCases,this.items=t.items.map(t=>(0,a.f)(new c.p(t,e,r)))}print(t,e){return u(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},1335(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(9838),l=r(9543),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{hardline:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulSwitchStatement,this.expression=(0,a.f)(new c.h(t.expression,e,r)),this.cases=new l.q(t.cases,e,r),this.updateMetadata(this.expression,this.cases)}print(t,e){return["switch ",t.call(e,"expression"),u,t.call(e,"cases")]}}s()}catch(t){s(t)}})},3211(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(7769),c=r(2319),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulValueCase,this.value=(0,n.f)(new o.K(t.value,e,r)),this.body=new c.M(t.body,e,r),this.updateMetadata(this.value,this.body)}print(t,e){return["case ",t.call(e,"value")," ",t.call(e,"body")]}}s()}catch(t){s(t)}})},3752(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>p});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(8578),l=r(5101),h=r(9838),u=t([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{join:d}=n.doc.builders;class p extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulVariableAssignmentStatement,this.variables=new c.F(t.variables,e),this.assignment=(0,a.f)(new l.W(t.assignment,e)),this.expression=(0,a.f)(new h.h(t.expression,e,r)),this.updateMetadata(this.variables,this.assignment,this.expression)}print(t,e){return d(" ",[t.call(e,"variables"),t.call(e,"assignment"),t.call(e,"expression")])}}s()}catch(t){s(t)}})},8453(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>h});var i=r(8269),n=r(1e3),a=r(6095),o=r(9861),c=r(8634),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulVariableDeclarationStatement,this.variables=new c.b(t.variables,e),t.value&&(this.value=new o.S(t.value,e,r)),this.updateMetadata(this.value)}print(t,e){return(0,n.I)(" ",[["let",t.call(e,"variables")],t.call(e,"value")])}}s()}catch(t){s(t)}})},9861(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(5101),c=r(9838),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulVariableDeclarationValue,this.assignment=(0,n.f)(new o.W(t.assignment,e)),this.expression=(0,n.f)(new c.h(t.expression,e,r)),this.updateMetadata(this.assignment,this.expression)}print(t,e){return[t.call(e,"assignment")," ",t.call(e,"expression")]}}s()}catch(t){s(t)}})},8634(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{b:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(8388),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulVariableNames,this.items=t.items.map(t=>new c.x(t,e))}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h,lastSeparator:""})}}s()}catch(t){s(t)}})},1059(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>u});var i=r(8269),n=r(838),a=r(1376),o=t([i,a]);[i,a]=o.then?(await o)():o;const{group:c,line:l}=n.doc.builders;function h({operator:t,leftOperand:e},r,s,n){const o=r.call(s,"rightOperand"),h="end"===n.experimentalOperatorPosition?[` ${t}`,l,o]:[l,`${t} `,o],u=r.parent;return(0,a.D)(e)||(0,a.D)(u)&&u.kind!==i.q3.AssignmentExpression?h:c(h)}const u=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(r,s);return a([s.call(i,"leftOperand"),o(h(r,s,i,n))])};s()}catch(d){s(d)}})},5536(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{U:()=>c});var i=r(8269),n=r(6543),a=r(4374),o=t([i,n]);function c(t,e){return(0,a.w)(t,e.kind!==i.q3.ArrayExpression&&!(0,n.Y)(e))}[i,n]=o.then?(await o)():o,s()}catch(l){s(l)}})},4209(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{WV:()=>f,Wu:()=>y,xM:()=>d,z9:()=>m});var i=r(8269),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=t=>e=>r=>{const s=e.parent;return(0,o.D)(s)?t(s)?h(r):r:h(r)},p=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),m=(t,e,r)=>p(t)||t.kind===i.q3.ExpressionStatement&&e.getNode(r+1).kind===i.q3.ForStatement,y=t=>(e,r)=>s=>{for(let i,n=1,a=e;i=r.getNode(n),!m(i,r,n);n++,a=i){if(!(0,o.D)(i))return u(s);if(t(i))return u(s);if(a===i.rightOperand)break}return s},f=t=>(0,c.f)(d(t),y(t));s()}catch(t){s(t)}})},7134(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>p});var i=r(838),n=r(7431),a=r(1e3),o=r(9060),c=t([n]),l=c.then?(await c)():c;n=l[0];const{hardline:h,line:u}=i.doc.builders;function d(t){return!t.trailing&&!t.leading&&!t.printed}function p(t,e,r){return void 0===t.comments?[]:(0,a.I)(u,e.map((t,e,s)=>{const a=t.node;if(!d(a))return"";a.printed=!0;const c=e===s.length-1||-1===s.slice(e+1).findIndex(d);return[(0,n.X)(t),!c&&i.util.isNextLineEmpty(r.originalText,(0,o.I)(a))?h:""]},"comments"))}s()}catch(m){s(m)}})},304(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{E:()=>m,c:()=>p});var i=r(8269),n=r(838),a=r(1e3),o=t([i]),c=o.then?(await o)():o;i=c[0];const{dedent:l,group:h,indent:u,line:d}=n.doc.builders;function p(t,e,r,s){const n=e.body;return h([t,r.call(s,"parameters"),u(h([(0,a.I)(d,[r.call(s,"attributes"),r.call(s,"returns")]),n&&n.kind===i.q3.Block?l(d):""]))])}function m(t,e,r,s){return[p(t,e,r,s),r.call(s,"body")]}s()}catch(y){s(y)}})},9857(t,e,r){r.d(e,{u:()=>a});var s=r(838);const{group:i,indentIfBreak:n}=s.doc.builders;function a(t,e){const r=Symbol("Slang.GroupAndIndentIfBreakPair");return[i(t,{id:r}),n(e,{groupId:r})]}},7958(t,e,r){r.d(e,{a:()=>a});var s=r(838);const{hardline:i,join:n}=s.doc.builders;function a(t){const e=t.value.split("\n");return n(i,e.map((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`))}},4374(t,e,r){r.d(e,{w:()=>o});var s=r(838);const{group:i,indent:n,line:a}=s.doc.builders;function o(t,e=!0,r={}){return e?i(n([a,t]),r):[" ",t]}},8409(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>p});var i=r(8269),n=r(838),a=r(1376),o=r(1059),c=r(4209),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{indent:h}=n.doc.builders,u=(0,c.xM)(()=>!1),d=(t,e)=>r=>{for(let s,n=1,o=t;!(s=e.getNode(n),(0,c.z9)(s,e,n)||s.kind===i.q3.ConditionalExpression&&s.operand===o);n++,o=s){if(!(0,a.D)(s))return h(r);if(o===s.rightOperand)break}return r},p=(0,o.f)(u,d);s()}catch(t){s(t)}})},1041(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>h});var i=r(8269),n=r(838),a=r(9060),o=r(7134),c=t([i,o]);[i,o]=c.then?(await c)():c;const{hardline:l}=n.doc.builders;function h(t,e,r,s){return t.items.length>0?e.map(t=>{const e=t.node;return[t.isFirst||e.kind===i.q3.YulLabel?"":l,r(t),!t.isLast&&n.util.isNextLineEmpty(s.originalText,(0,a.I)(e))?l:""]},"items"):(0,o.i)(t,e,s)}s()}catch(u){s(u)}})},8941(t,e,r){r.d(e,{K:()=>c});var s=r(838);const{group:i,hardline:n,indent:a,softline:o}=s.doc.builders;function c(t,{firstSeparator:e=o,lastSeparator:r=e,grouped:s=e!==n}={}){const c=[a([e,t]),r];return s?i(c):c}},7578(t,e,r){r.d(e,{J:()=>o});var s=r(838),i=r(8941);const{join:n,line:a}=s.doc.builders;function o(t,{firstSeparator:e,separator:r=[",",a],lastSeparator:s,grouped:o}={}){return(0,i.K)(n(r,t),{firstSeparator:e,lastSeparator:s,grouped:o})}},1529(t,e,r){r.d(e,{T:()=>i});var s=r(838);function i(t,e){const r=e.singleQuote?"'":'"',i="'"===r?'"':"'";let n=0,a=0;for(const e of t)e===r?n++:e===i&&a++;const o=n>a?i:r;return s.util.makeString(t,o)}},142(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>h});var i=r(8269),n=r(4274),a=r(1634),o=r(7651),c=r(1376),l=t([i,n,a,o,c]);function h(t){const e=new Set(t);return t=>{if((0,c.D)(t)&&e.has(t.operator)){const e=t.loc;return Object.assign(Object.create(n.b.prototype),{kind:i.q3.TupleExpression,loc:Object.assign({},e),comments:[],items:Object.assign(Object.create(a.X.prototype),{kind:i.q3.TupleValues,loc:Object.assign({},e),comments:[],items:[Object.assign(Object.create(o.E.prototype),{kind:i.q3.TupleValue,loc:Object.assign({},e),comments:[],expression:t})]})})}return t}}[i,n,a,o,c]=l.then?(await l)():l,s()}catch(u){s(u)}})},6563(t,e,r){function s(t){const e=new Set(t);return t=>e.has(t.kind)}r.d(e,{n:()=>s})},7427(t,e,r){r.d(e,{$:()=>n,R:()=>i});var s=r(4003);function i(t){return(e,r,s)=>{for(const[i,n]of t)if(e instanceof i)return new n(e,r,s);throw new Error(`Unexpected variant: ${JSON.stringify(e)}`)}}function n(t,e){const r=i(t);return(t,i,n)=>{for(const[r,a]of e)if(t instanceof r)return(0,s.f)(new a(t,i,n));return r(t,i,n)}}},4254(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>p});var i=r(8269),n=r(5130),a=r(3704),o=r(9589),c=t([i,n,a]);[i,n,a]=c.then?(await c)():c;const l=a.g.allVersions(),h=l.length;function u(t,e){const r=n.i.create(e);return{parser:r,parseOutput:r.parseNonterminal(i.q3.SourceUnit,t)}}function d(t,e){return new Error(`We encountered the following syntax error:\n\n\t${t.parseOutput.errors()[0].message}\n\n${e}`)}function p(t,e){const r=(0,o.maxSatisfying)(l,e.compiler);if(r){const e=u(t,r);if(!e.parseOutput.isValid())throw d(e,`Based on the compiler option provided, we inferred your code to be using Solidity version ${e.parser.languageVersion}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`);return e}const s=a.g.inferLanguageVersions(t),i=s.length;if(0===i||i===h){const e=u(t,l[h-1]);if(!e.parseOutput.isValid())throw d(e,`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${e.parser.languageVersion}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`);return e}const n=u(t,s[s.length-1]);if(!n.parseOutput.isValid())throw d(n,`Based on the pragma statements, we inferred your code to be using Solidity version ${n.parser.languageVersion}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`);return n}s()}catch(m){s(m)}})},4003(t,e,r){function s({variant:t,loc:e}){return t.loc=e,t}r.d(e,{f:()=>s})},1376(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>o});var i=r(8269),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.EqualityExpression,i.q3.InequalityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);s()}catch(t){s(t)}})},6543(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>o});var i=r(8269),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.FunctionCallExpression,i.q3.IndexAccessExpression,i.q3.MemberAccessExpression]);s()}catch(t){s(t)}})},7540(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>c,t:()=>o});var i=r(8269),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment]),c=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment]);s()}catch(t){s(t)}})},9959(t,e,r){function s(t){const e=t.value.slice(1,-1).split("\n");return e.length>1&&e.every(t=>"*"===t.trimStart()[0])}r.d(e,{f:()=>s})},4079(t,e,r){function s(t){return"label"===t.type}r.d(e,{J:()=>s})},1e3(t,e,r){r.d(e,{I:()=>n});var s=r(838);const{join:i}=s.doc.builders;function n(t,e){return i(t,e.filter(Boolean))}},9060(t,e,r){function s(t){return"string"==typeof t||void 0===t?-1:t.loc.start}function i(t){return"string"==typeof t||void 0===t?-1:t.loc.end}r.d(e,{I:()=>i,z:()=>s})},4145(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>o});var i=r(8269),n=t([i]),a=n.then?(await n)():n;function o({kind:t},{kind:e}){return t===i.q3.InheritanceSpecifier&&e===i.q3.StorageLayoutSpecifier?-1:e===i.q3.InheritanceSpecifier&&t===i.q3.StorageLayoutSpecifier?1:0}i=a[0],s()}catch(c){s(c)}})},3111(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>l});var i=r(8269),n=r(8388),a=t([i,n]);[i,n]=a.then?(await a)():a;const o=new Set(["external","internal","public","private"]),c=new Set(["pure","constant","payable","view"]);function l(t,e){const r=t instanceof n.x,s=e instanceof n.x;if(r&&!s)return-1;if(s&&!r)return 1;if(r&&s){if(o.has(t.value))return-1;if(o.has(e.value))return 1;if(c.has(t.value))return-1;if(c.has(e.value))return 1}if(!r&&!s){if(t.kind===i.q3.OverrideSpecifier&&e.kind===i.q3.ModifierInvocation)return-1;if(e.kind===i.q3.OverrideSpecifier&&t.kind===i.q3.ModifierInvocation)return 1}return 0}s()}catch(h){s(h)}})},466(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(7540),n=r(9060),a=t([i]),o=a.then?(await a)():a;function c({comments:t}){return Boolean(null==t?void 0:t.some(t=>"prettier-ignore"===t.value.slice(2,(0,i.t)(t)?-2:void 0).trim()))}function l(t){const e=t.node;if(null===e||"object"!=typeof e)return;let r;for(r in e)switch(r){case"kind":case"loc":case"updateMetadata":break;case"comments":t.each(t=>t.node.printed=!0,r);break;default:const s=e[r];if("object"==typeof s){if(Array.isArray(s))return void t.each(l,r);t.call(l,r)}}}function h(t,e,r){const s=t.node;return c(s)?(l(t),e.originalText.slice((0,n.z)(s),(0,n.I)(s))):s.print(t,r,e)}i=o[0];const u=h;s()}catch(d){s(d)}})},3927(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(8683),n=r(4254),a=r(6811),o=t([i,n,a]);function c(t,e){const{parser:r,parseOutput:s}=(0,n.C)(t,e);e.compiler=r.languageVersion;const o=[],c=new a.M(new i.Mk(s.tree.asNonterminalNode()),{offsets:new Map,comments:o},e);return c.comments=o.sort((t,e)=>t.loc.start-e.loc.start),c}[i,n,a]=o.then?(await o)():o,s()}catch(l){s(l)}})},7870(t,e,r){t.exports=r.p+"45a2f8ea451fae5aed45.wasm"},1112(t,e,r){t.exports=r.p+"591f276013d241f7a687.wasm"},9719(t,e,r){t.exports=r.p+"af4fa2af1d540c759e83.wasm"},450(t,e,r){t.exports=r.p+"5f52a6c1a6d6fa4155a9.wasm"},838(t){t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},9031(t){t.exports=import("node:fs/promises")},8664(t,e,r){r.d(e,{NS:()=>l,Uo:()=>y,bX:()=>m,cA:()=>i.cA,vF:()=>f});var s=r(9340),i=r(5527);const{InputStream:n,OutputStream:a}=s.oS,o=Symbol.dispose??Symbol.for("dispose");class c extends Error{constructor(t){super("Component exited "+(0===t?"successfully":"with error")),this.exitError=!0,this.code=t}}const l={exit(t){throw new c("err"===t.tag?1:0)},exitWithCode(t){throw new c(t)}},h=new n({blockingRead(t){},subscribe(){},[o](){}});let u=new TextDecoder;const d=new a({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.log(u.decode(t))},blockingFlush(){},[o](){}}),p=new a({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.error(u.decode(t))},blockingFlush(){},[o](){}}),m={InputStream:n,getStdin:()=>h},y={OutputStream:a,getStdout:()=>d},f={OutputStream:a,getStderr:()=>p};class g{}new g,new g,new class{}},5527(t,e,r){r.d(e,{cA:()=>n});let s=[],i=[];const n={getEnvironment:()=>s,getArguments:()=>i,initialCwd:()=>"/"}},6190(t,e,r){r.d(e,{jw:()=>m,gK:()=>y});var s=r(9340);r(5527);const{InputStream:i,OutputStream:n}=s.oS;const a={seconds:BigInt(0),nanoseconds:0};function o(t,e,r){"."===e&&p&&u(p[0])===t&&(e="/").startsWith("/")&&"/"!==e&&(e=e.slice(1));let s,i=t;do{if(!i||!i.dir)throw"not-directory";s=e.indexOf("/");const t=-1===s?e:e.slice(0,s);if(".."===t)throw"no-entry";"."===t||""===t||(i=!i.dir[t]&&r.create?i.dir[t]=r.directory?{dir:{}}:{source:new Uint8Array([])}:i.dir[t]),e=e.slice(s+1)}while(-1!==s);if(!i)throw"no-entry";return i}function c(t){return"string"==typeof t.source&&(t.source=(new TextEncoder).encode(t.source)),t.source}class l{constructor(t){this.idx=0,this.entries=t}readDirectoryEntry(){if(this.idx===this.entries.length)return null;const[t,e]=this.entries[this.idx];return this.idx+=1,{name:t,type:e.dir?"directory":"regular-file"}}}class h{#t;#e;#r=0;_getEntry(t){return t.#e}constructor(t,e){e?this.#t=t:this.#e=t}readViaStream(t){const e=c(this.#e);let r=Number(t);return new i({blockingRead(t){if(r===e.byteLength)throw{tag:"closed"};const s=e.slice(r,r+Number(t));return r+=s.byteLength,s}})}writeViaStream(t){const e=this.#e;let r=Number(t);return new n({write(t){const s=new Uint8Array(t.byteLength+e.source.byteLength);return s.set(e.source,0),s.set(t,r),r+=t.byteLength,e.source=s,t.byteLength}})}appendViaStream(){console.log("[filesystem] APPEND STREAM")}advise(t,e,r,s){console.log("[filesystem] ADVISE",t,e,r,s)}syncData(){console.log("[filesystem] SYNC DATA")}getFlags(){console.log("[filesystem] FLAGS FOR")}getType(){return this.#t?"fifo":this.#e.dir?"directory":this.#e.source?"regular-file":"unknown"}setSize(t){console.log("[filesystem] SET SIZE",t)}setTimes(t,e){console.log("[filesystem] SET TIMES",t,e)}read(t,e){const r=c(this.#e);return[r.slice(e,e+t),e+t>=r.byteLength]}write(t,e){if(0!==e)throw"invalid-seek";return this.#e.source=t,t.byteLength}readDirectory(){if(!this.#e?.dir)throw"bad-descriptor";return new l(Object.entries(this.#e.dir).sort(([t],[e])=>t>e?1:-1))}sync(){console.log("[filesystem] SYNC")}createDirectoryAt(t){if(o(this.#e,t,{create:!0,directory:!0}).source)throw"exist"}stat(){let t="unknown",e=BigInt(0);if(this.#e.source){t="regular-file";const r=c(this.#e);e=BigInt(r.byteLength)}else this.#e.dir&&(t="directory");return{type:t,linkCount:BigInt(0),size:e,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}statAt(t,e){const r=o(this.#e,e,{create:!1,directory:!1});let s="unknown",i=BigInt(0);if(r.source){s="regular-file";const t=c(r);i=BigInt(t.byteLength)}else r.dir&&(s="directory");return{type:s,linkCount:BigInt(0),size:i,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}setTimesAt(){console.log("[filesystem] SET TIMES AT")}linkAt(){console.log("[filesystem] LINK AT")}openAt(t,e,r,s,i){const n=o(this.#e,e,r);return new h(n)}readlinkAt(){console.log("[filesystem] READLINK AT")}removeDirectoryAt(){console.log("[filesystem] REMOVE DIR AT")}renameAt(){console.log("[filesystem] RENAME AT")}symlinkAt(){console.log("[filesystem] SYMLINK AT")}unlinkFileAt(){console.log("[filesystem] UNLINK FILE AT")}isSameObject(t){return t===this}metadataHash(){let t=BigInt(0);return t+=BigInt(this.#r),{upper:t,lower:BigInt(0)}}metadataHashAt(t,e){let r=BigInt(0);return r+=BigInt(this.#r),{upper:r,lower:BigInt(0)}}}const u=h.prototype._getEntry;delete h.prototype._getEntry;let d=[[new h({dir:{}}),"/"]],p=d[0];const m={getDirectories:()=>d},y={Descriptor:h,DirectoryEntryStream:l,filesystemErrorCode:t=>function(t){switch(t.code){case"EACCES":return"access";case"EAGAIN":case"EWOULDBLOCK":return"would-block";case"EALREADY":return"already";case"EBADF":return"bad-descriptor";case"EBUSY":return"busy";case"EDEADLK":return"deadlock";case"EDQUOT":return"quota";case"EEXIST":return"exist";case"EFBIG":return"file-too-large";case"EILSEQ":return"illegal-byte-sequence";case"EINPROGRESS":return"in-progress";case"EINTR":return"interrupted";case"EINVAL":return"invalid";case"EIO":return"io";case"EISDIR":return"is-directory";case"ELOOP":return"loop";case"EMLINK":return"too-many-links";case"EMSGSIZE":return"message-size";case"ENAMETOOLONG":return"name-too-long";case"ENODEV":return"no-device";case"ENOENT":return"no-entry";case"ENOLCK":return"no-lock";case"ENOMEM":return"insufficient-memory";case"ENOSPC":return"insufficient-space";case"ENOTDIR":case"ERR_FS_EISDIR":return"not-directory";case"ENOTEMPTY":return"not-empty";case"ENOTRECOVERABLE":return"not-recoverable";case"ENOTSUP":return"unsupported";case"ENOTTY":return"no-tty";case-4094:case"ENXIO":return"no-such-device";case"EOVERFLOW":return"overflow";case"EPERM":return"not-permitted";case"EPIPE":return"pipe";case"EROFS":return"read-only";case"ESPIPE":return"invalid-seek";case"ETXTBSY":return"text-file-busy";case"EXDEV":return"cross-device";case"UNKNOWN":if(-4094===t.errno)return"no-such-device";throw t;default:throw t}}(t.payload)}},9340(t,e,r){r.d(e,{oS:()=>a,z3:()=>n});let s=0;const i=Symbol.dispose||Symbol.for("dispose"),n={Error:class{constructor(t){this.msg=t}toDebugString(){return this.msg}}},a={InputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.handler=t}read(t){return this.handler.read?this.handler.read(t):this.handler.blockingRead.call(this,t)}blockingRead(t){return this.handler.blockingRead.call(this,t)}skip(t){if(this.handler.skip)return this.handler.skip.call(this,t);if(this.handler.read){const e=this.handler.read.call(this,t);return BigInt(e.byteLength)}return this.blockingSkip.call(this,t)}blockingSkip(t){if(this.handler.blockingSkip)return this.handler.blockingSkip.call(this,t);const e=this.handler.blockingRead.call(this,t);return BigInt(e.byteLength)}subscribe(){return console.log(`[streams] Subscribe to input stream ${this.id}`),new o}[i](){this.handler.drop&&this.handler.drop.call(this)}},OutputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.open=!0,this.handler=t}checkWrite(t){return this.open?this.handler.checkWrite?this.handler.checkWrite.call(this,t):1000000n:0n}write(t){this.handler.write.call(this,t)}blockingWriteAndFlush(t){this.handler.write.call(this,t)}flush(){this.handler.flush&&this.handler.flush.call(this)}blockingFlush(){this.open=!0}writeZeroes(t){this.write.call(this,new Uint8Array(Number(t)))}blockingWriteZeroes(t){this.blockingWrite.call(this,new Uint8Array(Number(t)))}blockingWriteZeroesAndFlush(t){this.blockingWriteAndFlush.call(this,new Uint8Array(Number(t)))}splice(t,e){const r=Math.min(e,this.checkWrite.call(this)),s=t.read(r);return this.write.call(this,s),s.byteLength}blockingSplice(t,e){console.log(`[streams] Blocking splice ${this.id}`)}forward(t){console.log(`[streams] Forward ${this.id}`)}subscribe(){return console.log(`[streams] Subscribe to output stream ${this.id}`),new o}[i](){}}};class o{}},6015(t,e,r){r.d(e,{yT:()=>a});const s=65536;let i,n;const a={getRandomBytes(t){const e=new Uint8Array(Number(t));if(t>s)for(var r=0;r<t;r+=s)crypto.getRandomValues(e.subarray(r,r+s));else crypto.getRandomValues(e);return e},getRandomU64:()=>crypto.getRandomValues(new BigUint64Array(1))[0],insecureRandom:()=>(void 0===i&&(i=a.getRandomU64(),n=a.getRandomU64()),[i,n])}},8683(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$ge:()=>i.$ge,$rk:()=>i.$rk,BIR:()=>i.BIR,BdE:()=>i.BdE,Cp:()=>i.Cp,D7j:()=>i.D7j,Ddx:()=>i.Ddx,Evn:()=>i.Evn,GoE:()=>i.GoE,Gpj:()=>i.Gpj,HdO:()=>i.HdO,HwF:()=>i.HwF,IAp:()=>i.IAp,Iy0:()=>i.Iy0,J4F:()=>i.J4F,JOu:()=>i.JOu,JXG:()=>i.JXG,Jxp:()=>i.Jxp,KO$:()=>i.KO$,Ke0:()=>i.Ke0,KfV:()=>i.KfV,Kx2:()=>i.Kx2,Kyi:()=>i.Kyi,LWj:()=>i.LWj,Mk:()=>i.Mk,Mmb:()=>i.Mmb,N$9:()=>i.N$9,NM3:()=>i.NM3,Nv1:()=>i.Nv1,OKT:()=>i.OKT,OXe:()=>i.OXe,P3w:()=>i.P3w,P4c:()=>i.P4c,Q2m:()=>i.Q2m,Qrp:()=>i.Qrp,Qy6:()=>i.Qy6,RCX:()=>i.RCX,RKz:()=>i.RKz,Rbz:()=>i.Rbz,RrN:()=>i.RrN,TZT:()=>i.TZT,V34:()=>i.V34,VG:()=>i.VG,VZT:()=>i.VZT,Wgi:()=>i.Wgi,XwB:()=>i.XwB,Ya3:()=>i.Ya3,ZCC:()=>i.ZCC,ZOq:()=>i.ZOq,Zd1:()=>i.Zd1,Zeo:()=>i.Zeo,Zm3:()=>i.Zm3,_U4:()=>i._U4,_Y1:()=>i._Y1,a1h:()=>i.a1h,aez:()=>i.aez,bUO:()=>i.bUO,bbA:()=>i.bbA,chs:()=>i.chs,d6v:()=>i.d6v,dMb:()=>i.dMb,dst:()=>i.dst,eBw:()=>i.eBw,ePz:()=>i.ePz,em6:()=>i.em6,emu:()=>i.emu,fOI:()=>i.fOI,fhq:()=>i.fhq,gH0:()=>i.gH0,gHf:()=>i.gHf,gPA:()=>i.gPA,grs:()=>i.grs,h7v:()=>i.h7v,hXl:()=>i.hXl,i7X:()=>i.i7X,iRq:()=>i.iRq,iiK:()=>i.iiK,jAT:()=>i.jAT,jqW:()=>i.jqW,jy0:()=>i.jy0,jy1:()=>i.jy1,kAK:()=>i.kAK,lBC:()=>i.lBC,nWe:()=>i.nWe,oMV:()=>i.oMV,oVh:()=>i.oVh,pMj:()=>i.pMj,pOL:()=>i.pOL,pT:()=>i.pT,peC:()=>i.peC,qV6:()=>i.qV6,rNJ:()=>i.rNJ,s2A:()=>i.s2A,tt2:()=>i.tt2,u6S:()=>i.u6S,ulb:()=>i.ulb,unr:()=>i.unr,vSB:()=>i.vSB,wyV:()=>i.wyV,x7K:()=>i.x7K,xu3:()=>i.xu3,xvE:()=>i.xvE,yuy:()=>i.yuy,zFc:()=>i.zFc,zSR:()=>i.zSR,zac:()=>i.zac,zc0:()=>i.zc0,zxr:()=>i.zxr});var i=r(6045),n=t([i]),a=n.then?(await n)():n;i=a[0],s()}catch(t){s(t)}})},6045(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$ge:()=>tr,$rk:()=>oe,BIR:()=>p,BdE:()=>$t,Cp:()=>dr,D7j:()=>ve,Ddx:()=>ns,Evn:()=>ct,GoE:()=>d,Gpj:()=>Ee,HdO:()=>Et,HwF:()=>Rt,IAp:()=>_t,Iy0:()=>ht,J4F:()=>C,JOu:()=>A,JXG:()=>Mt,Jxp:()=>Ut,KO$:()=>xr,Ke0:()=>v,KfV:()=>Ot,Kx2:()=>c,Kyi:()=>qr,LWj:()=>ur,Mk:()=>o,Mmb:()=>le,N$9:()=>y,NM3:()=>ke,Nv1:()=>xe,OKT:()=>pe,OXe:()=>hr,P3w:()=>K,P4c:()=>Mr,Q2m:()=>be,Qrp:()=>lt,Qy6:()=>Zt,RCX:()=>S,RKz:()=>rt,Rbz:()=>Ft,RrN:()=>f,TZT:()=>Nt,V34:()=>Jt,VG:()=>Tt,VZT:()=>Ae,Wgi:()=>P,XwB:()=>zt,Ya3:()=>l,ZCC:()=>mt,ZOq:()=>L,Zd1:()=>se,Zeo:()=>Fr,Zm3:()=>Yt,_U4:()=>ft,_Y1:()=>Ht,a1h:()=>_e,aez:()=>dt,bUO:()=>ie,bbA:()=>Se,chs:()=>St,d6v:()=>Te,dMb:()=>st,dst:()=>jt,eBw:()=>ot,ePz:()=>T,em6:()=>J,emu:()=>It,fOI:()=>ge,fhq:()=>et,gH0:()=>ae,gHf:()=>Dt,gPA:()=>he,grs:()=>Bt,h7v:()=>wr,hXl:()=>u,i7X:()=>hs,iRq:()=>yt,iiK:()=>Lt,jAT:()=>h,jqW:()=>ce,jy0:()=>Gt,jy1:()=>re,kAK:()=>Kt,lBC:()=>F,nWe:()=>Wt,oMV:()=>B,oVh:()=>R,pMj:()=>m,pOL:()=>Re,pT:()=>H,peC:()=>vt,qV6:()=>g,rNJ:()=>b,s2A:()=>V,tt2:()=>Pt,u6S:()=>qt,ulb:()=>j,unr:()=>G,vSB:()=>wt,wyV:()=>z,x7K:()=>kt,xu3:()=>ye,xvE:()=>bt,yuy:()=>N,zFc:()=>Q,zSR:()=>Vt,zac:()=>O,zc0:()=>Xt,zxr:()=>$});var i=r(1901),n=r(8269),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{members:new vr(t)}}),ds(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new Le(e),semicolon:r}}),ds(this.cst.kind,n.q3.PragmaDirective)}get pragmaKeyword(){return this.fetch().pragmaKeyword}get pragma(){return this.fetch().pragma}get semicolon(){return this.fetch().semicolon}}class l{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:new Ie(e)}}),ds(this.cst.kind,n.q3.AbicoderPragma)}get abicoderKeyword(){return this.fetch().abicoderKeyword}get version(){return this.fetch().version}}class h{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new Ke(e)}}),ds(this.cst.kind,n.q3.ExperimentalPragma)}get experimentalKeyword(){return this.fetch().experimentalKeyword}get feature(){return this.fetch().feature}}class u{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new Vr(e)}}),ds(this.cst.kind,n.q3.VersionPragma)}get solidityKeyword(){return this.fetch().solidityKeyword}get sets(){return this.fetch().sets}}class d{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{start:new De(t),minus:e,end:new De(r)}}),ds(this.cst.kind,n.q3.VersionRange)}get start(){return this.fetch().start}get minus(){return this.fetch().minus}get end(){return this.fetch().end}}class p{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===t?void 0:new Oe(t),literal:new De(e)}}),ds(this.cst.kind,n.q3.VersionTerm)}get operator(){return this.fetch().operator}get literal(){return this.fetch().literal}}class m{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:t,clause:new Pe(e),semicolon:r}}),ds(this.cst.kind,n.q3.ImportDirective)}get importKeyword(){return this.fetch().importKeyword}get clause(){return this.fetch().clause}get semicolon(){return this.fetch().semicolon}}class y{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{path:new ur(t),alias:void 0===e?void 0:new x(e)}}),ds(this.cst.kind,n.q3.PathImport)}get path(){return this.fetch().path}get alias(){return this.fetch().alias}}class f{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:t,alias:new x(e),fromKeyword:r,path:new ur(s)}}),ds(this.cst.kind,n.q3.NamedImport)}get asterisk(){return this.fetch().asterisk}get alias(){return this.fetch().alias}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class g{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Br(e),closeBrace:r,fromKeyword:s,path:new ur(n)}}),ds(this.cst.kind,n.q3.ImportDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class w{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:t,alias:void 0===e?void 0:new x(e)}}),ds(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class x{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,identifier:e}}),ds(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class v{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{usingKeyword:t,clause:new qe(e),forKeyword:r,target:new Fe(s),globalKeyword:void 0===n?void 0:n,semicolon:a}}),ds(this.cst.kind,n.q3.UsingDirective)}get usingKeyword(){return this.fetch().usingKeyword}get clause(){return this.fetch().clause}get forKeyword(){return this.fetch().forKeyword}get target(){return this.fetch().target}get globalKeyword(){return this.fetch().globalKeyword}get semicolon(){return this.fetch().semicolon}}class b{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Hr(e),closeBrace:r}}),ds(this.cst.kind,n.q3.UsingDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}}class _{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ns(t),alias:void 0===e?void 0:new E(e)}}),ds(this.cst.kind,n.q3.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class E{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,operator:new Me(e)}}),ds(this.cst.kind,n.q3.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}}class T{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{abstractKeyword:void 0===t?void 0:t,contractKeyword:e,name:r,specifiers:new _r(s),openBrace:n,members:new Er(a),closeBrace:o}}),ds(this.cst.kind,n.q3.ContractDefinition)}get abstractKeyword(){return this.fetch().abstractKeyword}get contractKeyword(){return this.fetch().contractKeyword}get name(){return this.fetch().name}get specifiers(){return this.fetch().specifiers}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class S{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:t,types:new $r(e)}}),ds(this.cst.kind,n.q3.InheritanceSpecifier)}get isKeyword(){return this.fetch().isKeyword}get types(){return this.fetch().types}}class k{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ns(t),arguments:void 0===e?void 0:new cr(e)}}),ds(this.cst.kind,n.q3.InheritanceType)}get typeName(){return this.fetch().typeName}get arguments(){return this.fetch().arguments}}class R{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{layoutKeyword:t,atKeyword:e,expression:new or(r)}}),ds(this.cst.kind,n.q3.StorageLayoutSpecifier)}get layoutKeyword(){return this.fetch().layoutKeyword}get atKeyword(){return this.fetch().atKeyword}get expression(){return this.fetch().expression}}class A{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{interfaceKeyword:t,name:e,inheritance:void 0===r?void 0:new S(r),openBrace:s,members:new Tr(n),closeBrace:a}}),ds(this.cst.kind,n.q3.InterfaceDefinition)}get interfaceKeyword(){return this.fetch().interfaceKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class C{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:t,name:e,openBrace:r,members:new Sr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.LibraryDefinition)}get libraryKeyword(){return this.fetch().libraryKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class L{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:t,name:e,openBrace:r,members:new kr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.StructDefinition)}get structKeyword(){return this.fetch().structKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class I{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),name:e,semicolon:r}}),ds(this.cst.kind,n.q3.StructMember)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}get semicolon(){return this.fetch().semicolon}}class K{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{enumKeyword:t,name:e,openBrace:r,members:new Gr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.EnumDefinition)}get enumKeyword(){return this.fetch().enumKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class N{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),constantKeyword:e,name:r,equal:s,value:new or(n),semicolon:a}}),ds(this.cst.kind,n.q3.ConstantDefinition)}get typeName(){return this.fetch().typeName}get constantKeyword(){return this.fetch().constantKeyword}get name(){return this.fetch().name}get equal(){return this.fetch().equal}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class O{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),attributes:new Rr(e),name:r,value:void 0===s?void 0:new D(s),semicolon:n}}),ds(this.cst.kind,n.q3.StateVariableDefinition)}get typeName(){return this.fetch().typeName}get attributes(){return this.fetch().attributes}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class D{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,value:new or(e)}}),ds(this.cst.kind,n.q3.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}}class P{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:new je(e),parameters:new q(r),attributes:new Ar(s),returns:void 0===n?void 0:new Y(n),body:new He(a)}}),ds(this.cst.kind,n.q3.FunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class q{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new zr(e),closeParen:r}}),ds(this.cst.kind,n.q3.ParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class M{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),storageLocation:void 0===e?void 0:new ir(e),name:void 0===r?void 0:r}}),ds(this.cst.kind,n.q3.Parameter)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class F{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:void 0===e?void 0:new U(e)}}),ds(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class U{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,paths:new Wr(e),closeParen:r}}),ds(this.cst.kind,n.q3.OverridePathsDeclaration)}get openParen(){return this.fetch().openParen}get paths(){return this.fetch().paths}get closeParen(){return this.fetch().closeParen}}class Y{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new q(e)}}),ds(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class V{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new q(e),attributes:new Cr(r),body:new ot(s)}}),ds(this.cst.kind,n.q3.ConstructorDefinition)}get constructorKeyword(){return this.fetch().constructorKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class j{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new q(e),attributes:new Lr(r),body:new He(s)}}),ds(this.cst.kind,n.q3.UnnamedFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class B{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new q(e),attributes:new Ir(r),returns:void 0===s?void 0:new Y(s),body:new He(n)}}),ds(this.cst.kind,n.q3.FallbackFunctionDefinition)}get fallbackKeyword(){return this.fetch().fallbackKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class H{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new q(e),attributes:new Kr(r),body:new He(s)}}),ds(this.cst.kind,n.q3.ReceiveFunctionDefinition)}get receiveKeyword(){return this.fetch().receiveKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class ${constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{modifierKeyword:t,name:e,parameters:void 0===r?void 0:new q(r),attributes:new Nr(s),body:new He(n)}}),ds(this.cst.kind,n.q3.ModifierDefinition)}get modifierKeyword(){return this.fetch().modifierKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class G{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ns(t),arguments:void 0===e?void 0:new cr(e)}}),ds(this.cst.kind,n.q3.ModifierInvocation)}get name(){return this.fetch().name}get arguments(){return this.fetch().arguments}}class z{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{eventKeyword:t,name:e,parameters:new W(r),anonymousKeyword:void 0===s?void 0:s,semicolon:n}}),ds(this.cst.kind,n.q3.EventDefinition)}get eventKeyword(){return this.fetch().eventKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get anonymousKeyword(){return this.fetch().anonymousKeyword}get semicolon(){return this.fetch().semicolon}}class W{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Xr(e),closeParen:r}}),ds(this.cst.kind,n.q3.EventParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class X{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),indexedKeyword:void 0===e?void 0:e,name:void 0===r?void 0:r}}),ds(this.cst.kind,n.q3.EventParameter)}get typeName(){return this.fetch().typeName}get indexedKeyword(){return this.fetch().indexedKeyword}get name(){return this.fetch().name}}class Q{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,name:e,isKeyword:r,valueType:new tr(s),semicolon:n}}),ds(this.cst.kind,n.q3.UserDefinedValueTypeDefinition)}get typeKeyword(){return this.fetch().typeKeyword}get name(){return this.fetch().name}get isKeyword(){return this.fetch().isKeyword}get valueType(){return this.fetch().valueType}get semicolon(){return this.fetch().semicolon}}class J{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:t,name:e,members:new Z(r),semicolon:s}}),ds(this.cst.kind,n.q3.ErrorDefinition)}get errorKeyword(){return this.fetch().errorKeyword}get name(){return this.fetch().name}get members(){return this.fetch().members}get semicolon(){return this.fetch().semicolon}}class Z{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Qr(e),closeParen:r}}),ds(this.cst.kind,n.q3.ErrorParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class tt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),name:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class et{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new Qe(t),openBracket:e,index:void 0===r?void 0:new or(r),closeBracket:s}}),ds(this.cst.kind,n.q3.ArrayTypeName)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get index(){return this.fetch().index}get closeBracket(){return this.fetch().closeBracket}}class rt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new q(e),attributes:new Or(r),returns:void 0===s?void 0:new Y(s)}}),ds(this.cst.kind,n.q3.FunctionType)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}}class st{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{mappingKeyword:t,openParen:e,keyType:new it(r),equalGreaterThan:s,valueType:new nt(n),closeParen:a}}),ds(this.cst.kind,n.q3.MappingType)}get mappingKeyword(){return this.fetch().mappingKeyword}get openParen(){return this.fetch().openParen}get keyType(){return this.fetch().keyType}get equalGreaterThan(){return this.fetch().equalGreaterThan}get valueType(){return this.fetch().valueType}get closeParen(){return this.fetch().closeParen}}class it{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{keyType:new Ze(t),name:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}}class nt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),name:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class at{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}}class ot{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Dr(e),closeBrace:r}}),ds(this.cst.kind,n.q3.Block)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class ct{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new ot(e)}}),ds(this.cst.kind,n.q3.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}}class lt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{expression:new or(t),semicolon:e}}),ds(this.cst.kind,n.q3.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class ht{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{assemblyKeyword:t,label:void 0===e?void 0:new ur(e),flags:void 0===r?void 0:new ut(r),body:new le(s)}}),ds(this.cst.kind,n.q3.AssemblyStatement)}get assemblyKeyword(){return this.fetch().assemblyKeyword}get label(){return this.fetch().label}get flags(){return this.fetch().flags}get body(){return this.fetch().body}}class ut{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,flags:new Jr(e),closeParen:r}}),ds(this.cst.kind,n.q3.AssemblyFlagsDeclaration)}get openParen(){return this.fetch().openParen}get flags(){return this.fetch().flags}get closeParen(){return this.fetch().closeParen}}class dt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{varKeyword:void 0===t?void 0:t,openParen:e,elements:new Zr(r),closeParen:s,equal:n,expression:new or(a),semicolon:o}}),ds(this.cst.kind,n.q3.TupleDeconstructionStatement)}get varKeyword(){return this.fetch().varKeyword}get openParen(){return this.fetch().openParen}get elements(){return this.fetch().elements}get closeParen(){return this.fetch().closeParen}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class pt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===t?void 0:new rr(t)}}),ds(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class mt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),storageLocation:void 0===e?void 0:new ir(e),name:r}}),ds(this.cst.kind,n.q3.TypedTupleMember)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class yt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===t?void 0:new ir(t),name:e}}),ds(this.cst.kind,n.q3.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class ft{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{variableType:new sr(t),storageLocation:void 0===e?void 0:new ir(e),name:r,value:void 0===s?void 0:new gt(s),semicolon:n}}),ds(this.cst.kind,n.q3.VariableDeclarationStatement)}get variableType(){return this.fetch().variableType}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class gt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,expression:new or(e)}}),ds(this.cst.kind,n.q3.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}}class wt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,openParen:e,condition:new or(r),closeParen:s,body:new er(n),elseBranch:void 0===a?void 0:new xt(a)}}),ds(this.cst.kind,n.q3.IfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}get elseBranch(){return this.fetch().elseBranch}}class xt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:t,body:new er(e)}}),ds(this.cst.kind,n.q3.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}}class vt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,openParen:e,initialization:new nr(r),condition:new ar(s),iterator:void 0===n?void 0:new or(n),closeParen:a,body:new er(o)}}),ds(this.cst.kind,n.q3.ForStatement)}get forKeyword(){return this.fetch().forKeyword}get openParen(){return this.fetch().openParen}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class bt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{whileKeyword:t,openParen:e,condition:new or(r),closeParen:s,body:new er(n)}}),ds(this.cst.kind,n.q3.WhileStatement)}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class _t{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{doKeyword:t,body:new er(e),whileKeyword:r,openParen:s,condition:new or(n),closeParen:a,semicolon:o}}),ds(this.cst.kind,n.q3.DoWhileStatement)}get doKeyword(){return this.fetch().doKeyword}get body(){return this.fetch().body}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get semicolon(){return this.fetch().semicolon}}class Et{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:e}}),ds(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Tt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:e}}),ds(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class St{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:t,expression:void 0===e?void 0:new or(e),semicolon:r}}),ds(this.cst.kind,n.q3.ReturnStatement)}get returnKeyword(){return this.fetch().returnKeyword}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class kt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:t,event:new ns(e),arguments:new cr(r),semicolon:s}}),ds(this.cst.kind,n.q3.EmitStatement)}get emitKeyword(){return this.fetch().emitKeyword}get event(){return this.fetch().event}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class Rt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{tryKeyword:t,expression:new or(e),returns:void 0===r?void 0:new Y(r),body:new ot(s),catchClauses:new Pr(n)}}),ds(this.cst.kind,n.q3.TryStatement)}get tryKeyword(){return this.fetch().tryKeyword}get expression(){return this.fetch().expression}get returns(){return this.fetch().returns}get body(){return this.fetch().body}get catchClauses(){return this.fetch().catchClauses}}class At{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{catchKeyword:t,error:void 0===e?void 0:new Ct(e),body:new ot(r)}}),ds(this.cst.kind,n.q3.CatchClause)}get catchKeyword(){return this.fetch().catchKeyword}get error(){return this.fetch().error}get body(){return this.fetch().body}}class Ct{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===t?void 0:t,parameters:new q(e)}}),ds(this.cst.kind,n.q3.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}}class Lt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:t,error:new ns(e),arguments:new cr(r),semicolon:s}}),ds(this.cst.kind,n.q3.RevertStatement)}get revertKeyword(){return this.fetch().revertKeyword}get error(){return this.fetch().error}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class It{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:e}}),ds(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class Kt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AssignmentExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Nt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),questionMark:e,trueExpression:new or(r),colon:s,falseExpression:new or(n)}}),ds(this.cst.kind,n.q3.ConditionalExpression)}get operand(){return this.fetch().operand}get questionMark(){return this.fetch().questionMark}get trueExpression(){return this.fetch().trueExpression}get colon(){return this.fetch().colon}get falseExpression(){return this.fetch().falseExpression}}class Ot{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.OrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Dt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Pt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.EqualityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class qt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.InequalityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Mt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseOrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ft{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseXorExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ut{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseAndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Yt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.ShiftExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Vt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AdditiveExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class jt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.MultiplicativeExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Bt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.ExponentiationExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ht{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),operator:e}}),ds(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class $t{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:t,operand:new or(e)}}),ds(this.cst.kind,n.q3.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}}class Gt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),arguments:new cr(e)}}),ds(this.cst.kind,n.q3.FunctionCallExpression)}get operand(){return this.fetch().operand}get arguments(){return this.fetch().arguments}}class zt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),openBrace:e,options:new rs(r),closeBrace:s}}),ds(this.cst.kind,n.q3.CallOptionsExpression)}get operand(){return this.fetch().operand}get openBrace(){return this.fetch().openBrace}get options(){return this.fetch().options}get closeBrace(){return this.fetch().closeBrace}}class Wt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),period:e,member:r}}),ds(this.cst.kind,n.q3.MemberAccessExpression)}get operand(){return this.fetch().operand}get period(){return this.fetch().period}get member(){return this.fetch().member}}class Xt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),openBracket:e,start:void 0===r?void 0:new or(r),end:void 0===s?void 0:new Qt(s),closeBracket:n}}),ds(this.cst.kind,n.q3.IndexAccessExpression)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get start(){return this.fetch().start}get end(){return this.fetch().end}get closeBracket(){return this.fetch().closeBracket}}class Qt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,end:void 0===e?void 0:new or(e)}}),ds(this.cst.kind,n.q3.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}}class Jt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:new ts(e),closeParen:r}}),ds(this.cst.kind,n.q3.PositionalArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Zt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:void 0===e?void 0:new te(e),closeParen:r}}),ds(this.cst.kind,n.q3.NamedArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class te{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,arguments:new es(e),closeBrace:r}}),ds(this.cst.kind,n.q3.NamedArgumentGroup)}get openBrace(){return this.fetch().openBrace}get arguments(){return this.fetch().arguments}get closeBrace(){return this.fetch().closeBrace}}class ee{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{name:t,colon:e,value:new or(r)}}),ds(this.cst.kind,n.q3.NamedArgument)}get name(){return this.fetch().name}get colon(){return this.fetch().colon}get value(){return this.fetch().value}}class re{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:e,typeName:new Qe(r),closeParen:s}}),ds(this.cst.kind,n.q3.TypeExpression)}get typeKeyword(){return this.fetch().typeKeyword}get openParen(){return this.fetch().openParen}get typeName(){return this.fetch().typeName}get closeParen(){return this.fetch().closeParen}}class se{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new Qe(e)}}),ds(this.cst.kind,n.q3.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}}class ie{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,items:new ss(e),closeParen:r}}),ds(this.cst.kind,n.q3.TupleExpression)}get openParen(){return this.fetch().openParen}get items(){return this.fetch().items}get closeParen(){return this.fetch().closeParen}}class ne{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===t?void 0:new or(t)}}),ds(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class ae{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:t,items:new is(e),closeBracket:r}}),ds(this.cst.kind,n.q3.ArrayExpression)}get openBracket(){return this.fetch().openBracket}get items(){return this.fetch().items}get closeBracket(){return this.fetch().closeBracket}}class oe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new lr(e)}}),ds(this.cst.kind,n.q3.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class ce{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new lr(e)}}),ds(this.cst.kind,n.q3.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class le{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Ur(e),closeBrace:r}}),ds(this.cst.kind,n.q3.YulBlock)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class he{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:e,parameters:new ue(r),returns:void 0===s?void 0:new de(s),body:new le(n)}}),ds(this.cst.kind,n.q3.YulFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class ue{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new as(e),closeParen:r}}),ds(this.cst.kind,n.q3.YulParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class de{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new os(e)}}),ds(this.cst.kind,n.q3.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}}class pe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:t,variables:new os(e),value:void 0===r?void 0:new me(r)}}),ds(this.cst.kind,n.q3.YulVariableDeclarationStatement)}get letKeyword(){return this.fetch().letKeyword}get variables(){return this.fetch().variables}get value(){return this.fetch().value}}class me{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new yr(t),expression:new wr(e)}}),ds(this.cst.kind,n.q3.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class ye{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new ls(t),assignment:new yr(e),expression:new wr(r)}}),ds(this.cst.kind,n.q3.YulVariableAssignmentStatement)}get variables(){return this.fetch().variables}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class fe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,equal:e}}),ds(this.cst.kind,n.q3.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}}class ge{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new fr(t),variable:e}}),ds(this.cst.kind,n.q3.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}}class we{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,colon:e}}),ds(this.cst.kind,n.q3.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}}class xe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new wr(e),body:new le(r)}}),ds(this.cst.kind,n.q3.YulIfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get condition(){return this.fetch().condition}get body(){return this.fetch().body}}class ve{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,initialization:new le(e),condition:new wr(r),iterator:new le(s),body:new le(n)}}),ds(this.cst.kind,n.q3.YulForStatement)}get forKeyword(){return this.fetch().forKeyword}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get body(){return this.fetch().body}}class be{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new wr(e),cases:new Yr(r)}}),ds(this.cst.kind,n.q3.YulSwitchStatement)}get switchKeyword(){return this.fetch().switchKeyword}get expression(){return this.fetch().expression}get cases(){return this.fetch().cases}}class _e{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new le(e)}}),ds(this.cst.kind,n.q3.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}}class Ee{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:t,value:new xr(e),body:new le(r)}}),ds(this.cst.kind,n.q3.YulValueCase)}get caseKeyword(){return this.fetch().caseKeyword}get value(){return this.fetch().value}get body(){return this.fetch().body}}class Te{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:t}}),ds(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class Se{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t}}),ds(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class ke{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t}}),ds(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class Re{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{label:t,colon:e}}),ds(this.cst.kind,n.q3.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}}class Ae{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new wr(t),openParen:e,arguments:new cs(r),closeParen:s}}),ds(this.cst.kind,n.q3.YulFunctionCallExpression)}get operand(){return this.fetch().operand}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Ce{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PragmaDirective:return new c(t);case n.q3.ImportDirective:return new m(t);case n.q3.ContractDefinition:return new T(t);case n.q3.InterfaceDefinition:return new A(t);case n.q3.LibraryDefinition:return new C(t);case n.q3.StructDefinition:return new L(t);case n.q3.EnumDefinition:return new K(t);case n.q3.FunctionDefinition:return new P(t);case n.q3.ErrorDefinition:return new J(t);case n.q3.UserDefinedValueTypeDefinition:return new Q(t);case n.q3.UsingDirective:return new v(t);case n.q3.EventDefinition:return new z(t);case n.q3.ConstantDefinition:return new N(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Le{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.VersionPragma:return new u(t);case n.q3.AbicoderPragma:return new l(t);case n.q3.ExperimentalPragma:return new h(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Ie{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.AbicoderVersion)}get variant(){return this.fetch()}}class Ke{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.StringLiteral)return new ur(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Ne{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.VersionRange:return new d(t);case n.q3.VersionTerm:return new p(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Oe{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class De{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.SimpleVersionLiteral)return new jr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class Pe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PathImport:return new y(t);case n.q3.NamedImport:return new f(t);case n.q3.ImportDeconstruction:return new g(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class qe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IdentifierPath:return new ns(t);case n.q3.UsingDeconstruction:return new b(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class Me{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class Fe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new Qe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Ue{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.InheritanceSpecifier:return new S(t);case n.q3.StorageLayoutSpecifier:return new R(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ContractSpecifier)}get variant(){return this.fetch()}}class Ye{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.UsingDirective:return new v(t);case n.q3.FunctionDefinition:return new P(t);case n.q3.ConstructorDefinition:return new V(t);case n.q3.ReceiveFunctionDefinition:return new H(t);case n.q3.FallbackFunctionDefinition:return new B(t);case n.q3.UnnamedFunctionDefinition:return new j(t);case n.q3.ModifierDefinition:return new $(t);case n.q3.StructDefinition:return new L(t);case n.q3.EnumDefinition:return new K(t);case n.q3.EventDefinition:return new z(t);case n.q3.ErrorDefinition:return new J(t);case n.q3.UserDefinedValueTypeDefinition:return new Q(t);case n.q3.StateVariableDefinition:return new O(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Ve{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new F(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class je{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class Be{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new G(t);case n.q3.OverrideSpecifier:return new F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class He{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.Block)return new ot(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class $e{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new G(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class Ge{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new G(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class ze{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new G(t);case n.q3.OverrideSpecifier:return new F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class We{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new G(t);case n.q3.OverrideSpecifier:return new F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class Xe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new F(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class Qe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ArrayTypeName:return new et(t);case n.q3.FunctionType:return new rt(t);case n.q3.MappingType:return new st(t);case n.q3.ElementaryType:return new tr(t);case n.q3.IdentifierPath:return new ns(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class Je{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class Ze{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ElementaryType:return new tr(t);case n.q3.IdentifierPath:return new ns(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class tr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.AddressType)return new at(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class er{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IfStatement:return new wt(t);case n.q3.ForStatement:return new vt(t);case n.q3.WhileStatement:return new bt(t);case n.q3.DoWhileStatement:return new _t(t);case n.q3.ContinueStatement:return new Et(t);case n.q3.BreakStatement:return new Tt(t);case n.q3.ReturnStatement:return new St(t);case n.q3.ThrowStatement:return new It(t);case n.q3.EmitStatement:return new kt(t);case n.q3.TryStatement:return new Rt(t);case n.q3.RevertStatement:return new Lt(t);case n.q3.AssemblyStatement:return new ht(t);case n.q3.Block:return new ot(t);case n.q3.UncheckedBlock:return new ct(t);case n.q3.TupleDeconstructionStatement:return new dt(t);case n.q3.VariableDeclarationStatement:return new ft(t);case n.q3.ExpressionStatement:return new lt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class rr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.TypedTupleMember:return new mt(t);case n.q3.UntypedTupleMember:return new yt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class sr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new Qe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class ir{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class nr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.TupleDeconstructionStatement:return new dt(t);case n.q3.VariableDeclarationStatement:return new ft(t);case n.q3.ExpressionStatement:return new lt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class ar{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ExpressionStatement)return new lt(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class or{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.AssignmentExpression:return new Kt(t);case n.q3.ConditionalExpression:return new Nt(t);case n.q3.OrExpression:return new Ot(t);case n.q3.AndExpression:return new Dt(t);case n.q3.EqualityExpression:return new Pt(t);case n.q3.InequalityExpression:return new qt(t);case n.q3.BitwiseOrExpression:return new Mt(t);case n.q3.BitwiseXorExpression:return new Ft(t);case n.q3.BitwiseAndExpression:return new Ut(t);case n.q3.ShiftExpression:return new Yt(t);case n.q3.AdditiveExpression:return new Vt(t);case n.q3.MultiplicativeExpression:return new jt(t);case n.q3.ExponentiationExpression:return new Bt(t);case n.q3.PostfixExpression:return new Ht(t);case n.q3.PrefixExpression:return new $t(t);case n.q3.FunctionCallExpression:return new Gt(t);case n.q3.CallOptionsExpression:return new zt(t);case n.q3.MemberAccessExpression:return new Wt(t);case n.q3.IndexAccessExpression:return new Xt(t);case n.q3.NewExpression:return new se(t);case n.q3.TupleExpression:return new ie(t);case n.q3.TypeExpression:return new re(t);case n.q3.ArrayExpression:return new ae(t);case n.q3.HexNumberExpression:return new oe(t);case n.q3.DecimalNumberExpression:return new ce(t);case n.q3.StringExpression:return new hr(t);case n.q3.ElementaryType:return new tr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class cr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PositionalArgumentsDeclaration:return new Jt(t);case n.q3.NamedArgumentsDeclaration:return new Zt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class lr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class hr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.StringLiteral:return new ur(t);case n.q3.StringLiterals:return new qr(t);case n.q3.HexStringLiteral:return new dr(t);case n.q3.HexStringLiterals:return new Mr(t);case n.q3.UnicodeStringLiterals:return new Fr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class ur{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class dr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class pr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class mr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulBlock:return new le(t);case n.q3.YulFunctionDefinition:return new he(t);case n.q3.YulStackAssignmentStatement:return new ge(t);case n.q3.YulIfStatement:return new xe(t);case n.q3.YulForStatement:return new ve(t);case n.q3.YulSwitchStatement:return new be(t);case n.q3.YulLeaveStatement:return new Te(t);case n.q3.YulBreakStatement:return new Se(t);case n.q3.YulContinueStatement:return new ke(t);case n.q3.YulVariableAssignmentStatement:return new ye(t);case n.q3.YulLabel:return new Re(t);case n.q3.YulVariableDeclarationStatement:return new pe(t);case n.q3.YulExpression:return new wr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class yr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulColonAndEqual)return new fe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class fr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulEqualAndColon)return new we(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class gr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulDefaultCase:return new _e(t);case n.q3.YulValueCase:return new Ee(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class wr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulFunctionCallExpression:return new Ae(t);case n.q3.YulLiteral:return new xr(t);case n.q3.YulPath:return new hs(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class xr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.HexStringLiteral:return new dr(t);case n.q3.StringLiteral:return new ur(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class vr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ce(t))),ds(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class br{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ne(t))),ds(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class _r{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ue(t))),ds(this.cst.kind,n.q3.ContractSpecifiers)}get items(){return this.fetch()}}class Er{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ye(t))),ds(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class Tr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ye(t))),ds(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class Sr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ye(t))),ds(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class kr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new I(t))),ds(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class Rr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ve(t))),ds(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class Ar{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Be(t))),ds(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Cr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new $e(t))),ds(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class Lr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ge(t))),ds(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Ir{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new ze(t))),ds(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Kr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new We(t))),ds(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Nr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Xe(t))),ds(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Or{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Je(t))),ds(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Dr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new er(t))),ds(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Pr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new At(t))),ds(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class qr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new ur(t))),ds(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class Mr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new dr(t))),ds(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class Fr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new pr(t))),ds(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Ur{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new mr(t))),ds(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class Yr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new gr(t))),ds(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Vr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new br(t)),separators:e}}),ds(this.cst.kind,n.q3.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class jr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new w(t)),separators:e}}),ds(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Hr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new _(t)),separators:e}}),ds(this.cst.kind,n.q3.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new k(t)),separators:e}}),ds(this.cst.kind,n.q3.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Gr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class zr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new M(t)),separators:e}}),ds(this.cst.kind,n.q3.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ns(t)),separators:e}}),ds(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Xr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new X(t)),separators:e}}),ds(this.cst.kind,n.q3.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new tt(t)),separators:e}}),ds(this.cst.kind,n.q3.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ur(t)),separators:e}}),ds(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new pt(t)),separators:e}}),ds(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new or(t)),separators:e}}),ds(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ee(t)),separators:e}}),ds(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ee(t)),separators:e}}),ds(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ne(t)),separators:e}}),ds(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new or(t)),separators:e}}),ds(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class os{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class cs{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new wr(t)),separators:e}}),ds(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ls{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new hs(t)),separators:e}}),ds(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class hs{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function us(t){let e;return()=>(void 0===e&&(e=t()),e)}function ds(t,e){if(t!==e)throw new Error(`AST node '${e}' can only be initialized with a CST node of the same kind. Received '${t}' instead.`)}s()}catch(ps){s(ps)}})},8520(t,e,r){r.a(t,async(t,e)=>{try{var s=r(8269),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(t)}})},5329(t,e,r){r.a(t,async(t,e)=>{try{var s=r(8269),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(t)}})},8269(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{di:()=>u,hP:()=>h,q3:()=>l,xo:()=>d});var i=r(1901),n=r(8520),a=r(5329),o=r(1596),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;const l=i.tQ.NonterminalKind,h=i.tQ.TerminalKind,u=i.tQ.TerminalKindExtensions,d=(i.tQ.EdgeLabel,i.tQ.NodeType,i.tQ.NonterminalNode,i.tQ.TerminalNode);i.tQ.Edge,i.tQ.Cursor,i.tQ.CursorIterator,i.tQ.AncestorsIterator,i.tQ.Query,i.tQ.QueryMatchIterator,i.tQ.TextIndexExtensions,s()}catch(t){s(t)}})},1596(t,e,r){r.a(t,async(t,e)=>{try{var s=r(8269),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(t)}})},5130(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseOutput,s()}catch(t){s(t)}})},3704(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).Wp.LanguageFacts;s()}catch(t){s(t)}})},1406(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K3:()=>Ri,Rj:()=>Si,Wp:()=>Ai,tQ:()=>ki});var i=r(8664),n=r(6190),a=r(9340),o=r(6015);const{getEnvironment:p}=i.cA,{exit:m}=i.NS,{getStderr:y}=i.vF,{getStdin:f}=i.bX,{getStdout:g}=i.Uo,{getDirectories:w}=n.jw,{Descriptor:x,filesystemErrorCode:v}=n.gK,{Error:b}=a.z3,{InputStream:_,OutputStream:E}=a.oS,{getRandomBytes:T}=o.yT;let S=[],k=new DataView(new ArrayBuffer);const R=t=>k.buffer===t.buffer?k:k=new DataView(t.buffer),A=()=>{},C="undefined"!=typeof process&&process.versions&&process.versions.node;let L;async function I(t){return C?(L=L||await Promise.resolve().then(r.bind(r,9031)),WebAssembly.compile(await L.readFile(t))):fetch(t).then(WebAssembly.compileStreaming)}function K(t){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(t)}function N(t){if(t&&D.call(t,"payload"))return t.payload;if(t instanceof Error)throw t;return t}const O=[],D=Object.prototype.hasOwnProperty,P=WebAssembly.instantiate,q=1<<30;function M(t,e){const r=t[0]&~q;return 0===r?(t.push(0),t.push(e|q),(t.length>>1)-1):(t[0]=t[r<<1],t[r<<1]=0,t[1+(r<<1)]=e|q,r)}function F(t,e){const r=t[e<<1],s=t[1+(e<<1)],i=0!==(s&q),n=s&~q;if(0===s||0!==(r&q))throw new TypeError("Invalid handle");return t[e<<1]=t[0]|q,t[0]=e|q,{rep:n,scope:r,own:i}}const U=Symbol.for("cabiDispose"),Y=Symbol("handle"),V=Symbol.for("cabiRep"),j=Symbol.dispose||Symbol.for("dispose"),B=t=>BigInt.asUintN(64,BigInt(t));function H(t){return t>>>0}const $=new TextDecoder,G=new TextEncoder;let z=0;function W(t,e,r){if("string"!=typeof t)throw new TypeError("expected a string");if(0===t.length)return z=0,1;let s=G.encode(t),i=e(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),z=s.length,i}const X=Symbol.for("nodejs.util.inspect.custom");let Q,J;const Z=[q,0],tt=new Map;let et=0;function rt(){const t=y();if(!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=M(Z,r)}return e}O[1]=Z;const st=[q,0],it=new Map;let nt,at,ot,ct=0;function lt(){const t=f();if(!(t instanceof _))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++ct;it.set(r,t),e=M(st,r)}return e}function ht(){const t=g();if(!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=M(Z,r)}return e}function ut(t){let e;e=t?{tag:"err",val:void 0}:{tag:"ok",val:void 0},m(e)}function dt(t){var e=p(),r=e.length,s=ot(0,0,4,16*r);for(let t=0;t<e.length;t++){const r=e[t],h=s+16*t;var[i,n]=r,a=W(i,ot,at),o=z;R(at).setInt32(h+4,o,!0),R(at).setInt32(h+0,a,!0);var c=W(n,ot,at),l=z;R(at).setInt32(h+12,l,!0),R(at).setInt32(h+8,c,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}O[2]=st;const pt=[q,0],mt=new Map;let yt=0;function ft(t,e,r){var s=t,i=pt[1+(s<<1)]&~q,n=mt.get(i);let a;n||(n=Object.create(x.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,V,{writable:!0,value:i})),S.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,e))}}catch(t){a={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var o=a;switch(o.tag){case"ok":{const t=o.val;if(R(at).setInt8(r+0,0,!0),!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=t[Y];if(!c){const e=t[V]||++et;tt.set(e,t),c=M(Z,e)}R(at).setInt32(r+4,c,!0);break}case"err":{const t=o.val;R(at).setInt8(r+0,1,!0);var l=t;let e;switch(l){case"access":e=0;break;case"would-block":e=1;break;case"already":e=2;break;case"bad-descriptor":e=3;break;case"busy":e=4;break;case"deadlock":e=5;break;case"quota":e=6;break;case"exist":e=7;break;case"file-too-large":e=8;break;case"illegal-byte-sequence":e=9;break;case"in-progress":e=10;break;case"interrupted":e=11;break;case"invalid":e=12;break;case"io":e=13;break;case"is-directory":e=14;break;case"loop":e=15;break;case"too-many-links":e=16;break;case"message-size":e=17;break;case"name-too-long":e=18;break;case"no-device":e=19;break;case"no-entry":e=20;break;case"no-lock":e=21;break;case"insufficient-memory":e=22;break;case"insufficient-space":e=23;break;case"not-directory":e=24;break;case"not-empty":e=25;break;case"not-recoverable":e=26;break;case"unsupported":e=27;break;case"no-tty":e=28;break;case"no-such-device":e=29;break;case"overflow":e=30;break;case"not-permitted":e=31;break;case"pipe":e=32;break;case"read-only":e=33;break;case"invalid-seek":e=34;break;case"text-file-busy":e=35;break;case"cross-device":e=36;break;default:throw new TypeError(`"${l}" is not one of the cases of error-code`)}R(at).setInt8(r+4,e,!0);break}default:throw new TypeError("invalid variant specified for result")}}function gt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;if(R(at).setInt8(e+0,0,!0),!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=t[Y];if(!o){const e=t[V]||++et;tt.set(e,t),o=M(Z,e)}R(at).setInt32(e+4,o,!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}R(at).setInt8(e+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function wt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.getType()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0);var o=t;let r;switch(o){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${o}" is not one of the cases of descriptor-type`)}R(at).setInt8(e+1,r,!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}R(at).setInt8(e+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function xt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.stat()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0);var{type:o,linkCount:c,size:l,dataAccessTimestamp:h,dataModificationTimestamp:u,statusChangeTimestamp:d}=t,p=o;let r;switch(p){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${p}" is not one of the cases of descriptor-type`)}R(at).setInt8(e+8,r,!0),R(at).setBigInt64(e+16,B(c),!0),R(at).setBigInt64(e+24,B(l),!0);var m=h;if(null==m)R(at).setInt8(e+32,0,!0);else{const t=m;R(at).setInt8(e+32,1,!0);var{seconds:y,nanoseconds:f}=t;R(at).setBigInt64(e+40,B(y),!0),R(at).setInt32(e+48,H(f),!0)}var g=u;if(null==g)R(at).setInt8(e+56,0,!0);else{const t=g;R(at).setInt8(e+56,1,!0);var{seconds:w,nanoseconds:v}=t;R(at).setBigInt64(e+64,B(w),!0),R(at).setInt32(e+72,H(v),!0)}var b=d;if(null==b)R(at).setInt8(e+80,0,!0);else{const t=b;R(at).setInt8(e+80,1,!0);var{seconds:_,nanoseconds:E}=t;R(at).setBigInt64(e+88,B(_),!0),R(at).setInt32(e+96,H(E),!0)}break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var T=t;let r;switch(T){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${T}" is not one of the cases of error-code`)}R(at).setInt8(e+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}O[3]=pt;const vt=[q,0],bt=new Map;let _t,Et,Tt,St,kt,Rt,At,Ct,Lt,It,Kt,Nt,Ot,Dt,Pt=0;function qt(t,e){var r=t,s=vt[1+(r<<1)]&~q,i=bt.get(s);i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);const n=v(i);for(const t of S)t[Y]=void 0;S=[];var a=n;if(null==a)R(at).setInt8(e+0,0,!0);else{const t=a;R(at).setInt8(e+0,1,!0);var o=t;let r;switch(o){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${o}" is not one of the cases of error-code`)}R(at).setInt8(e+1,r,!0)}}function Mt(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0),R(at).setBigInt64(e+8,B(t),!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+8,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++Pt;bt.set(e,t),c=M(vt,e)}R(at).setInt32(e+12,c,!0);break}case"closed":R(at).setInt8(e+8,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ft(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++Pt;bt.set(e,t),p=M(vt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ut(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++Pt;bt.set(e,t),p=M(vt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Yt(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":a.val,R(at).setInt8(e+0,0,!0);break;case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++Pt;bt.set(e,t),c=M(vt,e)}R(at).setInt32(e+8,c,!0);break}case"closed":R(at).setInt8(e+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Vt(t,e){var r=T(BigInt.asUintN(64,t)),s=r.byteLength,i=ot(0,0,1,1*s),n=new Uint8Array(r.buffer||r,r.byteOffset,1*s);new Uint8Array(at.buffer,i,1*s).set(n),R(at).setInt32(e+4,s,!0),R(at).setInt32(e+0,i,!0)}function jt(t){var e=w(),r=e.length,s=ot(0,0,4,12*r);for(let t=0;t<e.length;t++){const r=e[t],l=s+12*t;var[i,n]=r;if(!(i instanceof x))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const t=i[V]||++yt;mt.set(t,i),a=M(pt,t)}R(at).setInt32(l+0,a,!0);var o=W(n,ot,at),c=z;R(at).setInt32(l+8,c,!0),R(at).setInt32(l+4,o,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}O[0]=vt;class Bt{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}Bt.isIdentifier=function(t){return!!Nt(l[t])},Bt.isTrivia=function(t){return!!Ot(l[t])},Bt.isValid=function(t){return!!Dt(l[t])};const Ht=[q,0],$t=K(t=>{const{rep:e}=F(Ht,t);Q[20](e)});O[6]=Ht;const Gt=[q,0],zt=K(t=>{const{rep:e}=F(Gt,t);Q[18](e)});let Wt,Xt,Qt,Jt,Zt;O[4]=Gt;class te{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}te.prototype[X]=function(t,e,r){const s=Object.getPrototypeOf(this)[X];try{return delete Object.getPrototypeOf(this)[X],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[X]=s}},te.create=function(t,e){var r=e,s=r.length,i=Et(0,0,4,4*s);for(let t=0;t<r.length;t++){const e=r[t],s=i+4*t;var n=e[Y];if(!n)throw new TypeError('Resource error: Not a valid "Edge" resource.');$t.unregister(e),e[j]=A,e[Y]=void 0,R(at).setInt32(s+0,n,!0)}var a=Wt(c[t],i,s),o=new.target===te?this:Object.create(te.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),zt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){zt.unregister(o),F(Gt,a),o[j]=A,o[Y]=void 0,Q[18](Gt[1+(a<<1)]&~q)}}),o},Object.defineProperty(te.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;return Xt(e)>>>0}}),Object.defineProperty(te.prototype,"kind",{get:function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=Qt(e);return c[r]}}),Object.defineProperty(te.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=Jt(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),te.prototype.children=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=Zt(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$t.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$t.unregister(o),F(Ht,a),o[j]=A,o[Y]=void 0,Q[20](Ht[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c};const ee=[q,0],re=K(t=>{const{rep:e}=F(ee,t);Q[22](e)});let se,ie,ne;O[8]=ee,te.prototype.descendants=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q,r=se(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s},te.prototype.unparse=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=ie(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n},te.prototype.toJson=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=ne(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n};const ae=[q,0],oe=K(t=>{const{rep:e}=F(ae,t);Q[21](e)});let ce;O[7]=ae,te.prototype.createCursor=function(t){var e=this[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q,{utf8:s,utf16:i,line:n,column:a}=t,o=ce(r,H(s),H(i),H(n),H(a)),c=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),oe.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){oe.unregister(c),F(ae,o),c[j]=A,c[Y]=void 0,Q[21](ae[1+(o<<1)]&~q)}}),c};const le=[q,0],he=K(t=>{const{rep:e}=F(le,t);Q[19](e)});let ue,de,pe,me,ye,fe,ge,we,xe,ve,be,_e,Ee,Te,Se,ke,Re,Ae,Ce,Le,Ie,Ke,Ne,Oe,De;O[5]=le;class Pe{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}Pe.prototype[X]=function(t,e,r){const s=Object.getPrototypeOf(this)[X];try{return delete Object.getPrototypeOf(this)[X],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[X]=s}},Pe.create=function(t,e){var r=W(e,Et,at),s=z,i=ue(l[t],r,s),n=new.target===Pe?this:Object.create(Pe.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),he.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){he.unregister(n),F(le,i),n[j]=A,n[Y]=void 0,Q[19](le[1+(i<<1)]&~q)}}),n},Object.defineProperty(Pe.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;return de(e)>>>0}}),Object.defineProperty(Pe.prototype,"kind",{get:function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=pe(e);return l[r]}}),Object.defineProperty(Pe.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=me(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Pe.prototype.children=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=ye(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$t.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$t.unregister(o),F(Ht,a),o[j]=A,o[Y]=void 0,Q[20](Ht[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c},Pe.prototype.descendants=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q,r=fe(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s},Pe.prototype.unparse=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=ge(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n},Pe.prototype.toJson=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=we(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n};class qe{constructor(){throw new Error('"Edge" resource does not define a constructor')}}qe.createWithTerminal=function(t,e){var r=e[Y];if(!r)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');he.unregister(e),e[j]=A,e[Y]=void 0;var s=xe(h[t],r),i=new.target===qe?this:Object.create(qe.prototype);return Object.defineProperty(i,Y,{writable:!0,value:s}),$t.register(i,s,i),Object.defineProperty(i,j,{writable:!0,value:function(){$t.unregister(i),F(Ht,s),i[j]=A,i[Y]=void 0,Q[20](Ht[1+(s<<1)]&~q)}}),i},qe.createWithNonterminal=function(t,e){var r=e[Y];if(!r)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');zt.unregister(e),e[j]=A,e[Y]=void 0;var s=ve(h[t],r),i=new.target===qe?this:Object.create(qe.prototype);return Object.defineProperty(i,Y,{writable:!0,value:s}),$t.register(i,s,i),Object.defineProperty(i,j,{writable:!0,value:function(){$t.unregister(i),F(Ht,s),i[j]=A,i[Y]=void 0,Q[20](Ht[1+(s<<1)]&~q)}}),i},Object.defineProperty(qe.prototype,"label",{get:function(){var t=this[Y];if(!t||0===(Ht[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Edge" resource.');var e=Ht[1+(t<<1)]&~q;const r=be(e);return h[r]}}),Object.defineProperty(qe.prototype,"node",{get:function(){var t=this[Y];if(!t||0===(Ht[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Edge" resource.');var e=Ht[1+(t<<1)]&~q;const r=_e(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===te?this:Object.create(te.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),zt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){zt.unregister(n),F(Gt,i),n[j]=A,n[Y]=void 0,Q[18](Gt[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),he.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){he.unregister(o),F(le,a),o[j]=A,o[Y]=void 0,Q[19](le[1+(a<<1)]&~q)}}),s=o}return s}});class Me{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}Me.prototype.reset=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;Ee(e)},Me.prototype.complete=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;Te(e)},Me.prototype.isCompleted=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Se(e)},Me.prototype.clone=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=ke(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s},Me.prototype.spawn=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Re(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s},Object.defineProperty(Me.prototype,"node",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ae(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===te?this:Object.create(te.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),zt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){zt.unregister(n),F(Gt,i),n[j]=A,n[Y]=void 0,Q[18](Gt[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),he.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){he.unregister(o),F(le,a),o[j]=A,o[Y]=void 0,Q[19](le[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Me.prototype,"label",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ce(e);return h[r]}}),Object.defineProperty(Me.prototype,"textOffset",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Le(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(Me.prototype,"textRange",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ie(e);return{start:{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0},end:{utf8:R(at).getInt32(r+16,!0)>>>0,utf16:R(at).getInt32(r+20,!0)>>>0,line:R(at).getInt32(r+24,!0)>>>0,column:R(at).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Me.prototype,"depth",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return Ke(e)>>>0}}),Me.prototype.children=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ne(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$t.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$t.unregister(o),F(Ht,a),o[j]=A,o[Y]=void 0,Q[20](Ht[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c},Me.prototype.descendants=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Oe(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s},Me.prototype.remainingNodes=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=De(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s};const Fe=[q,0],Ue=K(t=>{const{rep:e}=F(Fe,t);Q[23](e)});let Ye,Ve,je,Be,He,$e,Ge,ze,We,Xe,Qe,Je,Ze,tr,er,rr;O[9]=Fe,Me.prototype.ancestors=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Ye(e),s=new.target===mr?this:Object.create(mr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ue.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Ue.unregister(s),F(Fe,r),s[j]=A,s[Y]=void 0,Q[23](Fe[1+(r<<1)]&~q)}}),s},Me.prototype.goToNext=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ve(e)},Me.prototype.goToNextNonDescendant=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!je(e)},Me.prototype.goToPrevious=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Be(e)},Me.prototype.goToParent=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!He(e)},Me.prototype.goToFirstChild=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!$e(e)},Me.prototype.goToLastChild=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ge(e)},Me.prototype.goToNthChild=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!ze(r,H(t))},Me.prototype.goToNextSibling=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!We(e)},Me.prototype.goToPreviousSibling=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Xe(e)},Me.prototype.goToNextTerminal=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Qe(e)},Me.prototype.goToNextTerminalWithKind=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Je(r,l[t])},Me.prototype.goToNextTerminalWithKinds=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=Et(0,0,2,2*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+2*t;R(at).setInt16(r+0,l[e],!0)}return!!Ze(r,n,i)},Me.prototype.goToNextNonterminal=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!tr(e)},Me.prototype.goToNextNonterminalWithKind=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!er(r,c[t])},Me.prototype.goToNextNonterminalWithKinds=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=Et(0,0,1,1*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+1*t;R(at).setInt8(r+0,c[e],!0)}return!!rr(r,n,i)};const sr=[q,0],ir=K(t=>{const{rep:e}=F(sr,t);Q[24](e)});O[10]=sr;const nr=[q,0],ar=K(t=>{const{rep:e}=F(nr,t);Q[25](e)});let or,cr,lr,hr,ur,dr;O[11]=nr,Me.prototype.query=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=Et(0,0,4,4*i);for(let t=0;t<s.length;t++){const e=n+4*t;var a=s[t][Y];if(!a||0===(sr[1+(a<<1)]&q))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=sr[1+(a<<1)]&~q;R(at).setInt32(e+0,o,!0)}var c=or(r,n,i),l=new.target===fr?this:Object.create(fr.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),ar.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){ar.unregister(l),F(nr,c),l[j]=A,l[Y]=void 0,Q[25](nr[1+(c<<1)]&~q)}}),l};class pr{constructor(){throw new Error('"CursorIterator" resource does not define a constructor')}}pr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},pr.prototype.next=function(){var t=this[Y];if(!t||0===(ee[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CursorIterator" resource.');var e=ee[1+(t<<1)]&~q;const r=cr(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),$t.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){$t.unregister(n),F(Ht,i),n[j]=A,n[Y]=void 0,Q[20](Ht[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class mr{constructor(){throw new Error('"AncestorsIterator" resource does not define a constructor')}}mr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},mr.prototype.next=function(){var t=this[Y];if(!t||0===(Fe[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "AncestorsIterator" resource.');var e=Fe[1+(t<<1)]&~q;const r=lr(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=new.target===te?this:Object.create(te.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),zt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){zt.unregister(n),F(Gt,i),n[j]=A,n[Y]=void 0,Q[18](Gt[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class yr{constructor(){throw new Error('"Query" resource does not define a constructor')}}yr.create=function(t){var e=W(t,Et,at);const r=hr(e,z);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:{message:$.decode(new Uint8Array(at.buffer,i,n)),textRange:{start:{utf8:R(at).getInt32(r+12,!0)>>>0,utf16:R(at).getInt32(r+16,!0)>>>0,line:R(at).getInt32(r+20,!0)>>>0,column:R(at).getInt32(r+24,!0)>>>0},end:{utf8:R(at).getInt32(r+28,!0)>>>0,utf16:R(at).getInt32(r+32,!0)>>>0,line:R(at).getInt32(r+36,!0)>>>0,column:R(at).getInt32(r+40,!0)>>>0}}}}}else{var a=R(at).getInt32(r+4,!0),o=new.target===yr?this:Object.create(yr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ir.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ir.unregister(o),F(sr,a),o[j]=A,o[Y]=void 0,Q[24](sr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val};class fr{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}fr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},fr.prototype.next=function(){var t=this[Y];if(!t||0===(nr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var e=nr[1+(t<<1)]&~q;const r=ur(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+8,!0),n=new.target===Me?this:Object.create(Me.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),oe.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){oe.unregister(n),F(ae,i),n[j]=A,n[Y]=void 0,Q[21](ae[1+(i<<1)]&~q)}});var a=R(at).getInt32(r+16,!0),o=R(at).getInt32(r+12,!0),c=[];for(let t=0;t<a;t++){const e=o+16*t;var l=R(at).getInt32(e+0,!0),h=R(at).getInt32(e+4,!0),u=$.decode(new Uint8Array(at.buffer,l,h)),d=R(at).getInt32(e+12,!0),p=R(at).getInt32(e+8,!0),m=[];for(let t=0;t<d;t++){const e=p+4*t;var y=R(at).getInt32(e+0,!0),f=new.target===Me?this:Object.create(Me.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),oe.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){oe.unregister(f),F(ae,y),f[j]=A,f[Y]=void 0,Q[21](ae[1+(y<<1)]&~q)}}),m.push(f)}c.push([u,m])}s={queryIndex:R(at).getInt32(r+4,!0)>>>0,root:n,captures:c.reduce((t,e)=>(t[e[0]]=e[1],t),{})}}else s=void 0;const g=s;return Rt(r),g};class gr{constructor(){throw new Error('"TextIndexExtensions" resource does not define a constructor')}}gr.zero=function(){const t=dr();return{utf8:R(at).getInt32(t+0,!0)>>>0,utf16:R(at).getInt32(t+4,!0)>>>0,line:R(at).getInt32(t+8,!0)>>>0,column:R(at).getInt32(t+12,!0)>>>0}};var c={};c[c.AbicoderPragma=0]="AbicoderPragma",c[c.AbicoderVersion=1]="AbicoderVersion",c[c.AdditiveExpression=2]="AdditiveExpression",c[c.AddressType=3]="AddressType",c[c.AndExpression=4]="AndExpression",c[c.ArgumentsDeclaration=5]="ArgumentsDeclaration",c[c.ArrayExpression=6]="ArrayExpression",c[c.ArrayTypeName=7]="ArrayTypeName",c[c.ArrayValues=8]="ArrayValues",c[c.AssemblyFlags=9]="AssemblyFlags",c[c.AssemblyFlagsDeclaration=10]="AssemblyFlagsDeclaration",c[c.AssemblyStatement=11]="AssemblyStatement",c[c.AssignmentExpression=12]="AssignmentExpression",c[c.BitwiseAndExpression=13]="BitwiseAndExpression",c[c.BitwiseOrExpression=14]="BitwiseOrExpression",c[c.BitwiseXorExpression=15]="BitwiseXorExpression",c[c.Block=16]="Block",c[c.BreakStatement=17]="BreakStatement",c[c.CallOptions=18]="CallOptions",c[c.CallOptionsExpression=19]="CallOptionsExpression",c[c.CatchClause=20]="CatchClause",c[c.CatchClauseError=21]="CatchClauseError",c[c.CatchClauses=22]="CatchClauses",c[c.ConditionalExpression=23]="ConditionalExpression",c[c.ConstantDefinition=24]="ConstantDefinition",c[c.ConstructorAttribute=25]="ConstructorAttribute",c[c.ConstructorAttributes=26]="ConstructorAttributes",c[c.ConstructorDefinition=27]="ConstructorDefinition",c[c.ContinueStatement=28]="ContinueStatement",c[c.ContractDefinition=29]="ContractDefinition",c[c.ContractMember=30]="ContractMember",c[c.ContractMembers=31]="ContractMembers",c[c.ContractSpecifier=32]="ContractSpecifier",c[c.ContractSpecifiers=33]="ContractSpecifiers",c[c.DecimalNumberExpression=34]="DecimalNumberExpression",c[c.DoWhileStatement=35]="DoWhileStatement",c[c.ElementaryType=36]="ElementaryType",c[c.ElseBranch=37]="ElseBranch",c[c.EmitStatement=38]="EmitStatement",c[c.EnumDefinition=39]="EnumDefinition",c[c.EnumMembers=40]="EnumMembers",c[c.EqualityExpression=41]="EqualityExpression",c[c.ErrorDefinition=42]="ErrorDefinition",c[c.ErrorParameter=43]="ErrorParameter",c[c.ErrorParameters=44]="ErrorParameters",c[c.ErrorParametersDeclaration=45]="ErrorParametersDeclaration",c[c.EventDefinition=46]="EventDefinition",c[c.EventParameter=47]="EventParameter",c[c.EventParameters=48]="EventParameters",c[c.EventParametersDeclaration=49]="EventParametersDeclaration",c[c.ExperimentalFeature=50]="ExperimentalFeature",c[c.ExperimentalPragma=51]="ExperimentalPragma",c[c.ExponentiationExpression=52]="ExponentiationExpression",c[c.Expression=53]="Expression",c[c.ExpressionStatement=54]="ExpressionStatement",c[c.FallbackFunctionAttribute=55]="FallbackFunctionAttribute",c[c.FallbackFunctionAttributes=56]="FallbackFunctionAttributes",c[c.FallbackFunctionDefinition=57]="FallbackFunctionDefinition",c[c.ForStatement=58]="ForStatement",c[c.ForStatementCondition=59]="ForStatementCondition",c[c.ForStatementInitialization=60]="ForStatementInitialization",c[c.FunctionAttribute=61]="FunctionAttribute",c[c.FunctionAttributes=62]="FunctionAttributes",c[c.FunctionBody=63]="FunctionBody",c[c.FunctionCallExpression=64]="FunctionCallExpression",c[c.FunctionDefinition=65]="FunctionDefinition",c[c.FunctionName=66]="FunctionName",c[c.FunctionType=67]="FunctionType",c[c.FunctionTypeAttribute=68]="FunctionTypeAttribute",c[c.FunctionTypeAttributes=69]="FunctionTypeAttributes",c[c.HexNumberExpression=70]="HexNumberExpression",c[c.HexStringLiteral=71]="HexStringLiteral",c[c.HexStringLiterals=72]="HexStringLiterals",c[c.IdentifierPath=73]="IdentifierPath",c[c.IfStatement=74]="IfStatement",c[c.ImportAlias=75]="ImportAlias",c[c.ImportClause=76]="ImportClause",c[c.ImportDeconstruction=77]="ImportDeconstruction",c[c.ImportDeconstructionSymbol=78]="ImportDeconstructionSymbol",c[c.ImportDeconstructionSymbols=79]="ImportDeconstructionSymbols",c[c.ImportDirective=80]="ImportDirective",c[c.IndexAccessEnd=81]="IndexAccessEnd",c[c.IndexAccessExpression=82]="IndexAccessExpression",c[c.InequalityExpression=83]="InequalityExpression",c[c.InheritanceSpecifier=84]="InheritanceSpecifier",c[c.InheritanceType=85]="InheritanceType",c[c.InheritanceTypes=86]="InheritanceTypes",c[c.InterfaceDefinition=87]="InterfaceDefinition",c[c.InterfaceMembers=88]="InterfaceMembers",c[c.LibraryDefinition=89]="LibraryDefinition",c[c.LibraryMembers=90]="LibraryMembers",c[c.MappingKey=91]="MappingKey",c[c.MappingKeyType=92]="MappingKeyType",c[c.MappingType=93]="MappingType",c[c.MappingValue=94]="MappingValue",c[c.MemberAccessExpression=95]="MemberAccessExpression",c[c.ModifierAttribute=96]="ModifierAttribute",c[c.ModifierAttributes=97]="ModifierAttributes",c[c.ModifierDefinition=98]="ModifierDefinition",c[c.ModifierInvocation=99]="ModifierInvocation",c[c.MultiplicativeExpression=100]="MultiplicativeExpression",c[c.NamedArgument=101]="NamedArgument",c[c.NamedArgumentGroup=102]="NamedArgumentGroup",c[c.NamedArguments=103]="NamedArguments",c[c.NamedArgumentsDeclaration=104]="NamedArgumentsDeclaration",c[c.NamedImport=105]="NamedImport",c[c.NewExpression=106]="NewExpression",c[c.NumberUnit=107]="NumberUnit",c[c.OrExpression=108]="OrExpression",c[c.OverridePaths=109]="OverridePaths",c[c.OverridePathsDeclaration=110]="OverridePathsDeclaration",c[c.OverrideSpecifier=111]="OverrideSpecifier",c[c.Parameter=112]="Parameter",c[c.Parameters=113]="Parameters",c[c.ParametersDeclaration=114]="ParametersDeclaration",c[c.PathImport=115]="PathImport",c[c.PositionalArguments=116]="PositionalArguments",c[c.PositionalArgumentsDeclaration=117]="PositionalArgumentsDeclaration",c[c.PostfixExpression=118]="PostfixExpression",c[c.Pragma=119]="Pragma",c[c.PragmaDirective=120]="PragmaDirective",c[c.PrefixExpression=121]="PrefixExpression",c[c.ReceiveFunctionAttribute=122]="ReceiveFunctionAttribute",c[c.ReceiveFunctionAttributes=123]="ReceiveFunctionAttributes",c[c.ReceiveFunctionDefinition=124]="ReceiveFunctionDefinition",c[c.ReturnStatement=125]="ReturnStatement",c[c.ReturnsDeclaration=126]="ReturnsDeclaration",c[c.RevertStatement=127]="RevertStatement",c[c.ShiftExpression=128]="ShiftExpression",c[c.SimpleVersionLiteral=129]="SimpleVersionLiteral",c[c.SourceUnit=130]="SourceUnit",c[c.SourceUnitMember=131]="SourceUnitMember",c[c.SourceUnitMembers=132]="SourceUnitMembers",c[c.StateVariableAttribute=133]="StateVariableAttribute",c[c.StateVariableAttributes=134]="StateVariableAttributes",c[c.StateVariableDefinition=135]="StateVariableDefinition",c[c.StateVariableDefinitionValue=136]="StateVariableDefinitionValue",c[c.Statement=137]="Statement",c[c.Statements=138]="Statements",c[c.StorageLayoutSpecifier=139]="StorageLayoutSpecifier",c[c.StorageLocation=140]="StorageLocation",c[c.StringExpression=141]="StringExpression",c[c.StringLiteral=142]="StringLiteral",c[c.StringLiterals=143]="StringLiterals",c[c.StructDefinition=144]="StructDefinition",c[c.StructMember=145]="StructMember",c[c.StructMembers=146]="StructMembers",c[c.ThrowStatement=147]="ThrowStatement",c[c.TryStatement=148]="TryStatement",c[c.TupleDeconstructionElement=149]="TupleDeconstructionElement",c[c.TupleDeconstructionElements=150]="TupleDeconstructionElements",c[c.TupleDeconstructionStatement=151]="TupleDeconstructionStatement",c[c.TupleExpression=152]="TupleExpression",c[c.TupleMember=153]="TupleMember",c[c.TupleValue=154]="TupleValue",c[c.TupleValues=155]="TupleValues",c[c.TypeExpression=156]="TypeExpression",c[c.TypeName=157]="TypeName",c[c.TypedTupleMember=158]="TypedTupleMember",c[c.UncheckedBlock=159]="UncheckedBlock",c[c.UnicodeStringLiteral=160]="UnicodeStringLiteral",c[c.UnicodeStringLiterals=161]="UnicodeStringLiterals",c[c.UnnamedFunctionAttribute=162]="UnnamedFunctionAttribute",c[c.UnnamedFunctionAttributes=163]="UnnamedFunctionAttributes",c[c.UnnamedFunctionDefinition=164]="UnnamedFunctionDefinition",c[c.UntypedTupleMember=165]="UntypedTupleMember",c[c.UserDefinedValueTypeDefinition=166]="UserDefinedValueTypeDefinition",c[c.UsingAlias=167]="UsingAlias",c[c.UsingClause=168]="UsingClause",c[c.UsingDeconstruction=169]="UsingDeconstruction",c[c.UsingDeconstructionSymbol=170]="UsingDeconstructionSymbol",c[c.UsingDeconstructionSymbols=171]="UsingDeconstructionSymbols",c[c.UsingDirective=172]="UsingDirective",c[c.UsingOperator=173]="UsingOperator",c[c.UsingTarget=174]="UsingTarget",c[c.VariableDeclarationStatement=175]="VariableDeclarationStatement",c[c.VariableDeclarationType=176]="VariableDeclarationType",c[c.VariableDeclarationValue=177]="VariableDeclarationValue",c[c.VersionExpression=178]="VersionExpression",c[c.VersionExpressionSet=179]="VersionExpressionSet",c[c.VersionExpressionSets=180]="VersionExpressionSets",c[c.VersionLiteral=181]="VersionLiteral",c[c.VersionOperator=182]="VersionOperator",c[c.VersionPragma=183]="VersionPragma",c[c.VersionRange=184]="VersionRange",c[c.VersionTerm=185]="VersionTerm",c[c.WhileStatement=186]="WhileStatement",c[c.YulArguments=187]="YulArguments",c[c.YulAssignmentOperator=188]="YulAssignmentOperator",c[c.YulBlock=189]="YulBlock",c[c.YulBreakStatement=190]="YulBreakStatement",c[c.YulColonAndEqual=191]="YulColonAndEqual",c[c.YulContinueStatement=192]="YulContinueStatement",c[c.YulDefaultCase=193]="YulDefaultCase",c[c.YulEqualAndColon=194]="YulEqualAndColon",c[c.YulExpression=195]="YulExpression",c[c.YulForStatement=196]="YulForStatement",c[c.YulFunctionCallExpression=197]="YulFunctionCallExpression",c[c.YulFunctionDefinition=198]="YulFunctionDefinition",c[c.YulIfStatement=199]="YulIfStatement",c[c.YulLabel=200]="YulLabel",c[c.YulLeaveStatement=201]="YulLeaveStatement",c[c.YulLiteral=202]="YulLiteral",c[c.YulParameters=203]="YulParameters",c[c.YulParametersDeclaration=204]="YulParametersDeclaration",c[c.YulPath=205]="YulPath",c[c.YulPaths=206]="YulPaths",c[c.YulReturnsDeclaration=207]="YulReturnsDeclaration",c[c.YulStackAssignmentOperator=208]="YulStackAssignmentOperator",c[c.YulStackAssignmentStatement=209]="YulStackAssignmentStatement",c[c.YulStatement=210]="YulStatement",c[c.YulStatements=211]="YulStatements",c[c.YulSwitchCase=212]="YulSwitchCase",c[c.YulSwitchCases=213]="YulSwitchCases",c[c.YulSwitchStatement=214]="YulSwitchStatement",c[c.YulValueCase=215]="YulValueCase",c[c.YulVariableAssignmentStatement=216]="YulVariableAssignmentStatement",c[c.YulVariableDeclarationStatement=217]="YulVariableDeclarationStatement",c[c.YulVariableDeclarationValue=218]="YulVariableDeclarationValue",c[c.YulVariableNames=219]="YulVariableNames";var l={};l[l.Unrecognized=0]="Unrecognized",l[l.Missing=1]="Missing",l[l.ABIEncoderV2Keyword=2]="ABIEncoderV2Keyword",l[l.AbicoderKeyword=3]="AbicoderKeyword",l[l.AbicoderV1Keyword=4]="AbicoderV1Keyword",l[l.AbicoderV2Keyword=5]="AbicoderV2Keyword",l[l.AbstractKeyword=6]="AbstractKeyword",l[l.AddressKeyword=7]="AddressKeyword",l[l.AfterKeyword=8]="AfterKeyword",l[l.AliasKeyword=9]="AliasKeyword",l[l.Ampersand=10]="Ampersand",l[l.AmpersandAmpersand=11]="AmpersandAmpersand",l[l.AmpersandEqual=12]="AmpersandEqual",l[l.AnonymousKeyword=13]="AnonymousKeyword",l[l.ApplyKeyword=14]="ApplyKeyword",l[l.AsKeyword=15]="AsKeyword",l[l.AssemblyKeyword=16]="AssemblyKeyword",l[l.Asterisk=17]="Asterisk",l[l.AsteriskAsterisk=18]="AsteriskAsterisk",l[l.AsteriskEqual=19]="AsteriskEqual",l[l.AtKeyword=20]="AtKeyword",l[l.AutoKeyword=21]="AutoKeyword",l[l.Bang=22]="Bang",l[l.BangEqual=23]="BangEqual",l[l.Bar=24]="Bar",l[l.BarBar=25]="BarBar",l[l.BarEqual=26]="BarEqual",l[l.BoolKeyword=27]="BoolKeyword",l[l.BreakKeyword=28]="BreakKeyword",l[l.ByteKeyword=29]="ByteKeyword",l[l.BytesKeyword=30]="BytesKeyword",l[l.CallDataKeyword=31]="CallDataKeyword",l[l.Caret=32]="Caret",l[l.CaretEqual=33]="CaretEqual",l[l.CaseKeyword=34]="CaseKeyword",l[l.CatchKeyword=35]="CatchKeyword",l[l.CloseBrace=36]="CloseBrace",l[l.CloseBracket=37]="CloseBracket",l[l.CloseParen=38]="CloseParen",l[l.Colon=39]="Colon",l[l.ColonEqual=40]="ColonEqual",l[l.Comma=41]="Comma",l[l.ConstantKeyword=42]="ConstantKeyword",l[l.ConstructorKeyword=43]="ConstructorKeyword",l[l.ContinueKeyword=44]="ContinueKeyword",l[l.ContractKeyword=45]="ContractKeyword",l[l.CopyOfKeyword=46]="CopyOfKeyword",l[l.DaysKeyword=47]="DaysKeyword",l[l.DecimalLiteral=48]="DecimalLiteral",l[l.DefaultKeyword=49]="DefaultKeyword",l[l.DefineKeyword=50]="DefineKeyword",l[l.DeleteKeyword=51]="DeleteKeyword",l[l.DoKeyword=52]="DoKeyword",l[l.DoubleQuotedHexStringLiteral=53]="DoubleQuotedHexStringLiteral",l[l.DoubleQuotedStringLiteral=54]="DoubleQuotedStringLiteral",l[l.DoubleQuotedUnicodeStringLiteral=55]="DoubleQuotedUnicodeStringLiteral",l[l.DoubleQuotedVersionLiteral=56]="DoubleQuotedVersionLiteral",l[l.ElseKeyword=57]="ElseKeyword",l[l.EmitKeyword=58]="EmitKeyword",l[l.EndOfLine=59]="EndOfLine",l[l.EnumKeyword=60]="EnumKeyword",l[l.Equal=61]="Equal",l[l.EqualColon=62]="EqualColon",l[l.EqualEqual=63]="EqualEqual",l[l.EqualGreaterThan=64]="EqualGreaterThan",l[l.ErrorKeyword=65]="ErrorKeyword",l[l.EtherKeyword=66]="EtherKeyword",l[l.EventKeyword=67]="EventKeyword",l[l.ExperimentalKeyword=68]="ExperimentalKeyword",l[l.ExternalKeyword=69]="ExternalKeyword",l[l.FallbackKeyword=70]="FallbackKeyword",l[l.FalseKeyword=71]="FalseKeyword",l[l.FinalKeyword=72]="FinalKeyword",l[l.FinneyKeyword=73]="FinneyKeyword",l[l.FixedKeyword=74]="FixedKeyword",l[l.ForKeyword=75]="ForKeyword",l[l.FromKeyword=76]="FromKeyword",l[l.FunctionKeyword=77]="FunctionKeyword",l[l.GlobalKeyword=78]="GlobalKeyword",l[l.GreaterThan=79]="GreaterThan",l[l.GreaterThanEqual=80]="GreaterThanEqual",l[l.GreaterThanGreaterThan=81]="GreaterThanGreaterThan",l[l.GreaterThanGreaterThanEqual=82]="GreaterThanGreaterThanEqual",l[l.GreaterThanGreaterThanGreaterThan=83]="GreaterThanGreaterThanGreaterThan",l[l.GreaterThanGreaterThanGreaterThanEqual=84]="GreaterThanGreaterThanGreaterThanEqual",l[l.GweiKeyword=85]="GweiKeyword",l[l.HexKeyword=86]="HexKeyword",l[l.HexLiteral=87]="HexLiteral",l[l.HoursKeyword=88]="HoursKeyword",l[l.Identifier=89]="Identifier",l[l.IfKeyword=90]="IfKeyword",l[l.ImmutableKeyword=91]="ImmutableKeyword",l[l.ImplementsKeyword=92]="ImplementsKeyword",l[l.ImportKeyword=93]="ImportKeyword",l[l.InKeyword=94]="InKeyword",l[l.IndexedKeyword=95]="IndexedKeyword",l[l.InlineKeyword=96]="InlineKeyword",l[l.IntKeyword=97]="IntKeyword",l[l.InterfaceKeyword=98]="InterfaceKeyword",l[l.InternalKeyword=99]="InternalKeyword",l[l.IsKeyword=100]="IsKeyword",l[l.LayoutKeyword=101]="LayoutKeyword",l[l.LessThan=102]="LessThan",l[l.LessThanEqual=103]="LessThanEqual",l[l.LessThanLessThan=104]="LessThanLessThan",l[l.LessThanLessThanEqual=105]="LessThanLessThanEqual",l[l.LetKeyword=106]="LetKeyword",l[l.LibraryKeyword=107]="LibraryKeyword",l[l.MacroKeyword=108]="MacroKeyword",l[l.MappingKeyword=109]="MappingKeyword",l[l.MatchKeyword=110]="MatchKeyword",l[l.MemoryKeyword=111]="MemoryKeyword",l[l.Minus=112]="Minus",l[l.MinusEqual=113]="MinusEqual",l[l.MinusGreaterThan=114]="MinusGreaterThan",l[l.MinusMinus=115]="MinusMinus",l[l.MinutesKeyword=116]="MinutesKeyword",l[l.ModifierKeyword=117]="ModifierKeyword",l[l.MultiLineComment=118]="MultiLineComment",l[l.MultiLineNatSpecComment=119]="MultiLineNatSpecComment",l[l.MutableKeyword=120]="MutableKeyword",l[l.NewKeyword=121]="NewKeyword",l[l.NullKeyword=122]="NullKeyword",l[l.OfKeyword=123]="OfKeyword",l[l.OpenBrace=124]="OpenBrace",l[l.OpenBracket=125]="OpenBracket",l[l.OpenParen=126]="OpenParen",l[l.OverrideKeyword=127]="OverrideKeyword",l[l.PartialKeyword=128]="PartialKeyword",l[l.PayableKeyword=129]="PayableKeyword",l[l.Percent=130]="Percent",l[l.PercentEqual=131]="PercentEqual",l[l.Period=132]="Period",l[l.Plus=133]="Plus",l[l.PlusEqual=134]="PlusEqual",l[l.PlusPlus=135]="PlusPlus",l[l.PragmaKeyword=136]="PragmaKeyword",l[l.PrivateKeyword=137]="PrivateKeyword",l[l.PromiseKeyword=138]="PromiseKeyword",l[l.PublicKeyword=139]="PublicKeyword",l[l.PureKeyword=140]="PureKeyword",l[l.QuestionMark=141]="QuestionMark",l[l.ReceiveKeyword=142]="ReceiveKeyword",l[l.ReferenceKeyword=143]="ReferenceKeyword",l[l.RelocatableKeyword=144]="RelocatableKeyword",l[l.ReturnKeyword=145]="ReturnKeyword",l[l.ReturnsKeyword=146]="ReturnsKeyword",l[l.RevertKeyword=147]="RevertKeyword",l[l.SMTCheckerKeyword=148]="SMTCheckerKeyword",l[l.SealedKeyword=149]="SealedKeyword",l[l.SecondsKeyword=150]="SecondsKeyword",l[l.Semicolon=151]="Semicolon",l[l.SingleLineComment=152]="SingleLineComment",l[l.SingleLineNatSpecComment=153]="SingleLineNatSpecComment",l[l.SingleQuotedHexStringLiteral=154]="SingleQuotedHexStringLiteral",l[l.SingleQuotedStringLiteral=155]="SingleQuotedStringLiteral",l[l.SingleQuotedUnicodeStringLiteral=156]="SingleQuotedUnicodeStringLiteral",l[l.SingleQuotedVersionLiteral=157]="SingleQuotedVersionLiteral",l[l.SizeOfKeyword=158]="SizeOfKeyword",l[l.Slash=159]="Slash",l[l.SlashEqual=160]="SlashEqual",l[l.SolidityKeyword=161]="SolidityKeyword",l[l.StaticKeyword=162]="StaticKeyword",l[l.StorageKeyword=163]="StorageKeyword",l[l.StringKeyword=164]="StringKeyword",l[l.StructKeyword=165]="StructKeyword",l[l.SuperKeyword=166]="SuperKeyword",l[l.SupportsKeyword=167]="SupportsKeyword",l[l.SwitchKeyword=168]="SwitchKeyword",l[l.SzaboKeyword=169]="SzaboKeyword",l[l.ThisKeyword=170]="ThisKeyword",l[l.ThrowKeyword=171]="ThrowKeyword",l[l.Tilde=172]="Tilde",l[l.TransientKeyword=173]="TransientKeyword",l[l.TrueKeyword=174]="TrueKeyword",l[l.TryKeyword=175]="TryKeyword",l[l.TypeDefKeyword=176]="TypeDefKeyword",l[l.TypeKeyword=177]="TypeKeyword",l[l.TypeOfKeyword=178]="TypeOfKeyword",l[l.UfixedKeyword=179]="UfixedKeyword",l[l.UintKeyword=180]="UintKeyword",l[l.UncheckedKeyword=181]="UncheckedKeyword",l[l.UsingKeyword=182]="UsingKeyword",l[l.VarKeyword=183]="VarKeyword",l[l.VersionSpecifier=184]="VersionSpecifier",l[l.ViewKeyword=185]="ViewKeyword",l[l.VirtualKeyword=186]="VirtualKeyword",l[l.WeeksKeyword=187]="WeeksKeyword",l[l.WeiKeyword=188]="WeiKeyword",l[l.WhileKeyword=189]="WhileKeyword",l[l.Whitespace=190]="Whitespace",l[l.YearsKeyword=191]="YearsKeyword",l[l.YulAbstractKeyword=192]="YulAbstractKeyword",l[l.YulAfterKeyword=193]="YulAfterKeyword",l[l.YulAliasKeyword=194]="YulAliasKeyword",l[l.YulAnonymousKeyword=195]="YulAnonymousKeyword",l[l.YulApplyKeyword=196]="YulApplyKeyword",l[l.YulAsKeyword=197]="YulAsKeyword",l[l.YulAssemblyKeyword=198]="YulAssemblyKeyword",l[l.YulAutoKeyword=199]="YulAutoKeyword",l[l.YulBoolKeyword=200]="YulBoolKeyword",l[l.YulBreakKeyword=201]="YulBreakKeyword",l[l.YulBytesKeyword=202]="YulBytesKeyword",l[l.YulCallDataKeyword=203]="YulCallDataKeyword",l[l.YulCaseKeyword=204]="YulCaseKeyword",l[l.YulCatchKeyword=205]="YulCatchKeyword",l[l.YulConstantKeyword=206]="YulConstantKeyword",l[l.YulConstructorKeyword=207]="YulConstructorKeyword",l[l.YulContinueKeyword=208]="YulContinueKeyword",l[l.YulContractKeyword=209]="YulContractKeyword",l[l.YulCopyOfKeyword=210]="YulCopyOfKeyword",l[l.YulDaysKeyword=211]="YulDaysKeyword",l[l.YulDecimalLiteral=212]="YulDecimalLiteral",l[l.YulDefaultKeyword=213]="YulDefaultKeyword",l[l.YulDefineKeyword=214]="YulDefineKeyword",l[l.YulDeleteKeyword=215]="YulDeleteKeyword",l[l.YulDoKeyword=216]="YulDoKeyword",l[l.YulElseKeyword=217]="YulElseKeyword",l[l.YulEmitKeyword=218]="YulEmitKeyword",l[l.YulEnumKeyword=219]="YulEnumKeyword",l[l.YulEtherKeyword=220]="YulEtherKeyword",l[l.YulEventKeyword=221]="YulEventKeyword",l[l.YulExternalKeyword=222]="YulExternalKeyword",l[l.YulFallbackKeyword=223]="YulFallbackKeyword",l[l.YulFalseKeyword=224]="YulFalseKeyword",l[l.YulFinalKeyword=225]="YulFinalKeyword",l[l.YulFinneyKeyword=226]="YulFinneyKeyword",l[l.YulFixedKeyword=227]="YulFixedKeyword",l[l.YulForKeyword=228]="YulForKeyword",l[l.YulFunctionKeyword=229]="YulFunctionKeyword",l[l.YulGweiKeyword=230]="YulGweiKeyword",l[l.YulHexKeyword=231]="YulHexKeyword",l[l.YulHexLiteral=232]="YulHexLiteral",l[l.YulHoursKeyword=233]="YulHoursKeyword",l[l.YulIdentifier=234]="YulIdentifier",l[l.YulIfKeyword=235]="YulIfKeyword",l[l.YulImmutableKeyword=236]="YulImmutableKeyword",l[l.YulImplementsKeyword=237]="YulImplementsKeyword",l[l.YulImportKeyword=238]="YulImportKeyword",l[l.YulInKeyword=239]="YulInKeyword",l[l.YulIndexedKeyword=240]="YulIndexedKeyword",l[l.YulInlineKeyword=241]="YulInlineKeyword",l[l.YulIntKeyword=242]="YulIntKeyword",l[l.YulInterfaceKeyword=243]="YulInterfaceKeyword",l[l.YulInternalKeyword=244]="YulInternalKeyword",l[l.YulIsKeyword=245]="YulIsKeyword",l[l.YulLeaveKeyword=246]="YulLeaveKeyword",l[l.YulLetKeyword=247]="YulLetKeyword",l[l.YulLibraryKeyword=248]="YulLibraryKeyword",l[l.YulMacroKeyword=249]="YulMacroKeyword",l[l.YulMappingKeyword=250]="YulMappingKeyword",l[l.YulMatchKeyword=251]="YulMatchKeyword",l[l.YulMemoryKeyword=252]="YulMemoryKeyword",l[l.YulMinutesKeyword=253]="YulMinutesKeyword",l[l.YulModifierKeyword=254]="YulModifierKeyword",l[l.YulMutableKeyword=255]="YulMutableKeyword",l[l.YulNewKeyword=256]="YulNewKeyword",l[l.YulNullKeyword=257]="YulNullKeyword",l[l.YulOfKeyword=258]="YulOfKeyword",l[l.YulOverrideKeyword=259]="YulOverrideKeyword",l[l.YulPartialKeyword=260]="YulPartialKeyword",l[l.YulPayableKeyword=261]="YulPayableKeyword",l[l.YulPragmaKeyword=262]="YulPragmaKeyword",l[l.YulPrivateKeyword=263]="YulPrivateKeyword",l[l.YulPromiseKeyword=264]="YulPromiseKeyword",l[l.YulPublicKeyword=265]="YulPublicKeyword",l[l.YulPureKeyword=266]="YulPureKeyword",l[l.YulReceiveKeyword=267]="YulReceiveKeyword",l[l.YulReferenceKeyword=268]="YulReferenceKeyword",l[l.YulRelocatableKeyword=269]="YulRelocatableKeyword",l[l.YulReturnsKeyword=270]="YulReturnsKeyword",l[l.YulSealedKeyword=271]="YulSealedKeyword",l[l.YulSecondsKeyword=272]="YulSecondsKeyword",l[l.YulSizeOfKeyword=273]="YulSizeOfKeyword",l[l.YulStaticKeyword=274]="YulStaticKeyword",l[l.YulStorageKeyword=275]="YulStorageKeyword",l[l.YulStringKeyword=276]="YulStringKeyword",l[l.YulStructKeyword=277]="YulStructKeyword",l[l.YulSuperKeyword=278]="YulSuperKeyword",l[l.YulSupportsKeyword=279]="YulSupportsKeyword",l[l.YulSwitchKeyword=280]="YulSwitchKeyword",l[l.YulSzaboKeyword=281]="YulSzaboKeyword",l[l.YulThisKeyword=282]="YulThisKeyword",l[l.YulThrowKeyword=283]="YulThrowKeyword",l[l.YulTrueKeyword=284]="YulTrueKeyword",l[l.YulTryKeyword=285]="YulTryKeyword",l[l.YulTypeDefKeyword=286]="YulTypeDefKeyword",l[l.YulTypeKeyword=287]="YulTypeKeyword",l[l.YulTypeOfKeyword=288]="YulTypeOfKeyword",l[l.YulUfixedKeyword=289]="YulUfixedKeyword",l[l.YulUintKeyword=290]="YulUintKeyword",l[l.YulUncheckedKeyword=291]="YulUncheckedKeyword",l[l.YulUsingKeyword=292]="YulUsingKeyword",l[l.YulVarKeyword=293]="YulVarKeyword",l[l.YulViewKeyword=294]="YulViewKeyword",l[l.YulVirtualKeyword=295]="YulVirtualKeyword",l[l.YulWeeksKeyword=296]="YulWeeksKeyword",l[l.YulWeiKeyword=297]="YulWeiKeyword",l[l.YulWhileKeyword=298]="YulWhileKeyword",l[l.YulYearsKeyword=299]="YulYearsKeyword";var h={};h[h.Root=0]="Root",h[h.Unrecognized=1]="Unrecognized",h[h.Missing=2]="Missing",h[h.Item=3]="Item",h[h.Variant=4]="Variant",h[h.Separator=5]="Separator",h[h.Operand=6]="Operand",h[h.LeftOperand=7]="LeftOperand",h[h.RightOperand=8]="RightOperand",h[h.LeadingTrivia=9]="LeadingTrivia",h[h.TrailingTrivia=10]="TrailingTrivia",h[h.AbicoderKeyword=11]="AbicoderKeyword",h[h.AbstractKeyword=12]="AbstractKeyword",h[h.AddressKeyword=13]="AddressKeyword",h[h.Alias=14]="Alias",h[h.AnonymousKeyword=15]="AnonymousKeyword",h[h.Arguments=16]="Arguments",h[h.AsKeyword=17]="AsKeyword",h[h.AssemblyKeyword=18]="AssemblyKeyword",h[h.Assignment=19]="Assignment",h[h.Asterisk=20]="Asterisk",h[h.AtKeyword=21]="AtKeyword",h[h.Attributes=22]="Attributes",h[h.Block=23]="Block",h[h.Body=24]="Body",h[h.BreakKeyword=25]="BreakKeyword",h[h.CaseKeyword=26]="CaseKeyword",h[h.Cases=27]="Cases",h[h.CatchClauses=28]="CatchClauses",h[h.CatchKeyword=29]="CatchKeyword",h[h.Clause=30]="Clause",h[h.CloseBrace=31]="CloseBrace",h[h.CloseBracket=32]="CloseBracket",h[h.CloseParen=33]="CloseParen",h[h.Colon=34]="Colon",h[h.Condition=35]="Condition",h[h.ConstantKeyword=36]="ConstantKeyword",h[h.ConstructorKeyword=37]="ConstructorKeyword",h[h.ContinueKeyword=38]="ContinueKeyword",h[h.ContractKeyword=39]="ContractKeyword",h[h.DefaultKeyword=40]="DefaultKeyword",h[h.DoKeyword=41]="DoKeyword",h[h.Elements=42]="Elements",h[h.ElseBranch=43]="ElseBranch",h[h.ElseKeyword=44]="ElseKeyword",h[h.EmitKeyword=45]="EmitKeyword",h[h.End=46]="End",h[h.EnumKeyword=47]="EnumKeyword",h[h.Equal=48]="Equal",h[h.EqualGreaterThan=49]="EqualGreaterThan",h[h.Error=50]="Error",h[h.ErrorKeyword=51]="ErrorKeyword",h[h.Event=52]="Event",h[h.EventKeyword=53]="EventKeyword",h[h.ExperimentalKeyword=54]="ExperimentalKeyword",h[h.Expression=55]="Expression",h[h.FallbackKeyword=56]="FallbackKeyword",h[h.FalseExpression=57]="FalseExpression",h[h.Feature=58]="Feature",h[h.Flags=59]="Flags",h[h.ForKeyword=60]="ForKeyword",h[h.FromKeyword=61]="FromKeyword",h[h.FunctionKeyword=62]="FunctionKeyword",h[h.GlobalKeyword=63]="GlobalKeyword",h[h.Identifier=64]="Identifier",h[h.IfKeyword=65]="IfKeyword",h[h.ImportKeyword=66]="ImportKeyword",h[h.Index=67]="Index",h[h.IndexedKeyword=68]="IndexedKeyword",h[h.Inheritance=69]="Inheritance",h[h.Initialization=70]="Initialization",h[h.InterfaceKeyword=71]="InterfaceKeyword",h[h.IsKeyword=72]="IsKeyword",h[h.Items=73]="Items",h[h.Iterator=74]="Iterator",h[h.KeyType=75]="KeyType",h[h.Label=76]="Label",h[h.LayoutKeyword=77]="LayoutKeyword",h[h.LeaveKeyword=78]="LeaveKeyword",h[h.LetKeyword=79]="LetKeyword",h[h.LibraryKeyword=80]="LibraryKeyword",h[h.Literal=81]="Literal",h[h.MappingKeyword=82]="MappingKeyword",h[h.Member=83]="Member",h[h.Members=84]="Members",h[h.Minus=85]="Minus",h[h.MinusGreaterThan=86]="MinusGreaterThan",h[h.ModifierKeyword=87]="ModifierKeyword",h[h.Name=88]="Name",h[h.NewKeyword=89]="NewKeyword",h[h.OpenBrace=90]="OpenBrace",h[h.OpenBracket=91]="OpenBracket",h[h.OpenParen=92]="OpenParen",h[h.Operator=93]="Operator",h[h.Options=94]="Options",h[h.Overridden=95]="Overridden",h[h.OverrideKeyword=96]="OverrideKeyword",h[h.Parameters=97]="Parameters",h[h.Path=98]="Path",h[h.Paths=99]="Paths",h[h.PayableKeyword=100]="PayableKeyword",h[h.Period=101]="Period",h[h.Pragma=102]="Pragma",h[h.PragmaKeyword=103]="PragmaKeyword",h[h.QuestionMark=104]="QuestionMark",h[h.ReceiveKeyword=105]="ReceiveKeyword",h[h.ReturnKeyword=106]="ReturnKeyword",h[h.Returns=107]="Returns",h[h.ReturnsKeyword=108]="ReturnsKeyword",h[h.RevertKeyword=109]="RevertKeyword",h[h.Semicolon=110]="Semicolon",h[h.Sets=111]="Sets",h[h.SolidityKeyword=112]="SolidityKeyword",h[h.Specifiers=113]="Specifiers",h[h.Start=114]="Start",h[h.Statements=115]="Statements",h[h.StorageLocation=116]="StorageLocation",h[h.StructKeyword=117]="StructKeyword",h[h.SwitchKeyword=118]="SwitchKeyword",h[h.Symbols=119]="Symbols",h[h.Target=120]="Target",h[h.ThrowKeyword=121]="ThrowKeyword",h[h.TrueExpression=122]="TrueExpression",h[h.TryKeyword=123]="TryKeyword",h[h.TypeKeyword=124]="TypeKeyword",h[h.TypeName=125]="TypeName",h[h.Types=126]="Types",h[h.UncheckedKeyword=127]="UncheckedKeyword",h[h.Unit=128]="Unit",h[h.UsingKeyword=129]="UsingKeyword",h[h.Value=130]="Value",h[h.ValueType=131]="ValueType",h[h.VarKeyword=132]="VarKeyword",h[h.Variable=133]="Variable",h[h.VariableType=134]="VariableType",h[h.Variables=135]="Variables",h[h.Version=136]="Version",h[h.WhileKeyword=137]="WhileKeyword";var u={};let wr,xr,vr,br;u.NonterminalNode="NonterminalNode",Object.defineProperty(te.prototype,"type",{get:function(){return u.NonterminalNode}}),te.prototype.asNonterminalNode=function(){return this},te.prototype.isNonterminalNode=function(){return!0},te.prototype.asTerminalNode=function(){},te.prototype.isTerminalNode=function(){return!1},u.TerminalNode="TerminalNode",Object.defineProperty(Pe.prototype,"type",{get:function(){return u.TerminalNode}}),Pe.prototype.asTerminalNode=function(){return this},Pe.prototype.isTerminalNode=function(){return!0},Pe.prototype.asNonterminalNode=function(){},Pe.prototype.isNonterminalNode=function(){return!1};class _r{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}_r.sequence=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=wr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+12*t;let r;if(R(at).getUint8(e+0,!0)){let t;switch(R(at).getUint8(e+4,!0)){case 0:var h=R(at).getInt32(e+8,!0),u=new.target===te?this:Object.create(te.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),zt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){zt.unregister(u),F(Gt,h),u[j]=A,u[Y]=void 0,Q[18](Gt[1+(h<<1)]&~q)}}),t=u;break;case 1:var d=R(at).getInt32(e+8,!0),p=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),he.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){he.unregister(p),F(le,d),p[j]=A,p[Y]=void 0,Q[19](le[1+(d<<1)]&~q)}}),t=p}r=t}else r=void 0;l.push(r)}i={tag:"ok",val:l}}const m=i;if(At(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},_r.choice=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=xr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{let t;switch(R(at).getUint8(s+4,!0)){case 0:var o=R(at).getInt32(s+8,!0),c=new.target===te?this:Object.create(te.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),zt.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){zt.unregister(c),F(Gt,o),c[j]=A,c[Y]=void 0,Q[18](Gt[1+(o<<1)]&~q)}}),t=c;break;case 1:var l=R(at).getInt32(s+8,!0),h=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),he.register(h,l,h),Object.defineProperty(h,j,{writable:!0,value:function(){he.unregister(h),F(le,l),h[j]=A,h[Y]=void 0,Q[19](le[1+(l<<1)]&~q)}}),t=h}i={tag:"ok",val:t}}const u=i;if(kt(s),"object"==typeof u&&"err"===u.tag)throw u.val;return u.val},_r.repeated=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=vr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var h=R(at).getInt32(e+4,!0),u=new.target===te?this:Object.create(te.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),zt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){zt.unregister(u),F(Gt,h),u[j]=A,u[Y]=void 0,Q[18](Gt[1+(h<<1)]&~q)}}),r=u;break;case 1:var d=R(at).getInt32(e+4,!0),p=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),he.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){he.unregister(p),F(le,d),p[j]=A,p[Y]=void 0,Q[19](le[1+(d<<1)]&~q)}}),r=p}l.push(r)}i={tag:"ok",val:l}}const m=i;if(Ct(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},_r.separated=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=br(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;var h=R(at).getInt32(e+4,!0),u=R(at).getInt32(e+0,!0),d=[];for(let t=0;t<h;t++){const e=u+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var p=R(at).getInt32(e+4,!0),m=new.target===te?this:Object.create(te.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),zt.register(m,p,m),Object.defineProperty(m,j,{writable:!0,value:function(){zt.unregister(m),F(Gt,p),m[j]=A,m[Y]=void 0,Q[18](Gt[1+(p<<1)]&~q)}}),r=m;break;case 1:var y=R(at).getInt32(e+4,!0),f=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),he.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){he.unregister(f),F(le,y),f[j]=A,f[Y]=void 0,Q[19](le[1+(y<<1)]&~q)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}const g=i;if(Lt(s),"object"==typeof g&&"err"===g.tag)throw g.val;return g.val};const Er=[q,0],Tr=K(t=>{const{rep:e}=F(Er,t);Q[28](e)});O[12]=Er;const Sr=[q,0],kr=K(t=>{const{rep:e}=F(Sr,t);Q[29](e)});let Rr;O[13]=Sr;class Ar{constructor(){throw new Error('"BindingGraph" resource does not define a constructor')}}Ar.prototype.definitionAt=function(t){var e=this[Y];if(!e||0===(Er[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=Er[1+(e<<1)]&~q,s=t[Y];if(!s||0===(ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=Rr(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===Nr?this:Object.create(Nr.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),kr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){kr.unregister(c),F(Sr,o),c[j]=A,c[Y]=void 0,Q[29](Sr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};const Cr=[q,0],Lr=K(t=>{const{rep:e}=F(Cr,t);Q[30](e)});let Ir,Kr;O[14]=Cr,Ar.prototype.referenceAt=function(t){var e=this[Y];if(!e||0===(Er[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=Er[1+(e<<1)]&~q,s=t[Y];if(!s||0===(ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=Ir(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===$r?this:Object.create($r.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Lr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){Lr.unregister(c),F(Cr,o),c[j]=A,c[Y]=void 0,Q[30](Cr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};class Nr{constructor(){throw new Error('"Definition" resource does not define a constructor')}}Object.defineProperty(Nr.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;return Kr(e)>>>0}});const Or=[q,0],Dr=K(t=>{const{rep:e}=F(Or,t);Q[31](e)});O[15]=Or;const Pr=[q,0],qr=K(t=>{const{rep:e}=F(Pr,t);Q[32](e)});let Mr,Fr,Ur,Yr,Vr,jr,Br,Hr;O[16]=Pr,Object.defineProperty(Nr.prototype,"nameLocation",{get:function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;const r=Mr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Nr.prototype,"definiensLocation",{get:function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;const r=Fr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),Nr.prototype.references=function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;const r=Ur(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===$r?this:Object.create($r.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Lr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Lr.unregister(o),F(Cr,a),o[j]=A,o[Y]=void 0,Q[30](Cr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c};class $r{constructor(){throw new Error('"Reference" resource does not define a constructor')}}Object.defineProperty($r.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(Cr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=Cr[1+(t<<1)]&~q;return Yr(e)>>>0}}),Object.defineProperty($r.prototype,"location",{get:function(){var t=this[Y];if(!t||0===(Cr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=Cr[1+(t<<1)]&~q;const r=Vr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),$r.prototype.definitions=function(){var t=this[Y];if(!t||0===(Cr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=Cr[1+(t<<1)]&~q;const r=jr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Nr?this:Object.create(Nr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),kr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){kr.unregister(o),F(Sr,a),o[j]=A,o[Y]=void 0,Q[29](Sr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c};class Gr{constructor(){throw new Error('"UserFileLocation" resource does not define a constructor')}}Object.defineProperty(Gr.prototype,"fileId",{get:function(){var t=this[Y];if(!t||0===(Or[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Or[1+(t<<1)]&~q;const r=Br(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}}),Object.defineProperty(Gr.prototype,"cursor",{get:function(){var t=this[Y];if(!t||0===(Or[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Or[1+(t<<1)]&~q,r=Hr(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s}});var d={UserFileLocation:"UserFileLocation"};Object.defineProperty(Gr.prototype,"type",{get:function(){return d.UserFileLocation}}),Gr.prototype.asUserFileLocation=function(){return this},Gr.prototype.isUserFileLocation=function(){return!0},Gr.prototype.asBuiltInLocation=function(){},Gr.prototype.isBuiltInLocation=function(){return!1};class zr{constructor(){throw new Error('"BuiltInLocation" resource does not define a constructor')}}d.BuiltInLocation="BuiltInLocation",Object.defineProperty(zr.prototype,"type",{get:function(){return d.BuiltInLocation}}),zr.prototype.asBuiltInLocation=function(){return this},zr.prototype.isBuiltInLocation=function(){return!0},zr.prototype.asUserFileLocation=function(){},zr.prototype.isUserFileLocation=function(){return!1};const Wr=[q,0],Xr=K(t=>{const{rep:e}=F(Wr,t);Q[33](e)});let Qr,Jr;O[17]=Wr;class Zr{constructor(){throw new Error('"Parser" resource does not define a constructor')}}Zr.create=function(t){var e=W(t,Et,at);const r=Qr(e,z);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===Zr?this:Object.create(Zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Xr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Xr.unregister(o),F(Wr,a),o[j]=A,o[Y]=void 0,Q[33](Wr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},Object.defineProperty(Zr.prototype,"languageVersion",{get:function(){var t=this[Y];if(!t||0===(Wr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=Wr[1+(t<<1)]&~q;const r=Jr(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}});const ts=[q,0],es=K(t=>{const{rep:e}=F(ts,t);Q[34](e)});let rs,ss,is,ns,as,os;O[18]=ts,Zr.prototype.parseFileContents=function(t){var e=this[Y];if(!e||0===(Wr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var r=Wr[1+(e<<1)]&~q,s=W(t,Et,at),i=rs(r,s,z),n=new.target===cs?this:Object.create(cs.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),es.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){es.unregister(n),F(ts,i),n[j]=A,n[Y]=void 0,Q[34](ts[1+(i<<1)]&~q)}}),n},Zr.prototype.parseNonterminal=function(t,e){var r=this[Y];if(!r||0===(Wr[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=Wr[1+(r<<1)]&~q,i=W(e,Et,at),n=z,a=ss(s,c[t],i,n),o=new.target===cs?this:Object.create(cs.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),es.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){es.unregister(o),F(ts,a),o[j]=A,o[Y]=void 0,Q[34](ts[1+(a<<1)]&~q)}}),o};class cs{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(cs.prototype,"tree",{get:function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q,r=is(e),s=new.target===te?this:Object.create(te.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),zt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){zt.unregister(s),F(Gt,r),s[j]=A,s[Y]=void 0,Q[18](Gt[1+(r<<1)]&~q)}}),s}}),cs.prototype.errors=function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q;const r=ns(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return It(r),l},cs.prototype.isValid=function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q;return!!as(e)},cs.prototype.createTreeCursor=function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q,r=os(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s};const ls=[q,0],hs=K(t=>{const{rep:e}=F(ls,t);Q[35](e)});let us,ds,ps;O[19]=ls;class ms{constructor(){throw new Error('"InternalCompilationBuilder" resource does not define a constructor')}}ms.create=function(t){var e=W(t,Et,at);const r=us(e,z);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===ms?this:Object.create(ms.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),hs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){hs.unregister(o),F(ls,a),o[j]=A,o[Y]=void 0,Q[35](ls[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},ms.prototype.addFile=function(t,e){var r=this[Y];if(!r||0===(ls[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var s=ls[1+(r<<1)]&~q,i=W(t,Et,at),n=z,a=W(e,Et,at);const o=ds(s,i,n,a,z);var c=R(at).getInt32(o+4,!0),l=R(at).getInt32(o+0,!0),h=[];for(let t=0;t<c;t++){const e=l+4*t;var u=R(at).getInt32(e+0,!0),d=new.target===Me?this:Object.create(Me.prototype);Object.defineProperty(d,Y,{writable:!0,value:u}),oe.register(d,u,d),Object.defineProperty(d,j,{writable:!0,value:function(){oe.unregister(d),F(ae,u),d[j]=A,d[Y]=void 0,Q[21](ae[1+(u<<1)]&~q)}}),h.push(d)}const p={importPaths:h};return Tt(o),p},ms.prototype.resolveImport=function(t,e,r){var s=this[Y];if(!s||0===(ls[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var i=ls[1+(s<<1)]&~q,n=W(t,Et,at),a=z,o=e[Y];if(!o||0===(ae[1+(o<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var c=ae[1+(o<<1)]&~q,l=W(r,Et,at);const h=ps(i,n,a,c,l,z);let u;if(R(at).getUint8(h+0,!0)){var d=R(at).getInt32(h+4,!0),p=R(at).getInt32(h+8,!0);u={tag:"err",val:$.decode(new Uint8Array(at.buffer,d,p))}}else u={tag:"ok",val:void 0};const m=u;if(kt(h),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val};const ys=[q,0],fs=K(t=>{const{rep:e}=F(ys,t);Q[36](e)});let gs,ws;O[20]=ys,ms.prototype.build=function(){var t=this[Y];if(!t||0===(ls[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var e=ls[1+(t<<1)]&~q,r=gs(e),s=new.target===xs?this:Object.create(xs.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),fs.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){fs.unregister(s),F(ys,r),s[j]=A,s[Y]=void 0,Q[36](ys[1+(r<<1)]&~q)}}),s};class xs{constructor(){throw new Error('"CompilationUnit" resource does not define a constructor')}}Object.defineProperty(xs.prototype,"languageVersion",{get:function(){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ys[1+(t<<1)]&~q;const r=ws(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}});const vs=[q,0],bs=K(t=>{const{rep:e}=F(vs,t);Q[37](e)});let _s,Es,Ts,Ss,ks,Rs,As,Cs,Ls,Is,Ks;O[21]=vs,xs.prototype.files=function(){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ys[1+(t<<1)]&~q;const r=_s(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Ns?this:Object.create(Ns.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),bs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){bs.unregister(o),F(vs,a),o[j]=A,o[Y]=void 0,Q[37](vs[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c},xs.prototype.file=function(t){var e=this[Y];if(!e||0===(ys[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var r=ys[1+(e<<1)]&~q,s=W(t,Et,at);const i=Es(r,s,z);let n;if(R(at).getUint8(i+0,!0)){var a=R(at).getInt32(i+4,!0),o=new.target===Ns?this:Object.create(Ns.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),bs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){bs.unregister(o),F(vs,a),o[j]=A,o[Y]=void 0,Q[37](vs[1+(a<<1)]&~q)}}),n=o}else n=void 0;return n},Object.defineProperty(xs.prototype,"bindingGraph",{get:function(){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ys[1+(t<<1)]&~q,r=Ts(e),s=new.target===Ar?this:Object.create(Ar.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Tr.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Tr.unregister(s),F(Er,r),s[j]=A,s[Y]=void 0,Q[28](Er[1+(r<<1)]&~q)}}),s}});class Ns{constructor(){throw new Error('"File" resource does not define a constructor')}}Object.defineProperty(Ns.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q;const r=Ss(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}}),Object.defineProperty(Ns.prototype,"tree",{get:function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q,r=ks(e),s=new.target===te?this:Object.create(te.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),zt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){zt.unregister(s),F(Gt,r),s[j]=A,s[Y]=void 0,Q[18](Gt[1+(r<<1)]&~q)}}),s}}),Ns.prototype.errors=function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q;const r=Rs(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return It(r),l},Ns.prototype.createTreeCursor=function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q,r=As(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s};class Os{constructor(){throw new Error('"LanguageFacts" resource does not define a constructor')}}Os.allVersions=function(){const t=Cs();var e=R(at).getInt32(t+4,!0),r=R(at).getInt32(t+0,!0),s=[];for(let t=0;t<e;t++){const e=r+8*t;var i=R(at).getInt32(e+0,!0),n=R(at).getInt32(e+4,!0),a=$.decode(new Uint8Array(at.buffer,i,n));s.push(a)}const o=s;return Kt(t),o},Os.earliestVersion=function(){const t=Ls();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return St(t),s},Os.latestVersion=function(){const t=Is();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return St(t),s},Os.inferLanguageVersions=function(t){var e=W(t,Et,at);const r=Ks(e,z);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+8*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push(c)}const l=n;return Kt(r),l};const Ds=M.bind(null,Sr),Ps=M.bind(null,Cr),qs=M.bind(null,Or),Ms=M.bind(null,Pr),Fs=M.bind(null,Gt),Us=M.bind(null,le),Ys=M.bind(null,Ht),Vs=M.bind(null,ae),js=M.bind(null,ee),Bs=M.bind(null,ts);function Hs(t){return Ht[1+(t<<1)]&~q}function $s(t){const e=F(Ht,t);e.own&&Q[20](e.rep)}function Gs(t){const e=F(Gt,t);e.own&&Q[18](e.rep)}function zs(t){const e=F(ee,t);e.own&&Q[22](e.rep)}function Ws(t){const e=F(ae,t);e.own&&Q[21](e.rep)}function Xs(t){const e=F(le,t);e.own&&Q[19](e.rep)}function Qs(t){return le[1+(t<<1)]&~q}function Js(t){return Gt[1+(t<<1)]&~q}const Zs=M.bind(null,Fe);function ti(t){const e=F(Fe,t);e.own&&Q[23](e.rep)}const ei=M.bind(null,nr);function ri(t){const e=F(nr,t);e.own&&Q[25](e.rep)}const si=M.bind(null,sr);function ii(t){const e=F(sr,t);e.own&&Q[24](e.rep)}function ni(t){const e=F(Sr,t);e.own&&Q[29](e.rep)}function ai(t){const e=F(Cr,t);e.own&&Q[30](e.rep)}function oi(t){const e=F(Or,t);e.own&&Q[31](e.rep)}function ci(t){const e=F(Pr,t);e.own&&Q[32](e.rep)}const li=M.bind(null,Wr);function hi(t){const e=F(Wr,t);e.own&&Q[33](e.rep)}function ui(t){const e=F(ts,t);e.own&&Q[34](e.rep)}const di=M.bind(null,ls);function pi(t){const e=F(ls,t);e.own&&Q[35](e.rep)}const mi=M.bind(null,ys);function yi(t){const e=F(ys,t);e.own&&Q[36](e.rep)}function fi(t){const e=F(vs,t);e.own&&Q[37](e.rep)}const gi=M.bind(null,Er);function wi(t){const e=F(Er,t);e.own&&Q[28](e.rep)}const xi=M.bind(null,vs);function vi(t){const e=F(Z,t);if(e.own){const t=tt.get(e.rep);t?(t[j]&&t[j](),tt.delete(e.rep)):E[U]&&E[U](e.rep)}}function bi(t){const e=F(vt,t);if(e.own){const t=bt.get(e.rep);t?(t[j]&&t[j](),bt.delete(e.rep)):b[U]&&b[U](e.rep)}}function _i(t){const e=F(st,t);if(e.own){const t=it.get(e.rep);t?(t[j]&&t[j](),it.delete(e.rep)):_[U]&&_[U](e.rep)}}function Ei(t){const e=F(pt,t);if(e.own){const t=mt.get(e.rep);t?(t[j]&&t[j](),mt.delete(e.rep)):x[U]&&x[U](e.rep)}}const Ti=(()=>{let t,e,s,i=function*(){const t=I(new URL(r(7870),r.b)),e=I(new URL(r(1112),r.b)),s=I(new URL(r(9719),r.b)),i=I(new URL(r(450),r.b));({exports:Q}=yield P(yield s)),({exports:J}=yield P(yield t,{"[export]nomic-foundation:slang/bindings":{"[resource-drop]binding-graph":wi,"[resource-drop]built-in-location":ci,"[resource-drop]definition":ni,"[resource-drop]reference":ai,"[resource-drop]user-file-location":oi,"[resource-new]binding-graph":gi,"[resource-new]built-in-location":Ms,"[resource-new]definition":Ds,"[resource-new]reference":Ps,"[resource-new]user-file-location":qs},"[export]nomic-foundation:slang/compilation":{"[resource-drop]compilation-unit":yi,"[resource-drop]file":fi,"[resource-drop]internal-compilation-builder":pi,"[resource-new]compilation-unit":mi,"[resource-new]file":xi,"[resource-new]internal-compilation-builder":di},"[export]nomic-foundation:slang/cst":{"[resource-drop]ancestors-iterator":ti,"[resource-drop]cursor":Ws,"[resource-drop]cursor-iterator":zs,"[resource-drop]edge":$s,"[resource-drop]nonterminal-node":Gs,"[resource-drop]query":ii,"[resource-drop]query-match-iterator":ri,"[resource-drop]terminal-node":Xs,"[resource-new]ancestors-iterator":Zs,"[resource-new]cursor":Vs,"[resource-new]cursor-iterator":js,"[resource-new]edge":Ys,"[resource-new]nonterminal-node":Fs,"[resource-new]query":si,"[resource-new]query-match-iterator":ei,"[resource-new]terminal-node":Us,"[resource-rep]edge":Hs,"[resource-rep]nonterminal-node":Js,"[resource-rep]terminal-node":Qs},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-output":ui,"[resource-drop]parser":hi,"[resource-new]parse-output":Bs,"[resource-new]parser":li},wasi_snapshot_preview1:{environ_get:Q[14],environ_sizes_get:Q[15],fd_write:Q[13],proc_exit:Q[16],random_get:Q[12]}})),({exports:nt}=yield P(yield e,{__main_module__:{cabi_realloc:J.cabi_realloc},env:{memory:J.memory},"wasi:cli/environment@0.2.3":{"get-environment":Q[0]},"wasi:cli/exit@0.2.3":{exit:ut},"wasi:cli/stderr@0.2.3":{"get-stderr":rt},"wasi:cli/stdin@0.2.3":{"get-stdin":lt},"wasi:cli/stdout@0.2.3":{"get-stdout":ht},"wasi:filesystem/preopens@0.2.3":{"get-directories":Q[11]},"wasi:filesystem/types@0.2.3":{"[method]descriptor.append-via-stream":Q[2],"[method]descriptor.get-type":Q[3],"[method]descriptor.stat":Q[4],"[method]descriptor.write-via-stream":Q[1],"[resource-drop]descriptor":Ei,"filesystem-error-code":Q[5]},"wasi:io/error@0.2.3":{"[resource-drop]error":bi},"wasi:io/streams@0.2.3":{"[method]output-stream.blocking-flush":Q[9],"[method]output-stream.blocking-write-and-flush":Q[8],"[method]output-stream.check-write":Q[6],"[method]output-stream.write":Q[7],"[resource-drop]input-stream":_i,"[resource-drop]output-stream":vi},"wasi:random/random@0.2.3":{"get-random-bytes":Q[10]}})),at=J.memory,ot=nt.cabi_import_realloc,({exports:_t}=yield P(yield i,{"":{$imports:Q.$imports,0:dt,1:ft,10:Vt,11:jt,12:nt.random_get,13:nt.fd_write,14:nt.environ_get,15:nt.environ_sizes_get,16:nt.proc_exit,17:J["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],18:J["nomic-foundation:slang/cst#[dtor]nonterminal-node"],19:J["nomic-foundation:slang/cst#[dtor]terminal-node"],2:gt,20:J["nomic-foundation:slang/cst#[dtor]edge"],21:J["nomic-foundation:slang/cst#[dtor]cursor"],22:J["nomic-foundation:slang/cst#[dtor]cursor-iterator"],23:J["nomic-foundation:slang/cst#[dtor]ancestors-iterator"],24:J["nomic-foundation:slang/cst#[dtor]query"],25:J["nomic-foundation:slang/cst#[dtor]query-match-iterator"],26:J["nomic-foundation:slang/cst#[dtor]text-index-extensions"],27:J["nomic-foundation:slang/ast#[dtor]selectors"],28:J["nomic-foundation:slang/bindings#[dtor]binding-graph"],29:J["nomic-foundation:slang/bindings#[dtor]definition"],3:wt,30:J["nomic-foundation:slang/bindings#[dtor]reference"],31:J["nomic-foundation:slang/bindings#[dtor]user-file-location"],32:J["nomic-foundation:slang/bindings#[dtor]built-in-location"],33:J["nomic-foundation:slang/parser#[dtor]parser"],34:J["nomic-foundation:slang/parser#[dtor]parse-output"],35:J["nomic-foundation:slang/compilation#[dtor]internal-compilation-builder"],36:J["nomic-foundation:slang/compilation#[dtor]compilation-unit"],37:J["nomic-foundation:slang/compilation#[dtor]file"],38:J["nomic-foundation:slang/utils#[dtor]language-facts"],4:xt,5:qt,6:Mt,7:Ft,8:Ut,9:Yt}})),Et=J.cabi_realloc,Tt=J["cabi_post_nomic-foundation:slang/bindings#[method]definition.references"],St=J["cabi_post_nomic-foundation:slang/bindings#[method]user-file-location.file-id"],kt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],Rt=J["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],At=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Ct=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Lt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],It=J["cabi_post_nomic-foundation:slang/compilation#[method]file.errors"],Kt=J["cabi_post_nomic-foundation:slang/utils#[static]language-facts.all-versions"],Nt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-identifier"],Ot=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"],Dt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"],Wt=J["nomic-foundation:slang/cst#[static]nonterminal-node.create"],Xt=J["nomic-foundation:slang/cst#[method]nonterminal-node.id"],Qt=J["nomic-foundation:slang/cst#[method]nonterminal-node.kind"],Jt=J["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"],Zt=J["nomic-foundation:slang/cst#[method]nonterminal-node.children"],se=J["nomic-foundation:slang/cst#[method]nonterminal-node.descendants"],ie=J["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"],ne=J["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],ce=J["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"],ue=J["nomic-foundation:slang/cst#[static]terminal-node.create"],de=J["nomic-foundation:slang/cst#[method]terminal-node.id"],pe=J["nomic-foundation:slang/cst#[method]terminal-node.kind"],me=J["nomic-foundation:slang/cst#[method]terminal-node.text-length"],ye=J["nomic-foundation:slang/cst#[method]terminal-node.children"],fe=J["nomic-foundation:slang/cst#[method]terminal-node.descendants"],ge=J["nomic-foundation:slang/cst#[method]terminal-node.unparse"],we=J["nomic-foundation:slang/cst#[method]terminal-node.to-json"],xe=J["nomic-foundation:slang/cst#[static]edge.create-with-terminal"],ve=J["nomic-foundation:slang/cst#[static]edge.create-with-nonterminal"],be=J["nomic-foundation:slang/cst#[method]edge.label"],_e=J["nomic-foundation:slang/cst#[method]edge.node"],Ee=J["nomic-foundation:slang/cst#[method]cursor.reset"],Te=J["nomic-foundation:slang/cst#[method]cursor.complete"],Se=J["nomic-foundation:slang/cst#[method]cursor.is-completed"],ke=J["nomic-foundation:slang/cst#[method]cursor.clone"],Re=J["nomic-foundation:slang/cst#[method]cursor.spawn"],Ae=J["nomic-foundation:slang/cst#[method]cursor.node"],Ce=J["nomic-foundation:slang/cst#[method]cursor.label"],Le=J["nomic-foundation:slang/cst#[method]cursor.text-offset"],Ie=J["nomic-foundation:slang/cst#[method]cursor.text-range"],Ke=J["nomic-foundation:slang/cst#[method]cursor.depth"],Ne=J["nomic-foundation:slang/cst#[method]cursor.children"],Oe=J["nomic-foundation:slang/cst#[method]cursor.descendants"],De=J["nomic-foundation:slang/cst#[method]cursor.remaining-nodes"],Ye=J["nomic-foundation:slang/cst#[method]cursor.ancestors"],Ve=J["nomic-foundation:slang/cst#[method]cursor.go-to-next"],je=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendant"],Be=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous"],He=J["nomic-foundation:slang/cst#[method]cursor.go-to-parent"],$e=J["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"],Ge=J["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"],ze=J["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"],We=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"],Xe=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"],Qe=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"],Je=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"],Ze=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"],tr=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"],er=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"],rr=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"],or=J["nomic-foundation:slang/cst#[method]cursor.query"],cr=J["nomic-foundation:slang/cst#[method]cursor-iterator.next"],lr=J["nomic-foundation:slang/cst#[method]ancestors-iterator.next"],hr=J["nomic-foundation:slang/cst#[static]query.create"],ur=J["nomic-foundation:slang/cst#[method]query-match-iterator.next"],dr=J["nomic-foundation:slang/cst#[static]text-index-extensions.zero"],wr=J["nomic-foundation:slang/ast#[static]selectors.sequence"],xr=J["nomic-foundation:slang/ast#[static]selectors.choice"],vr=J["nomic-foundation:slang/ast#[static]selectors.repeated"],br=J["nomic-foundation:slang/ast#[static]selectors.separated"],Rr=J["nomic-foundation:slang/bindings#[method]binding-graph.definition-at"],Ir=J["nomic-foundation:slang/bindings#[method]binding-graph.reference-at"],Kr=J["nomic-foundation:slang/bindings#[method]definition.id"],Mr=J["nomic-foundation:slang/bindings#[method]definition.name-location"],Fr=J["nomic-foundation:slang/bindings#[method]definition.definiens-location"],Ur=J["nomic-foundation:slang/bindings#[method]definition.references"],Yr=J["nomic-foundation:slang/bindings#[method]reference.id"],Vr=J["nomic-foundation:slang/bindings#[method]reference.location"],jr=J["nomic-foundation:slang/bindings#[method]reference.definitions"],Br=J["nomic-foundation:slang/bindings#[method]user-file-location.file-id"],Hr=J["nomic-foundation:slang/bindings#[method]user-file-location.cursor"],Qr=J["nomic-foundation:slang/parser#[static]parser.create"],Jr=J["nomic-foundation:slang/parser#[method]parser.language-version"],rs=J["nomic-foundation:slang/parser#[method]parser.parse-file-contents"],ss=J["nomic-foundation:slang/parser#[method]parser.parse-nonterminal"],is=J["nomic-foundation:slang/parser#[method]parse-output.tree"],ns=J["nomic-foundation:slang/parser#[method]parse-output.errors"],as=J["nomic-foundation:slang/parser#[method]parse-output.is-valid"],os=J["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"],us=J["nomic-foundation:slang/compilation#[static]internal-compilation-builder.create"],ds=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.add-file"],ps=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.resolve-import"],gs=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.build"],ws=J["nomic-foundation:slang/compilation#[method]compilation-unit.language-version"],_s=J["nomic-foundation:slang/compilation#[method]compilation-unit.files"],Es=J["nomic-foundation:slang/compilation#[method]compilation-unit.file"],Ts=J["nomic-foundation:slang/compilation#[method]compilation-unit.binding-graph"],Ss=J["nomic-foundation:slang/compilation#[method]file.id"],ks=J["nomic-foundation:slang/compilation#[method]file.tree"],Rs=J["nomic-foundation:slang/compilation#[method]file.errors"],As=J["nomic-foundation:slang/compilation#[method]file.create-tree-cursor"],Cs=J["nomic-foundation:slang/utils#[static]language-facts.all-versions"],Ls=J["nomic-foundation:slang/utils#[static]language-facts.earliest-version"],Is=J["nomic-foundation:slang/utils#[static]language-facts.latest-version"],Ks=J["nomic-foundation:slang/utils#[static]language-facts.infer-language-versions"]}();const n=function r(n){try{let a;do{({value:n,done:a}=i.next(n))}while(!(n instanceof Promise||a));if(a){if(!e)return n;e(n)}t||(t=new Promise((t,r)=>(e=t,s=r))),n.then(r,s)}catch(t){if(!s)throw t;s(t)}}(null);return t||n})();await Ti;const Si={Selectors:_r},ki={AncestorsIterator:mr,Cursor:Me,CursorIterator:pr,Edge:qe,EdgeLabel:{Root:"Root",Unrecognized:"Unrecognized",Missing:"Missing",Item:"Item",Variant:"Variant",Separator:"Separator",Operand:"Operand",LeftOperand:"LeftOperand",RightOperand:"RightOperand",LeadingTrivia:"LeadingTrivia",TrailingTrivia:"TrailingTrivia",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",Alias:"Alias",AnonymousKeyword:"AnonymousKeyword",Arguments:"Arguments",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Assignment:"Assignment",Asterisk:"Asterisk",AtKeyword:"AtKeyword",Attributes:"Attributes",Block:"Block",Body:"Body",BreakKeyword:"BreakKeyword",CaseKeyword:"CaseKeyword",Cases:"Cases",CatchClauses:"CatchClauses",CatchKeyword:"CatchKeyword",Clause:"Clause",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",Condition:"Condition",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",DefaultKeyword:"DefaultKeyword",DoKeyword:"DoKeyword",Elements:"Elements",ElseBranch:"ElseBranch",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",End:"End",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualGreaterThan:"EqualGreaterThan",Error:"Error",ErrorKeyword:"ErrorKeyword",Event:"Event",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",Expression:"Expression",FallbackKeyword:"FallbackKeyword",FalseExpression:"FalseExpression",Feature:"Feature",Flags:"Flags",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImportKeyword:"ImportKeyword",Index:"Index",IndexedKeyword:"IndexedKeyword",Inheritance:"Inheritance",Initialization:"Initialization",InterfaceKeyword:"InterfaceKeyword",IsKeyword:"IsKeyword",Items:"Items",Iterator:"Iterator",KeyType:"KeyType",Label:"Label",LayoutKeyword:"LayoutKeyword",LeaveKeyword:"LeaveKeyword",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",Literal:"Literal",MappingKeyword:"MappingKeyword",Member:"Member",Members:"Members",Minus:"Minus",MinusGreaterThan:"MinusGreaterThan",ModifierKeyword:"ModifierKeyword",Name:"Name",NewKeyword:"NewKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",Operator:"Operator",Options:"Options",Overridden:"Overridden",OverrideKeyword:"OverrideKeyword",Parameters:"Parameters",Path:"Path",Paths:"Paths",PayableKeyword:"PayableKeyword",Period:"Period",Pragma:"Pragma",PragmaKeyword:"PragmaKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReturnKeyword:"ReturnKeyword",Returns:"Returns",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",Semicolon:"Semicolon",Sets:"Sets",SolidityKeyword:"SolidityKeyword",Specifiers:"Specifiers",Start:"Start",Statements:"Statements",StorageLocation:"StorageLocation",StructKeyword:"StructKeyword",SwitchKeyword:"SwitchKeyword",Symbols:"Symbols",Target:"Target",ThrowKeyword:"ThrowKeyword",TrueExpression:"TrueExpression",TryKeyword:"TryKeyword",TypeKeyword:"TypeKeyword",TypeName:"TypeName",Types:"Types",UncheckedKeyword:"UncheckedKeyword",Unit:"Unit",UsingKeyword:"UsingKeyword",Value:"Value",ValueType:"ValueType",VarKeyword:"VarKeyword",Variable:"Variable",VariableType:"VariableType",Variables:"Variables",Version:"Version",WhileKeyword:"WhileKeyword"},NodeType:u,NonterminalKind:{AbicoderPragma:"AbicoderPragma",AbicoderVersion:"AbicoderVersion",AdditiveExpression:"AdditiveExpression",AddressType:"AddressType",AndExpression:"AndExpression",ArgumentsDeclaration:"ArgumentsDeclaration",ArrayExpression:"ArrayExpression",ArrayTypeName:"ArrayTypeName",ArrayValues:"ArrayValues",AssemblyFlags:"AssemblyFlags",AssemblyFlagsDeclaration:"AssemblyFlagsDeclaration",AssemblyStatement:"AssemblyStatement",AssignmentExpression:"AssignmentExpression",BitwiseAndExpression:"BitwiseAndExpression",BitwiseOrExpression:"BitwiseOrExpression",BitwiseXorExpression:"BitwiseXorExpression",Block:"Block",BreakStatement:"BreakStatement",CallOptions:"CallOptions",CallOptionsExpression:"CallOptionsExpression",CatchClause:"CatchClause",CatchClauseError:"CatchClauseError",CatchClauses:"CatchClauses",ConditionalExpression:"ConditionalExpression",ConstantDefinition:"ConstantDefinition",ConstructorAttribute:"ConstructorAttribute",ConstructorAttributes:"ConstructorAttributes",ConstructorDefinition:"ConstructorDefinition",ContinueStatement:"ContinueStatement",ContractDefinition:"ContractDefinition",ContractMember:"ContractMember",ContractMembers:"ContractMembers",ContractSpecifier:"ContractSpecifier",ContractSpecifiers:"ContractSpecifiers",DecimalNumberExpression:"DecimalNumberExpression",DoWhileStatement:"DoWhileStatement",ElementaryType:"ElementaryType",ElseBranch:"ElseBranch",EmitStatement:"EmitStatement",EnumDefinition:"EnumDefinition",EnumMembers:"EnumMembers",EqualityExpression:"EqualityExpression",ErrorDefinition:"ErrorDefinition",ErrorParameter:"ErrorParameter",ErrorParameters:"ErrorParameters",ErrorParametersDeclaration:"ErrorParametersDeclaration",EventDefinition:"EventDefinition",EventParameter:"EventParameter",EventParameters:"EventParameters",EventParametersDeclaration:"EventParametersDeclaration",ExperimentalFeature:"ExperimentalFeature",ExperimentalPragma:"ExperimentalPragma",ExponentiationExpression:"ExponentiationExpression",Expression:"Expression",ExpressionStatement:"ExpressionStatement",FallbackFunctionAttribute:"FallbackFunctionAttribute",FallbackFunctionAttributes:"FallbackFunctionAttributes",FallbackFunctionDefinition:"FallbackFunctionDefinition",ForStatement:"ForStatement",ForStatementCondition:"ForStatementCondition",ForStatementInitialization:"ForStatementInitialization",FunctionAttribute:"FunctionAttribute",FunctionAttributes:"FunctionAttributes",FunctionBody:"FunctionBody",FunctionCallExpression:"FunctionCallExpression",FunctionDefinition:"FunctionDefinition",FunctionName:"FunctionName",FunctionType:"FunctionType",FunctionTypeAttribute:"FunctionTypeAttribute",FunctionTypeAttributes:"FunctionTypeAttributes",HexNumberExpression:"HexNumberExpression",HexStringLiteral:"HexStringLiteral",HexStringLiterals:"HexStringLiterals",IdentifierPath:"IdentifierPath",IfStatement:"IfStatement",ImportAlias:"ImportAlias",ImportClause:"ImportClause",ImportDeconstruction:"ImportDeconstruction",ImportDeconstructionSymbol:"ImportDeconstructionSymbol",ImportDeconstructionSymbols:"ImportDeconstructionSymbols",ImportDirective:"ImportDirective",IndexAccessEnd:"IndexAccessEnd",IndexAccessExpression:"IndexAccessExpression",InequalityExpression:"InequalityExpression",InheritanceSpecifier:"InheritanceSpecifier",InheritanceType:"InheritanceType",InheritanceTypes:"InheritanceTypes",InterfaceDefinition:"InterfaceDefinition",InterfaceMembers:"InterfaceMembers",LibraryDefinition:"LibraryDefinition",LibraryMembers:"LibraryMembers",MappingKey:"MappingKey",MappingKeyType:"MappingKeyType",MappingType:"MappingType",MappingValue:"MappingValue",MemberAccessExpression:"MemberAccessExpression",ModifierAttribute:"ModifierAttribute",ModifierAttributes:"ModifierAttributes",ModifierDefinition:"ModifierDefinition",ModifierInvocation:"ModifierInvocation",MultiplicativeExpression:"MultiplicativeExpression",NamedArgument:"NamedArgument",NamedArgumentGroup:"NamedArgumentGroup",NamedArguments:"NamedArguments",NamedArgumentsDeclaration:"NamedArgumentsDeclaration",NamedImport:"NamedImport",NewExpression:"NewExpression",NumberUnit:"NumberUnit",OrExpression:"OrExpression",OverridePaths:"OverridePaths",OverridePathsDeclaration:"OverridePathsDeclaration",OverrideSpecifier:"OverrideSpecifier",Parameter:"Parameter",Parameters:"Parameters",ParametersDeclaration:"ParametersDeclaration",PathImport:"PathImport",PositionalArguments:"PositionalArguments",PositionalArgumentsDeclaration:"PositionalArgumentsDeclaration",PostfixExpression:"PostfixExpression",Pragma:"Pragma",PragmaDirective:"PragmaDirective",PrefixExpression:"PrefixExpression",ReceiveFunctionAttribute:"ReceiveFunctionAttribute",ReceiveFunctionAttributes:"ReceiveFunctionAttributes",ReceiveFunctionDefinition:"ReceiveFunctionDefinition",ReturnStatement:"ReturnStatement",ReturnsDeclaration:"ReturnsDeclaration",RevertStatement:"RevertStatement",ShiftExpression:"ShiftExpression",SimpleVersionLiteral:"SimpleVersionLiteral",SourceUnit:"SourceUnit",SourceUnitMember:"SourceUnitMember",SourceUnitMembers:"SourceUnitMembers",StateVariableAttribute:"StateVariableAttribute",StateVariableAttributes:"StateVariableAttributes",StateVariableDefinition:"StateVariableDefinition",StateVariableDefinitionValue:"StateVariableDefinitionValue",Statement:"Statement",Statements:"Statements",StorageLayoutSpecifier:"StorageLayoutSpecifier",StorageLocation:"StorageLocation",StringExpression:"StringExpression",StringLiteral:"StringLiteral",StringLiterals:"StringLiterals",StructDefinition:"StructDefinition",StructMember:"StructMember",StructMembers:"StructMembers",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TupleDeconstructionElement:"TupleDeconstructionElement",TupleDeconstructionElements:"TupleDeconstructionElements",TupleDeconstructionStatement:"TupleDeconstructionStatement",TupleExpression:"TupleExpression",TupleMember:"TupleMember",TupleValue:"TupleValue",TupleValues:"TupleValues",TypeExpression:"TypeExpression",TypeName:"TypeName",TypedTupleMember:"TypedTupleMember",UncheckedBlock:"UncheckedBlock",UnicodeStringLiteral:"UnicodeStringLiteral",UnicodeStringLiterals:"UnicodeStringLiterals",UnnamedFunctionAttribute:"UnnamedFunctionAttribute",UnnamedFunctionAttributes:"UnnamedFunctionAttributes",UnnamedFunctionDefinition:"UnnamedFunctionDefinition",UntypedTupleMember:"UntypedTupleMember",UserDefinedValueTypeDefinition:"UserDefinedValueTypeDefinition",UsingAlias:"UsingAlias",UsingClause:"UsingClause",UsingDeconstruction:"UsingDeconstruction",UsingDeconstructionSymbol:"UsingDeconstructionSymbol",UsingDeconstructionSymbols:"UsingDeconstructionSymbols",UsingDirective:"UsingDirective",UsingOperator:"UsingOperator",UsingTarget:"UsingTarget",VariableDeclarationStatement:"VariableDeclarationStatement",VariableDeclarationType:"VariableDeclarationType",VariableDeclarationValue:"VariableDeclarationValue",VersionExpression:"VersionExpression",VersionExpressionSet:"VersionExpressionSet",VersionExpressionSets:"VersionExpressionSets",VersionLiteral:"VersionLiteral",VersionOperator:"VersionOperator",VersionPragma:"VersionPragma",VersionRange:"VersionRange",VersionTerm:"VersionTerm",WhileStatement:"WhileStatement",YulArguments:"YulArguments",YulAssignmentOperator:"YulAssignmentOperator",YulBlock:"YulBlock",YulBreakStatement:"YulBreakStatement",YulColonAndEqual:"YulColonAndEqual",YulContinueStatement:"YulContinueStatement",YulDefaultCase:"YulDefaultCase",YulEqualAndColon:"YulEqualAndColon",YulExpression:"YulExpression",YulForStatement:"YulForStatement",YulFunctionCallExpression:"YulFunctionCallExpression",YulFunctionDefinition:"YulFunctionDefinition",YulIfStatement:"YulIfStatement",YulLabel:"YulLabel",YulLeaveStatement:"YulLeaveStatement",YulLiteral:"YulLiteral",YulParameters:"YulParameters",YulParametersDeclaration:"YulParametersDeclaration",YulPath:"YulPath",YulPaths:"YulPaths",YulReturnsDeclaration:"YulReturnsDeclaration",YulStackAssignmentOperator:"YulStackAssignmentOperator",YulStackAssignmentStatement:"YulStackAssignmentStatement",YulStatement:"YulStatement",YulStatements:"YulStatements",YulSwitchCase:"YulSwitchCase",YulSwitchCases:"YulSwitchCases",YulSwitchStatement:"YulSwitchStatement",YulValueCase:"YulValueCase",YulVariableAssignmentStatement:"YulVariableAssignmentStatement",YulVariableDeclarationStatement:"YulVariableDeclarationStatement",YulVariableDeclarationValue:"YulVariableDeclarationValue",YulVariableNames:"YulVariableNames"},NonterminalNode:te,Query:yr,QueryMatchIterator:fr,TerminalKind:{Unrecognized:"Unrecognized",Missing:"Missing",ABIEncoderV2Keyword:"ABIEncoderV2Keyword",AbicoderKeyword:"AbicoderKeyword",AbicoderV1Keyword:"AbicoderV1Keyword",AbicoderV2Keyword:"AbicoderV2Keyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",AfterKeyword:"AfterKeyword",AliasKeyword:"AliasKeyword",Ampersand:"Ampersand",AmpersandAmpersand:"AmpersandAmpersand",AmpersandEqual:"AmpersandEqual",AnonymousKeyword:"AnonymousKeyword",ApplyKeyword:"ApplyKeyword",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Asterisk:"Asterisk",AsteriskAsterisk:"AsteriskAsterisk",AsteriskEqual:"AsteriskEqual",AtKeyword:"AtKeyword",AutoKeyword:"AutoKeyword",Bang:"Bang",BangEqual:"BangEqual",Bar:"Bar",BarBar:"BarBar",BarEqual:"BarEqual",BoolKeyword:"BoolKeyword",BreakKeyword:"BreakKeyword",ByteKeyword:"ByteKeyword",BytesKeyword:"BytesKeyword",CallDataKeyword:"CallDataKeyword",Caret:"Caret",CaretEqual:"CaretEqual",CaseKeyword:"CaseKeyword",CatchKeyword:"CatchKeyword",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",ColonEqual:"ColonEqual",Comma:"Comma",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",CopyOfKeyword:"CopyOfKeyword",DaysKeyword:"DaysKeyword",DecimalLiteral:"DecimalLiteral",DefaultKeyword:"DefaultKeyword",DefineKeyword:"DefineKeyword",DeleteKeyword:"DeleteKeyword",DoKeyword:"DoKeyword",DoubleQuotedHexStringLiteral:"DoubleQuotedHexStringLiteral",DoubleQuotedStringLiteral:"DoubleQuotedStringLiteral",DoubleQuotedUnicodeStringLiteral:"DoubleQuotedUnicodeStringLiteral",DoubleQuotedVersionLiteral:"DoubleQuotedVersionLiteral",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",EndOfLine:"EndOfLine",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualColon:"EqualColon",EqualEqual:"EqualEqual",EqualGreaterThan:"EqualGreaterThan",ErrorKeyword:"ErrorKeyword",EtherKeyword:"EtherKeyword",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",ExternalKeyword:"ExternalKeyword",FallbackKeyword:"FallbackKeyword",FalseKeyword:"FalseKeyword",FinalKeyword:"FinalKeyword",FinneyKeyword:"FinneyKeyword",FixedKeyword:"FixedKeyword",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",GreaterThan:"GreaterThan",GreaterThanEqual:"GreaterThanEqual",GreaterThanGreaterThan:"GreaterThanGreaterThan",GreaterThanGreaterThanEqual:"GreaterThanGreaterThanEqual",GreaterThanGreaterThanGreaterThan:"GreaterThanGreaterThanGreaterThan",GreaterThanGreaterThanGreaterThanEqual:"GreaterThanGreaterThanGreaterThanEqual",GweiKeyword:"GweiKeyword",HexKeyword:"HexKeyword",HexLiteral:"HexLiteral",HoursKeyword:"HoursKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImmutableKeyword:"ImmutableKeyword",ImplementsKeyword:"ImplementsKeyword",ImportKeyword:"ImportKeyword",InKeyword:"InKeyword",IndexedKeyword:"IndexedKeyword",InlineKeyword:"InlineKeyword",IntKeyword:"IntKeyword",InterfaceKeyword:"InterfaceKeyword",InternalKeyword:"InternalKeyword",IsKeyword:"IsKeyword",LayoutKeyword:"LayoutKeyword",LessThan:"LessThan",LessThanEqual:"LessThanEqual",LessThanLessThan:"LessThanLessThan",LessThanLessThanEqual:"LessThanLessThanEqual",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",MacroKeyword:"MacroKeyword",MappingKeyword:"MappingKeyword",MatchKeyword:"MatchKeyword",MemoryKeyword:"MemoryKeyword",Minus:"Minus",MinusEqual:"MinusEqual",MinusGreaterThan:"MinusGreaterThan",MinusMinus:"MinusMinus",MinutesKeyword:"MinutesKeyword",ModifierKeyword:"ModifierKeyword",MultiLineComment:"MultiLineComment",MultiLineNatSpecComment:"MultiLineNatSpecComment",MutableKeyword:"MutableKeyword",NewKeyword:"NewKeyword",NullKeyword:"NullKeyword",OfKeyword:"OfKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",OverrideKeyword:"OverrideKeyword",PartialKeyword:"PartialKeyword",PayableKeyword:"PayableKeyword",Percent:"Percent",PercentEqual:"PercentEqual",Period:"Period",Plus:"Plus",PlusEqual:"PlusEqual",PlusPlus:"PlusPlus",PragmaKeyword:"PragmaKeyword",PrivateKeyword:"PrivateKeyword",PromiseKeyword:"PromiseKeyword",PublicKeyword:"PublicKeyword",PureKeyword:"PureKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReferenceKeyword:"ReferenceKeyword",RelocatableKeyword:"RelocatableKeyword",ReturnKeyword:"ReturnKeyword",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",SMTCheckerKeyword:"SMTCheckerKeyword",SealedKeyword:"SealedKeyword",SecondsKeyword:"SecondsKeyword",Semicolon:"Semicolon",SingleLineComment:"SingleLineComment",SingleLineNatSpecComment:"SingleLineNatSpecComment",SingleQuotedHexStringLiteral:"SingleQuotedHexStringLiteral",SingleQuotedStringLiteral:"SingleQuotedStringLiteral",SingleQuotedUnicodeStringLiteral:"SingleQuotedUnicodeStringLiteral",SingleQuotedVersionLiteral:"SingleQuotedVersionLiteral",SizeOfKeyword:"SizeOfKeyword",Slash:"Slash",SlashEqual:"SlashEqual",SolidityKeyword:"SolidityKeyword",StaticKeyword:"StaticKeyword",StorageKeyword:"StorageKeyword",StringKeyword:"StringKeyword",StructKeyword:"StructKeyword",SuperKeyword:"SuperKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThisKeyword:"ThisKeyword",ThrowKeyword:"ThrowKeyword",Tilde:"Tilde",TransientKeyword:"TransientKeyword",TrueKeyword:"TrueKeyword",TryKeyword:"TryKeyword",TypeDefKeyword:"TypeDefKeyword",TypeKeyword:"TypeKeyword",TypeOfKeyword:"TypeOfKeyword",UfixedKeyword:"UfixedKeyword",UintKeyword:"UintKeyword",UncheckedKeyword:"UncheckedKeyword",UsingKeyword:"UsingKeyword",VarKeyword:"VarKeyword",VersionSpecifier:"VersionSpecifier",ViewKeyword:"ViewKeyword",VirtualKeyword:"VirtualKeyword",WeeksKeyword:"WeeksKeyword",WeiKeyword:"WeiKeyword",WhileKeyword:"WhileKeyword",Whitespace:"Whitespace",YearsKeyword:"YearsKeyword",YulAbstractKeyword:"YulAbstractKeyword",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",YulGweiKeyword:"YulGweiKeyword",YulHexKeyword:"YulHexKeyword",YulHexLiteral:"YulHexLiteral",YulHoursKeyword:"YulHoursKeyword",YulIdentifier:"YulIdentifier",YulIfKeyword:"YulIfKeyword",YulImmutableKeyword:"YulImmutableKeyword",YulImplementsKeyword:"YulImplementsKeyword",YulImportKeyword:"YulImportKeyword",YulInKeyword:"YulInKeyword",YulIndexedKeyword:"YulIndexedKeyword",YulInlineKeyword:"YulInlineKeyword",YulIntKeyword:"YulIntKeyword",YulInterfaceKeyword:"YulInterfaceKeyword",YulInternalKeyword:"YulInternalKeyword",YulIsKeyword:"YulIsKeyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModifierKeyword:"YulModifierKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNullKeyword:"YulNullKeyword",YulOfKeyword:"YulOfKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulStaticKeyword:"YulStaticKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSuperKeyword:"YulSuperKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulThisKeyword:"YulThisKeyword",YulThrowKeyword:"YulThrowKeyword",YulTrueKeyword:"YulTrueKeyword",YulTryKeyword:"YulTryKeyword",YulTypeDefKeyword:"YulTypeDefKeyword",YulTypeKeyword:"YulTypeKeyword",YulTypeOfKeyword:"YulTypeOfKeyword",YulUfixedKeyword:"YulUfixedKeyword",YulUintKeyword:"YulUintKeyword",YulUncheckedKeyword:"YulUncheckedKeyword",YulUsingKeyword:"YulUsingKeyword",YulVarKeyword:"YulVarKeyword",YulViewKeyword:"YulViewKeyword",YulVirtualKeyword:"YulVirtualKeyword",YulWeeksKeyword:"YulWeeksKeyword",YulWeiKeyword:"YulWeiKeyword",YulWhileKeyword:"YulWhileKeyword",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:Bt,TerminalNode:Pe,TextIndexExtensions:gr},Ri={ParseOutput:cs,Parser:Zr},Ai={LanguageFacts:Os};s()}catch(Ci){s(Ci)}},1)},1901(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K3:()=>i.K3,Rj:()=>i.Rj,Wp:()=>i.Wp,tQ:()=>i.tQ});var i=r(1406),n=t([i]),a=n.then?(await n)():n;i=a[0],s()}catch(t){s(t)}})},4687(t,e,r){r.d(e,{tN:()=>N,X5:()=>P,rN:()=>I,bd:()=>L,F7:()=>K});var s=r(838);const{addLeadingComment:i,addTrailingComment:n,addDanglingComment:a,hasNewline:o,hasNewlineInRange:c,getNextNonSpaceNonCommentCharacter:l,getNextNonSpaceNonCommentCharacterIndex:h}=s.util;function u(t,e){if(!t.body)return void a(t,e);const r=t.body.filter(t=>"EmptyStatement"!==t.type);0===r.length?a(t,e):i(r[0],e)}function d(t,e){"BlockStatement"===t.type?u(t,e):i(t,e)}function p(t,e,r,s,o,c){return!(!r||"IfStatement"!==r.type||!s)&&(")"===l(t,c.locEnd(o))?(n(e,o),!0):e===r.trueBody&&s===r.falseBody?("ExpressionStatement"===e.type?n(e,o):a(r,o),!0):"ExpressionStatement"===s.type?(u(s,o),!0):"IfStatement"===s.type?(d(s.trueBody,o),!0):r.trueBody===s&&(i(s,o),!0))}function m(t,e,r,s,i,a){return!(!r||"WhileStatement"!==r.type||!s)&&(")"===l(t,a.locEnd(i))?(n(e,i),!0):"BlockStatement"===s.type&&(u(s,i),!0))}function y(t,e,r,s){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(n(e,s),0):"BlockStatement"===r.type?(u(r,s),0):"TryStatement"===r.type?(d(r.finalizer,s),0):"CatchClause"!==r.type||(d(r.body,s),0)))}function f(t,e,r,s){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||r&&"Decorator"===r.type||(t.decorators&&0!==t.decorators.length?n(t.decorators[t.decorators.length-1],s):i(t,s),0))}function g(t,e,r,s,i){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==l(t,i.locEnd(r))||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(n(r,s),!0)}function w(t,e,r,s,i,a){return(e&&"FunctionTypeParam"===e.type&&r&&"FunctionTypeAnnotation"===r.type&&s&&"FunctionTypeParam"!==s.type||!(!e||"Identifier"!==e.type&&"AssignmentPattern"!==e.type||!r||"ArrowFunctionExpression"!==r.type&&"FunctionExpression"!==r.type&&"FunctionDeclaration"!==r.type&&"ObjectMethod"!==r.type&&"ClassMethod"!==r.type||")"!==l(t,a.locEnd(i))))&&(n(e,i),!0)}function x(t,e){return!(!t||"ImportSpecifier"!==t.type||(i(t,e),0))}function v(t,e,r,s){return e&&e.body&&0===e.body.length?(s?a(e,r):i(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(s?a(t,r):i(t,r),0))}const{addLeadingComment:b,addTrailingComment:_,addDanglingComment:E,getNextNonSpaceNonCommentCharacter:T}=s.util,{addLeadingComment:S,addTrailingComment:k,addDanglingComment:R,getNextNonSpaceNonCommentCharacter:A}=s.util,C=[function({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:i,options:n}){if(!r||"ContractDefinition"!==r.type)return!1;const a=T(t,n.locEnd(i));return s&&("InheritanceSpecifier"===s.type||s===r.storageLayout)||"{"===a?!e||"InheritanceSpecifier"!==e.type&&e!==r.storageLayout?(b(r,i),!0):(_(e,i),!0):0===r.subNodes.length&&(E(r,i),!0)},function({text:t,precedingNode:e,enclosingNode:r,comment:s,options:i}){if(!r||"ModifierInvocation"!==r.type)return!1;const n=A(t,i.locEnd(s));return"("===n?(S(r,s),!0):")"===n&&(e?(k(e,s),!0):"LineComment"===s.type?(S(r,s),!0):(R(r,s),!0))}];function L(t,e,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=t,u={text:e,precedingNode:c,enclosingNode:l,followingNode:h,comment:t,options:r};return!(!C.some(t=>t(u))&&!function(t,e,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=t;return!!(w(e,c,l,h,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(i(t,r),0))}(l,h,t)||p(e,c,l,h,t,r)||m(e,c,l,h,t,r)||y(l,c,h,t)||f(l,0,h,t)||x(l,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(i(t,r),0))}(l,0,t)||function(t,e,r,s){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(n(t,s),0))}(c,l,0,t)||v(l,s,t,a)||function(t,e,r,s,i){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&o(t,i.locEnd(s)))&&(n(r,s),!0)}(e,l,c,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(i(t,e),0))}(l,t)||g(e,l,c,t,r))}(t,e,r,s,a))}function I(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=t,h={text:e,precedingNode:a,enclosingNode:o,followingNode:l,comment:t,options:r};return!(!C.some(t=>t(h))&&!function(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=t;return!!(w(e,a,o,l,t,r)||function(t,e,r,s,n,a){const o=e&&!c(n,a.locEnd(e),a.locStart(s));return!(e&&o||!t||"ConditionalExpression"!==t.type||!r||(i(r,s),0))}(o,a,l,t,e,r)||x(o,t)||p(e,a,o,l,t,r)||m(e,a,o,l,t,r)||y(o,a,l,t)||f(o,0,l,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(i(t,e),0))}(o,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(i(e.arguments[0],r),!0)}(a,o,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(i(t,e),0))}(o,t)||v(o,s,t,n)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(i(t,r),0))}(o,0,t)||function(t,e,r){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!e||"ObjectExpression"!==e.type&&"ArrayExpression"!==e.type&&"TemplateLiteral"!==e.type&&"TaggedTemplateExpression"!==e.type||(i(e,r),0))}(o,l,t))}(t,e,r,s,n))}function K(t,e,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=t,y={text:e,precedingNode:c,enclosingNode:u,followingNode:d,comment:t,options:r};return!(!C.some(t=>t(y))&&!function(t,e,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=t;return!!(p(e,c,u,d,t,r)||m(e,c,u,d,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(n(t.value.left,r),0))}(u,c,t)||function(t,e,r,s){return!(")"!==l(t,s.locEnd(r))||(!e||("FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&("ArrowFunctionExpression"!==e.type||"CallExpression"===e.body.type&&0!==e.body.arguments.length)&&"ClassMethod"!==e.type&&"ObjectMethod"!==e.type||0!==e.params.length)&&("CallExpression"!==e.type&&"NewExpression"!==e.type||0!==e.arguments.length)?!e||"MethodDefinition"!==e.type||0!==e.value.params.length||(a(e.value,r),0):(a(e,r),0)))}(e,u,t,r)||g(e,u,c,t,r)||v(u,s,t,o)||function(t,e,r,s){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const i=h(t,s.locEnd(r));return"=>"===t.substr(i,2)&&(a(e,r),!0)}(e,u,t,r)||function(t,e,r,s,i){return!("("!==l(t,i.locEnd(s))||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(n(r,s),0))}(e,u,c,t,r)||function(t,e,r,s,a){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(i(s.name,a),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(n(r.constraint,a),0)))}(0,u,c,d,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(n(t,e),0))}(u,t))}(t,e,r,s,o))}function N(t){return"BlockComment"===t.type}const{hardline:O,join:D}=s.doc.builders;function P(t,e){const r=t.getValue();switch(r.type){case"BlockComment":if(function(t){const e=`*${t.value}*`.split("\n");return e.length>1&&e.every(t=>"*"===t.trim()[0])}(r)){const t=function(t){const e=t.value.split("\n");return["/*",D(O,e.map((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`)),"*/"]}(r);return r.trailing&&!s.util.hasNewline(e.originalText,e.locStart(r),{backwards:!0})?[O,t]:t}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},2101(t,e,r){function s(t){console.warn(`[2K\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},7671(t,e,r){function s(t,e){return e.range?e.range[t]:e.expression?.range?e.expression.range[t]:null}r.d(e,{A:()=>i});const i={locEnd:t=>s(1,t),locStart:t=>s(0,t)}},4242(t,e,r){r.d(e,{A:()=>c});var s=r(3121),i=r(6170),n=r(7638),a=r(2101);const o=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t,c=function(t,e,r=e){const c=i(r.compiler),l=s.parse(t,{loc:!0,range:!0,comments:!0});return s.visit(l,{PragmaDirective(t){"solidity"===t.name&&c&&(n(c,t.value)||(0,a.o)(`The compiler option is set to '${r.compiler}', which does not satisfy 'pragma solidity ${t.value}'.`))},ModifierDefinition(t){t.parameters||(t.parameters=[])},FunctionDefinition(t){t.isConstructor||t.modifiers.forEach(t=>{0===t.arguments?.length&&(t.arguments=null)})},ForStatement(t){t.initExpression&&(t.initExpression.omitSemicolon=!0),t.loopExpression.omitSemicolon=!0},HexLiteral(t){const e=t.value.slice(4,-1);t.value=r.singleQuote?`hex'${e}'`:`hex"${e}"`},Conditional(t){if(r.experimentalTernaries)for(;"TupleExpression"===t.condition.type&&!t.condition.isArray&&1===t.condition.components.length&&"Conditional"!==t.condition.components[0].type;)[t.condition]=t.condition.components},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=o(t.left,["%"]),t.right=o(t.right,["%"]);break;case"*":t.left=o(t.left,["/","%"]);break;case"/":t.left=o(t.left,["*","%"]);break;case"%":t.left=o(t.left,["*","/","%"]);break;case"**":if(!c)break;if(n(c,">=0.8.0")){t.right=o(t.right,["**"]);break}if("BinaryOperation"===t.right.type&&"**"===t.right.operator){const e={type:"BinaryOperation",operator:"**",left:t.left,right:t.right.left};t.left={type:"TupleExpression",components:[e],isArray:!1},t.right=t.right.right}break;case"<<":case">>":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**"]);break;case"&":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=o(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=o(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"==":case"!=":t.left=o(t.left,["==","!="]);break;case"||":t.left=o(t.left,["&&"]),t.right=o(t.right,["&&"])}}}),l}},2680(t,e,r){r.d(e,{A:()=>Ys});var s={};r.r(s),r.d(s,{addition:()=>nt,assignment:()=>Y,bit:()=>st,equality:()=>et,exponentiation:()=>ct,inequality:()=>rt,logical:()=>tt,multiplication:()=>at,shift:()=>it});var i={};r.r(i),r.d(i,{ArrayTypeName:()=>n,AssemblyAssignment:()=>c,AssemblyBlock:()=>_,AssemblyCall:()=>E,AssemblyCase:()=>T,AssemblyFor:()=>k,AssemblyFunctionDefinition:()=>A,AssemblyIf:()=>C,AssemblyLocalDefinition:()=>I,AssemblyMemberAccess:()=>K,AssemblyStackAssignment:()=>O,AssemblySwitch:()=>q,BinaryOperation:()=>lt,Block:()=>dt,BooleanLiteral:()=>pt,Break:()=>mt,BreakStatement:()=>yt,CatchClause:()=>gt,Conditional:()=>Tt,Continue:()=>St,ContinueStatement:()=>kt,ContractDefinition:()=>Ot,CustomErrorDefinition:()=>Pt,DecimalNumber:()=>qt,DoWhileStatement:()=>Vt,ElementaryTypeName:()=>Bt,EmitStatement:()=>Ht,EnumDefinition:()=>zt,EnumValue:()=>Wt,EventDefinition:()=>Qt,ExpressionStatement:()=>Zt,FileLevelConstant:()=>te,ForStatement:()=>ce,FunctionCall:()=>me,FunctionDefinition:()=>Ie,FunctionTypeName:()=>Me,HexLiteral:()=>Ve,HexNumber:()=>je,Identifier:()=>Be,IfStatement:()=>Xe,ImportDirective:()=>rr,IndexAccess:()=>cr,IndexRangeAccess:()=>lr,InheritanceSpecifier:()=>ur,InlineAssemblyStatement:()=>dr,LabelDefinition:()=>yr,Mapping:()=>gr,MemberAccess:()=>_r,ModifierDefinition:()=>Ir,ModifierInvocation:()=>Nr,NameValueExpression:()=>Or,NameValueList:()=>qr,NewExpression:()=>Mr,NumberLiteral:()=>Fr,PragmaDirective:()=>Ur,ReturnStatement:()=>Hr,RevertStatement:()=>$r,SourceUnit:()=>zr,StateVariableDeclaration:()=>Xr,StringLiteral:()=>Zr,StructDefinition:()=>es,ThrowStatement:()=>rs,TryStatement:()=>ns,TupleExpression:()=>cs,TypeDefinition:()=>ls,UnaryOperation:()=>hs,UncheckedStatement:()=>ds,UserDefinedTypeName:()=>ps,UsingForDeclaration:()=>fs,VariableDeclaration:()=>As,VariableDeclarationStatement:()=>Ks,WhileStatement:()=>qs});const n={print:({node:t,path:e,print:r})=>[e.call(r,"baseTypeName"),"[",t.length?e.call(r,"length"):"","]"]};var a=r(838);const{join:o}=a.doc.builders,c={print:({path:t,print:e})=>[o(", ",t.map(e,"names"))," := ",t.call(e,"expression")]},{group:l,indent:h,join:u,line:d,softline:p,hardline:m}=a.doc.builders,{isNextLineEmpty:y}=a.util,f=(t,e,r,s=()=>!0)=>{if(!t.comments)return"";function i(t){return!t.trailing&&!t.leading&&!t.printed&&s(t)}return u(d,e.map((t,e,s)=>{const n=t.getValue();if(!i(n))return null;n.printed=!0;const o=e===s.length-1||-1===s.slice(e+1).findIndex(i);return[r.printer.printComment(t,r),!o&&a.util.isNextLineEmpty(r.originalText,r.locEnd(n))?m:""]},"comments").filter(Boolean))};function g(t,e,r,s){const i=[];return t.each((t,e)=>{const n=t.getValue(),a=n.type;0!==i.length&&"LabelDefinition"!==a&&i.push(m),i.push(s(t)),!t.isLast&&y(r.originalText,r.locEnd(n)+1)&&i.push(m)},e),i}const w=(t,{firstSeparator:e=p,lastSeparator:r=e,grouped:s=!0}={})=>{const i=[h([e,t]),r];return s?l(i):i},x=(t,{firstSeparator:e,separator:r=[",",d],lastSeparator:s,grouped:i}={})=>w(u(r,t),{firstSeparator:e,lastSeparator:s,grouped:i}),v=(t,e)=>["TupleExpression","FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(e.type)?[" ",t]:l(h([d,t])),{hardline:b}=a.doc.builders,_={print:({node:t,options:e,path:r,print:s})=>0!==t.operations.length||t.comments?["{",w([g(r,"operations",e,s),f(t,r,e)],{firstSeparator:b,grouped:!1}),"}"]:"{}"},E={print:({node:t,path:e,print:r,options:s})=>0===t.arguments.length&&")"!==s.originalText.charAt(s.locEnd(t))?t.functionName:[t.functionName,"(",x(e.map(r,"arguments")),")"]},T={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]},{join:S}=a.doc.builders,k={print:({path:t,print:e})=>S(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])},{line:R}=a.doc.builders,A={print:({node:t,path:e,print:r})=>["function ",t.name,"(",x(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":w(["->",x(e.map(r,"returnArguments"),{firstSeparator:R,lastSeparator:""})],{firstSeparator:R}),e.call(r,"body")]},C={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]},{line:L}=a.doc.builders,I={print:({node:t,path:e,print:r})=>{const s=["let",x(e.map(r,"names"),{firstSeparator:L})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}},K={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},{hardline:N}=a.doc.builders,O={print:({node:t,path:e,print:r})=>[e.call(r,"expression"),N,"=: ",t.name]},{hardline:D,join:P}=a.doc.builders,q={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),D,P(D,t.map(e,"cases"))]},{group:M,line:F,indent:U}=a.doc.builders,Y={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left"),` ${t.operator}`,v(e.call(r,"right"),t.right)]},{group:V,line:j}=a.doc.builders,B=(t,e,r,s)=>{const i="end"===s.experimentalOperatorPosition?[" ",t.operator,j,e.call(r,"right")]:[j,t.operator," ",e.call(r,"right")],{parent:n}=e;return"BinaryOperation"===t.left.type||"BinaryOperation"===n.type&&!Y.match(n.operator)?i:V(i)},H=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(s);return a([s.call(i,"left"),o(B(r,s,i,n))])},$=({type:t,operator:e},r)=>"BinaryOperation"!==t||r.some(t=>t.match(e)),{group:G}=a.doc.builders,z=t=>e=>r=>{const{parent:s}=e;return $(s,t)?G(r):r},{indent:W}=a.doc.builders,X=["ReturnStatement","IfStatement","ForStatement","WhileStatement"],Q=t=>e=>r=>{for(let s=0,{node:i}=e;;s+=1){const n=e.getParentNode(s);if(X.includes(n.type))return r;if($(n,t))return W(r);if(i===n.right)return r;i=n}},J=t=>H(z(t),Q(t)),{indent:Z}=a.doc.builders,tt={match:t=>["&&","||"].includes(t),print:H(z([]),t=>e=>{for(let r=0,{node:s}=t;;r+=1){const i=t.getParentNode(r);if(X.includes(i.type))return e;if("Conditional"===i.type&&i.condition===s)return e;if($(i,[]))return Z(e);if(s===i.right)return e;s=i}})},et={match:t=>["==","!="].includes(t),print:J([tt])},rt={match:t=>["<",">","<=",">="].includes(t),print:J([tt,et])},st={match:t=>["&","|","^"].includes(t),print:J([rt,et,tt])},it={match:t=>["<<",">>"].includes(t),print:J([st,rt,et,tt])},nt={match:t=>["+","-"].includes(t),print:J([it,st,rt,et,tt])},at={match:t=>["*","/","%"].includes(t),print:J([nt,it,st,rt,et,tt])},{group:ot}=a.doc.builders,ct={match:t=>"**"===t,print:H(()=>t=>ot(t),Q([at,nt,it,st,rt,et,tt]))},lt={print:({node:t,path:e,print:r,options:i})=>{const n=Object.values(s).find(e=>e.match(t.operator));if(void 0===n)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(t.operator)}`);return n.print(t,e,r,i)}},{hardline:ht,indent:ut}=a.doc.builders,dt={print:({node:t,options:e,path:r,print:s})=>0!==t.statements.length||t.comments?["{",ut([ht,g(r,"statements",e,s),f(t,r,e)]),ht,"}"]:"{}"},pt={print:({node:t})=>t.value?"true":"false"},mt={print:()=>"break"},yt={print:()=>"break;"},ft=(t,e,r)=>t.parameters?[t.kind||"","(",x(e.map(r,"parameters")),") "]:"",gt={print:({node:t,path:e,print:r})=>["catch ",ft(t,e,r),e.call(r,"body")]},{group:wt,hardline:xt,ifBreak:vt,indent:bt,line:_t,softline:Et}=a.doc.builders,Tt={print:({node:t,path:e,print:r,options:s})=>s.experimentalTernaries?((t,e,r,s)=>{const{parent:i}=e,n="Conditional"===i.type,a=n&&i.trueExpression===t,o="Conditional"===t.falseExpression.type,c=e.call(r,"condition"),l=wt(["TupleExpression"===t.condition.type?c:vt(["(",w(c),")"],c)," ?"]),h=bt([a?xt:_t,e.call(r,"trueExpression")]),u=wt([l,h],{id:Symbol("Conditional.trueExpression")});let d=" ";!o&&(s.tabWidth>2||s.useTabs)&&(d=s.useTabs?"\t":" ".repeat(s.tabWidth-1));const p=e.call(r,"falseExpression"),m=[n?xt:_t,":",o?[" ",p]:vt([d,bt(p)],[" ",p],{groupId:u.id})];return wt([u,m])})(t,e,r,s):((t,e)=>wt([t.call(e,"condition"),bt(["Conditional"===t.parent.type?xt:_t,"? ",t.call(e,"trueExpression"),_t,": ",t.call(e,"falseExpression")])]))(e,r)},St={print:()=>"continue"},kt={print:()=>"continue;"},{group:Rt,hardline:At,ifBreak:Ct,line:Lt,softline:It}=a.doc.builders,Kt=(t,e,r)=>{const s=[];if(t.baseContracts.length>0&&s.push(["is",x(e.map(r,"baseContracts"),{firstSeparator:Lt})]),t.storageLayout&&s.push(["layout at",w(e.call(r,"storageLayout"),{firstSeparator:Lt,lastSeparator:0===t.baseContracts.length?Lt:""})]),0===s.length)return Lt;if(1===s.length)return[" ",s];const i=Symbol("ContractSpecifiers.inheritance");return x([Rt(s[0],{id:i}),s[1]],{firstSeparator:Lt,separator:Ct("",It,{groupId:i})})},Nt=(t,e,r,s)=>{const i=f(t,e,r);return t.subNodes.length>0||i?.length?w([g(e,"subNodes",r,s),i],{firstSeparator:At,grouped:!1}):""},Ot={print:({node:t,options:e,path:r,print:s})=>[Rt(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,Kt(t,r,s),"{"]),Nt(t,r,e,s),"}"]},Dt=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",Pt={print:({node:t,path:e,print:r})=>["error ",t.name,"(",Dt(t,e,r),");"]},qt={print:({node:t})=>t.value},{group:Mt,indent:Ft,line:Ut}=a.doc.builders,Yt=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:Mt([Ft([Ut,e.call(r,"body")]),Ut]),Vt={print:({node:t,path:e,print:r})=>["do",Yt(t,e,r),"while (",w(e.call(r,"condition")),");"]},jt=t=>t.stateMutability?.length>0?[" ",t.stateMutability]:"",Bt={print:({node:t})=>[t.name,jt(t)]},Ht={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:$t,hardline:Gt}=a.doc.builders,zt={print:({node:t,path:e,print:r})=>$t(["enum ",t.name," {",x(e.map(r,"members"),{firstSeparator:Gt}),"}"])},Wt={print:({node:t})=>t.name},Xt=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",Qt={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Xt(t,e,r),")",t.isAnonymous?" anonymous":"",";"]},{hardline:Jt}=a.doc.builders,Zt={print:({node:t,options:e,path:r,print:s})=>{const i=[],{parent:n}=r;if("IfStatement"===n.type&&t.comments?.length){const s=f(t,r,e);s?.length&&(i.push(s),i.push(Jt))}return i.push(r.call(s,"expression")),i.push(t.omitSemicolon?"":";"),i}},te={print:({node:t,path:e,print:r})=>[e.call(r,"typeName")," constant ",t.name," =",v(e.call(r,"initialValue"),t.initialValue),";"]},{group:ee,indent:re,line:se}=a.doc.builders,ie=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",ne=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",ae=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",oe=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:ee(re([se,e.call(r,"body")])),ce={print:({node:t,path:e,print:r})=>["for (",x([ie(t,e,r),ne(t,e,r),ae(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",se]:";"}),")",oe(t,e,r)]},{group:le,indentIfBreak:he,label:ue,line:de,softline:pe}=a.doc.builders,me={print:({node:t,path:e,print:r,options:s})=>{let i=e.call(r,"expression"),n=")";return t.arguments?.length>0&&(n=t.identifiers?.length>0?((t,e,r)=>{const s=t.map(e,"identifiers");return["{",x(t.map(e,"arguments").map((t,e)=>[s[e],": ",t]),{firstSeparator:r.bracketSpacing?de:pe,lastSeparator:[r.bracketSpacing?de:pe,"})"]})]})(e,r,s):((t,e)=>x(t.map(e,"arguments"),{lastSeparator:[pe,")"]}))(e,r)),"MemberAccessChain"===i.label?(i=le(i.contents,{id:Symbol("FunctionCall.expression")}),n=he(n,{groupId:i.id}),ue("MemberAccessChain",[i,"(",n])):[i,"(",n].flat()}},{dedent:ye,group:fe,indent:ge,join:we,line:xe}=a.doc.builders,{getNextNonSpaceNonCommentCharacter:ve}=a.util,be=(t,e)=>t.isConstructor&&!t.name?"constructor":t.name?`function ${t.name}`:t.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[e.originalText.slice(e.locStart(t),e.locStart(t)+8)],_e=(t,e,r,s,i)=>{if(e[t]?.length>0)return x(r.map(s,t),{grouped:!1});if(e.comments?.length>0){const t=f(e,r,i,t=>")"===ve(i.originalText,i.locEnd(t)));return t.length>0?w(t):""}return""},Ee=t=>t.visibility&&"default"!==t.visibility?[xe,t.visibility]:"",Te=t=>t.isVirtual?[xe,"virtual"]:"",Se=(t,e,r)=>t.override?0===t.override.length?[xe,"override"]:[xe,"override(",x(e.map(r,"override")),")"]:"",ke=t=>t.stateMutability?[xe,t.stateMutability]:"",Re=(t,e,r)=>t.modifiers.length>0?[xe,we(xe,e.map(r,"modifiers"))]:"",Ae=(t,e,r,s)=>t.returnParameters?[xe,"returns (",fe(_e("returnParameters",t,e,r,s)),")"]:"",Ce=t=>t.body?ye(xe):";",Le=(t,e,r)=>t.body?e.call(r,"body"):"",Ie={print:({node:t,path:e,print:r,options:s})=>[fe([be(t,s),"(",_e("parameters",t,e,r,s),")",ge(fe([f(t,e,s),Ee(t),ke(t),Te(t),Se(t,e,r),Re(t,e,r),Ae(t,e,r,s),Ce(t)]))]),Le(t,e,r)]},{group:Ke,indent:Ne,line:Oe}=a.doc.builders,De=(t,e,r)=>t.returnTypes.length>0?[Oe,"returns (",x(e.map(r,"returnTypes")),")"]:"",Pe=t=>t.visibility&&"default"!==t.visibility?[Oe,t.visibility]:"",qe=t=>t.stateMutability&&"default"!==t.stateMutability?[Oe,t.stateMutability]:"",Me={print:({node:t,path:e,print:r})=>Ke(["function(",x(e.map(r,"parameterTypes"),{grouped:!1}),")",Ne(Ke([Pe(t),qe(t),De(t,e,r)]))])};function Fe(t,e){const r={quote:'"',regex:/"/g},s={quote:"'",regex:/'/g},i=e.singleQuote?s:r,n=i===s?r:s;let o=!1;(t.includes(i.quote)||t.includes(n.quote))&&(o=(t.match(i.regex)||[]).length>(t.match(n.regex)||[]).length);const c=o?n.quote:i.quote;return a.util.makeString(t,c)}const{join:Ue,hardline:Ye}=a.doc.builders,Ve={print:({node:t,options:e})=>{const r=t.parts.map(t=>`hex${Fe(t,e)}`);return Ue(Ye,r)}},je={print:({node:t})=>t.value},Be={print:({node:t})=>t.name},{group:He,hardline:$e,indent:Ge,line:ze}=a.doc.builders,We=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:He(Ge([ze,e.call(r,"falseBody")])),Xe={print:({node:t,options:e,path:r,print:s})=>{const i=(t.comments||[]).filter(t=>!t.leading&&!t.trailing),n=[];return n.push("if (",w(r.call(s,"condition")),")"),n.push(((t,e,r)=>{if("Block"===t.trueBody.type)return[" ",e.call(r,"trueBody")];const s="IfStatement"===t.trueBody.type;return He(Ge([s?$e:ze,e.call(r,"trueBody")]))})(t,r,s)),i.length&&t.falseBody&&(n.push($e),n.push(f(t,r,e))),n.push(((t,e,r,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":$e,"else",We(t,e,r)]:"")(t,r,s,i)),n}};var Qe=r(6170),Je=r(7638);const{group:Ze,line:tr,softline:er}=a.doc.builders,rr={print:({node:t,options:e})=>{const r=Fe(t.path,e);let s;if(t.unitAlias)s=e.originalText.slice(e.locStart(t),e.locStart(t.pathLiteral)).includes("*")?["* as ",t.unitAlias," from ",r]:[r," as ",t.unitAlias];else if(t.symbolAliases){const i=Qe(e.compiler),n=t.symbolAliases.map(([t,e])=>e?`${t} as ${e}`:t);let a,o;i&&Je(i,">=0.7.4")&&n.length>1?(a=e.bracketSpacing?tr:er,o=[",",tr]):(a=e.bracketSpacing?" ":"",o=", "),s=["{",x(n,{firstSeparator:a,separator:o}),"} from ",r]}else s=r;return Ze(["import ",s,";"])}},{group:sr,indent:ir,indentIfBreak:nr,label:ar,softline:or}=a.doc.builders,cr={print:({path:t,print:e})=>{let r=t.call(e,"base"),s=sr([ir([or,t.call(e,"index")]),or,"]"]);return"MemberAccessChain"===r.label?(r=sr(r.contents,{id:Symbol("IndexAccess.base")}),s=nr(s,{groupId:r.id}),ar("MemberAccessChain",[r,"[",s])):[r,"[",s].flat()}},lr={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]},hr=(t,e,r)=>t.arguments?.length?["(",x(e.map(r,"arguments")),")"]:"",ur={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),hr(t,e,r)]},dr={print:({node:t,path:e,print:r,options:s})=>["assembly ",t.language?`${Fe(t.language,s)} `:"",t.flags?.length>0?["(",x(t.flags.map(t=>Fe(t,s))),") "]:"",e.call(r,"body")]},{dedent:pr,line:mr}=a.doc.builders,yr={print:({node:t})=>[pr(mr),t.name,":"]},fr=(t,e,r,s)=>e[`${t}Name`]?[r.call(s,`${t}Type`)," ",r.call(s,`${t}Name`)]:r.call(s,`${t}Type`),gr={print:({node:t,path:e,print:r})=>["mapping(",fr("key",t,e,r)," => ",fr("value",t,e,r),")"]},{group:wr,indent:xr,label:vr,softline:br}=a.doc.builders,_r={print:({node:t,path:e,print:r})=>{let s=e.call(r,"expression");Array.isArray(s)&&(s=s.flat());const i=[s,vr("separator",[br,"."]),t.memberName].flat();return((t,e)=>{let r=0,s=t,i=e.getParentNode(r);for(;i&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(i.type);){switch(i.type){case"MemberAccess":return!1;case"IndexAccess":if(s!==i.base)return!0;break;case"FunctionCall":if(s!==i.expression)return!0}r+=1,s=i,i=e.getParentNode(r)}return!0})(t,e)?(t=>{const e=t.findIndex(t=>"separator"===t.label),r=t.slice(0,e),s=wr(xr(t.slice(e)));return vr("MemberAccessChain",wr([r,s]))})(i):i}},{dedent:Er,group:Tr,indent:Sr,line:kr}=a.doc.builders,Rr=(t,e,r)=>t.parameters?.length>0?["(",x(e.map(r,"parameters"),{separator:[",",kr]}),")"]:"()",Ar=t=>t.isVirtual?[kr,"virtual"]:"",Cr=(t,e,r)=>t.override?0===t.override.length?[kr,"override"]:[kr,"override(",x(e.map(r,"override")),")"]:"",Lr=(t,e,r)=>t.body?t.isVirtual?Tr(e.call(r,"body")):[e.call(r,"body")]:";",Ir={print:({node:t,path:e,print:r})=>["modifier ",t.name,Rr(t,e,r),Tr(Sr([Ar(t),Cr(t,e,r),t.body?Er(kr):""])),Lr(t,e,r)]},Kr=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",x(e.map(r,"arguments")),")"]:"()":t.comments?.some(t=>!t.leading&&!t.trailing&&!t.printed)?["(",f(t,e,s),")"]:"",Nr={print:({node:t,path:e,print:r,options:s})=>[t.name,Kr(t,e,r,s)]},Or={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:Dr,softline:Pr}=a.doc.builders,qr={print:({node:t,path:e,print:r,options:s})=>x(e.map(r,"arguments").map((e,r)=>[t.names[r],": ",e]),{firstSeparator:s.bracketSpacing?Dr:Pr})},Mr={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},Fr={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},Ur={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:Yr,indent:Vr,line:jr}=a.doc.builders,Br=(t,e,r,s)=>t.expression?"TupleExpression"===t.expression.type||s.experimentalTernaries&&"Conditional"===t.expression.type?[" ",e.call(r,"expression")]:Yr(Vr([jr,e.call(r,"expression")])):"",Hr={print:({node:t,path:e,print:r,options:s})=>["return",Br(t,e,r,s),";"]},$r={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:Gr}=a.doc.builders,zr={print:({node:t,options:e,path:r,print:s})=>[g(r,"children",e,s),f(t,r,e),e.parentParser?"":Gr]},Wr=(t,e,r)=>t.initialValue?[" =",v(e.call(r,"initialValue"),t.initialValue)]:"",Xr={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),Wr(t,e,r),";"]},{join:Qr,hardline:Jr}=a.doc.builders,Zr={print:({node:t,options:e})=>{const r=t.parts.map((r,s)=>(t.isUnicode[s]?"unicode":"")+Fe(r,e));return Qr(Jr,r)}},{hardline:ts}=a.doc.builders,es={print:({node:t,path:e,print:r})=>["struct ",t.name," {",t.members.length>0?x(e.map(r,"members"),{firstSeparator:ts,separator:[";",ts],lastSeparator:[";",ts]}):"","}"]},rs={print:()=>"throw;"},{join:ss,line:is}=a.doc.builders,ns={print:({node:t,path:e,print:r})=>{let s=["try",w(e.call(r,"expression"),{firstSeparator:is})];const i=((t,e,r)=>t.returnParameters?["returns (",x(e.map(r,"returnParameters")),")"]:"")(t,e,r);return i&&(s=s.concat([i," "])),s=s.concat([e.call(r,"body")," ",ss(" ",e.map(r,"catchClauses"))]),s}},{group:as}=a.doc.builders,os=(t,e,r)=>1===t.components?.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):x(e.map(r,"components")),cs={print:({node:t,path:e,print:r})=>as([t.isArray?"[":"(",os(t,e,r),t.isArray?"]":")"])},ls={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},hs={print:({node:t,path:e,print:r})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(r,"subExpression")]:[e.call(r,"subExpression"),t.operator]},{group:us}=a.doc.builders,ds={print:({path:t,print:e})=>us(["unchecked ",t.call(e,"block")])},ps={print:({node:t})=>t.namePath},{line:ms,softline:ys}=a.doc.builders,fs={print:({node:t,path:e,print:r,options:s})=>["using ",t.functions?.length?["{",x(t.functions.map((e,r)=>t.operators[r]?[e," as ",t.operators[r]]:e),{firstSeparator:s.bracketSpacing?ms:ys}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]},{group:gs,indent:ws,line:xs}=a.doc.builders,vs=t=>t.isIndexed?" indexed":"",bs=t=>t.visibility&&"default"!==t.visibility?[xs,t.visibility]:"",_s=t=>t.isDeclaredConst?" constant":"",Es=t=>t.storageLocation&&"default"!==t.visibility?[xs,t.storageLocation]:"",Ts=t=>t.isImmutable?" immutable":"",Ss=t=>t.isTransient?" transient":"",ks=(t,e,r)=>t.override?0===t.override.length?[xs,"override"]:[xs,"override(",x(e.map(r,"override")),")"]:"",Rs=t=>t.name?[" ",t.name]:"",As={print:({node:t,path:e,print:r})=>t.typeName?gs([e.call(r,"typeName"),ws([vs(t),bs(t),_s(t),Es(t),Ts(t),Ss(t),ks(t,e,r),Rs(t)])]):t.name},{group:Cs,indentIfBreak:Ls,line:Is}=a.doc.builders,Ks={print:({node:t,path:e,print:r})=>{const s=0===t.variables.filter(t=>t?.typeName).length,i=Cs([s?"var ":"",(n=e.map(r,"variables"),a=t.variables.length>1||s,a?["(",x(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((t,e,r)=>t.initialValue?[" =",v(e.call(r,"initialValue"),t.initialValue)]:"")(t,e,r);return Cs([i,Ls(o,{groupId:i.id}),t.omitSemicolon?"":";"])}},{group:Ns,indent:Os,line:Ds}=a.doc.builders,Ps=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Ns(Os([Ds,e.call(r,"body")])),qs={print:({node:t,path:e,print:r})=>["while (",w(e.call(r,"condition")),")",Ps(t,e,r)]};var Ms=r(2101);const Fs=function t(e){const r=e.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach(s=>{switch(s){case"loc":case"range":break;case"comments":e.each(t=>{t.getValue().printed=!0},"comments");break;default:if("object"==typeof r[s]){if(Array.isArray(r[s]))return void e.each(t,s);e.call(t,s)}}})},Us=function(){let t;return()=>(void 0===t&&((0,Ms.o)("The 'antlr' parser has been deprecated, please use 'slang' instead."),t=!0),t)}(),Ys=function(t,e,r){Us();const s=t.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return function(t){return t?.comments?.length>0&&t.comments.some(t=>"prettier-ignore"===t.value.trim())}(s)?(Fs(t),e.originalText.slice(e.locStart(s),e.locEnd(s)+1)):i[s.type].print({node:s,options:e,path:t,print:r})}}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t].call(r.exports,r,r.exports,o),r.exports}t="function"==typeof Symbol,e=t?Symbol("webpack queues"):"__webpack_queues__",r=t?Symbol("webpack exports"):"__webpack_exports__",s=t?Symbol("webpack error"):"__webpack_error__",i=t=>{t&&t.d<1&&(t.d=1,t.forEach(t=>t.r--),t.forEach(t=>t.r--?t.r++:t()))},o.a=(t,n,a)=>{var o;a&&((o=[]).d=-1);var c,l,h,u=new Set,d=t.exports,p=new Promise((t,e)=>{h=e,l=t});p[r]=d,p[e]=t=>(o&&t(o),u.forEach(t),p.catch(t=>{})),t.exports=p,n(t=>{var n;c=(t=>t.map(t=>{if(null!==t&&"object"==typeof t){if(t[e])return t;if(t.then){var n=[];n.d=0,t.then(t=>{a[r]=t,i(n)},t=>{a[s]=t,i(n)});var a={};return a[e]=t=>t(n),a}}var o={};return o[e]=t=>{},o[r]=t,o}))(t);var a=()=>c.map(t=>{if(t[s])throw t[s];return t[r]}),l=new Promise(t=>{(n=()=>t(a)).r=0;var r=t=>t!==o&&!u.has(t)&&(u.add(t),t&&!t.d&&(n.r++,t.push(n)));c.map(t=>t[e](r))});return n.r?l:a()},t=>(t?h(p[s]=t):l(d),i(o))),o&&o.d<0&&(o.d=0)},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),o.b=void 0;var c=o(8156);const l=(c=await c).A;export{l as default};var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{};h.prettierPlugins=h.prettierPlugins||{},h.prettierPlugins.solidity=l;
|
|
1
|
+
var t,e,r,s,i,n={3121(t){var e;"undefined"!=typeof globalThis||"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,e=()=>{var t=(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={};((e,r)=>{for(var s in r)t(e,s,{get:r[s],enumerable:!0})})(i,{ParserError:()=>Oe,default:()=>Fe,parse:()=>Pe,tokenize:()=>De,visit:()=>qe});var n={92:()=>{}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};(()=>{o.d(c,{dx:()=>W,q2:()=>At,FO:()=>Ee,xf:()=>ke,Gy:()=>Le,s4:()=>Nt,c7:()=>Oe,_7:()=>ce,tx:()=>_e,gp:()=>xe,cK:()=>Ct,zs:()=>ge,AV:()=>ke,Xp:()=>x,VS:()=>v,ul:()=>z,hW:()=>Mt,x1:()=>Xt,z5:()=>ee,oN:()=>de,TB:()=>pe,u1:()=>me,_b:()=>Pe,$F:()=>se,_T:()=>Fe,db:()=>ie,Zx:()=>te,_x:()=>Pt,r8:()=>q,JI:()=>K,TP:()=>N,WU:()=>t,Nj:()=>h,ZP:()=>Xe});class t{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}}function e(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!(t[r]===e[r]||t[r].equals&&t[r].equals(e[r])))return!1;return!0}t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1;const r=Math.round(Math.random()*Math.pow(2,32));function s(t){if(!t)return 0;const e=typeof t,s="string"===e?t:!("object"!==e||!t.toString)&&t.toString();if(!s)return 0;let i,n;const a=3&s.length,o=s.length-a;let c=r;const l=3432918353,h=461845907;let u=0;for(;u<o;)n=255&s.charCodeAt(u)|(255&s.charCodeAt(++u))<<8|(255&s.charCodeAt(++u))<<16|(255&s.charCodeAt(++u))<<24,++u,n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n,c=c<<13|c>>>19,i=5*(65535&c)+((5*(c>>>16)&65535)<<16)&4294967295,c=27492+(65535&i)+((58964+(i>>>16)&65535)<<16);switch(n=0,a){case 3:n^=(255&s.charCodeAt(u+2))<<16;case 2:n^=(255&s.charCodeAt(u+1))<<8;case 1:n^=255&s.charCodeAt(u),n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n}return c^=s.length,c^=c>>>16,c=2246822507*(65535&c)+((2246822507*(c>>>16)&65535)<<16)&4294967295,c^=c>>>13,c=3266489909*(65535&c)+((3266489909*(c>>>16)&65535)<<16)&4294967295,c^=c>>>16,c>>>0}class i{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=s(e);break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let r=this.hash^t;r=r<<13|r>>>19,r=5*r+3864292196,this.hash=r}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}static hashStuff(){const t=new i;return t.update.apply(t,arguments),t.finish()}}function n(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function a(t,e){return t?t.equals(e):t===e}function l(t){return null===t?"null":t}function h(t){return Array.isArray(t)?"["+t.map(l).join(", ")+"]":"null"}const u="h-";class d{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||a}add(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e];return r.push(t),t}return this.data[e]=[t],t}has(t){return null!=this.get(t)}get(t){const e=u+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e]}return null}values(){return Object.keys(this.data).filter(t=>t.startsWith(u)).flatMap(t=>this.data[t],this)}toString(){return h(this.values())}get length(){return Object.keys(this.data).filter(t=>t.startsWith(u)).map(t=>this.data[t].length,this).reduce((t,e)=>t+e,0)}}class p{hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===p.NONE)return e;if(null===e||e===p.NONE)return t;const r=new m(t,e);return 1===r.opnds.length?r.opnds[0]:r}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===p.NONE||e===p.NONE)return p.NONE;const r=new y(t,e);return 1===r.opnds.length?r.opnds[0]:r}}class m extends p{constructor(t,e){super();const r=new d;t instanceof m?t.opnds.map(function(t){r.add(t)}):r.add(t),e instanceof m?e.opnds.map(function(t){r.add(t)}):r.add(e);const s=f(r);if(s.length>0){let t=null;s.map(function(e){(null===t||e.precedence<t.precedence)&&(t=e)}),r.add(t)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof m&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(!this.opnds[r].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,null===a)return null;a!==p.NONE&&s.push(a)}if(!r)return this;if(0===s.length)return p.NONE;let i=null;return s.map(function(t){i=null===i?t:p.andContext(i,t)}),i}toString(){const t=this.opnds.map(t=>t.toString());return(t.length>3?t.slice(3):t).join("&&")}}class y extends p{constructor(t,e){super();const r=new d;t instanceof y?t.opnds.map(function(t){r.add(t)}):r.add(t),e instanceof y?e.opnds.map(function(t){r.add(t)}):r.add(e);const s=f(r);if(s.length>0){const t=s.sort(function(t,e){return t.compareTo(e)}),e=t[t.length-1];r.add(e)}this.opnds=Array.from(r.values())}equals(t){return this===t||t instanceof y&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(this.opnds[r].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(t,e);if(r|=a!==n,a===p.NONE)return p.NONE;null!==a&&s.push(a)}return r?(0===s.length||s.map(function(t){return t}),null):this}toString(){const t=this.opnds.map(t=>t.toString());return(t.length>3?t.slice(3):t).join("||")}}function f(t){const e=[];return t.values().map(function(t){t instanceof p.PrecedencePredicate&&e.push(t)}),e}function g(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const r={};return r.state=t.state||null,r.alt=void 0===t.alt?null:t.alt,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}}class w{constructor(t,e){this.checkContext(t,e),t=g(t),e=g(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:p.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new i;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof w&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==p.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class x{constructor(t,e){this.start=t,this.stop=e}clone(){return new x(this.start,this.stop)}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}}x.INVALID_INTERVAL=new x(-1,-2);class v{constructor(){this.intervals=null,this.readOnly=!1}first(e){return null===this.intervals||0===this.intervals.length?t.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new x(t,t+1))}addRange(t,e){this.addInterval(new x(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t.clone());else{for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t.stop<r.start)return void this.intervals.splice(e,0,t);if(t.stop===r.start)return void(this.intervals[e]=new x(t.start,r.stop));if(t.start<=r.stop)return this.intervals[e]=new x(Math.min(r.start,t.start),Math.max(r.stop,t.stop)),void this.reduce(e)}this.intervals.push(t.clone())}}addSet(t){return null!==t.intervals&&t.intervals.forEach(t=>this.addInterval(t),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],r=this.intervals[t+1];e.stop>=r.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=r.start&&(this.intervals[t]=new x(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new v;return r.addInterval(new x(t,e+1)),null!==this.intervals&&this.intervals.forEach(t=>r.removeRange(t)),r}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let r=0;r<this.intervals.length;r++){const r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new x(r.start,t.start);const s=new x(t.stop,r.stop);return void this.intervals.splice(e,0,s)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new x(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new x(t.stop,r.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t<r.start)return;if(t===r.start&&t===r.stop-1)return void this.intervals.splice(e,1);if(t===r.start)return void(this.intervals[e]=new x(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new x(r.start,r.stop-1));if(t<r.stop-1){const s=new x(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,s)}}}toString(t,e,r){return t=t||null,e=e||null,r=r||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):r?this.toCharString():this.toIndexString()}toCharString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(s.start)+"'"):e.push("'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]}toIndexString(){const e=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push(s.start.toString()):e.push(s.start.toString()+".."+(s.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]}toTokenString(t,e){const r=[];for(let s=0;s<this.intervals.length;s++){const i=this.intervals[s];for(let s=i.start;s<i.stop;s++)r.push(this.elementName(t,e,s))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(e,r,s){return s===t.EOF?"<EOF>":s===t.EPSILON?"<EPSILON>":e[s]||r[s]}get length(){return this.intervals.map(t=>t.length).reduce((t,e)=>t+e)}}class b{constructor(){this.atn=null,this.stateNumber=b.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof b&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}}b.INVALID_TYPE=0,b.BASIC=1,b.RULE_START=2,b.BLOCK_START=3,b.PLUS_BLOCK_START=4,b.STAR_BLOCK_START=5,b.TOKEN_START=6,b.RULE_STOP=7,b.BLOCK_END=8,b.STAR_LOOP_BACK=9,b.STAR_LOOP_ENTRY=10,b.PLUS_LOOP_BACK=11,b.LOOP_END=12,b.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],b.INVALID_STATE_NUMBER=-1;class _ extends b{constructor(){return super(),this.stateType=b.RULE_STOP,this}}class E{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}E.EPSILON=1,E.RANGE=2,E.RULE=3,E.PREDICATE=4,E.ATOM=5,E.ACTION=6,E.SET=7,E.NOT_SET=8,E.WILDCARD=9,E.PRECEDENCE=10,E.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],E.serializationTypes={EpsilonTransition:E.EPSILON,RangeTransition:E.RANGE,RuleTransition:E.RULE,PredicateTransition:E.PREDICATE,AtomTransition:E.ATOM,ActionTransition:E.ACTION,SetTransition:E.SET,NotSetTransition:E.NOT_SET,WildcardTransition:E.WILDCARD,PrecedencePredicateTransition:E.PRECEDENCE};class T extends E{constructor(t,e,r,s){super(t),this.ruleIndex=e,this.precedence=r,this.followState=s,this.serializationType=E.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}}class S extends E{constructor(e,r){super(e),this.serializationType=E.SET,null!=r?this.label=r:(this.label=new v,this.label.addOne(t.INVALID_TYPE))}matches(t,e,r){return this.label.contains(t)}toString(){return this.label.toString()}}class k extends S{constructor(t,e){super(t,e),this.serializationType=E.NOT_SET}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}}class R extends E{constructor(t){super(t),this.serializationType=E.WILDCARD}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}}class A extends E{constructor(t){super(t)}}class C{}class L extends C{}class I extends L{}class K extends I{get ruleContext(){throw new Error("missing interface implementation")}}class N extends I{}class O extends N{}const D={toStringTree:function(t,e,r){e=e||null,null!==(r=r||null)&&(e=r.ruleNames);let s=D.getNodeText(t,e);s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const i=t.getChildCount();if(0===i)return s;let n="("+s+" ";i>0&&(s=D.toStringTree(t.getChild(0),e),n=n.concat(s));for(let r=1;r<i;r++)s=D.toStringTree(t.getChild(r),e),n=n.concat(" "+s);return n=n.concat(")"),n},getNodeText:function(e,r,s){if(r=r||null,null!==(s=s||null)&&(r=s.ruleNames),null!==r){if(e instanceof K){const t=e.ruleContext.getAltNumber();return 0!=t?r[e.ruleIndex]+":"+t:r[e.ruleIndex]}if(e instanceof O)return e.toString();if(e instanceof N&&null!==e.symbol)return e.symbol.text}const i=e.getPayload();return i instanceof t?i.text:e.getPayload().toString()},getChildren:function(t){const e=[];for(let r=0;r<t.getChildCount();r++)e.push(t.getChild(r));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return D.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return D.findAllNodes(t,e,!1)},findAllNodes:function(t,e,r){const s=[];return D._findAllNodes(t,e,r,s),s},_findAllNodes:function(t,e,r,s){r&&t instanceof N?t.symbol.type===e&&s.push(t):!r&&t instanceof K&&t.ruleIndex===e&&s.push(t);for(let i=0;i<t.getChildCount();i++)D._findAllNodes(t.getChild(i),e,r,s)},descendants:function(t){let e=[t];for(let r=0;r<t.getChildCount();r++)e=e.concat(D.descendants(t.getChild(r)));return e}},P=D;class q extends K{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return x.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map(function(t){return t.getText()}).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return P.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let r=this,s="[";for(;null!==r&&r!==e;){if(null===t)r.isEmpty()||(s+=r.invokingState);else{const e=r.ruleIndex;s+=e>=0&&e<t.length?t[e]:""+e}null===r.parentCtx||null===t&&r.parentCtx.isEmpty()||(s+=" "),r=r.parentCtx}return s+="]",s}}class M{constructor(t){this.cachedHashCode=t}isEmpty(){return this===M.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===M.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}M.EMPTY=null,M.EMPTY_RETURN_STATE=2147483647,M.globalNodeCount=1,M.id=M.globalNodeCount,M.trace_atn_sim=!1;class F extends M{constructor(t,e){const r=new i;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===M.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof F&&this.hashCode()===t.hashCode()&&e(this.returnStates,t.returnStates)&&e(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==M.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}}class U extends M{constructor(t,e){let r=0;const s=new i;null!==t?s.update(t,e):s.update(1),r=s.finish(),super(r),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof U&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===M.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===M.EMPTY_RETURN_STATE&&null===t?M.EMPTY:new U(t,e)}}class Y extends U{constructor(){super(null,M.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}M.EMPTY=new Y;const V="h-";class j{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||a}set(t,e){const r=V+this.hashFunction(t);if(r in this.data){const s=this.data[r];for(let r=0;r<s.length;r++){const i=s[r];if(this.equalsFunction(t,i.key)){const t=i.value;return i.value=e,t}}return s.push({key:t,value:e}),e}return this.data[r]=[{key:t,value:e}],e}containsKey(t){const e=V+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return!0}}return!1}get(t){const e=V+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const s=r[e];if(this.equalsFunction(t,s.key))return s.value}}return null}entries(){return Object.keys(this.data).filter(t=>t.startsWith(V)).flatMap(t=>this.data[t],this)}getKeys(){return this.entries().map(t=>t.key)}getValues(){return this.entries().map(t=>t.value)}toString(){return"["+this.entries().map(t=>"{"+t.key+":"+t.value+"}").join(", ")+"]"}get length(){return Object.keys(this.data).filter(t=>t.startsWith(V)).map(t=>this.data[t].length,this).reduce((t,e)=>t+e,0)}}function B(t,e){if(null==e&&(e=q.EMPTY),null===e.parentCtx||e===q.EMPTY)return M.EMPTY;const r=B(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return U.create(r,s.followState.stateNumber)}function H(t,e,r){if(t.isEmpty())return t;let s=r.get(t)||null;if(null!==s)return s;if(s=e.get(t),null!==s)return r.set(t,s),s;let i=!1,n=[];for(let s=0;s<n.length;s++){const a=H(t.getParent(s),e,r);if(i||a!==t.getParent(s)){if(!i){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);i=!0}n[s]=a}}if(!i)return e.add(t),r.set(t,t),t;let a=null;return a=0===n.length?M.EMPTY:1===n.length?U.create(n[0],t.getReturnState(0)):new F(n,t.returnStates),e.add(a),r.set(a,a),r.set(t,a),a}function $(t,e,r,s){if(t===e)return t;if(t instanceof U&&e instanceof U)return function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return r;if(r=s.get(e,t),null!==r)return r}const i=function(t,e,r){if(r){if(t===M.EMPTY)return M.EMPTY;if(e===M.EMPTY)return M.EMPTY}else{if(t===M.EMPTY&&e===M.EMPTY)return M.EMPTY;if(t===M.EMPTY){const t=[e.returnState,M.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new F(r,t)}if(e===M.EMPTY){const e=[t.returnState,M.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new F(r,e)}}return null}(t,e,r);if(null!==i)return null!==s&&s.set(t,e,i),i;if(t.returnState===e.returnState){const i=$(t.parentCtx,e.parentCtx,r,s);if(i===t.parentCtx)return t;if(i===e.parentCtx)return e;const n=U.create(i,t.returnState);return null!==s&&s.set(t,e,n),n}{let r=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(r=t.parentCtx),null!==r){const i=[t.returnState,e.returnState];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState);const n=new F([r,r],i);return null!==s&&s.set(t,e,n),n}const i=[t.returnState,e.returnState];let n=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(i[0]=e.returnState,i[1]=t.returnState,n=[e.parentCtx,t.parentCtx]);const a=new F(n,i);return null!==s&&s.set(t,e,a),a}}(t,e,r,s);if(r){if(t instanceof Y)return t;if(e instanceof Y)return e}return t instanceof U&&(t=new F([t.getParent()],[t.returnState])),e instanceof U&&(e=new F([e.getParent()],[e.returnState])),function(t,e,r,s){if(null!==s){let r=s.get(t,e);if(null!==r)return M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r;if(r=s.get(e,t),null!==r)return M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),r}let i=0,n=0,a=0,o=new Array(t.returnStates.length+e.returnStates.length).fill(0),c=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;i<t.returnStates.length&&n<e.returnStates.length;){const l=t.parents[i],h=e.parents[n];if(t.returnStates[i]===e.returnStates[n]){const e=t.returnStates[i];e===M.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[a]=l,o[a]=e):(c[a]=$(l,h,r,s),o[a]=e),i+=1,n+=1}else t.returnStates[i]<e.returnStates[n]?(c[a]=l,o[a]=t.returnStates[i],i+=1):(c[a]=h,o[a]=e.returnStates[n],n+=1);a+=1}if(i<t.returnStates.length)for(let e=i;e<t.returnStates.length;e++)c[a]=t.parents[e],o[a]=t.returnStates[e],a+=1;else for(let t=n;t<e.returnStates.length;t++)c[a]=e.parents[t],o[a]=e.returnStates[t],a+=1;if(a<c.length){if(1===a){const r=U.create(c[0],o[0]);return null!==s&&s.set(t,e,r),r}c=c.slice(0,a),o=o.slice(0,a)}const l=new F(c,o);return l.equals(t)?(null!==s&&s.set(t,e,t),M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):l.equals(e)?(null!==s&&s.set(t,e,e),M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new j;for(let r=0;r<t.length;r++){const s=t[r];e.containsKey(s)||e.set(s,s)}for(let r=0;r<t.length;r++)t[r]=e.get(t[r])}(c),null!==s&&s.set(t,e,l),M.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> "+l),l)}(t,e,r,s)}class G{constructor(){this.data=[]}add(t){this.data[t]=!0}or(t){Object.keys(t.data).map(t=>this.add(t),this)}remove(t){delete this.data[t]}has(t){return!0===this.data[t]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return i.hashStuff(this.values())}equals(t){return t instanceof G&&e(this.data,t.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class z{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,r=[];for(let s=0;s<e;s++){r[s]=new v;const e=new d,i=!1;this._LOOK(t.transition(s).target,null,M.EMPTY,r[s],e,new G,i,!1),(0===r[s].length||r[s].contains(z.HIT_PRED))&&(r[s]=null)}return r}LOOK(t,e,r){const s=new v,i=null!==(r=r||null)?B(t.atn,r):null;return this._LOOK(t,e,i,s,new d,new G,!0,!0),s}_LOOK(e,r,s,i,n,a,o,c){const l=new w({state:e,alt:0,context:s},null);if(!n.has(l)){if(n.add(l),e===r){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF)}if(e instanceof _){if(null===s)return void i.addOne(t.EPSILON);if(s.isEmpty()&&c)return void i.addOne(t.EOF);if(s!==M.EMPTY){const t=a.has(e.ruleIndex);try{a.remove(e.ruleIndex);for(let t=0;t<s.length;t++){const e=this.atn.states[s.getReturnState(t)];this._LOOK(e,r,s.getParent(t),i,n,a,o,c)}}finally{t&&a.add(e.ruleIndex)}return}}for(let l=0;l<e.transitions.length;l++){const h=e.transitions[l];if(h.constructor===T){if(a.has(h.target.ruleIndex))continue;const t=U.create(s,h.followState.stateNumber);try{a.add(h.target.ruleIndex),this._LOOK(h.target,r,t,i,n,a,o,c)}finally{a.remove(h.target.ruleIndex)}}else if(h instanceof A)o?this._LOOK(h.target,r,s,i,n,a,o,c):i.addOne(z.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,s,i,n,a,o,c);else if(h.constructor===R)i.addRange(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let e=h.label;null!==e&&(h instanceof k&&(e=e.complement(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(e))}}}}}z.HIT_PRED=t.INVALID_TYPE;class W{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new z(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(e,r){if(e<0||e>=this.states.length)throw"Invalid state number.";const s=this.states[e];let i=this.nextTokens(s);if(!i.contains(t.EPSILON))return i;const n=new v;for(n.addSet(i),n.removeOne(t.EPSILON);null!==r&&r.invokingState>=0&&i.contains(t.EPSILON);){const e=this.states[r.invokingState].transitions[0];i=this.nextTokens(e.followState),n.addSet(i),n.removeOne(t.EPSILON),r=r.parentCtx}return i.contains(t.EPSILON)&&n.addOne(t.EOF),n}}W.INVALID_ALT_NUMBER=0;class X extends b{constructor(){super(),this.stateType=b.BASIC}}class Q extends b{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class J extends Q{constructor(){return super(),this.endState=null,this}}class Z extends b{constructor(){return super(),this.stateType=b.BLOCK_END,this.startState=null,this}}class tt extends b{constructor(){return super(),this.stateType=b.LOOP_END,this.loopBackState=null,this}}class et extends b{constructor(){return super(),this.stateType=b.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class rt extends Q{constructor(){return super(),this.stateType=b.TOKEN_START,this}}class st extends Q{constructor(){return super(),this.stateType=b.PLUS_LOOP_BACK,this}}class it extends b{constructor(){return super(),this.stateType=b.STAR_LOOP_BACK,this}}class nt extends Q{constructor(){return super(),this.stateType=b.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class at extends J{constructor(){return super(),this.stateType=b.PLUS_BLOCK_START,this.loopBackState=null,this}}class ot extends J{constructor(){return super(),this.stateType=b.STAR_BLOCK_START,this}}class ct extends J{constructor(){return super(),this.stateType=b.BLOCK_START,this}}class lt extends E{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=E.ATOM}makeLabel(){const t=new v;return t.addOne(this.label_),t}matches(t,e,r){return this.label_===t}toString(){return this.label_}}class ht extends E{constructor(t,e,r){super(t),this.serializationType=E.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel()}makeLabel(){const t=new v;return t.addRange(this.start,this.stop),t}matches(t,e,r){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class ut extends E{constructor(t,e,r,s){super(t),this.serializationType=E.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this.isEpsilon=!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class dt extends E{constructor(t,e){super(t),this.serializationType=E.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,r){return!1}toString(){return"epsilon"}}class pt extends p{constructor(t,e,r){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==r&&r}evaluate(t,e){const r=this.isCtxDependent?e:null;return t.sempred(r,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof pt&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}p.NONE=new pt;class mt extends A{constructor(t,e,r,s){super(t),this.serializationType=E.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=s,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new pt(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class yt extends p{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?p.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof yt&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}p.PrecedencePredicate=yt;class ft extends A{constructor(t,e){super(t),this.serializationType=E.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new yt(this.precedence)}toString(){return this.precedence+" >= _p"}}class gt{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}gt.defaultOptions=new gt,gt.defaultOptions.readOnly=!0;class wt{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class xt extends wt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}xt.INSTANCE=new xt;class vt extends wt{constructor(t){super(0),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof vt&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}}class bt extends wt{constructor(t,e){super(1),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof bt&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}}class _t extends wt{constructor(){super(3)}execute(t){t.more()}toString(){return"more"}}_t.INSTANCE=new _t;class Et extends wt{constructor(t){super(7),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof Et&&this.type===t.type}toString(){return"type("+this.type+")"}}class Tt extends wt{constructor(t){super(5),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof Tt&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}}class St extends wt{constructor(){super(4)}execute(t){t.popMode()}toString(){return"popMode"}}St.INSTANCE=new St;class kt extends wt{constructor(t){super(2),this.mode=t}execute(t){t.mode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof kt&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}}function Rt(t,e){const r=[];return r[t-1]=e,r.map(function(t){return e})}class At{constructor(t){null==t&&(t=gt.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}deserialize(t){const e=this.reset(t);this.checkVersion(e),e&&this.skipUUID();const r=this.readATN();this.readStates(r,e),this.readRules(r,e),this.readModes(r);const s=[];return this.readSets(r,s,this.readInt.bind(this)),e&&this.readSets(r,s,this.readInt32.bind(this)),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r,e),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&1===r.grammarType&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}reset(t){if(3===(t.charCodeAt?t.charCodeAt(0):t[0])){const e=function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534},r=t.split("").map(e);return r[0]=t.charCodeAt(0),this.data=r,this.pos=0,!0}return this.data=t,this.pos=0,!1}skipUUID(){let t=0;for(;t++<8;)this.readInt()}checkVersion(t){const e=this.readInt();if(!t&&4!==e)throw"Could not deserialize ATN with version "+e+" (expected 4)."}readATN(){const t=this.readInt(),e=this.readInt();return new W(t,e)}readStates(t,e){let r,s,i;const n=[],a=[],o=this.readInt();for(let r=0;r<o;r++){const r=this.readInt();if(r===b.INVALID_TYPE){t.addState(null);continue}let s=this.readInt();e&&65535===s&&(s=-1);const i=this.stateFactory(r,s);if(r===b.LOOP_END){const t=this.readInt();n.push([i,t])}else if(i instanceof J){const t=this.readInt();a.push([i,t])}t.addState(i)}for(r=0;r<n.length;r++)s=n[r],s[0].loopBackState=t.states[s[1]];for(r=0;r<a.length;r++)s=a[r],s[0].endState=t.states[s[1]];let c=this.readInt();for(r=0;r<c;r++)i=this.readInt(),t.states[i].nonGreedy=!0;let l=this.readInt();for(r=0;r<l;r++)i=this.readInt(),t.states[i].isPrecedenceRule=!0}readRules(e,r){let s;const i=this.readInt();for(0===e.grammarType&&(e.ruleToTokenType=Rt(i,0)),e.ruleToStartState=Rt(i,0),s=0;s<i;s++){const i=this.readInt();if(e.ruleToStartState[s]=e.states[i],0===e.grammarType){let i=this.readInt();r&&65535===i&&(i=t.EOF),e.ruleToTokenType[s]=i}}for(e.ruleToStopState=Rt(i,0),s=0;s<e.states.length;s++){const t=e.states[s];t instanceof _&&(e.ruleToStopState[t.ruleIndex]=t,e.ruleToStartState[t.ruleIndex].stopState=t)}}readModes(t){const e=this.readInt();for(let r=0;r<e;r++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,r){const s=this.readInt();for(let t=0;t<s;t++){const t=new v;e.push(t);const s=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<s;e++){const e=r(),s=r();t.addRange(e,s)}}}readEdges(t,e){let r,s,i,n,a;const o=this.readInt();for(r=0;r<o;r++){const r=this.readInt(),s=this.readInt(),i=this.readInt(),a=this.readInt(),o=this.readInt(),c=this.readInt();n=this.edgeFactory(t,i,r,s,a,o,c,e),t.states[r].addTransition(n)}for(r=0;r<t.states.length;r++)for(i=t.states[r],s=0;s<i.transitions.length;s++){const e=i.transitions[s];if(!(e instanceof T))continue;let r=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(r=e.target.ruleIndex),n=new dt(e.followState,r),t.ruleToStopState[e.target.ruleIndex].addTransition(n)}for(r=0;r<t.states.length;r++){if(i=t.states[r],i instanceof J){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof st)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof at&&(a.loopBackState=i);else if(i instanceof it)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof nt&&(a.loopBackState=i)}}readDecisions(t){const e=this.readInt();for(let r=0;r<e;r++){const e=this.readInt(),s=t.states[e];t.decisionToState.push(s),s.decision=r}}readLexerActions(t,e){if(0===t.grammarType){const r=this.readInt();t.lexerActions=Rt(r,null);for(let s=0;s<r;s++){const r=this.readInt();let i=this.readInt();e&&65535===i&&(i=-1);let n=this.readInt();e&&65535===n&&(n=-1),t.lexerActions[s]=this.lexerActionFactory(r,i,n)}}}generateRuleBypassTransitions(t){let e;const r=t.ruleToStartState.length;for(e=0;e<r;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<r;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let r,s;const i=new ct;i.ruleIndex=e,t.addState(i);const n=new Z;n.ruleIndex=e,t.addState(n),i.endState=n,t.defineDecisionState(i),n.startState=i;let a=null,o=null;if(t.ruleToStartState[e].isPrecedenceRule){for(o=null,r=0;r<t.states.length;r++)if(s=t.states[r],this.stateIsEndStateFor(s,e)){o=s,a=s.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else o=t.ruleToStopState[e];for(r=0;r<t.states.length;r++){s=t.states[r];for(let t=0;t<s.transitions.length;t++){const e=s.transitions[t];e!==a&&e.target===o&&(e.target=n)}}const c=t.ruleToStartState[e],l=c.transitions.length;for(;l>0;)i.addTransition(c.transitions[l-1]),c.transitions=c.transitions.slice(-1);t.ruleToStartState[e].addTransition(new dt(i)),n.addTransition(new dt(o));const h=new X;t.addState(h),h.addTransition(new lt(n,t.ruleToTokenType[e])),i.addTransition(new dt(h))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof nt))return null;const r=t.transitions[t.transitions.length-1].target;return r instanceof tt&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof _?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const r=t.states[e];if(r instanceof nt&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){const t=r.transitions[r.transitions.length-1].target;t instanceof tt&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof _&&(r.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const r=t.states[e];if(null!==r)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof at)this.checkCondition(null!==r.loopBackState);else if(r instanceof nt)if(this.checkCondition(null!==r.loopBackState),this.checkCondition(2===r.transitions.length),r.transitions[0].target instanceof ot)this.checkCondition(r.transitions[1].target instanceof tt),this.checkCondition(!r.nonGreedy);else{if(!(r.transitions[0].target instanceof tt))throw"IllegalState";this.checkCondition(r.transitions[1].target instanceof ot),this.checkCondition(r.nonGreedy)}else r instanceof it?(this.checkCondition(1===r.transitions.length),this.checkCondition(r.transitions[0].target instanceof nt)):r instanceof tt?this.checkCondition(null!==r.loopBackState):r instanceof et?this.checkCondition(null!==r.stopState):r instanceof J?this.checkCondition(null!==r.endState):r instanceof Z?this.checkCondition(null!==r.startState):r instanceof Q?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof _)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(e,r,s,i,n,a,o,c){const l=e.states[i];switch(r){case E.EPSILON:return new dt(l);case E.RANGE:return new ht(l,0!==o?t.EOF:n,a);case E.RULE:return new T(e.states[n],a,o,l);case E.PREDICATE:return new mt(l,n,a,0!==o);case E.PRECEDENCE:return new ft(l,n);case E.ATOM:return new lt(l,0!==o?t.EOF:n);case E.ACTION:return new ut(l,n,a,0!==o);case E.SET:return new S(l,c[n]);case E.NOT_SET:return new k(l,c[n]);case E.WILDCARD:return new R(l);default:throw"The specified transition type: "+r+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[b.INVALID_TYPE]=null,t[b.BASIC]=()=>new X,t[b.RULE_START]=()=>new et,t[b.BLOCK_START]=()=>new ct,t[b.PLUS_BLOCK_START]=()=>new at,t[b.STAR_BLOCK_START]=()=>new ot,t[b.TOKEN_START]=()=>new rt,t[b.RULE_STOP]=()=>new _,t[b.BLOCK_END]=()=>new Z,t[b.STAR_LOOP_BACK]=()=>new it,t[b.STAR_LOOP_ENTRY]=()=>new nt,t[b.PLUS_LOOP_BACK]=()=>new st,t[b.LOOP_END]=()=>new tt,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const r=this.stateFactories[t]();if(null!==r)return r.ruleIndex=e,r}}lexerActionFactory(t,e,r){if(null===this.actionFactories){const t=[];t[0]=(t,e)=>new vt(t),t[1]=(t,e)=>new bt(t,e),t[2]=(t,e)=>new kt(t),t[3]=(t,e)=>_t.INSTANCE,t[4]=(t,e)=>St.INSTANCE,t[5]=(t,e)=>new Tt(t),t[6]=(t,e)=>xt.INSTANCE,t[7]=(t,e)=>new Et(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,r)}}class Ct{syntaxError(t,e,r,s,i,n){}reportAmbiguity(t,e,r,s,i,n,a){}reportAttemptingFullContext(t,e,r,s,i,n){}reportContextSensitivity(t,e,r,s,i,n){}}class Lt extends Ct{constructor(){super()}syntaxError(t,e,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Lt.INSTANCE=new Lt;class It extends Ct{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,r,s,i,n){this.delegates.map(a=>a.syntaxError(t,e,r,s,i,n))}reportAmbiguity(t,e,r,s,i,n,a){this.delegates.map(o=>o.reportAmbiguity(t,e,r,s,i,n,a))}reportAttemptingFullContext(t,e,r,s,i,n){this.delegates.map(a=>a.reportAttemptingFullContext(t,e,r,s,i,n))}reportContextSensitivity(t,e,r,s,i,n){this.delegates.map(a=>a.reportContextSensitivity(t,e,r,s,i,n))}}class Kt{constructor(){this._listeners=[Lt.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){const e="4.13.1";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const t=this.getLiteralNames(),e=this.getSymbolicNames(),r=t.length>e.length?t.length:e.length;this.tokenNames=[];for(let s=0;s<r;s++)this.tokenNames[s]=t[s]||e[s]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";let r=this.tokenTypeMapCache[e];return void 0===r&&(r=e.reduce(function(t,e,r){t[e]=r}),r.EOF=t.EOF,this.tokenTypeMapCache[e]=r),r}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce(function(t,e,r){t[e]=r}),this.ruleIndexMapCache[t]=e),e}getTokenType(e){const r=this.getTokenTypeMap()[e];return void 0!==r?r:t.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),r=r.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+r+"'"}getErrorListenerDispatch(){return new It(this._listeners)}sempred(t,e,r){return!0}precpred(t,e){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}Kt.tokenTypeMapCache={},Kt.ruleIndexMapCache={};class Nt extends t{constructor(e,r,s,i,n){super(),this.source=void 0!==e?e:Nt.EMPTY_SOURCE,this.type=void 0!==r?r:null,this.channel=void 0!==s?s:t.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==n?n:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1}clone(){const t=new Nt(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}cloneWithType(e){const r=new Nt(this.source,e,this.channel,this.start,this.stop);return r.tokenIndex=this.tokenIndex,r.line=this.line,r.column=this.column,e===t.EOF&&(r.text=""),r}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}}Nt.EMPTY_SOURCE=[null,null];class Ot{}class Dt extends Ot{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,r,s,i,n,a,o){const c=new Nt(t,e,s,i,n);return c.line=a,c.column=o,null!==r?c.text=r:this.copyText&&null!==t[1]&&(c.text=t[1].getText(i,n)),c}createThin(t,e){const r=new Nt(null,t);return r.text=e,r}}Dt.DEFAULT=new Dt;class Pt extends Error{constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,Pt),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class qt extends Pt{constructor(t,e,r,s){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=s}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new x(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Mt extends Kt{constructor(e){super(),this._input=e,this._factory=Dt.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=Mt.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Mt.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let e=!1;for(;;){this._type=t.INVALID_TYPE;let r=Mt.SKIP;try{r=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof Pt))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=r),this._type===Mt.SKIP){e=!0;break}if(this._type!==Mt.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Mt.SKIP}more(){this._type=Mt.MORE}mode(t){this._mode=t}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const e=this.column,r=this.line,s=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,r,e);return this.emitToken(s),s}getCharIndex(){return this._input.index}getAllTokens(){const e=[];let r=this.nextToken();for(;r.type!==t.EOF;)e.push(r),r=this.nextToken();return e}notifyListeners(t){const e=this._tokenStartCharIndex,r=this._input.index,s=this._input.getText(e,r),i="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,t)}getErrorDisplay(t){const e=[];for(let r=0;r<t.length;r++)e.push(t[r]);return e.join("")}getErrorDisplayForChar(e){return e.charCodeAt(0)===t.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(e){this._input.LA(1)!==t.EOF&&(e instanceof qt?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}}function Ft(t){return t.hashCodeForConfigSet()}function Ut(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Mt.DEFAULT_MODE=0,Mt.MORE=-2,Mt.SKIP=-3,Mt.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Mt.HIDDEN=t.HIDDEN_CHANNEL,Mt.MIN_CHAR_VALUE=0,Mt.MAX_CHAR_VALUE=1114111;class Yt{constructor(t){this.configLookup=new d(Ft,Ut),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==p.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(t);if(r===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const s=!this.fullCtx,i=$(r.context,t.context,s,e);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=i,!0}getStates(){const t=new d;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const r=this.configs[e].semanticContext;r!==p.NONE&&t.push(r.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];r.context=t.getCachedContext(r.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof Yt&&e(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new i;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new d}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return h(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==W.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Vt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Yt),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new d;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];t.add(r.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof Vt&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new i;return t.update(this.configs),t.finish()}}class jt{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new j;return H(t,this.sharedContextCache,e)}}jt.ERROR=new Vt(2147483647,new Yt);class Bt extends Yt{constructor(){super(),this.configLookup=new d}}class Ht extends w{constructor(t,e){super(t,e);const r=t.lexerActionExecutor||null;return this.lexerActionExecutor=r||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=Ht.prototype.hashCode,this.equalsForConfigSet=Ht.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof Ht&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof Q&&e.nonGreedy}}class $t extends wt{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof $t&&this.offset===t.offset&&this.action===t.action}}class Gt{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=i.hashStuff(t),this}fixOffsetBeforeMatch(t){let e=null;for(let r=0;r<this.lexerActions.length;r++)!this.lexerActions[r].isPositionDependent||this.lexerActions[r]instanceof $t||(null===e&&(e=this.lexerActions.concat([])),e[r]=new $t(t,this.lexerActions[r]));return null===e?this:new Gt(e)}execute(t,e,r){let s=!1;const i=e.index;try{for(let n=0;n<this.lexerActions.length;n++){let a=this.lexerActions[n];if(a instanceof $t){const t=a.offset;e.seek(r+t),a=a.action,s=r+t!==i}else a.isPositionDependent&&(e.seek(i),s=!1);a.execute(t)}}finally{s&&e.seek(i)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof Gt){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let r=0;r<e;++r)if(!this.lexerActions[r].equals(t.lexerActions[r]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new Gt([e]);const r=t.lexerActions.concat([e]);return new Gt(r)}}function zt(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}class Wt{constructor(){zt(this)}reset(){zt(this)}}class Xt extends jt{constructor(t,e,r,s){super(e,s),this.decisionToDFA=r,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=Mt.DEFAULT_MODE,this.prevAccept=new Wt}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;const r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=Mt.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];Xt.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const r=this.mode,s=this.computeStartState(t,e),i=s.hasSemanticContext;s.hasSemanticContext=!1;const n=this.addDFAState(s);i||(this.decisionToDFA[this.mode].s0=n);const a=this.execATN(t,n);return Xt.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),a}execATN(e,r){Xt.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let s=e.LA(1),i=r;for(;;){Xt.debug&&console.log("execATN loop starting closure: "+i.configs);let r=this.getExistingTargetState(i,s);if(null===r&&(r=this.computeTargetState(e,i,s)),r===jt.ERROR)break;if(s!==t.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),s===t.EOF))break;s=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,s)}getExistingTargetState(t,e){if(null===t.edges||e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE)return null;let r=t.edges[e-Xt.MIN_DFA_EDGE];return void 0===r&&(r=null),Xt.debug&&null!==r&&console.log("reuse state "+t.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(t,e,r){const s=new Bt;return this.getReachableConfigSet(t,e.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,r,jt.ERROR),jt.ERROR):this.addDFAEdge(e,r,null,s)}failOrAccept(e,r,s,i){if(null!==this.prevAccept.dfaState){const t=e.dfaState.lexerActionExecutor;return this.accept(r,t,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(i===t.EOF&&r.index===this.startIndex)return t.EOF;throw new qt(this.recog,r,this.startIndex,s)}getReachableConfigSet(e,r,s,i){let n=W.INVALID_ALT_NUMBER;for(let a=0;a<r.items.length;a++){const o=r.items[a],c=o.alt===n;if(!c||!o.passedThroughNonGreedyDecision){Xt.debug&&console.log("testing %s at %s\n",this.getTokenName(i),o.toString(this.recog,!0));for(let r=0;r<o.state.transitions.length;r++){const a=o.state.transitions[r],l=this.getReachableTarget(a,i);if(null!==l){let r=o.lexerActionExecutor;null!==r&&(r=r.fixOffsetBeforeMatch(e.index-this.startIndex));const a=i===t.EOF,h=new Ht({state:l,lexerActionExecutor:r},o);this.closure(e,h,s,c,!0,a)&&(n=o.alt)}}}}}accept(t,e,r,s,i,n){Xt.debug&&console.log("ACTION %s\n",e),t.seek(s),this.line=i,this.column=n,null!==e&&null!==this.recog&&e.execute(this.recog,t,r)}getReachableTarget(t,e){return t.matches(e,0,Mt.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=M.EMPTY,s=new Bt;for(let i=0;i<e.transitions.length;i++){const n=e.transitions[i].target,a=new Ht({state:n,alt:i+1,context:r},null);this.closure(t,a,s,!1,!1,!1)}return s}closure(t,e,r,s,i,n){let a=null;if(Xt.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof _){if(Xt.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return r.add(e),!0;r.add(new Ht({state:e.state,context:M.EMPTY},e)),s=!0}if(null!==e.context&&!e.context.isEmpty())for(let o=0;o<e.context.length;o++)if(e.context.getReturnState(o)!==M.EMPTY_RETURN_STATE){const c=e.context.getParent(o),l=this.atn.states[e.context.getReturnState(o)];a=new Ht({state:l,context:c},e),s=this.closure(t,a,r,s,i,n)}return s}e.state.epsilonOnlyTransitions||s&&e.passedThroughNonGreedyDecision||r.add(e);for(let o=0;o<e.state.transitions.length;o++){const c=e.state.transitions[o];a=this.getEpsilonTarget(t,e,c,r,i,n),null!==a&&(s=this.closure(t,a,r,s,i,n))}return s}getEpsilonTarget(e,r,s,i,n,a){let o=null;if(s.serializationType===E.RULE){const t=U.create(r.context,s.followState.stateNumber);o=new Ht({state:s.target,context:t},r)}else{if(s.serializationType===E.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===E.PREDICATE)Xt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new Ht({state:s.target},r));else if(s.serializationType===E.ACTION)if(null===r.context||r.context.hasEmptyPath()){const t=Gt.append(r.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new Ht({state:s.target,lexerActionExecutor:t},r)}else o=new Ht({state:s.target},r);else s.serializationType===E.EPSILON?o=new Ht({state:s.target},r):s.serializationType!==E.ATOM&&s.serializationType!==E.RANGE&&s.serializationType!==E.SET||a&&s.matches(t.EOF,0,Mt.MAX_CHAR_VALUE)&&(o=new Ht({state:s.target},r))}return o}evaluatePredicate(t,e,r,s){if(null===this.recog)return!0;if(!s)return this.recog.sempred(null,e,r);const i=this.column,n=this.line,a=t.index,o=t.mark();try{return this.consume(t),this.recog.sempred(null,e,r)}finally{this.column=i,this.line=n,t.seek(a),t.release(o)}}captureSimState(t,e,r){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=r}addDFAEdge(t,e,r,s){if(void 0===r&&(r=null),void 0===s&&(s=null),null===r&&null!==s){const t=s.hasSemanticContext;if(s.hasSemanticContext=!1,r=this.addDFAState(s),t)return r}return e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE||(Xt.debug&&console.log("EDGE "+t+" -> "+r+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-Xt.MIN_DFA_EDGE]=r),r}addDFAState(t){const e=new Vt(null,t);let r=null;for(let e=0;e<t.items.length;e++){const s=t.items[e];if(s.state instanceof _){r=s;break}}null!==r&&(e.isAcceptState=!0,e.lexerActionExecutor=r.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const s=this.decisionToDFA[this.mode],i=s.states.get(e);if(null!==i)return i;const n=e;return n.stateNumber=s.states.length,t.setReadonly(!0),n.configs=t,s.states.add(n),n}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}}Xt.debug=!1,Xt.dfa_debug=!1,Xt.MIN_DFA_EDGE=0,Xt.MAX_DFA_EDGE=127;class Qt{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}class Jt{constructor(){this.data={}}get(t){return this.data["k-"+t]||null}set(t,e){this.data["k-"+t]=e}values(){return Object.keys(this.data).filter(t=>t.startsWith("k-")).map(t=>this.data[t],this)}}const Zt={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(Zt.allConfigsInRuleStopStates(e))return!0;if(t===Zt.SLL&&e.hasSemanticContext){const t=new Yt;for(let r=0;r<e.items.length;r++){let s=e.items[r];s=new w({semanticContext:p.NONE},s),t.add(s)}e=t}const r=Zt.getConflictingAltSubsets(e);return Zt.hasConflictingAltSet(r)&&!Zt.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof _)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof _))return!1;return!0},resolvesToJustOneViableAlt:function(t){return Zt.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!Zt.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r];if(null===e)e=s;else if(s!==e)return!1}return!0},getUniqueAlt:function(t){const e=Zt.getAlts(t);return 1===e.length?e.minValue():W.INVALID_ALT_NUMBER},getAlts:function(t){const e=new G;return t.map(function(t){e.or(t)}),e},getConflictingAltSubsets:function(t){const e=new j;return e.hashFunction=function(t){i.hashStuff(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map(function(t){let r=e.get(t);null===r&&(r=new G,e.set(t,r)),r.add(t.alt)}),e.getValues()},getStateToAltMap:function(t){const e=new Jt;return t.items.map(function(t){let r=e.get(t.state);null===r&&(r=new G,e.set(t.state,r)),r.add(t.alt)}),e},hasStateAssociatedWithOneAlt:function(t){const e=Zt.getStateToAltMap(t).values();for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let r=0;r<t.length;r++){const s=t[r].minValue();if(null===e)e=s;else if(e!==s)return W.INVALID_ALT_NUMBER}return e}},te=Zt;class ee extends Pt{constructor(t,e,r,s,i,n){n=n||t._ctx,s=s||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:n}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=s}}class re{constructor(t){this.defaultMapCtor=t||j,this.cacheMap=new this.defaultMapCtor}get(t,e){const r=this.cacheMap.get(t)||null;return null===r?null:r.get(e)||null}set(t,e,r){let s=this.cacheMap.get(t)||null;null===s&&(s=new this.defaultMapCtor,this.cacheMap.set(t,s)),s.set(e,r)}}class se extends jt{constructor(t,e,r,s){super(e,s),this.parser=t,this.decisionToDFA=r,this.predictionMode=te.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,r){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=r;const s=this.decisionToDFA[e];this._dfa=s;const i=t.mark(),n=t.index;try{let e;if(e=s.precedenceDfa?s.getPrecedenceStartState(this.parser.getPrecedence()):s.s0,null===e){null===r&&(r=q.EMPTY),this.debug&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+r.toString(this.parser.ruleNames));const i=!1;let n=this.computeStartState(s.atnStartState,q.EMPTY,i);s.precedenceDfa?(s.s0.configs=n,n=this.applyPrecedenceFilter(n),e=this.addDFAState(s,new Vt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Vt(null,n)),s.s0=e)}const i=this.execATN(s,e,t,n,r);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),i}finally{this._dfa=null,this.mergeCache=null,t.seek(n),t.release(i)}}execATN(e,r,s,i,n){let a;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+e.decision+", DFA state "+r+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let o=r;this.debug&&console.log("s0 = "+r);let c=s.LA(1);for(;;){let r=this.getExistingTargetState(o,c);if(null===r&&(r=this.computeTargetState(e,o,c)),r===jt.ERROR){const t=this.noViableAlt(s,n,o.configs,i);if(s.seek(i),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,n),a!==W.INVALID_ALT_NUMBER)return a;throw t}if(r.requiresFullContext&&this.predictionMode!==te.SLL){let t=null;if(null!==r.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=s.index;if(e!==i&&s.seek(i),t=this.evalSemanticContext(r.predicates,n,!0),1===t.length)return this.debug&&console.log("Full LL avoided"),t.minValue();e!==i&&s.seek(e)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+r);const o=!0,c=this.computeStartState(e.atnStartState,n,o);return this.reportAttemptingFullContext(e,t,r.configs,i,s.index),a=this.execATNWithFullContext(e,r,c,s,i,n),a}if(r.isAcceptState){if(null===r.predicates)return r.prediction;const t=s.index;s.seek(i);const a=this.evalSemanticContext(r.predicates,n,!0);if(0===a.length)throw this.noViableAlt(s,n,r.configs,i);return 1===a.length||this.reportAmbiguity(e,r,i,t,!1,a,r.configs),a.minValue()}o=r,c!==t.EOF&&(s.consume(),c=s.LA(1))}}getExistingTargetState(t,e){const r=t.edges;return null===r?null:r[e+1]||null}computeTargetState(t,e,r){const s=this.computeReachSet(e.configs,r,!1);if(null===s)return this.addDFAEdge(t,e,r,jt.ERROR),jt.ERROR;let i=new Vt(null,s);const n=this.getUniqueAlt(s);if(this.debug){const t=te.getConflictingAltSubsets(s);console.log("SLL altSubSets="+h(t)+", configs="+s+", predict="+n+", allSubsetsConflict="+te.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(s))}return n!==W.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=n,i.prediction=n):te.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(i.configs.conflictingAlts=this.getConflictingAlts(s),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(t.decision)),null!==i.predicates&&(i.prediction=W.INVALID_ALT_NUMBER)),i=this.addDFAEdge(t,e,r,i),i}predicateDFAState(t,e){const r=e.transitions.length,s=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(s,t.configs,r);null!==i?(t.predicates=this.getPredicatePredictions(s,i),t.prediction=W.INVALID_ALT_NUMBER):t.prediction=s.minValue()}execATNWithFullContext(e,r,s,i,n,a){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+s);let o,c=!1,l=s;i.seek(n);let h=i.LA(1),u=-1;for(;;){if(o=this.computeReachSet(l,h,!0),null===o){const t=this.noViableAlt(i,a,l,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,a);if(e!==W.INVALID_ALT_NUMBER)return e;throw t}const e=te.getConflictingAltSubsets(o);if(this.debug&&console.log("LL altSubSets="+e+", predict="+te.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+te.resolvesToJustOneViableAlt(e)),o.uniqueAlt=this.getUniqueAlt(o),o.uniqueAlt!==W.INVALID_ALT_NUMBER){u=o.uniqueAlt;break}if(this.predictionMode!==te.LL_EXACT_AMBIG_DETECTION){if(u=te.resolvesToJustOneViableAlt(e),u!==W.INVALID_ALT_NUMBER)break}else if(te.allSubsetsConflict(e)&&te.allSubsetsEqual(e)){c=!0,u=te.getSingleViableAlt(e);break}l=o,h!==t.EOF&&(i.consume(),h=i.LA(1))}return o.uniqueAlt!==W.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,o,n,i.index),u):(this.reportAmbiguity(e,r,n,i.index,c,null,o),u)}computeReachSet(e,r,s){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new re);const i=new Yt(s);let n=null;for(let a=0;a<e.items.length;a++){const o=e.items[a];if(this.debug&&console.log("testing "+this.getTokenName(r)+" at "+o),o.state instanceof _)(s||r===t.EOF)&&(null===n&&(n=[]),n.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let t=0;t<o.state.transitions.length;t++){const e=o.state.transitions[t],s=this.getReachableTarget(e,r);if(null!==s){const t=new w({state:s},o);i.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let a=null;if(null===n&&r!==t.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==W.INVALID_ALT_NUMBER)&&(a=i),null===a){a=new Yt(s);const e=new d,n=r===t.EOF;for(let t=0;t<i.items.length;t++)this.closure(i.items[t],a,e,!1,s,n)}if(r===t.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===i)),!(null===n||s&&te.hasConfigInRuleStopState(a)))for(let t=0;t<n.length;t++)a.add(n[t],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+e+" -> "+a),0===a.items.length?null:a}removeAllConfigsNotInRuleStopState(e,r){if(te.allConfigsInRuleStopStates(e))return e;const s=new Yt(e.fullCtx);for(let i=0;i<e.items.length;i++){const n=e.items[i];if(n.state instanceof _)s.add(n,this.mergeCache);else if(r&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(t.EPSILON)){const t=this.atn.ruleToStopState[n.state.ruleIndex];s.add(new w({state:t},n),this.mergeCache)}}return s}computeStartState(t,e,r){const s=B(this.atn,e),i=new Yt(r);this.trace_atn_sim&&console.log("computeStartState from ATN state "+t+" initialContext="+s.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const n=t.transitions[e].target,a=new w({state:n,alt:e+1,context:s},null),o=new d;this.closure(a,i,o,!0,r,!1)}return i}applyPrecedenceFilter(t){let e;const r=[],s=new Yt(t.fullCtx);for(let i=0;i<t.items.length;i++){if(e=t.items[i],1!==e.alt)continue;const n=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==n&&(r[e.state.stateNumber]=e.context,n!==e.semanticContext?s.add(new w({semanticContext:n},e),this.mergeCache):s.add(e,this.mergeCache))}for(let i=0;i<t.items.length;i++)if(e=t.items[i],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=r[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}s.add(e,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,r){let s=[];for(let r=0;r<e.items.length;r++){const i=e.items[r];t.has(i.alt)&&(s[i.alt]=p.orContext(s[i.alt]||null,i.semanticContext))}let i=0;for(let t=1;t<r+1;t++){const e=s[t]||null;null===e?s[t]=p.NONE:e!==p.NONE&&(i+=1)}return 0===i&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+h(s)),s}getPredicatePredictions(t,e){const r=[];let s=!1;for(let i=1;i<e.length;i++){const n=e[i];null!==t&&t.has(i)&&r.push(new Qt(n,i)),n!==p.NONE&&(s=!0)}return s?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const r=this.splitAccordingToSemanticValidity(t,e),s=r[0],i=r[1];let n=this.getAltThatFinishedDecisionEntryRule(s);return n!==W.INVALID_ALT_NUMBER||i.items.length>0&&(n=this.getAltThatFinishedDecisionEntryRule(i),n!==W.INVALID_ALT_NUMBER)?n:W.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let r=0;r<t.items.length;r++){const s=t.items[r];(s.reachesIntoOuterContext>0||s.state instanceof _&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt)}return 0===e.length?W.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const r=new Yt(t.fullCtx),s=new Yt(t.fullCtx);for(let i=0;i<t.items.length;i++){const n=t.items[i];n.semanticContext!==p.NONE?n.semanticContext.evaluate(this.parser,e)?r.add(n):s.add(n):r.add(n)}return[r,s]}evalSemanticContext(t,e,r){const s=new G;for(let i=0;i<t.length;i++){const n=t[i];if(n.pred===p.NONE){if(s.add(n.alt),!r)break;continue}const a=n.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+n+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+n.alt),s.add(n.alt),!r))break}return s}closure(t,e,r,s,i,n){this.closureCheckingStopState(t,e,r,s,i,0,n)}closureCheckingStopState(t,e,r,s,i,n,a){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof _){if(!t.context.isEmpty()){for(let o=0;o<t.context.length;o++){if(t.context.getReturnState(o)===M.EMPTY_RETURN_STATE){if(i){e.add(new w({state:t.state,context:M.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,r,s,i,n,a);continue}const c=this.atn.states[t.context.getReturnState(o)],l=t.context.getParent(o),h={state:c,alt:t.alt,context:l,semanticContext:t.semanticContext},u=new w(h,null);u.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(u,e,r,s,i,n-1,a)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,r,s,i,n,a)}closure_(t,e,r,s,i,n,a){const o=t.state;o.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let c=0;c<o.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const l=o.transitions[c],h=s&&!(l instanceof ut),u=this.getEpsilonTarget(t,l,h,0===n,i,a);if(null!==u){let s=n;if(t.state instanceof _){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,r.add(u)!==u)continue;e.dipsIntoOuterContext=!0,s-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!l.isEpsilon&&r.add(u)!==u)continue;l instanceof T&&s>=0&&(s+=1)}this.closureCheckingStopState(u,e,r,h,i,s,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==b.STAR_LOOP_ENTRY)return!1;if(e.stateType!==b.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const r=t.context.length;for(let s=0;s<r;s++)if(this.atn.states[t.context.getReturnState(s)].ruleIndex!==e.ruleIndex)return!1;const s=e.transitions[0].target.endState.stateNumber,i=this.atn.states[s];for(let s=0;s<r;s++){const r=t.context.getReturnState(s),n=this.atn.states[r];if(1!==n.transitions.length||!n.transitions[0].isEpsilon)return!1;const a=n.transitions[0].target;if(!(n.stateType===b.BLOCK_END&&a===e||n===i||a===i||a.stateType===b.BLOCK_END&&1===a.transitions.length&&a.transitions[0].isEpsilon&&a.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(e,r,s,i,n,a){switch(r.serializationType){case E.RULE:return this.ruleTransition(e,r);case E.PRECEDENCE:return this.precedenceTransition(e,r,s,i,n);case E.PREDICATE:return this.predTransition(e,r,s,i,n);case E.ACTION:return this.actionTransition(e,r);case E.EPSILON:return new w({state:r.target},e);case E.ATOM:case E.RANGE:case E.SET:return a&&r.matches(t.EOF,0,1)?new w({state:r.target},e):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new w({state:e.target},t)}precedenceTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&s)if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}predTransition(t,e,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&(e.isCtxDependent&&s||!e.isCtxDependent))if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:e.target},t))}else{const r=p.andContext(t.semanticContext,e.getPredicate());n=new w({state:e.target,semanticContext:r},t)}else n=new w({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const r=e.followState,s=U.create(t.context,r.stateNumber);return new w({state:e.target,context:s},t)}getConflictingAlts(t){const e=te.getConflictingAltSubsets(t);return te.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==W.INVALID_ALT_NUMBER?(e=new G,e.add(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(e){if(e===t.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let t=0;t<e.length;t++){const r=e[t];let s="no edges";if(r.state.transitions.length>0){const t=r.state.transitions[0];t instanceof lt?s="Atom "+this.getTokenName(t.label):t instanceof S&&(s=(t instanceof k?"~":"")+"Set "+t.set)}console.error(r.toString(this.parser,!0)+":"+s)}}noViableAlt(t,e,r,s){return new ee(this.parser,t,t.get(s),t.LT(1),r,e)}getUniqueAlt(t){let e=W.INVALID_ALT_NUMBER;for(let r=0;r<t.items.length;r++){const s=t.items[r];if(e===W.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return W.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,r,s){if(this.debug&&console.log("EDGE "+e+" -> "+s+" upon "+this.getTokenName(r)),null===s)return null;if(s=this.addDFAState(t,s),null===e||r<-1||r>this.atn.maxTokenType)return s;if(null===e.edges&&(e.edges=[]),e.edges[r+1]=s,this.debug){const e=null===this.parser?null:this.parser.literalNames,r=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,r))}return s}addDFAState(t,e){if(e===jt.ERROR)return e;const r=t.states.get(e);return null!==r?(this.trace_atn_sim&&console.log("addDFAState "+e+" exists"),r):(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+e),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,s,i,e,r)}reportContextSensitivity(t,e,r,s,i){if(this.debug||this.retry_debug){const e=new x(s,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,s,i,e,r)}reportAmbiguity(t,e,r,s,i,n,a){if(this.debug||this.retry_debug){const t=new x(r,s+1);console.log("reportAmbiguity "+n+":"+a+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,r,s,i,n,a)}}class ie{constructor(){this.cache=new j}add(t){if(t===M.EMPTY)return M.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.set(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}}const ne={ATN:W,ATNDeserializer:At,LexerATNSimulator:Xt,ParserATNSimulator:se,PredictionMode:te,PredictionContextCache:ie};class ae{constructor(t,e,r){this.dfa=t,this.literalNames=e||[],this.symbolicNames=r||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let r=0;r<e.length;r++){const s=e[r];if(null!==s.edges){const e=s.edges.length;for(let r=0;r<e;r++){const e=s.edges[r]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(s)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(r)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+h(t.predicates):e+"=>"+t.prediction.toString():e}}class oe extends ae{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}class ce{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new d,this.s0=null,this.precedenceDfa=!1,t instanceof nt&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new Vt(null,new Yt);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new d,t){const t=new Vt(null,new Yt);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort(function(t,e){return t.stateNumber-e.stateNumber})}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new ae(this,t,e).toString()}toLexerString(){return null===this.s0?"":new oe(this).toString()}get states(){return this._states}}const le={DFA:ce,DFASerializer:ae,LexerDFASerializer:oe,PredPrediction:Qt},he={PredictionContext:M},ue={Interval:x,IntervalSet:v};class de{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}}class pe{visit(t){return Array.isArray(t)?t.map(function(t){return t.accept(this)},this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}}class me{walk(t,e){if(e instanceof O||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof N)t.visitTerminal(e);else{this.enterRule(t,e);for(let r=0;r<e.getChildCount();r++){const s=e.getChild(r);this.walk(t,s)}this.exitRule(t,e)}}enterRule(t,e){const r=e.ruleContext;t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){const r=e.ruleContext;r.exitRule(t),t.exitEveryRule(r)}}me.DEFAULT=new me;const ye={Trees:P,RuleNode:K,ErrorNode:O,TerminalNode:N,ParseTreeListener:de,ParseTreeVisitor:pe,ParseTreeWalker:me};class fe extends Pt{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}}class ge extends Pt{constructor(t,e,r){super({message:we(e,r||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const s=t._interp.atn.states[t.state].transitions[0];s instanceof mt?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}}function we(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}class xe extends Ct{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,r,s,i,n,a){if(this.exactOnly&&!i)return;const o="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(n,a)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(o)}reportAttemptingFullContext(t,e,r,s,i,n){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,s,i,n){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new x(r,s))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const r=e.decision,s=e.atnStartState.ruleIndex,i=t.ruleNames;if(s<0||s>=i.length)return""+r;const n=i[s]||null;return null===n||0===n.length?""+r:`${r} (${n})`}getConflictingAlts(t,e){if(null!==t)return t;const r=new G;for(let t=0;t<e.items.length;t++)r.add(e.items[t].alt);return`{${r.values().join(", ")}}`}}class ve extends Error{constructor(){super(),Error.captureStackTrace(this,ve)}}class be{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}}class _e extends be{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ee?this.reportNoViableAlternative(t,e):e instanceof fe?this.reportInputMismatch(t,e):e instanceof ge?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(e){if(this.inErrorRecoveryMode(e))return;const r=e._interp.atn.states[e.state],s=e.getTokenStream().LA(1),i=e.atn.nextTokens(r);if(i.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(i.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);else switch(r.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new fe(e);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new v;t.addSet(e.getExpectedTokens());const r=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,r)}}}reportNoViableAlternative(e,r){const s=e.getTokenStream();let i;i=null!==s?r.startToken.type===t.EOF?"<EOF>":s.getText(new x(r.startToken.tokenIndex,r.offendingToken.tokenIndex)):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(i);e.notifyErrorListeners(n,r.offendingToken,r)}reportInputMismatch(t,e){const r="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e.offendingToken,e)}reportFailedPredicate(t,e){const r="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(r,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new fe(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),r=t._interp.atn,s=r.states[t.state].transitions[0].target;return!!r.nextTokens(s,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(e){const r=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let i;i=s===t.EOF?"<missing EOF>":"<missing "+e.literalNames[s]+">";let n=r;const a=e.getTokenStream().LT(-1);return n.type===t.EOF&&null!==a&&(n=a),e.getTokenFactory().create(n.source,s,i,t.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let r=e.text;return null===r&&(r=e.type===t.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(r)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const r=e._interp.atn;let s=e._ctx;const i=new v;for(;null!==s&&s.invokingState>=0;){const t=r.states[s.invokingState].transitions[0],e=r.nextTokens(t.followState);i.addSet(e),s=s.parentCtx}return i.removeOne(t.EPSILON),i}consumeUntil(e,r){let s=e.getTokenStream().LA(1);for(;s!==t.EOF&&!r.contains(s);)e.consume(),s=e.getTokenStream().LA(1)}}class Ee extends _e{constructor(){super()}recover(t,e){let r=t._ctx;for(;null!==r;)r.exception=e,r=r.parentCtx;throw new ve(e)}recoverInline(t){this.recover(t,new fe(t))}sync(t){}}const Te={RecognitionException:Pt,NoViableAltException:ee,LexerNoViableAltException:qt,InputMismatchException:fe,FailedPredicateException:ge,DiagnosticErrorListener:xe,BailErrorStrategy:Ee,DefaultErrorStrategy:_e,ErrorListener:Ct};class Se{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let t=0;t<this.strdata.length;){const e=this.strdata.codePointAt(t);this.data.push(e),t+=e<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let t=0;t<this.strdata.length;t++)this.data[t]=this.strdata.charCodeAt(t)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const r=this._index+e-1;return r<0||r>=this._size?t.EOF:this.data[r]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let r="";for(let s=t;s<=e;s++)r+=String.fromCodePoint(this.data[s]);return r}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class ke extends Se{constructor(t,e){super(t,e)}}var Re=o(92);const Ae="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class Ce extends ke{static fromPath(t,e,r){if(!Ae)throw new Error("FileStream is only available when running in Node!");Re.readFile(t,e,function(t,e){let s=null;null!==e&&(s=new Se(e,!0)),r(t,s)})}constructor(t,e,r){if(!Ae)throw new Error("FileStream is only available when running in Node!");super(Re.readFileSync(t,e||"utf-8"),r),this.fileName=t}}const Le={fromString:function(t){return new Se(t,!0)},fromBlob:function(t,e,r,s){const i=new window.FileReader;i.onload=function(t){const e=new Se(t.target.result,!0);r(e)},i.onerror=s,i.readAsText(t,e)},fromBuffer:function(t,e){return new Se(t.toString(e),!0)},fromPath:function(t,e,r){Ce.fromPath(t,e,r)},fromPathSync:function(t,e){return new Ce(t,e)}},Ie={arrayToString:h,stringToCharArray:function(t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}};class Ke{}class Ne extends Ke{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get(t){return this.lazyInit(),this.tokens[t]}consume(){let e=!1;if(e=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!e&&this.LA(1)===t.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(e){if(this.fetchedEOF)return 0;for(let r=0;r<e;r++){const e=this.tokenSource.nextToken();if(e.tokenIndex=this.tokens.length,this.tokens.push(e),e.type===t.EOF)return this.fetchedEOF=!0,r+1}return e}getTokens(e,r,s){if(void 0===s&&(s=null),e<0||r<0)return null;this.lazyInit();const i=[];r>=this.tokens.length&&(r=this.tokens.length-1);for(let n=e;n<r;n++){const e=this.tokens[n];if(e.type===t.EOF)break;(null===s||s.contains(e.type))&&i.push(e)}return i}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+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.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,r){if(this.sync(e),e>=this.tokens.length)return-1;let s=this.tokens[e];for(;s.channel!==this.channel;){if(s.type===t.EOF)return-1;e+=1,this.sync(e),s=this.tokens[e]}return e}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.nextTokenOnChannel(t+1,Mt.DEFAULT_TOKEN_CHANNEL),s=t+1,i=-1===r?this.tokens.length-1:r;return this.filterForChannel(s,i,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.previousTokenOnChannel(t-1,Mt.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return null;const s=r+1,i=t-1;return this.filterForChannel(s,i,e)}filterForChannel(t,e,r){const s=[];for(let i=t;i<e+1;i++){const t=this.tokens[i];-1===r?t.channel!==Mt.DEFAULT_TOKEN_CHANNEL&&s.push(t):t.channel===r&&s.push(t)}return 0===s.length?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e||(e=new x(0,this.tokens.length-1));let r=e.start;r instanceof t&&(r=r.tokenIndex);let s=e.stop;if(s instanceof t&&(s=s.tokenIndex),null===r||null===s||r<0||s<0)return"";s>=this.tokens.length&&(s=this.tokens.length-1);let i="";for(let e=r;e<s+1;e++){const r=this.tokens[e];if(r.type===t.EOF)break;i+=r.text}return i}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(Ne,"size",{get:function(){return this.tokens.length}});class Oe extends Ne{constructor(e,r){super(e),this.channel=void 0===r?t.DEFAULT_CHANNEL:r}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,r=1;for(;r<=t;)e=this.previousTokenOnChannel(e-1,this.channel),r+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let r=0;r<this.tokens.length;r++){const s=this.tokens[r];if(s.channel===this.channel&&(e+=1),s.type===t.EOF)break}return e}}class De extends de{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class Pe extends Kt{constructor(t){super(),this._input=null,this._errHandler=new _e,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.forEach(function(e){e.enterEveryRule(t),t.enterRule(e)})}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(e){t.exitRule(e),e.exitEveryRule(t)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const r=new gt;r.generateRuleBypassTransitions=!0,e=new At(r).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){r=r||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const s=e.line,i=e.column;this.getErrorListenerDispatch().syntaxError(this,e,s,i,t,r)}consume(){const e=this.getCurrentToken();e.type!==t.EOF&&this.getInputStream().consume();const r=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||r){let t;t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e),t.invokingState=this.state,r&&this._parseListeners.forEach(function(e){t instanceof O||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof N&&e.visitTerminal(t)})}return e}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.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()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,r,s){this.state=e,this._precedenceStack.push(s),this._ctx=t,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){const s=this._ctx;s.parentCtx=t,s.invokingState=e,s.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx,r=this.getParseListeners();if(null!==r&&r.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(e){const r=this._interp.atn;let s=this._ctx;const i=r.states[this.state];let n=r.nextTokens(i);if(n.contains(e))return!0;if(!n.contains(t.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&n.contains(t.EPSILON);){const t=r.states[s.invokingState].transitions[0];if(n=r.nextTokens(t.followState),n.contains(e))return!0;s=s.parentCtx}return!(!n.contains(t.EPSILON)||e!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const r=t.ruleIndex;r<0?e.push("n/a"):e.push(this.ruleNames[r]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const r=this._interp.decisionToDFA[e];r.states.length>0&&(t&&console.log(),this.printer.println("Decision "+r.decision+":"),this.printer.print(r.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.sourceName}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new De(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}Pe.bypassAltsAtnCache={};class qe extends N{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return x.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new x(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"<EOF>":this.symbol.text}}class Me extends qe{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Fe extends q{constructor(t,e){super(t,e),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map(function(t){t instanceof Me&&(this.children.push(t),t.parentCtx=this)},this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new qe(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new Me(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof e){if(0===t)return s;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof N&&s.symbol.type===t){if(0===e)return s;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof N&&s.symbol.type===t&&e.push(s)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof t&&e.push(s)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?x.INVALID_INTERVAL:new x(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Fe;class Ue{constructor(t){this.tokens=t,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(s),n=new ze(this.tokens,r,i.length,e);i.push(n)}insertBefore(t,e){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;r="number"==typeof t?t:t.tokenIndex;const i=this.getProgram(s),n=new Ge(this.tokens,r,i.length,e);i.push(n)}replaceSingle(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;this.replace(t,t,e,r)}replace(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ue.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(s),n=new We(this.tokens,t,e,i.length,r);i.push(n)}delete(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue.DEFAULT_PROGRAM_NAME;void 0===e&&(e=t),this.replace(t,e,null,r)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e){let r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue.DEFAULT_PROGRAM_NAME;r=e instanceof x?e:new x(0,this.tokens.size-1),"string"==typeof e&&(s=e);const i=this.programs.get(s);let n=r.start,a=r.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getText(new x(n,a));let o=[],c=this.reduceToSingleOperationPerIndex(i),l=n;for(;l<=a&&l<this.tokens.size;){let e=c.get(l);c.delete(l);let r=this.tokens.get(l);null==e?(r.type!==t.EOF&&o.push(String(r.text)),l++):l=e.execute(o)}if(a===this.tokens.size-1)for(const t of c.values())t.index>=this.tokens.size-1&&o.push(t.text.toString());return o.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof We))continue;let s=r,i=this.getKindOfOps(t,Ge,e);for(let e of i)e.index===s.index?(t[e.instructionIndex]=void 0,s.text=e.text.toString()+(null!=s.text?s.text.toString():"")):e.index>s.index&&e.index<=s.lastIndex&&(t[e.instructionIndex]=void 0);let n=this.getKindOfOps(t,We,e);for(let e of n){if(e.index>=s.index&&e.lastIndex<=s.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<s.index||e.index>s.lastIndex;if(null!=e.text||null!=s.text||r){if(!r)throw new Error(`replace op boundaries of ${s} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,s.index=Math.min(e.index,s.index),s.lastIndex=Math.max(e.lastIndex,s.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof Ge))continue;let s=r,i=this.getKindOfOps(t,Ge,e);for(let e of i)e.index===s.index&&(e instanceof ze?(s.text=this.catOpText(e.text,s.text),t[e.instructionIndex]=void 0):e instanceof Ge&&(s.text=this.catOpText(s.text,e.text),t[e.instructionIndex]=void 0));let n=this.getKindOfOps(t,We,e);for(let r of n)if(s.index!==r.index){if(s.index>=r.index&&s.index<=r.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${r}`)}else r.text=this.catOpText(s.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="",s="";return null!=t&&(r=t.toString()),null!=e&&(s=e.toString()),r+s}getKindOfOps(t,e,r){return t.slice(0,r).filter(t=>t&&t instanceof e)}}var Ye,Ve,je,Be,He;Ye=Ue,je="default",Be="DEFAULT_PROGRAM_NAME",(Ve="symbol"==typeof(He=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(Be))?He:String(He))in Ye?Object.defineProperty(Ye,Ve,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ye[Ve]=je;class $e{constructor(t,e,r,s){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===s?"":s}toString(){let t=this.constructor.name;const e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class Ge extends $e{constructor(t,e,r,s){super(t,e,r,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==t.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}class ze extends Ge{constructor(t,e,r,s){super(t,e+1,r,s)}}class We extends $e{constructor(t,e,r,s,i){super(t,e,s,i),this.lastIndex=r}execute(t){return 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+'">'}}const Xe={atn:ne,dfa:le,context:he,misc:ue,tree:ye,error:Te,Token:t,CommonToken:Nt,CharStreams:Le,CharStream:ke,InputStream:ke,CommonTokenStream:Oe,Lexer:Mt,Parser:Pe,ParserRuleContext:Fe,Interval:x,IntervalSet:v,LL1Analyzer:z,Utils:Ie,TokenStreamRewriter:Ue}})();var l=c.dx,h=c.q2,u=c.xf,d=c.c7,p=c._7,m=c.cK,y=c.zs,f=c.hW,g=c.x1,w=c.z5,x=c.TB,v=c._b,b=c.$F,_=c._T,E=c.db,T=c._x,S=c.WU,k=class t extends f{constructor(e){super(e),this._interp=new g(this,t._ATN,t.DecisionsToDFA,new E)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}get channelNames(){return t.channelNames}get modeNames(){return t.modeNames}static get _ATN(){return t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};k.T__0=1,k.T__1=2,k.T__2=3,k.T__3=4,k.T__4=5,k.T__5=6,k.T__6=7,k.T__7=8,k.T__8=9,k.T__9=10,k.T__10=11,k.T__11=12,k.T__12=13,k.T__13=14,k.T__14=15,k.T__15=16,k.T__16=17,k.T__17=18,k.T__18=19,k.T__19=20,k.T__20=21,k.T__21=22,k.T__22=23,k.T__23=24,k.T__24=25,k.T__25=26,k.T__26=27,k.T__27=28,k.T__28=29,k.T__29=30,k.T__30=31,k.T__31=32,k.T__32=33,k.T__33=34,k.T__34=35,k.T__35=36,k.T__36=37,k.T__37=38,k.T__38=39,k.T__39=40,k.T__40=41,k.T__41=42,k.T__42=43,k.T__43=44,k.T__44=45,k.T__45=46,k.T__46=47,k.T__47=48,k.T__48=49,k.T__49=50,k.T__50=51,k.T__51=52,k.T__52=53,k.T__53=54,k.T__54=55,k.T__55=56,k.T__56=57,k.T__57=58,k.T__58=59,k.T__59=60,k.T__60=61,k.T__61=62,k.T__62=63,k.T__63=64,k.T__64=65,k.T__65=66,k.T__66=67,k.T__67=68,k.T__68=69,k.T__69=70,k.T__70=71,k.T__71=72,k.T__72=73,k.T__73=74,k.T__74=75,k.T__75=76,k.T__76=77,k.T__77=78,k.T__78=79,k.T__79=80,k.T__80=81,k.T__81=82,k.T__82=83,k.T__83=84,k.T__84=85,k.T__85=86,k.T__86=87,k.T__87=88,k.T__88=89,k.T__89=90,k.T__90=91,k.T__91=92,k.T__92=93,k.T__93=94,k.T__94=95,k.T__95=96,k.T__96=97,k.T__97=98,k.Int=99,k.Uint=100,k.Byte=101,k.Fixed=102,k.Ufixed=103,k.BooleanLiteral=104,k.DecimalNumber=105,k.HexNumber=106,k.NumberUnit=107,k.HexLiteralFragment=108,k.ReservedKeyword=109,k.AnonymousKeyword=110,k.BreakKeyword=111,k.ConstantKeyword=112,k.TransientKeyword=113,k.ImmutableKeyword=114,k.ContinueKeyword=115,k.LeaveKeyword=116,k.ExternalKeyword=117,k.IndexedKeyword=118,k.InternalKeyword=119,k.PayableKeyword=120,k.PrivateKeyword=121,k.PublicKeyword=122,k.VirtualKeyword=123,k.PureKeyword=124,k.TypeKeyword=125,k.ViewKeyword=126,k.GlobalKeyword=127,k.ConstructorKeyword=128,k.FallbackKeyword=129,k.ReceiveKeyword=130,k.Identifier=131,k.StringLiteralFragment=132,k.VersionLiteral=133,k.WS=134,k.COMMENT=135,k.LINE_COMMENT=136,k.EOF=S.EOF,k.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],k.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],k.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k.modeNames=["DEFAULT_MODE"],k.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","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","T__54","T__55","T__56","T__57","T__58","T__59","T__60","T__61","T__62","T__63","T__64","T__65","T__66","T__67","T__68","T__69","T__70","T__71","T__72","T__73","T__74","T__75","T__76","T__77","T__78","T__79","T__80","T__81","T__82","T__83","T__84","T__85","T__86","T__87","T__88","T__89","T__90","T__91","T__92","T__93","T__94","T__95","T__96","T__97","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","IdentifierStart","IdentifierPart","StringLiteralFragment","DoubleQuotedStringCharacter","SingleQuotedStringCharacter","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k._serializedATN=[4,0,136,1444,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,3,98,738,8,98,1,99,1,99,1,99,1,99,1,99,1,99,3,99,746,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,755,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,4,101,766,8,101,11,101,12,101,767,3,101,770,8,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,4,102,782,8,102,11,102,12,102,783,3,102,786,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,871,8,103,1,104,1,104,1,104,1,104,1,104,3,104,878,8,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,3,105,889,8,105,1,106,1,106,3,106,893,8,106,1,106,1,106,3,106,897,8,106,1,106,1,106,3,106,901,8,106,1,106,3,106,904,8,106,1,107,1,107,3,107,908,8,107,1,107,5,107,911,8,107,10,107,12,107,914,9,107,1,108,1,108,1,108,1,108,1,109,1,109,3,109,922,8,109,1,109,5,109,925,8,109,10,109,12,109,928,9,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,3,110,986,8,110,1,111,1,111,1,111,1,111,1,111,1,111,3,111,994,8,111,1,111,1,111,1,111,3,111,999,8,111,1,111,3,111,1002,8,111,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,3,113,1176,8,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,5,135,1348,8,135,10,135,12,135,1351,9,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,3,138,1364,8,138,1,138,1,138,5,138,1368,8,138,10,138,12,138,1371,9,138,1,138,1,138,1,138,5,138,1376,8,138,10,138,12,138,1379,9,138,1,138,3,138,1382,8,138,1,139,1,139,1,139,3,139,1387,8,139,1,140,1,140,1,140,3,140,1392,8,140,1,141,4,141,1395,8,141,11,141,12,141,1396,1,141,1,141,4,141,1401,8,141,11,141,12,141,1402,1,141,1,141,4,141,1407,8,141,11,141,12,141,1408,3,141,1411,8,141,1,142,4,142,1414,8,142,11,142,12,142,1415,1,142,1,142,1,143,1,143,1,143,1,143,5,143,1424,8,143,10,143,12,143,1427,9,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,5,144,1438,8,144,10,144,12,144,1441,9,144,1,144,1,144,1,1425,0,145,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,102,205,103,207,0,209,0,211,104,213,105,215,0,217,106,219,0,221,107,223,108,225,0,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,129,269,130,271,131,273,0,275,0,277,132,279,0,281,0,283,133,285,134,287,135,289,136,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1538,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,1,291,1,0,0,0,3,298,1,0,0,0,5,300,1,0,0,0,7,302,1,0,0,0,9,305,1,0,0,0,11,307,1,0,0,0,13,309,1,0,0,0,15,312,1,0,0,0,17,314,1,0,0,0,19,316,1,0,0,0,21,319,1,0,0,0,23,321,1,0,0,0,25,324,1,0,0,0,27,331,1,0,0,0,29,336,1,0,0,0,31,338,1,0,0,0,33,340,1,0,0,0,35,342,1,0,0,0,37,351,1,0,0,0,39,360,1,0,0,0,41,370,1,0,0,0,43,378,1,0,0,0,45,381,1,0,0,0,47,383,1,0,0,0,49,385,1,0,0,0,51,392,1,0,0,0,53,395,1,0,0,0,55,401,1,0,0,0,57,407,1,0,0,0,59,411,1,0,0,0,61,413,1,0,0,0,63,415,1,0,0,0,65,417,1,0,0,0,67,419,1,0,0,0,69,421,1,0,0,0,71,423,1,0,0,0,73,426,1,0,0,0,75,429,1,0,0,0,77,436,1,0,0,0,79,445,1,0,0,0,81,454,1,0,0,0,83,462,1,0,0,0,85,468,1,0,0,0,87,473,1,0,0,0,89,475,1,0,0,0,91,477,1,0,0,0,93,485,1,0,0,0,95,487,1,0,0,0,97,495,1,0,0,0,99,498,1,0,0,0,101,505,1,0,0,0,103,513,1,0,0,0,105,522,1,0,0,0,107,525,1,0,0,0,109,530,1,0,0,0,111,534,1,0,0,0,113,540,1,0,0,0,115,546,1,0,0,0,117,556,1,0,0,0,119,565,1,0,0,0,121,568,1,0,0,0,123,575,1,0,0,0,125,581,1,0,0,0,127,586,1,0,0,0,129,593,1,0,0,0,131,597,1,0,0,0,133,602,1,0,0,0,135,609,1,0,0,0,137,614,1,0,0,0,139,617,1,0,0,0,141,620,1,0,0,0,143,624,1,0,0,0,145,626,1,0,0,0,147,633,1,0,0,0,149,635,1,0,0,0,151,638,1,0,0,0,153,641,1,0,0,0,155,644,1,0,0,0,157,647,1,0,0,0,159,649,1,0,0,0,161,652,1,0,0,0,163,655,1,0,0,0,165,658,1,0,0,0,167,662,1,0,0,0,169,666,1,0,0,0,171,669,1,0,0,0,173,672,1,0,0,0,175,675,1,0,0,0,177,678,1,0,0,0,179,681,1,0,0,0,181,685,1,0,0,0,183,688,1,0,0,0,185,691,1,0,0,0,187,698,1,0,0,0,189,703,1,0,0,0,191,711,1,0,0,0,193,714,1,0,0,0,195,723,1,0,0,0,197,732,1,0,0,0,199,739,1,0,0,0,201,747,1,0,0,0,203,756,1,0,0,0,205,771,1,0,0,0,207,870,1,0,0,0,209,877,1,0,0,0,211,888,1,0,0,0,213,896,1,0,0,0,215,905,1,0,0,0,217,915,1,0,0,0,219,919,1,0,0,0,221,985,1,0,0,0,223,987,1,0,0,0,225,1003,1,0,0,0,227,1175,1,0,0,0,229,1177,1,0,0,0,231,1187,1,0,0,0,233,1193,1,0,0,0,235,1202,1,0,0,0,237,1212,1,0,0,0,239,1222,1,0,0,0,241,1231,1,0,0,0,243,1237,1,0,0,0,245,1246,1,0,0,0,247,1254,1,0,0,0,249,1263,1,0,0,0,251,1271,1,0,0,0,253,1279,1,0,0,0,255,1286,1,0,0,0,257,1294,1,0,0,0,259,1299,1,0,0,0,261,1304,1,0,0,0,263,1309,1,0,0,0,265,1316,1,0,0,0,267,1328,1,0,0,0,269,1337,1,0,0,0,271,1345,1,0,0,0,273,1352,1,0,0,0,275,1354,1,0,0,0,277,1363,1,0,0,0,279,1386,1,0,0,0,281,1391,1,0,0,0,283,1394,1,0,0,0,285,1413,1,0,0,0,287,1419,1,0,0,0,289,1433,1,0,0,0,291,292,5,112,0,0,292,293,5,114,0,0,293,294,5,97,0,0,294,295,5,103,0,0,295,296,5,109,0,0,296,297,5,97,0,0,297,2,1,0,0,0,298,299,5,59,0,0,299,4,1,0,0,0,300,301,5,42,0,0,301,6,1,0,0,0,302,303,5,124,0,0,303,304,5,124,0,0,304,8,1,0,0,0,305,306,5,94,0,0,306,10,1,0,0,0,307,308,5,126,0,0,308,12,1,0,0,0,309,310,5,62,0,0,310,311,5,61,0,0,311,14,1,0,0,0,312,313,5,62,0,0,313,16,1,0,0,0,314,315,5,60,0,0,315,18,1,0,0,0,316,317,5,60,0,0,317,318,5,61,0,0,318,20,1,0,0,0,319,320,5,61,0,0,320,22,1,0,0,0,321,322,5,97,0,0,322,323,5,115,0,0,323,24,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,26,1,0,0,0,331,332,5,102,0,0,332,333,5,114,0,0,333,334,5,111,0,0,334,335,5,109,0,0,335,28,1,0,0,0,336,337,5,123,0,0,337,30,1,0,0,0,338,339,5,44,0,0,339,32,1,0,0,0,340,341,5,125,0,0,341,34,1,0,0,0,342,343,5,97,0,0,343,344,5,98,0,0,344,345,5,115,0,0,345,346,5,116,0,0,346,347,5,114,0,0,347,348,5,97,0,0,348,349,5,99,0,0,349,350,5,116,0,0,350,36,1,0,0,0,351,352,5,99,0,0,352,353,5,111,0,0,353,354,5,110,0,0,354,355,5,116,0,0,355,356,5,114,0,0,356,357,5,97,0,0,357,358,5,99,0,0,358,359,5,116,0,0,359,38,1,0,0,0,360,361,5,105,0,0,361,362,5,110,0,0,362,363,5,116,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365,366,5,102,0,0,366,367,5,97,0,0,367,368,5,99,0,0,368,369,5,101,0,0,369,40,1,0,0,0,370,371,5,108,0,0,371,372,5,105,0,0,372,373,5,98,0,0,373,374,5,114,0,0,374,375,5,97,0,0,375,376,5,114,0,0,376,377,5,121,0,0,377,42,1,0,0,0,378,379,5,105,0,0,379,380,5,115,0,0,380,44,1,0,0,0,381,382,5,40,0,0,382,46,1,0,0,0,383,384,5,41,0,0,384,48,1,0,0,0,385,386,5,108,0,0,386,387,5,97,0,0,387,388,5,121,0,0,388,389,5,111,0,0,389,390,5,117,0,0,390,391,5,116,0,0,391,50,1,0,0,0,392,393,5,97,0,0,393,394,5,116,0,0,394,52,1,0,0,0,395,396,5,101,0,0,396,397,5,114,0,0,397,398,5,114,0,0,398,399,5,111,0,0,399,400,5,114,0,0,400,54,1,0,0,0,401,402,5,117,0,0,402,403,5,115,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,103,0,0,406,56,1,0,0,0,407,408,5,102,0,0,408,409,5,111,0,0,409,410,5,114,0,0,410,58,1,0,0,0,411,412,5,124,0,0,412,60,1,0,0,0,413,414,5,38,0,0,414,62,1,0,0,0,415,416,5,43,0,0,416,64,1,0,0,0,417,418,5,45,0,0,418,66,1,0,0,0,419,420,5,47,0,0,420,68,1,0,0,0,421,422,5,37,0,0,422,70,1,0,0,0,423,424,5,61,0,0,424,425,5,61,0,0,425,72,1,0,0,0,426,427,5,33,0,0,427,428,5,61,0,0,428,74,1,0,0,0,429,430,5,115,0,0,430,431,5,116,0,0,431,432,5,114,0,0,432,433,5,117,0,0,433,434,5,99,0,0,434,435,5,116,0,0,435,76,1,0,0,0,436,437,5,109,0,0,437,438,5,111,0,0,438,439,5,100,0,0,439,440,5,105,0,0,440,441,5,102,0,0,441,442,5,105,0,0,442,443,5,101,0,0,443,444,5,114,0,0,444,78,1,0,0,0,445,446,5,102,0,0,446,447,5,117,0,0,447,448,5,110,0,0,448,449,5,99,0,0,449,450,5,116,0,0,450,451,5,105,0,0,451,452,5,111,0,0,452,453,5,110,0,0,453,80,1,0,0,0,454,455,5,114,0,0,455,456,5,101,0,0,456,457,5,116,0,0,457,458,5,117,0,0,458,459,5,114,0,0,459,460,5,110,0,0,460,461,5,115,0,0,461,82,1,0,0,0,462,463,5,101,0,0,463,464,5,118,0,0,464,465,5,101,0,0,465,466,5,110,0,0,466,467,5,116,0,0,467,84,1,0,0,0,468,469,5,101,0,0,469,470,5,110,0,0,470,471,5,117,0,0,471,472,5,109,0,0,472,86,1,0,0,0,473,474,5,91,0,0,474,88,1,0,0,0,475,476,5,93,0,0,476,90,1,0,0,0,477,478,5,97,0,0,478,479,5,100,0,0,479,480,5,100,0,0,480,481,5,114,0,0,481,482,5,101,0,0,482,483,5,115,0,0,483,484,5,115,0,0,484,92,1,0,0,0,485,486,5,46,0,0,486,94,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489,490,5,112,0,0,490,491,5,112,0,0,491,492,5,105,0,0,492,493,5,110,0,0,493,494,5,103,0,0,494,96,1,0,0,0,495,496,5,61,0,0,496,497,5,62,0,0,497,98,1,0,0,0,498,499,5,109,0,0,499,500,5,101,0,0,500,501,5,109,0,0,501,502,5,111,0,0,502,503,5,114,0,0,503,504,5,121,0,0,504,100,1,0,0,0,505,506,5,115,0,0,506,507,5,116,0,0,507,508,5,111,0,0,508,509,5,114,0,0,509,510,5,97,0,0,510,511,5,103,0,0,511,512,5,101,0,0,512,102,1,0,0,0,513,514,5,99,0,0,514,515,5,97,0,0,515,516,5,108,0,0,516,517,5,108,0,0,517,518,5,100,0,0,518,519,5,97,0,0,519,520,5,116,0,0,520,521,5,97,0,0,521,104,1,0,0,0,522,523,5,105,0,0,523,524,5,102,0,0,524,106,1,0,0,0,525,526,5,101,0,0,526,527,5,108,0,0,527,528,5,115,0,0,528,529,5,101,0,0,529,108,1,0,0,0,530,531,5,116,0,0,531,532,5,114,0,0,532,533,5,121,0,0,533,110,1,0,0,0,534,535,5,99,0,0,535,536,5,97,0,0,536,537,5,116,0,0,537,538,5,99,0,0,538,539,5,104,0,0,539,112,1,0,0,0,540,541,5,119,0,0,541,542,5,104,0,0,542,543,5,105,0,0,543,544,5,108,0,0,544,545,5,101,0,0,545,114,1,0,0,0,546,547,5,117,0,0,547,548,5,110,0,0,548,549,5,99,0,0,549,550,5,104,0,0,550,551,5,101,0,0,551,552,5,99,0,0,552,553,5,107,0,0,553,554,5,101,0,0,554,555,5,100,0,0,555,116,1,0,0,0,556,557,5,97,0,0,557,558,5,115,0,0,558,559,5,115,0,0,559,560,5,101,0,0,560,561,5,109,0,0,561,562,5,98,0,0,562,563,5,108,0,0,563,564,5,121,0,0,564,118,1,0,0,0,565,566,5,100,0,0,566,567,5,111,0,0,567,120,1,0,0,0,568,569,5,114,0,0,569,570,5,101,0,0,570,571,5,116,0,0,571,572,5,117,0,0,572,573,5,114,0,0,573,574,5,110,0,0,574,122,1,0,0,0,575,576,5,116,0,0,576,577,5,104,0,0,577,578,5,114,0,0,578,579,5,111,0,0,579,580,5,119,0,0,580,124,1,0,0,0,581,582,5,101,0,0,582,583,5,109,0,0,583,584,5,105,0,0,584,585,5,116,0,0,585,126,1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,118,0,0,589,590,5,101,0,0,590,591,5,114,0,0,591,592,5,116,0,0,592,128,1,0,0,0,593,594,5,118,0,0,594,595,5,97,0,0,595,596,5,114,0,0,596,130,1,0,0,0,597,598,5,98,0,0,598,599,5,111,0,0,599,600,5,111,0,0,600,601,5,108,0,0,601,132,1,0,0,0,602,603,5,115,0,0,603,604,5,116,0,0,604,605,5,114,0,0,605,606,5,105,0,0,606,607,5,110,0,0,607,608,5,103,0,0,608,134,1,0,0,0,609,610,5,98,0,0,610,611,5,121,0,0,611,612,5,116,0,0,612,613,5,101,0,0,613,136,1,0,0,0,614,615,5,43,0,0,615,616,5,43,0,0,616,138,1,0,0,0,617,618,5,45,0,0,618,619,5,45,0,0,619,140,1,0,0,0,620,621,5,110,0,0,621,622,5,101,0,0,622,623,5,119,0,0,623,142,1,0,0,0,624,625,5,58,0,0,625,144,1,0,0,0,626,627,5,100,0,0,627,628,5,101,0,0,628,629,5,108,0,0,629,630,5,101,0,0,630,631,5,116,0,0,631,632,5,101,0,0,632,146,1,0,0,0,633,634,5,33,0,0,634,148,1,0,0,0,635,636,5,42,0,0,636,637,5,42,0,0,637,150,1,0,0,0,638,639,5,60,0,0,639,640,5,60,0,0,640,152,1,0,0,0,641,642,5,62,0,0,642,643,5,62,0,0,643,154,1,0,0,0,644,645,5,38,0,0,645,646,5,38,0,0,646,156,1,0,0,0,647,648,5,63,0,0,648,158,1,0,0,0,649,650,5,124,0,0,650,651,5,61,0,0,651,160,1,0,0,0,652,653,5,94,0,0,653,654,5,61,0,0,654,162,1,0,0,0,655,656,5,38,0,0,656,657,5,61,0,0,657,164,1,0,0,0,658,659,5,60,0,0,659,660,5,60,0,0,660,661,5,61,0,0,661,166,1,0,0,0,662,663,5,62,0,0,663,664,5,62,0,0,664,665,5,61,0,0,665,168,1,0,0,0,666,667,5,43,0,0,667,668,5,61,0,0,668,170,1,0,0,0,669,670,5,45,0,0,670,671,5,61,0,0,671,172,1,0,0,0,672,673,5,42,0,0,673,674,5,61,0,0,674,174,1,0,0,0,675,676,5,47,0,0,676,677,5,61,0,0,677,176,1,0,0,0,678,679,5,37,0,0,679,680,5,61,0,0,680,178,1,0,0,0,681,682,5,108,0,0,682,683,5,101,0,0,683,684,5,116,0,0,684,180,1,0,0,0,685,686,5,58,0,0,686,687,5,61,0,0,687,182,1,0,0,0,688,689,5,61,0,0,689,690,5,58,0,0,690,184,1,0,0,0,691,692,5,115,0,0,692,693,5,119,0,0,693,694,5,105,0,0,694,695,5,116,0,0,695,696,5,99,0,0,696,697,5,104,0,0,697,186,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,115,0,0,701,702,5,101,0,0,702,188,1,0,0,0,703,704,5,100,0,0,704,705,5,101,0,0,705,706,5,102,0,0,706,707,5,97,0,0,707,708,5,117,0,0,708,709,5,108,0,0,709,710,5,116,0,0,710,190,1,0,0,0,711,712,5,45,0,0,712,713,5,62,0,0,713,192,1,0,0,0,714,715,5,99,0,0,715,716,5,97,0,0,716,717,5,108,0,0,717,718,5,108,0,0,718,719,5,98,0,0,719,720,5,97,0,0,720,721,5,99,0,0,721,722,5,107,0,0,722,194,1,0,0,0,723,724,5,111,0,0,724,725,5,118,0,0,725,726,5,101,0,0,726,727,5,114,0,0,727,728,5,114,0,0,728,729,5,105,0,0,729,730,5,100,0,0,730,731,5,101,0,0,731,196,1,0,0,0,732,733,5,105,0,0,733,734,5,110,0,0,734,735,5,116,0,0,735,737,1,0,0,0,736,738,3,207,103,0,737,736,1,0,0,0,737,738,1,0,0,0,738,198,1,0,0,0,739,740,5,117,0,0,740,741,5,105,0,0,741,742,5,110,0,0,742,743,5,116,0,0,743,745,1,0,0,0,744,746,3,207,103,0,745,744,1,0,0,0,745,746,1,0,0,0,746,200,1,0,0,0,747,748,5,98,0,0,748,749,5,121,0,0,749,750,5,116,0,0,750,751,5,101,0,0,751,752,5,115,0,0,752,754,1,0,0,0,753,755,3,209,104,0,754,753,1,0,0,0,754,755,1,0,0,0,755,202,1,0,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,207,103,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,204,1,0,0,0,771,772,5,117,0,0,772,773,5,102,0,0,773,774,5,105,0,0,774,775,5,120,0,0,775,776,5,101,0,0,776,777,5,100,0,0,777,785,1,0,0,0,778,779,3,207,103,0,779,781,5,120,0,0,780,782,7,0,0,0,781,780,1,0,0,0,782,783,1,0,0,0,783,781,1,0,0,0,783,784,1,0,0,0,784,786,1,0,0,0,785,778,1,0,0,0,785,786,1,0,0,0,786,206,1,0,0,0,787,871,5,56,0,0,788,789,5,49,0,0,789,871,5,54,0,0,790,791,5,50,0,0,791,871,5,52,0,0,792,793,5,51,0,0,793,871,5,50,0,0,794,795,5,52,0,0,795,871,5,48,0,0,796,797,5,52,0,0,797,871,5,56,0,0,798,799,5,53,0,0,799,871,5,54,0,0,800,801,5,54,0,0,801,871,5,52,0,0,802,803,5,55,0,0,803,871,5,50,0,0,804,805,5,56,0,0,805,871,5,48,0,0,806,807,5,56,0,0,807,871,5,56,0,0,808,809,5,57,0,0,809,871,5,54,0,0,810,811,5,49,0,0,811,812,5,48,0,0,812,871,5,52,0,0,813,814,5,49,0,0,814,815,5,49,0,0,815,871,5,50,0,0,816,817,5,49,0,0,817,818,5,50,0,0,818,871,5,48,0,0,819,820,5,49,0,0,820,821,5,50,0,0,821,871,5,56,0,0,822,823,5,49,0,0,823,824,5,51,0,0,824,871,5,54,0,0,825,826,5,49,0,0,826,827,5,52,0,0,827,871,5,52,0,0,828,829,5,49,0,0,829,830,5,53,0,0,830,871,5,50,0,0,831,832,5,49,0,0,832,833,5,54,0,0,833,871,5,48,0,0,834,835,5,49,0,0,835,836,5,54,0,0,836,871,5,56,0,0,837,838,5,49,0,0,838,839,5,55,0,0,839,871,5,54,0,0,840,841,5,49,0,0,841,842,5,56,0,0,842,871,5,52,0,0,843,844,5,49,0,0,844,845,5,57,0,0,845,871,5,50,0,0,846,847,5,50,0,0,847,848,5,48,0,0,848,871,5,48,0,0,849,850,5,50,0,0,850,851,5,48,0,0,851,871,5,56,0,0,852,853,5,50,0,0,853,854,5,49,0,0,854,871,5,54,0,0,855,856,5,50,0,0,856,857,5,50,0,0,857,871,5,52,0,0,858,859,5,50,0,0,859,860,5,51,0,0,860,871,5,50,0,0,861,862,5,50,0,0,862,863,5,52,0,0,863,871,5,48,0,0,864,865,5,50,0,0,865,866,5,52,0,0,866,871,5,56,0,0,867,868,5,50,0,0,868,869,5,53,0,0,869,871,5,54,0,0,870,787,1,0,0,0,870,788,1,0,0,0,870,790,1,0,0,0,870,792,1,0,0,0,870,794,1,0,0,0,870,796,1,0,0,0,870,798,1,0,0,0,870,800,1,0,0,0,870,802,1,0,0,0,870,804,1,0,0,0,870,806,1,0,0,0,870,808,1,0,0,0,870,810,1,0,0,0,870,813,1,0,0,0,870,816,1,0,0,0,870,819,1,0,0,0,870,822,1,0,0,0,870,825,1,0,0,0,870,828,1,0,0,0,870,831,1,0,0,0,870,834,1,0,0,0,870,837,1,0,0,0,870,840,1,0,0,0,870,843,1,0,0,0,870,846,1,0,0,0,870,849,1,0,0,0,870,852,1,0,0,0,870,855,1,0,0,0,870,858,1,0,0,0,870,861,1,0,0,0,870,864,1,0,0,0,870,867,1,0,0,0,871,208,1,0,0,0,872,878,7,1,0,0,873,874,7,2,0,0,874,878,7,0,0,0,875,876,5,51,0,0,876,878,7,3,0,0,877,872,1,0,0,0,877,873,1,0,0,0,877,875,1,0,0,0,878,210,1,0,0,0,879,880,5,116,0,0,880,881,5,114,0,0,881,882,5,117,0,0,882,889,5,101,0,0,883,884,5,102,0,0,884,885,5,97,0,0,885,886,5,108,0,0,886,887,5,115,0,0,887,889,5,101,0,0,888,879,1,0,0,0,888,883,1,0,0,0,889,212,1,0,0,0,890,897,3,215,107,0,891,893,3,215,107,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,895,5,46,0,0,895,897,3,215,107,0,896,890,1,0,0,0,896,892,1,0,0,0,897,903,1,0,0,0,898,900,7,4,0,0,899,901,5,45,0,0,900,899,1,0,0,0,900,901,1,0,0,0,901,902,1,0,0,0,902,904,3,215,107,0,903,898,1,0,0,0,903,904,1,0,0,0,904,214,1,0,0,0,905,912,7,0,0,0,906,908,5,95,0,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0,0,909,911,7,0,0,0,910,907,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,216,1,0,0,0,914,912,1,0,0,0,915,916,5,48,0,0,916,917,7,5,0,0,917,918,3,219,109,0,918,218,1,0,0,0,919,926,3,225,112,0,920,922,5,95,0,0,921,920,1,0,0,0,921,922,1,0,0,0,922,923,1,0,0,0,923,925,3,225,112,0,924,921,1,0,0,0,925,928,1,0,0,0,926,924,1,0,0,0,926,927,1,0,0,0,927,220,1,0,0,0,928,926,1,0,0,0,929,930,5,119,0,0,930,931,5,101,0,0,931,986,5,105,0,0,932,933,5,103,0,0,933,934,5,119,0,0,934,935,5,101,0,0,935,986,5,105,0,0,936,937,5,115,0,0,937,938,5,122,0,0,938,939,5,97,0,0,939,940,5,98,0,0,940,986,5,111,0,0,941,942,5,102,0,0,942,943,5,105,0,0,943,944,5,110,0,0,944,945,5,110,0,0,945,946,5,101,0,0,946,986,5,121,0,0,947,948,5,101,0,0,948,949,5,116,0,0,949,950,5,104,0,0,950,951,5,101,0,0,951,986,5,114,0,0,952,953,5,115,0,0,953,954,5,101,0,0,954,955,5,99,0,0,955,956,5,111,0,0,956,957,5,110,0,0,957,958,5,100,0,0,958,986,5,115,0,0,959,960,5,109,0,0,960,961,5,105,0,0,961,962,5,110,0,0,962,963,5,117,0,0,963,964,5,116,0,0,964,965,5,101,0,0,965,986,5,115,0,0,966,967,5,104,0,0,967,968,5,111,0,0,968,969,5,117,0,0,969,970,5,114,0,0,970,986,5,115,0,0,971,972,5,100,0,0,972,973,5,97,0,0,973,974,5,121,0,0,974,986,5,115,0,0,975,976,5,119,0,0,976,977,5,101,0,0,977,978,5,101,0,0,978,979,5,107,0,0,979,986,5,115,0,0,980,981,5,121,0,0,981,982,5,101,0,0,982,983,5,97,0,0,983,984,5,114,0,0,984,986,5,115,0,0,985,929,1,0,0,0,985,932,1,0,0,0,985,936,1,0,0,0,985,941,1,0,0,0,985,947,1,0,0,0,985,952,1,0,0,0,985,959,1,0,0,0,985,966,1,0,0,0,985,971,1,0,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,222,1,0,0,0,987,988,5,104,0,0,988,989,5,101,0,0,989,990,5,120,0,0,990,1001,1,0,0,0,991,993,5,34,0,0,992,994,3,219,109,0,993,992,1,0,0,0,993,994,1,0,0,0,994,995,1,0,0,0,995,1002,5,34,0,0,996,998,5,39,0,0,997,999,3,219,109,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1002,5,39,0,0,1001,991,1,0,0,0,1001,996,1,0,0,0,1002,224,1,0,0,0,1003,1004,7,6,0,0,1004,226,1,0,0,0,1005,1006,5,97,0,0,1006,1007,5,102,0,0,1007,1008,5,116,0,0,1008,1009,5,101,0,0,1009,1176,5,114,0,0,1010,1011,5,97,0,0,1011,1012,5,108,0,0,1012,1013,5,105,0,0,1013,1014,5,97,0,0,1014,1176,5,115,0,0,1015,1016,5,97,0,0,1016,1017,5,112,0,0,1017,1018,5,112,0,0,1018,1019,5,108,0,0,1019,1176,5,121,0,0,1020,1021,5,97,0,0,1021,1022,5,117,0,0,1022,1023,5,116,0,0,1023,1176,5,111,0,0,1024,1025,5,99,0,0,1025,1026,5,97,0,0,1026,1027,5,115,0,0,1027,1176,5,101,0,0,1028,1029,5,99,0,0,1029,1030,5,111,0,0,1030,1031,5,112,0,0,1031,1032,5,121,0,0,1032,1033,5,111,0,0,1033,1176,5,102,0,0,1034,1035,5,100,0,0,1035,1036,5,101,0,0,1036,1037,5,102,0,0,1037,1038,5,97,0,0,1038,1039,5,117,0,0,1039,1040,5,108,0,0,1040,1176,5,116,0,0,1041,1042,5,100,0,0,1042,1043,5,101,0,0,1043,1044,5,102,0,0,1044,1045,5,105,0,0,1045,1046,5,110,0,0,1046,1176,5,101,0,0,1047,1048,5,102,0,0,1048,1049,5,105,0,0,1049,1050,5,110,0,0,1050,1051,5,97,0,0,1051,1176,5,108,0,0,1052,1053,5,105,0,0,1053,1054,5,109,0,0,1054,1055,5,112,0,0,1055,1056,5,108,0,0,1056,1057,5,101,0,0,1057,1058,5,109,0,0,1058,1059,5,101,0,0,1059,1060,5,110,0,0,1060,1061,5,116,0,0,1061,1176,5,115,0,0,1062,1063,5,105,0,0,1063,1176,5,110,0,0,1064,1065,5,105,0,0,1065,1066,5,110,0,0,1066,1067,5,108,0,0,1067,1068,5,105,0,0,1068,1069,5,110,0,0,1069,1176,5,101,0,0,1070,1071,5,108,0,0,1071,1072,5,101,0,0,1072,1176,5,116,0,0,1073,1074,5,109,0,0,1074,1075,5,97,0,0,1075,1076,5,99,0,0,1076,1077,5,114,0,0,1077,1176,5,111,0,0,1078,1079,5,109,0,0,1079,1080,5,97,0,0,1080,1081,5,116,0,0,1081,1082,5,99,0,0,1082,1176,5,104,0,0,1083,1084,5,109,0,0,1084,1085,5,117,0,0,1085,1086,5,116,0,0,1086,1087,5,97,0,0,1087,1088,5,98,0,0,1088,1089,5,108,0,0,1089,1176,5,101,0,0,1090,1091,5,110,0,0,1091,1092,5,117,0,0,1092,1093,5,108,0,0,1093,1176,5,108,0,0,1094,1095,5,111,0,0,1095,1176,5,102,0,0,1096,1097,5,112,0,0,1097,1098,5,97,0,0,1098,1099,5,114,0,0,1099,1100,5,116,0,0,1100,1101,5,105,0,0,1101,1102,5,97,0,0,1102,1176,5,108,0,0,1103,1104,5,112,0,0,1104,1105,5,114,0,0,1105,1106,5,111,0,0,1106,1107,5,109,0,0,1107,1108,5,105,0,0,1108,1109,5,115,0,0,1109,1176,5,101,0,0,1110,1111,5,114,0,0,1111,1112,5,101,0,0,1112,1113,5,102,0,0,1113,1114,5,101,0,0,1114,1115,5,114,0,0,1115,1116,5,101,0,0,1116,1117,5,110,0,0,1117,1118,5,99,0,0,1118,1176,5,101,0,0,1119,1120,5,114,0,0,1120,1121,5,101,0,0,1121,1122,5,108,0,0,1122,1123,5,111,0,0,1123,1124,5,99,0,0,1124,1125,5,97,0,0,1125,1126,5,116,0,0,1126,1127,5,97,0,0,1127,1128,5,98,0,0,1128,1129,5,108,0,0,1129,1176,5,101,0,0,1130,1131,5,115,0,0,1131,1132,5,101,0,0,1132,1133,5,97,0,0,1133,1134,5,108,0,0,1134,1135,5,101,0,0,1135,1176,5,100,0,0,1136,1137,5,115,0,0,1137,1138,5,105,0,0,1138,1139,5,122,0,0,1139,1140,5,101,0,0,1140,1141,5,111,0,0,1141,1176,5,102,0,0,1142,1143,5,115,0,0,1143,1144,5,116,0,0,1144,1145,5,97,0,0,1145,1146,5,116,0,0,1146,1147,5,105,0,0,1147,1176,5,99,0,0,1148,1149,5,115,0,0,1149,1150,5,117,0,0,1150,1151,5,112,0,0,1151,1152,5,112,0,0,1152,1153,5,111,0,0,1153,1154,5,114,0,0,1154,1155,5,116,0,0,1155,1176,5,115,0,0,1156,1157,5,115,0,0,1157,1158,5,119,0,0,1158,1159,5,105,0,0,1159,1160,5,116,0,0,1160,1161,5,99,0,0,1161,1176,5,104,0,0,1162,1163,5,116,0,0,1163,1164,5,121,0,0,1164,1165,5,112,0,0,1165,1166,5,101,0,0,1166,1167,5,100,0,0,1167,1168,5,101,0,0,1168,1176,5,102,0,0,1169,1170,5,116,0,0,1170,1171,5,121,0,0,1171,1172,5,112,0,0,1172,1173,5,101,0,0,1173,1174,5,111,0,0,1174,1176,5,102,0,0,1175,1005,1,0,0,0,1175,1010,1,0,0,0,1175,1015,1,0,0,0,1175,1020,1,0,0,0,1175,1024,1,0,0,0,1175,1028,1,0,0,0,1175,1034,1,0,0,0,1175,1041,1,0,0,0,1175,1047,1,0,0,0,1175,1052,1,0,0,0,1175,1062,1,0,0,0,1175,1064,1,0,0,0,1175,1070,1,0,0,0,1175,1073,1,0,0,0,1175,1078,1,0,0,0,1175,1083,1,0,0,0,1175,1090,1,0,0,0,1175,1094,1,0,0,0,1175,1096,1,0,0,0,1175,1103,1,0,0,0,1175,1110,1,0,0,0,1175,1119,1,0,0,0,1175,1130,1,0,0,0,1175,1136,1,0,0,0,1175,1142,1,0,0,0,1175,1148,1,0,0,0,1175,1156,1,0,0,0,1175,1162,1,0,0,0,1175,1169,1,0,0,0,1176,228,1,0,0,0,1177,1178,5,97,0,0,1178,1179,5,110,0,0,1179,1180,5,111,0,0,1180,1181,5,110,0,0,1181,1182,5,121,0,0,1182,1183,5,109,0,0,1183,1184,5,111,0,0,1184,1185,5,117,0,0,1185,1186,5,115,0,0,1186,230,1,0,0,0,1187,1188,5,98,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,1191,5,97,0,0,1191,1192,5,107,0,0,1192,232,1,0,0,0,1193,1194,5,99,0,0,1194,1195,5,111,0,0,1195,1196,5,110,0,0,1196,1197,5,115,0,0,1197,1198,5,116,0,0,1198,1199,5,97,0,0,1199,1200,5,110,0,0,1200,1201,5,116,0,0,1201,234,1,0,0,0,1202,1203,5,116,0,0,1203,1204,5,114,0,0,1204,1205,5,97,0,0,1205,1206,5,110,0,0,1206,1207,5,115,0,0,1207,1208,5,105,0,0,1208,1209,5,101,0,0,1209,1210,5,110,0,0,1210,1211,5,116,0,0,1211,236,1,0,0,0,1212,1213,5,105,0,0,1213,1214,5,109,0,0,1214,1215,5,109,0,0,1215,1216,5,117,0,0,1216,1217,5,116,0,0,1217,1218,5,97,0,0,1218,1219,5,98,0,0,1219,1220,5,108,0,0,1220,1221,5,101,0,0,1221,238,1,0,0,0,1222,1223,5,99,0,0,1223,1224,5,111,0,0,1224,1225,5,110,0,0,1225,1226,5,116,0,0,1226,1227,5,105,0,0,1227,1228,5,110,0,0,1228,1229,5,117,0,0,1229,1230,5,101,0,0,1230,240,1,0,0,0,1231,1232,5,108,0,0,1232,1233,5,101,0,0,1233,1234,5,97,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,242,1,0,0,0,1237,1238,5,101,0,0,1238,1239,5,120,0,0,1239,1240,5,116,0,0,1240,1241,5,101,0,0,1241,1242,5,114,0,0,1242,1243,5,110,0,0,1243,1244,5,97,0,0,1244,1245,5,108,0,0,1245,244,1,0,0,0,1246,1247,5,105,0,0,1247,1248,5,110,0,0,1248,1249,5,100,0,0,1249,1250,5,101,0,0,1250,1251,5,120,0,0,1251,1252,5,101,0,0,1252,1253,5,100,0,0,1253,246,1,0,0,0,1254,1255,5,105,0,0,1255,1256,5,110,0,0,1256,1257,5,116,0,0,1257,1258,5,101,0,0,1258,1259,5,114,0,0,1259,1260,5,110,0,0,1260,1261,5,97,0,0,1261,1262,5,108,0,0,1262,248,1,0,0,0,1263,1264,5,112,0,0,1264,1265,5,97,0,0,1265,1266,5,121,0,0,1266,1267,5,97,0,0,1267,1268,5,98,0,0,1268,1269,5,108,0,0,1269,1270,5,101,0,0,1270,250,1,0,0,0,1271,1272,5,112,0,0,1272,1273,5,114,0,0,1273,1274,5,105,0,0,1274,1275,5,118,0,0,1275,1276,5,97,0,0,1276,1277,5,116,0,0,1277,1278,5,101,0,0,1278,252,1,0,0,0,1279,1280,5,112,0,0,1280,1281,5,117,0,0,1281,1282,5,98,0,0,1282,1283,5,108,0,0,1283,1284,5,105,0,0,1284,1285,5,99,0,0,1285,254,1,0,0,0,1286,1287,5,118,0,0,1287,1288,5,105,0,0,1288,1289,5,114,0,0,1289,1290,5,116,0,0,1290,1291,5,117,0,0,1291,1292,5,97,0,0,1292,1293,5,108,0,0,1293,256,1,0,0,0,1294,1295,5,112,0,0,1295,1296,5,117,0,0,1296,1297,5,114,0,0,1297,1298,5,101,0,0,1298,258,1,0,0,0,1299,1300,5,116,0,0,1300,1301,5,121,0,0,1301,1302,5,112,0,0,1302,1303,5,101,0,0,1303,260,1,0,0,0,1304,1305,5,118,0,0,1305,1306,5,105,0,0,1306,1307,5,101,0,0,1307,1308,5,119,0,0,1308,262,1,0,0,0,1309,1310,5,103,0,0,1310,1311,5,108,0,0,1311,1312,5,111,0,0,1312,1313,5,98,0,0,1313,1314,5,97,0,0,1314,1315,5,108,0,0,1315,264,1,0,0,0,1316,1317,5,99,0,0,1317,1318,5,111,0,0,1318,1319,5,110,0,0,1319,1320,5,115,0,0,1320,1321,5,116,0,0,1321,1322,5,114,0,0,1322,1323,5,117,0,0,1323,1324,5,99,0,0,1324,1325,5,116,0,0,1325,1326,5,111,0,0,1326,1327,5,114,0,0,1327,266,1,0,0,0,1328,1329,5,102,0,0,1329,1330,5,97,0,0,1330,1331,5,108,0,0,1331,1332,5,108,0,0,1332,1333,5,98,0,0,1333,1334,5,97,0,0,1334,1335,5,99,0,0,1335,1336,5,107,0,0,1336,268,1,0,0,0,1337,1338,5,114,0,0,1338,1339,5,101,0,0,1339,1340,5,99,0,0,1340,1341,5,101,0,0,1341,1342,5,105,0,0,1342,1343,5,118,0,0,1343,1344,5,101,0,0,1344,270,1,0,0,0,1345,1349,3,273,136,0,1346,1348,3,275,137,0,1347,1346,1,0,0,0,1348,1351,1,0,0,0,1349,1347,1,0,0,0,1349,1350,1,0,0,0,1350,272,1,0,0,0,1351,1349,1,0,0,0,1352,1353,7,7,0,0,1353,274,1,0,0,0,1354,1355,7,8,0,0,1355,276,1,0,0,0,1356,1357,5,117,0,0,1357,1358,5,110,0,0,1358,1359,5,105,0,0,1359,1360,5,99,0,0,1360,1361,5,111,0,0,1361,1362,5,100,0,0,1362,1364,5,101,0,0,1363,1356,1,0,0,0,1363,1364,1,0,0,0,1364,1381,1,0,0,0,1365,1369,5,34,0,0,1366,1368,3,279,139,0,1367,1366,1,0,0,0,1368,1371,1,0,0,0,1369,1367,1,0,0,0,1369,1370,1,0,0,0,1370,1372,1,0,0,0,1371,1369,1,0,0,0,1372,1382,5,34,0,0,1373,1377,5,39,0,0,1374,1376,3,281,140,0,1375,1374,1,0,0,0,1376,1379,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1380,1,0,0,0,1379,1377,1,0,0,0,1380,1382,5,39,0,0,1381,1365,1,0,0,0,1381,1373,1,0,0,0,1382,278,1,0,0,0,1383,1387,8,9,0,0,1384,1385,5,92,0,0,1385,1387,9,0,0,0,1386,1383,1,0,0,0,1386,1384,1,0,0,0,1387,280,1,0,0,0,1388,1392,8,10,0,0,1389,1390,5,92,0,0,1390,1392,9,0,0,0,1391,1388,1,0,0,0,1391,1389,1,0,0,0,1392,282,1,0,0,0,1393,1395,7,0,0,0,1394,1393,1,0,0,0,1395,1396,1,0,0,0,1396,1394,1,0,0,0,1396,1397,1,0,0,0,1397,1398,1,0,0,0,1398,1400,5,46,0,0,1399,1401,7,0,0,0,1400,1399,1,0,0,0,1401,1402,1,0,0,0,1402,1400,1,0,0,0,1402,1403,1,0,0,0,1403,1410,1,0,0,0,1404,1406,5,46,0,0,1405,1407,7,0,0,0,1406,1405,1,0,0,0,1407,1408,1,0,0,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1411,1,0,0,0,1410,1404,1,0,0,0,1410,1411,1,0,0,0,1411,284,1,0,0,0,1412,1414,7,11,0,0,1413,1412,1,0,0,0,1414,1415,1,0,0,0,1415,1413,1,0,0,0,1415,1416,1,0,0,0,1416,1417,1,0,0,0,1417,1418,6,142,0,0,1418,286,1,0,0,0,1419,1420,5,47,0,0,1420,1421,5,42,0,0,1421,1425,1,0,0,0,1422,1424,9,0,0,0,1423,1422,1,0,0,0,1424,1427,1,0,0,0,1425,1426,1,0,0,0,1425,1423,1,0,0,0,1426,1428,1,0,0,0,1427,1425,1,0,0,0,1428,1429,5,42,0,0,1429,1430,5,47,0,0,1430,1431,1,0,0,0,1431,1432,6,143,1,0,1432,288,1,0,0,0,1433,1434,5,47,0,0,1434,1435,5,47,0,0,1435,1439,1,0,0,0,1436,1438,8,12,0,0,1437,1436,1,0,0,0,1438,1441,1,0,0,0,1439,1437,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1439,1,0,0,0,1442,1443,6,144,1,0,1443,290,1,0,0,0,38,0,737,745,754,767,769,783,785,870,877,888,892,896,900,903,907,912,921,926,985,993,998,1001,1175,1349,1363,1369,1377,1381,1386,1391,1396,1402,1408,1410,1415,1425,1439,2,6,0,0,0,1,0],k.DecisionsToDFA=k._ATN.decisionToState.map((t,e)=>new p(t,e));var R=k,A=class t extends v{get grammarFileName(){return"Solidity.g4"}get literalNames(){return t.literalNames}get symbolicNames(){return t.symbolicNames}get ruleNames(){return t.ruleNames}get serializedATN(){return t._serializedATN}createFailedPredicateException(t,e){return new y(this,t,e)}constructor(e){super(e),this._interp=new b(this,t._ATN,t.DecisionsToDFA,new E)}sourceUnit(){let e,r=new L(this,this._ctx,this.state);this.enterRule(r,0,t.RULE_sourceUnit);try{for(this.enterOuterAlt(r,1),this.state=217,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&507273218||!(e-38&-32)&&1<<e-38&2080392501||!(e-97&-32)&&1<<e-97&3498573949||!(e-129&-32)&&1<<e-129&7;){switch(this.state=215,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=204,this.pragmaDirective();break;case 2:this.state=205,this.importDirective();break;case 3:this.state=206,this.contractDefinition();break;case 4:this.state=207,this.enumDefinition();break;case 5:this.state=208,this.eventDefinition();break;case 6:this.state=209,this.structDefinition();break;case 7:this.state=210,this.functionDefinition();break;case 8:this.state=211,this.fileLevelConstant();break;case 9:this.state=212,this.customErrorDefinition();break;case 10:this.state=213,this.typeDefinition();break;case 11:this.state=214,this.usingForDeclaration()}this.state=219,this._errHandler.sync(this),e=this._input.LA(1)}this.state=220,this.match(t.EOF)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}pragmaDirective(){let e=new I(this,this._ctx,this.state);this.enterRule(e,2,t.RULE_pragmaDirective);try{this.enterOuterAlt(e,1),this.state=222,this.match(t.T__0),this.state=223,this.pragmaName(),this.state=224,this.pragmaValue(),this.state=225,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaName(){let e=new K(this,this._ctx,this.state);this.enterRule(e,4,t.RULE_pragmaName);try{this.enterOuterAlt(e,1),this.state=227,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaValue(){let e=new N(this,this._ctx,this.state);this.enterRule(e,6,t.RULE_pragmaValue);try{switch(this.state=232,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=229,this.match(t.T__2);break;case 2:this.enterOuterAlt(e,2),this.state=230,this.version();break;case 3:this.enterOuterAlt(e,3),this.state=231,this.expression(0)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}version(){let e,r=new O(this,this._ctx,this.state);this.enterRule(r,8,t.RULE_version);try{for(this.enterOuterAlt(r,1),this.state=234,this.versionConstraint(),this.state=241,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&4080||105===e||133===e;)this.state=236,this._errHandler.sync(this),e=this._input.LA(1),4===e&&(this.state=235,this.match(t.T__3)),this.state=238,this.versionConstraint(),this.state=243,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionOperator(){let e,r=new D(this,this._ctx,this.state);this.enterRule(r,10,t.RULE_versionOperator);try{this.enterOuterAlt(r,1),this.state=244,e=this._input.LA(1),-32&e||!(1<<e&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}versionConstraint(){let e,r=new P(this,this._ctx,this.state);this.enterRule(r,12,t.RULE_versionConstraint);try{switch(this.state=254,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=247,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=246,this.versionOperator()),this.state=249,this.match(t.VersionLiteral);break;case 2:this.enterOuterAlt(r,2),this.state=251,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&4064&&(this.state=250,this.versionOperator()),this.state=253,this.match(t.DecimalNumber)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDeclaration(){let e,r=new q(this,this._ctx,this.state);this.enterRule(r,14,t.RULE_importDeclaration);try{this.enterOuterAlt(r,1),this.state=256,this.identifier(),this.state=259,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=257,this.match(t.T__11),this.state=258,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importDirective(){let e,r=new M(this,this._ctx,this.state);this.enterRule(r,16,t.RULE_importDirective);try{switch(this.state=297,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=261,this.match(t.T__12),this.state=262,this.importPath(),this.state=265,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=263,this.match(t.T__11),this.state=264,this.identifier()),this.state=267,this.match(t.T__1);break;case 2:switch(this.enterOuterAlt(r,2),this.state=269,this.match(t.T__12),this.state=272,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=270,this.match(t.T__2);break;case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.state=271,this.identifier();break;default:throw new w(this)}this.state=276,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=274,this.match(t.T__11),this.state=275,this.identifier()),this.state=278,this.match(t.T__13),this.state=279,this.importPath(),this.state=280,this.match(t.T__1);break;case 3:for(this.enterOuterAlt(r,3),this.state=282,this.match(t.T__12),this.state=283,this.match(t.T__14),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=285,this.match(t.T__15),this.state=286,this.importDeclaration(),this.state=291,this._errHandler.sync(this),e=this._input.LA(1);this.state=292,this.match(t.T__16),this.state=293,this.match(t.T__13),this.state=294,this.importPath(),this.state=295,this.match(t.T__1)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}importPath(){let e=new F(this,this._ctx,this.state);this.enterRule(e,18,t.RULE_importPath);try{this.enterOuterAlt(e,1),this.state=299,this.match(t.StringLiteralFragment)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractDefinition(){let e,r=new U(this,this._ctx,this.state);this.enterRule(r,20,t.RULE_contractDefinition);try{if(this.enterOuterAlt(r,1),this.state=302,this._errHandler.sync(this),e=this._input.LA(1),18===e&&(this.state=301,this.match(t.T__17)),this.state=304,e=this._input.LA(1),-32&e||!(1<<e&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=305,this.identifier(),this.state=307,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,15,this._ctx)&&(this.state=306,this.customStorageLayout()),this.state=318,this._errHandler.sync(this),e=this._input.LA(1),22===e)for(this.state=309,this.match(t.T__21),this.state=310,this.inheritanceSpecifier(),this.state=315,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=311,this.match(t.T__15),this.state=312,this.inheritanceSpecifier(),this.state=317,this._errHandler.sync(this),e=this._input.LA(1);for(this.state=321,this._errHandler.sync(this),e=this._input.LA(1),25===e&&(this.state=320,this.customStorageLayout()),this.state=323,this.match(t.T__14),this.state=327,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&503332864||!(e-38&-32)&&1<<e-38&2080392503||!(e-97&-32)&&1<<e-97&3498573949||!(e-129&-32)&&1<<e-129&7;)this.state=324,this.contractPart(),this.state=329,this._errHandler.sync(this),e=this._input.LA(1);this.state=330,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inheritanceSpecifier(){let e,r=new Y(this,this._ctx,this.state);this.enterRule(r,22,t.RULE_inheritanceSpecifier);try{this.enterOuterAlt(r,1),this.state=332,this.userDefinedTypeName(),this.state=338,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=333,this.match(t.T__22),this.state=335,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=334,this.expressionList()),this.state=337,this.match(t.T__23))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}customStorageLayout(){let e=new V(this,this._ctx,this.state);this.enterRule(e,24,t.RULE_customStorageLayout);try{this.enterOuterAlt(e,1),this.state=340,this.match(t.T__24),this.state=341,this.match(t.T__25),this.state=342,this.expression(0)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let e=new j(this,this._ctx,this.state);this.enterRule(e,26,t.RULE_contractPart);try{switch(this.state=353,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,22,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=344,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(e,2),this.state=345,this.usingForDeclaration();break;case 3:this.enterOuterAlt(e,3),this.state=346,this.structDefinition();break;case 4:this.enterOuterAlt(e,4),this.state=347,this.modifierDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=348,this.functionDefinition();break;case 6:this.enterOuterAlt(e,6),this.state=349,this.eventDefinition();break;case 7:this.enterOuterAlt(e,7),this.state=350,this.enumDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=351,this.customErrorDefinition();break;case 9:this.enterOuterAlt(e,9),this.state=352,this.typeDefinition()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateVariableDeclaration(){let e,r=new B(this,this._ctx,this.state);this.enterRule(r,28,t.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(r,1),this.state=355,this.typeName(0),this.state=365,this._errHandler.sync(this),e=this._input.LA(1);!(e-98&-32)&&1<<e-98&27377665;){switch(this.state=363,this._errHandler.sync(this),this._input.LA(1)){case 122:this.state=356,this.match(t.PublicKeyword);break;case 119:this.state=357,this.match(t.InternalKeyword);break;case 121:this.state=358,this.match(t.PrivateKeyword);break;case 112:this.state=359,this.match(t.ConstantKeyword);break;case 113:this.state=360,this.match(t.TransientKeyword);break;case 114:this.state=361,this.match(t.ImmutableKeyword);break;case 98:this.state=362,this.overrideSpecifier();break;default:throw new w(this)}this.state=367,this._errHandler.sync(this),e=this._input.LA(1)}this.state=368,this.identifier(),this.state=371,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=369,this.match(t.T__10),this.state=370,this.expression(0)),this.state=373,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}fileLevelConstant(){let e=new H(this,this._ctx,this.state);this.enterRule(e,30,t.RULE_fileLevelConstant);try{this.enterOuterAlt(e,1),this.state=375,this.typeName(0),this.state=376,this.match(t.ConstantKeyword),this.state=377,this.identifier(),this.state=378,this.match(t.T__10),this.state=379,this.expression(0),this.state=380,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}customErrorDefinition(){let e=new $(this,this._ctx,this.state);this.enterRule(e,32,t.RULE_customErrorDefinition);try{this.enterOuterAlt(e,1),this.state=382,this.match(t.T__26),this.state=383,this.identifier(),this.state=384,this.parameterList(),this.state=385,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeDefinition(){let e=new G(this,this._ctx,this.state);this.enterRule(e,34,t.RULE_typeDefinition);try{this.enterOuterAlt(e,1),this.state=387,this.match(t.TypeKeyword),this.state=388,this.identifier(),this.state=389,this.match(t.T__21),this.state=390,this.elementaryTypeName(),this.state=391,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForDeclaration(){let e,r=new z(this,this._ctx,this.state);this.enterRule(r,36,t.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(r,1),this.state=393,this.match(t.T__27),this.state=394,this.usingForObject(),this.state=395,this.match(t.T__28),this.state=398,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=396,this.match(t.T__2);break;case 14:case 25:case 26:case 27:case 40:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 97:case 99:case 100:case 101:case 102:case 103:case 116:case 120:case 127:case 128:case 130:case 131:this.state=397,this.typeName(0);break;default:throw new w(this)}this.state=401,this._errHandler.sync(this),e=this._input.LA(1),127===e&&(this.state=400,this.match(t.GlobalKeyword)),this.state=403,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObject(){let e,r=new W(this,this._ctx,this.state);this.enterRule(r,38,t.RULE_usingForObject);try{switch(this.state=417,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.enterOuterAlt(r,1),this.state=405,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(r,2),this.state=406,this.match(t.T__14),this.state=407,this.usingForObjectDirective(),this.state=412,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=408,this.match(t.T__15),this.state=409,this.usingForObjectDirective(),this.state=414,this._errHandler.sync(this),e=this._input.LA(1);this.state=415,this.match(t.T__16);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}usingForObjectDirective(){let e,r=new X(this,this._ctx,this.state);this.enterRule(r,40,t.RULE_usingForObjectDirective);try{this.enterOuterAlt(r,1),this.state=419,this.userDefinedTypeName(),this.state=422,this._errHandler.sync(this),e=this._input.LA(1),12===e&&(this.state=420,this.match(t.T__11),this.state=421,this.userDefinableOperators())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}userDefinableOperators(){let e,r=new Q(this,this._ctx,this.state);this.enterRule(r,42,t.RULE_userDefinableOperators);try{this.enterOuterAlt(r,1),this.state=424,e=this._input.LA(1),!(-32&e)&&1<<e&3221227496||!(e-32&-32)&&1<<e-32&63?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}structDefinition(){let e,r=new J(this,this._ctx,this.state);this.enterRule(r,44,t.RULE_structDefinition);try{if(this.enterOuterAlt(r,1),this.state=426,this.match(t.T__37),this.state=427,this.identifier(),this.state=428,this.match(t.T__14),this.state=439,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=429,this.variableDeclaration(),this.state=430,this.match(t.T__1),this.state=436,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e;)this.state=431,this.variableDeclaration(),this.state=432,this.match(t.T__1),this.state=438,this._errHandler.sync(this),e=this._input.LA(1);this.state=441,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierDefinition(){let e,r=new Z(this,this._ctx,this.state);this.enterRule(r,46,t.RULE_modifierDefinition);try{for(this.enterOuterAlt(r,1),this.state=443,this.match(t.T__38),this.state=444,this.identifier(),this.state=446,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=445,this.parameterList()),this.state=452,this._errHandler.sync(this),e=this._input.LA(1);98===e||123===e;){switch(this.state=450,this._errHandler.sync(this),this._input.LA(1)){case 123:this.state=448,this.match(t.VirtualKeyword);break;case 98:this.state=449,this.overrideSpecifier();break;default:throw new w(this)}this.state=454,this._errHandler.sync(this),e=this._input.LA(1)}switch(this.state=457,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=455,this.match(t.T__1);break;case 15:this.state=456,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}modifierInvocation(){let e,r=new tt(this,this._ctx,this.state);this.enterRule(r,48,t.RULE_modifierInvocation);try{this.enterOuterAlt(r,1),this.state=459,this.identifier(),this.state=465,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=460,this.match(t.T__22),this.state=462,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=461,this.expressionList()),this.state=464,this.match(t.T__23))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDefinition(){let e,r=new et(this,this._ctx,this.state);this.enterRule(r,50,t.RULE_functionDefinition);try{switch(this.enterOuterAlt(r,1),this.state=467,this.functionDescriptor(),this.state=468,this.parameterList(),this.state=469,this.modifierList(),this.state=471,this._errHandler.sync(this),e=this._input.LA(1),41===e&&(this.state=470,this.returnParameters()),this.state=475,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=473,this.match(t.T__1);break;case 15:this.state=474,this.block();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionDescriptor(){let e,r=new rt(this,this._ctx,this.state);this.enterRule(r,52,t.RULE_functionDescriptor);try{switch(this.state=484,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(r,1),this.state=477,this.match(t.T__39),this.state=479,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=478,this.identifier());break;case 128:this.enterOuterAlt(r,2),this.state=481,this.match(t.ConstructorKeyword);break;case 129:this.enterOuterAlt(r,3),this.state=482,this.match(t.FallbackKeyword);break;case 130:this.enterOuterAlt(r,4),this.state=483,this.match(t.ReceiveKeyword);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}returnParameters(){let e=new st(this,this._ctx,this.state);this.enterRule(e,54,t.RULE_returnParameters);try{this.enterOuterAlt(e,1),this.state=486,this.match(t.T__40),this.state=487,this.parameterList()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierList(){let e,r=new it(this,this._ctx,this.state);this.enterRule(r,56,t.RULE_modifierList);try{for(this.enterOuterAlt(r,1),this.state=499,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&4023943171||130===e||131===e;){switch(this.state=497,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:this.state=489,this.match(t.ExternalKeyword);break;case 2:this.state=490,this.match(t.PublicKeyword);break;case 3:this.state=491,this.match(t.InternalKeyword);break;case 4:this.state=492,this.match(t.PrivateKeyword);break;case 5:this.state=493,this.match(t.VirtualKeyword);break;case 6:this.state=494,this.stateMutability();break;case 7:this.state=495,this.modifierInvocation();break;case 8:this.state=496,this.overrideSpecifier()}this.state=501,this._errHandler.sync(this),e=this._input.LA(1)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventDefinition(){let e,r=new nt(this,this._ctx,this.state);this.enterRule(r,58,t.RULE_eventDefinition);try{this.enterOuterAlt(r,1),this.state=502,this.match(t.T__41),this.state=503,this.identifier(),this.state=504,this.eventParameterList(),this.state=506,this._errHandler.sync(this),e=this._input.LA(1),110===e&&(this.state=505,this.match(t.AnonymousKeyword)),this.state=508,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}enumValue(){let e=new at(this,this._ctx,this.state);this.enterRule(e,60,t.RULE_enumValue);try{this.enterOuterAlt(e,1),this.state=510,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumDefinition(){let e,r=new ot(this,this._ctx,this.state);this.enterRule(r,62,t.RULE_enumDefinition);try{for(this.enterOuterAlt(r,1),this.state=512,this.match(t.T__42),this.state=513,this.identifier(),this.state=514,this.match(t.T__14),this.state=516,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=515,this.enumValue()),this.state=522,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=518,this.match(t.T__15),this.state=519,this.enumValue(),this.state=524,this._errHandler.sync(this),e=this._input.LA(1);this.state=525,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameterList(){let e,r=new ct(this,this._ctx,this.state);this.enterRule(r,64,t.RULE_parameterList);try{if(this.enterOuterAlt(r,1),this.state=527,this.match(t.T__22),this.state=536,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=528,this.parameter(),this.state=533,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=529,this.match(t.T__15),this.state=530,this.parameter(),this.state=535,this._errHandler.sync(this),e=this._input.LA(1);this.state=538,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}parameter(){let e,r=new lt(this,this._ctx,this.state);this.enterRule(r,66,t.RULE_parameter);try{this.enterOuterAlt(r,1),this.state=540,this.typeName(0),this.state=542,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,50,this._ctx)&&(this.state=541,this.storageLocation()),this.state=545,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=544,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameterList(){let e,r=new ht(this,this._ctx,this.state);this.enterRule(r,68,t.RULE_eventParameterList);try{if(this.enterOuterAlt(r,1),this.state=547,this.match(t.T__22),this.state=556,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=548,this.eventParameter(),this.state=553,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=549,this.match(t.T__15),this.state=550,this.eventParameter(),this.state=555,this._errHandler.sync(this),e=this._input.LA(1);this.state=558,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}eventParameter(){let e,r=new ut(this,this._ctx,this.state);this.enterRule(r,70,t.RULE_eventParameter);try{this.enterOuterAlt(r,1),this.state=560,this.typeName(0),this.state=562,this._errHandler.sync(this),e=this._input.LA(1),118===e&&(this.state=561,this.match(t.IndexedKeyword)),this.state=565,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=564,this.identifier())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameterList(){let e,r=new dt(this,this._ctx,this.state);this.enterRule(r,72,t.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(r,1),this.state=567,this.match(t.T__22),this.state=576,this._errHandler.sync(this),e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)for(this.state=568,this.functionTypeParameter(),this.state=573,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=569,this.match(t.T__15),this.state=570,this.functionTypeParameter(),this.state=575,this._errHandler.sync(this),e=this._input.LA(1);this.state=578,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionTypeParameter(){let e,r=new pt(this,this._ctx,this.state);this.enterRule(r,74,t.RULE_functionTypeParameter);try{this.enterOuterAlt(r,1),this.state=580,this.typeName(0),this.state=582,this._errHandler.sync(this),e=this._input.LA(1),!(e-50&-32)&&1<<e-50&7&&(this.state=581,this.storageLocation())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclaration(){let e=new mt(this,this._ctx,this.state);this.enterRule(e,76,t.RULE_variableDeclaration);try{this.enterOuterAlt(e,1),this.state=584,this.typeName(0),this.state=586,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,59,this._ctx)&&(this.state=585,this.storageLocation()),this.state=588,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}typeName(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new yt(this,this._ctx,i),a=n;this.enterRecursionRule(n,78,t.RULE_typeName,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,60,this._ctx)){case 1:this.state=591,this.elementaryTypeName();break;case 2:this.state=592,this.userDefinedTypeName();break;case 3:this.state=593,this.mapping();break;case 4:this.state=594,this.functionTypeName();break;case 5:this.state=595,this.match(t.T__45),this.state=596,this.match(t.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=607,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,62,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,n=new yt(this,s,i),this.pushNewRecursionContext(n,78,t.RULE_typeName),this.state=599,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=600,this.match(t.T__43),this.state=602,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=601,this.expression(0)),this.state=604,this.match(t.T__44)}this.state=609,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,62,this._ctx)}}catch(t){if(!(t instanceof T))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}userDefinedTypeName(){let e=new ft(this,this._ctx,this.state);this.enterRule(e,80,t.RULE_userDefinedTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=610,this.identifier(),this.state=615,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;)1===r&&(this.state=611,this.match(t.T__46),this.state=612,this.identifier()),this.state=617,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKey(){let e=new gt(this,this._ctx,this.state);this.enterRule(e,82,t.RULE_mappingKey);try{switch(this.state=620,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,64,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=618,this.elementaryTypeName();break;case 2:this.enterOuterAlt(e,2),this.state=619,this.userDefinedTypeName()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mapping(){let e,r=new wt(this,this._ctx,this.state);this.enterRule(r,84,t.RULE_mapping);try{this.enterOuterAlt(r,1),this.state=622,this.match(t.T__47),this.state=623,this.match(t.T__22),this.state=624,this.mappingKey(),this.state=626,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=625,this.mappingKeyName()),this.state=628,this.match(t.T__48),this.state=629,this.typeName(0),this.state=631,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=630,this.mappingValueName()),this.state=633,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}mappingKeyName(){let e=new xt(this,this._ctx,this.state);this.enterRule(e,86,t.RULE_mappingKeyName);try{this.enterOuterAlt(e,1),this.state=635,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingValueName(){let e=new vt(this,this._ctx,this.state);this.enterRule(e,88,t.RULE_mappingValueName);try{this.enterOuterAlt(e,1),this.state=637,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeName(){let e=new bt(this,this._ctx,this.state);this.enterRule(e,90,t.RULE_functionTypeName);try{let r;for(this.enterOuterAlt(e,1),this.state=639,this.match(t.T__39),this.state=640,this.functionTypeParameterList(),this.state=646,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;){if(1===r)switch(this.state=644,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=641,this.match(t.InternalKeyword);break;case 117:this.state=642,this.match(t.ExternalKeyword);break;case 112:case 120:case 124:case 126:this.state=643,this.stateMutability();break;default:throw new w(this)}this.state=648,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx)}this.state=651,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,69,this._ctx)&&(this.state=649,this.match(t.T__40),this.state=650,this.functionTypeParameterList())}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}storageLocation(){let e,r=new _t(this,this._ctx,this.state);this.enterRule(r,92,t.RULE_storageLocation);try{this.enterOuterAlt(r,1),this.state=653,e=this._input.LA(1),e-50&-32||!(1<<e-50&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stateMutability(){let e,r=new Et(this,this._ctx,this.state);this.enterRule(r,94,t.RULE_stateMutability);try{this.enterOuterAlt(r,1),this.state=655,e=this._input.LA(1),e-112&-32||!(1<<e-112&20737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}block(){let e,r=new Tt(this,this._ctx,this.state);this.enterRule(r,96,t.RULE_block);try{for(this.enterOuterAlt(r,1),this.state=657,this.match(t.T__14),this.state=661,this._errHandler.sync(this),e=this._input.LA(1);!(e-6&-32)&&1<<e-6&213517057||!(e-40&-32)&&1<<e-40&4294881617||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248548427;)this.state=658,this.statement(),this.state=663,this._errHandler.sync(this),e=this._input.LA(1);this.state=664,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}statement(){let e=new St(this,this._ctx,this.state);this.enterRule(e,98,t.RULE_statement);try{switch(this.state=681,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=666,this.ifStatement();break;case 2:this.enterOuterAlt(e,2),this.state=667,this.tryStatement();break;case 3:this.enterOuterAlt(e,3),this.state=668,this.whileStatement();break;case 4:this.enterOuterAlt(e,4),this.state=669,this.forStatement();break;case 5:this.enterOuterAlt(e,5),this.state=670,this.block();break;case 6:this.enterOuterAlt(e,6),this.state=671,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(e,7),this.state=672,this.doWhileStatement();break;case 8:this.enterOuterAlt(e,8),this.state=673,this.continueStatement();break;case 9:this.enterOuterAlt(e,9),this.state=674,this.breakStatement();break;case 10:this.enterOuterAlt(e,10),this.state=675,this.returnStatement();break;case 11:this.enterOuterAlt(e,11),this.state=676,this.throwStatement();break;case 12:this.enterOuterAlt(e,12),this.state=677,this.emitStatement();break;case 13:this.enterOuterAlt(e,13),this.state=678,this.simpleStatement();break;case 14:this.enterOuterAlt(e,14),this.state=679,this.uncheckedStatement();break;case 15:this.enterOuterAlt(e,15),this.state=680,this.revertStatement()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionStatement(){let e=new kt(this,this._ctx,this.state);this.enterRule(e,100,t.RULE_expressionStatement);try{this.enterOuterAlt(e,1),this.state=683,this.expression(0),this.state=684,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}ifStatement(){let e=new Rt(this,this._ctx,this.state);this.enterRule(e,102,t.RULE_ifStatement);try{this.enterOuterAlt(e,1),this.state=686,this.match(t.T__52),this.state=687,this.match(t.T__22),this.state=688,this.expression(0),this.state=689,this.match(t.T__23),this.state=690,this.statement(),this.state=693,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,72,this._ctx)&&(this.state=691,this.match(t.T__53),this.state=692,this.statement())}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tryStatement(){let e,r=new At(this,this._ctx,this.state);this.enterRule(r,104,t.RULE_tryStatement);try{this.enterOuterAlt(r,1),this.state=695,this.match(t.T__54),this.state=696,this.expression(0),this.state=698,this._errHandler.sync(this),e=this._input.LA(1),41===e&&(this.state=697,this.returnParameters()),this.state=700,this.block(),this.state=702,this._errHandler.sync(this),e=this._input.LA(1);do{this.state=701,this.catchClause(),this.state=704,this._errHandler.sync(this),e=this._input.LA(1)}while(56===e)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}catchClause(){let e,r=new Ct(this,this._ctx,this.state);this.enterRule(r,106,t.RULE_catchClause);try{this.enterOuterAlt(r,1),this.state=706,this.match(t.T__55),this.state=711,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&243286016||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=708,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=707,this.identifier()),this.state=710,this.parameterList()),this.state=713,this.block()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}whileStatement(){let e=new Lt(this,this._ctx,this.state);this.enterRule(e,108,t.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=715,this.match(t.T__56),this.state=716,this.match(t.T__22),this.state=717,this.expression(0),this.state=718,this.match(t.T__23),this.state=719,this.statement()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}simpleStatement(){let e=new It(this,this._ctx,this.state);this.enterRule(e,110,t.RULE_simpleStatement);try{switch(this.enterOuterAlt(e,1),this.state=723,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,77,this._ctx)){case 1:this.state=721,this.variableDeclarationStatement();break;case 2:this.state=722,this.expressionStatement()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}uncheckedStatement(){let e=new Kt(this,this._ctx,this.state);this.enterRule(e,112,t.RULE_uncheckedStatement);try{this.enterOuterAlt(e,1),this.state=725,this.match(t.T__57),this.state=726,this.block()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}forStatement(){let e,r=new Nt(this,this._ctx,this.state);this.enterRule(r,114,t.RULE_forStatement);try{switch(this.enterOuterAlt(r,1),this.state=728,this.match(t.T__28),this.state=729,this.match(t.T__22),this.state=732,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=730,this.simpleStatement();break;case 2:this.state=731,this.match(t.T__1);break;default:throw new w(this)}switch(this.state=736,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=734,this.expressionStatement();break;case 2:this.state=735,this.match(t.T__1);break;default:throw new w(this)}this.state=739,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=738,this.expression(0)),this.state=741,this.match(t.T__23),this.state=742,this.statement()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatement(){let e,r=new Ot(this,this._ctx,this.state);this.enterRule(r,116,t.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(r,1),this.state=744,this.match(t.T__58),this.state=746,this._errHandler.sync(this),e=this._input.LA(1),132===e&&(this.state=745,this.match(t.StringLiteralFragment)),this.state=752,this._errHandler.sync(this),e=this._input.LA(1),23===e&&(this.state=748,this.match(t.T__22),this.state=749,this.inlineAssemblyStatementFlag(),this.state=750,this.match(t.T__23)),this.state=754,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}inlineAssemblyStatementFlag(){let e=new Dt(this,this._ctx,this.state);this.enterRule(e,118,t.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(e,1),this.state=756,this.stringLiteral()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}doWhileStatement(){let e=new Pt(this,this._ctx,this.state);this.enterRule(e,120,t.RULE_doWhileStatement);try{this.enterOuterAlt(e,1),this.state=758,this.match(t.T__59),this.state=759,this.statement(),this.state=760,this.match(t.T__56),this.state=761,this.match(t.T__22),this.state=762,this.expression(0),this.state=763,this.match(t.T__23),this.state=764,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}continueStatement(){let e=new qt(this,this._ctx,this.state);this.enterRule(e,122,t.RULE_continueStatement);try{this.enterOuterAlt(e,1),this.state=766,this.match(t.ContinueKeyword),this.state=767,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}breakStatement(){let e=new Mt(this,this._ctx,this.state);this.enterRule(e,124,t.RULE_breakStatement);try{this.enterOuterAlt(e,1),this.state=769,this.match(t.BreakKeyword),this.state=770,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnStatement(){let e,r=new Ft(this,this._ctx,this.state);this.enterRule(r,126,t.RULE_returnStatement);try{this.enterOuterAlt(r,1),this.state=772,this.match(t.T__60),this.state=774,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=773,this.expression(0)),this.state=776,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}throwStatement(){let e=new Ut(this,this._ctx,this.state);this.enterRule(e,128,t.RULE_throwStatement);try{this.enterOuterAlt(e,1),this.state=778,this.match(t.T__61),this.state=779,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}emitStatement(){let e=new Yt(this,this._ctx,this.state);this.enterRule(e,130,t.RULE_emitStatement);try{this.enterOuterAlt(e,1),this.state=781,this.match(t.T__62),this.state=782,this.functionCall(),this.state=783,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}revertStatement(){let e=new Vt(this,this._ctx,this.state);this.enterRule(e,132,t.RULE_revertStatement);try{this.enterOuterAlt(e,1),this.state=785,this.match(t.T__63),this.state=786,this.functionCall(),this.state=787,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationStatement(){let e,r=new jt(this,this._ctx,this.state);this.enterRule(r,134,t.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(r,1),this.state=796,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,84,this._ctx)){case 1:this.state=789,this.match(t.T__64),this.state=790,this.identifierList();break;case 2:this.state=791,this.variableDeclaration();break;case 3:this.state=792,this.match(t.T__22),this.state=793,this.variableDeclarationList(),this.state=794,this.match(t.T__23)}this.state=800,this._errHandler.sync(this),e=this._input.LA(1),11===e&&(this.state=798,this.match(t.T__10),this.state=799,this.expression(0)),this.state=802,this.match(t.T__1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}variableDeclarationList(){let e,r=new Bt(this,this._ctx,this.state);this.enterRule(r,136,t.RULE_variableDeclarationList);try{for(this.enterOuterAlt(r,1),this.state=805,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)&&(this.state=804,this.variableDeclaration()),this.state=813,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=807,this.match(t.T__15),this.state=809,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-40&-32)&&1<<e-40&520098113||!(e-97&-32)&&1<<e-97&3230138493||130===e||131===e)&&(this.state=808,this.variableDeclaration()),this.state=815,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifierList(){let e,r=new Ht(this,this._ctx,this.state);this.enterRule(r,138,t.RULE_identifierList);try{let s;for(this.enterOuterAlt(r,1),this.state=816,this.match(t.T__22),this.state=823,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=818,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=817,this.identifier()),this.state=820,this.match(t.T__15)),this.state=825,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);this.state=827,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=826,this.identifier()),this.state=829,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}elementaryTypeName(){let e,r=new $t(this,this._ctx,this.state);this.enterRule(r,140,t.RULE_elementaryTypeName);try{this.enterOuterAlt(r,1),this.state=831,e=this._input.LA(1),!(e-46&-32)&&1<<e-46&7864321||!(e-99&-32)&&1<<e-99&31?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}expression(e){void 0===e&&(e=0);let r,s=this._ctx,i=this.state,n=new Gt(this,this._ctx,i),a=n,o=142;this.enterRecursionRule(n,142,t.RULE_expression,e);try{let e;switch(this.enterOuterAlt(n,1),this.state=851,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,92,this._ctx)){case 1:this.state=834,this.match(t.T__70),this.state=835,this.typeName(0);break;case 2:this.state=836,this.match(t.T__22),this.state=837,this.expression(0),this.state=838,this.match(t.T__23);break;case 3:this.state=840,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=841,this.expression(19);break;case 4:this.state=842,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=843,this.expression(18);break;case 5:this.state=844,this.match(t.T__72),this.state=845,this.expression(17);break;case 6:this.state=846,this.match(t.T__73),this.state=847,this.expression(16);break;case 7:this.state=848,this.match(t.T__5),this.state=849,this.expression(15);break;case 8:this.state=850,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=927,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,96,this._ctx);2!==e&&e!==l.INVALID_ALT_NUMBER;){if(1===e)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,this.state=925,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=853,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=854,this.match(t.T__74),this.state=855,this.expression(14);break;case 2:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=856,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=857,r=this._input.LA(1),3!==r&&34!==r&&35!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=858,this.expression(14);break;case 3:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=859,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=860,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=861,this.expression(13);break;case 4:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=862,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=863,r=this._input.LA(1),76!==r&&77!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=864,this.expression(12);break;case 5:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=865,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=866,this.match(t.T__30),this.state=867,this.expression(11);break;case 6:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=868,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=869,this.match(t.T__4),this.state=870,this.expression(10);break;case 7:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=871,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=872,this.match(t.T__29),this.state=873,this.expression(9);break;case 8:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=874,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=875,r=this._input.LA(1),-32&r||!(1<<r&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=876,this.expression(8);break;case 9:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=877,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=878,r=this._input.LA(1),36!==r&&37!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=879,this.expression(7);break;case 10:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=880,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=881,this.match(t.T__77),this.state=882,this.expression(6);break;case 11:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=883,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=884,this.match(t.T__3),this.state=885,this.expression(5);break;case 12:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=886,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=887,this.match(t.T__78),this.state=888,this.expression(0),this.state=889,this.match(t.T__71),this.state=890,this.expression(3);break;case 13:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=892,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=893,r=this._input.LA(1),11===r||!(r-80&-32)&&1<<r-80&1023?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=894,this.expression(3);break;case 14:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=895,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=896,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=897,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=898,this.match(t.T__43),this.state=899,this.expression(0),this.state=900,this.match(t.T__44);break;case 16:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=902,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=903,this.match(t.T__43),this.state=905,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=904,this.expression(0)),this.state=907,this.match(t.T__71),this.state=909,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=908,this.expression(0)),this.state=911,this.match(t.T__44);break;case 17:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=912,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=913,this.match(t.T__46),this.state=914,this.identifier();break;case 18:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=915,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=916,this.match(t.T__14),this.state=917,this.nameValueList(),this.state=918,this.match(t.T__16);break;case 19:if(n=new Gt(this,s,i),this.pushNewRecursionContext(n,o,t.RULE_expression),this.state=920,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=921,this.match(t.T__22),this.state=922,this.functionCallArguments(),this.state=923,this.match(t.T__23)}this.state=929,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,96,this._ctx)}}catch(t){if(!(t instanceof T))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(s)}return n}primaryExpression(){let e=new zt(this,this._ctx,this.state);this.enterRule(e,144,t.RULE_primaryExpression);try{switch(this.state=939,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,97,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=930,this.match(t.BooleanLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=931,this.numberLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=932,this.hexLiteral();break;case 4:this.enterOuterAlt(e,4),this.state=933,this.stringLiteral();break;case 5:this.enterOuterAlt(e,5),this.state=934,this.identifier();break;case 6:this.enterOuterAlt(e,6),this.state=935,this.match(t.TypeKeyword);break;case 7:this.enterOuterAlt(e,7),this.state=936,this.match(t.PayableKeyword);break;case 8:this.enterOuterAlt(e,8),this.state=937,this.tupleExpression();break;case 9:this.enterOuterAlt(e,9),this.state=938,this.typeName(0)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expressionList(){let e,r=new Wt(this,this._ctx,this.state);this.enterRule(r,146,t.RULE_expressionList);try{for(this.enterOuterAlt(r,1),this.state=941,this.expression(0),this.state=946,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=942,this.match(t.T__15),this.state=943,this.expression(0),this.state=948,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValueList(){let e,r=new Xt(this,this._ctx,this.state);this.enterRule(r,148,t.RULE_nameValueList);try{let s;for(this.enterOuterAlt(r,1),this.state=949,this.nameValue(),this.state=954,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=950,this.match(t.T__15),this.state=951,this.nameValue()),this.state=956,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);this.state=958,this._errHandler.sync(this),e=this._input.LA(1),16===e&&(this.state=957,this.match(t.T__15))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}nameValue(){let e=new Qt(this,this._ctx,this.state);this.enterRule(e,150,t.RULE_nameValue);try{this.enterOuterAlt(e,1),this.state=960,this.identifier(),this.state=961,this.match(t.T__71),this.state=962,this.expression(0)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCallArguments(){let e,r=new Jt(this,this._ctx,this.state);this.enterRule(r,152,t.RULE_functionCallArguments);try{switch(this.state=972,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(r,1),this.state=964,this.match(t.T__14),this.state=966,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=965,this.nameValueList()),this.state=968,this.match(t.T__16);break;case 6:case 14:case 23:case 24:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.enterOuterAlt(r,2),this.state=970,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=969,this.expressionList());break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}functionCall(){let e=new Zt(this,this._ctx,this.state);this.enterRule(e,154,t.RULE_functionCall);try{this.enterOuterAlt(e,1),this.state=974,this.expression(0),this.state=975,this.match(t.T__22),this.state=976,this.functionCallArguments(),this.state=977,this.match(t.T__23)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyBlock(){let e,r=new te(this,this._ctx,this.state);this.enterRule(r,156,t.RULE_assemblyBlock);try{for(this.enterOuterAlt(r,1),this.state=979,this.match(t.T__14),this.state=983,this._errHandler.sync(this),e=this._input.LA(1);!(-32&e)&&1<<e&780189696||!(e-40&-32)&&1<<e-40&287322177||!(e-90&-32)&&1<<e-90&1176879241||!(e-127&-32)&&1<<e-127&59;)this.state=980,this.assemblyItem(),this.state=985,this._errHandler.sync(this),e=this._input.LA(1);this.state=986,this.match(t.T__16)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyItem(){let e=new ee(this,this._ctx,this.state);this.enterRule(e,158,t.RULE_assemblyItem);try{switch(this.state=1005,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=988,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=989,this.assemblyBlock();break;case 3:this.enterOuterAlt(e,3),this.state=990,this.assemblyExpression();break;case 4:this.enterOuterAlt(e,4),this.state=991,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(e,5),this.state=992,this.assemblyAssignment();break;case 6:this.enterOuterAlt(e,6),this.state=993,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(e,7),this.state=994,this.labelDefinition();break;case 8:this.enterOuterAlt(e,8),this.state=995,this.assemblySwitch();break;case 9:this.enterOuterAlt(e,9),this.state=996,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(e,10),this.state=997,this.assemblyFor();break;case 11:this.enterOuterAlt(e,11),this.state=998,this.assemblyIf();break;case 12:this.enterOuterAlt(e,12),this.state=999,this.match(t.BreakKeyword);break;case 13:this.enterOuterAlt(e,13),this.state=1e3,this.match(t.ContinueKeyword);break;case 14:this.enterOuterAlt(e,14),this.state=1001,this.match(t.LeaveKeyword);break;case 15:this.enterOuterAlt(e,15),this.state=1002,this.numberLiteral();break;case 16:this.enterOuterAlt(e,16),this.state=1003,this.stringLiteral();break;case 17:this.enterOuterAlt(e,17),this.state=1004,this.hexLiteral()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyExpression(){let e=new re(this,this._ctx,this.state);this.enterRule(e,160,t.RULE_assemblyExpression);try{switch(this.state=1010,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,106,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1007,this.assemblyCall();break;case 2:this.enterOuterAlt(e,2),this.state=1008,this.assemblyLiteral();break;case 3:this.enterOuterAlt(e,3),this.state=1009,this.assemblyMember()}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyMember(){let e=new se(this,this._ctx,this.state);this.enterRule(e,162,t.RULE_assemblyMember);try{this.enterOuterAlt(e,1),this.state=1012,this.identifier(),this.state=1013,this.match(t.T__46),this.state=1014,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCall(){let e,r=new ie(this,this._ctx,this.state);this.enterRule(r,164,t.RULE_assemblyCall);try{switch(this.enterOuterAlt(r,1),this.state=1020,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,107,this._ctx)){case 1:this.state=1016,this.match(t.T__60);break;case 2:this.state=1017,this.match(t.T__45);break;case 3:this.state=1018,this.match(t.T__67);break;case 4:this.state=1019,this.identifier()}if(this.state=1034,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,110,this._ctx)){for(this.state=1022,this.match(t.T__22),this.state=1024,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&4489281||!(e-97&-32)&&1<<e-97&3230141313||!(e-130&-32)&&1<<e-130&7)&&(this.state=1023,this.assemblyExpression()),this.state=1030,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1026,this.match(t.T__15),this.state=1027,this.assemblyExpression(),this.state=1032,this._errHandler.sync(this),e=this._input.LA(1);this.state=1033,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyLocalDefinition(){let e,r=new ne(this,this._ctx,this.state);this.enterRule(r,166,t.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(r,1),this.state=1036,this.match(t.T__89),this.state=1037,this.assemblyIdentifierOrList(),this.state=1040,this._errHandler.sync(this),e=this._input.LA(1),91===e&&(this.state=1038,this.match(t.T__90),this.state=1039,this.assemblyExpression())}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyAssignment(){let e=new ae(this,this._ctx,this.state);this.enterRule(e,168,t.RULE_assemblyAssignment);try{this.enterOuterAlt(e,1),this.state=1042,this.assemblyIdentifierOrList(),this.state=1043,this.match(t.T__90),this.state=1044,this.assemblyExpression()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierOrList(){let e=new oe(this,this._ctx,this.state);this.enterRule(e,170,t.RULE_assemblyIdentifierOrList);try{switch(this.state=1053,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,112,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=1046,this.identifier();break;case 2:this.enterOuterAlt(e,2),this.state=1047,this.assemblyMember();break;case 3:this.enterOuterAlt(e,3),this.state=1048,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(e,4),this.state=1049,this.match(t.T__22),this.state=1050,this.assemblyIdentifierList(),this.state=1051,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIdentifierList(){let e,r=new ce(this,this._ctx,this.state);this.enterRule(r,172,t.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(r,1),this.state=1055,this.identifier(),this.state=1060,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1056,this.match(t.T__15),this.state=1057,this.identifier(),this.state=1062,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyStackAssignment(){let e=new le(this,this._ctx,this.state);this.enterRule(e,174,t.RULE_assemblyStackAssignment);try{this.enterOuterAlt(e,1),this.state=1063,this.assemblyExpression(),this.state=1064,this.match(t.T__91),this.state=1065,this.identifier()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}labelDefinition(){let e=new he(this,this._ctx,this.state);this.enterRule(e,176,t.RULE_labelDefinition);try{this.enterOuterAlt(e,1),this.state=1067,this.identifier(),this.state=1068,this.match(t.T__71)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblySwitch(){let e,r=new ue(this,this._ctx,this.state);this.enterRule(r,178,t.RULE_assemblySwitch);try{for(this.enterOuterAlt(r,1),this.state=1070,this.match(t.T__92),this.state=1071,this.assemblyExpression(),this.state=1075,this._errHandler.sync(this),e=this._input.LA(1);94===e||95===e;)this.state=1072,this.assemblyCase(),this.state=1077,this._errHandler.sync(this),e=this._input.LA(1)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyCase(){let e=new de(this,this._ctx,this.state);this.enterRule(e,180,t.RULE_assemblyCase);try{switch(this.state=1084,this._errHandler.sync(this),this._input.LA(1)){case 94:this.enterOuterAlt(e,1),this.state=1078,this.match(t.T__93),this.state=1079,this.assemblyLiteral(),this.state=1080,this.assemblyBlock();break;case 95:this.enterOuterAlt(e,2),this.state=1082,this.match(t.T__94),this.state=1083,this.assemblyBlock();break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionDefinition(){let e,r=new pe(this,this._ctx,this.state);this.enterRule(r,182,t.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(r,1),this.state=1086,this.match(t.T__39),this.state=1087,this.identifier(),this.state=1088,this.match(t.T__22),this.state=1090,this._errHandler.sync(this),e=this._input.LA(1),(!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e)&&(this.state=1089,this.assemblyIdentifierList()),this.state=1092,this.match(t.T__23),this.state=1094,this._errHandler.sync(this),e=this._input.LA(1),96===e&&(this.state=1093,this.assemblyFunctionReturns()),this.state=1096,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}assemblyFunctionReturns(){let e=new me(this,this._ctx,this.state);this.enterRule(e,184,t.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(e,1),this.state=1098,this.match(t.T__95),this.state=1099,this.assemblyIdentifierList()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFor(){let e=new ye(this,this._ctx,this.state);this.enterRule(e,186,t.RULE_assemblyFor);try{switch(this.enterOuterAlt(e,1),this.state=1101,this.match(t.T__28),this.state=1104,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1102,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1103,this.assemblyExpression();break;default:throw new w(this)}switch(this.state=1106,this.assemblyExpression(),this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1107,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1108,this.assemblyExpression();break;default:throw new w(this)}this.state=1111,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyIf(){let e=new fe(this,this._ctx,this.state);this.enterRule(e,188,t.RULE_assemblyIf);try{this.enterOuterAlt(e,1),this.state=1113,this.match(t.T__52),this.state=1114,this.assemblyExpression(),this.state=1115,this.assemblyBlock()}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLiteral(){let e=new ge(this,this._ctx,this.state);this.enterRule(e,190,t.RULE_assemblyLiteral);try{switch(this.state=1122,this._errHandler.sync(this),this._input.LA(1)){case 132:this.enterOuterAlt(e,1),this.state=1117,this.stringLiteral();break;case 105:this.enterOuterAlt(e,2),this.state=1118,this.match(t.DecimalNumber);break;case 106:this.enterOuterAlt(e,3),this.state=1119,this.match(t.HexNumber);break;case 108:this.enterOuterAlt(e,4),this.state=1120,this.hexLiteral();break;case 104:this.enterOuterAlt(e,5),this.state=1121,this.match(t.BooleanLiteral);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}tupleExpression(){let e,r=new we(this,this._ctx,this.state);this.enterRule(r,192,t.RULE_tupleExpression);try{switch(this.state=1150,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(r,1),this.state=1124,this.match(t.T__22),this.state=1126,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=1125,this.expression(0)),this.state=1134,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1128,this.match(t.T__15),this.state=1130,this._errHandler.sync(this),e=this._input.LA(1),(!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)&&(this.state=1129,this.expression(0)),this.state=1136,this._errHandler.sync(this),e=this._input.LA(1);this.state=1137,this.match(t.T__23);break;case 44:if(this.enterOuterAlt(r,2),this.state=1138,this.match(t.T__43),this.state=1147,this._errHandler.sync(this),e=this._input.LA(1),!(e-6&-32)&&1<<e-6&205127937||!(e-40&-32)&&1<<e-40&4278194513||!(e-73&-32)&&1<<e-73&4244635651||!(e-105&-32)&&1<<e-105&248547339)for(this.state=1139,this.expression(0),this.state=1144,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1140,this.match(t.T__15),this.state=1141,this.expression(0),this.state=1146,this._errHandler.sync(this),e=this._input.LA(1);this.state=1149,this.match(t.T__44);break;default:throw new w(this)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}numberLiteral(){let e,r=new xe(this,this._ctx,this.state);this.enterRule(r,194,t.RULE_numberLiteral);try{this.enterOuterAlt(r,1),this.state=1152,e=this._input.LA(1),105!==e&&106!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1154,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,127,this._ctx)&&(this.state=1153,this.match(t.NumberUnit))}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}identifier(){let e,r=new ve(this,this._ctx,this.state);this.enterRule(r,196,t.RULE_identifier);try{this.enterOuterAlt(r,1),this.state=1156,e=this._input.LA(1),!(-32&e)&&1<<e&234897408||!(e-46&-32)&&1<<e-46&262209||!(e-97&-32)&&1<<e-97&3230138369||130===e||131===e?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}hexLiteral(){let e=new be(this,this._ctx,this.state);this.enterRule(e,198,t.RULE_hexLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1159,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1158,this.match(t.HexLiteralFragment),this.state=1161,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,128,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}overrideSpecifier(){let e,r=new _e(this,this._ctx,this.state);this.enterRule(r,200,t.RULE_overrideSpecifier);try{if(this.enterOuterAlt(r,1),this.state=1163,this.match(t.T__97),this.state=1175,this._errHandler.sync(this),e=this._input.LA(1),23===e){for(this.state=1164,this.match(t.T__22),this.state=1165,this.userDefinedTypeName(),this.state=1170,this._errHandler.sync(this),e=this._input.LA(1);16===e;)this.state=1166,this.match(t.T__15),this.state=1167,this.userDefinedTypeName(),this.state=1172,this._errHandler.sync(this),e=this._input.LA(1);this.state=1173,this.match(t.T__23)}}catch(t){if(!(t instanceof T))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return r}stringLiteral(){let e=new Ee(this,this._ctx,this.state);this.enterRule(e,202,t.RULE_stringLiteral);try{let r;this.enterOuterAlt(e,1),this.state=1178,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1177,this.match(t.StringLiteralFragment),this.state=1180,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,131,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(t){if(!(t instanceof T))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}sempred(t,e,r){switch(e){case 39:return this.typeName_sempred(t,r);case 71:return this.expression_sempred(t,r)}return!0}typeName_sempred(t,e){return 0!==e||this.precpred(this._ctx,3)}expression_sempred(t,e){switch(e){case 1:return this.precpred(this._ctx,14);case 2:return this.precpred(this._ctx,13);case 3:return this.precpred(this._ctx,12);case 4:return this.precpred(this._ctx,11);case 5:return this.precpred(this._ctx,10);case 6:return this.precpred(this._ctx,9);case 7:return this.precpred(this._ctx,8);case 8:return this.precpred(this._ctx,7);case 9:return this.precpred(this._ctx,6);case 10:return this.precpred(this._ctx,5);case 11:return this.precpred(this._ctx,4);case 12:return this.precpred(this._ctx,3);case 13:return this.precpred(this._ctx,2);case 14:return this.precpred(this._ctx,27);case 15:return this.precpred(this._ctx,25);case 16:return this.precpred(this._ctx,24);case 17:return this.precpred(this._ctx,23);case 18:return this.precpred(this._ctx,22);case 19:return this.precpred(this._ctx,21)}return!0}static get _ATN(){return t.__ATN||(t.__ATN=(new h).deserialize(t._serializedATN)),t.__ATN}};A.T__0=1,A.T__1=2,A.T__2=3,A.T__3=4,A.T__4=5,A.T__5=6,A.T__6=7,A.T__7=8,A.T__8=9,A.T__9=10,A.T__10=11,A.T__11=12,A.T__12=13,A.T__13=14,A.T__14=15,A.T__15=16,A.T__16=17,A.T__17=18,A.T__18=19,A.T__19=20,A.T__20=21,A.T__21=22,A.T__22=23,A.T__23=24,A.T__24=25,A.T__25=26,A.T__26=27,A.T__27=28,A.T__28=29,A.T__29=30,A.T__30=31,A.T__31=32,A.T__32=33,A.T__33=34,A.T__34=35,A.T__35=36,A.T__36=37,A.T__37=38,A.T__38=39,A.T__39=40,A.T__40=41,A.T__41=42,A.T__42=43,A.T__43=44,A.T__44=45,A.T__45=46,A.T__46=47,A.T__47=48,A.T__48=49,A.T__49=50,A.T__50=51,A.T__51=52,A.T__52=53,A.T__53=54,A.T__54=55,A.T__55=56,A.T__56=57,A.T__57=58,A.T__58=59,A.T__59=60,A.T__60=61,A.T__61=62,A.T__62=63,A.T__63=64,A.T__64=65,A.T__65=66,A.T__66=67,A.T__67=68,A.T__68=69,A.T__69=70,A.T__70=71,A.T__71=72,A.T__72=73,A.T__73=74,A.T__74=75,A.T__75=76,A.T__76=77,A.T__77=78,A.T__78=79,A.T__79=80,A.T__80=81,A.T__81=82,A.T__82=83,A.T__83=84,A.T__84=85,A.T__85=86,A.T__86=87,A.T__87=88,A.T__88=89,A.T__89=90,A.T__90=91,A.T__91=92,A.T__92=93,A.T__93=94,A.T__94=95,A.T__95=96,A.T__96=97,A.T__97=98,A.Int=99,A.Uint=100,A.Byte=101,A.Fixed=102,A.Ufixed=103,A.BooleanLiteral=104,A.DecimalNumber=105,A.HexNumber=106,A.NumberUnit=107,A.HexLiteralFragment=108,A.ReservedKeyword=109,A.AnonymousKeyword=110,A.BreakKeyword=111,A.ConstantKeyword=112,A.TransientKeyword=113,A.ImmutableKeyword=114,A.ContinueKeyword=115,A.LeaveKeyword=116,A.ExternalKeyword=117,A.IndexedKeyword=118,A.InternalKeyword=119,A.PayableKeyword=120,A.PrivateKeyword=121,A.PublicKeyword=122,A.VirtualKeyword=123,A.PureKeyword=124,A.TypeKeyword=125,A.ViewKeyword=126,A.GlobalKeyword=127,A.ConstructorKeyword=128,A.FallbackKeyword=129,A.ReceiveKeyword=130,A.Identifier=131,A.StringLiteralFragment=132,A.VersionLiteral=133,A.WS=134,A.COMMENT=135,A.LINE_COMMENT=136,A.EOF=S.EOF,A.RULE_sourceUnit=0,A.RULE_pragmaDirective=1,A.RULE_pragmaName=2,A.RULE_pragmaValue=3,A.RULE_version=4,A.RULE_versionOperator=5,A.RULE_versionConstraint=6,A.RULE_importDeclaration=7,A.RULE_importDirective=8,A.RULE_importPath=9,A.RULE_contractDefinition=10,A.RULE_inheritanceSpecifier=11,A.RULE_customStorageLayout=12,A.RULE_contractPart=13,A.RULE_stateVariableDeclaration=14,A.RULE_fileLevelConstant=15,A.RULE_customErrorDefinition=16,A.RULE_typeDefinition=17,A.RULE_usingForDeclaration=18,A.RULE_usingForObject=19,A.RULE_usingForObjectDirective=20,A.RULE_userDefinableOperators=21,A.RULE_structDefinition=22,A.RULE_modifierDefinition=23,A.RULE_modifierInvocation=24,A.RULE_functionDefinition=25,A.RULE_functionDescriptor=26,A.RULE_returnParameters=27,A.RULE_modifierList=28,A.RULE_eventDefinition=29,A.RULE_enumValue=30,A.RULE_enumDefinition=31,A.RULE_parameterList=32,A.RULE_parameter=33,A.RULE_eventParameterList=34,A.RULE_eventParameter=35,A.RULE_functionTypeParameterList=36,A.RULE_functionTypeParameter=37,A.RULE_variableDeclaration=38,A.RULE_typeName=39,A.RULE_userDefinedTypeName=40,A.RULE_mappingKey=41,A.RULE_mapping=42,A.RULE_mappingKeyName=43,A.RULE_mappingValueName=44,A.RULE_functionTypeName=45,A.RULE_storageLocation=46,A.RULE_stateMutability=47,A.RULE_block=48,A.RULE_statement=49,A.RULE_expressionStatement=50,A.RULE_ifStatement=51,A.RULE_tryStatement=52,A.RULE_catchClause=53,A.RULE_whileStatement=54,A.RULE_simpleStatement=55,A.RULE_uncheckedStatement=56,A.RULE_forStatement=57,A.RULE_inlineAssemblyStatement=58,A.RULE_inlineAssemblyStatementFlag=59,A.RULE_doWhileStatement=60,A.RULE_continueStatement=61,A.RULE_breakStatement=62,A.RULE_returnStatement=63,A.RULE_throwStatement=64,A.RULE_emitStatement=65,A.RULE_revertStatement=66,A.RULE_variableDeclarationStatement=67,A.RULE_variableDeclarationList=68,A.RULE_identifierList=69,A.RULE_elementaryTypeName=70,A.RULE_expression=71,A.RULE_primaryExpression=72,A.RULE_expressionList=73,A.RULE_nameValueList=74,A.RULE_nameValue=75,A.RULE_functionCallArguments=76,A.RULE_functionCall=77,A.RULE_assemblyBlock=78,A.RULE_assemblyItem=79,A.RULE_assemblyExpression=80,A.RULE_assemblyMember=81,A.RULE_assemblyCall=82,A.RULE_assemblyLocalDefinition=83,A.RULE_assemblyAssignment=84,A.RULE_assemblyIdentifierOrList=85,A.RULE_assemblyIdentifierList=86,A.RULE_assemblyStackAssignment=87,A.RULE_labelDefinition=88,A.RULE_assemblySwitch=89,A.RULE_assemblyCase=90,A.RULE_assemblyFunctionDefinition=91,A.RULE_assemblyFunctionReturns=92,A.RULE_assemblyFor=93,A.RULE_assemblyIf=94,A.RULE_assemblyLiteral=95,A.RULE_tupleExpression=96,A.RULE_numberLiteral=97,A.RULE_identifier=98,A.RULE_hexLiteral=99,A.RULE_overrideSpecifier=100,A.RULE_stringLiteral=101,A.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],A.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],A.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","customStorageLayout","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],A._serializedATN=[4,1,136,1183,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,216,8,0,10,0,12,0,219,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,233,8,3,1,4,1,4,3,4,237,8,4,1,4,5,4,240,8,4,10,4,12,4,243,9,4,1,5,1,5,1,6,3,6,248,8,6,1,6,1,6,3,6,252,8,6,1,6,3,6,255,8,6,1,7,1,7,1,7,3,7,260,8,7,1,8,1,8,1,8,1,8,3,8,266,8,8,1,8,1,8,1,8,1,8,1,8,3,8,273,8,8,1,8,1,8,3,8,277,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,288,8,8,10,8,12,8,291,9,8,1,8,1,8,1,8,1,8,1,8,3,8,298,8,8,1,9,1,9,1,10,3,10,303,8,10,1,10,1,10,1,10,3,10,308,8,10,1,10,1,10,1,10,1,10,5,10,314,8,10,10,10,12,10,317,9,10,3,10,319,8,10,1,10,3,10,322,8,10,1,10,1,10,5,10,326,8,10,10,10,12,10,329,9,10,1,10,1,10,1,11,1,11,1,11,3,11,336,8,11,1,11,3,11,339,8,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,354,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,5,14,364,8,14,10,14,12,14,367,9,14,1,14,1,14,1,14,3,14,372,8,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,3,18,399,8,18,1,18,3,18,402,8,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,5,19,411,8,19,10,19,12,19,414,9,19,1,19,1,19,3,19,418,8,19,1,20,1,20,1,20,3,20,423,8,20,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,5,22,435,8,22,10,22,12,22,438,9,22,3,22,440,8,22,1,22,1,22,1,23,1,23,1,23,3,23,447,8,23,1,23,1,23,5,23,451,8,23,10,23,12,23,454,9,23,1,23,1,23,3,23,458,8,23,1,24,1,24,1,24,3,24,463,8,24,1,24,3,24,466,8,24,1,25,1,25,1,25,1,25,3,25,472,8,25,1,25,1,25,3,25,476,8,25,1,26,1,26,3,26,480,8,26,1,26,1,26,1,26,3,26,485,8,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,5,28,498,8,28,10,28,12,28,501,9,28,1,29,1,29,1,29,1,29,3,29,507,8,29,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,31,3,31,517,8,31,1,31,1,31,5,31,521,8,31,10,31,12,31,524,9,31,1,31,1,31,1,32,1,32,1,32,1,32,5,32,532,8,32,10,32,12,32,535,9,32,3,32,537,8,32,1,32,1,32,1,33,1,33,3,33,543,8,33,1,33,3,33,546,8,33,1,34,1,34,1,34,1,34,5,34,552,8,34,10,34,12,34,555,9,34,3,34,557,8,34,1,34,1,34,1,35,1,35,3,35,563,8,35,1,35,3,35,566,8,35,1,36,1,36,1,36,1,36,5,36,572,8,36,10,36,12,36,575,9,36,3,36,577,8,36,1,36,1,36,1,37,1,37,3,37,583,8,37,1,38,1,38,3,38,587,8,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,598,8,39,1,39,1,39,1,39,3,39,603,8,39,1,39,5,39,606,8,39,10,39,12,39,609,9,39,1,40,1,40,1,40,5,40,614,8,40,10,40,12,40,617,9,40,1,41,1,41,3,41,621,8,41,1,42,1,42,1,42,1,42,3,42,627,8,42,1,42,1,42,1,42,3,42,632,8,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,5,45,645,8,45,10,45,12,45,648,9,45,1,45,1,45,3,45,652,8,45,1,46,1,46,1,47,1,47,1,48,1,48,5,48,660,8,48,10,48,12,48,663,9,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,682,8,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,694,8,51,1,52,1,52,1,52,3,52,699,8,52,1,52,1,52,4,52,703,8,52,11,52,12,52,704,1,53,1,53,3,53,709,8,53,1,53,3,53,712,8,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,3,55,724,8,55,1,56,1,56,1,56,1,57,1,57,1,57,1,57,3,57,733,8,57,1,57,1,57,3,57,737,8,57,1,57,3,57,740,8,57,1,57,1,57,1,57,1,58,1,58,3,58,747,8,58,1,58,1,58,1,58,1,58,3,58,753,8,58,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,1,62,1,63,1,63,3,63,775,8,63,1,63,1,63,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,797,8,67,1,67,1,67,3,67,801,8,67,1,67,1,67,1,68,3,68,806,8,68,1,68,1,68,3,68,810,8,68,5,68,812,8,68,10,68,12,68,815,9,68,1,69,1,69,3,69,819,8,69,1,69,5,69,822,8,69,10,69,12,69,825,9,69,1,69,3,69,828,8,69,1,69,1,69,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,852,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,906,8,71,1,71,1,71,3,71,910,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,5,71,926,8,71,10,71,12,71,929,9,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,940,8,72,1,73,1,73,1,73,5,73,945,8,73,10,73,12,73,948,9,73,1,74,1,74,1,74,5,74,953,8,74,10,74,12,74,956,9,74,1,74,3,74,959,8,74,1,75,1,75,1,75,1,75,1,76,1,76,3,76,967,8,76,1,76,1,76,3,76,971,8,76,3,76,973,8,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,5,78,982,8,78,10,78,12,78,985,9,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,3,79,1006,8,79,1,80,1,80,1,80,3,80,1011,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,3,82,1021,8,82,1,82,1,82,3,82,1025,8,82,1,82,1,82,5,82,1029,8,82,10,82,12,82,1032,9,82,1,82,3,82,1035,8,82,1,83,1,83,1,83,1,83,3,83,1041,8,83,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,3,85,1054,8,85,1,86,1,86,1,86,5,86,1059,8,86,10,86,12,86,1062,9,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,5,89,1074,8,89,10,89,12,89,1077,9,89,1,90,1,90,1,90,1,90,1,90,1,90,3,90,1085,8,90,1,91,1,91,1,91,1,91,3,91,1091,8,91,1,91,1,91,3,91,1095,8,91,1,91,1,91,1,92,1,92,1,92,1,93,1,93,1,93,3,93,1105,8,93,1,93,1,93,1,93,3,93,1110,8,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,3,95,1123,8,95,1,96,1,96,3,96,1127,8,96,1,96,1,96,3,96,1131,8,96,5,96,1133,8,96,10,96,12,96,1136,9,96,1,96,1,96,1,96,1,96,1,96,5,96,1143,8,96,10,96,12,96,1146,9,96,3,96,1148,8,96,1,96,3,96,1151,8,96,1,97,1,97,3,97,1155,8,97,1,98,1,98,1,99,4,99,1160,8,99,11,99,12,99,1161,1,100,1,100,1,100,1,100,1,100,5,100,1169,8,100,10,100,12,100,1172,9,100,1,100,1,100,3,100,1176,8,100,1,101,4,101,1179,8,101,11,101,12,101,1180,1,101,0,2,78,142,102,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,30,37,1,0,50,52,4,0,112,112,120,120,124,124,126,126,3,0,46,46,65,68,99,103,1,0,69,70,1,0,32,33,2,0,3,3,34,35,1,0,76,77,1,0,7,10,1,0,36,37,2,0,11,11,80,89,1,0,105,106,10,0,14,14,25,27,46,46,52,52,64,64,97,97,116,116,120,120,127,128,130,131,1314,0,217,1,0,0,0,2,222,1,0,0,0,4,227,1,0,0,0,6,232,1,0,0,0,8,234,1,0,0,0,10,244,1,0,0,0,12,254,1,0,0,0,14,256,1,0,0,0,16,297,1,0,0,0,18,299,1,0,0,0,20,302,1,0,0,0,22,332,1,0,0,0,24,340,1,0,0,0,26,353,1,0,0,0,28,355,1,0,0,0,30,375,1,0,0,0,32,382,1,0,0,0,34,387,1,0,0,0,36,393,1,0,0,0,38,417,1,0,0,0,40,419,1,0,0,0,42,424,1,0,0,0,44,426,1,0,0,0,46,443,1,0,0,0,48,459,1,0,0,0,50,467,1,0,0,0,52,484,1,0,0,0,54,486,1,0,0,0,56,499,1,0,0,0,58,502,1,0,0,0,60,510,1,0,0,0,62,512,1,0,0,0,64,527,1,0,0,0,66,540,1,0,0,0,68,547,1,0,0,0,70,560,1,0,0,0,72,567,1,0,0,0,74,580,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,610,1,0,0,0,82,620,1,0,0,0,84,622,1,0,0,0,86,635,1,0,0,0,88,637,1,0,0,0,90,639,1,0,0,0,92,653,1,0,0,0,94,655,1,0,0,0,96,657,1,0,0,0,98,681,1,0,0,0,100,683,1,0,0,0,102,686,1,0,0,0,104,695,1,0,0,0,106,706,1,0,0,0,108,715,1,0,0,0,110,723,1,0,0,0,112,725,1,0,0,0,114,728,1,0,0,0,116,744,1,0,0,0,118,756,1,0,0,0,120,758,1,0,0,0,122,766,1,0,0,0,124,769,1,0,0,0,126,772,1,0,0,0,128,778,1,0,0,0,130,781,1,0,0,0,132,785,1,0,0,0,134,796,1,0,0,0,136,805,1,0,0,0,138,816,1,0,0,0,140,831,1,0,0,0,142,851,1,0,0,0,144,939,1,0,0,0,146,941,1,0,0,0,148,949,1,0,0,0,150,960,1,0,0,0,152,972,1,0,0,0,154,974,1,0,0,0,156,979,1,0,0,0,158,1005,1,0,0,0,160,1010,1,0,0,0,162,1012,1,0,0,0,164,1020,1,0,0,0,166,1036,1,0,0,0,168,1042,1,0,0,0,170,1053,1,0,0,0,172,1055,1,0,0,0,174,1063,1,0,0,0,176,1067,1,0,0,0,178,1070,1,0,0,0,180,1084,1,0,0,0,182,1086,1,0,0,0,184,1098,1,0,0,0,186,1101,1,0,0,0,188,1113,1,0,0,0,190,1122,1,0,0,0,192,1150,1,0,0,0,194,1152,1,0,0,0,196,1156,1,0,0,0,198,1159,1,0,0,0,200,1163,1,0,0,0,202,1178,1,0,0,0,204,216,3,2,1,0,205,216,3,16,8,0,206,216,3,20,10,0,207,216,3,62,31,0,208,216,3,58,29,0,209,216,3,44,22,0,210,216,3,50,25,0,211,216,3,30,15,0,212,216,3,32,16,0,213,216,3,34,17,0,214,216,3,36,18,0,215,204,1,0,0,0,215,205,1,0,0,0,215,206,1,0,0,0,215,207,1,0,0,0,215,208,1,0,0,0,215,209,1,0,0,0,215,210,1,0,0,0,215,211,1,0,0,0,215,212,1,0,0,0,215,213,1,0,0,0,215,214,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,220,1,0,0,0,219,217,1,0,0,0,220,221,5,0,0,1,221,1,1,0,0,0,222,223,5,1,0,0,223,224,3,4,2,0,224,225,3,6,3,0,225,226,5,2,0,0,226,3,1,0,0,0,227,228,3,196,98,0,228,5,1,0,0,0,229,233,5,3,0,0,230,233,3,8,4,0,231,233,3,142,71,0,232,229,1,0,0,0,232,230,1,0,0,0,232,231,1,0,0,0,233,7,1,0,0,0,234,241,3,12,6,0,235,237,5,4,0,0,236,235,1,0,0,0,236,237,1,0,0,0,237,238,1,0,0,0,238,240,3,12,6,0,239,236,1,0,0,0,240,243,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,9,1,0,0,0,243,241,1,0,0,0,244,245,7,0,0,0,245,11,1,0,0,0,246,248,3,10,5,0,247,246,1,0,0,0,247,248,1,0,0,0,248,249,1,0,0,0,249,255,5,133,0,0,250,252,3,10,5,0,251,250,1,0,0,0,251,252,1,0,0,0,252,253,1,0,0,0,253,255,5,105,0,0,254,247,1,0,0,0,254,251,1,0,0,0,255,13,1,0,0,0,256,259,3,196,98,0,257,258,5,12,0,0,258,260,3,196,98,0,259,257,1,0,0,0,259,260,1,0,0,0,260,15,1,0,0,0,261,262,5,13,0,0,262,265,3,18,9,0,263,264,5,12,0,0,264,266,3,196,98,0,265,263,1,0,0,0,265,266,1,0,0,0,266,267,1,0,0,0,267,268,5,2,0,0,268,298,1,0,0,0,269,272,5,13,0,0,270,273,5,3,0,0,271,273,3,196,98,0,272,270,1,0,0,0,272,271,1,0,0,0,273,276,1,0,0,0,274,275,5,12,0,0,275,277,3,196,98,0,276,274,1,0,0,0,276,277,1,0,0,0,277,278,1,0,0,0,278,279,5,14,0,0,279,280,3,18,9,0,280,281,5,2,0,0,281,298,1,0,0,0,282,283,5,13,0,0,283,284,5,15,0,0,284,289,3,14,7,0,285,286,5,16,0,0,286,288,3,14,7,0,287,285,1,0,0,0,288,291,1,0,0,0,289,287,1,0,0,0,289,290,1,0,0,0,290,292,1,0,0,0,291,289,1,0,0,0,292,293,5,17,0,0,293,294,5,14,0,0,294,295,3,18,9,0,295,296,5,2,0,0,296,298,1,0,0,0,297,261,1,0,0,0,297,269,1,0,0,0,297,282,1,0,0,0,298,17,1,0,0,0,299,300,5,132,0,0,300,19,1,0,0,0,301,303,5,18,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,304,1,0,0,0,304,305,7,1,0,0,305,307,3,196,98,0,306,308,3,24,12,0,307,306,1,0,0,0,307,308,1,0,0,0,308,318,1,0,0,0,309,310,5,22,0,0,310,315,3,22,11,0,311,312,5,16,0,0,312,314,3,22,11,0,313,311,1,0,0,0,314,317,1,0,0,0,315,313,1,0,0,0,315,316,1,0,0,0,316,319,1,0,0,0,317,315,1,0,0,0,318,309,1,0,0,0,318,319,1,0,0,0,319,321,1,0,0,0,320,322,3,24,12,0,321,320,1,0,0,0,321,322,1,0,0,0,322,323,1,0,0,0,323,327,5,15,0,0,324,326,3,26,13,0,325,324,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1,0,0,0,328,330,1,0,0,0,329,327,1,0,0,0,330,331,5,17,0,0,331,21,1,0,0,0,332,338,3,80,40,0,333,335,5,23,0,0,334,336,3,146,73,0,335,334,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,339,5,24,0,0,338,333,1,0,0,0,338,339,1,0,0,0,339,23,1,0,0,0,340,341,5,25,0,0,341,342,5,26,0,0,342,343,3,142,71,0,343,25,1,0,0,0,344,354,3,28,14,0,345,354,3,36,18,0,346,354,3,44,22,0,347,354,3,46,23,0,348,354,3,50,25,0,349,354,3,58,29,0,350,354,3,62,31,0,351,354,3,32,16,0,352,354,3,34,17,0,353,344,1,0,0,0,353,345,1,0,0,0,353,346,1,0,0,0,353,347,1,0,0,0,353,348,1,0,0,0,353,349,1,0,0,0,353,350,1,0,0,0,353,351,1,0,0,0,353,352,1,0,0,0,354,27,1,0,0,0,355,365,3,78,39,0,356,364,5,122,0,0,357,364,5,119,0,0,358,364,5,121,0,0,359,364,5,112,0,0,360,364,5,113,0,0,361,364,5,114,0,0,362,364,3,200,100,0,363,356,1,0,0,0,363,357,1,0,0,0,363,358,1,0,0,0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363,362,1,0,0,0,364,367,1,0,0,0,365,363,1,0,0,0,365,366,1,0,0,0,366,368,1,0,0,0,367,365,1,0,0,0,368,371,3,196,98,0,369,370,5,11,0,0,370,372,3,142,71,0,371,369,1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,2,0,0,374,29,1,0,0,0,375,376,3,78,39,0,376,377,5,112,0,0,377,378,3,196,98,0,378,379,5,11,0,0,379,380,3,142,71,0,380,381,5,2,0,0,381,31,1,0,0,0,382,383,5,27,0,0,383,384,3,196,98,0,384,385,3,64,32,0,385,386,5,2,0,0,386,33,1,0,0,0,387,388,5,125,0,0,388,389,3,196,98,0,389,390,5,22,0,0,390,391,3,140,70,0,391,392,5,2,0,0,392,35,1,0,0,0,393,394,5,28,0,0,394,395,3,38,19,0,395,398,5,29,0,0,396,399,5,3,0,0,397,399,3,78,39,0,398,396,1,0,0,0,398,397,1,0,0,0,399,401,1,0,0,0,400,402,5,127,0,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,2,0,0,404,37,1,0,0,0,405,418,3,80,40,0,406,407,5,15,0,0,407,412,3,40,20,0,408,409,5,16,0,0,409,411,3,40,20,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,416,5,17,0,0,416,418,1,0,0,0,417,405,1,0,0,0,417,406,1,0,0,0,418,39,1,0,0,0,419,422,3,80,40,0,420,421,5,12,0,0,421,423,3,42,21,0,422,420,1,0,0,0,422,423,1,0,0,0,423,41,1,0,0,0,424,425,7,2,0,0,425,43,1,0,0,0,426,427,5,38,0,0,427,428,3,196,98,0,428,439,5,15,0,0,429,430,3,76,38,0,430,436,5,2,0,0,431,432,3,76,38,0,432,433,5,2,0,0,433,435,1,0,0,0,434,431,1,0,0,0,435,438,1,0,0,0,436,434,1,0,0,0,436,437,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,439,429,1,0,0,0,439,440,1,0,0,0,440,441,1,0,0,0,441,442,5,17,0,0,442,45,1,0,0,0,443,444,5,39,0,0,444,446,3,196,98,0,445,447,3,64,32,0,446,445,1,0,0,0,446,447,1,0,0,0,447,452,1,0,0,0,448,451,5,123,0,0,449,451,3,200,100,0,450,448,1,0,0,0,450,449,1,0,0,0,451,454,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,457,1,0,0,0,454,452,1,0,0,0,455,458,5,2,0,0,456,458,3,96,48,0,457,455,1,0,0,0,457,456,1,0,0,0,458,47,1,0,0,0,459,465,3,196,98,0,460,462,5,23,0,0,461,463,3,146,73,0,462,461,1,0,0,0,462,463,1,0,0,0,463,464,1,0,0,0,464,466,5,24,0,0,465,460,1,0,0,0,465,466,1,0,0,0,466,49,1,0,0,0,467,468,3,52,26,0,468,469,3,64,32,0,469,471,3,56,28,0,470,472,3,54,27,0,471,470,1,0,0,0,471,472,1,0,0,0,472,475,1,0,0,0,473,476,5,2,0,0,474,476,3,96,48,0,475,473,1,0,0,0,475,474,1,0,0,0,476,51,1,0,0,0,477,479,5,40,0,0,478,480,3,196,98,0,479,478,1,0,0,0,479,480,1,0,0,0,480,485,1,0,0,0,481,485,5,128,0,0,482,485,5,129,0,0,483,485,5,130,0,0,484,477,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,53,1,0,0,0,486,487,5,41,0,0,487,488,3,64,32,0,488,55,1,0,0,0,489,498,5,117,0,0,490,498,5,122,0,0,491,498,5,119,0,0,492,498,5,121,0,0,493,498,5,123,0,0,494,498,3,94,47,0,495,498,3,48,24,0,496,498,3,200,100,0,497,489,1,0,0,0,497,490,1,0,0,0,497,491,1,0,0,0,497,492,1,0,0,0,497,493,1,0,0,0,497,494,1,0,0,0,497,495,1,0,0,0,497,496,1,0,0,0,498,501,1,0,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,57,1,0,0,0,501,499,1,0,0,0,502,503,5,42,0,0,503,504,3,196,98,0,504,506,3,68,34,0,505,507,5,110,0,0,506,505,1,0,0,0,506,507,1,0,0,0,507,508,1,0,0,0,508,509,5,2,0,0,509,59,1,0,0,0,510,511,3,196,98,0,511,61,1,0,0,0,512,513,5,43,0,0,513,514,3,196,98,0,514,516,5,15,0,0,515,517,3,60,30,0,516,515,1,0,0,0,516,517,1,0,0,0,517,522,1,0,0,0,518,519,5,16,0,0,519,521,3,60,30,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,17,0,0,526,63,1,0,0,0,527,536,5,23,0,0,528,533,3,66,33,0,529,530,5,16,0,0,530,532,3,66,33,0,531,529,1,0,0,0,532,535,1,0,0,0,533,531,1,0,0,0,533,534,1,0,0,0,534,537,1,0,0,0,535,533,1,0,0,0,536,528,1,0,0,0,536,537,1,0,0,0,537,538,1,0,0,0,538,539,5,24,0,0,539,65,1,0,0,0,540,542,3,78,39,0,541,543,3,92,46,0,542,541,1,0,0,0,542,543,1,0,0,0,543,545,1,0,0,0,544,546,3,196,98,0,545,544,1,0,0,0,545,546,1,0,0,0,546,67,1,0,0,0,547,556,5,23,0,0,548,553,3,70,35,0,549,550,5,16,0,0,550,552,3,70,35,0,551,549,1,0,0,0,552,555,1,0,0,0,553,551,1,0,0,0,553,554,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,556,548,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,24,0,0,559,69,1,0,0,0,560,562,3,78,39,0,561,563,5,118,0,0,562,561,1,0,0,0,562,563,1,0,0,0,563,565,1,0,0,0,564,566,3,196,98,0,565,564,1,0,0,0,565,566,1,0,0,0,566,71,1,0,0,0,567,576,5,23,0,0,568,573,3,74,37,0,569,570,5,16,0,0,570,572,3,74,37,0,571,569,1,0,0,0,572,575,1,0,0,0,573,571,1,0,0,0,573,574,1,0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,576,568,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,24,0,0,579,73,1,0,0,0,580,582,3,78,39,0,581,583,3,92,46,0,582,581,1,0,0,0,582,583,1,0,0,0,583,75,1,0,0,0,584,586,3,78,39,0,585,587,3,92,46,0,586,585,1,0,0,0,586,587,1,0,0,0,587,588,1,0,0,0,588,589,3,196,98,0,589,77,1,0,0,0,590,591,6,39,-1,0,591,598,3,140,70,0,592,598,3,80,40,0,593,598,3,84,42,0,594,598,3,90,45,0,595,596,5,46,0,0,596,598,5,120,0,0,597,590,1,0,0,0,597,592,1,0,0,0,597,593,1,0,0,0,597,594,1,0,0,0,597,595,1,0,0,0,598,607,1,0,0,0,599,600,10,3,0,0,600,602,5,44,0,0,601,603,3,142,71,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,606,5,45,0,0,605,599,1,0,0,0,606,609,1,0,0,0,607,605,1,0,0,0,607,608,1,0,0,0,608,79,1,0,0,0,609,607,1,0,0,0,610,615,3,196,98,0,611,612,5,47,0,0,612,614,3,196,98,0,613,611,1,0,0,0,614,617,1,0,0,0,615,613,1,0,0,0,615,616,1,0,0,0,616,81,1,0,0,0,617,615,1,0,0,0,618,621,3,140,70,0,619,621,3,80,40,0,620,618,1,0,0,0,620,619,1,0,0,0,621,83,1,0,0,0,622,623,5,48,0,0,623,624,5,23,0,0,624,626,3,82,41,0,625,627,3,86,43,0,626,625,1,0,0,0,626,627,1,0,0,0,627,628,1,0,0,0,628,629,5,49,0,0,629,631,3,78,39,0,630,632,3,88,44,0,631,630,1,0,0,0,631,632,1,0,0,0,632,633,1,0,0,0,633,634,5,24,0,0,634,85,1,0,0,0,635,636,3,196,98,0,636,87,1,0,0,0,637,638,3,196,98,0,638,89,1,0,0,0,639,640,5,40,0,0,640,646,3,72,36,0,641,645,5,119,0,0,642,645,5,117,0,0,643,645,3,94,47,0,644,641,1,0,0,0,644,642,1,0,0,0,644,643,1,0,0,0,645,648,1,0,0,0,646,644,1,0,0,0,646,647,1,0,0,0,647,651,1,0,0,0,648,646,1,0,0,0,649,650,5,41,0,0,650,652,3,72,36,0,651,649,1,0,0,0,651,652,1,0,0,0,652,91,1,0,0,0,653,654,7,3,0,0,654,93,1,0,0,0,655,656,7,4,0,0,656,95,1,0,0,0,657,661,5,15,0,0,658,660,3,98,49,0,659,658,1,0,0,0,660,663,1,0,0,0,661,659,1,0,0,0,661,662,1,0,0,0,662,664,1,0,0,0,663,661,1,0,0,0,664,665,5,17,0,0,665,97,1,0,0,0,666,682,3,102,51,0,667,682,3,104,52,0,668,682,3,108,54,0,669,682,3,114,57,0,670,682,3,96,48,0,671,682,3,116,58,0,672,682,3,120,60,0,673,682,3,122,61,0,674,682,3,124,62,0,675,682,3,126,63,0,676,682,3,128,64,0,677,682,3,130,65,0,678,682,3,110,55,0,679,682,3,112,56,0,680,682,3,132,66,0,681,666,1,0,0,0,681,667,1,0,0,0,681,668,1,0,0,0,681,669,1,0,0,0,681,670,1,0,0,0,681,671,1,0,0,0,681,672,1,0,0,0,681,673,1,0,0,0,681,674,1,0,0,0,681,675,1,0,0,0,681,676,1,0,0,0,681,677,1,0,0,0,681,678,1,0,0,0,681,679,1,0,0,0,681,680,1,0,0,0,682,99,1,0,0,0,683,684,3,142,71,0,684,685,5,2,0,0,685,101,1,0,0,0,686,687,5,53,0,0,687,688,5,23,0,0,688,689,3,142,71,0,689,690,5,24,0,0,690,693,3,98,49,0,691,692,5,54,0,0,692,694,3,98,49,0,693,691,1,0,0,0,693,694,1,0,0,0,694,103,1,0,0,0,695,696,5,55,0,0,696,698,3,142,71,0,697,699,3,54,27,0,698,697,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,702,3,96,48,0,701,703,3,106,53,0,702,701,1,0,0,0,703,704,1,0,0,0,704,702,1,0,0,0,704,705,1,0,0,0,705,105,1,0,0,0,706,711,5,56,0,0,707,709,3,196,98,0,708,707,1,0,0,0,708,709,1,0,0,0,709,710,1,0,0,0,710,712,3,64,32,0,711,708,1,0,0,0,711,712,1,0,0,0,712,713,1,0,0,0,713,714,3,96,48,0,714,107,1,0,0,0,715,716,5,57,0,0,716,717,5,23,0,0,717,718,3,142,71,0,718,719,5,24,0,0,719,720,3,98,49,0,720,109,1,0,0,0,721,724,3,134,67,0,722,724,3,100,50,0,723,721,1,0,0,0,723,722,1,0,0,0,724,111,1,0,0,0,725,726,5,58,0,0,726,727,3,96,48,0,727,113,1,0,0,0,728,729,5,29,0,0,729,732,5,23,0,0,730,733,3,110,55,0,731,733,5,2,0,0,732,730,1,0,0,0,732,731,1,0,0,0,733,736,1,0,0,0,734,737,3,100,50,0,735,737,5,2,0,0,736,734,1,0,0,0,736,735,1,0,0,0,737,739,1,0,0,0,738,740,3,142,71,0,739,738,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,5,24,0,0,742,743,3,98,49,0,743,115,1,0,0,0,744,746,5,59,0,0,745,747,5,132,0,0,746,745,1,0,0,0,746,747,1,0,0,0,747,752,1,0,0,0,748,749,5,23,0,0,749,750,3,118,59,0,750,751,5,24,0,0,751,753,1,0,0,0,752,748,1,0,0,0,752,753,1,0,0,0,753,754,1,0,0,0,754,755,3,156,78,0,755,117,1,0,0,0,756,757,3,202,101,0,757,119,1,0,0,0,758,759,5,60,0,0,759,760,3,98,49,0,760,761,5,57,0,0,761,762,5,23,0,0,762,763,3,142,71,0,763,764,5,24,0,0,764,765,5,2,0,0,765,121,1,0,0,0,766,767,5,115,0,0,767,768,5,2,0,0,768,123,1,0,0,0,769,770,5,111,0,0,770,771,5,2,0,0,771,125,1,0,0,0,772,774,5,61,0,0,773,775,3,142,71,0,774,773,1,0,0,0,774,775,1,0,0,0,775,776,1,0,0,0,776,777,5,2,0,0,777,127,1,0,0,0,778,779,5,62,0,0,779,780,5,2,0,0,780,129,1,0,0,0,781,782,5,63,0,0,782,783,3,154,77,0,783,784,5,2,0,0,784,131,1,0,0,0,785,786,5,64,0,0,786,787,3,154,77,0,787,788,5,2,0,0,788,133,1,0,0,0,789,790,5,65,0,0,790,797,3,138,69,0,791,797,3,76,38,0,792,793,5,23,0,0,793,794,3,136,68,0,794,795,5,24,0,0,795,797,1,0,0,0,796,789,1,0,0,0,796,791,1,0,0,0,796,792,1,0,0,0,797,800,1,0,0,0,798,799,5,11,0,0,799,801,3,142,71,0,800,798,1,0,0,0,800,801,1,0,0,0,801,802,1,0,0,0,802,803,5,2,0,0,803,135,1,0,0,0,804,806,3,76,38,0,805,804,1,0,0,0,805,806,1,0,0,0,806,813,1,0,0,0,807,809,5,16,0,0,808,810,3,76,38,0,809,808,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811,807,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,137,1,0,0,0,815,813,1,0,0,0,816,823,5,23,0,0,817,819,3,196,98,0,818,817,1,0,0,0,818,819,1,0,0,0,819,820,1,0,0,0,820,822,5,16,0,0,821,818,1,0,0,0,822,825,1,0,0,0,823,821,1,0,0,0,823,824,1,0,0,0,824,827,1,0,0,0,825,823,1,0,0,0,826,828,3,196,98,0,827,826,1,0,0,0,827,828,1,0,0,0,828,829,1,0,0,0,829,830,5,24,0,0,830,139,1,0,0,0,831,832,7,5,0,0,832,141,1,0,0,0,833,834,6,71,-1,0,834,835,5,71,0,0,835,852,3,78,39,0,836,837,5,23,0,0,837,838,3,142,71,0,838,839,5,24,0,0,839,852,1,0,0,0,840,841,7,6,0,0,841,852,3,142,71,19,842,843,7,7,0,0,843,852,3,142,71,18,844,845,5,73,0,0,845,852,3,142,71,17,846,847,5,74,0,0,847,852,3,142,71,16,848,849,5,6,0,0,849,852,3,142,71,15,850,852,3,144,72,0,851,833,1,0,0,0,851,836,1,0,0,0,851,840,1,0,0,0,851,842,1,0,0,0,851,844,1,0,0,0,851,846,1,0,0,0,851,848,1,0,0,0,851,850,1,0,0,0,852,927,1,0,0,0,853,854,10,14,0,0,854,855,5,75,0,0,855,926,3,142,71,14,856,857,10,13,0,0,857,858,7,8,0,0,858,926,3,142,71,14,859,860,10,12,0,0,860,861,7,7,0,0,861,926,3,142,71,13,862,863,10,11,0,0,863,864,7,9,0,0,864,926,3,142,71,12,865,866,10,10,0,0,866,867,5,31,0,0,867,926,3,142,71,11,868,869,10,9,0,0,869,870,5,5,0,0,870,926,3,142,71,10,871,872,10,8,0,0,872,873,5,30,0,0,873,926,3,142,71,9,874,875,10,7,0,0,875,876,7,10,0,0,876,926,3,142,71,8,877,878,10,6,0,0,878,879,7,11,0,0,879,926,3,142,71,7,880,881,10,5,0,0,881,882,5,78,0,0,882,926,3,142,71,6,883,884,10,4,0,0,884,885,5,4,0,0,885,926,3,142,71,5,886,887,10,3,0,0,887,888,5,79,0,0,888,889,3,142,71,0,889,890,5,72,0,0,890,891,3,142,71,3,891,926,1,0,0,0,892,893,10,2,0,0,893,894,7,12,0,0,894,926,3,142,71,3,895,896,10,27,0,0,896,926,7,6,0,0,897,898,10,25,0,0,898,899,5,44,0,0,899,900,3,142,71,0,900,901,5,45,0,0,901,926,1,0,0,0,902,903,10,24,0,0,903,905,5,44,0,0,904,906,3,142,71,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,5,72,0,0,908,910,3,142,71,0,909,908,1,0,0,0,909,910,1,0,0,0,910,911,1,0,0,0,911,926,5,45,0,0,912,913,10,23,0,0,913,914,5,47,0,0,914,926,3,196,98,0,915,916,10,22,0,0,916,917,5,15,0,0,917,918,3,148,74,0,918,919,5,17,0,0,919,926,1,0,0,0,920,921,10,21,0,0,921,922,5,23,0,0,922,923,3,152,76,0,923,924,5,24,0,0,924,926,1,0,0,0,925,853,1,0,0,0,925,856,1,0,0,0,925,859,1,0,0,0,925,862,1,0,0,0,925,865,1,0,0,0,925,868,1,0,0,0,925,871,1,0,0,0,925,874,1,0,0,0,925,877,1,0,0,0,925,880,1,0,0,0,925,883,1,0,0,0,925,886,1,0,0,0,925,892,1,0,0,0,925,895,1,0,0,0,925,897,1,0,0,0,925,902,1,0,0,0,925,912,1,0,0,0,925,915,1,0,0,0,925,920,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,143,1,0,0,0,929,927,1,0,0,0,930,940,5,104,0,0,931,940,3,194,97,0,932,940,3,198,99,0,933,940,3,202,101,0,934,940,3,196,98,0,935,940,5,125,0,0,936,940,5,120,0,0,937,940,3,192,96,0,938,940,3,78,39,0,939,930,1,0,0,0,939,931,1,0,0,0,939,932,1,0,0,0,939,933,1,0,0,0,939,934,1,0,0,0,939,935,1,0,0,0,939,936,1,0,0,0,939,937,1,0,0,0,939,938,1,0,0,0,940,145,1,0,0,0,941,946,3,142,71,0,942,943,5,16,0,0,943,945,3,142,71,0,944,942,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,147,1,0,0,0,948,946,1,0,0,0,949,954,3,150,75,0,950,951,5,16,0,0,951,953,3,150,75,0,952,950,1,0,0,0,953,956,1,0,0,0,954,952,1,0,0,0,954,955,1,0,0,0,955,958,1,0,0,0,956,954,1,0,0,0,957,959,5,16,0,0,958,957,1,0,0,0,958,959,1,0,0,0,959,149,1,0,0,0,960,961,3,196,98,0,961,962,5,72,0,0,962,963,3,142,71,0,963,151,1,0,0,0,964,966,5,15,0,0,965,967,3,148,74,0,966,965,1,0,0,0,966,967,1,0,0,0,967,968,1,0,0,0,968,973,5,17,0,0,969,971,3,146,73,0,970,969,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,964,1,0,0,0,972,970,1,0,0,0,973,153,1,0,0,0,974,975,3,142,71,0,975,976,5,23,0,0,976,977,3,152,76,0,977,978,5,24,0,0,978,155,1,0,0,0,979,983,5,15,0,0,980,982,3,158,79,0,981,980,1,0,0,0,982,985,1,0,0,0,983,981,1,0,0,0,983,984,1,0,0,0,984,986,1,0,0,0,985,983,1,0,0,0,986,987,5,17,0,0,987,157,1,0,0,0,988,1006,3,196,98,0,989,1006,3,156,78,0,990,1006,3,160,80,0,991,1006,3,166,83,0,992,1006,3,168,84,0,993,1006,3,174,87,0,994,1006,3,176,88,0,995,1006,3,178,89,0,996,1006,3,182,91,0,997,1006,3,186,93,0,998,1006,3,188,94,0,999,1006,5,111,0,0,1e3,1006,5,115,0,0,1001,1006,5,116,0,0,1002,1006,3,194,97,0,1003,1006,3,202,101,0,1004,1006,3,198,99,0,1005,988,1,0,0,0,1005,989,1,0,0,0,1005,990,1,0,0,0,1005,991,1,0,0,0,1005,992,1,0,0,0,1005,993,1,0,0,0,1005,994,1,0,0,0,1005,995,1,0,0,0,1005,996,1,0,0,0,1005,997,1,0,0,0,1005,998,1,0,0,0,1005,999,1,0,0,0,1005,1e3,1,0,0,0,1005,1001,1,0,0,0,1005,1002,1,0,0,0,1005,1003,1,0,0,0,1005,1004,1,0,0,0,1006,159,1,0,0,0,1007,1011,3,164,82,0,1008,1011,3,190,95,0,1009,1011,3,162,81,0,1010,1007,1,0,0,0,1010,1008,1,0,0,0,1010,1009,1,0,0,0,1011,161,1,0,0,0,1012,1013,3,196,98,0,1013,1014,5,47,0,0,1014,1015,3,196,98,0,1015,163,1,0,0,0,1016,1021,5,61,0,0,1017,1021,5,46,0,0,1018,1021,5,68,0,0,1019,1021,3,196,98,0,1020,1016,1,0,0,0,1020,1017,1,0,0,0,1020,1018,1,0,0,0,1020,1019,1,0,0,0,1021,1034,1,0,0,0,1022,1024,5,23,0,0,1023,1025,3,160,80,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1030,1,0,0,0,1026,1027,5,16,0,0,1027,1029,3,160,80,0,1028,1026,1,0,0,0,1029,1032,1,0,0,0,1030,1028,1,0,0,0,1030,1031,1,0,0,0,1031,1033,1,0,0,0,1032,1030,1,0,0,0,1033,1035,5,24,0,0,1034,1022,1,0,0,0,1034,1035,1,0,0,0,1035,165,1,0,0,0,1036,1037,5,90,0,0,1037,1040,3,170,85,0,1038,1039,5,91,0,0,1039,1041,3,160,80,0,1040,1038,1,0,0,0,1040,1041,1,0,0,0,1041,167,1,0,0,0,1042,1043,3,170,85,0,1043,1044,5,91,0,0,1044,1045,3,160,80,0,1045,169,1,0,0,0,1046,1054,3,196,98,0,1047,1054,3,162,81,0,1048,1054,3,172,86,0,1049,1050,5,23,0,0,1050,1051,3,172,86,0,1051,1052,5,24,0,0,1052,1054,1,0,0,0,1053,1046,1,0,0,0,1053,1047,1,0,0,0,1053,1048,1,0,0,0,1053,1049,1,0,0,0,1054,171,1,0,0,0,1055,1060,3,196,98,0,1056,1057,5,16,0,0,1057,1059,3,196,98,0,1058,1056,1,0,0,0,1059,1062,1,0,0,0,1060,1058,1,0,0,0,1060,1061,1,0,0,0,1061,173,1,0,0,0,1062,1060,1,0,0,0,1063,1064,3,160,80,0,1064,1065,5,92,0,0,1065,1066,3,196,98,0,1066,175,1,0,0,0,1067,1068,3,196,98,0,1068,1069,5,72,0,0,1069,177,1,0,0,0,1070,1071,5,93,0,0,1071,1075,3,160,80,0,1072,1074,3,180,90,0,1073,1072,1,0,0,0,1074,1077,1,0,0,0,1075,1073,1,0,0,0,1075,1076,1,0,0,0,1076,179,1,0,0,0,1077,1075,1,0,0,0,1078,1079,5,94,0,0,1079,1080,3,190,95,0,1080,1081,3,156,78,0,1081,1085,1,0,0,0,1082,1083,5,95,0,0,1083,1085,3,156,78,0,1084,1078,1,0,0,0,1084,1082,1,0,0,0,1085,181,1,0,0,0,1086,1087,5,40,0,0,1087,1088,3,196,98,0,1088,1090,5,23,0,0,1089,1091,3,172,86,0,1090,1089,1,0,0,0,1090,1091,1,0,0,0,1091,1092,1,0,0,0,1092,1094,5,24,0,0,1093,1095,3,184,92,0,1094,1093,1,0,0,0,1094,1095,1,0,0,0,1095,1096,1,0,0,0,1096,1097,3,156,78,0,1097,183,1,0,0,0,1098,1099,5,96,0,0,1099,1100,3,172,86,0,1100,185,1,0,0,0,1101,1104,5,29,0,0,1102,1105,3,156,78,0,1103,1105,3,160,80,0,1104,1102,1,0,0,0,1104,1103,1,0,0,0,1105,1106,1,0,0,0,1106,1109,3,160,80,0,1107,1110,3,156,78,0,1108,1110,3,160,80,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,1111,1,0,0,0,1111,1112,3,156,78,0,1112,187,1,0,0,0,1113,1114,5,53,0,0,1114,1115,3,160,80,0,1115,1116,3,156,78,0,1116,189,1,0,0,0,1117,1123,3,202,101,0,1118,1123,5,105,0,0,1119,1123,5,106,0,0,1120,1123,3,198,99,0,1121,1123,5,104,0,0,1122,1117,1,0,0,0,1122,1118,1,0,0,0,1122,1119,1,0,0,0,1122,1120,1,0,0,0,1122,1121,1,0,0,0,1123,191,1,0,0,0,1124,1126,5,23,0,0,1125,1127,3,142,71,0,1126,1125,1,0,0,0,1126,1127,1,0,0,0,1127,1134,1,0,0,0,1128,1130,5,16,0,0,1129,1131,3,142,71,0,1130,1129,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1128,1,0,0,0,1133,1136,1,0,0,0,1134,1132,1,0,0,0,1134,1135,1,0,0,0,1135,1137,1,0,0,0,1136,1134,1,0,0,0,1137,1151,5,24,0,0,1138,1147,5,44,0,0,1139,1144,3,142,71,0,1140,1141,5,16,0,0,1141,1143,3,142,71,0,1142,1140,1,0,0,0,1143,1146,1,0,0,0,1144,1142,1,0,0,0,1144,1145,1,0,0,0,1145,1148,1,0,0,0,1146,1144,1,0,0,0,1147,1139,1,0,0,0,1147,1148,1,0,0,0,1148,1149,1,0,0,0,1149,1151,5,45,0,0,1150,1124,1,0,0,0,1150,1138,1,0,0,0,1151,193,1,0,0,0,1152,1154,7,13,0,0,1153,1155,5,107,0,0,1154,1153,1,0,0,0,1154,1155,1,0,0,0,1155,195,1,0,0,0,1156,1157,7,14,0,0,1157,197,1,0,0,0,1158,1160,5,108,0,0,1159,1158,1,0,0,0,1160,1161,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162,199,1,0,0,0,1163,1175,5,98,0,0,1164,1165,5,23,0,0,1165,1170,3,80,40,0,1166,1167,5,16,0,0,1167,1169,3,80,40,0,1168,1166,1,0,0,0,1169,1172,1,0,0,0,1170,1168,1,0,0,0,1170,1171,1,0,0,0,1171,1173,1,0,0,0,1172,1170,1,0,0,0,1173,1174,5,24,0,0,1174,1176,1,0,0,0,1175,1164,1,0,0,0,1175,1176,1,0,0,0,1176,201,1,0,0,0,1177,1179,5,132,0,0,1178,1177,1,0,0,0,1179,1180,1,0,0,0,1180,1178,1,0,0,0,1180,1181,1,0,0,0,1181,203,1,0,0,0,132,215,217,232,236,241,247,251,254,259,265,272,276,289,297,302,307,315,318,321,327,335,338,353,363,365,371,398,401,412,417,422,436,439,446,450,452,457,462,465,471,475,479,484,497,499,506,516,522,533,536,542,545,553,556,562,565,573,576,582,586,597,602,607,615,620,626,631,644,646,651,661,681,693,698,704,708,711,723,732,736,739,746,752,774,796,800,805,809,813,818,823,827,851,905,909,925,927,939,946,954,958,966,970,972,983,1005,1010,1020,1024,1030,1034,1040,1053,1060,1075,1084,1090,1094,1104,1109,1122,1126,1130,1134,1144,1147,1150,1154,1161,1170,1175,1180],A.DecisionsToDFA=A._ATN.decisionToState.map((t,e)=>new p(t,e));var C=A,L=class extends _{constructor(t,e,r){super(e,r),this.parser=t}EOF(){return this.getToken(C.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(I)}pragmaDirective(t){return this.getTypedRuleContext(I,t)}importDirective_list(){return this.getTypedRuleContexts(M)}importDirective(t){return this.getTypedRuleContext(M,t)}contractDefinition_list(){return this.getTypedRuleContexts(U)}contractDefinition(t){return this.getTypedRuleContext(U,t)}enumDefinition_list(){return this.getTypedRuleContexts(ot)}enumDefinition(t){return this.getTypedRuleContext(ot,t)}eventDefinition_list(){return this.getTypedRuleContexts(nt)}eventDefinition(t){return this.getTypedRuleContext(nt,t)}structDefinition_list(){return this.getTypedRuleContexts(J)}structDefinition(t){return this.getTypedRuleContext(J,t)}functionDefinition_list(){return this.getTypedRuleContexts(et)}functionDefinition(t){return this.getTypedRuleContext(et,t)}fileLevelConstant_list(){return this.getTypedRuleContexts(H)}fileLevelConstant(t){return this.getTypedRuleContext(H,t)}customErrorDefinition_list(){return this.getTypedRuleContexts($)}customErrorDefinition(t){return this.getTypedRuleContext($,t)}typeDefinition_list(){return this.getTypedRuleContexts(G)}typeDefinition(t){return this.getTypedRuleContext(G,t)}usingForDeclaration_list(){return this.getTypedRuleContexts(z)}usingForDeclaration(t){return this.getTypedRuleContext(z,t)}get ruleIndex(){return C.RULE_sourceUnit}enterRule(t){t.enterSourceUnit&&t.enterSourceUnit(this)}exitRule(t){t.exitSourceUnit&&t.exitSourceUnit(this)}accept(t){return t.visitSourceUnit?t.visitSourceUnit(this):t.visitChildren(this)}},I=class extends _{constructor(t,e,r){super(e,r),this.parser=t}pragmaName(){return this.getTypedRuleContext(K,0)}pragmaValue(){return this.getTypedRuleContext(N,0)}get ruleIndex(){return C.RULE_pragmaDirective}enterRule(t){t.enterPragmaDirective&&t.enterPragmaDirective(this)}exitRule(t){t.exitPragmaDirective&&t.exitPragmaDirective(this)}accept(t){return t.visitPragmaDirective?t.visitPragmaDirective(this):t.visitChildren(this)}},K=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_pragmaName}enterRule(t){t.enterPragmaName&&t.enterPragmaName(this)}exitRule(t){t.exitPragmaName&&t.exitPragmaName(this)}accept(t){return t.visitPragmaName?t.visitPragmaName(this):t.visitChildren(this)}},N=class extends _{constructor(t,e,r){super(e,r),this.parser=t}version(){return this.getTypedRuleContext(O,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_pragmaValue}enterRule(t){t.enterPragmaValue&&t.enterPragmaValue(this)}exitRule(t){t.exitPragmaValue&&t.exitPragmaValue(this)}accept(t){return t.visitPragmaValue?t.visitPragmaValue(this):t.visitChildren(this)}},O=class extends _{constructor(t,e,r){super(e,r),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(P)}versionConstraint(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return C.RULE_version}enterRule(t){t.enterVersion&&t.enterVersion(this)}exitRule(t){t.exitVersion&&t.exitVersion(this)}accept(t){return t.visitVersion?t.visitVersion(this):t.visitChildren(this)}},D=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_versionOperator}enterRule(t){t.enterVersionOperator&&t.enterVersionOperator(this)}exitRule(t){t.exitVersionOperator&&t.exitVersionOperator(this)}accept(t){return t.visitVersionOperator?t.visitVersionOperator(this):t.visitChildren(this)}},P=class extends _{constructor(t,e,r){super(e,r),this.parser=t}VersionLiteral(){return this.getToken(C.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(D,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}get ruleIndex(){return C.RULE_versionConstraint}enterRule(t){t.enterVersionConstraint&&t.enterVersionConstraint(this)}exitRule(t){t.exitVersionConstraint&&t.exitVersionConstraint(this)}accept(t){return t.visitVersionConstraint?t.visitVersionConstraint(this):t.visitChildren(this)}},q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_importDeclaration}enterRule(t){t.enterImportDeclaration&&t.enterImportDeclaration(this)}exitRule(t){t.exitImportDeclaration&&t.exitImportDeclaration(this)}accept(t){return t.visitImportDeclaration?t.visitImportDeclaration(this):t.visitChildren(this)}},M=class extends _{constructor(t,e,r){super(e,r),this.parser=t}importPath(){return this.getTypedRuleContext(F,0)}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}importDeclaration_list(){return this.getTypedRuleContexts(q)}importDeclaration(t){return this.getTypedRuleContext(q,t)}get ruleIndex(){return C.RULE_importDirective}enterRule(t){t.enterImportDirective&&t.enterImportDirective(this)}exitRule(t){t.exitImportDirective&&t.exitImportDirective(this)}accept(t){return t.visitImportDirective?t.visitImportDirective(this):t.visitChildren(this)}},F=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}get ruleIndex(){return C.RULE_importPath}enterRule(t){t.enterImportPath&&t.enterImportPath(this)}exitRule(t){t.exitImportPath&&t.exitImportPath(this)}accept(t){return t.visitImportPath?t.visitImportPath(this):t.visitChildren(this)}},U=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}customStorageLayout_list(){return this.getTypedRuleContexts(V)}customStorageLayout(t){return this.getTypedRuleContext(V,t)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(Y)}inheritanceSpecifier(t){return this.getTypedRuleContext(Y,t)}contractPart_list(){return this.getTypedRuleContexts(j)}contractPart(t){return this.getTypedRuleContext(j,t)}get ruleIndex(){return C.RULE_contractDefinition}enterRule(t){t.enterContractDefinition&&t.enterContractDefinition(this)}exitRule(t){t.exitContractDefinition&&t.exitContractDefinition(this)}accept(t){return t.visitContractDefinition?t.visitContractDefinition(this):t.visitChildren(this)}},Y=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.RULE_inheritanceSpecifier}enterRule(t){t.enterInheritanceSpecifier&&t.enterInheritanceSpecifier(this)}exitRule(t){t.exitInheritanceSpecifier&&t.exitInheritanceSpecifier(this)}accept(t){return t.visitInheritanceSpecifier?t.visitInheritanceSpecifier(this):t.visitChildren(this)}},V=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_customStorageLayout}enterRule(t){t.enterCustomStorageLayout&&t.enterCustomStorageLayout(this)}exitRule(t){t.exitCustomStorageLayout&&t.exitCustomStorageLayout(this)}accept(t){return t.visitCustomStorageLayout?t.visitCustomStorageLayout(this):t.visitChildren(this)}},j=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext(z,0)}structDefinition(){return this.getTypedRuleContext(J,0)}modifierDefinition(){return this.getTypedRuleContext(Z,0)}functionDefinition(){return this.getTypedRuleContext(et,0)}eventDefinition(){return this.getTypedRuleContext(nt,0)}enumDefinition(){return this.getTypedRuleContext(ot,0)}customErrorDefinition(){return this.getTypedRuleContext($,0)}typeDefinition(){return this.getTypedRuleContext(G,0)}get ruleIndex(){return C.RULE_contractPart}enterRule(t){t.enterContractPart&&t.enterContractPart(this)}exitRule(t){t.exitContractPart&&t.exitContractPart(this)}accept(t){return t.visitContractPart?t.visitContractPart(this):t.visitChildren(this)}},B=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}identifier(){return this.getTypedRuleContext(ve,0)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(C.ConstantKeyword)}ConstantKeyword(t){return this.getToken(C.ConstantKeyword,t)}TransientKeyword_list(){return this.getTokens(C.TransientKeyword)}TransientKeyword(t){return this.getToken(C.TransientKeyword,t)}ImmutableKeyword_list(){return this.getTokens(C.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(C.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_stateVariableDeclaration}enterRule(t){t.enterStateVariableDeclaration&&t.enterStateVariableDeclaration(this)}exitRule(t){t.exitStateVariableDeclaration&&t.exitStateVariableDeclaration(this)}accept(t){return t.visitStateVariableDeclaration?t.visitStateVariableDeclaration(this):t.visitChildren(this)}},H=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_fileLevelConstant}enterRule(t){t.enterFileLevelConstant&&t.enterFileLevelConstant(this)}exitRule(t){t.exitFileLevelConstant&&t.exitFileLevelConstant(this)}accept(t){return t.visitFileLevelConstant?t.visitFileLevelConstant(this):t.visitChildren(this)}},$=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}parameterList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.RULE_customErrorDefinition}enterRule(t){t.enterCustomErrorDefinition&&t.enterCustomErrorDefinition(this)}exitRule(t){t.exitCustomErrorDefinition&&t.exitCustomErrorDefinition(this)}accept(t){return t.visitCustomErrorDefinition?t.visitCustomErrorDefinition(this):t.visitChildren(this)}},G=class extends _{constructor(t,e,r){super(e,r),this.parser=t}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}elementaryTypeName(){return this.getTypedRuleContext($t,0)}get ruleIndex(){return C.RULE_typeDefinition}enterRule(t){t.enterTypeDefinition&&t.enterTypeDefinition(this)}exitRule(t){t.exitTypeDefinition&&t.exitTypeDefinition(this)}accept(t){return t.visitTypeDefinition?t.visitTypeDefinition(this):t.visitChildren(this)}},z=class extends _{constructor(t,e,r){super(e,r),this.parser=t}usingForObject(){return this.getTypedRuleContext(W,0)}typeName(){return this.getTypedRuleContext(yt,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}get ruleIndex(){return C.RULE_usingForDeclaration}enterRule(t){t.enterUsingForDeclaration&&t.enterUsingForDeclaration(this)}exitRule(t){t.exitUsingForDeclaration&&t.exitUsingForDeclaration(this)}accept(t){return t.visitUsingForDeclaration?t.visitUsingForDeclaration(this):t.visitChildren(this)}},W=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(X)}usingForObjectDirective(t){return this.getTypedRuleContext(X,t)}get ruleIndex(){return C.RULE_usingForObject}enterRule(t){t.enterUsingForObject&&t.enterUsingForObject(this)}exitRule(t){t.exitUsingForObject&&t.exitUsingForObject(this)}accept(t){return t.visitUsingForObject?t.visitUsingForObject(this):t.visitChildren(this)}},X=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}userDefinableOperators(){return this.getTypedRuleContext(Q,0)}get ruleIndex(){return C.RULE_usingForObjectDirective}enterRule(t){t.enterUsingForObjectDirective&&t.enterUsingForObjectDirective(this)}exitRule(t){t.exitUsingForObjectDirective&&t.exitUsingForObjectDirective(this)}accept(t){return t.visitUsingForObjectDirective?t.visitUsingForObjectDirective(this):t.visitChildren(this)}},Q=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_userDefinableOperators}enterRule(t){t.enterUserDefinableOperators&&t.enterUserDefinableOperators(this)}exitRule(t){t.exitUserDefinableOperators&&t.exitUserDefinableOperators(this)}accept(t){return t.visitUserDefinableOperators?t.visitUserDefinableOperators(this):t.visitChildren(this)}},J=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}variableDeclaration_list(){return this.getTypedRuleContexts(mt)}variableDeclaration(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return C.RULE_structDefinition}enterRule(t){t.enterStructDefinition&&t.enterStructDefinition(this)}exitRule(t){t.exitStructDefinition&&t.exitStructDefinition(this)}accept(t){return t.visitStructDefinition?t.visitStructDefinition(this):t.visitChildren(this)}},Z=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}get ruleIndex(){return C.RULE_modifierDefinition}enterRule(t){t.enterModifierDefinition&&t.enterModifierDefinition(this)}exitRule(t){t.exitModifierDefinition&&t.exitModifierDefinition(this)}accept(t){return t.visitModifierDefinition?t.visitModifierDefinition(this):t.visitChildren(this)}},tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.RULE_modifierInvocation}enterRule(t){t.enterModifierInvocation&&t.enterModifierInvocation(this)}exitRule(t){t.exitModifierInvocation&&t.exitModifierInvocation(this)}accept(t){return t.visitModifierInvocation?t.visitModifierInvocation(this):t.visitChildren(this)}},et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(rt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}modifierList(){return this.getTypedRuleContext(it,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(st,0)}get ruleIndex(){return C.RULE_functionDefinition}enterRule(t){t.enterFunctionDefinition&&t.enterFunctionDefinition(this)}exitRule(t){t.exitFunctionDefinition&&t.exitFunctionDefinition(this)}accept(t){return t.visitFunctionDefinition?t.visitFunctionDefinition(this):t.visitChildren(this)}},rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(C.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}get ruleIndex(){return C.RULE_functionDescriptor}enterRule(t){t.enterFunctionDescriptor&&t.enterFunctionDescriptor(this)}exitRule(t){t.exitFunctionDescriptor&&t.exitFunctionDescriptor(this)}accept(t){return t.visitFunctionDescriptor?t.visitFunctionDescriptor(this):t.visitChildren(this)}},st=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameterList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.RULE_returnParameters}enterRule(t){t.enterReturnParameters&&t.enterReturnParameters(this)}exitRule(t){t.exitReturnParameters&&t.exitReturnParameters(this)}accept(t){return t.visitReturnParameters?t.visitReturnParameters(this):t.visitChildren(this)}},it=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(t){return this.getToken(C.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(t){return this.getToken(C.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(t){return this.getToken(C.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}modifierInvocation_list(){return this.getTypedRuleContexts(tt)}modifierInvocation(t){return this.getTypedRuleContext(tt,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(_e)}overrideSpecifier(t){return this.getTypedRuleContext(_e,t)}get ruleIndex(){return C.RULE_modifierList}enterRule(t){t.enterModifierList&&t.enterModifierList(this)}exitRule(t){t.exitModifierList&&t.exitModifierList(this)}accept(t){return t.visitModifierList?t.visitModifierList(this):t.visitChildren(this)}},nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}eventParameterList(){return this.getTypedRuleContext(ht,0)}AnonymousKeyword(){return this.getToken(C.AnonymousKeyword,0)}get ruleIndex(){return C.RULE_eventDefinition}enterRule(t){t.enterEventDefinition&&t.enterEventDefinition(this)}exitRule(t){t.exitEventDefinition&&t.exitEventDefinition(this)}accept(t){return t.visitEventDefinition?t.visitEventDefinition(this):t.visitChildren(this)}},at=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_enumValue}enterRule(t){t.enterEnumValue&&t.enterEnumValue(this)}exitRule(t){t.exitEnumValue&&t.exitEnumValue(this)}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}enumValue_list(){return this.getTypedRuleContexts(at)}enumValue(t){return this.getTypedRuleContext(at,t)}get ruleIndex(){return C.RULE_enumDefinition}enterRule(t){t.enterEnumDefinition&&t.enterEnumDefinition(this)}exitRule(t){t.exitEnumDefinition&&t.exitEnumDefinition(this)}accept(t){return t.visitEnumDefinition?t.visitEnumDefinition(this):t.visitChildren(this)}},ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}parameter_list(){return this.getTypedRuleContexts(lt)}parameter(t){return this.getTypedRuleContext(lt,t)}get ruleIndex(){return C.RULE_parameterList}enterRule(t){t.enterParameterList&&t.enterParameterList(this)}exitRule(t){t.exitParameterList&&t.exitParameterList(this)}accept(t){return t.visitParameterList?t.visitParameterList(this):t.visitChildren(this)}},lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_parameter}enterRule(t){t.enterParameter&&t.enterParameter(this)}exitRule(t){t.exitParameter&&t.exitParameter(this)}accept(t){return t.visitParameter?t.visitParameter(this):t.visitChildren(this)}},ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(ut)}eventParameter(t){return this.getTypedRuleContext(ut,t)}get ruleIndex(){return C.RULE_eventParameterList}enterRule(t){t.enterEventParameterList&&t.enterEventParameterList(this)}exitRule(t){t.exitEventParameterList&&t.exitEventParameterList(this)}accept(t){return t.visitEventParameterList?t.visitEventParameterList(this):t.visitChildren(this)}},ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}IndexedKeyword(){return this.getToken(C.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_eventParameter}enterRule(t){t.enterEventParameter&&t.enterEventParameter(this)}exitRule(t){t.exitEventParameter&&t.exitEventParameter(this)}accept(t){return t.visitEventParameter?t.visitEventParameter(this):t.visitChildren(this)}},dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(pt)}functionTypeParameter(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return C.RULE_functionTypeParameterList}enterRule(t){t.enterFunctionTypeParameterList&&t.enterFunctionTypeParameterList(this)}exitRule(t){t.exitFunctionTypeParameterList&&t.exitFunctionTypeParameterList(this)}accept(t){return t.visitFunctionTypeParameterList?t.visitFunctionTypeParameterList(this):t.visitChildren(this)}},pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return C.RULE_functionTypeParameter}enterRule(t){t.enterFunctionTypeParameter&&t.enterFunctionTypeParameter(this)}exitRule(t){t.exitFunctionTypeParameter&&t.exitFunctionTypeParameter(this)}accept(t){return t.visitFunctionTypeParameter?t.visitFunctionTypeParameter(this):t.visitChildren(this)}},mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}identifier(){return this.getTypedRuleContext(ve,0)}storageLocation(){return this.getTypedRuleContext(_t,0)}get ruleIndex(){return C.RULE_variableDeclaration}enterRule(t){t.enterVariableDeclaration&&t.enterVariableDeclaration(this)}exitRule(t){t.exitVariableDeclaration&&t.exitVariableDeclaration(this)}accept(t){return t.visitVariableDeclaration?t.visitVariableDeclaration(this):t.visitChildren(this)}},yt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext($t,0)}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}mapping(){return this.getTypedRuleContext(wt,0)}functionTypeName(){return this.getTypedRuleContext(bt,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(t,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_typeName}enterRule(t){t.enterTypeName&&t.enterTypeName(this)}exitRule(t){t.exitTypeName&&t.exitTypeName(this)}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_userDefinedTypeName}enterRule(t){t.enterUserDefinedTypeName&&t.enterUserDefinedTypeName(this)}exitRule(t){t.exitUserDefinedTypeName&&t.exitUserDefinedTypeName(this)}accept(t){return t.visitUserDefinedTypeName?t.visitUserDefinedTypeName(this):t.visitChildren(this)}},gt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext($t,0)}userDefinedTypeName(){return this.getTypedRuleContext(ft,0)}get ruleIndex(){return C.RULE_mappingKey}enterRule(t){t.enterMappingKey&&t.enterMappingKey(this)}exitRule(t){t.exitMappingKey&&t.exitMappingKey(this)}accept(t){return t.visitMappingKey?t.visitMappingKey(this):t.visitChildren(this)}},wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}mappingKey(){return this.getTypedRuleContext(gt,0)}typeName(){return this.getTypedRuleContext(yt,0)}mappingKeyName(){return this.getTypedRuleContext(xt,0)}mappingValueName(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_mapping}enterRule(t){t.enterMapping&&t.enterMapping(this)}exitRule(t){t.exitMapping&&t.exitMapping(this)}accept(t){return t.visitMapping?t.visitMapping(this):t.visitChildren(this)}},xt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_mappingKeyName}enterRule(t){t.enterMappingKeyName&&t.enterMappingKeyName(this)}exitRule(t){t.exitMappingKeyName&&t.exitMappingKeyName(this)}accept(t){return t.visitMappingKeyName?t.visitMappingKeyName(this):t.visitChildren(this)}},vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_mappingValueName}enterRule(t){t.enterMappingValueName&&t.enterMappingValueName(this)}exitRule(t){t.exitMappingValueName&&t.exitMappingValueName(this)}accept(t){return t.visitMappingValueName?t.visitMappingValueName(this):t.visitChildren(this)}},bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(dt)}functionTypeParameterList(t){return this.getTypedRuleContext(dt,t)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(t){return this.getToken(C.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(t){return this.getToken(C.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return C.RULE_functionTypeName}enterRule(t){t.enterFunctionTypeName&&t.enterFunctionTypeName(this)}exitRule(t){t.exitFunctionTypeName&&t.exitFunctionTypeName(this)}accept(t){return t.visitFunctionTypeName?t.visitFunctionTypeName(this):t.visitChildren(this)}},_t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_storageLocation}enterRule(t){t.enterStorageLocation&&t.enterStorageLocation(this)}exitRule(t){t.exitStorageLocation&&t.exitStorageLocation(this)}accept(t){return t.visitStorageLocation?t.visitStorageLocation(this):t.visitChildren(this)}},Et=class extends _{constructor(t,e,r){super(e,r),this.parser=t}PureKeyword(){return this.getToken(C.PureKeyword,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}ViewKeyword(){return this.getToken(C.ViewKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}get ruleIndex(){return C.RULE_stateMutability}enterRule(t){t.enterStateMutability&&t.enterStateMutability(this)}exitRule(t){t.exitStateMutability&&t.exitStateMutability(this)}accept(t){return t.visitStateMutability?t.visitStateMutability(this):t.visitChildren(this)}},Tt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement_list(){return this.getTypedRuleContexts(St)}statement(t){return this.getTypedRuleContext(St,t)}get ruleIndex(){return C.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}},St=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ifStatement(){return this.getTypedRuleContext(Rt,0)}tryStatement(){return this.getTypedRuleContext(At,0)}whileStatement(){return this.getTypedRuleContext(Lt,0)}forStatement(){return this.getTypedRuleContext(Nt,0)}block(){return this.getTypedRuleContext(Tt,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(Ot,0)}doWhileStatement(){return this.getTypedRuleContext(Pt,0)}continueStatement(){return this.getTypedRuleContext(qt,0)}breakStatement(){return this.getTypedRuleContext(Mt,0)}returnStatement(){return this.getTypedRuleContext(Ft,0)}throwStatement(){return this.getTypedRuleContext(Ut,0)}emitStatement(){return this.getTypedRuleContext(Yt,0)}simpleStatement(){return this.getTypedRuleContext(It,0)}uncheckedStatement(){return this.getTypedRuleContext(Kt,0)}revertStatement(){return this.getTypedRuleContext(Vt,0)}get ruleIndex(){return C.RULE_statement}enterRule(t){t.enterStatement&&t.enterStatement(this)}exitRule(t){t.exitStatement&&t.exitStatement(this)}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_expressionStatement}enterRule(t){t.enterExpressionStatement&&t.enterExpressionStatement(this)}exitRule(t){t.exitExpressionStatement&&t.exitExpressionStatement(this)}accept(t){return t.visitExpressionStatement?t.visitExpressionStatement(this):t.visitChildren(this)}},Rt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}statement_list(){return this.getTypedRuleContexts(St)}statement(t){return this.getTypedRuleContext(St,t)}get ruleIndex(){return C.RULE_ifStatement}enterRule(t){t.enterIfStatement&&t.enterIfStatement(this)}exitRule(t){t.exitIfStatement&&t.exitIfStatement(this)}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},At=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}block(){return this.getTypedRuleContext(Tt,0)}returnParameters(){return this.getTypedRuleContext(st,0)}catchClause_list(){return this.getTypedRuleContexts(Ct)}catchClause(t){return this.getTypedRuleContext(Ct,t)}get ruleIndex(){return C.RULE_tryStatement}enterRule(t){t.enterTryStatement&&t.enterTryStatement(this)}exitRule(t){t.exitTryStatement&&t.exitTryStatement(this)}accept(t){return t.visitTryStatement?t.visitTryStatement(this):t.visitChildren(this)}},Ct=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}parameterList(){return this.getTypedRuleContext(ct,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_catchClause}enterRule(t){t.enterCatchClause&&t.enterCatchClause(this)}exitRule(t){t.exitCatchClause&&t.exitCatchClause(this)}accept(t){return t.visitCatchClause?t.visitCatchClause(this):t.visitChildren(this)}},Lt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}statement(){return this.getTypedRuleContext(St,0)}get ruleIndex(){return C.RULE_whileStatement}enterRule(t){t.enterWhileStatement&&t.enterWhileStatement(this)}exitRule(t){t.exitWhileStatement&&t.exitWhileStatement(this)}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},It=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(jt,0)}expressionStatement(){return this.getTypedRuleContext(kt,0)}get ruleIndex(){return C.RULE_simpleStatement}enterRule(t){t.enterSimpleStatement&&t.enterSimpleStatement(this)}exitRule(t){t.exitSimpleStatement&&t.exitSimpleStatement(this)}accept(t){return t.visitSimpleStatement?t.visitSimpleStatement(this):t.visitChildren(this)}},Kt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}block(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return C.RULE_uncheckedStatement}enterRule(t){t.enterUncheckedStatement&&t.enterUncheckedStatement(this)}exitRule(t){t.exitUncheckedStatement&&t.exitUncheckedStatement(this)}accept(t){return t.visitUncheckedStatement?t.visitUncheckedStatement(this):t.visitChildren(this)}},Nt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(St,0)}simpleStatement(){return this.getTypedRuleContext(It,0)}expressionStatement(){return this.getTypedRuleContext(kt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_forStatement}enterRule(t){t.enterForStatement&&t.enterForStatement(this)}exitRule(t){t.exitForStatement&&t.exitForStatement(this)}accept(t){return t.visitForStatement?t.visitForStatement(this):t.visitChildren(this)}},Ot=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(te,0)}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Dt,0)}get ruleIndex(){return C.RULE_inlineAssemblyStatement}enterRule(t){t.enterInlineAssemblyStatement&&t.enterInlineAssemblyStatement(this)}exitRule(t){t.exitInlineAssemblyStatement&&t.exitInlineAssemblyStatement(this)}accept(t){return t.visitInlineAssemblyStatement?t.visitInlineAssemblyStatement(this):t.visitChildren(this)}},Dt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}get ruleIndex(){return C.RULE_inlineAssemblyStatementFlag}enterRule(t){t.enterInlineAssemblyStatementFlag&&t.enterInlineAssemblyStatementFlag(this)}exitRule(t){t.exitInlineAssemblyStatementFlag&&t.exitInlineAssemblyStatementFlag(this)}accept(t){return t.visitInlineAssemblyStatementFlag?t.visitInlineAssemblyStatementFlag(this):t.visitChildren(this)}},Pt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}statement(){return this.getTypedRuleContext(St,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_doWhileStatement}enterRule(t){t.enterDoWhileStatement&&t.enterDoWhileStatement(this)}exitRule(t){t.exitDoWhileStatement&&t.exitDoWhileStatement(this)}accept(t){return t.visitDoWhileStatement?t.visitDoWhileStatement(this):t.visitChildren(this)}},qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}get ruleIndex(){return C.RULE_continueStatement}enterRule(t){t.enterContinueStatement&&t.enterContinueStatement(this)}exitRule(t){t.exitContinueStatement&&t.exitContinueStatement(this)}accept(t){return t.visitContinueStatement?t.visitContinueStatement(this):t.visitChildren(this)}},Mt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}get ruleIndex(){return C.RULE_breakStatement}enterRule(t){t.enterBreakStatement&&t.enterBreakStatement(this)}exitRule(t){t.exitBreakStatement&&t.exitBreakStatement(this)}accept(t){return t.visitBreakStatement?t.visitBreakStatement(this):t.visitChildren(this)}},Ft=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_returnStatement}enterRule(t){t.enterReturnStatement&&t.enterReturnStatement(this)}exitRule(t){t.exitReturnStatement&&t.exitReturnStatement(this)}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},Ut=class extends _{constructor(t,e,r){super(e,r),this.parser=t}get ruleIndex(){return C.RULE_throwStatement}enterRule(t){t.enterThrowStatement&&t.enterThrowStatement(this)}exitRule(t){t.exitThrowStatement&&t.exitThrowStatement(this)}accept(t){return t.visitThrowStatement?t.visitThrowStatement(this):t.visitChildren(this)}},Yt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.RULE_emitStatement}enterRule(t){t.enterEmitStatement&&t.enterEmitStatement(this)}exitRule(t){t.exitEmitStatement&&t.exitEmitStatement(this)}accept(t){return t.visitEmitStatement?t.visitEmitStatement(this):t.visitChildren(this)}},Vt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}functionCall(){return this.getTypedRuleContext(Zt,0)}get ruleIndex(){return C.RULE_revertStatement}enterRule(t){t.enterRevertStatement&&t.enterRevertStatement(this)}exitRule(t){t.exitRevertStatement&&t.exitRevertStatement(this)}accept(t){return t.visitRevertStatement?t.visitRevertStatement(this):t.visitChildren(this)}},jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifierList(){return this.getTypedRuleContext(Ht,0)}variableDeclaration(){return this.getTypedRuleContext(mt,0)}variableDeclarationList(){return this.getTypedRuleContext(Bt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_variableDeclarationStatement}enterRule(t){t.enterVariableDeclarationStatement&&t.enterVariableDeclarationStatement(this)}exitRule(t){t.exitVariableDeclarationStatement&&t.exitVariableDeclarationStatement(this)}accept(t){return t.visitVariableDeclarationStatement?t.visitVariableDeclarationStatement(this):t.visitChildren(this)}},Bt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(mt)}variableDeclaration(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return C.RULE_variableDeclarationList}enterRule(t){t.enterVariableDeclarationList&&t.enterVariableDeclarationList(this)}exitRule(t){t.exitVariableDeclarationList&&t.exitVariableDeclarationList(this)}accept(t){return t.visitVariableDeclarationList?t.visitVariableDeclarationList(this):t.visitChildren(this)}},Ht=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_identifierList}enterRule(t){t.enterIdentifierList&&t.enterIdentifierList(this)}exitRule(t){t.exitIdentifierList&&t.exitIdentifierList(this)}accept(t){return t.visitIdentifierList?t.visitIdentifierList(this):t.visitChildren(this)}},$t=class extends _{constructor(t,e,r){super(e,r),this.parser=t}Int(){return this.getToken(C.Int,0)}Uint(){return this.getToken(C.Uint,0)}Byte(){return this.getToken(C.Byte,0)}Fixed(){return this.getToken(C.Fixed,0)}Ufixed(){return this.getToken(C.Ufixed,0)}get ruleIndex(){return C.RULE_elementaryTypeName}enterRule(t){t.enterElementaryTypeName&&t.enterElementaryTypeName(this)}exitRule(t){t.exitElementaryTypeName&&t.exitElementaryTypeName(this)}accept(t){return t.visitElementaryTypeName?t.visitElementaryTypeName(this):t.visitChildren(this)}},Gt=class t extends _{constructor(t,e,r){super(e,r),this.parser=t}typeName(){return this.getTypedRuleContext(yt,0)}expression_list(){return this.getTypedRuleContexts(t)}expression(e){return this.getTypedRuleContext(t,e)}primaryExpression(){return this.getTypedRuleContext(zt,0)}identifier(){return this.getTypedRuleContext(ve,0)}nameValueList(){return this.getTypedRuleContext(Xt,0)}functionCallArguments(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.RULE_expression}enterRule(t){t.enterExpression&&t.enterExpression(this)}exitRule(t){t.exitExpression&&t.exitExpression(this)}accept(t){return t.visitExpression?t.visitExpression(this):t.visitChildren(this)}},zt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(xe,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}identifier(){return this.getTypedRuleContext(ve,0)}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(we,0)}typeName(){return this.getTypedRuleContext(yt,0)}get ruleIndex(){return C.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}accept(t){return t.visitPrimaryExpression?t.visitPrimaryExpression(this):t.visitChildren(this)}},Wt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}get ruleIndex(){return C.RULE_expressionList}enterRule(t){t.enterExpressionList&&t.enterExpressionList(this)}exitRule(t){t.exitExpressionList&&t.exitExpressionList(this)}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},Xt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}nameValue_list(){return this.getTypedRuleContexts(Qt)}nameValue(t){return this.getTypedRuleContext(Qt,t)}get ruleIndex(){return C.RULE_nameValueList}enterRule(t){t.enterNameValueList&&t.enterNameValueList(this)}exitRule(t){t.exitNameValueList&&t.exitNameValueList(this)}accept(t){return t.visitNameValueList?t.visitNameValueList(this):t.visitChildren(this)}},Qt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return C.RULE_nameValue}enterRule(t){t.enterNameValue&&t.enterNameValue(this)}exitRule(t){t.exitNameValue&&t.exitNameValue(this)}accept(t){return t.visitNameValue?t.visitNameValue(this):t.visitChildren(this)}},Jt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}nameValueList(){return this.getTypedRuleContext(Xt,0)}expressionList(){return this.getTypedRuleContext(Wt,0)}get ruleIndex(){return C.RULE_functionCallArguments}enterRule(t){t.enterFunctionCallArguments&&t.enterFunctionCallArguments(this)}exitRule(t){t.exitFunctionCallArguments&&t.exitFunctionCallArguments(this)}accept(t){return t.visitFunctionCallArguments?t.visitFunctionCallArguments(this):t.visitChildren(this)}},Zt=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}functionCallArguments(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return C.RULE_functionCall}enterRule(t){t.enterFunctionCall&&t.enterFunctionCall(this)}exitRule(t){t.exitFunctionCall&&t.exitFunctionCall(this)}accept(t){return t.visitFunctionCall?t.visitFunctionCall(this):t.visitChildren(this)}},te=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(ee)}assemblyItem(t){return this.getTypedRuleContext(ee,t)}get ruleIndex(){return C.RULE_assemblyBlock}enterRule(t){t.enterAssemblyBlock&&t.enterAssemblyBlock(this)}exitRule(t){t.exitAssemblyBlock&&t.exitAssemblyBlock(this)}accept(t){return t.visitAssemblyBlock?t.visitAssemblyBlock(this):t.visitChildren(this)}},ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(ne,0)}assemblyAssignment(){return this.getTypedRuleContext(ae,0)}assemblyStackAssignment(){return this.getTypedRuleContext(le,0)}labelDefinition(){return this.getTypedRuleContext(he,0)}assemblySwitch(){return this.getTypedRuleContext(ue,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(pe,0)}assemblyFor(){return this.getTypedRuleContext(ye,0)}assemblyIf(){return this.getTypedRuleContext(fe,0)}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(xe,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}get ruleIndex(){return C.RULE_assemblyItem}enterRule(t){t.enterAssemblyItem&&t.enterAssemblyItem(this)}exitRule(t){t.exitAssemblyItem&&t.exitAssemblyItem(this)}accept(t){return t.visitAssemblyItem?t.visitAssemblyItem(this):t.visitChildren(this)}},re=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyCall(){return this.getTypedRuleContext(ie,0)}assemblyLiteral(){return this.getTypedRuleContext(ge,0)}assemblyMember(){return this.getTypedRuleContext(se,0)}get ruleIndex(){return C.RULE_assemblyExpression}enterRule(t){t.enterAssemblyExpression&&t.enterAssemblyExpression(this)}exitRule(t){t.exitAssemblyExpression&&t.exitAssemblyExpression(this)}accept(t){return t.visitAssemblyExpression?t.visitAssemblyExpression(this):t.visitChildren(this)}},se=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_assemblyMember}enterRule(t){t.enterAssemblyMember&&t.enterAssemblyMember(this)}exitRule(t){t.exitAssemblyMember&&t.exitAssemblyMember(this)}accept(t){return t.visitAssemblyMember?t.visitAssemblyMember(this):t.visitChildren(this)}},ie=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyExpression_list(){return this.getTypedRuleContexts(re)}assemblyExpression(t){return this.getTypedRuleContext(re,t)}get ruleIndex(){return C.RULE_assemblyCall}enterRule(t){t.enterAssemblyCall&&t.enterAssemblyCall(this)}exitRule(t){t.exitAssemblyCall&&t.exitAssemblyCall(this)}accept(t){return t.visitAssemblyCall?t.visitAssemblyCall(this):t.visitChildren(this)}},ne=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(oe,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.RULE_assemblyLocalDefinition}enterRule(t){t.enterAssemblyLocalDefinition&&t.enterAssemblyLocalDefinition(this)}exitRule(t){t.exitAssemblyLocalDefinition&&t.exitAssemblyLocalDefinition(this)}accept(t){return t.visitAssemblyLocalDefinition?t.visitAssemblyLocalDefinition(this):t.visitChildren(this)}},ae=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(oe,0)}assemblyExpression(){return this.getTypedRuleContext(re,0)}get ruleIndex(){return C.RULE_assemblyAssignment}enterRule(t){t.enterAssemblyAssignment&&t.enterAssemblyAssignment(this)}exitRule(t){t.exitAssemblyAssignment&&t.exitAssemblyAssignment(this)}accept(t){return t.visitAssemblyAssignment?t.visitAssemblyAssignment(this):t.visitChildren(this)}},oe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyMember(){return this.getTypedRuleContext(se,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.RULE_assemblyIdentifierOrList}enterRule(t){t.enterAssemblyIdentifierOrList&&t.enterAssemblyIdentifierOrList(this)}exitRule(t){t.exitAssemblyIdentifierOrList&&t.exitAssemblyIdentifierOrList(this)}accept(t){return t.visitAssemblyIdentifierOrList?t.visitAssemblyIdentifierOrList(this):t.visitChildren(this)}},ce=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ve)}identifier(t){return this.getTypedRuleContext(ve,t)}get ruleIndex(){return C.RULE_assemblyIdentifierList}enterRule(t){t.enterAssemblyIdentifierList&&t.enterAssemblyIdentifierList(this)}exitRule(t){t.exitAssemblyIdentifierList&&t.exitAssemblyIdentifierList(this)}accept(t){return t.visitAssemblyIdentifierList?t.visitAssemblyIdentifierList(this):t.visitChildren(this)}},le=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_assemblyStackAssignment}enterRule(t){t.enterAssemblyStackAssignment&&t.enterAssemblyStackAssignment(this)}exitRule(t){t.exitAssemblyStackAssignment&&t.exitAssemblyStackAssignment(this)}accept(t){return t.visitAssemblyStackAssignment?t.visitAssemblyStackAssignment(this):t.visitChildren(this)}},he=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_labelDefinition}enterRule(t){t.enterLabelDefinition&&t.enterLabelDefinition(this)}exitRule(t){t.exitLabelDefinition&&t.exitLabelDefinition(this)}accept(t){return t.visitLabelDefinition?t.visitLabelDefinition(this):t.visitChildren(this)}},ue=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyCase_list(){return this.getTypedRuleContexts(de)}assemblyCase(t){return this.getTypedRuleContext(de,t)}get ruleIndex(){return C.RULE_assemblySwitch}enterRule(t){t.enterAssemblySwitch&&t.enterAssemblySwitch(this)}exitRule(t){t.exitAssemblySwitch&&t.exitAssemblySwitch(this)}accept(t){return t.visitAssemblySwitch?t.visitAssemblySwitch(this):t.visitChildren(this)}},de=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(ge,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return C.RULE_assemblyCase}enterRule(t){t.enterAssemblyCase&&t.enterAssemblyCase(this)}exitRule(t){t.exitAssemblyCase&&t.exitAssemblyCase(this)}accept(t){return t.visitAssemblyCase?t.visitAssemblyCase(this):t.visitChildren(this)}},pe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}identifier(){return this.getTypedRuleContext(ve,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(me,0)}get ruleIndex(){return C.RULE_assemblyFunctionDefinition}enterRule(t){t.enterAssemblyFunctionDefinition&&t.enterAssemblyFunctionDefinition(this)}exitRule(t){t.exitAssemblyFunctionDefinition&&t.exitAssemblyFunctionDefinition(this)}accept(t){return t.visitAssemblyFunctionDefinition?t.visitAssemblyFunctionDefinition(this):t.visitChildren(this)}},me=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.RULE_assemblyFunctionReturns}enterRule(t){t.enterAssemblyFunctionReturns&&t.enterAssemblyFunctionReturns(this)}exitRule(t){t.exitAssemblyFunctionReturns&&t.exitAssemblyFunctionReturns(this)}accept(t){return t.visitAssemblyFunctionReturns?t.visitAssemblyFunctionReturns(this):t.visitChildren(this)}},ye=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(re)}assemblyExpression(t){return this.getTypedRuleContext(re,t)}assemblyBlock_list(){return this.getTypedRuleContexts(te)}assemblyBlock(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return C.RULE_assemblyFor}enterRule(t){t.enterAssemblyFor&&t.enterAssemblyFor(this)}exitRule(t){t.exitAssemblyFor&&t.exitAssemblyFor(this)}accept(t){return t.visitAssemblyFor?t.visitAssemblyFor(this):t.visitChildren(this)}},fe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(re,0)}assemblyBlock(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return C.RULE_assemblyIf}enterRule(t){t.enterAssemblyIf&&t.enterAssemblyIf(this)}exitRule(t){t.exitAssemblyIf&&t.exitAssemblyIf(this)}accept(t){return t.visitAssemblyIf?t.visitAssemblyIf(this):t.visitChildren(this)}},ge=class extends _{constructor(t,e,r){super(e,r),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(be,0)}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}get ruleIndex(){return C.RULE_assemblyLiteral}enterRule(t){t.enterAssemblyLiteral&&t.enterAssemblyLiteral(this)}exitRule(t){t.exitAssemblyLiteral&&t.exitAssemblyLiteral(this)}accept(t){return t.visitAssemblyLiteral?t.visitAssemblyLiteral(this):t.visitChildren(this)}},we=class extends _{constructor(t,e,r){super(e,r),this.parser=t}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}get ruleIndex(){return C.RULE_tupleExpression}enterRule(t){t.enterTupleExpression&&t.enterTupleExpression(this)}exitRule(t){t.exitTupleExpression&&t.exitTupleExpression(this)}accept(t){return t.visitTupleExpression?t.visitTupleExpression(this):t.visitChildren(this)}},xe=class extends _{constructor(t,e,r){super(e,r),this.parser=t}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}NumberUnit(){return this.getToken(C.NumberUnit,0)}get ruleIndex(){return C.RULE_numberLiteral}enterRule(t){t.enterNumberLiteral&&t.enterNumberLiteral(this)}exitRule(t){t.exitNumberLiteral&&t.exitNumberLiteral(this)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},ve=class extends _{constructor(t,e,r){super(e,r),this.parser=t}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}Identifier(){return this.getToken(C.Identifier,0)}get ruleIndex(){return C.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},be=class extends _{constructor(t,e,r){super(e,r),this.parser=t}HexLiteralFragment_list(){return this.getTokens(C.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(C.HexLiteralFragment,t)}get ruleIndex(){return C.RULE_hexLiteral}enterRule(t){t.enterHexLiteral&&t.enterHexLiteral(this)}exitRule(t){t.exitHexLiteral&&t.exitHexLiteral(this)}accept(t){return t.visitHexLiteral?t.visitHexLiteral(this):t.visitChildren(this)}},_e=class extends _{constructor(t,e,r){super(e,r),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(ft)}userDefinedTypeName(t){return this.getTypedRuleContext(ft,t)}get ruleIndex(){return C.RULE_overrideSpecifier}enterRule(t){t.enterOverrideSpecifier&&t.enterOverrideSpecifier(this)}exitRule(t){t.exitOverrideSpecifier&&t.exitOverrideSpecifier(this)}accept(t){return t.visitOverrideSpecifier?t.visitOverrideSpecifier(this):t.visitChildren(this)}},Ee=class extends _{constructor(t,e,r){super(e,r),this.parser=t}StringLiteralFragment_list(){return this.getTokens(C.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(C.StringLiteralFragment,t)}get ruleIndex(){return C.RULE_stringLiteral}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}},Te=["SourceUnit","PragmaDirective","ImportDirective","ContractDefinition","InheritanceSpecifier","StateVariableDeclaration","UsingForDeclaration","StructDefinition","ModifierDefinition","ModifierInvocation","FunctionDefinition","EventDefinition","CustomErrorDefinition","RevertStatement","EnumValue","EnumDefinition","VariableDeclaration","UserDefinedTypeName","Mapping","ArrayTypeName","FunctionTypeName","Block","ExpressionStatement","IfStatement","WhileStatement","ForStatement","InlineAssemblyStatement","DoWhileStatement","ContinueStatement","Break","Continue","BreakStatement","ReturnStatement","EmitStatement","ThrowStatement","VariableDeclarationStatement","ElementaryTypeName","FunctionCall","AssemblyBlock","AssemblyCall","AssemblyLocalDefinition","AssemblyAssignment","AssemblyStackAssignment","LabelDefinition","AssemblySwitch","AssemblyCase","AssemblyFunctionDefinition","AssemblyFor","AssemblyIf","TupleExpression","NameValueExpression","BooleanLiteral","NumberLiteral","Identifier","BinaryOperation","UnaryOperation","NewExpression","Conditional","StringLiteral","HexLiteral","HexNumber","DecimalNumber","MemberAccess","IndexAccess","IndexRangeAccess","NameValueList","UncheckedStatement","TryStatement","CatchClause","FileLevelConstant","AssemblyMemberAccess","TypeDefinition"],Se=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],ke=["-","+","++","--","~","after","delete","!"],Re=class extends x{constructor(t){super(),this.options=t,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(t){const e={type:"SourceUnit",children:(t.children??[]).slice(0,-1).map(t=>this.visit(t))},r=this._addMeta(e,t);return this.result=r,r}visitContractPart(t){return this.visit(t.getChild(0))}visitContractDefinition(t){const e=this._toText(t.identifier()),r=this._toText(t.getChild(0));this._currentContract=e;const s=t.customStorageLayout_list();if(s.length>1)throw new Error("Only one custom storage layout is allowed per contract");const i={type:"ContractDefinition",name:e,baseContracts:t.inheritanceSpecifier_list().map(t=>this.visitInheritanceSpecifier(t)),subNodes:t.contractPart_list().map(t=>this.visit(t)),kind:r};return 1===s.length&&(i.storageLayout=this.visitExpression(s[0].expression())),this._addMeta(i,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),s=this._toText(r);let i=null;const n=t.expression();n&&(i=this.visitExpression(n));let a="default";t.InternalKeyword_list().length>0?a="internal":t.PublicKeyword_list().length>0?a="public":t.PrivateKeyword_list().length>0&&(a="private");let o,c=!1;t.ConstantKeyword_list().length>0&&(c=!0);const l=t.overrideSpecifier_list();o=0===l.length?null:l[0].userDefinedTypeName_list().map(t=>this.visitUserDefinedTypeName(t));let h=!1;t.ImmutableKeyword_list().length>0&&(h=!0);let u=!1;t.TransientKeyword_list().length>0&&(u=!0);const d={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,isTransient:u,override:o,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(d,t)],initialValue:i};return this._addMeta(p,t)}visitVariableDeclaration(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));const s=t.identifier(),i={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(s),identifier:this.visitIdentifier(s),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,t)}visitVariableDeclarationStatement(t){let e=[];const r=t.variableDeclaration(),s=t.identifierList(),i=t.variableDeclarationList();r?e=[this.visitVariableDeclaration(r)]:s?e=this.buildIdentifierList(s):i&&(e=this.buildVariableDeclarationList(i));let n=null;const a=t.expression();a&&(n=this.visitExpression(a));const o={type:"VariableDeclarationStatement",variables:e,initialValue:n};return this._addMeta(o,t)}visitStatement(t){return this.visit(t.getChild(0))}visitSimpleStatement(t){return this.visit(t.getChild(0))}visitEventDefinition(t){const e=t.eventParameterList().eventParameter_list().map(t=>{const e=this.visitTypeName(t.typeName());let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"VariableDeclaration",typeName:e,name:r,identifier:s?this.visitIdentifier(s):null,isStateVar:!1,isIndexed:Boolean(t.IndexedKeyword()),storageLocation:null,expression:null};return this._addMeta(i,t)}),r={type:"EventDefinition",name:this._toText(t.identifier()),parameters:e,isAnonymous:Boolean(t.AnonymousKeyword())};return this._addMeta(r,t)}visitBlock(t){const e={type:"Block",statements:t.statement_list().map(t=>this.visitStatement(t))};return this._addMeta(e,t)}visitParameter(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));let s=null;const i=t.identifier();i&&(s=this._toText(i));const n={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:s,identifier:i?this.visitIdentifier(i):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,t)}visitFunctionDefinition(t){let e=!1,r=!1,s=!1,i=!1,n=null,a=[],o=null,c=null;const l=t.block();l&&(c=this.visitBlock(l));const h=t.modifierList().modifierInvocation_list().map(t=>this.visitModifierInvocation(t));let u=null;t.modifierList().stateMutability_list().length>0&&(u=this._stateMutabilityToText(t.modifierList().stateMutability(0)));const d=t.returnParameters();let p,m="default";switch(t.modifierList().ExternalKeyword_list().length>0?m="external":t.modifierList().InternalKeyword_list().length>0?m="internal":t.modifierList().PublicKeyword_list().length>0?m="public":t.modifierList().PrivateKeyword_list().length>0&&(m="private"),this._toText(t.functionDescriptor().getChild(0))){case"constructor":a=t.parameterList().parameter_list().map(t=>this.visit(t)),e=!0;break;case"fallback":a=t.parameterList().parameter_list().map(t=>this.visit(t)),o=d?this.visitReturnParameters(d):null,r=!0;break;case"receive":s=!0;break;case"function":{const s=t.functionDescriptor().identifier();n=s?this._toText(s):"",a=t.parameterList().parameter_list().map(t=>this.visit(t)),o=d?this.visitReturnParameters(d):null,e=n===this._currentContract,r=""===n;break}}t.modifierList().VirtualKeyword_list().length>0&&(i=!0);const y=t.modifierList().overrideSpecifier_list();p=0===y.length?null:y[0].userDefinedTypeName_list().map(t=>this.visitUserDefinedTypeName(t));const f={type:"FunctionDefinition",name:n,parameters:a,returnParameters:o,body:c,visibility:m,modifiers:h,override:p,isConstructor:e,isReceiveEther:s,isFallback:r,isVirtual:i,stateMutability:u};return this._addMeta(f,t)}visitEnumDefinition(t){const e={type:"EnumDefinition",name:this._toText(t.identifier()),members:t.enumValue_list().map(t=>this.visitEnumValue(t))};return this._addMeta(e,t)}visitEnumValue(t){const e={type:"EnumValue",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitElementaryTypeName(t){const e={type:"ElementaryTypeName",name:this._toText(t),stateMutability:null};return this._addMeta(e,t)}visitIdentifier(t){const e={type:"Identifier",name:this._toText(t)};return this._addMeta(e,t)}visitTypeName(t){if(t.children&&t.children.length>2){let e=null;if(4===t.children.length){const r=t.expression();if(null==r)throw new Error("Assertion error: a typeName with 4 children should have an expression");e=this.visitExpression(r)}const r={type:"ArrayTypeName",baseTypeName:this.visitTypeName(t.typeName()),length:e};return this._addMeta(r,t)}if(2===t.children?.length){const e={type:"ElementaryTypeName",name:this._toText(t.getChild(0)),stateMutability:this._toText(t.getChild(1))};return this._addMeta(e,t)}if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());if(t.mapping())return this.visitMapping(t.mapping());if(t.functionTypeName())return this.visitFunctionTypeName(t.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(t){const e={type:"UserDefinedTypeName",namePath:this._toText(t)};return this._addMeta(e,t)}visitUsingForDeclaration(t){let e=null;const r=t.typeName();r&&(e=this.visitTypeName(r));const s=Boolean(t.GlobalKeyword()),i=t.usingForObject(),n=i.userDefinedTypeName();let a;if(n)a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:this._toText(n),functions:[],operators:[]};else{const t=i.usingForObjectDirective_list(),r=[],n=[];for(const e of t){r.push(this._toText(e.userDefinedTypeName()));const t=e.userDefinableOperators();t?n.push(this._toText(t)):n.push(null)}a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:null,functions:r,operators:n}}return this._addMeta(a,t)}visitPragmaDirective(t){const e=t.pragmaValue().version();let r=this._toText(t.pragmaValue());e?.children&&(r=e.children.map(t=>this._toText(t)).join(" "));const s={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:r};return this._addMeta(s,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),r=e?e.expression_list().map(t=>this.visitExpression(t)):[],s={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:r};return this._addMeta(s,t)}visitModifierInvocation(t){const e=t.expressionList();let r;r=null!=e?e.expression_list().map(t=>this.visit(t)):t.children&&t.children.length>1?[]:null;const s={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:r};return this._addMeta(s,t)}visitFunctionTypeName(t){const e=t.functionTypeParameterList(0).functionTypeParameter_list().map(t=>this.visitFunctionTypeParameter(t));let r=[];t.functionTypeParameterList_list().length>1&&(r=t.functionTypeParameterList(1).functionTypeParameter_list().map(t=>this.visitFunctionTypeParameter(t)));let s="default";t.InternalKeyword_list().length>0?s="internal":t.ExternalKeyword_list().length>0&&(s="external");let i=null;t.stateMutability_list().length>0&&(i=this._toText(t.stateMutability(0)));const n={type:"FunctionTypeName",parameterTypes:e,returnTypes:r,visibility:s,stateMutability:i};return this._addMeta(n,t)}visitFunctionTypeParameter(t){let e=null;t.storageLocation()&&(e=this._toText(t.storageLocation()));const r={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:null,identifier:null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,t)}visitThrowStatement(t){return this._addMeta({type:"ThrowStatement"},t)}visitReturnStatement(t){let e=null;const r=t.expression();r&&(e=this.visitExpression(r));const s={type:"ReturnStatement",expression:e};return this._addMeta(s,t)}visitEmitStatement(t){const e={type:"EmitStatement",eventCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitCustomErrorDefinition(t){const e={type:"CustomErrorDefinition",name:this._toText(t.identifier()),parameters:this.visitParameterList(t.parameterList())};return this._addMeta(e,t)}visitTypeDefinition(t){const e={type:"TypeDefinition",name:this._toText(t.identifier()),definition:this.visitElementaryTypeName(t.elementaryTypeName())};return this._addMeta(e,t)}visitRevertStatement(t){const e={type:"RevertStatement",revertCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitFunctionCall(t){let e=[];const r=[],s=[],i=t.functionCallArguments(),n=i.expressionList(),a=i.nameValueList();if(n)e=n.expression_list().map(t=>this.visitExpression(t));else if(a)for(const t of a.nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const o={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:r,identifiers:s};return this._addMeta(o,t)}visitStructDefinition(t){const e={type:"StructDefinition",name:this._toText(t.identifier()),members:t.variableDeclaration_list().map(t=>this.visitVariableDeclaration(t))};return this._addMeta(e,t)}visitWhileStatement(t){const e={type:"WhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitDoWhileStatement(t){const e={type:"DoWhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitIfStatement(t){const e=this.visitStatement(t.statement(0));let r=null;t.statement_list().length>1&&(r=this.visitStatement(t.statement(1)));const s={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:r};return this._addMeta(s,t)}visitTryStatement(t){let e=null;const r=t.returnParameters();r&&(e=this.visitReturnParameters(r));const s=t.catchClause_list().map(t=>this.visitCatchClause(t)),i={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:s};return this._addMeta(i,t)}visitCatchClause(t){let e=null;if(t.parameterList()&&(e=this.visitParameterList(t.parameterList())),t.identifier()&&"Error"!==this._toText(t.identifier())&&"Panic"!==this._toText(t.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let r=null;const s=t.identifier();s&&(r=this._toText(s));const i={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(i,t)}visitExpressionStatement(t){if(!t)return null;const e={type:"ExpressionStatement",expression:this.visitExpression(t.expression())};return this._addMeta(e,t)}visitNumberLiteral(t){const e=this._toText(t.getChild(0));let r=null;2===t.children?.length&&(r=this._toText(t.getChild(1)));const s={type:"NumberLiteral",number:e,subdenomination:r};return this._addMeta(s,t)}visitMappingKey(t){if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(t){const e=t.mappingKeyName(),r=t.mappingValueName(),s={type:"Mapping",keyType:this.visitMappingKey(t.mappingKey()),keyName:e?this.visitIdentifier(e.identifier()):null,valueType:this.visitTypeName(t.typeName()),valueName:r?this.visitIdentifier(r.identifier()):null};return this._addMeta(s,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let r,s=!1;t.VirtualKeyword_list().length>0&&(s=!0);const i=t.overrideSpecifier_list();r=0===i.length?null:i[0].userDefinedTypeName_list().map(t=>this.visitUserDefinedTypeName(t));let n=null;const a=t.block();a&&(n=this.visitBlock(a));const o={type:"ModifierDefinition",name:this._toText(t.identifier()),parameters:e,body:n,isVirtual:s,override:r};return this._addMeta(o,t)}visitUncheckedStatement(t){const e={type:"UncheckedStatement",block:this.visitBlock(t.block())};return this._addMeta(e,t)}visitExpression(t){let e;switch(t.children.length){case 1:{const e=t.primaryExpression();if(null==e)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(e)}case 2:if(e=this._toText(t.getChild(0)),"new"===e){const e={type:"NewExpression",typeName:this.visitTypeName(t.typeName())};return this._addMeta(e,t)}if(ke.includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!0};return this._addMeta(r,t)}if(e=this._toText(t.getChild(1)),["++","--"].includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!1};return this._addMeta(r,t)}break;case 3:if("("===this._toText(t.getChild(0))&&")"===this._toText(t.getChild(2))){const e={type:"TupleExpression",components:[this.visitExpression(t.expression(0))],isArray:!1};return this._addMeta(e,t)}if(e=this._toText(t.getChild(1)),"."===e){const e={type:"MemberAccess",expression:this.visitExpression(t.expression(0)),memberName:this._toText(t.identifier())};return this._addMeta(e,t)}if(function(t){return Se.includes(t)}(e)){const r={type:"BinaryOperation",operator:e,left:this.visitExpression(t.expression(0)),right:this.visitExpression(t.expression(1))};return this._addMeta(r,t)}break;case 4:if("("===this._toText(t.getChild(1))&&")"===this._toText(t.getChild(3))){let e=[];const r=[],s=[],i=t.functionCallArguments();if(i.expressionList())e=i.expressionList().expression_list().map(t=>this.visitExpression(t));else if(i.nameValueList())for(const t of i.nameValueList().nameValue_list())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const n={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:r,identifiers:s};return this._addMeta(n,t)}if("["===this._toText(t.getChild(1))&&"]"===this._toText(t.getChild(3))){if(":"===t.getChild(2).getText()){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0))};return this._addMeta(e,t)}const e={type:"IndexAccess",base:this.visitExpression(t.expression(0)),index:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("{"===this._toText(t.getChild(1))&&"}"===this._toText(t.getChild(3))){const e={type:"NameValueExpression",expression:this.visitExpression(t.expression(0)),arguments:this.visitNameValueList(t.nameValueList())};return this._addMeta(e,t)}break;case 5:if("?"===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))){const e={type:"Conditional",condition:this.visitExpression(t.expression(0)),trueExpression:this.visitExpression(t.expression(1)),falseExpression:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(2))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexEnd:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}break;case 6:if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(5))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1)),indexEnd:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}}throw new Error("Unrecognized expression")}visitNameValueList(t){const e=[],r=[],s=[];for(const i of t.nameValue_list())e.push(this._toText(i.identifier())),r.push(this.visitIdentifier(i.identifier())),s.push(this.visitExpression(i.expression()));const i={type:"NameValueList",names:e,identifiers:r,arguments:s};return this._addMeta(i,t)}visitFileLevelConstant(t){const e={type:"FileLevelConstant",typeName:this.visitTypeName(t.typeName()),name:this._toText(t.identifier()),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(e,t)}visitForStatement(t){let e=this.visitExpressionStatement(t.expressionStatement());e&&(e=e.expression);const r={type:"ForStatement",initExpression:t.simpleStatement()?this.visitSimpleStatement(t.simpleStatement()):null,conditionExpression:e,loopExpression:{type:"ExpressionStatement",expression:t.expression()?this.visitExpression(t.expression()):null},body:this.visitStatement(t.statement())};return this._addMeta(r,t)}visitHexLiteral(t){const e=t.HexLiteralFragment_list().map(t=>this._toText(t)).map(t=>t.substring(4,t.length-1)),r={type:"HexLiteral",value:e.join(""),parts:e};return this._addMeta(r,t)}visitPrimaryExpression(t){if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){const e=t.stringLiteral().StringLiteralFragment_list().map(t=>{let e=this._toText(t);const r="unicode"===e.slice(0,7);r&&(e=e.slice(7));const s="'"===e[0],i=e.substring(1,e.length-1);return{value:s?i.replace(new RegExp("\\\\'","g"),"'"):i.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}}),r=e.map(t=>t.value),s={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:e.map(t=>t.isUnicode)};return this._addMeta(s,t)}if(t.numberLiteral())return this.visitNumberLiteral(t.numberLiteral());if(t.TypeKeyword()){const e={type:"Identifier",name:"type"};return this._addMeta(e,t)}return t.typeName()?this.visitTypeName(t.typeName()):this.visit(t.getChild(0))}visitTupleExpression(t){const e=t.children.slice(1,-1),r={type:"TupleExpression",components:this._mapCommasToNulls(e).map(t=>null===t?null:this.visit(t)),isArray:"["===this._toText(t.getChild(0))};return this._addMeta(r,t)}buildIdentifierList(t){const e=t.children.slice(1,-1),r=t.identifier_list();let s=0;return this._mapCommasToNulls(e).map(t=>{if(null===t)return null;const e=r[s];s++;const i={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(i,e)})}buildVariableDeclarationList(t){const e=t.variableDeclaration_list();let r=0;return this._mapCommasToNulls(t.children??[]).map(t=>{if(!t)return null;const s=e[r];r++;let i=null;s.storageLocation()&&(i=this._toText(s.storageLocation()));const n=s.identifier(),a={type:"VariableDeclaration",name:this._toText(n),identifier:this.visitIdentifier(n),typeName:this.visitTypeName(s.typeName()),storageLocation:i,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,s)})}visitImportDirective(t){const e=this._toText(t.importPath());let r=null,s=null,i=null,n=null;if(t.importDeclaration_list().length>0)i=t.importDeclaration_list().map(t=>{const e=this._toText(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this._toText(t.identifier(1))),[e,r]}),n=t.importDeclaration_list().map(t=>{const e=this.visitIdentifier(t.identifier(0));let r=null;return t.identifier_list().length>1&&(r=this.visitIdentifier(t.identifier(1))),[e,r]});else{const e=t.identifier_list();if(0===e.length);else if(1===e.length){const e=t.identifier(0);r=this._toText(e),s=this.visitIdentifier(e)}else{if(2!==e.length)throw new Error("Assertion error: an import should have one or two identifiers");{const e=t.identifier(1);r=this._toText(e),s=this.visitIdentifier(e)}}}const a=e.substring(1,e.length-1),o={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]},c={type:"ImportDirective",path:a,pathLiteral:this._addMeta(o,t.importPath()),unitAlias:r,unitAliasIdentifier:s,symbolAliases:i,symbolAliasesIdentifiers:n};return this._addMeta(c,t)}buildEventParameterList(t){return t.eventParameter_list().map(t=>{const e=this.visit(t.typeName()),r=t.identifier();return{type:"VariableDeclaration",typeName:e,name:r?this._toText(r):null,isStateVar:!1,isIndexed:!!t.IndexedKeyword()}})}visitReturnParameters(t){return this.visitParameterList(t.parameterList())}visitParameterList(t){return t.parameter_list().map(t=>this.visitParameter(t))}visitInlineAssemblyStatement(t){let e=null;t.StringLiteralFragment()&&(e=this._toText(t.StringLiteralFragment()),e=e.substring(1,e.length-1));const r=[],s=t.inlineAssemblyStatementFlag();if(s){const t=this._toText(s.stringLiteral());r.push(t.slice(1,t.length-1))}const i={type:"InlineAssemblyStatement",language:e,flags:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(i,t)}visitAssemblyBlock(t){const e={type:"AssemblyBlock",operations:t.assemblyItem_list().map(t=>this.visitAssemblyItem(t))};return this._addMeta(e,t)}visitAssemblyItem(t){let e;if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){e=this._toText(t.stringLiteral());const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BreakKeyword()){const e={type:"Break"};return this._addMeta(e,t)}if(t.ContinueKeyword()){const e={type:"Continue"};return this._addMeta(e,t)}return this.visit(t.getChild(0))}visitAssemblyExpression(t){return this.visit(t.getChild(0))}visitAssemblyCall(t){const e={type:"AssemblyCall",functionName:this._toText(t.getChild(0)),arguments:t.assemblyExpression_list().map(t=>this.visitAssemblyExpression(t))};return this._addMeta(e,t)}visitAssemblyLiteral(t){let e;if(t.stringLiteral()){e=this._toText(t);const r=e.substring(1,e.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.DecimalNumber()){const e={type:"DecimalNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.HexNumber()){const e={type:"HexNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(t){const e={type:"AssemblySwitch",expression:this.visitAssemblyExpression(t.assemblyExpression()),cases:t.assemblyCase_list().map(t=>this.visitAssemblyCase(t))};return this._addMeta(e,t)}visitAssemblyCase(t){let e=null;"case"===this._toText(t.getChild(0))&&(e=this.visitAssemblyLiteral(t.assemblyLiteral()));const r={type:"AssemblyCase",block:this.visitAssemblyBlock(t.assemblyBlock()),value:e,default:null===e};return this._addMeta(r,t)}visitAssemblyLocalDefinition(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map(t=>this.visitIdentifier(t));let s=null;t.assemblyExpression()&&(s=this.visitAssemblyExpression(t.assemblyExpression()));const i={type:"AssemblyLocalDefinition",names:r,expression:s};return this._addMeta(i,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),r=e?e.identifier_list().map(t=>this.visitIdentifier(t)):[],s=t.assemblyFunctionReturns(),i=s?s.assemblyIdentifierList().identifier_list().map(t=>this.visitIdentifier(t)):[],n={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:r,returnArguments:i,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(n,t)}visitAssemblyAssignment(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map(t=>this.visitIdentifier(t));const s={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(s,t)}visitAssemblyMember(t){const[e,r]=t.identifier_list(),s={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(r)};return this._addMeta(s,t)}visitLabelDefinition(t){const e={type:"LabelDefinition",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitAssemblyStackAssignment(t){const e={type:"AssemblyStackAssignment",name:this._toText(t.identifier()),expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(e,t)}visitAssemblyFor(t){const e={type:"AssemblyFor",pre:this.visit(t.getChild(1)),condition:this.visit(t.getChild(2)),post:this.visit(t.getChild(3)),body:this.visit(t.getChild(4))};return this._addMeta(e,t)}visitAssemblyIf(t){const e={type:"AssemblyIf",condition:this.visitAssemblyExpression(t.assemblyExpression()),body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(e,t)}visitContinueStatement(t){return this._addMeta({type:"ContinueStatement"},t)}visitBreakStatement(t){return this._addMeta({type:"BreakStatement"},t)}_toText(t){const e=t.getText();if(null==e)throw new Error("Assertion error: text should never be undefined");return e}_stateMutabilityToText(t){if(t.PureKeyword())return"pure";if(t.ConstantKeyword())return"constant";if(t.PayableKeyword())return"payable";if(t.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(t){return{start:{line:t.start.line,column:t.start.column},end:{line:t.stop?t.stop.line:t.start.line,column:t.stop?t.stop.column:t.start.column}}}_range(t){return[t.start.start,t.stop?.stop??t.start.start]}_addMeta(t,e){const r={type:t.type};return!0===this.options.loc&&(t.loc=this._loc(e)),!0===this.options.range&&(t.range=this._range(e)),{...r,...t}}_mapCommasToNulls(t){if(0===t.length)return[];const e=[];let r=!0;for(const s of t)if(r)","===this._toText(s)?e.push(null):(e.push(s),r=!1);else{if(","!==this._toText(s))throw new Error("expected comma");r=!0}return r&&e.push(null),e}},Ae=class extends m{constructor(){super(),this._errors=[]}syntaxError(t,e,r,s,i){this._errors.push({message:i,line:r,column:s})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},Ce={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"layout",26:"at",27:"error",28:"using",29:"for",30:"|",31:"&",32:"+",33:"-",34:"/",35:"%",36:"==",37:"!=",38:"struct",39:"modifier",40:"function",41:"returns",42:"event",43:"enum",44:"[",45:"]",46:"address",47:".",48:"mapping",49:"=>",50:"memory",51:"storage",52:"calldata",53:"if",54:"else",55:"try",56:"catch",57:"while",58:"unchecked",59:"assembly",60:"do",61:"return",62:"throw",63:"emit",64:"revert",65:"var",66:"bool",67:"string",68:"byte",69:"++",70:"--",71:"new",72:":",73:"delete",74:"!",75:"**",76:"<<",77:">>",78:"&&",79:"?",80:"|=",81:"^=",82:"&=",83:"<<=",84:">>=",85:"+=",86:"-=",87:"*=",88:"/=",89:"%=",90:"let",91:":=",92:"=:",93:"switch",94:"case",95:"default",96:"->",97:"callback",98:"override",99:"Int",100:"Uint",101:"Byte",102:"Fixed",103:"Ufixed",104:"BooleanLiteral",105:"DecimalNumber",106:"HexNumber",107:"NumberUnit",108:"HexLiteralFragment",109:"ReservedKeyword",110:"anonymous",111:"break",112:"constant",113:"transient",114:"immutable",115:"continue",116:"leave",117:"external",118:"indexed",119:"internal",120:"payable",121:"private",122:"public",123:"virtual",124:"pure",125:"type",126:"view",127:"global",128:"constructor",129:"fallback",130:"receive",131:"Identifier",132:"StringLiteralFragment",133:"VersionLiteral",134:"WS",135:"COMMENT",136:"LINE_COMMENT"},Le=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Ie(t){return[t.start,t.stop+1]}function Ke(t){const e=(t.text??"").split(/\r?\n/),r=e.length-1;return{start:{line:t.line,column:t.column},end:{line:t.line+r,column:e[r].length+(0===r?t.column:0)}}}function Ne(t,e){return t.map(t=>{var r;const s={type:"Identifier"===(r=Ce[t.type.toString()])||"from"===r?"Identifier":"TrueLiteral"===r||"FalseLiteral"===r?"Boolean":"VersionLiteral"===r?"Version":"StringLiteral"===r?"String":Le.includes(r)?"Type":"NumberUnit"===r?"Subdenomination":"DecimalNumber"===r?"Numeric":"HexLiteral"===r?"Hex":"ReservedKeyword"===r?"Reserved":/^\W+$/.test(r)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(s.range=Ie(t)),!0===e.loc&&(s.loc=Ke(t)),s})}var Oe=class extends Error{constructor(t){super();const{message:e,line:r,column:s}=t.errors[0];this.message=`${e} (${r}:${s})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function De(t,e={}){const r=new u(t);return Ne(new R(r).getAllTokens(),e)}function Pe(t,e={}){const r=new u(t),s=new R(r),i=new d(s),n=new C(i),a=new Ae;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),c=new Re(e);c.visit(o);const l=c.result;if(null===l)throw new Error("ast should never be null");if(!0===e.tokens&&(l.tokens=Ne(i.tokens,e)),!0===e.comments&&(l.comments=function(t,e,r){return t.filter(t=>t.channel===e).map(t=>{const e=t.text.startsWith("//")?{type:"LineComment",value:t.text.slice(2)}:{type:"BlockComment",value:t.text.slice(2,-2)};return!0===r.range&&(e.range=Ie(t)),!0===r.loc&&(e.loc=Ke(t)),e})}(i.tokens,s.channelNames.indexOf("HIDDEN"),e)),a.hasErrors()){if(!0!==e.tolerant)throw new Oe({errors:a.getErrors()});l.errors=a.getErrors()}return l}function qe(t,e,r){if(Array.isArray(t)&&t.forEach(t=>qe(t,e,r)),!function(t){if("object"!=typeof t||null===t)return!1;const e=t;return!(!Object.prototype.hasOwnProperty.call(e,"type")||"string"!=typeof e.type)&&Te.includes(e.type)}(t))return;let s=!0;if(void 0!==e[t.type]&&(s=e[t.type](t,r)),!1===s)return;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&qe(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}var Me,Fe={ParserError:Oe,parse:Pe,tokenize:De,visit:qe};return Me=i,((i,n,a,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of r(n))s.call(i,a)||void 0===a||t(i,a,{get:()=>n[a],enumerable:!(o=e(n,a))||o.enumerable});return i})(t({},"__esModule",{value:!0}),Me)})();return t},t.exports=e()},3904(t,e,r){const s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(t,e){if(e=n(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===s||t===s)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return c(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(t.value,e).test(this.value):""===t.operator?""===t.value||new u(this.value,e).test(t.semver):!((e=n(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const n=r(8587),{safeRe:a,t:o}=r(9718),c=r(2111),l=r(7272),h=r(3908),u=r(8311)},8311(t,e,r){const s=/\s+/g;class i{constructor(t,e){if(e=a(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().replace(s," "),this.set=this.raw.split("||").map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter(t=>!g(t[0])),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&w(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");const e=this.set[t];for(let t=0;t<e.length;t++)t>0&&(this.formatted+=" "),this.formatted+=e[t].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&y)|(this.options.loose&&f))+":"+t,r=n.get(e);if(r)return r;const s=this.options.loose,i=s?h[u.HYPHENRANGELOOSE]:h[u.HYPHENRANGE];t=t.replace(i,L(this.options.includePrerelease)),c("hyphen replace",t),t=t.replace(h[u.COMPARATORTRIM],d),c("comparator trim",t),t=t.replace(h[u.TILDETRIM],p),c("tilde trim",t),t=t.replace(h[u.CARETTRIM],m),c("caret trim",t);let a=t.split(" ").map(t=>v(t,this.options)).join(" ").split(/\s+/).map(t=>C(t,this.options));s&&(a=a.filter(t=>(c("loose invalid filter",t,this.options),!!t.match(h[u.COMPARATORLOOSE])))),c("range list",a);const l=new Map,w=a.map(t=>new o(t,this.options));for(const t of w){if(g(t))return[t];l.set(t.value,t)}l.size>1&&l.has("")&&l.delete("");const x=[...l.values()];return n.set(e,x),x}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some(r=>x(r,e)&&t.set.some(t=>x(t,e)&&r.every(r=>t.every(t=>r.intersects(t,e)))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(I(this.set[e],t,this.options))return!0;return!1}}t.exports=i;const n=new(r(8794)),a=r(8587),o=r(3904),c=r(7272),l=r(3908),{safeRe:h,t:u,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:m}=r(9718),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:f}=r(6874),g=t=>"<0.0.0-0"===t.value,w=t=>""===t.value,x=(t,e)=>{let r=!0;const s=t.slice();let i=s.pop();for(;r&&s.length;)r=s.every(t=>i.intersects(t,e)),i=s.pop();return r},v=(t,e)=>(t=t.replace(h[u.BUILD],""),c("comp",t,e),t=T(t,e),c("caret",t),t=_(t,e),c("tildes",t),t=k(t,e),c("xrange",t),t=A(t,e),c("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,_=(t,e)=>t.trim().split(/\s+/).map(t=>E(t,e)).join(" "),E=(t,e)=>{const r=e.loose?h[u.TILDELOOSE]:h[u.TILDE];return t.replace(r,(e,r,s,i,n)=>{let a;return c("tilde",t,e,r,s,i,n),b(r)?a="":b(s)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?a=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:n?(c("replaceTilde pr",n),a=`>=${r}.${s}.${i}-${n} <${r}.${+s+1}.0-0`):a=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,c("tilde return",a),a})},T=(t,e)=>t.trim().split(/\s+/).map(t=>S(t,e)).join(" "),S=(t,e)=>{c("caret",t,e);const r=e.loose?h[u.CARETLOOSE]:h[u.CARET],s=e.includePrerelease?"-0":"";return t.replace(r,(e,r,i,n,a)=>{let o;return c("caret",t,e,r,i,n,a),b(r)?o="":b(i)?o=`>=${r}.0.0${s} <${+r+1}.0.0-0`:b(n)?o="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:a?(c("replaceCaret pr",a),o="0"===r?"0"===i?`>=${r}.${i}.${n}-${a} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${a} <${+r+1}.0.0-0`):(c("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${n}${s} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),c("caret return",o),o})},k=(t,e)=>(c("replaceXRanges",t,e),t.split(/\s+/).map(t=>R(t,e)).join(" ")),R=(t,e)=>{t=t.trim();const r=e.loose?h[u.XRANGELOOSE]:h[u.XRANGE];return t.replace(r,(r,s,i,n,a,o)=>{c("xRange",t,r,s,i,n,a,o);const l=b(i),h=l||b(n),u=h||b(a),d=u;return"="===s&&d&&(s=""),o=e.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(h&&(n=0),a=0,">"===s?(s=">=",h?(i=+i+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(o="-0"),r=`${s+i}.${n}.${a}${o}`):h?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${o} <${i}.${+n+1}.0-0`),c("xRange return",r),r})},A=(t,e)=>(c("replaceStars",t,e),t.trim().replace(h[u.STAR],"")),C=(t,e)=>(c("replaceGTE0",t,e),t.trim().replace(h[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),L=t=>(e,r,s,i,n,a,o,c,l,h,u,d)=>`${r=b(s)?"":b(i)?`>=${s}.0.0${t?"-0":""}`:b(n)?`>=${s}.${i}.0${t?"-0":""}`:a?`>=${r}`:`>=${r}${t?"-0":""}`} ${c=b(l)?"":b(h)?`<${+l+1}.0.0-0`:b(u)?`<${l}.${+h+1}.0-0`:d?`<=${l}.${h}.${u}-${d}`:t?`<${l}.${h}.${+u+1}-0`:`<=${c}`}`.trim(),I=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(c(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}},3908(t,e,r){const s=r(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(6874),{safeRe:a,t:o}=r(9718),c=r(8587),{compareIdentifiers:l}=r(1123);class h{constructor(t,e){if(e=c(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);s("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(s("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(s("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(s("build compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return l(r,i)}while(++e)}inc(t,e,r){if(t.startsWith("pre")){if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(e){const t=`-${e}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!t||t[1]!==e)throw new Error(`invalid identifier: ${e}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[t];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let s=[e,t];!1===r&&(s=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=h},7414(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},2111(t,e,r){const s=r(4641),i=r(3999),n=r(5580),a=r(4089),o=r(7059),c=r(5200);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return s(t,r,l);case"!=":return i(t,r,l);case">":return n(t,r,l);case">=":return a(t,r,l);case"<":return o(t,r,l);case"<=":return c(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},6170(t,e,r){const s=r(3908),i=r(144),{safeRe:n,t:a}=r(9718);t.exports=(t,e)=>{if(t instanceof s)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){const s=e.includePrerelease?n[a.COERCERTLFULL]:n[a.COERCERTL];let i;for(;(i=s.exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else r=t.match(e.includePrerelease?n[a.COERCEFULL]:n[a.COERCE]);if(null===r)return null;const o=r[2],c=r[3]||"0",l=r[4]||"0",h=e.includePrerelease&&r[5]?`-${r[5]}`:"",u=e.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${o}.${c}.${l}${h}${u}`,e)}},909(t,e,r){const s=r(3908);t.exports=(t,e,r)=>{const i=new s(t,r),n=new s(e,r);return i.compare(n)||i.compareBuild(n)}},1763(t,e,r){const s=r(560);t.exports=(t,e)=>s(t,e,!0)},560(t,e,r){const s=r(3908);t.exports=(t,e,r)=>new s(t,r).compare(new s(e,r))},1832(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t,null,!0),i=s(e,null,!0),n=r.compare(i);if(0===n)return null;const a=n>0,o=a?r:i,c=a?i:r,l=!!o.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(o))return c.minor&&!c.patch?"minor":"patch"}const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},4641(t,e,r){const s=r(560);t.exports=(t,e,r)=>0===s(t,e,r)},5580(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>0},4089(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)>=0},3007(t,e,r){const s=r(3908);t.exports=(t,e,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(t instanceof s?t.version:t,r).inc(e,i,n).version}catch(t){return null}}},7059(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<0},5200(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(t,e,r)<=0},2938(t,e,r){const s=r(3908);t.exports=(t,e)=>new s(t,e).major},6254(t,e,r){const s=r(3908);t.exports=(t,e)=>new s(t,e).minor},3999(t,e,r){const s=r(560);t.exports=(t,e,r)=>0!==s(t,e,r)},144(t,e,r){const s=r(3908);t.exports=(t,e,r=!1)=>{if(t instanceof s)return t;try{return new s(t,e)}catch(t){if(!r)return null;throw t}}},4493(t,e,r){const s=r(3908);t.exports=(t,e)=>new s(t,e).patch},1729(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r&&r.prerelease.length?r.prerelease:null}},9970(t,e,r){const s=r(560);t.exports=(t,e,r)=>s(e,t,r)},4277(t,e,r){const s=r(909);t.exports=(t,e)=>t.sort((t,r)=>s(r,t,e))},7638(t,e,r){const s=r(8311);t.exports=(t,e,r)=>{try{e=new s(e,r)}catch(t){return!1}return e.test(t)}},6308(t,e,r){const s=r(909);t.exports=(t,e)=>t.sort((t,r)=>s(t,r,e))},6953(t,e,r){const s=r(144);t.exports=(t,e)=>{const r=s(t,e);return r?r.version:null}},9589(t,e,r){const s=r(9718),i=r(6874),n=r(3908),a=r(1123),o=r(144),c=r(6953),l=r(7414),h=r(3007),u=r(1832),d=r(2938),p=r(6254),m=r(4493),y=r(1729),f=r(560),g=r(9970),w=r(1763),x=r(909),v=r(6308),b=r(4277),_=r(5580),E=r(7059),T=r(4641),S=r(3999),k=r(4089),R=r(5200),A=r(2111),C=r(6170),L=r(3904),I=r(8311),K=r(7638),N=r(7631),O=r(9628),D=r(270),P=r(1261),q=r(3874),M=r(7075),F=r(5571),U=r(5342),Y=r(6780),V=r(2525),j=r(5032);t.exports={parse:o,valid:c,clean:l,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:y,compare:f,rcompare:g,compareLoose:w,compareBuild:x,sort:v,rsort:b,gt:_,lt:E,eq:T,neq:S,gte:k,lte:R,cmp:A,coerce:C,Comparator:L,Range:I,satisfies:K,toComparators:N,maxSatisfying:O,minSatisfying:D,minVersion:P,validRange:q,outside:M,gtr:F,ltr:U,intersects:Y,simplifyRange:V,subset:j,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},6874(t){const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(t){const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},1123(t){const e=/^[0-9]+$/,r=(t,r)=>{if("number"==typeof t&&"number"==typeof r)return t===r?0:t<r?-1:1;const s=e.test(t),i=e.test(r);return s&&i&&(t=+t,r=+r),t===r?0:s&&!i?-1:i&&!s?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},8794(t){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(t){const e=this.map.get(t);return void 0===e?void 0:(this.map.delete(t),this.map.set(t,e),e)}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}},8587(t){const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},9718(t,e,r){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(6874),a=r(7272),o=(e=t.exports={}).re=[],c=e.safeRe=[],l=e.src=[],h=e.safeSrc=[],u=e.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",n],[p,i]],y=(t,e,r)=>{const s=(t=>{for(const[e,r]of m)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=d++;a(t,i,e),u[t]=i,l[i]=e,h[i]=s,o[i]=new RegExp(e,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${p}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),y("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("COERCERTLFULL",l[u.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571(t,e,r){const s=r(7075);t.exports=(t,e,r)=>s(t,e,">",r)},6780(t,e,r){const s=r(8311);t.exports=(t,e,r)=>(t=new s(t,r),e=new s(e,r),t.intersects(e,r))},5342(t,e,r){const s=r(7075);t.exports=(t,e,r)=>s(t,e,"<",r)},9628(t,e,r){const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach(t=>{o.test(t)&&(n&&-1!==a.compare(t)||(n=t,a=new s(n,r)))}),n}},270(t,e,r){const s=r(3908),i=r(8311);t.exports=(t,e,r)=>{let n=null,a=null,o=null;try{o=new i(e,r)}catch(t){return null}return t.forEach(t=>{o.test(t)&&(n&&1!==a.compare(t)||(n=t,a=new s(n,r)))}),n}},1261(t,e,r){const s=r(3908),i=r(8311),n=r(5580);t.exports=(t,e)=>{t=new i(t,e);let r=new s("0.0.0");if(t.test(r))return r;if(r=new s("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let a=null;i.forEach(t=>{const e=new s(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":a&&!n(e,a)||(a=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}),!a||r&&!n(r,a)||(r=a)}return r&&t.test(r)?r:null}},7075(t,e,r){const s=r(3908),i=r(3904),{ANY:n}=i,a=r(8311),o=r(7638),c=r(5580),l=r(7059),h=r(5200),u=r(4089);t.exports=(t,e,r,d)=>{let p,m,y,f,g;switch(t=new s(t,d),e=new a(e,d),r){case">":p=c,m=h,y=l,f=">",g=">=";break;case"<":p=l,m=u,y=c,f="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(t,e,d))return!1;for(let r=0;r<e.set.length;++r){const s=e.set[r];let a=null,o=null;if(s.forEach(t=>{t.semver===n&&(t=new i(">=0.0.0")),a=a||t,o=o||t,p(t.semver,a.semver,d)?a=t:y(t.semver,o.semver,d)&&(o=t)}),a.operator===f||a.operator===g)return!1;if((!o.operator||o.operator===f)&&m(t,o.semver))return!1;if(o.operator===g&&y(t,o.semver))return!1}return!0}},2525(t,e,r){const s=r(7638),i=r(560);t.exports=(t,e,r)=>{const n=[];let a=null,o=null;const c=t.sort((t,e)=>i(t,e,r));for(const t of c)s(t,e,r)?(o=t,a||(a=t)):(o&&n.push([a,o]),o=null,a=null);a&&n.push([a,null]);const l=[];for(const[t,e]of n)t===e?l.push(t):e||t!==c[0]?e?t===c[0]?l.push(`<=${e}`):l.push(`${t} - ${e}`):l.push(`>=${t}`):l.push("*");const h=l.join(" || "),u="string"==typeof e.raw?e.raw:String(e);return h.length<u.length?h:e}},5032(t,e,r){const s=r(8311),i=r(3904),{ANY:n}=i,a=r(7638),o=r(560),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],h=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===n){if(1===e.length&&e[0].semver===n)return!0;t=r.includePrerelease?c:l}if(1===e.length&&e[0].semver===n){if(r.includePrerelease)return!0;e=l}const s=new Set;let i,h,p,m,y,f,g;for(const e of t)">"===e.operator||">="===e.operator?i=u(i,e,r):"<"===e.operator||"<="===e.operator?h=d(h,e,r):s.add(e.semver);if(s.size>1)return null;if(i&&h){if(p=o(i.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==i.operator||"<="!==h.operator))return null}for(const t of s){if(i&&!a(t,String(i),r))return null;if(h&&!a(t,String(h),r))return null;for(const s of e)if(!a(t,String(s),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,x=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const t of e){if(g=g||">"===t.operator||">="===t.operator,f=f||"<"===t.operator||"<="===t.operator,i)if(x&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===x.major&&t.semver.minor===x.minor&&t.semver.patch===x.patch&&(x=!1),">"===t.operator||">="===t.operator){if(m=u(i,t,r),m===t&&m!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(t),r))return!1;if(h)if(w&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch&&(w=!1),"<"===t.operator||"<="===t.operator){if(y=d(h,t,r),y===t&&y!==h)return!1}else if("<="===h.operator&&!a(h.semver,String(t),r))return!1;if(!t.operator&&(h||i)&&0!==p)return!1}return!(i&&f&&!h&&0!==p||h&&g&&!i&&0!==p||x||w)},u=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s>0?t:s<0||">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;const s=o(t.semver,e.semver,r);return s<0?t:s>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new s(t,r),e=new s(e,r);let i=!1;t:for(const s of t.set){for(const t of e.set){const e=h(s,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},7631(t,e,r){const s=r(8311);t.exports=(t,e)=>new s(t,e).set.map(t=>t.map(t=>t.value).join(" ").trim().split(" "))},3874(t,e,r){const s=r(8311);t.exports=(t,e)=>{try{return new s(t,e).range||"*"}catch(t){return null}}},8965(t,e,r){r.d(e,{A:()=>n});const s=new Set(["loc","range","comments"]);function i(){}i.ignoredProperties=s;const n=i},8156(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>A});var i=r(4687),n=r(1815),a=r(8965),o=r(7671),c=r(1410),l=r(4242),h=r(2680),u=r(3927),d=r(466),p=r(7540),m=r(9060),y=t([n,u,d,p]);[n,u,d,p]=y.then?(await y)():y;const f="slang",g="antlr",w="slang-ast",x="antlr-ast",v=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[f,g],vscodeLanguageIds:["solidity"]}],b=Object.assign({astFormat:x,parse:l.A},o.A),_={astFormat:w,parse:u.A,locStart:m.z,locEnd:m.I},E={[f]:_,[g]:b},T=t=>"string"!=typeof t&&void 0!==t&&t.kind&&!(0,p.C)(t),S={canAttachComment:({type:t})=>"string"==typeof t&&"BlockComment"!==t&&"LineComment"!==t,handleComments:{ownLine:i.bd,endOfLine:i.rN,remaining:i.F7},isBlockComment:i.tN,massageAstNode:a.A,print:h.A,printComment:i.X5},k={canAttachComment:T,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,printComment:n.o},R={bracketSpacing:!1,tabWidth:4},A={languages:v,parsers:E,printers:{[w]:k,[x]:S},options:c.A,defaultOptions:R};s()}catch(t){s(t)}})},1410(t,e,r){r.d(e,{A:()=>a});const s="Global",i="Common",n="JavaScript",a={printWidth:{category:s,type:"int",default:80,description:"The line length where Prettier will try to wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},tabWidth:{type:"int",category:s,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{category:s,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{category:i,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:i,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:n,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},experimentalOperatorPosition:{category:n,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}}},7611(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(769),n=t([i]),a=n.then?(await n)():n;function o(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some(t=>t(l))}function c(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some(t=>t(l))}function l(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:c}=t,l={text:e,precedingNode:a,enclosingNode:o,followingNode:c,comment:t,ast:s,isLastComment:n};return i.A.some(t=>t(l))}i=a[0];const h={ownLine:o,endOfLine:c,remaining:l};s()}catch(u){s(u)}})},4796(t,e,r){r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addLeadingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[0],e)}},876(t,e,r){r.d(e,{A:()=>a});var s=r(838);const{addDanglingComment:i,addTrailingComment:n}=s.util;function a(t,e){0===t.items.length?i(t,e,!1):n(t.items[t.items.length-1],e)}},2038(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.Block&&((null==t?void 0:t.kind)===i.q3.Statements?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Statements&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},4597(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(876),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ContractDefinition)return!1;const l=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));if((null==s?void 0:s.kind)===i.q3.ContractSpecifiers||(null==s?void 0:s.kind)===i.q3.ContractMembers&&"{"!==l)return h(r,c),!0;if((null==e?void 0:e.kind)===i.q3.ContractMembers)return(0,o.A)(e,c),!0;if("{"===l&&(null==e?void 0:e.kind)===i.q3.ContractSpecifiers){if(0===e.items.length)return u(e,c),!0;const t=e.items[e.items.length-1];if(t.kind===i.q3.InheritanceSpecifier)return(0,o.A)(t.types,c),!0;if(t.kind===i.q3.StorageLayoutSpecifier)return u(t.expression,c),!0}return!1}s()}catch(p){s(p)}})},3449(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(838),a=r(876),o=t([i]),c=o.then?(await o)():o;i=c[0];const{addTrailingComment:l}=n.util;function h({precedingNode:t,enclosingNode:e,comment:r}){if((null==e?void 0:e.kind)!==i.q3.ContractSpecifiers)return!1;if(t){if(t.kind===i.q3.InheritanceSpecifier)return(0,a.A)(t.types,r),!0;if(t.kind===i.q3.StorageLayoutSpecifier)return l(t.expression,r),!0}return!1}s()}catch(u){s(u)}})},7265(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(838),a=r(4796),o=t([i]),c=o.then?(await o)():o;i=c[0];const{addLeadingComment:l}=n.util;function h({enclosingNode:t,followingNode:e,comment:r}){return!((null==t?void 0:t.kind)!==i.q3.ElseBranch||!e||e!==t.body||e.kind!==i.q3.IfStatement||(e.body.kind===i.q3.Block?(0,a.A)(e.body.statements,r):l(e.body,r),0))}s()}catch(u){s(u)}})},8534(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.IfStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))||e===r.body&&s===r.elseBranch?(u(e,c),!0):s.kind===i.q3.IfStatement?(s.body.kind===i.q3.Block?(0,o.A)(s.body.statements,c):h(s.body,c),!0):r.body===s&&(s.kind===i.q3.Block?(0,o.A)(s.statements,c):h(s,c),!0))}s()}catch(p){s(p)}})},6318(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=t([i]),h=l.then?(await l)():l;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.InterfaceDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.InterfaceMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.InterfaceMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},6718(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=t([i]),h=l.then?(await l)():l;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.LibraryDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.LibraryMembers?((0,c.A)(e,l),!0):"{"===h&&(null==s?void 0:s.kind)===i.q3.LibraryMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},4923(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addTrailingComment:h}=n.util;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){if((null==r?void 0:r.kind)!==i.q3.ModifierInvocation)return!1;const l=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c));return(null==e?void 0:e.kind)===i.q3.IdentifierPath&&"("===l&&(null==s?void 0:s.kind)===i.q3.PositionalArgumentsDeclaration&&(0===s.arguments.items.length?h(r,c):(0,o.A)(s.arguments,c),!0)}s()}catch(d){s(d)}})},2120(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.ParametersDeclaration&&((null==t?void 0:t.kind)===i.q3.Parameters?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.Parameters&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},3273(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.PositionalArgumentsDeclaration&&((null==t?void 0:t.kind)===i.q3.PositionalArguments?((0,a.A)(t,s),!0):(null==r?void 0:r.kind)===i.q3.PositionalArguments&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},9981(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=t([i]),c=o.then?(await o)():o;function l({precedingNode:t,followingNode:e,comment:r}){return e&&e.kind===i.q3.SourceUnitMembers?((0,n.A)(e,r),!0):!(!t||t.kind!==i.q3.SourceUnitMembers||((0,a.A)(t,r),0))}i=c[0],s()}catch(h){s(h)}})},4850(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>l});var i=r(8269),n=r(838),a=t([i]),o=a.then?(await a)():a;i=o[0];const{addLeadingComment:c}=n.util;function l({enclosingNode:t,followingNode:e,comment:r}){return(null==t?void 0:t.kind)===i.q3.StorageLayoutSpecifier&&(null==e?void 0:e.kind)===i.q3.Expression&&(c(e,r),!0)}s()}catch(h){s(h)}})},2416(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=t([i]),h=l.then?(await l)():l;function u({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:l}){if((null==r?void 0:r.kind)!==i.q3.StructDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(l));return(null==e?void 0:e.kind)===i.q3.StructMembers&&"}"===h?((0,c.A)(e,l),!0):(null==s?void 0:s.kind)===i.q3.StructMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},5710(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=t([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:c}){return!((null==r?void 0:r.kind)!==i.q3.WhileStatement||!s)&&(")"===n.util.getNextNonSpaceNonCommentCharacter(t,(0,a.I)(c))||r.condition===e?(u(e,c),!0):r.body===s&&(s.kind===i.q3.Block?(0,o.A)(s.statements,c):h(s,c),!0))}s()}catch(p){s(p)}})},543(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(838),a=t([i]),o=a.then?(await a)():a;i=o[0];const{addLeadingComment:c,addDanglingComment:l}=n.util;function h({precedingNode:t,enclosingNode:e,followingNode:r,comment:s}){return(null==e?void 0:e.kind)===i.q3.YulBlock&&((null==t?void 0:t.kind)===i.q3.YulStatements&&0===t.items.length?(l(t,s,!1),!0):(null==r?void 0:r.kind)===i.q3.YulStatements&&r.items.length>0&&(c(r.items[0],s),!0))}s()}catch(u){s(u)}})},769(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>v});var i=r(2038),n=r(4597),a=r(3449),o=r(7265),c=r(8534),l=r(6318),h=r(6718),u=r(4923),d=r(2120),p=r(3273),m=r(9981),y=r(4850),f=r(2416),g=r(5710),w=r(543),x=t([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;const v=[i.A,n.A,a.A,o.A,c.A,l.A,h.A,u.A,d.A,p.A,m.A,y.A,f.A,g.A,w.A];s()}catch(t){s(t)}})},1815(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>i.X,o:()=>n.X});var i=r(7611),n=r(7431),a=t([i,n]);[i,n]=a.then?(await a)():a,s()}catch(t){s(t)}})},7431(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>o});var i=r(7540),n=t([i]),a=n.then?(await n)():n;function o({node:t}){if((0,i.C)(t))return t.print();throw new Error(`Not a comment: ${JSON.stringify(t)}`)}i=a[0],s()}catch(c){s(c)}})},1475(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>c});var i=r(8269),n=r(6095),a=r(9455),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.AbicoderPragma,this.version=new a.G(t.version,e),this.updateMetadata(this.version)}print(t,e){return["abicoder ",t.call(e,"version")]}}s()}catch(t){s(t)}})},9455(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.AbicoderVersion,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},2054(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["%"]),p=(0,n.WV)((0,o.n)([i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AdditiveExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},7614(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){var r;super(t,e),this.kind=i.q3.AddressType,this.payableKeyword=null===(r=t.payableKeyword)||void 0===r?void 0:r.unparse()}print(){return["address",this.payableKeyword?" payable":""]}}s()}catch(t){s(t)}})},2745(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>h});var i=r(8269),n=r(8409),a=r(4003),o=r(6095),c=r(8926),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AndExpression,this.leftOperand=(0,a.f)(new c.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,a.f)(new c.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}})},5756(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9182),l=r(7832),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.V34,c.V],[i.Qy6,l.Q]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ArgumentsDeclaration,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},6233(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>c});var i=r(8269),n=r(6095),a=r(3857),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ArrayExpression,this.items=new a.A(t.items,e,r),this.updateMetadata(this.items)}print(t,e){return["[",t.call(e,"items"),"]"]}}s()}catch(t){s(t)}})},4968(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ArrayTypeName,this.operand=(0,n.f)(new o.C(t.operand,e,r)),t.index&&(this.index=(0,n.f)(new c.r(t.index,e,r))),this.updateMetadata(this.operand,this.index)}print(t,e){return[t.call(e,"operand"),"[",t.call(e,"index"),"]"]}}s()}catch(t){s(t)}})},3857(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(7578),a=r(4003),o=r(6095),c=r(8926),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ArrayValues,this.items=t.items.map(t=>(0,a.f)(new c.r(t,e,r)))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},7041(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(3562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.AssemblyFlags,this.items=t.items.map(t=>new o.L(t,e,r))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},8085(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(8269),n=r(6095),a=r(7041),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AssemblyFlagsDeclaration,this.flags=new a.Y(t.flags,e,r),this.updateMetadata(this.flags)}print(t,e){return["(",t.call(e,"flags"),")"]}}s()}catch(t){s(t)}})},7299(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>u});var i=r(8269),n=r(1e3),a=r(6095),o=r(3562),c=r(8085),l=r(2319),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AssemblyStatement,t.label&&(this.label=new o.L(t.label,e,r)),t.flags&&(this.flags=new c.e(t.flags,e,r)),this.body=new l.M(t.body,e,r),this.updateMetadata(this.label,this.flags,this.body)}print(t,e){return(0,n.I)(" ",["assembly",t.call(e,"label"),t.call(e,"flags"),t.call(e,"body")])}}s()}catch(t){s(t)}})},5287(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>h});var i=r(8269),n=r(4003),a=r(5536),o=r(6095),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.AssignmentExpression,this.leftOperand=(0,n.f)(new c.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,n.f)(new c.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(t,e){return[t.call(e,"leftOperand"),` ${this.operator}`,(0,a.U)(t.call(e,"rightOperand"),this.rightOperand)]}}s()}catch(t){s(t)}})},7162(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.BitwiseAndExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},7438(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>","&","^"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.BitwiseOrExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},4654(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>","&"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.BitwiseXorExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},6511(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>c});var i=r(8269),n=r(6095),a=r(1322),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.Block,this.statements=new a.$(t.statements,e,r),this.updateMetadata(this.statements)}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}})},3144(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.BreakStatement}print(){return"break;"}}s()}catch(t){s(t)}})},6380(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(316),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.CallOptions,this.items=t.items.map(t=>new c.j(t,e,r))}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}})},2514(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=r(6380),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.CallOptionsExpression,this.operand=(0,n.f)(new o.r(t.operand,e,r)),this.options=new c.p(t.options,e,r),this.updateMetadata(this.operand,this.options)}print(t,e){return[t.call(e,"operand"),"{",t.call(e,"options"),"}"]}}s()}catch(t){s(t)}})},1292(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>l});var i=r(8269),n=r(6095),a=r(8152),o=r(6511),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.CatchClause,t.error&&(this.error=new a.$(t.error,e,r)),this.body=new o.e(t.body,e,r),this.updateMetadata(this.error,this.body)}print(t,e){return["catch ",t.call(e,"error"),t.call(e,"body")]}}s()}catch(t){s(t)}})},8152(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=r(9002),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.CatchClauseError,t.name&&(this.name=new o.x(t.name,e)),this.parameters=new c.Z(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return[t.call(e,"name"),h(t.call(e,"parameters"))," "]}}s()}catch(t){s(t)}})},7259(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{m:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(1292),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.CatchClauses,this.items=t.items.map(t=>new o.D(t,e,r)),this.updateMetadata(...this.items)}print(t,e){return l(" ",t.map(e,"items"))}}s()}catch(t){s(t)}})},8567(t,e,r){r.d(e,{A:()=>s});class s{constructor(t,e){this.loc={start:e,end:e+t.textLength.utf16}}}},6312(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>x});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const{group:u,hardline:d,ifBreak:p,indent:m,line:y}=n.doc.builders;function f(t,e,r,{useTabs:s,tabWidth:n}){const o=e.parent,c=o.kind===i.q3.ConditionalExpression,l=c&&o.trueExpression===t,h=t.falseExpression.kind,f=h===i.q3.TupleExpression||h===i.q3.ConditionalExpression,g=e.call(r,"operand"),w=u([t.operand.kind===i.q3.TupleExpression?g:p(["(",(0,a.K)(g),")"],g)," ?"]),x=m([l?d:y,e.call(r,"trueExpression")]),v=Symbol("Slang.ConditionalExpression.trueExpression"),b=u([w,x],{id:v}),_=s?"\t":n>2?" ".repeat(n-1):" ",E=e.call(r,"falseExpression"),T=[c?d:y,":",f?[" ",E]:p([_,m(E)],[" ",E],{groupId:v})];return u([b,T])}function g(t,e){return u([t.call(e,"operand"),m([t.parent.kind===i.q3.ConditionalExpression?d:y,"? ",t.call(e,"trueExpression"),y,": ",t.call(e,"falseExpression")])])}function w(t){return t.kind===i.q3.TupleExpression?t.items.getSingleExpression():void 0}class x extends c.w{constructor(t,e,r){if(super(t,e),this.kind=i.q3.ConditionalExpression,this.operand=(0,o.f)(new l.r(t.operand,e,r)),this.trueExpression=(0,o.f)(new l.r(t.trueExpression,e,r)),this.falseExpression=(0,o.f)(new l.r(t.falseExpression,e,r)),this.updateMetadata(this.operand,this.trueExpression,this.falseExpression),r.experimentalTernaries){const t=this.operand.loc;for(let t=w(this.operand);t&&t.kind!==i.q3.ConditionalExpression;t=w(this.operand))this.operand=t;this.operand.loc=t}}print(t,e,r){return r.experimentalTernaries?f(this,t,e,r):g(t,e)}}s()}catch(v){s(v)}})},9885(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{y:()=>d});var i=r(8269),n=r(4003),a=r(5536),o=r(6095),c=r(9979),l=r(8388),h=r(8926),u=t([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ConstantDefinition,this.typeName=(0,n.f)(new c.C(t.typeName,e,r)),this.name=new l.x(t.name,e),this.value=(0,n.f)(new h.r(t.value,e,r)),this.updateMetadata(this.typeName,this.value)}print(t,e){return[t.call(e,"typeName")," constant ",t.call(e,"name")," =",(0,a.U)(t.call(e,"value"),this.value),";"]}}s()}catch(t){s(t)}})},4192(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{F:()=>l});var i=r(8269),n=r(6095),a=r(1699),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ConstructorAttribute;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.u(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2567(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(4192),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ConstructorAttributes,this.items=t.items.map(t=>(0,o.f)(new l.F(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},5959(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{s:()=>u});var i=r(8269),n=r(304),a=r(6095),o=r(9002),c=r(2567),l=r(6511),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ConstructorDefinition,this.parameters=new o.Z(t.parameters,e,r),this.attributes=new c.O(t.attributes,e,r),this.body=new l.e(t.body,e,r),this.updateMetadata(this.parameters,this.attributes,this.body)}print(t,e){return(0,n.E)("constructor",this,t,e)}}s()}catch(t){s(t)}})},9892(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ContinueStatement}print(){return"continue;"}}s()}catch(t){s(t)}})},2795(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>m});var i=r(8269),n=r(838),a=r(9589),o=r(6095),c=r(8388),l=r(5451),h=r(5907),u=t([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{group:d,line:p}=n.doc.builders;class m extends o.w{constructor(t,e,r){var s;if(super(t,e),this.kind=i.q3.ContractDefinition,this.abstractKeyword=null===(s=t.abstractKeyword)||void 0===s?void 0:s.unparse(),this.name=new c.x(t.name,e),this.specifiers=new l.o(t.specifiers,e,r),this.members=new h.I(t.members,e,r),this.updateMetadata(this.specifiers,this.members),!(0,a.satisfies)(r.compiler,">=0.5.0"))for(const t of this.members.items)t.kind===i.q3.FunctionDefinition&&t.name.value!==this.name.value&&t.cleanModifierInvocationArguments()}print(t,e){return[d([this.abstractKeyword?"abstract ":"","contract ",t.call(e,"name"),t.call(e,"specifiers"),this.specifiers.items.length>0?"":p,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},4468(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(33),l=r(7281),h=r(5959),u=r(9394),d=r(9640),p=r(6871),m=r(1204),y=r(8324),f=r(3820),g=r(4351),w=r(918),x=r(897),v=r(7260),b=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.R)([[i.Ke0,c.K],[i.Wgi,l.W],[i.s2A,h.s],[i.pT,u.p],[i.oMV,d.o],[i.ulb,p.u],[i.zxr,m.z],[i.ZOq,y.Z],[i.P3w,f.P],[i.wyV,g.w],[i.zac,w.z],[i.em6,x.e],[i.zFc,v.z]]);class E extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ContractMember,this.variant=_(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},5907(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(4468),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ContractMembers,this.items=t.items.map(t=>(0,c.f)(new h.B(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},3868(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3892),l=r(4557),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.RCX,c.R],[i.oVh,l.o]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ContractSpecifier,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},5451(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>f});var i=r(8269),n=r(838),a=r(4145),o=r(7578),c=r(4003),l=r(6095),h=r(3868),u=t([i,a,l,h]);[i,a,l,h]=u.then?(await u)():u;const{group:d,ifBreak:p,line:m,softline:y}=n.doc.builders;class f extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ContractSpecifiers,this.items=t.items.map(t=>(0,c.f)(new h.Z(t,e,r))),this.items.sort(a.Y)}print(t,e){const[r,s]=t.map(e,"items");if(void 0===r)return"";if(void 0===s)return[" ",r];const i=Symbol("Slang.ContractSpecifiers.inheritance");return(0,o.J)([d(r,{id:i}),s],{firstSeparator:m,separator:p("",y,{groupId:i})})}}s()}catch(t){s(t)}})},1390(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(1e3),a=r(6095),o=r(6603),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.DecimalNumberExpression,this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit,e)),this.updateMetadata(this.unit)}print(t,e){return(0,n.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}})},8943(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(5211),h=r(8926),u=t([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;const{line:d}=n.doc.builders;class p extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.DoWhileStatement,this.body=(0,o.f)(new l.W(t.body,e,r)),this.condition=(0,o.f)(new h.r(t.condition,e,r)),this.updateMetadata(this.body,this.condition)}print(t,e){const r=t.call(e,"body");return["do",this.body.kind===i.q3.Block?[" ",r," "]:(0,a.K)(r,{firstSeparator:d}),"while (",(0,a.K)(t.call(e,"condition")),");"]}}s()}catch(t){s(t)}})},3198(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>l});var i=r(8269),n=r(6095),a=r(7614),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ElementaryType;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.R(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},3117(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>d});var i=r(8269),n=r(6563),a=r(4374),o=r(4003),c=r(6095),l=r(5211),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const u=(0,n.n)([i.q3.Block,i.q3.IfStatement]);class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ElseBranch,this.body=(0,o.f)(new l.W(t.body,e,r)),this.updateMetadata(this.body)}print(t,e){return["else",(0,a.w)(t.call(e,"body"),!u(this.body))]}}s()}catch(t){s(t)}})},3406(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.EmitStatement,this.event=new o.D(t.event,e),this.arguments=(0,n.f)(new c.Z(t.arguments,e,r)),this.updateMetadata(this.event,this.arguments)}print(t,e){return["emit ",t.call(e,"event"),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}})},3820(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(2238),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.EnumDefinition,this.name=new a.x(t.name,e),this.members=new o.P(t.members,e),this.updateMetadata(this.members)}print(t,e){return["enum ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},2238(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(8388),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.EnumMembers,this.items=t.items.map(t=>new c.x(t,e))}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}})},6442(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{t:()=>m});var i=r(8269),n=r(142),a=r(6563),o=r(4209),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,o,l,h]);[i,n,o,l,h]=u.then?(await u)():u;const d=(0,n.H)(["==","!="]),p=(0,o.WV)((0,a.n)([i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.EqualityExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},897(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(1142),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ErrorDefinition,this.name=new a.x(t.name,e),this.members=new o.$(t.members,e,r),this.updateMetadata(this.members)}print(t,e){return["error ",t.call(e,"name"),t.call(e,"members"),";"]}}s()}catch(t){s(t)}})},7105(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{m:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ErrorParameter,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.typeName)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}})},2048(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(7105),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ErrorParameters,this.items=t.items.map(t=>new o.m(t,e,r))}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}})},1142(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(8269),n=r(6095),a=r(2048),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ErrorParametersDeclaration,this.parameters=new a.h(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},4351(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{w:()=>l});var i=r(8269),n=r(6095),a=r(2828),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.EventDefinition,this.name=new o.x(t.name,e),this.parameters=new a.$(t.parameters,e,r),this.anonymousKeyword=null===(s=t.anonymousKeyword)||void 0===s?void 0:s.unparse(),this.updateMetadata(this.parameters)}print(t,e){return["event ",t.call(e,"name"),t.call(e,"parameters"),this.anonymousKeyword?" anonymous;":";"]}}s()}catch(t){s(t)}})},4027(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.EventParameter,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),this.indexedKeyword=null===(s=t.indexedKeyword)||void 0===s?void 0:s.unparse(),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.typeName)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),this.indexedKeyword,t.call(e,"name")])}}s()}catch(t){s(t)}})},170(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(4027),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.EventParameters,this.items=t.items.map(t=>new o.Q(t,e,r))}print(t,e){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(t){s(t)}})},2828(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>c});var i=r(8269),n=r(6095),a=r(170),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.EventParametersDeclaration,this.parameters=new a.p(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},2254(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(8269),n=r(6095),a=r(3562),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExperimentalFeature;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.L(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},6162(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(2254),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExperimentalPragma,this.feature=(0,n.f)(new o.R(t.feature,e,r)),this.updateMetadata(this.feature)}print(t,e){return["experimental ",t.call(e,"feature")]}}s()}catch(t){s(t)}})},6121(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>w});var i=r(8269),n=r(838),a=r(1059),o=r(4209),c=r(142),l=r(6563),h=r(4003),u=r(6095),d=r(8926),p=t([i,a,o,c,u,d]);[i,a,o,c,u,d]=p.then?(await p)():p;const{group:m}=n.doc.builders,y=(0,c.H)(["**"]),f=(0,l.n)([i.q3.MultiplicativeExpression,i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]),g=(0,a.f)(()=>t=>m(t),(0,o.Wu)(f));class w extends u.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExponentiationExpression,this.leftOperand=(0,h.f)(new d.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,h.f)(new d.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.rightOperand=y(this.rightOperand),this.leftOperand=y(this.leftOperand)}print(t,e,r){return g(this,t,e,r)}}s()}catch(t){s(t)}})},8926(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>M});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5287),l=r(6312),h=r(8947),u=r(2745),d=r(6442),p=r(6405),m=r(7438),y=r(4654),f=r(7162),g=r(4852),w=r(2054),x=r(8968),v=r(6121),b=r(4109),_=r(8802),E=r(9894),T=r(2514),S=r(4138),k=r(4882),R=r(6010),A=r(4274),C=r(86),L=r(6233),I=r(9804),K=r(1390),N=r(9511),O=r(3198),D=r(8388),P=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,L,I,K,N,O,D]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,L,I,K,N,O,D]=P.then?(await P)():P;const q=(0,a.$)([[i.kAK,c.k],[i.TZT,l.T],[i.KfV,h.K],[i.gHf,u.g],[i.tt2,d.t],[i.u6S,p.u],[i.JXG,m.J],[i.Rbz,y.R],[i.Jxp,f.J],[i.Zm3,g.Z],[i.zSR,w.z],[i.dst,x.d],[i.grs,v.g],[i._Y1,b._],[i.BdE,_.B],[i.jy0,E.j],[i.XwB,T.X],[i.nWe,S.n],[i.zc0,k.z],[i.Zd1,R.Z],[i.bUO,A.b],[i.jy1,C.j],[i.gH0,L.g],[i.$rk,I.$],[i.jqW,K.j]],[[i.OXe,N.O],[i.$ge,O.$]]);class M extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.Expression;const s=t.variant;s instanceof n.xo?this.variant=new D.x(s,e):(this.variant=q(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},6157(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ExpressionStatement,this.expression=(0,n.f)(new o.r(t.expression,e,r)),this.updateMetadata(this.expression)}print(t,e){return[t.call(e,"expression"),";"]}}s()}catch(t){s(t)}})},7532(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.FallbackFunctionAttribute;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},7435(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(7532),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.FallbackFunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.h(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},9640(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>p});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(7435),h=r(7181),u=r(1580),d=t([i,n,o,c,l,h,u]);[i,n,o,c,l,h,u]=d.then?(await d)():d;class p extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FallbackFunctionDefinition,this.parameters=new c.Z(t.parameters,e,r),this.attributes=new l.i(t.attributes,e,r),t.returns&&(this.returns=new h.I(t.returns,e,r)),this.body=(0,a.f)(new u.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.returns,this.body);for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.E)("fallback",this,t,e)}}s()}catch(t){s(t)}})},3816(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>f});var i=r(8269),n=r(838),a=r(7578),o=r(4374),c=r(4003),l=r(6095),h=r(6716),u=r(91),d=r(8926),p=r(5211),m=t([i,l,h,u,d,p]);[i,l,h,u,d,p]=m.then?(await m)():m;const{line:y}=n.doc.builders;class f extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ForStatement,this.initialization=(0,c.f)(new h.n(t.initialization,e,r)),this.condition=(0,c.f)(new u.Q(t.condition,e,r)),t.iterator&&(this.iterator=(0,c.f)(new d.r(t.iterator,e,r))),this.body=(0,c.f)(new p.W(t.body,e,r)),this.updateMetadata(this.initialization,this.condition,this.iterator,this.body)}print(t,e){const r=t.call(e,"initialization"),s=t.call(e,"condition"),n=t.call(e,"iterator");return["for (",(0,a.J)([r,s,n],{separator:";"!==r||";"!==s||""!==n?y:""}),")",(0,o.w)(t.call(e,"body"),this.body.kind!==i.q3.Block)]}}s()}catch(t){s(t)}})},91(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>l});var i=r(8269),n=r(6095),a=r(6157),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ForStatementCondition;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.Q(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},6716(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>m});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(6157),l=r(2421),h=r(6773),u=r(8388),d=t([i,n,o,c,l,h,u]);[i,n,o,c,l,h,u]=d.then?(await d)():d;const p=(0,a.R)([[i.Qrp,c.Q],[i._U4,l._],[i.aez,h.a]]);class m extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ForStatementInitialization;const s=t.variant;s instanceof n.xo?this.variant=new u.x(s,e):(this.variant=p(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},5798(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.FunctionAttribute;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},3685(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(5798),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.FunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.V(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},1580(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(8269),n=r(6095),a=r(6511),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionBody;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.e(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},9894(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>m});var i=r(8269),n=r(838),a=r(4079),o=r(9857),c=r(4003),l=r(6095),h=r(8926),u=r(5756),d=t([i,l,h,u]);[i,l,h,u]=d.then?(await d)():d;const{label:p}=n.doc.builders;class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionCallExpression,this.operand=(0,c.f)(new h.r(t.operand,e,r)),this.arguments=(0,c.f)(new u.Z(t.arguments,e,r)),this.updateMetadata(this.operand,this.arguments)}print(t,e){const r=t.call(e,"operand"),s=t.call(e,"arguments");return(0,a.J)(r)&&"MemberAccessChain"===r.label?p("MemberAccessChain",(0,o.u)(r.contents,s)):[r,s].flat()}}s()}catch(t){s(t)}})},7281(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>y});var i=r(8269),n=r(9589),a=r(304),o=r(4003),c=r(6095),l=r(1615),h=r(9002),u=r(3685),d=r(7181),p=r(1580),m=t([i,a,c,l,h,u,d,p]);[i,a,c,l,h,u,d,p]=m.then?(await m)():m;class y extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionDefinition,this.name=(0,o.f)(new l.s(t.name,e)),this.parameters=new h.Z(t.parameters,e,r),this.attributes=new u.S(t.attributes,e,r),t.returns&&(this.returns=new d.I(t.returns,e,r)),this.body=(0,o.f)(new p.r(t.body,e,r)),this.updateMetadata(this.name,this.parameters,this.attributes,this.returns,this.body),(0,n.satisfies)(r.compiler,">=0.5.0")&&this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,a.E)(["function ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}})},1615(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{s:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.FunctionName,this.variant=new a.x(t.variant,e)}}s()}catch(t){s(t)}})},3476(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>u});var i=r(8269),n=r(304),a=r(6095),o=r(9002),c=r(221),l=r(7181),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.FunctionType,this.parameters=new o.Z(t.parameters,e,r),this.attributes=new c.C(t.attributes,e),t.returns&&(this.returns=new l.I(t.returns,e,r)),this.updateMetadata(this.parameters,this.attributes,this.returns)}print(t,e){return(0,n.c)("function",this,t,e)}}s()}catch(t){s(t)}})},6222(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{l:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.FunctionTypeAttribute,this.variant=new a.x(t.variant,e)}}s()}catch(t){s(t)}})},221(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(6222),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.FunctionTypeAttributes,this.items=t.items.map(t=>(0,o.f)(new l.l(t,e))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},9804(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>l});var i=r(8269),n=r(1e3),a=r(6095),o=r(6603),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.HexNumberExpression,this.literal=t.literal.unparse(),t.unit&&(this.unit=new o.c(t.unit,e)),this.updateMetadata(this.unit)}print(t,e){return(0,n.I)(" ",[this.literal,t.call(e,"unit")])}}s()}catch(t){s(t)}})},5191(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=t([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.HexStringLiteral,this.variant=t.variant.unparse(),this.variant=`hex${(0,n.T)(this.variant.slice(4,-1),r)}`}print(){return this.variant}}s()}catch(t){s(t)}})},7598(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(5191),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.HexStringLiterals,this.items=t.items.map(t=>new o.C(t,e,r))}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},2912(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.IdentifierPath,this.items=t.items.map(t=>new o.x(t,e))}print(t,e){return l(".",t.map(e,"items"))}}s()}catch(t){s(t)}})},7978(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{v:()=>f});var i=r(8269),n=r(838),a=r(8941),o=r(4374),c=r(7540),l=r(4003),h=r(6095),u=r(8926),d=r(5211),p=r(3117),m=t([i,c,h,u,d,p]);[i,c,h,u,d,p]=m.then?(await m)():m;const{hardline:y}=n.doc.builders;class f extends h.w{constructor(t,e,r){super(t,e),this.kind=i.q3.IfStatement,this.condition=(0,l.f)(new u.r(t.condition,e,r)),this.body=(0,l.f)(new d.W(t.body,e,r)),t.elseBranch&&(this.elseBranch=new p.O(t.elseBranch,e,r)),this.updateMetadata(this.condition,this.body,this.elseBranch)}print(t,e){const{kind:r,comments:s}=this.body;return["if (",(0,a.K)(t.call(e,"condition")),")",(0,o.w)(t.call(e,"body"),r!==i.q3.Block,{shouldBreak:r===i.q3.IfStatement}),this.elseBranch?[r!==i.q3.Block||(null==s?void 0:s.some(t=>!(0,c.t)(t)||"ownLine"===t.placement))?y:" ",t.call(e,"elseBranch")]:""]}}s()}catch(t){s(t)}})},6485(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ImportAlias,this.identifier=new a.x(t.identifier,e)}print(t,e){return[" as ",t.call(e,"identifier")]}}s()}catch(t){s(t)}})},5996(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9150),l=r(3534),h=r(979),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.N$9,c.N],[i.RrN,l.R],[i.qV6,h.q]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ImportClause,this.variant=d(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},979(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>l});var i=r(8269),n=r(6095),a=r(2386),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ImportDeconstruction,this.symbols=new a.z(t.symbols,e),this.path=new o.L(t.path,e,r),this.updateMetadata(this.symbols,this.path)}print(t,e){return["{",t.call(e,"symbols"),"} from ",t.call(e,"path")]}}s()}catch(t){s(t)}})},4163(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ImportDeconstructionSymbol,this.name=new a.x(t.name,e),t.alias&&(this.alias=new o.G(t.alias,e)),this.updateMetadata(this.alias)}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}})},2386(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>p});var i=r(8269),n=r(838),a=r(9589),o=r(7578),c=r(6095),l=r(4163),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const{line:u,softline:d}=n.doc.builders;class p extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.ImportDeconstructionSymbols,this.items=t.items.map(t=>new l.g(t,e))}print(t,e,{compiler:r,bracketSpacing:s}){const i=t.map(e,"items");return(0,o.J)(i,i.length>1&&(0,a.satisfies)(r,">=0.7.4")?{firstSeparator:s?u:d}:{firstSeparator:s?" ":"",separator:", "})}}s()}catch(t){s(t)}})},8668(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(5996),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ImportDirective,this.clause=(0,n.f)(new o.r(t.clause,e,r)),this.updateMetadata(this.clause)}print(t,e){return["import ",t.call(e,"clause"),";"]}}s()}catch(t){s(t)}})},4899(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.IndexAccessEnd,t.end&&(this.end=(0,n.f)(new o.r(t.end,e,r))),this.updateMetadata(this.end)}print(t,e){return[":",t.call(e,"end")]}}s()}catch(t){s(t)}})},4882(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(8269),n=r(838),a=r(8941),o=r(9857),c=r(4079),l=r(4003),h=r(6095),u=r(8926),d=r(4899),p=t([i,h,u,d]);[i,h,u,d]=p.then?(await p)():p;const{label:m}=n.doc.builders;class y extends h.w{constructor(t,e,r){super(t,e),this.kind=i.q3.IndexAccessExpression,this.operand=(0,l.f)(new u.r(t.operand,e,r)),t.start&&(this.start=(0,l.f)(new u.r(t.start,e,r))),t.end&&(this.end=new d.Q(t.end,e,r)),this.updateMetadata(this.operand,this.start,this.end)}print(t,e){const r=t.call(e,"operand"),s=["[",(0,a.K)([t.call(e,"start"),t.call(e,"end")]),"]"];return(0,c.J)(r)&&"MemberAccessChain"===r.label?m("MemberAccessChain",(0,o.u)(r.contents,s)):[r,s].flat()}}s()}catch(t){s(t)}})},6405(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{u:()=>d});var i=r(8269),n=r(6563),a=r(4209),o=r(4003),c=r(6095),l=r(8926),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const u=(0,a.WV)((0,n.n)([i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InequalityExpression,this.leftOperand=(0,o.f)(new l.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,o.f)(new l.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(t,e,r){return u(this,t,e,r)}}s()}catch(t){s(t)}})},3892(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>c});var i=r(8269),n=r(6095),a=r(3717),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InheritanceSpecifier,this.types=new a.W(t.types,e,r),this.updateMetadata(this.types)}print(t,e){return["is",t.call(e,"types")]}}s()}catch(t){s(t)}})},3990(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InheritanceType,this.typeName=new o.D(t.typeName,e),t.arguments&&(this.arguments=(0,n.f)(new c.Z(t.arguments,e,r))),this.updateMetadata(this.typeName,this.arguments)}print(t,e){return[t.call(e,"typeName"),t.call(e,"arguments")]}}s()}catch(t){s(t)}})},3717(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(3990),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.InheritanceTypes,this.items=t.items.map(t=>new c.H(t,e,r))}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(t){s(t)}})},3692(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=r(3892),l=r(7646),h=t([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=n.doc.builders;class p extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.InterfaceDefinition,this.name=new o.x(t.name,e),t.inheritance&&(this.inheritance=new c.R(t.inheritance,e,r)),this.members=new l.l(t.members,e,r),this.updateMetadata(this.inheritance,this.members)}print(t,e){return[u(["interface ",t.call(e,"name"),this.inheritance?[" ",t.call(e,"inheritance")]:d,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},7646(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{l:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(4468),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.InterfaceMembers,this.items=t.items.map(t=>(0,c.f)(new h.B(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},1132(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{J:()=>p});var i=r(8269),n=r(838),a=r(9589),o=r(6095),c=r(8388),l=r(910),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=n.doc.builders;class p extends o.w{constructor(t,e,r){if(super(t,e),this.kind=i.q3.LibraryDefinition,this.name=new c.x(t.name,e),this.members=new l.r(t.members,e,r),this.updateMetadata(this.members),!(0,a.satisfies)(r.compiler,">=0.5.0"))for(const t of this.members.items)t.kind===i.q3.FunctionDefinition&&t.cleanModifierInvocationArguments()}print(t,e){return[u(["library ",t.call(e,"name"),d,"{"]),t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},910(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(4468),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.LibraryMembers,this.items=t.items.map(t=>(0,c.f)(new h.B(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},2585(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(305),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e){super(t,e),this.kind=i.q3.MappingKey,this.keyType=(0,a.f)(new c.o(t.keyType,e)),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.keyType)}print(t,e){return(0,n.I)(" ",[t.call(e,"keyType"),t.call(e,"name")])}}s()}catch(t){s(t)}})},305(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3198),l=r(2912),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.$)([[i.Ddx,l.D]],[[i.$ge,c.$]]);class d extends o.w{constructor(t,e){super(t,e),this.kind=n.q3.MappingKeyType,this.variant=u(t.variant,e),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},9184(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>l});var i=r(8269),n=r(6095),a=r(2585),o=r(8615),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MappingType,this.keyType=new a.a(t.keyType,e),this.valueType=new o.k(t.valueType,e,r),this.updateMetadata(this.keyType,this.valueType)}print(t,e){return["mapping(",t.call(e,"keyType")," => ",t.call(e,"valueType"),")"]}}s()}catch(t){s(t)}})},8615(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>u});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(8388),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MappingValue,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),t.name&&(this.name=new l.x(t.name,e)),this.updateMetadata(this.typeName)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),t.call(e,"name")])}}s()}catch(t){s(t)}})},4138(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>x});var i=r(8269),n=r(838),a=r(4079),o=r(4003),c=r(6543),l=r(6095),h=r(8926),u=r(8388),d=t([i,c,l,h,u]);[i,c,l,h,u]=d.then?(await d)():d;const{group:p,indent:m,label:y,softline:f}=n.doc.builders;function g(t,e){for(let r,s=1,n=t;r=e.getNode(s),(0,c.Y)(r);s++,n=r)switch(r.kind){case i.q3.MemberAccessExpression:return!1;case i.q3.IndexAccessExpression:case i.q3.FunctionCallExpression:if(n!==r.operand)return!0}return!0}function w(t){const e=t.findIndex(t=>(0,a.J)(t)&&"separator"===t.label);return y("MemberAccessChain",[t.slice(0,e),p(m(t.slice(e)))])}class x extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MemberAccessExpression,this.operand=(0,o.f)(new h.r(t.operand,e,r)),this.member=new u.x(t.member,e),this.updateMetadata(this.operand)}print(t,e){const r=[t.call(e,"operand"),y("separator",[f,"."]),t.call(e,"member")].flat();return g(this,t)?w(r):r}}s()}catch(v){s(v)}})},2085(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>l});var i=r(8269),n=r(6095),a=r(7178),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ModifierAttribute;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.l(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},4652(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2085),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.ModifierAttributes,this.items=t.items.map(t=>(0,o.f)(new l.K(t,e))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},1204(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>m});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(8388),l=r(9002),h=r(4716),u=r(4652),d=r(1580),p=t([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;class m extends o.w{constructor(t,e,r){if(super(t,e),this.kind=i.q3.ModifierDefinition,this.name=new c.x(t.name,e),t.parameters&&(this.parameters=new l.Z(t.parameters,e,r)),this.attributes=new u.r(t.attributes,e),this.body=(0,a.f)(new d.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.body),!this.parameters){const t=this.attributes.loc.outerStart,e={outerStart:t,outerEnd:t,start:t,end:t};this.parameters=Object.assign(Object.create(l.Z.prototype),{kind:i.q3.ParametersDeclaration,loc:Object.assign({},e),comments:[],parameters:Object.assign(Object.create(h.H.prototype),{kind:i.q3.Parameters,loc:Object.assign({},e),comments:[],items:[]})})}}print(t,e){return(0,n.E)(["modifier ",t.call(e,"name")],this,t,e)}}s()}catch(t){s(t)}})},1699(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{u:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ModifierInvocation,this.name=new o.D(t.name,e),t.arguments&&(this.arguments=(0,n.f)(new c.Z(t.arguments,e,r))),this.updateMetadata(this.name,this.arguments)}cleanModifierInvocationArguments(){this.arguments&&this.arguments.kind===i.q3.PositionalArgumentsDeclaration&&this.arguments.isEmpty&&delete this.arguments}print(t,e){return[t.call(e,"name"),t.call(e,"arguments")]}}s()}catch(t){s(t)}})},7088(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>p});var i=r(8269),n=r(838),a=r(9959),o=r(7958),c=r(8567),l=t([i]),h=l.then?(await l)():l;i=h[0];const{join:u,literalline:d}=n.doc.builders;class p extends c.A{constructor(t,e){super(t,e),this.kind=i.hP.MultiLineComment,this.value=t.unparse()}print(){return(0,a.f)(this)?(0,o.a)(this):u(d,this.value.split("\n"))}}s()}catch(t){s(t)}})},7576(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>p});var i=r(8269),n=r(838),a=r(9959),o=r(7958),c=r(8567),l=t([i]),h=l.then?(await l)():l;i=h[0];const{join:u,literalline:d}=n.doc.builders;class p extends c.A{constructor(t,e){super(t,e),this.kind=i.hP.MultiLineNatSpecComment,this.value=t.unparse()}print(){return(0,a.f)(this)?(0,o.a)(this):u(d,this.value.split("\n"))}}s()}catch(t){s(t)}})},8968(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d={"*":(0,a.H)(["/","%"]),"/":(0,a.H)(["*","%"]),"%":(0,a.H)(["*","/","%"])},p=(0,n.WV)((0,o.n)([i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.MultiplicativeExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand);const s=d[this.operator];if(void 0===s)throw new Error(`Unexpected operator: ${this.operator}`);this.leftOperand=s(this.leftOperand)}print(t,e,r){return p(this,t,e,r)}}s()}catch(t){s(t)}})},316(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8388),c=r(8926),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedArgument,this.name=new o.x(t.name,e),this.value=(0,n.f)(new c.r(t.value,e,r)),this.updateMetadata(this.value)}print(t,e){return[t.call(e,"name"),": ",t.call(e,"value")]}}s()}catch(t){s(t)}})},4797(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>c});var i=r(8269),n=r(6095),a=r(2603),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedArgumentGroup,this.arguments=new a.q(t.arguments,e,r),this.updateMetadata(this.arguments)}print(t,e){return["{",t.call(e,"arguments"),"}"]}}s()}catch(t){s(t)}})},2603(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(316),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.NamedArguments,this.items=t.items.map(t=>new c.j(t,e,r))}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}})},7832(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>c});var i=r(8269),n=r(6095),a=r(4797),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedArgumentsDeclaration,t.arguments&&(this.arguments=new a.S(t.arguments,e,r)),this.updateMetadata(this.arguments)}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}})},3534(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{R:()=>l});var i=r(8269),n=r(6095),a=r(6485),o=r(3562),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NamedImport,this.alias=new a.G(t.alias,e),this.path=new o.L(t.path,e,r),this.updateMetadata(this.alias,this.path)}print(t,e){return["*",t.call(e,"alias")," from ",t.call(e,"path")]}}s()}catch(t){s(t)}})},6010(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.NewExpression,this.typeName=(0,n.f)(new o.C(t.typeName,e,r)),this.updateMetadata(this.typeName)}print(t,e){return["new ",t.call(e,"typeName")]}}s()}catch(t){s(t)}})},6603(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.NumberUnit,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},8947(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>d});var i=r(8269),n=r(8409),a=r(142),o=r(4003),c=r(6095),l=r(8926),h=t([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["&&"]);class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.OrExpression,this.leftOperand=(0,o.f)(new l.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,o.f)(new l.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(t,e,r){return(0,n.a)(this,t,e,r)}}s()}catch(t){s(t)}})},2818(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(2912),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.OverridePaths,this.items=t.items.map(t=>new o.D(t,e))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},6004(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{v:()=>c});var i=r(8269),n=r(6095),a=r(2818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.OverridePathsDeclaration,this.paths=new a.r(t.paths,e),this.updateMetadata(this.paths)}print(t,e){return["(",t.call(e,"paths"),")"]}}s()}catch(t){s(t)}})},7178(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{l:()=>c});var i=r(8269),n=r(6095),a=r(6004),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.OverrideSpecifier,t.overridden&&(this.overridden=new a.v(t.overridden,e)),this.updateMetadata(this.overridden)}print(t,e){return["override",t.call(e,"overridden")]}}s()}catch(t){s(t)}})},3541(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>m});var i=r(8269),n=r(838),a=r(1e3),o=r(4003),c=r(6095),l=r(9979),h=r(1616),u=r(8388),d=t([i,c,l,h,u]);[i,c,l,h,u]=d.then?(await d)():d;const{group:p}=n.doc.builders;class m extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.Parameter,this.typeName=(0,o.f)(new l.C(t.typeName,e,r)),t.storageLocation&&(this.storageLocation=new h.$(t.storageLocation,e)),t.name&&(this.name=new u.x(t.name,e)),this.updateMetadata(this.typeName,this.storageLocation)}print(t,e){return p((0,a.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")]))}}s()}catch(t){s(t)}})},4716(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>u});var i=r(8269),n=r(7578),a=r(8941),o=r(7134),c=r(6095),l=r(3541),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.Parameters,this.items=t.items.map(t=>new l.k(t,e,r))}print(t,e,r){if(this.items.length>0)return(0,n.J)(t.map(e,"items"),{grouped:!1});const s=(0,o.i)(this,t,r);return s.length>0?(0,a.K)(s):""}}s()}catch(t){s(t)}})},9002(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>c});var i=r(8269),n=r(6095),a=r(4716),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ParametersDeclaration,this.parameters=new a.H(t.parameters,e,r),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},9150(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>l});var i=r(8269),n=r(6095),a=r(3562),o=r(6485),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PathImport,this.path=new a.L(t.path,e,r),t.alias&&(this.alias=new o.G(t.alias,e)),this.updateMetadata(this.path,this.alias)}print(t,e){return[t.call(e,"path"),t.call(e,"alias")]}}s()}catch(t){s(t)}})},4872(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>d});var i=r(8269),n=r(7134),a=r(8941),o=r(7578),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,l,h]);[i,n,l,h]=u.then?(await u)():u;class d extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.PositionalArguments,this.items=t.items.map(t=>(0,c.f)(new h.r(t,e,r)))}print(t,e,r){if(this.items.length>0)return(0,o.J)(t.map(e,"items"));const s=(0,n.i)(this,t,r);return s.length>0?(0,a.K)(s):""}}s()}catch(t){s(t)}})},9182(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>l});var i=r(8269),n=r(7540),a=r(6095),o=r(4872),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PositionalArgumentsDeclaration,this.arguments=new o.T(t.arguments,e,r),this.updateMetadata(this.arguments),this.isEmpty=0===this.arguments.items.length&&!t.cst.children().some(({node:t})=>(0,n.t)(t))}print(t,e){return["(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}})},4109(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{_:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PostfixExpression,this.operand=(0,n.f)(new o.r(t.operand,e,r)),this.operator=t.operator.unparse(),this.updateMetadata(this.operand)}print(t,e){return[t.call(e,"operand"),this.operator]}}s()}catch(t){s(t)}})},2440(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1475),l=r(6162),h=r(8234),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.Ya3,c.Y],[i.jAT,l.j],[i.hXl,h.h]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.Pragma,this.variant=d(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},5887(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(2440),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PragmaDirective,this.pragma=(0,n.f)(new o.n(t.pragma,e,r)),this.updateMetadata(this.pragma)}print(t,e){return["pragma ",t.call(e,"pragma"),";"]}}s()}catch(t){s(t)}})},8802(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.PrefixExpression,this.operator=t.operator.unparse(),this.operand=(0,n.f)(new o.r(t.operand,e,r)),this.updateMetadata(this.operand),"delete"===this.operator&&(this.operator="delete ")}print(t,e){return[this.operator,t.call(e,"operand")]}}s()}catch(t){s(t)}})},4700(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.ReceiveFunctionAttribute;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},694(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{P:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(4700),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.ReceiveFunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.Y(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},9394(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(694),h=r(1580),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ReceiveFunctionDefinition,this.parameters=new c.Z(t.parameters,e,r),this.attributes=new l.P(t.attributes,e,r),this.body=(0,a.f)(new h.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.body);for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.E)("receive",this,t,e)}}s()}catch(t){s(t)}})},2993(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>h});var i=r(8269),n=r(4374),a=r(4003),o=r(6095),c=r(8926),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ReturnStatement,t.expression&&(this.expression=(0,a.f)(new c.r(t.expression,e,r))),this.updateMetadata(this.expression)}print(t,e,r){var s;const a=null===(s=this.expression)||void 0===s?void 0:s.kind;return["return",a?(0,n.w)(t.call(e,"expression"),a!==i.q3.TupleExpression&&(!r.experimentalTernaries||a!==i.q3.ConditionalExpression)):"",";"]}}s()}catch(t){s(t)}})},7181(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{I:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(9002),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{group:l}=n.doc.builders;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ReturnsDeclaration,this.variables=new o.Z(t.variables,e,r),this.updateMetadata(this.variables)}print(t,e){return["returns ",l(t.call(e,"variables"))]}}s()}catch(t){s(t)}})},6133(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.RevertStatement,this.error=new o.D(t.error,e),this.arguments=(0,n.f)(new c.Z(t.arguments,e,r)),this.updateMetadata(this.error,this.arguments)}print(t,e){return["revert ",t.call(e,"error"),t.call(e,"arguments"),";"]}}s()}catch(t){s(t)}})},4852(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>y});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=t([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>"]),p=(0,a.H)(["+","-","*","/","**"]),m=(0,n.WV)((0,o.n)([i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class y extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.ShiftExpression,this.leftOperand=(0,c.f)(new h.r(t.leftOperand,e,r)),this.operator=t.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(t.rightOperand,e,r)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=p(this.rightOperand)}print(t,e,r){return m(this,t,e,r)}}s()}catch(t){s(t)}})},717(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.SimpleVersionLiteral,this.items=t.items.map(t=>t.unparse())}print(){return this.items.join(".")}}s()}catch(t){s(t)}})},9441(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>c});var i=r(8269),n=r(8567),a=t([i]),o=a.then?(await a)():a;i=o[0];class c extends n.A{constructor(t,e){super(t,e),this.kind=i.hP.SingleLineComment,this.value=t.unparse()}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}})},4867(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>c});var i=r(8269),n=r(8567),a=t([i]),o=a.then?(await a)():a;i=o[0];class c extends n.A{constructor(t,e){super(t,e),this.kind=i.hP.SingleLineNatSpecComment,this.value=t.unparse()}print(){return this.value.trimEnd()}}s()}catch(t){s(t)}})},6095(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{w:()=>u});var i=r(8269),n=r(7088),a=r(7576),o=r(9441),c=r(4867),l=t([i,n,a,o,c]);function h(t){return{[Symbol.iterator](){let e=t.length;return{next:function(){return e--,{done:e<0,value:t[e]}}}}}}[i,n,a,o,c]=l.then?(await l)():l;class u{constructor(t,e,r=!1){if(t instanceof i.xo){const r=e.offsets.get(t.id)||0,s=r+t.textLength.utf16;return void(this.loc={outerStart:r,outerEnd:s,start:r,end:s})}const s=t.cst,l=e.offsets.get(s.id)||0;let h,u,d=l,p=0;r&&(h=0,u=0);for(const{node:t}of s.children()){const r=t.textLength.utf16;if(t.isNonterminalNode()||!i.di.isTrivia(t.kind))e.offsets.set(t.id,d),null!=h||(h=p),p=0;else{switch(t.kind){case i.hP.MultiLineComment:e.comments.push(new n.j(t,d));break;case i.hP.MultiLineNatSpecComment:e.comments.push(new a.H(t,d));break;case i.hP.SingleLineComment:e.comments.push(new o.a(t,d));break;case i.hP.SingleLineNatSpecComment:e.comments.push(new c.c(t,d))}p+=r}d+=r}null!=h||(h=0),null!=u||(u=p),this.loc={outerStart:l,outerEnd:d,start:l+h,end:d-u}}updateMetadata(...t){const{loc:e}=this;if(e.outerStart===e.start)for(const r of t){if(void 0===r)continue;const{outerStart:t,start:s}=r.loc;if(t===e.start){e.start=s;break}}if(e.outerEnd===e.end)for(const r of h(t)){if(void 0===r)continue;const{outerEnd:t,end:s}=r.loc;if(t===e.end){e.end=s;break}}this.loc=e}}s()}catch(d){s(d)}})},6811(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{M:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(6404),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{line:l}=n.doc.builders;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.SourceUnit,this.members=new o.d(t.members,e,r),this.updateMetadata(this.members)}print(t,e,r){return[t.call(e,"members"),r.parentParser?"":l]}}s()}catch(t){s(t)}})},3357(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5887),l=r(8668),h=r(2795),u=r(3692),d=r(1132),p=r(8324),m=r(3820),y=r(7281),f=r(9885),g=r(897),w=r(7260),x=r(33),v=r(4351),b=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.R)([[i.Kx2,c.K],[i.pMj,l.p],[i.ePz,h.e],[i.JOu,u.J],[i.J4F,d.J],[i.ZOq,p.Z],[i.P3w,m.P],[i.Wgi,y.W],[i.yuy,f.y],[i.em6,g.e],[i.zFc,w.z],[i.Ke0,x.K],[i.wyV,v.w]]);class E extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.SourceUnitMember,this.variant=_(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},6404(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(3357),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.SourceUnitMembers,this.items=t.items.map(t=>(0,a.f)(new c.A(t,e,r)))}print(t,e,r){return(0,n.V)(this,t,e,r)}}s()}catch(t){s(t)}})},2203(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>l});var i=r(8269),n=r(6095),a=r(7178),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.StateVariableAttribute;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.l(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},3002(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2203),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.StateVariableAttributes,this.items=t.items.map(t=>(0,o.f)(new l.c(t,e))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},918(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>y});var i=r(8269),n=r(838),a=r(9857),o=r(4003),c=r(6095),l=r(9979),h=r(3002),u=r(8388),d=r(4965),p=t([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{indent:m}=n.doc.builders;class y extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StateVariableDefinition,this.typeName=(0,o.f)(new l.C(t.typeName,e,r)),this.attributes=new h.T(t.attributes,e),this.name=new u.x(t.name,e),t.value&&(this.value=new d.S(t.value,e,r)),this.updateMetadata(this.typeName,this.attributes,this.value)}print(t,e){return(0,a.u)([t.call(e,"typeName"),m(t.call(e,"attributes"))," ",t.call(e,"name")],[t.call(e,"value"),";"])}}s()}catch(t){s(t)}})},4965(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>h});var i=r(8269),n=r(5536),a=r(4003),o=r(6095),c=r(8926),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StateVariableDefinitionValue,this.value=(0,a.f)(new c.r(t.value,e,r)),this.updateMetadata(this.value)}print(t,e){return[" =",(0,n.U)(t.call(e,"value"),this.value)]}}s()}catch(t){s(t)}})},5211(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>R});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(6157),l=r(2421),h=r(6773),u=r(7978),d=r(3816),p=r(826),m=r(8943),y=r(9892),f=r(3144),g=r(2993),w=r(1553),x=r(3406),v=r(698),b=r(6133),_=r(7299),E=r(6511),T=r(6470),S=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T]=S.then?(await S)():S;const k=(0,a.R)([[i.Qrp,c.Q],[i._U4,l._],[i.aez,h.a],[i.vSB,u.v],[i.peC,d.p],[i.xvE,p.x],[i.IAp,m.I],[i.HdO,y.H],[i.VG,f.V],[i.chs,g.c],[i.emu,w.e],[i.x7K,x.x],[i.HwF,v.H],[i.iiK,b.i],[i.Iy0,_.I],[i.Evn,T.E]]);class R extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.Statement;const s=t.variant;this.variant=s instanceof i.eBw?new E.e(s,e,r):k(s,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},1322(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(5211),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.Statements,this.items=t.items.map(t=>(0,c.f)(new h.W(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},4557(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{o:()=>d});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=t([i,c,l]);[i,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StorageLayoutSpecifier,this.expression=(0,o.f)(new l.r(t.expression,e,r)),this.updateMetadata(this.expression)}print(t,e){return["layout at",(0,a.K)(t.call(e,"expression"),{firstSeparator:u,lastSeparator:t.isFirst?u:""})]}}s()}catch(t){s(t)}})},1616(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.StorageLocation,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},9511(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>y});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3562),l=r(1073),h=r(5191),u=r(7598),d=r(8580),p=t([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;const m=(0,a.R)([[i.LWj,c.L],[i.Kyi,l.K],[i.Cp,h.C],[i.P4c,u.P],[i.Zeo,d.Z]]);class y extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.StringExpression,this.variant=m(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},3562(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=t([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StringLiteral,this.variant=t.variant.unparse(),this.variant=(0,n.T)(this.variant.slice(1,-1),r)}print(){return this.variant}}s()}catch(t){s(t)}})},1073(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(3562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.StringLiterals,this.items=t.items.map(t=>new o.L(t,e,r))}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},8324(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(7462),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StructDefinition,this.name=new a.x(t.name,e),this.members=new o.N(t.members,e,r),this.updateMetadata(this.members)}print(t,e){return["struct ",t.call(e,"name")," {",t.call(e,"members"),"}"]}}s()}catch(t){s(t)}})},5839(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.StructMember,this.typeName=(0,n.f)(new o.C(t.typeName,e,r)),this.name=new c.x(t.name,e),this.updateMetadata(this.typeName)}print(t,e){return[t.call(e,"typeName")," ",t.call(e,"name"),";"]}}s()}catch(t){s(t)}})},7462(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(5839),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;class u extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.StructMembers,this.items=t.items.map(t=>new c.Y(t,e,r))}print(t,e){return this.items.length>0?(0,a.J)(t.map(e,"items"),{firstSeparator:h,separator:h}):""}}s()}catch(t){s(t)}})},8388(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>o});var i=r(6095),n=t([i]),a=n.then?(await n)():n;i=a[0];class o extends i.w{constructor(t,e){super(t,e),this.kind=t.kind,this.value=t.unparse()}print(){return this.value}}s()}catch(t){s(t)}})},1553(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.ThrowStatement}print(){return"throw;"}}s()}catch(t){s(t)}})},698(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>f});var i=r(8269),n=r(838),a=r(8941),o=r(1e3),c=r(4003),l=r(6095),h=r(8926),u=r(7181),d=r(6511),p=r(7259),m=t([i,l,h,u,d,p]);[i,l,h,u,d,p]=m.then?(await m)():m;const{line:y}=n.doc.builders;class f extends l.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TryStatement,this.expression=(0,c.f)(new h.r(t.expression,e,r)),t.returns&&(this.returns=new u.I(t.returns,e,r)),this.body=new d.e(t.body,e,r),this.catchClauses=new p.m(t.catchClauses,e,r),this.updateMetadata(this.expression,this.returns,this.body,this.catchClauses)}print(t,e){return["try",(0,a.K)(t.call(e,"expression"),{firstSeparator:y}),(0,o.I)(" ",[t.call(e,"returns"),t.call(e,"body"),t.call(e,"catchClauses")])]}}s()}catch(t){s(t)}})},9400(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(7562),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TupleDeconstructionElement,t.member&&(this.member=(0,n.f)(new o.n(t.member,e,r))),this.updateMetadata(this.member)}print(t,e){return t.call(e,"member")}}s()}catch(t){s(t)}})},9839(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(9400),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.TupleDeconstructionElements,this.items=t.items.map(t=>new o.r(t,e,r))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},6773(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>u});var i=r(8269),n=r(9857),a=r(4003),o=r(6095),c=r(9839),l=r(8926),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.TupleDeconstructionStatement,this.varKeyword=null===(s=t.varKeyword)||void 0===s?void 0:s.unparse(),this.elements=new c.Y(t.elements,e,r),this.expression=(0,a.f)(new l.r(t.expression,e,r)),this.updateMetadata(this.elements,this.expression)}print(t,e){return(0,n.u)([this.varKeyword?"var (":"(",t.call(e,"elements"),") = "],[t.call(e,"expression"),";"])}}s()}catch(t){s(t)}})},4274(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{b:()=>c});var i=r(8269),n=r(6095),a=r(1634),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TupleExpression,this.items=new a.X(t.items,e,r),this.updateMetadata(this.items)}print(t,e){return["(",t.call(e,"items"),")"]}}s()}catch(t){s(t)}})},7562(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{n:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3700),l=r(539),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.ZCC,c.Z],[i.iRq,l.i]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.TupleMember,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},7651(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{E:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TupleValue,t.expression&&(this.expression=(0,n.f)(new o.r(t.expression,e,r))),this.updateMetadata(this.expression)}print(t,e){return t.call(e,"expression")}}s()}catch(t){s(t)}})},1634(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>h});var i=r(8269),n=r(7578),a=r(1376),o=r(6095),c=r(7651),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.TupleValues,this.items=t.items.map(t=>new c.E(t,e,r))}getSingleExpression(){const t=this.items;return 1===t.length?t[0].expression:void 0}print(t,e){const r=this.getSingleExpression(),s=t.map(e,"items");return r&&(0,a.D)(r)?s:(0,n.J)(s)}}s()}catch(t){s(t)}})},86(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TypeExpression,this.typeName=(0,n.f)(new o.C(t.typeName,e,r)),this.updateMetadata(this.typeName)}print(t,e){return["type(",t.call(e,"typeName"),")"]}}s()}catch(t){s(t)}})},9979(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>y});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(4968),l=r(3476),h=r(9184),u=r(3198),d=r(2912),p=t([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;const m=(0,a.$)([[i.fhq,c.f],[i.RKz,l.R],[i.dMb,h.d],[i.Ddx,d.D]],[[i.$ge,u.$]]);class y extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.TypeName,this.variant=m(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},3700(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>d});var i=r(8269),n=r(1e3),a=r(4003),o=r(6095),c=r(9979),l=r(1616),h=r(8388),u=t([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.TypedTupleMember,this.typeName=(0,a.f)(new c.C(t.typeName,e,r)),t.storageLocation&&(this.storageLocation=new l.$(t.storageLocation,e)),this.name=new h.x(t.name,e),this.updateMetadata(this.typeName,this.storageLocation)}print(t,e){return(0,n.I)(" ",[t.call(e,"typeName"),t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}})},6470(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{E:()=>c});var i=r(8269),n=r(6095),a=r(6511),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UncheckedBlock,this.block=new a.e(t.block,e,r),this.updateMetadata(this.block)}print(t,e){return["unchecked ",t.call(e,"block")]}}s()}catch(t){s(t)}})},1309(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=t([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UnicodeStringLiteral,this.variant=t.variant.unparse(),this.variant=`unicode${(0,n.T)(this.variant.slice(8,-1),r)}`}print(){return this.variant}}s()}catch(t){s(t)}})},8580(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(1309),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.UnicodeStringLiterals,this.items=t.items.map(t=>new o.G(t,e,r))}print(t,e){return l(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},2080(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>l});var i=r(8269),n=r(6095),a=r(1699),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UnnamedFunctionAttribute;const s=t.variant;s instanceof i.xo?this.variant=new o.x(s,e):(this.variant=new a.u(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2263(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2080),h=t([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.UnnamedFunctionAttributes,this.items=t.items.map(t=>(0,o.f)(new l.L(t,e,r))),this.items.sort(a.k)}print(t,e){return t.map(t=>[u,e(t)],"items")}}s()}catch(t){s(t)}})},6871(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{u:()=>d});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(2263),h=r(1580),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UnnamedFunctionDefinition,this.parameters=new c.Z(t.parameters,e,r),this.attributes=new l.q(t.attributes,e,r),this.body=(0,a.f)(new h.r(t.body,e,r)),this.updateMetadata(this.parameters,this.attributes,this.body);for(const t of this.attributes.items)t.kind===i.q3.ModifierInvocation&&t.cleanModifierInvocationArguments()}print(t,e){return(0,n.E)("function",this,t,e)}}s()}catch(t){s(t)}})},539(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(8269),n=r(1e3),a=r(6095),o=r(1616),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.UntypedTupleMember,t.storageLocation&&(this.storageLocation=new o.$(t.storageLocation,e)),this.name=new c.x(t.name,e),this.updateMetadata(this.storageLocation)}print(t,e){return(0,n.I)(" ",[t.call(e,"storageLocation"),t.call(e,"name")])}}s()}catch(t){s(t)}})},7260(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{z:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8388),c=r(3198),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.UserDefinedValueTypeDefinition,this.name=new o.x(t.name,e),this.valueType=(0,n.f)(new c.$(t.valueType,e)),this.updateMetadata(this.valueType)}print(t,e){return["type ",t.call(e,"name")," is ",t.call(e,"valueType"),";"]}}s()}catch(t){s(t)}})},4916(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>c});var i=r(8269),n=r(6095),a=r(7818),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingAlias,this.operator=new a.Z(t.operator,e),this.updateMetadata(this.operator)}print(t,e){return[" as ",t.call(e,"operator")]}}s()}catch(t){s(t)}})},6575(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(2912),l=r(7972),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.Ddx,c.D],[i.rNJ,l.r]]);class d extends o.w{constructor(t,e){super(t,e),this.kind=n.q3.UsingClause,this.variant=u(t.variant,e),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},7972(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{r:()=>c});var i=r(8269),n=r(6095),a=r(983),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingDeconstruction,this.symbols=new a.e(t.symbols,e),this.updateMetadata(this.symbols)}print(t,e){return["{",t.call(e,"symbols"),"}"]}}s()}catch(t){s(t)}})},4288(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>l});var i=r(8269),n=r(6095),a=r(2912),o=r(4916),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingDeconstructionSymbol,this.name=new a.D(t.name,e),t.alias&&(this.alias=new o.j(t.alias,e)),this.updateMetadata(this.name,this.alias)}print(t,e){return[t.call(e,"name"),t.call(e,"alias")]}}s()}catch(t){s(t)}})},983(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{e:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(4288),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.UsingDeconstructionSymbols,this.items=t.items.map(t=>new c.B(t,e))}print(t,e,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(t){s(t)}})},33(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(6575),c=r(2399),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){var s;super(t,e),this.kind=i.q3.UsingDirective,this.clause=(0,n.f)(new o.g(t.clause,e)),this.target=(0,n.f)(new c.A(t.target,e,r)),this.globalKeyword=null===(s=t.globalKeyword)||void 0===s?void 0:s.unparse(),this.updateMetadata(this.clause,this.target)}print(t,e){return["using ",t.call(e,"clause")," for ",t.call(e,"target"),this.globalKeyword?" global;":";"]}}s()}catch(t){s(t)}})},7818(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Z:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.UsingOperator,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},2399(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.UsingTarget;const s=t.variant;s instanceof i.xo?this.variant=new c.x(s,e):(this.variant=(0,n.f)(new o.C(s,e,r)),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2421(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{_:()=>f});var i=r(8269),n=r(838),a=r(9857),o=r(4003),c=r(6095),l=r(6030),h=r(1616),u=r(8388),d=r(1829),p=t([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{indent:m,line:y}=n.doc.builders;class f extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.VariableDeclarationStatement,this.variableType=(0,o.f)(new l.L(t.variableType,e,r)),t.storageLocation&&(this.storageLocation=new h.$(t.storageLocation,e)),this.name=new u.x(t.name,e),t.value&&(this.value=new d.y(t.value,e,r)),this.updateMetadata(this.variableType,this.storageLocation,this.value)}print(t,e){return(0,a.u)([t.call(e,"variableType"),this.storageLocation?m([y,t.call(e,"storageLocation")]):""," ",t.call(e,"name")],[t.call(e,"value"),";"])}}s()}catch(t){s(t)}})},6030(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.VariableDeclarationType;const s=t.variant;s instanceof i.xo?this.variant=new c.x(s,e):(this.variant=(0,n.f)(new o.C(s,e,r)),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},1829(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{y:()=>h});var i=r(8269),n=r(5536),a=r(4003),o=r(6095),c=r(8926),l=t([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.VariableDeclarationValue,this.expression=(0,a.f)(new c.r(t.expression,e,r)),this.updateMetadata(this.expression)}print(t,e){return[" =",(0,n.U)(t.call(e,"expression"),this.expression)]}}s()}catch(t){s(t)}})},852(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{L:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(8225),l=r(6336),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.GoE,c.G],[i.BIR,l.B]]);class d extends o.w{constructor(t,e){super(t,e),this.kind=n.q3.VersionExpression,this.variant=u(t.variant,e),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},3586(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>u});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(852),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{join:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.VersionExpressionSet,this.items=t.items.map(t=>(0,a.f)(new c.L(t,e)))}print(t,e){return h(" ",t.map(e,"items"))}}s()}catch(t){s(t)}})},4313(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(3586),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.VersionExpressionSets,this.items=t.items.map(t=>new o.T(t,e))}print(t,e){return l(" || ",t.map(e,"items"))}}s()}catch(t){s(t)}})},3091(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{w:()=>l});var i=r(8269),n=r(6095),a=r(717),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionLiteral;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.i(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2754(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{X:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionOperator,this.variant=t.variant.unparse()}print(){return this.variant}}s()}catch(t){s(t)}})},8234(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>c});var i=r(8269),n=r(6095),a=r(4313),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionPragma,this.sets=new a.k(t.sets,e),this.updateMetadata(this.sets)}print(t,e){return["solidity ",t.call(e,"sets")]}}s()}catch(t){s(t)}})},8225(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(3091),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionRange,this.start=(0,n.f)(new o.w(t.start,e)),this.end=(0,n.f)(new o.w(t.end,e)),this.updateMetadata(this.start,this.end)}print(t,e){return[t.call(e,"start")," - ",t.call(e,"end")]}}s()}catch(t){s(t)}})},6336(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{B:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2754),c=r(3091),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.VersionTerm,t.operator&&(this.operator=new o.X(t.operator,e)),this.literal=(0,n.f)(new c.w(t.literal,e)),this.updateMetadata(this.operator,this.literal)}print(t,e){return[t.call(e,"operator"),t.call(e,"literal")]}}s()}catch(t){s(t)}})},826(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>d});var i=r(8269),n=r(8941),a=r(4374),o=r(4003),c=r(6095),l=r(8926),h=r(5211),u=t([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;class d extends c.w{constructor(t,e,r){super(t,e),this.kind=i.q3.WhileStatement,this.condition=(0,o.f)(new l.r(t.condition,e,r)),this.body=(0,o.f)(new h.W(t.body,e,r)),this.updateMetadata(this.condition,this.body)}print(t,e){return["while (",(0,n.K)(t.call(e,"condition")),")",(0,a.w)(t.call(e,"body"),this.body.kind!==i.q3.Block)]}}s()}catch(t){s(t)}})},9466(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>h});var i=r(8269),n=r(7578),a=r(4003),o=r(6095),c=r(9838),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.YulArguments,this.items=t.items.map(t=>(0,a.f)(new c.h(t,e,r)))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},5101(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{W:()=>l});var i=r(8269),n=r(6095),a=r(8906),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulAssignmentOperator;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.d(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},2319(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{M:()=>c});var i=r(8269),n=r(6095),a=r(1514),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulBlock,this.statements=new a.f(t.statements,e,r),this.updateMetadata(this.statements)}print(t,e){return["{",t.call(e,"statements"),"}"]}}s()}catch(t){s(t)}})},2888(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{b:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulBreakStatement}print(){return"break"}}s()}catch(t){s(t)}})},8906(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulColonAndEqual}print(){return":="}}s()}catch(t){s(t)}})},900(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulContinueStatement}print(){return"continue"}}s()}catch(t){s(t)}})},3495(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>c});var i=r(8269),n=r(6095),a=r(2319),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulDefaultCase,this.body=new a.M(t.body,e,r),this.updateMetadata(this.body)}print(t,e){return["default ",t.call(e,"body")]}}s()}catch(t){s(t)}})},2830(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{T:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulEqualAndColon}print(){return"=:"}}s()}catch(t){s(t)}})},9838(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{h:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9878),l=r(7769),h=r(3859),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.$)([[i.VZT,c.V],[i.i7X,h.i]],[[i.KO$,l.K]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulExpression,this.variant=d(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},9192(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(2319),l=r(9838),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{join:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulForStatement,this.initialization=new c.M(t.initialization,e,r),this.condition=(0,a.f)(new l.h(t.condition,e,r)),this.iterator=new c.M(t.iterator,e,r),this.body=new c.M(t.body,e,r),this.updateMetadata(this.initialization,this.condition,this.iterator,this.body)}print(t,e){return u(" ",["for",t.call(e,"initialization"),t.call(e,"condition"),t.call(e,"iterator"),t.call(e,"body")])}}s()}catch(t){s(t)}})},9878(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9838),c=r(9466),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulFunctionCallExpression,this.operand=(0,n.f)(new o.h(t.operand,e,r)),this.arguments=new c.H(t.arguments,e,r),this.updateMetadata(this.operand,this.arguments)}print(t,e){return[t.call(e,"operand"),"(",t.call(e,"arguments"),")"]}}s()}catch(t){s(t)}})},3457(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>u});var i=r(8269),n=r(6095),a=r(8388),o=r(8026),c=r(3437),l=r(2319),h=t([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends n.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulFunctionDefinition,this.name=new a.x(t.name,e),this.parameters=new o.f(t.parameters,e),t.returns&&(this.returns=new c.c(t.returns,e)),this.body=new l.M(t.body,e,r),this.updateMetadata(this.parameters,this.returns,this.body)}print(t,e){return["function ",t.call(e,"name"),t.call(e,"parameters"),t.call(e,"returns")||" ",t.call(e,"body")]}}s()}catch(t){s(t)}})},6570(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{N:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9838),c=r(2319),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulIfStatement,this.condition=(0,n.f)(new o.h(t.condition,e,r)),this.body=new c.M(t.body,e,r),this.updateMetadata(this.condition,this.body)}print(t,e){return["if ",t.call(e,"condition")," ",t.call(e,"body")]}}s()}catch(t){s(t)}})},672(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{dedent:l,line:h}=n.doc.builders;class u extends a.w{constructor(t,e){super(t,e),this.kind=i.q3.YulLabel,this.label=new o.x(t.label,e)}print(t,e){return[l(h),t.call(e,"label"),":"]}}s()}catch(t){s(t)}})},9976(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{d:()=>o});var i=r(8269),n=r(6095),a=t([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulLeaveStatement}print(){return"leave"}}s()}catch(t){s(t)}})},7769(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5191),l=r(3562),h=r(8388),u=t([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.Cp,c.C],[i.LWj,l.L]]);class p extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulLiteral;const s=t.variant;s instanceof n.xo?this.variant=new h.x(s,e):(this.variant=d(s,e,r),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},9388(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{j:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulParameters,this.items=t.items.map(t=>new o.x(t,e))}print(t,e){return(0,n.J)(t.map(e,"items"))}}s()}catch(t){s(t)}})},8026(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>c});var i=r(8269),n=r(6095),a=r(9388),o=t([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulParametersDeclaration,this.parameters=new a.j(t.parameters,e),this.updateMetadata(this.parameters)}print(t,e){return["(",t.call(e,"parameters"),")"]}}s()}catch(t){s(t)}})},3859(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulPath,this.items=t.items.map(t=>new o.x(t,e))}print(t,e){return l(".",t.map(e,"items"))}}s()}catch(t){s(t)}})},8578(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{F:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(3859),c=t([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulPaths,this.items=t.items.map(t=>new o.i(t,e))}print(t,e){return l(", ",t.map(e,"items"))}}s()}catch(t){s(t)}})},3437(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{c:()=>u});var i=r(8269),n=r(838),a=r(8941),o=r(6095),c=r(8634),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e),this.kind=i.q3.YulReturnsDeclaration,this.variables=new c.b(t.variables,e),this.updateMetadata(this.variables)}print(t,e){return(0,a.K)(["->",t.call(e,"variables")],{firstSeparator:h})}}s()}catch(t){s(t)}})},5003(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>l});var i=r(8269),n=r(6095),a=r(2830),o=r(8388),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{constructor(t,e){super(t,e),this.kind=i.q3.YulStackAssignmentOperator;const r=t.variant;r instanceof i.xo?this.variant=new o.x(r,e):(this.variant=new a.T(r,e),this.updateMetadata(this.variant))}}s()}catch(t){s(t)}})},5394(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(5003),h=r(8388),u=t([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;const{line:d}=n.doc.builders;class p extends c.w{constructor(t,e){super(t,e),this.kind=i.q3.YulStackAssignmentStatement,this.assignment=(0,o.f)(new l.g(t.assignment,e)),this.variable=new h.x(t.variable,e),this.updateMetadata(this.assignment)}print(t,e){return[t.call(e,"assignment"),(0,a.K)(t.call(e,"variable"),{firstSeparator:d,lastSeparator:""})]}}s()}catch(t){s(t)}})},6155(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(2319),l=r(3457),h=r(8453),u=r(3752),d=r(5394),p=r(6570),m=r(9192),y=r(1335),f=r(9976),g=r(2888),w=r(900),x=r(672),v=r(9838),b=t([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.$)([[i.gPA,l.g],[i.OKT,h.O],[i.xu3,u.x],[i.fOI,d.f],[i.Nv1,p.N],[i.D7j,m.D],[i.Q2m,y.Q],[i.d6v,f.d],[i.bbA,g.b],[i.NM3,w.N],[i.pOL,x.p]],[[i.h7v,v.h]]);class E extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulStatement;const s=t.variant;this.variant=s instanceof i.Mmb?new c.M(s,e,r):_(s,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},1514(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(1041),c=r(4003),l=r(6095),h=r(6155),u=t([i,o,l,h]);[i,o,l,h]=u.then?(await u)():u;const{hardline:d}=n.doc.builders;class p extends l.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.YulStatements,this.items=t.items.map(t=>(0,c.f)(new h.C(t,e,r)))}print(t,e,r){var s;return this.items.length>0||((null===(s=this.comments)||void 0===s?void 0:s.length)||0)>0?(0,a.K)((0,o.V)(this,t,e,r),{firstSeparator:d}):""}}s()}catch(t){s(t)}})},2688(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{p:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3495),l=r(3211),h=t([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.a1h,c.a],[i.Gpj,l.G]]);class d extends o.w{constructor(t,e,r){super(t,e),this.kind=n.q3.YulSwitchCase,this.variant=u(t.variant,e,r),this.updateMetadata(this.variant)}}s()}catch(t){s(t)}})},9543(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{q:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(2688),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h,join:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e,!0),this.kind=i.q3.YulSwitchCases,this.items=t.items.map(t=>(0,a.f)(new c.p(t,e,r)))}print(t,e){return u(h,t.map(e,"items"))}}s()}catch(t){s(t)}})},1335(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Q:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(9838),l=r(9543),h=t([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{hardline:u}=n.doc.builders;class d extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulSwitchStatement,this.expression=(0,a.f)(new c.h(t.expression,e,r)),this.cases=new l.q(t.cases,e,r),this.updateMetadata(this.expression,this.cases)}print(t,e){return["switch ",t.call(e,"expression"),u,t.call(e,"cases")]}}s()}catch(t){s(t)}})},3211(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{G:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(7769),c=r(2319),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulValueCase,this.value=(0,n.f)(new o.K(t.value,e,r)),this.body=new c.M(t.body,e,r),this.updateMetadata(this.value,this.body)}print(t,e){return["case ",t.call(e,"value")," ",t.call(e,"body")]}}s()}catch(t){s(t)}})},3752(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{x:()=>p});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(8578),l=r(5101),h=r(9838),u=t([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{join:d}=n.doc.builders;class p extends o.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulVariableAssignmentStatement,this.variables=new c.F(t.variables,e),this.assignment=(0,a.f)(new l.W(t.assignment,e)),this.expression=(0,a.f)(new h.h(t.expression,e,r)),this.updateMetadata(this.variables,this.assignment,this.expression)}print(t,e){return d(" ",[t.call(e,"variables"),t.call(e,"assignment"),t.call(e,"expression")])}}s()}catch(t){s(t)}})},8453(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{O:()=>h});var i=r(8269),n=r(1e3),a=r(6095),o=r(9861),c=r(8634),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulVariableDeclarationStatement,this.variables=new c.b(t.variables,e),t.value&&(this.value=new o.S(t.value,e,r)),this.updateMetadata(this.value)}print(t,e){return(0,n.I)(" ",[["let",t.call(e,"variables")],t.call(e,"value")])}}s()}catch(t){s(t)}})},9861(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{S:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(5101),c=r(9838),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{constructor(t,e,r){super(t,e),this.kind=i.q3.YulVariableDeclarationValue,this.assignment=(0,n.f)(new o.W(t.assignment,e)),this.expression=(0,n.f)(new c.h(t.expression,e,r)),this.updateMetadata(this.assignment,this.expression)}print(t,e){return[t.call(e,"assignment")," ",t.call(e,"expression")]}}s()}catch(t){s(t)}})},8634(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{b:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(8388),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{constructor(t,e){super(t,e,!0),this.kind=i.q3.YulVariableNames,this.items=t.items.map(t=>new c.x(t,e))}print(t,e){return(0,a.J)(t.map(e,"items"),{firstSeparator:h,lastSeparator:""})}}s()}catch(t){s(t)}})},1059(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{f:()=>u});var i=r(8269),n=r(838),a=r(1376),o=t([i,a]);[i,a]=o.then?(await o)():o;const{group:c,line:l}=n.doc.builders;function h({operator:t,leftOperand:e},r,s,n){const o=r.call(s,"rightOperand"),h="end"===n.experimentalOperatorPosition?[` ${t}`,l,o]:[l,`${t} `,o],u=r.parent;return(0,a.D)(e)||(0,a.D)(u)&&u.kind!==i.q3.AssignmentExpression?h:c(h)}const u=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(r,s);return a([s.call(i,"leftOperand"),o(h(r,s,i,n))])};s()}catch(d){s(d)}})},5536(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{U:()=>c});var i=r(8269),n=r(6543),a=r(4374),o=t([i,n]);function c(t,e){return(0,a.w)(t,e.kind!==i.q3.ArrayExpression&&e.kind!==i.q3.TupleExpression&&!(0,n.Y)(e))}[i,n]=o.then?(await o)():o,s()}catch(l){s(l)}})},4209(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{WV:()=>f,Wu:()=>y,xM:()=>d,z9:()=>m});var i=r(8269),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=t([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=t=>e=>r=>{const s=e.parent;return(0,o.D)(s)?t(s)?h(r):r:h(r)},p=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),m=(t,e,r)=>p(t)||t.kind===i.q3.ExpressionStatement&&e.getNode(r+1).kind===i.q3.ForStatement,y=t=>(e,r)=>s=>{for(let i,n=1,a=e;i=r.getNode(n),!m(i,r,n);n++,a=i){if(!(0,o.D)(i))return u(s);if(t(i))return u(s);if(a===i.rightOperand)break}return s},f=t=>(0,c.f)(d(t),y(t));s()}catch(t){s(t)}})},7134(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>p});var i=r(838),n=r(7431),a=r(1e3),o=r(9060),c=t([n]),l=c.then?(await c)():c;n=l[0];const{hardline:h,line:u}=i.doc.builders;function d(t){return!t.trailing&&!t.leading&&!t.printed}function p(t,e,r){return void 0===t.comments?[]:(0,a.I)(u,e.map((t,e,s)=>{const a=t.node;if(!d(a))return"";a.printed=!0;const c=e===s.length-1||-1===s.slice(e+1).findIndex(d);return[(0,n.X)(t),!c&&i.util.isNextLineEmpty(r.originalText,(0,o.I)(a))?h:""]},"comments"))}s()}catch(m){s(m)}})},304(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{E:()=>m,c:()=>p});var i=r(8269),n=r(838),a=r(1e3),o=t([i]),c=o.then?(await o)():o;i=c[0];const{dedent:l,group:h,indent:u,line:d}=n.doc.builders;function p(t,e,r,s){const n=e.body;return h([t,r.call(s,"parameters"),u(h([(0,a.I)(d,[r.call(s,"attributes"),r.call(s,"returns")]),n&&n.kind===i.q3.Block?l(d):""]))])}function m(t,e,r,s){return[p(t,e,r,s),r.call(s,"body")]}s()}catch(y){s(y)}})},9857(t,e,r){r.d(e,{u:()=>a});var s=r(838);const{group:i,indentIfBreak:n}=s.doc.builders;function a(t,e){const r=Symbol("Slang.GroupAndIndentIfBreakPair");return[i(t,{id:r}),n(e,{groupId:r})]}},7958(t,e,r){r.d(e,{a:()=>a});var s=r(838);const{hardline:i,join:n}=s.doc.builders;function a(t){const e=t.value.split("\n");return n(i,e.map((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`))}},4374(t,e,r){r.d(e,{w:()=>o});var s=r(838);const{group:i,indent:n,line:a}=s.doc.builders;function o(t,e=!0,r={}){return e?i(n([a,t]),r):[" ",t]}},8409(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{a:()=>p});var i=r(8269),n=r(838),a=r(1376),o=r(1059),c=r(4209),l=t([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{indent:h}=n.doc.builders,u=(0,c.xM)(()=>!1),d=(t,e)=>r=>{for(let s,n=1,o=t;!(s=e.getNode(n),(0,c.z9)(s,e,n)||s.kind===i.q3.ConditionalExpression&&s.operand===o);n++,o=s){if(!(0,a.D)(s))return h(r);if(o===s.rightOperand)break}return r},p=(0,o.f)(u,d);s()}catch(t){s(t)}})},1041(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{V:()=>h});var i=r(8269),n=r(838),a=r(9060),o=r(7134),c=t([i,o]);[i,o]=c.then?(await c)():c;const{hardline:l}=n.doc.builders;function h(t,e,r,s){return t.items.length>0?e.map(t=>{const e=t.node;return[t.isFirst||e.kind===i.q3.YulLabel?"":l,r(t),!t.isLast&&n.util.isNextLineEmpty(s.originalText,(0,a.I)(e))?l:""]},"items"):(0,o.i)(t,e,s)}s()}catch(u){s(u)}})},8941(t,e,r){r.d(e,{K:()=>c});var s=r(838);const{group:i,hardline:n,indent:a,softline:o}=s.doc.builders;function c(t,{firstSeparator:e=o,lastSeparator:r=e,grouped:s=e!==n}={}){const c=[a([e,t]),r];return s?i(c):c}},7578(t,e,r){r.d(e,{J:()=>o});var s=r(838),i=r(8941);const{join:n,line:a}=s.doc.builders;function o(t,{firstSeparator:e,separator:r=[",",a],lastSeparator:s,grouped:o}={}){return(0,i.K)(n(r,t),{firstSeparator:e,lastSeparator:s,grouped:o})}},1529(t,e,r){r.d(e,{T:()=>i});var s=r(838);function i(t,e){const r=e.singleQuote?"'":'"',i="'"===r?'"':"'";let n=0,a=0;for(const e of t)e===r?n++:e===i&&a++;const o=n>a?i:r;return s.util.makeString(t,o)}},142(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{H:()=>h});var i=r(8269),n=r(4274),a=r(1634),o=r(7651),c=r(1376),l=t([i,n,a,o,c]);function h(t){const e=new Set(t);return t=>{if((0,c.D)(t)&&e.has(t.operator)){const e=t.loc;return Object.assign(Object.create(n.b.prototype),{kind:i.q3.TupleExpression,loc:Object.assign({},e),comments:[],items:Object.assign(Object.create(a.X.prototype),{kind:i.q3.TupleValues,loc:Object.assign({},e),comments:[],items:[Object.assign(Object.create(o.E.prototype),{kind:i.q3.TupleValue,loc:Object.assign({},e),comments:[],expression:t})]})})}return t}}[i,n,a,o,c]=l.then?(await l)():l,s()}catch(u){s(u)}})},6563(t,e,r){function s(t){const e=new Set(t);return t=>e.has(t.kind)}r.d(e,{n:()=>s})},7427(t,e,r){r.d(e,{$:()=>n,R:()=>i});var s=r(4003);function i(t){return(e,r,s)=>{for(const[i,n]of t)if(e instanceof i)return new n(e,r,s);throw new Error(`Unexpected variant: ${JSON.stringify(e)}`)}}function n(t,e){const r=i(t);return(t,i,n)=>{for(const[r,a]of e)if(t instanceof r)return(0,s.f)(new a(t,i,n));return r(t,i,n)}}},4254(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>p});var i=r(8269),n=r(5130),a=r(3704),o=r(9589),c=t([i,n,a]);[i,n,a]=c.then?(await c)():c;const l=a.g.allVersions(),h=l.length;function u(t,e){const r=n.i.create(e);return{parser:r,parseOutput:r.parseNonterminal(i.q3.SourceUnit,t)}}function d(t,e){return new Error(`We encountered the following syntax error:\n\n\t${t.parseOutput.errors()[0].message}\n\n${e}`)}function p(t,e){const r=(0,o.maxSatisfying)(l,e.compiler);if(r){const e=u(t,r);if(!e.parseOutput.isValid())throw d(e,`Based on the compiler option provided, we inferred your code to be using Solidity version ${e.parser.languageVersion}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`);return e}const s=a.g.inferLanguageVersions(t),i=s.length;if(0===i||i===h){const e=u(t,l[h-1]);if(!e.parseOutput.isValid())throw d(e,`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${e.parser.languageVersion}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`);return e}const n=u(t,s[s.length-1]);if(!n.parseOutput.isValid())throw d(n,`Based on the pragma statements, we inferred your code to be using Solidity version ${n.parser.languageVersion}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`);return n}s()}catch(m){s(m)}})},4003(t,e,r){function s({variant:t,loc:e}){return t.loc=e,t}r.d(e,{f:()=>s})},1376(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{D:()=>o});var i=r(8269),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.EqualityExpression,i.q3.InequalityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);s()}catch(t){s(t)}})},6543(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>o});var i=r(8269),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.FunctionCallExpression,i.q3.IndexAccessExpression,i.q3.MemberAccessExpression]);s()}catch(t){s(t)}})},7540(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{C:()=>c,t:()=>o});var i=r(8269),n=r(6563),a=t([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment]),c=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment]);s()}catch(t){s(t)}})},9959(t,e,r){function s(t){const e=t.value.slice(1,-1).split("\n");return e.length>1&&e.every(t=>"*"===t.trimStart()[0])}r.d(e,{f:()=>s})},4079(t,e,r){function s(t){return"label"===t.type}r.d(e,{J:()=>s})},1e3(t,e,r){r.d(e,{I:()=>n});var s=r(838);const{join:i}=s.doc.builders;function n(t,e){return i(t,e.filter(Boolean))}},9060(t,e,r){function s(t){return"string"==typeof t||void 0===t?-1:t.loc.start}function i(t){return"string"==typeof t||void 0===t?-1:t.loc.end}r.d(e,{I:()=>i,z:()=>s})},4145(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{Y:()=>o});var i=r(8269),n=t([i]),a=n.then?(await n)():n;function o({kind:t},{kind:e}){return t===i.q3.InheritanceSpecifier&&e===i.q3.StorageLayoutSpecifier?-1:e===i.q3.InheritanceSpecifier&&t===i.q3.StorageLayoutSpecifier?1:0}i=a[0],s()}catch(c){s(c)}})},3111(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{k:()=>l});var i=r(8269),n=r(8388),a=t([i,n]);[i,n]=a.then?(await a)():a;const o=new Set(["external","internal","public","private"]),c=new Set(["pure","constant","payable","view"]);function l(t,e){const r=t instanceof n.x,s=e instanceof n.x;if(r&&!s)return-1;if(s&&!r)return 1;if(r&&s){if(o.has(t.value))return-1;if(o.has(e.value))return 1;if(c.has(t.value))return-1;if(c.has(e.value))return 1}if(!r&&!s){if(t.kind===i.q3.OverrideSpecifier&&e.kind===i.q3.ModifierInvocation)return-1;if(e.kind===i.q3.OverrideSpecifier&&t.kind===i.q3.ModifierInvocation)return 1}return 0}s()}catch(h){s(h)}})},466(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>u});var i=r(7540),n=r(9060),a=t([i]),o=a.then?(await a)():a;function c({comments:t}){return Boolean(null==t?void 0:t.some(t=>"prettier-ignore"===t.value.slice(2,(0,i.t)(t)?-2:void 0).trim()))}function l(t){const e=t.node;if(null===e||"object"!=typeof e)return;let r;for(r in e)switch(r){case"kind":case"loc":case"updateMetadata":break;case"comments":t.each(t=>t.node.printed=!0,r);break;default:const s=e[r];if("object"==typeof s){if(Array.isArray(s))return void t.each(l,r);t.call(l,r)}}}function h(t,e,r){const s=t.node;return c(s)?(l(t),e.originalText.slice((0,n.z)(s),(0,n.I)(s))):s.print(t,r,e)}i=o[0];const u=h;s()}catch(d){s(d)}})},3927(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{A:()=>c});var i=r(8683),n=r(4254),a=r(6811),o=t([i,n,a]);function c(t,e){const{parser:r,parseOutput:s}=(0,n.C)(t,e);e.compiler=r.languageVersion;const o=[],c=new a.M(new i.Mk(s.tree.asNonterminalNode()),{offsets:new Map,comments:o},e);return c.comments=o.sort((t,e)=>t.loc.start-e.loc.start),c}[i,n,a]=o.then?(await o)():o,s()}catch(l){s(l)}})},7870(t,e,r){t.exports=r.p+"45a2f8ea451fae5aed45.wasm"},1112(t,e,r){t.exports=r.p+"591f276013d241f7a687.wasm"},9719(t,e,r){t.exports=r.p+"af4fa2af1d540c759e83.wasm"},450(t,e,r){t.exports=r.p+"5f52a6c1a6d6fa4155a9.wasm"},838(t){t.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},9031(t){t.exports=import("node:fs/promises")},8664(t,e,r){r.d(e,{NS:()=>l,Uo:()=>y,bX:()=>m,cA:()=>i.cA,vF:()=>f});var s=r(9340),i=r(5527);const{InputStream:n,OutputStream:a}=s.oS,o=Symbol.dispose??Symbol.for("dispose");class c extends Error{constructor(t){super("Component exited "+(0===t?"successfully":"with error")),this.exitError=!0,this.code=t}}const l={exit(t){throw new c("err"===t.tag?1:0)},exitWithCode(t){throw new c(t)}},h=new n({blockingRead(t){},subscribe(){},[o](){}});let u=new TextDecoder;const d=new a({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.log(u.decode(t))},blockingFlush(){},[o](){}}),p=new a({write(t){10==t[t.length-1]&&(t=t.subarray(0,t.length-1)),console.error(u.decode(t))},blockingFlush(){},[o](){}}),m={InputStream:n,getStdin:()=>h},y={OutputStream:a,getStdout:()=>d},f={OutputStream:a,getStderr:()=>p};class g{}new g,new g,new class{}},5527(t,e,r){r.d(e,{cA:()=>n});let s=[],i=[];const n={getEnvironment:()=>s,getArguments:()=>i,initialCwd:()=>"/"}},6190(t,e,r){r.d(e,{jw:()=>m,gK:()=>y});var s=r(9340);r(5527);const{InputStream:i,OutputStream:n}=s.oS;const a={seconds:BigInt(0),nanoseconds:0};function o(t,e,r){"."===e&&p&&u(p[0])===t&&(e="/").startsWith("/")&&"/"!==e&&(e=e.slice(1));let s,i=t;do{if(!i||!i.dir)throw"not-directory";s=e.indexOf("/");const t=-1===s?e:e.slice(0,s);if(".."===t)throw"no-entry";"."===t||""===t||(i=!i.dir[t]&&r.create?i.dir[t]=r.directory?{dir:{}}:{source:new Uint8Array([])}:i.dir[t]),e=e.slice(s+1)}while(-1!==s);if(!i)throw"no-entry";return i}function c(t){return"string"==typeof t.source&&(t.source=(new TextEncoder).encode(t.source)),t.source}class l{constructor(t){this.idx=0,this.entries=t}readDirectoryEntry(){if(this.idx===this.entries.length)return null;const[t,e]=this.entries[this.idx];return this.idx+=1,{name:t,type:e.dir?"directory":"regular-file"}}}class h{#t;#e;#r=0;_getEntry(t){return t.#e}constructor(t,e){e?this.#t=t:this.#e=t}readViaStream(t){const e=c(this.#e);let r=Number(t);return new i({blockingRead(t){if(r===e.byteLength)throw{tag:"closed"};const s=e.slice(r,r+Number(t));return r+=s.byteLength,s}})}writeViaStream(t){const e=this.#e;let r=Number(t);return new n({write(t){const s=new Uint8Array(t.byteLength+e.source.byteLength);return s.set(e.source,0),s.set(t,r),r+=t.byteLength,e.source=s,t.byteLength}})}appendViaStream(){console.log("[filesystem] APPEND STREAM")}advise(t,e,r,s){console.log("[filesystem] ADVISE",t,e,r,s)}syncData(){console.log("[filesystem] SYNC DATA")}getFlags(){console.log("[filesystem] FLAGS FOR")}getType(){return this.#t?"fifo":this.#e.dir?"directory":this.#e.source?"regular-file":"unknown"}setSize(t){console.log("[filesystem] SET SIZE",t)}setTimes(t,e){console.log("[filesystem] SET TIMES",t,e)}read(t,e){const r=c(this.#e);return[r.slice(e,e+t),e+t>=r.byteLength]}write(t,e){if(0!==e)throw"invalid-seek";return this.#e.source=t,t.byteLength}readDirectory(){if(!this.#e?.dir)throw"bad-descriptor";return new l(Object.entries(this.#e.dir).sort(([t],[e])=>t>e?1:-1))}sync(){console.log("[filesystem] SYNC")}createDirectoryAt(t){if(o(this.#e,t,{create:!0,directory:!0}).source)throw"exist"}stat(){let t="unknown",e=BigInt(0);if(this.#e.source){t="regular-file";const r=c(this.#e);e=BigInt(r.byteLength)}else this.#e.dir&&(t="directory");return{type:t,linkCount:BigInt(0),size:e,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}statAt(t,e){const r=o(this.#e,e,{create:!1,directory:!1});let s="unknown",i=BigInt(0);if(r.source){s="regular-file";const t=c(r);i=BigInt(t.byteLength)}else r.dir&&(s="directory");return{type:s,linkCount:BigInt(0),size:i,dataAccessTimestamp:a,dataModificationTimestamp:a,statusChangeTimestamp:a}}setTimesAt(){console.log("[filesystem] SET TIMES AT")}linkAt(){console.log("[filesystem] LINK AT")}openAt(t,e,r,s,i){const n=o(this.#e,e,r);return new h(n)}readlinkAt(){console.log("[filesystem] READLINK AT")}removeDirectoryAt(){console.log("[filesystem] REMOVE DIR AT")}renameAt(){console.log("[filesystem] RENAME AT")}symlinkAt(){console.log("[filesystem] SYMLINK AT")}unlinkFileAt(){console.log("[filesystem] UNLINK FILE AT")}isSameObject(t){return t===this}metadataHash(){let t=BigInt(0);return t+=BigInt(this.#r),{upper:t,lower:BigInt(0)}}metadataHashAt(t,e){let r=BigInt(0);return r+=BigInt(this.#r),{upper:r,lower:BigInt(0)}}}const u=h.prototype._getEntry;delete h.prototype._getEntry;let d=[[new h({dir:{}}),"/"]],p=d[0];const m={getDirectories:()=>d},y={Descriptor:h,DirectoryEntryStream:l,filesystemErrorCode:t=>function(t){switch(t.code){case"EACCES":return"access";case"EAGAIN":case"EWOULDBLOCK":return"would-block";case"EALREADY":return"already";case"EBADF":return"bad-descriptor";case"EBUSY":return"busy";case"EDEADLK":return"deadlock";case"EDQUOT":return"quota";case"EEXIST":return"exist";case"EFBIG":return"file-too-large";case"EILSEQ":return"illegal-byte-sequence";case"EINPROGRESS":return"in-progress";case"EINTR":return"interrupted";case"EINVAL":return"invalid";case"EIO":return"io";case"EISDIR":return"is-directory";case"ELOOP":return"loop";case"EMLINK":return"too-many-links";case"EMSGSIZE":return"message-size";case"ENAMETOOLONG":return"name-too-long";case"ENODEV":return"no-device";case"ENOENT":return"no-entry";case"ENOLCK":return"no-lock";case"ENOMEM":return"insufficient-memory";case"ENOSPC":return"insufficient-space";case"ENOTDIR":case"ERR_FS_EISDIR":return"not-directory";case"ENOTEMPTY":return"not-empty";case"ENOTRECOVERABLE":return"not-recoverable";case"ENOTSUP":return"unsupported";case"ENOTTY":return"no-tty";case-4094:case"ENXIO":return"no-such-device";case"EOVERFLOW":return"overflow";case"EPERM":return"not-permitted";case"EPIPE":return"pipe";case"EROFS":return"read-only";case"ESPIPE":return"invalid-seek";case"ETXTBSY":return"text-file-busy";case"EXDEV":return"cross-device";case"UNKNOWN":if(-4094===t.errno)return"no-such-device";throw t;default:throw t}}(t.payload)}},9340(t,e,r){r.d(e,{oS:()=>a,z3:()=>n});let s=0;const i=Symbol.dispose||Symbol.for("dispose"),n={Error:class{constructor(t){this.msg=t}toDebugString(){return this.msg}}},a={InputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.handler=t}read(t){return this.handler.read?this.handler.read(t):this.handler.blockingRead.call(this,t)}blockingRead(t){return this.handler.blockingRead.call(this,t)}skip(t){if(this.handler.skip)return this.handler.skip.call(this,t);if(this.handler.read){const e=this.handler.read.call(this,t);return BigInt(e.byteLength)}return this.blockingSkip.call(this,t)}blockingSkip(t){if(this.handler.blockingSkip)return this.handler.blockingSkip.call(this,t);const e=this.handler.blockingRead.call(this,t);return BigInt(e.byteLength)}subscribe(){return console.log(`[streams] Subscribe to input stream ${this.id}`),new o}[i](){this.handler.drop&&this.handler.drop.call(this)}},OutputStream:class{constructor(t){t||console.trace("no handler"),this.id=++s,this.open=!0,this.handler=t}checkWrite(t){return this.open?this.handler.checkWrite?this.handler.checkWrite.call(this,t):1000000n:0n}write(t){this.handler.write.call(this,t)}blockingWriteAndFlush(t){this.handler.write.call(this,t)}flush(){this.handler.flush&&this.handler.flush.call(this)}blockingFlush(){this.open=!0}writeZeroes(t){this.write.call(this,new Uint8Array(Number(t)))}blockingWriteZeroes(t){this.blockingWrite.call(this,new Uint8Array(Number(t)))}blockingWriteZeroesAndFlush(t){this.blockingWriteAndFlush.call(this,new Uint8Array(Number(t)))}splice(t,e){const r=Math.min(e,this.checkWrite.call(this)),s=t.read(r);return this.write.call(this,s),s.byteLength}blockingSplice(t,e){console.log(`[streams] Blocking splice ${this.id}`)}forward(t){console.log(`[streams] Forward ${this.id}`)}subscribe(){return console.log(`[streams] Subscribe to output stream ${this.id}`),new o}[i](){}}};class o{}},6015(t,e,r){r.d(e,{yT:()=>a});const s=65536;let i,n;const a={getRandomBytes(t){const e=new Uint8Array(Number(t));if(t>s)for(var r=0;r<t;r+=s)crypto.getRandomValues(e.subarray(r,r+s));else crypto.getRandomValues(e);return e},getRandomU64:()=>crypto.getRandomValues(new BigUint64Array(1))[0],insecureRandom:()=>(void 0===i&&(i=a.getRandomU64(),n=a.getRandomU64()),[i,n])}},8683(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$ge:()=>i.$ge,$rk:()=>i.$rk,BIR:()=>i.BIR,BdE:()=>i.BdE,Cp:()=>i.Cp,D7j:()=>i.D7j,Ddx:()=>i.Ddx,Evn:()=>i.Evn,GoE:()=>i.GoE,Gpj:()=>i.Gpj,HdO:()=>i.HdO,HwF:()=>i.HwF,IAp:()=>i.IAp,Iy0:()=>i.Iy0,J4F:()=>i.J4F,JOu:()=>i.JOu,JXG:()=>i.JXG,Jxp:()=>i.Jxp,KO$:()=>i.KO$,Ke0:()=>i.Ke0,KfV:()=>i.KfV,Kx2:()=>i.Kx2,Kyi:()=>i.Kyi,LWj:()=>i.LWj,Mk:()=>i.Mk,Mmb:()=>i.Mmb,N$9:()=>i.N$9,NM3:()=>i.NM3,Nv1:()=>i.Nv1,OKT:()=>i.OKT,OXe:()=>i.OXe,P3w:()=>i.P3w,P4c:()=>i.P4c,Q2m:()=>i.Q2m,Qrp:()=>i.Qrp,Qy6:()=>i.Qy6,RCX:()=>i.RCX,RKz:()=>i.RKz,Rbz:()=>i.Rbz,RrN:()=>i.RrN,TZT:()=>i.TZT,V34:()=>i.V34,VG:()=>i.VG,VZT:()=>i.VZT,Wgi:()=>i.Wgi,XwB:()=>i.XwB,Ya3:()=>i.Ya3,ZCC:()=>i.ZCC,ZOq:()=>i.ZOq,Zd1:()=>i.Zd1,Zeo:()=>i.Zeo,Zm3:()=>i.Zm3,_U4:()=>i._U4,_Y1:()=>i._Y1,a1h:()=>i.a1h,aez:()=>i.aez,bUO:()=>i.bUO,bbA:()=>i.bbA,chs:()=>i.chs,d6v:()=>i.d6v,dMb:()=>i.dMb,dst:()=>i.dst,eBw:()=>i.eBw,ePz:()=>i.ePz,em6:()=>i.em6,emu:()=>i.emu,fOI:()=>i.fOI,fhq:()=>i.fhq,gH0:()=>i.gH0,gHf:()=>i.gHf,gPA:()=>i.gPA,grs:()=>i.grs,h7v:()=>i.h7v,hXl:()=>i.hXl,i7X:()=>i.i7X,iRq:()=>i.iRq,iiK:()=>i.iiK,jAT:()=>i.jAT,jqW:()=>i.jqW,jy0:()=>i.jy0,jy1:()=>i.jy1,kAK:()=>i.kAK,lBC:()=>i.lBC,nWe:()=>i.nWe,oMV:()=>i.oMV,oVh:()=>i.oVh,pMj:()=>i.pMj,pOL:()=>i.pOL,pT:()=>i.pT,peC:()=>i.peC,qV6:()=>i.qV6,rNJ:()=>i.rNJ,s2A:()=>i.s2A,tt2:()=>i.tt2,u6S:()=>i.u6S,ulb:()=>i.ulb,unr:()=>i.unr,vSB:()=>i.vSB,wyV:()=>i.wyV,x7K:()=>i.x7K,xu3:()=>i.xu3,xvE:()=>i.xvE,yuy:()=>i.yuy,zFc:()=>i.zFc,zSR:()=>i.zSR,zac:()=>i.zac,zc0:()=>i.zc0,zxr:()=>i.zxr});var i=r(6045),n=t([i]),a=n.then?(await n)():n;i=a[0],s()}catch(t){s(t)}})},6045(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{$ge:()=>tr,$rk:()=>oe,BIR:()=>p,BdE:()=>$t,Cp:()=>dr,D7j:()=>ve,Ddx:()=>ns,Evn:()=>ct,GoE:()=>d,Gpj:()=>Ee,HdO:()=>Et,HwF:()=>Rt,IAp:()=>_t,Iy0:()=>ht,J4F:()=>C,JOu:()=>A,JXG:()=>Mt,Jxp:()=>Ut,KO$:()=>xr,Ke0:()=>v,KfV:()=>Ot,Kx2:()=>c,Kyi:()=>qr,LWj:()=>ur,Mk:()=>o,Mmb:()=>le,N$9:()=>y,NM3:()=>ke,Nv1:()=>xe,OKT:()=>pe,OXe:()=>hr,P3w:()=>K,P4c:()=>Mr,Q2m:()=>be,Qrp:()=>lt,Qy6:()=>Zt,RCX:()=>S,RKz:()=>rt,Rbz:()=>Ft,RrN:()=>f,TZT:()=>Nt,V34:()=>Jt,VG:()=>Tt,VZT:()=>Ae,Wgi:()=>P,XwB:()=>zt,Ya3:()=>l,ZCC:()=>mt,ZOq:()=>L,Zd1:()=>se,Zeo:()=>Fr,Zm3:()=>Yt,_U4:()=>ft,_Y1:()=>Ht,a1h:()=>_e,aez:()=>dt,bUO:()=>ie,bbA:()=>Se,chs:()=>St,d6v:()=>Te,dMb:()=>st,dst:()=>jt,eBw:()=>ot,ePz:()=>T,em6:()=>J,emu:()=>It,fOI:()=>ge,fhq:()=>et,gH0:()=>ae,gHf:()=>Dt,gPA:()=>he,grs:()=>Bt,h7v:()=>wr,hXl:()=>u,i7X:()=>hs,iRq:()=>yt,iiK:()=>Lt,jAT:()=>h,jqW:()=>ce,jy0:()=>Gt,jy1:()=>re,kAK:()=>Kt,lBC:()=>F,nWe:()=>Wt,oMV:()=>B,oVh:()=>R,pMj:()=>m,pOL:()=>Re,pT:()=>H,peC:()=>vt,qV6:()=>g,rNJ:()=>b,s2A:()=>V,tt2:()=>Pt,u6S:()=>qt,ulb:()=>j,unr:()=>G,vSB:()=>wt,wyV:()=>z,x7K:()=>kt,xu3:()=>ye,xvE:()=>bt,yuy:()=>N,zFc:()=>Q,zSR:()=>Vt,zac:()=>O,zc0:()=>Xt,zxr:()=>$});var i=r(1901),n=r(8269),a=t([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{members:new vr(t)}}),ds(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new Le(e),semicolon:r}}),ds(this.cst.kind,n.q3.PragmaDirective)}get pragmaKeyword(){return this.fetch().pragmaKeyword}get pragma(){return this.fetch().pragma}get semicolon(){return this.fetch().semicolon}}class l{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:new Ie(e)}}),ds(this.cst.kind,n.q3.AbicoderPragma)}get abicoderKeyword(){return this.fetch().abicoderKeyword}get version(){return this.fetch().version}}class h{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new Ke(e)}}),ds(this.cst.kind,n.q3.ExperimentalPragma)}get experimentalKeyword(){return this.fetch().experimentalKeyword}get feature(){return this.fetch().feature}}class u{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new Vr(e)}}),ds(this.cst.kind,n.q3.VersionPragma)}get solidityKeyword(){return this.fetch().solidityKeyword}get sets(){return this.fetch().sets}}class d{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{start:new De(t),minus:e,end:new De(r)}}),ds(this.cst.kind,n.q3.VersionRange)}get start(){return this.fetch().start}get minus(){return this.fetch().minus}get end(){return this.fetch().end}}class p{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===t?void 0:new Oe(t),literal:new De(e)}}),ds(this.cst.kind,n.q3.VersionTerm)}get operator(){return this.fetch().operator}get literal(){return this.fetch().literal}}class m{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:t,clause:new Pe(e),semicolon:r}}),ds(this.cst.kind,n.q3.ImportDirective)}get importKeyword(){return this.fetch().importKeyword}get clause(){return this.fetch().clause}get semicolon(){return this.fetch().semicolon}}class y{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{path:new ur(t),alias:void 0===e?void 0:new x(e)}}),ds(this.cst.kind,n.q3.PathImport)}get path(){return this.fetch().path}get alias(){return this.fetch().alias}}class f{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:t,alias:new x(e),fromKeyword:r,path:new ur(s)}}),ds(this.cst.kind,n.q3.NamedImport)}get asterisk(){return this.fetch().asterisk}get alias(){return this.fetch().alias}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class g{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Br(e),closeBrace:r,fromKeyword:s,path:new ur(n)}}),ds(this.cst.kind,n.q3.ImportDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class w{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:t,alias:void 0===e?void 0:new x(e)}}),ds(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class x{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,identifier:e}}),ds(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class v{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{usingKeyword:t,clause:new qe(e),forKeyword:r,target:new Fe(s),globalKeyword:void 0===n?void 0:n,semicolon:a}}),ds(this.cst.kind,n.q3.UsingDirective)}get usingKeyword(){return this.fetch().usingKeyword}get clause(){return this.fetch().clause}get forKeyword(){return this.fetch().forKeyword}get target(){return this.fetch().target}get globalKeyword(){return this.fetch().globalKeyword}get semicolon(){return this.fetch().semicolon}}class b{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,symbols:new Hr(e),closeBrace:r}}),ds(this.cst.kind,n.q3.UsingDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}}class _{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ns(t),alias:void 0===e?void 0:new E(e)}}),ds(this.cst.kind,n.q3.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class E{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:t,operator:new Me(e)}}),ds(this.cst.kind,n.q3.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}}class T{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{abstractKeyword:void 0===t?void 0:t,contractKeyword:e,name:r,specifiers:new _r(s),openBrace:n,members:new Er(a),closeBrace:o}}),ds(this.cst.kind,n.q3.ContractDefinition)}get abstractKeyword(){return this.fetch().abstractKeyword}get contractKeyword(){return this.fetch().contractKeyword}get name(){return this.fetch().name}get specifiers(){return this.fetch().specifiers}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class S{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:t,types:new $r(e)}}),ds(this.cst.kind,n.q3.InheritanceSpecifier)}get isKeyword(){return this.fetch().isKeyword}get types(){return this.fetch().types}}class k{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ns(t),arguments:void 0===e?void 0:new cr(e)}}),ds(this.cst.kind,n.q3.InheritanceType)}get typeName(){return this.fetch().typeName}get arguments(){return this.fetch().arguments}}class R{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{layoutKeyword:t,atKeyword:e,expression:new or(r)}}),ds(this.cst.kind,n.q3.StorageLayoutSpecifier)}get layoutKeyword(){return this.fetch().layoutKeyword}get atKeyword(){return this.fetch().atKeyword}get expression(){return this.fetch().expression}}class A{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{interfaceKeyword:t,name:e,inheritance:void 0===r?void 0:new S(r),openBrace:s,members:new Tr(n),closeBrace:a}}),ds(this.cst.kind,n.q3.InterfaceDefinition)}get interfaceKeyword(){return this.fetch().interfaceKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class C{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:t,name:e,openBrace:r,members:new Sr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.LibraryDefinition)}get libraryKeyword(){return this.fetch().libraryKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class L{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:t,name:e,openBrace:r,members:new kr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.StructDefinition)}get structKeyword(){return this.fetch().structKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class I{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),name:e,semicolon:r}}),ds(this.cst.kind,n.q3.StructMember)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}get semicolon(){return this.fetch().semicolon}}class K{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{enumKeyword:t,name:e,openBrace:r,members:new Gr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.EnumDefinition)}get enumKeyword(){return this.fetch().enumKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class N{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),constantKeyword:e,name:r,equal:s,value:new or(n),semicolon:a}}),ds(this.cst.kind,n.q3.ConstantDefinition)}get typeName(){return this.fetch().typeName}get constantKeyword(){return this.fetch().constantKeyword}get name(){return this.fetch().name}get equal(){return this.fetch().equal}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class O{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),attributes:new Rr(e),name:r,value:void 0===s?void 0:new D(s),semicolon:n}}),ds(this.cst.kind,n.q3.StateVariableDefinition)}get typeName(){return this.fetch().typeName}get attributes(){return this.fetch().attributes}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class D{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,value:new or(e)}}),ds(this.cst.kind,n.q3.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}}class P{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:new je(e),parameters:new q(r),attributes:new Ar(s),returns:void 0===n?void 0:new Y(n),body:new He(a)}}),ds(this.cst.kind,n.q3.FunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class q{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new zr(e),closeParen:r}}),ds(this.cst.kind,n.q3.ParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class M{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),storageLocation:void 0===e?void 0:new ir(e),name:void 0===r?void 0:r}}),ds(this.cst.kind,n.q3.Parameter)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class F{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:void 0===e?void 0:new U(e)}}),ds(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class U{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,paths:new Wr(e),closeParen:r}}),ds(this.cst.kind,n.q3.OverridePathsDeclaration)}get openParen(){return this.fetch().openParen}get paths(){return this.fetch().paths}get closeParen(){return this.fetch().closeParen}}class Y{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new q(e)}}),ds(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class V{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new q(e),attributes:new Cr(r),body:new ot(s)}}),ds(this.cst.kind,n.q3.ConstructorDefinition)}get constructorKeyword(){return this.fetch().constructorKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class j{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new q(e),attributes:new Lr(r),body:new He(s)}}),ds(this.cst.kind,n.q3.UnnamedFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class B{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new q(e),attributes:new Ir(r),returns:void 0===s?void 0:new Y(s),body:new He(n)}}),ds(this.cst.kind,n.q3.FallbackFunctionDefinition)}get fallbackKeyword(){return this.fetch().fallbackKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class H{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new q(e),attributes:new Kr(r),body:new He(s)}}),ds(this.cst.kind,n.q3.ReceiveFunctionDefinition)}get receiveKeyword(){return this.fetch().receiveKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class ${constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{modifierKeyword:t,name:e,parameters:void 0===r?void 0:new q(r),attributes:new Nr(s),body:new He(n)}}),ds(this.cst.kind,n.q3.ModifierDefinition)}get modifierKeyword(){return this.fetch().modifierKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class G{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:new ns(t),arguments:void 0===e?void 0:new cr(e)}}),ds(this.cst.kind,n.q3.ModifierInvocation)}get name(){return this.fetch().name}get arguments(){return this.fetch().arguments}}class z{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{eventKeyword:t,name:e,parameters:new W(r),anonymousKeyword:void 0===s?void 0:s,semicolon:n}}),ds(this.cst.kind,n.q3.EventDefinition)}get eventKeyword(){return this.fetch().eventKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get anonymousKeyword(){return this.fetch().anonymousKeyword}get semicolon(){return this.fetch().semicolon}}class W{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Xr(e),closeParen:r}}),ds(this.cst.kind,n.q3.EventParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class X{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),indexedKeyword:void 0===e?void 0:e,name:void 0===r?void 0:r}}),ds(this.cst.kind,n.q3.EventParameter)}get typeName(){return this.fetch().typeName}get indexedKeyword(){return this.fetch().indexedKeyword}get name(){return this.fetch().name}}class Q{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,name:e,isKeyword:r,valueType:new tr(s),semicolon:n}}),ds(this.cst.kind,n.q3.UserDefinedValueTypeDefinition)}get typeKeyword(){return this.fetch().typeKeyword}get name(){return this.fetch().name}get isKeyword(){return this.fetch().isKeyword}get valueType(){return this.fetch().valueType}get semicolon(){return this.fetch().semicolon}}class J{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:t,name:e,members:new Z(r),semicolon:s}}),ds(this.cst.kind,n.q3.ErrorDefinition)}get errorKeyword(){return this.fetch().errorKeyword}get name(){return this.fetch().name}get members(){return this.fetch().members}get semicolon(){return this.fetch().semicolon}}class Z{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new Qr(e),closeParen:r}}),ds(this.cst.kind,n.q3.ErrorParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class tt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),name:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class et{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new Qe(t),openBracket:e,index:void 0===r?void 0:new or(r),closeBracket:s}}),ds(this.cst.kind,n.q3.ArrayTypeName)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get index(){return this.fetch().index}get closeBracket(){return this.fetch().closeBracket}}class rt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new q(e),attributes:new Or(r),returns:void 0===s?void 0:new Y(s)}}),ds(this.cst.kind,n.q3.FunctionType)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}}class st{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{mappingKeyword:t,openParen:e,keyType:new it(r),equalGreaterThan:s,valueType:new nt(n),closeParen:a}}),ds(this.cst.kind,n.q3.MappingType)}get mappingKeyword(){return this.fetch().mappingKeyword}get openParen(){return this.fetch().openParen}get keyType(){return this.fetch().keyType}get equalGreaterThan(){return this.fetch().equalGreaterThan}get valueType(){return this.fetch().valueType}get closeParen(){return this.fetch().closeParen}}class it{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{keyType:new Ze(t),name:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}}class nt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),name:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class at{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:void 0===e?void 0:e}}),ds(this.cst.kind,n.q3.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}}class ot{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Dr(e),closeBrace:r}}),ds(this.cst.kind,n.q3.Block)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class ct{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new ot(e)}}),ds(this.cst.kind,n.q3.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}}class lt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{expression:new or(t),semicolon:e}}),ds(this.cst.kind,n.q3.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class ht{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{assemblyKeyword:t,label:void 0===e?void 0:new ur(e),flags:void 0===r?void 0:new ut(r),body:new le(s)}}),ds(this.cst.kind,n.q3.AssemblyStatement)}get assemblyKeyword(){return this.fetch().assemblyKeyword}get label(){return this.fetch().label}get flags(){return this.fetch().flags}get body(){return this.fetch().body}}class ut{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,flags:new Jr(e),closeParen:r}}),ds(this.cst.kind,n.q3.AssemblyFlagsDeclaration)}get openParen(){return this.fetch().openParen}get flags(){return this.fetch().flags}get closeParen(){return this.fetch().closeParen}}class dt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{varKeyword:void 0===t?void 0:t,openParen:e,elements:new Zr(r),closeParen:s,equal:n,expression:new or(a),semicolon:o}}),ds(this.cst.kind,n.q3.TupleDeconstructionStatement)}get varKeyword(){return this.fetch().varKeyword}get openParen(){return this.fetch().openParen}get elements(){return this.fetch().elements}get closeParen(){return this.fetch().closeParen}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class pt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===t?void 0:new rr(t)}}),ds(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class mt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qe(t),storageLocation:void 0===e?void 0:new ir(e),name:r}}),ds(this.cst.kind,n.q3.TypedTupleMember)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class yt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===t?void 0:new ir(t),name:e}}),ds(this.cst.kind,n.q3.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class ft{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{variableType:new sr(t),storageLocation:void 0===e?void 0:new ir(e),name:r,value:void 0===s?void 0:new gt(s),semicolon:n}}),ds(this.cst.kind,n.q3.VariableDeclarationStatement)}get variableType(){return this.fetch().variableType}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class gt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,expression:new or(e)}}),ds(this.cst.kind,n.q3.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}}class wt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,openParen:e,condition:new or(r),closeParen:s,body:new er(n),elseBranch:void 0===a?void 0:new xt(a)}}),ds(this.cst.kind,n.q3.IfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}get elseBranch(){return this.fetch().elseBranch}}class xt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:t,body:new er(e)}}),ds(this.cst.kind,n.q3.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}}class vt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,openParen:e,initialization:new nr(r),condition:new ar(s),iterator:void 0===n?void 0:new or(n),closeParen:a,body:new er(o)}}),ds(this.cst.kind,n.q3.ForStatement)}get forKeyword(){return this.fetch().forKeyword}get openParen(){return this.fetch().openParen}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class bt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{whileKeyword:t,openParen:e,condition:new or(r),closeParen:s,body:new er(n)}}),ds(this.cst.kind,n.q3.WhileStatement)}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class _t{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{doKeyword:t,body:new er(e),whileKeyword:r,openParen:s,condition:new or(n),closeParen:a,semicolon:o}}),ds(this.cst.kind,n.q3.DoWhileStatement)}get doKeyword(){return this.fetch().doKeyword}get body(){return this.fetch().body}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get semicolon(){return this.fetch().semicolon}}class Et{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:e}}),ds(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Tt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:e}}),ds(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class St{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:t,expression:void 0===e?void 0:new or(e),semicolon:r}}),ds(this.cst.kind,n.q3.ReturnStatement)}get returnKeyword(){return this.fetch().returnKeyword}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class kt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:t,event:new ns(e),arguments:new cr(r),semicolon:s}}),ds(this.cst.kind,n.q3.EmitStatement)}get emitKeyword(){return this.fetch().emitKeyword}get event(){return this.fetch().event}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class Rt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{tryKeyword:t,expression:new or(e),returns:void 0===r?void 0:new Y(r),body:new ot(s),catchClauses:new Pr(n)}}),ds(this.cst.kind,n.q3.TryStatement)}get tryKeyword(){return this.fetch().tryKeyword}get expression(){return this.fetch().expression}get returns(){return this.fetch().returns}get body(){return this.fetch().body}get catchClauses(){return this.fetch().catchClauses}}class At{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{catchKeyword:t,error:void 0===e?void 0:new Ct(e),body:new ot(r)}}),ds(this.cst.kind,n.q3.CatchClause)}get catchKeyword(){return this.fetch().catchKeyword}get error(){return this.fetch().error}get body(){return this.fetch().body}}class Ct{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===t?void 0:t,parameters:new q(e)}}),ds(this.cst.kind,n.q3.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}}class Lt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:t,error:new ns(e),arguments:new cr(r),semicolon:s}}),ds(this.cst.kind,n.q3.RevertStatement)}get revertKeyword(){return this.fetch().revertKeyword}get error(){return this.fetch().error}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class It{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:e}}),ds(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class Kt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AssignmentExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Nt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),questionMark:e,trueExpression:new or(r),colon:s,falseExpression:new or(n)}}),ds(this.cst.kind,n.q3.ConditionalExpression)}get operand(){return this.fetch().operand}get questionMark(){return this.fetch().questionMark}get trueExpression(){return this.fetch().trueExpression}get colon(){return this.fetch().colon}get falseExpression(){return this.fetch().falseExpression}}class Ot{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.OrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Dt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Pt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.EqualityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class qt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.InequalityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Mt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseOrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ft{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseXorExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ut{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseAndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Yt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.ShiftExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Vt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AdditiveExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class jt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.MultiplicativeExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Bt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(t),operator:e,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.ExponentiationExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ht{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),operator:e}}),ds(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class $t{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operator:t,operand:new or(e)}}),ds(this.cst.kind,n.q3.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}}class Gt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),arguments:new cr(e)}}),ds(this.cst.kind,n.q3.FunctionCallExpression)}get operand(){return this.fetch().operand}get arguments(){return this.fetch().arguments}}class zt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),openBrace:e,options:new rs(r),closeBrace:s}}),ds(this.cst.kind,n.q3.CallOptionsExpression)}get operand(){return this.fetch().operand}get openBrace(){return this.fetch().openBrace}get options(){return this.fetch().options}get closeBrace(){return this.fetch().closeBrace}}class Wt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),period:e,member:r}}),ds(this.cst.kind,n.q3.MemberAccessExpression)}get operand(){return this.fetch().operand}get period(){return this.fetch().period}get member(){return this.fetch().member}}class Xt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(t),openBracket:e,start:void 0===r?void 0:new or(r),end:void 0===s?void 0:new Qt(s),closeBracket:n}}),ds(this.cst.kind,n.q3.IndexAccessExpression)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get start(){return this.fetch().start}get end(){return this.fetch().end}get closeBracket(){return this.fetch().closeBracket}}class Qt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,end:void 0===e?void 0:new or(e)}}),ds(this.cst.kind,n.q3.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}}class Jt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:new ts(e),closeParen:r}}),ds(this.cst.kind,n.q3.PositionalArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Zt{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,arguments:void 0===e?void 0:new te(e),closeParen:r}}),ds(this.cst.kind,n.q3.NamedArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class te{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,arguments:new es(e),closeBrace:r}}),ds(this.cst.kind,n.q3.NamedArgumentGroup)}get openBrace(){return this.fetch().openBrace}get arguments(){return this.fetch().arguments}get closeBrace(){return this.fetch().closeBrace}}class ee{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{name:t,colon:e,value:new or(r)}}),ds(this.cst.kind,n.q3.NamedArgument)}get name(){return this.fetch().name}get colon(){return this.fetch().colon}get value(){return this.fetch().value}}class re{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:e,typeName:new Qe(r),closeParen:s}}),ds(this.cst.kind,n.q3.TypeExpression)}get typeKeyword(){return this.fetch().typeKeyword}get openParen(){return this.fetch().openParen}get typeName(){return this.fetch().typeName}get closeParen(){return this.fetch().closeParen}}class se{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new Qe(e)}}),ds(this.cst.kind,n.q3.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}}class ie{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,items:new ss(e),closeParen:r}}),ds(this.cst.kind,n.q3.TupleExpression)}get openParen(){return this.fetch().openParen}get items(){return this.fetch().items}get closeParen(){return this.fetch().closeParen}}class ne{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===t?void 0:new or(t)}}),ds(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class ae{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:t,items:new is(e),closeBracket:r}}),ds(this.cst.kind,n.q3.ArrayExpression)}get openBracket(){return this.fetch().openBracket}get items(){return this.fetch().items}get closeBracket(){return this.fetch().closeBracket}}class oe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new lr(e)}}),ds(this.cst.kind,n.q3.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class ce{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{literal:t,unit:void 0===e?void 0:new lr(e)}}),ds(this.cst.kind,n.q3.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class le{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:t,statements:new Ur(e),closeBrace:r}}),ds(this.cst.kind,n.q3.YulBlock)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class he{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:t,name:e,parameters:new ue(r),returns:void 0===s?void 0:new de(s),body:new le(n)}}),ds(this.cst.kind,n.q3.YulFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class ue{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:t,parameters:new as(e),closeParen:r}}),ds(this.cst.kind,n.q3.YulParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class de{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new os(e)}}),ds(this.cst.kind,n.q3.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}}class pe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:t,variables:new os(e),value:void 0===r?void 0:new me(r)}}),ds(this.cst.kind,n.q3.YulVariableDeclarationStatement)}get letKeyword(){return this.fetch().letKeyword}get variables(){return this.fetch().variables}get value(){return this.fetch().value}}class me{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new yr(t),expression:new wr(e)}}),ds(this.cst.kind,n.q3.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class ye{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new ls(t),assignment:new yr(e),expression:new wr(r)}}),ds(this.cst.kind,n.q3.YulVariableAssignmentStatement)}get variables(){return this.fetch().variables}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class fe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{colon:t,equal:e}}),ds(this.cst.kind,n.q3.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}}class ge{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{assignment:new fr(t),variable:e}}),ds(this.cst.kind,n.q3.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}}class we{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{equal:t,colon:e}}),ds(this.cst.kind,n.q3.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}}class xe{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new wr(e),body:new le(r)}}),ds(this.cst.kind,n.q3.YulIfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get condition(){return this.fetch().condition}get body(){return this.fetch().body}}class ve{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:t,initialization:new le(e),condition:new wr(r),iterator:new le(s),body:new le(n)}}),ds(this.cst.kind,n.q3.YulForStatement)}get forKeyword(){return this.fetch().forKeyword}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get body(){return this.fetch().body}}class be{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new wr(e),cases:new Yr(r)}}),ds(this.cst.kind,n.q3.YulSwitchStatement)}get switchKeyword(){return this.fetch().switchKeyword}get expression(){return this.fetch().expression}get cases(){return this.fetch().cases}}class _e{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new le(e)}}),ds(this.cst.kind,n.q3.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}}class Ee{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:t,value:new xr(e),body:new le(r)}}),ds(this.cst.kind,n.q3.YulValueCase)}get caseKeyword(){return this.fetch().caseKeyword}get value(){return this.fetch().value}get body(){return this.fetch().body}}class Te{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:t}}),ds(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class Se{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:t}}),ds(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class ke{constructor(t){this.cst=t,this.fetch=us(()=>{const[t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:t}}),ds(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class Re{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.sequence(this.cst);return{label:t,colon:e}}),ds(this.cst.kind,n.q3.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}}class Ae{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new wr(t),openParen:e,arguments:new cs(r),closeParen:s}}),ds(this.cst.kind,n.q3.YulFunctionCallExpression)}get operand(){return this.fetch().operand}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Ce{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PragmaDirective:return new c(t);case n.q3.ImportDirective:return new m(t);case n.q3.ContractDefinition:return new T(t);case n.q3.InterfaceDefinition:return new A(t);case n.q3.LibraryDefinition:return new C(t);case n.q3.StructDefinition:return new L(t);case n.q3.EnumDefinition:return new K(t);case n.q3.FunctionDefinition:return new P(t);case n.q3.ErrorDefinition:return new J(t);case n.q3.UserDefinedValueTypeDefinition:return new Q(t);case n.q3.UsingDirective:return new v(t);case n.q3.EventDefinition:return new z(t);case n.q3.ConstantDefinition:return new N(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Le{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.VersionPragma:return new u(t);case n.q3.AbicoderPragma:return new l(t);case n.q3.ExperimentalPragma:return new h(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Ie{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.AbicoderVersion)}get variant(){return this.fetch()}}class Ke{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.StringLiteral)return new ur(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Ne{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.VersionRange:return new d(t);case n.q3.VersionTerm:return new p(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Oe{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class De{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.SimpleVersionLiteral)return new jr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class Pe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PathImport:return new y(t);case n.q3.NamedImport:return new f(t);case n.q3.ImportDeconstruction:return new g(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class qe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IdentifierPath:return new ns(t);case n.q3.UsingDeconstruction:return new b(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class Me{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class Fe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new Qe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Ue{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.InheritanceSpecifier:return new S(t);case n.q3.StorageLayoutSpecifier:return new R(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ContractSpecifier)}get variant(){return this.fetch()}}class Ye{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.UsingDirective:return new v(t);case n.q3.FunctionDefinition:return new P(t);case n.q3.ConstructorDefinition:return new V(t);case n.q3.ReceiveFunctionDefinition:return new H(t);case n.q3.FallbackFunctionDefinition:return new B(t);case n.q3.UnnamedFunctionDefinition:return new j(t);case n.q3.ModifierDefinition:return new $(t);case n.q3.StructDefinition:return new L(t);case n.q3.EnumDefinition:return new K(t);case n.q3.EventDefinition:return new z(t);case n.q3.ErrorDefinition:return new J(t);case n.q3.UserDefinedValueTypeDefinition:return new Q(t);case n.q3.StateVariableDefinition:return new O(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Ve{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new F(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class je{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class Be{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new G(t);case n.q3.OverrideSpecifier:return new F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class He{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.Block)return new ot(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class $e{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new G(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class Ge{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ModifierInvocation)return new G(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class ze{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new G(t);case n.q3.OverrideSpecifier:return new F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class We{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.ModifierInvocation:return new G(t);case n.q3.OverrideSpecifier:return new F(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class Xe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.OverrideSpecifier)return new F(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class Qe{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ArrayTypeName:return new et(t);case n.q3.FunctionType:return new rt(t);case n.q3.MappingType:return new st(t);case n.q3.ElementaryType:return new tr(t);case n.q3.IdentifierPath:return new ns(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class Je{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class Ze{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.ElementaryType:return new tr(t);case n.q3.IdentifierPath:return new ns(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class tr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.AddressType)return new at(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class er{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.IfStatement:return new wt(t);case n.q3.ForStatement:return new vt(t);case n.q3.WhileStatement:return new bt(t);case n.q3.DoWhileStatement:return new _t(t);case n.q3.ContinueStatement:return new Et(t);case n.q3.BreakStatement:return new Tt(t);case n.q3.ReturnStatement:return new St(t);case n.q3.ThrowStatement:return new It(t);case n.q3.EmitStatement:return new kt(t);case n.q3.TryStatement:return new Rt(t);case n.q3.RevertStatement:return new Lt(t);case n.q3.AssemblyStatement:return new ht(t);case n.q3.Block:return new ot(t);case n.q3.UncheckedBlock:return new ct(t);case n.q3.TupleDeconstructionStatement:return new dt(t);case n.q3.VariableDeclarationStatement:return new ft(t);case n.q3.ExpressionStatement:return new lt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class rr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.TypedTupleMember:return new mt(t);case n.q3.UntypedTupleMember:return new yt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class sr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.TypeName)return new Qe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class ir{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class nr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.TupleDeconstructionStatement:return new dt(t);case n.q3.VariableDeclarationStatement:return new ft(t);case n.q3.ExpressionStatement:return new lt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class ar{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.ExpressionStatement)return new lt(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class or{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.AssignmentExpression:return new Kt(t);case n.q3.ConditionalExpression:return new Nt(t);case n.q3.OrExpression:return new Ot(t);case n.q3.AndExpression:return new Dt(t);case n.q3.EqualityExpression:return new Pt(t);case n.q3.InequalityExpression:return new qt(t);case n.q3.BitwiseOrExpression:return new Mt(t);case n.q3.BitwiseXorExpression:return new Ft(t);case n.q3.BitwiseAndExpression:return new Ut(t);case n.q3.ShiftExpression:return new Yt(t);case n.q3.AdditiveExpression:return new Vt(t);case n.q3.MultiplicativeExpression:return new jt(t);case n.q3.ExponentiationExpression:return new Bt(t);case n.q3.PostfixExpression:return new Ht(t);case n.q3.PrefixExpression:return new $t(t);case n.q3.FunctionCallExpression:return new Gt(t);case n.q3.CallOptionsExpression:return new zt(t);case n.q3.MemberAccessExpression:return new Wt(t);case n.q3.IndexAccessExpression:return new Xt(t);case n.q3.NewExpression:return new se(t);case n.q3.TupleExpression:return new ie(t);case n.q3.TypeExpression:return new re(t);case n.q3.ArrayExpression:return new ae(t);case n.q3.HexNumberExpression:return new oe(t);case n.q3.DecimalNumberExpression:return new ce(t);case n.q3.StringExpression:return new hr(t);case n.q3.ElementaryType:return new tr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class cr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.PositionalArgumentsDeclaration:return new Jt(t);case n.q3.NamedArgumentsDeclaration:return new Zt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class lr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class hr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.StringLiteral:return new ur(t);case n.q3.StringLiterals:return new qr(t);case n.q3.HexStringLiteral:return new dr(t);case n.q3.HexStringLiterals:return new Mr(t);case n.q3.UnicodeStringLiterals:return new Fr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class ur{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class dr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class pr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class mr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulBlock:return new le(t);case n.q3.YulFunctionDefinition:return new he(t);case n.q3.YulStackAssignmentStatement:return new ge(t);case n.q3.YulIfStatement:return new xe(t);case n.q3.YulForStatement:return new ve(t);case n.q3.YulSwitchStatement:return new be(t);case n.q3.YulLeaveStatement:return new Te(t);case n.q3.YulBreakStatement:return new Se(t);case n.q3.YulContinueStatement:return new ke(t);case n.q3.YulVariableAssignmentStatement:return new ye(t);case n.q3.YulLabel:return new Re(t);case n.q3.YulVariableDeclarationStatement:return new pe(t);case n.q3.YulExpression:return new wr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class yr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulColonAndEqual)return new fe(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class fr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===n.q3.YulEqualAndColon)return new we(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),ds(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class gr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulDefaultCase:return new _e(t);case n.q3.YulValueCase:return new Ee(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class wr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);switch(t.kind){case n.q3.YulFunctionCallExpression:return new Ae(t);case n.q3.YulLiteral:return new xr(t);case n.q3.YulPath:return new hs(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class xr{constructor(t){this.cst=t,this.fetch=us(()=>{const t=i.Rj.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case n.q3.HexStringLiteral:return new dr(t);case n.q3.StringLiteral:return new ur(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),ds(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class vr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ce(t))),ds(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class br{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ne(t))),ds(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class _r{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ue(t))),ds(this.cst.kind,n.q3.ContractSpecifiers)}get items(){return this.fetch()}}class Er{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ye(t))),ds(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class Tr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ye(t))),ds(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class Sr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ye(t))),ds(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class kr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new I(t))),ds(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class Rr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ve(t))),ds(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class Ar{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Be(t))),ds(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Cr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new $e(t))),ds(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class Lr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Ge(t))),ds(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Ir{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new ze(t))),ds(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Kr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new We(t))),ds(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Nr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Xe(t))),ds(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Or{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new Je(t))),ds(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Dr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new er(t))),ds(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Pr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new At(t))),ds(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class qr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new ur(t))),ds(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class Mr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new dr(t))),ds(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class Fr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new pr(t))),ds(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Ur{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new mr(t))),ds(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class Yr{constructor(t){this.cst=t,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(t=>new gr(t))),ds(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Vr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new br(t)),separators:e}}),ds(this.cst.kind,n.q3.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class jr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new w(t)),separators:e}}),ds(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Hr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new _(t)),separators:e}}),ds(this.cst.kind,n.q3.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new k(t)),separators:e}}),ds(this.cst.kind,n.q3.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Gr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class zr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new M(t)),separators:e}}),ds(this.cst.kind,n.q3.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ns(t)),separators:e}}),ds(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Xr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new X(t)),separators:e}}),ds(this.cst.kind,n.q3.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new tt(t)),separators:e}}),ds(this.cst.kind,n.q3.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ur(t)),separators:e}}),ds(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new pt(t)),separators:e}}),ds(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new or(t)),separators:e}}),ds(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ee(t)),separators:e}}),ds(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ee(t)),separators:e}}),ds(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new ne(t)),separators:e}}),ds(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new or(t)),separators:e}}),ds(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class os{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class cs{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new wr(t)),separators:e}}),ds(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ls{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t.map(t=>new hs(t)),separators:e}}),ds(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class hs{constructor(t){this.cst=t,this.fetch=us(()=>{const[t,e]=i.Rj.Selectors.separated(this.cst);return{items:t,separators:e}}),ds(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function us(t){let e;return()=>(void 0===e&&(e=t()),e)}function ds(t,e){if(t!==e)throw new Error(`AST node '${e}' can only be initialized with a CST node of the same kind. Received '${t}' instead.`)}s()}catch(ps){s(ps)}})},8520(t,e,r){r.a(t,async(t,e)=>{try{var s=r(8269),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(t)}})},5329(t,e,r){r.a(t,async(t,e)=>{try{var s=r(8269),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(t)}})},8269(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{di:()=>u,hP:()=>h,q3:()=>l,xo:()=>d});var i=r(1901),n=r(8520),a=r(5329),o=r(1596),c=t([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;const l=i.tQ.NonterminalKind,h=i.tQ.TerminalKind,u=i.tQ.TerminalKindExtensions,d=(i.tQ.EdgeLabel,i.tQ.NodeType,i.tQ.NonterminalNode,i.tQ.TerminalNode);i.tQ.Edge,i.tQ.Cursor,i.tQ.CursorIterator,i.tQ.AncestorsIterator,i.tQ.Query,i.tQ.QueryMatchIterator,i.tQ.TextIndexExtensions,s()}catch(t){s(t)}})},1596(t,e,r){r.a(t,async(t,e)=>{try{var s=r(8269),i=t([s]);s=(i.then?(await i)():i)[0],e()}catch(t){e(t)}})},5130(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{i:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseOutput,s()}catch(t){s(t)}})},3704(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{g:()=>a});var i=r(1901),n=t([i]);const a=(i=(n.then?(await n)():n)[0]).Wp.LanguageFacts;s()}catch(t){s(t)}})},1406(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K3:()=>Ri,Rj:()=>Si,Wp:()=>Ai,tQ:()=>ki});var i=r(8664),n=r(6190),a=r(9340),o=r(6015);const{getEnvironment:p}=i.cA,{exit:m}=i.NS,{getStderr:y}=i.vF,{getStdin:f}=i.bX,{getStdout:g}=i.Uo,{getDirectories:w}=n.jw,{Descriptor:x,filesystemErrorCode:v}=n.gK,{Error:b}=a.z3,{InputStream:_,OutputStream:E}=a.oS,{getRandomBytes:T}=o.yT;let S=[],k=new DataView(new ArrayBuffer);const R=t=>k.buffer===t.buffer?k:k=new DataView(t.buffer),A=()=>{},C="undefined"!=typeof process&&process.versions&&process.versions.node;let L;async function I(t){return C?(L=L||await Promise.resolve().then(r.bind(r,9031)),WebAssembly.compile(await L.readFile(t))):fetch(t).then(WebAssembly.compileStreaming)}function K(t){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(t)}function N(t){if(t&&D.call(t,"payload"))return t.payload;if(t instanceof Error)throw t;return t}const O=[],D=Object.prototype.hasOwnProperty,P=WebAssembly.instantiate,q=1<<30;function M(t,e){const r=t[0]&~q;return 0===r?(t.push(0),t.push(e|q),(t.length>>1)-1):(t[0]=t[r<<1],t[r<<1]=0,t[1+(r<<1)]=e|q,r)}function F(t,e){const r=t[e<<1],s=t[1+(e<<1)],i=0!==(s&q),n=s&~q;if(0===s||0!==(r&q))throw new TypeError("Invalid handle");return t[e<<1]=t[0]|q,t[0]=e|q,{rep:n,scope:r,own:i}}const U=Symbol.for("cabiDispose"),Y=Symbol("handle"),V=Symbol.for("cabiRep"),j=Symbol.dispose||Symbol.for("dispose"),B=t=>BigInt.asUintN(64,BigInt(t));function H(t){return t>>>0}const $=new TextDecoder,G=new TextEncoder;let z=0;function W(t,e,r){if("string"!=typeof t)throw new TypeError("expected a string");if(0===t.length)return z=0,1;let s=G.encode(t),i=e(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),z=s.length,i}const X=Symbol.for("nodejs.util.inspect.custom");let Q,J;const Z=[q,0],tt=new Map;let et=0;function rt(){const t=y();if(!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=M(Z,r)}return e}O[1]=Z;const st=[q,0],it=new Map;let nt,at,ot,ct=0;function lt(){const t=f();if(!(t instanceof _))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++ct;it.set(r,t),e=M(st,r)}return e}function ht(){const t=g();if(!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=t[Y];if(!e){const r=t[V]||++et;tt.set(r,t),e=M(Z,r)}return e}function ut(t){let e;e=t?{tag:"err",val:void 0}:{tag:"ok",val:void 0},m(e)}function dt(t){var e=p(),r=e.length,s=ot(0,0,4,16*r);for(let t=0;t<e.length;t++){const r=e[t],h=s+16*t;var[i,n]=r,a=W(i,ot,at),o=z;R(at).setInt32(h+4,o,!0),R(at).setInt32(h+0,a,!0);var c=W(n,ot,at),l=z;R(at).setInt32(h+12,l,!0),R(at).setInt32(h+8,c,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}O[2]=st;const pt=[q,0],mt=new Map;let yt=0;function ft(t,e,r){var s=t,i=pt[1+(s<<1)]&~q,n=mt.get(i);let a;n||(n=Object.create(x.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,V,{writable:!0,value:i})),S.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,e))}}catch(t){a={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var o=a;switch(o.tag){case"ok":{const t=o.val;if(R(at).setInt8(r+0,0,!0),!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=t[Y];if(!c){const e=t[V]||++et;tt.set(e,t),c=M(Z,e)}R(at).setInt32(r+4,c,!0);break}case"err":{const t=o.val;R(at).setInt8(r+0,1,!0);var l=t;let e;switch(l){case"access":e=0;break;case"would-block":e=1;break;case"already":e=2;break;case"bad-descriptor":e=3;break;case"busy":e=4;break;case"deadlock":e=5;break;case"quota":e=6;break;case"exist":e=7;break;case"file-too-large":e=8;break;case"illegal-byte-sequence":e=9;break;case"in-progress":e=10;break;case"interrupted":e=11;break;case"invalid":e=12;break;case"io":e=13;break;case"is-directory":e=14;break;case"loop":e=15;break;case"too-many-links":e=16;break;case"message-size":e=17;break;case"name-too-long":e=18;break;case"no-device":e=19;break;case"no-entry":e=20;break;case"no-lock":e=21;break;case"insufficient-memory":e=22;break;case"insufficient-space":e=23;break;case"not-directory":e=24;break;case"not-empty":e=25;break;case"not-recoverable":e=26;break;case"unsupported":e=27;break;case"no-tty":e=28;break;case"no-such-device":e=29;break;case"overflow":e=30;break;case"not-permitted":e=31;break;case"pipe":e=32;break;case"read-only":e=33;break;case"invalid-seek":e=34;break;case"text-file-busy":e=35;break;case"cross-device":e=36;break;default:throw new TypeError(`"${l}" is not one of the cases of error-code`)}R(at).setInt8(r+4,e,!0);break}default:throw new TypeError("invalid variant specified for result")}}function gt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;if(R(at).setInt8(e+0,0,!0),!(t instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=t[Y];if(!o){const e=t[V]||++et;tt.set(e,t),o=M(Z,e)}R(at).setInt32(e+4,o,!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}R(at).setInt8(e+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function wt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.getType()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0);var o=t;let r;switch(o){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${o}" is not one of the cases of descriptor-type`)}R(at).setInt8(e+1,r,!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var c=t;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}R(at).setInt8(e+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function xt(t,e){var r=t,s=pt[1+(r<<1)]&~q,i=mt.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.stat()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0);var{type:o,linkCount:c,size:l,dataAccessTimestamp:h,dataModificationTimestamp:u,statusChangeTimestamp:d}=t,p=o;let r;switch(p){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${p}" is not one of the cases of descriptor-type`)}R(at).setInt8(e+8,r,!0),R(at).setBigInt64(e+16,B(c),!0),R(at).setBigInt64(e+24,B(l),!0);var m=h;if(null==m)R(at).setInt8(e+32,0,!0);else{const t=m;R(at).setInt8(e+32,1,!0);var{seconds:y,nanoseconds:f}=t;R(at).setBigInt64(e+40,B(y),!0),R(at).setInt32(e+48,H(f),!0)}var g=u;if(null==g)R(at).setInt8(e+56,0,!0);else{const t=g;R(at).setInt8(e+56,1,!0);var{seconds:w,nanoseconds:v}=t;R(at).setBigInt64(e+64,B(w),!0),R(at).setInt32(e+72,H(v),!0)}var b=d;if(null==b)R(at).setInt8(e+80,0,!0);else{const t=b;R(at).setInt8(e+80,1,!0);var{seconds:_,nanoseconds:E}=t;R(at).setBigInt64(e+88,B(_),!0),R(at).setInt32(e+96,H(E),!0)}break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var T=t;let r;switch(T){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${T}" is not one of the cases of error-code`)}R(at).setInt8(e+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}O[3]=pt;const vt=[q,0],bt=new Map;let _t,Et,Tt,St,kt,Rt,At,Ct,Lt,It,Kt,Nt,Ot,Dt,Pt=0;function qt(t,e){var r=t,s=vt[1+(r<<1)]&~q,i=bt.get(s);i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);const n=v(i);for(const t of S)t[Y]=void 0;S=[];var a=n;if(null==a)R(at).setInt8(e+0,0,!0);else{const t=a;R(at).setInt8(e+0,1,!0);var o=t;let r;switch(o){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${o}" is not one of the cases of error-code`)}R(at).setInt8(e+1,r,!0)}}function Mt(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const t=a.val;R(at).setInt8(e+0,0,!0),R(at).setBigInt64(e+8,B(t),!0);break}case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+8,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++Pt;bt.set(e,t),c=M(vt,e)}R(at).setInt32(e+12,c,!0);break}case"closed":R(at).setInt8(e+8,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ft(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++Pt;bt.set(e,t),p=M(vt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ut(t,e,r,s){var i=t,n=Z[1+(i<<1)]&~q,a=tt.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=e,c=r,l=new Uint8Array(at.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(t){h={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(at).setInt8(s+0,0,!0);break;case"err":{const t=u.val;R(at).setInt8(s+0,1,!0);var d=t;switch(d.tag){case"last-operation-failed":{const t=d.val;if(R(at).setInt8(s+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=t[Y];if(!p){const e=t[V]||++Pt;bt.set(e,t),p=M(vt,e)}R(at).setInt32(s+8,p,!0);break}case"closed":R(at).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Yt(t,e){var r=t,s=Z[1+(r<<1)]&~q,i=tt.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(t){n={tag:"err",val:N(t)}}for(const t of S)t[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":a.val,R(at).setInt8(e+0,0,!0);break;case"err":{const t=a.val;R(at).setInt8(e+0,1,!0);var o=t;switch(o.tag){case"last-operation-failed":{const t=o.val;if(R(at).setInt8(e+4,0,!0),!(t instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=t[Y];if(!c){const e=t[V]||++Pt;bt.set(e,t),c=M(vt,e)}R(at).setInt32(e+8,c,!0);break}case"closed":R(at).setInt8(e+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Vt(t,e){var r=T(BigInt.asUintN(64,t)),s=r.byteLength,i=ot(0,0,1,1*s),n=new Uint8Array(r.buffer||r,r.byteOffset,1*s);new Uint8Array(at.buffer,i,1*s).set(n),R(at).setInt32(e+4,s,!0),R(at).setInt32(e+0,i,!0)}function jt(t){var e=w(),r=e.length,s=ot(0,0,4,12*r);for(let t=0;t<e.length;t++){const r=e[t],l=s+12*t;var[i,n]=r;if(!(i instanceof x))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const t=i[V]||++yt;mt.set(t,i),a=M(pt,t)}R(at).setInt32(l+0,a,!0);var o=W(n,ot,at),c=z;R(at).setInt32(l+8,c,!0),R(at).setInt32(l+4,o,!0)}R(at).setInt32(t+4,r,!0),R(at).setInt32(t+0,s,!0)}O[0]=vt;class Bt{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}Bt.isIdentifier=function(t){return!!Nt(l[t])},Bt.isTrivia=function(t){return!!Ot(l[t])},Bt.isValid=function(t){return!!Dt(l[t])};const Ht=[q,0],$t=K(t=>{const{rep:e}=F(Ht,t);Q[20](e)});O[6]=Ht;const Gt=[q,0],zt=K(t=>{const{rep:e}=F(Gt,t);Q[18](e)});let Wt,Xt,Qt,Jt,Zt;O[4]=Gt;class te{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}te.prototype[X]=function(t,e,r){const s=Object.getPrototypeOf(this)[X];try{return delete Object.getPrototypeOf(this)[X],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[X]=s}},te.create=function(t,e){var r=e,s=r.length,i=Et(0,0,4,4*s);for(let t=0;t<r.length;t++){const e=r[t],s=i+4*t;var n=e[Y];if(!n)throw new TypeError('Resource error: Not a valid "Edge" resource.');$t.unregister(e),e[j]=A,e[Y]=void 0,R(at).setInt32(s+0,n,!0)}var a=Wt(c[t],i,s),o=new.target===te?this:Object.create(te.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),zt.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){zt.unregister(o),F(Gt,a),o[j]=A,o[Y]=void 0,Q[18](Gt[1+(a<<1)]&~q)}}),o},Object.defineProperty(te.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;return Xt(e)>>>0}}),Object.defineProperty(te.prototype,"kind",{get:function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=Qt(e);return c[r]}}),Object.defineProperty(te.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=Jt(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),te.prototype.children=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=Zt(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$t.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$t.unregister(o),F(Ht,a),o[j]=A,o[Y]=void 0,Q[20](Ht[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c};const ee=[q,0],re=K(t=>{const{rep:e}=F(ee,t);Q[22](e)});let se,ie,ne;O[8]=ee,te.prototype.descendants=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q,r=se(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s},te.prototype.unparse=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=ie(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n},te.prototype.toJson=function(){var t=this[Y];if(!t||0===(Gt[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Gt[1+(t<<1)]&~q;const r=ne(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n};const ae=[q,0],oe=K(t=>{const{rep:e}=F(ae,t);Q[21](e)});let ce;O[7]=ae,te.prototype.createCursor=function(t){var e=this[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q,{utf8:s,utf16:i,line:n,column:a}=t,o=ce(r,H(s),H(i),H(n),H(a)),c=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),oe.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){oe.unregister(c),F(ae,o),c[j]=A,c[Y]=void 0,Q[21](ae[1+(o<<1)]&~q)}}),c};const le=[q,0],he=K(t=>{const{rep:e}=F(le,t);Q[19](e)});let ue,de,pe,me,ye,fe,ge,we,xe,ve,be,_e,Ee,Te,Se,ke,Re,Ae,Ce,Le,Ie,Ke,Ne,Oe,De;O[5]=le;class Pe{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}Pe.prototype[X]=function(t,e,r){const s=Object.getPrototypeOf(this)[X];try{return delete Object.getPrototypeOf(this)[X],r(this,{...e,depth:t,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[X]=s}},Pe.create=function(t,e){var r=W(e,Et,at),s=z,i=ue(l[t],r,s),n=new.target===Pe?this:Object.create(Pe.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),he.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){he.unregister(n),F(le,i),n[j]=A,n[Y]=void 0,Q[19](le[1+(i<<1)]&~q)}}),n},Object.defineProperty(Pe.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;return de(e)>>>0}}),Object.defineProperty(Pe.prototype,"kind",{get:function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=pe(e);return l[r]}}),Object.defineProperty(Pe.prototype,"textLength",{get:function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=me(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Pe.prototype.children=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=ye(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$t.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$t.unregister(o),F(Ht,a),o[j]=A,o[Y]=void 0,Q[20](Ht[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c},Pe.prototype.descendants=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q,r=fe(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s},Pe.prototype.unparse=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=ge(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n},Pe.prototype.toJson=function(){var t=this[Y];if(!t||0===(le[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=le[1+(t<<1)]&~q;const r=we(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n};class qe{constructor(){throw new Error('"Edge" resource does not define a constructor')}}qe.createWithTerminal=function(t,e){var r=e[Y];if(!r)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');he.unregister(e),e[j]=A,e[Y]=void 0;var s=xe(h[t],r),i=new.target===qe?this:Object.create(qe.prototype);return Object.defineProperty(i,Y,{writable:!0,value:s}),$t.register(i,s,i),Object.defineProperty(i,j,{writable:!0,value:function(){$t.unregister(i),F(Ht,s),i[j]=A,i[Y]=void 0,Q[20](Ht[1+(s<<1)]&~q)}}),i},qe.createWithNonterminal=function(t,e){var r=e[Y];if(!r)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');zt.unregister(e),e[j]=A,e[Y]=void 0;var s=ve(h[t],r),i=new.target===qe?this:Object.create(qe.prototype);return Object.defineProperty(i,Y,{writable:!0,value:s}),$t.register(i,s,i),Object.defineProperty(i,j,{writable:!0,value:function(){$t.unregister(i),F(Ht,s),i[j]=A,i[Y]=void 0,Q[20](Ht[1+(s<<1)]&~q)}}),i},Object.defineProperty(qe.prototype,"label",{get:function(){var t=this[Y];if(!t||0===(Ht[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Edge" resource.');var e=Ht[1+(t<<1)]&~q;const r=be(e);return h[r]}}),Object.defineProperty(qe.prototype,"node",{get:function(){var t=this[Y];if(!t||0===(Ht[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Edge" resource.');var e=Ht[1+(t<<1)]&~q;const r=_e(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===te?this:Object.create(te.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),zt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){zt.unregister(n),F(Gt,i),n[j]=A,n[Y]=void 0,Q[18](Gt[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),he.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){he.unregister(o),F(le,a),o[j]=A,o[Y]=void 0,Q[19](le[1+(a<<1)]&~q)}}),s=o}return s}});class Me{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}Me.prototype.reset=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;Ee(e)},Me.prototype.complete=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;Te(e)},Me.prototype.isCompleted=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Se(e)},Me.prototype.clone=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=ke(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s},Me.prototype.spawn=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Re(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s},Object.defineProperty(Me.prototype,"node",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ae(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===te?this:Object.create(te.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),zt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){zt.unregister(n),F(Gt,i),n[j]=A,n[Y]=void 0,Q[18](Gt[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),he.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){he.unregister(o),F(le,a),o[j]=A,o[Y]=void 0,Q[19](le[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Me.prototype,"label",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ce(e);return h[r]}}),Object.defineProperty(Me.prototype,"textOffset",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Le(e);return{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(Me.prototype,"textRange",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ie(e);return{start:{utf8:R(at).getInt32(r+0,!0)>>>0,utf16:R(at).getInt32(r+4,!0)>>>0,line:R(at).getInt32(r+8,!0)>>>0,column:R(at).getInt32(r+12,!0)>>>0},end:{utf8:R(at).getInt32(r+16,!0)>>>0,utf16:R(at).getInt32(r+20,!0)>>>0,line:R(at).getInt32(r+24,!0)>>>0,column:R(at).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Me.prototype,"depth",{get:function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return Ke(e)>>>0}}),Me.prototype.children=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;const r=Ne(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$t.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$t.unregister(o),F(Ht,a),o[j]=A,o[Y]=void 0,Q[20](Ht[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c},Me.prototype.descendants=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Oe(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s},Me.prototype.remainingNodes=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=De(e),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),re.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){re.unregister(s),F(ee,r),s[j]=A,s[Y]=void 0,Q[22](ee[1+(r<<1)]&~q)}}),s};const Fe=[q,0],Ue=K(t=>{const{rep:e}=F(Fe,t);Q[23](e)});let Ye,Ve,je,Be,He,$e,Ge,ze,We,Xe,Qe,Je,Ze,tr,er,rr;O[9]=Fe,Me.prototype.ancestors=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q,r=Ye(e),s=new.target===mr?this:Object.create(mr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ue.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Ue.unregister(s),F(Fe,r),s[j]=A,s[Y]=void 0,Q[23](Fe[1+(r<<1)]&~q)}}),s},Me.prototype.goToNext=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ve(e)},Me.prototype.goToNextNonDescendant=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!je(e)},Me.prototype.goToPrevious=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Be(e)},Me.prototype.goToParent=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!He(e)},Me.prototype.goToFirstChild=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!$e(e)},Me.prototype.goToLastChild=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Ge(e)},Me.prototype.goToNthChild=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!ze(r,H(t))},Me.prototype.goToNextSibling=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!We(e)},Me.prototype.goToPreviousSibling=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Xe(e)},Me.prototype.goToNextTerminal=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!Qe(e)},Me.prototype.goToNextTerminalWithKind=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!Je(r,l[t])},Me.prototype.goToNextTerminalWithKinds=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=Et(0,0,2,2*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+2*t;R(at).setInt16(r+0,l[e],!0)}return!!Ze(r,n,i)},Me.prototype.goToNextNonterminal=function(){var t=this[Y];if(!t||0===(ae[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ae[1+(t<<1)]&~q;return!!tr(e)},Me.prototype.goToNextNonterminalWithKind=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q;return!!er(r,c[t])},Me.prototype.goToNextNonterminalWithKinds=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=Et(0,0,1,1*i);for(let t=0;t<s.length;t++){const e=s[t],r=n+1*t;R(at).setInt8(r+0,c[e],!0)}return!!rr(r,n,i)};const sr=[q,0],ir=K(t=>{const{rep:e}=F(sr,t);Q[24](e)});O[10]=sr;const nr=[q,0],ar=K(t=>{const{rep:e}=F(nr,t);Q[25](e)});let or,cr,lr,hr,ur,dr;O[11]=nr,Me.prototype.query=function(t){var e=this[Y];if(!e||0===(ae[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=ae[1+(e<<1)]&~q,s=t,i=s.length,n=Et(0,0,4,4*i);for(let t=0;t<s.length;t++){const e=n+4*t;var a=s[t][Y];if(!a||0===(sr[1+(a<<1)]&q))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=sr[1+(a<<1)]&~q;R(at).setInt32(e+0,o,!0)}var c=or(r,n,i),l=new.target===fr?this:Object.create(fr.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),ar.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){ar.unregister(l),F(nr,c),l[j]=A,l[Y]=void 0,Q[25](nr[1+(c<<1)]&~q)}}),l};class pr{constructor(){throw new Error('"CursorIterator" resource does not define a constructor')}}pr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},pr.prototype.next=function(){var t=this[Y];if(!t||0===(ee[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CursorIterator" resource.');var e=ee[1+(t<<1)]&~q;const r=cr(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=new.target===qe?this:Object.create(qe.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),$t.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){$t.unregister(n),F(Ht,i),n[j]=A,n[Y]=void 0,Q[20](Ht[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class mr{constructor(){throw new Error('"AncestorsIterator" resource does not define a constructor')}}mr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},mr.prototype.next=function(){var t=this[Y];if(!t||0===(Fe[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "AncestorsIterator" resource.');var e=Fe[1+(t<<1)]&~q;const r=lr(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=new.target===te?this:Object.create(te.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),zt.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){zt.unregister(n),F(Gt,i),n[j]=A,n[Y]=void 0,Q[18](Gt[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class yr{constructor(){throw new Error('"Query" resource does not define a constructor')}}yr.create=function(t){var e=W(t,Et,at);const r=hr(e,z);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:{message:$.decode(new Uint8Array(at.buffer,i,n)),textRange:{start:{utf8:R(at).getInt32(r+12,!0)>>>0,utf16:R(at).getInt32(r+16,!0)>>>0,line:R(at).getInt32(r+20,!0)>>>0,column:R(at).getInt32(r+24,!0)>>>0},end:{utf8:R(at).getInt32(r+28,!0)>>>0,utf16:R(at).getInt32(r+32,!0)>>>0,line:R(at).getInt32(r+36,!0)>>>0,column:R(at).getInt32(r+40,!0)>>>0}}}}}else{var a=R(at).getInt32(r+4,!0),o=new.target===yr?this:Object.create(yr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ir.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ir.unregister(o),F(sr,a),o[j]=A,o[Y]=void 0,Q[24](sr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val};class fr{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}fr.prototype[Symbol.iterator]=function(){return{next:()=>{const t=this.next();return{done:null==t,value:t}}}},fr.prototype.next=function(){var t=this[Y];if(!t||0===(nr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var e=nr[1+(t<<1)]&~q;const r=ur(e);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+8,!0),n=new.target===Me?this:Object.create(Me.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),oe.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){oe.unregister(n),F(ae,i),n[j]=A,n[Y]=void 0,Q[21](ae[1+(i<<1)]&~q)}});var a=R(at).getInt32(r+16,!0),o=R(at).getInt32(r+12,!0),c=[];for(let t=0;t<a;t++){const e=o+16*t;var l=R(at).getInt32(e+0,!0),h=R(at).getInt32(e+4,!0),u=$.decode(new Uint8Array(at.buffer,l,h)),d=R(at).getInt32(e+12,!0),p=R(at).getInt32(e+8,!0),m=[];for(let t=0;t<d;t++){const e=p+4*t;var y=R(at).getInt32(e+0,!0),f=new.target===Me?this:Object.create(Me.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),oe.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){oe.unregister(f),F(ae,y),f[j]=A,f[Y]=void 0,Q[21](ae[1+(y<<1)]&~q)}}),m.push(f)}c.push([u,m])}s={queryIndex:R(at).getInt32(r+4,!0)>>>0,root:n,captures:c.reduce((t,e)=>(t[e[0]]=e[1],t),{})}}else s=void 0;const g=s;return Rt(r),g};class gr{constructor(){throw new Error('"TextIndexExtensions" resource does not define a constructor')}}gr.zero=function(){const t=dr();return{utf8:R(at).getInt32(t+0,!0)>>>0,utf16:R(at).getInt32(t+4,!0)>>>0,line:R(at).getInt32(t+8,!0)>>>0,column:R(at).getInt32(t+12,!0)>>>0}};var c={};c[c.AbicoderPragma=0]="AbicoderPragma",c[c.AbicoderVersion=1]="AbicoderVersion",c[c.AdditiveExpression=2]="AdditiveExpression",c[c.AddressType=3]="AddressType",c[c.AndExpression=4]="AndExpression",c[c.ArgumentsDeclaration=5]="ArgumentsDeclaration",c[c.ArrayExpression=6]="ArrayExpression",c[c.ArrayTypeName=7]="ArrayTypeName",c[c.ArrayValues=8]="ArrayValues",c[c.AssemblyFlags=9]="AssemblyFlags",c[c.AssemblyFlagsDeclaration=10]="AssemblyFlagsDeclaration",c[c.AssemblyStatement=11]="AssemblyStatement",c[c.AssignmentExpression=12]="AssignmentExpression",c[c.BitwiseAndExpression=13]="BitwiseAndExpression",c[c.BitwiseOrExpression=14]="BitwiseOrExpression",c[c.BitwiseXorExpression=15]="BitwiseXorExpression",c[c.Block=16]="Block",c[c.BreakStatement=17]="BreakStatement",c[c.CallOptions=18]="CallOptions",c[c.CallOptionsExpression=19]="CallOptionsExpression",c[c.CatchClause=20]="CatchClause",c[c.CatchClauseError=21]="CatchClauseError",c[c.CatchClauses=22]="CatchClauses",c[c.ConditionalExpression=23]="ConditionalExpression",c[c.ConstantDefinition=24]="ConstantDefinition",c[c.ConstructorAttribute=25]="ConstructorAttribute",c[c.ConstructorAttributes=26]="ConstructorAttributes",c[c.ConstructorDefinition=27]="ConstructorDefinition",c[c.ContinueStatement=28]="ContinueStatement",c[c.ContractDefinition=29]="ContractDefinition",c[c.ContractMember=30]="ContractMember",c[c.ContractMembers=31]="ContractMembers",c[c.ContractSpecifier=32]="ContractSpecifier",c[c.ContractSpecifiers=33]="ContractSpecifiers",c[c.DecimalNumberExpression=34]="DecimalNumberExpression",c[c.DoWhileStatement=35]="DoWhileStatement",c[c.ElementaryType=36]="ElementaryType",c[c.ElseBranch=37]="ElseBranch",c[c.EmitStatement=38]="EmitStatement",c[c.EnumDefinition=39]="EnumDefinition",c[c.EnumMembers=40]="EnumMembers",c[c.EqualityExpression=41]="EqualityExpression",c[c.ErrorDefinition=42]="ErrorDefinition",c[c.ErrorParameter=43]="ErrorParameter",c[c.ErrorParameters=44]="ErrorParameters",c[c.ErrorParametersDeclaration=45]="ErrorParametersDeclaration",c[c.EventDefinition=46]="EventDefinition",c[c.EventParameter=47]="EventParameter",c[c.EventParameters=48]="EventParameters",c[c.EventParametersDeclaration=49]="EventParametersDeclaration",c[c.ExperimentalFeature=50]="ExperimentalFeature",c[c.ExperimentalPragma=51]="ExperimentalPragma",c[c.ExponentiationExpression=52]="ExponentiationExpression",c[c.Expression=53]="Expression",c[c.ExpressionStatement=54]="ExpressionStatement",c[c.FallbackFunctionAttribute=55]="FallbackFunctionAttribute",c[c.FallbackFunctionAttributes=56]="FallbackFunctionAttributes",c[c.FallbackFunctionDefinition=57]="FallbackFunctionDefinition",c[c.ForStatement=58]="ForStatement",c[c.ForStatementCondition=59]="ForStatementCondition",c[c.ForStatementInitialization=60]="ForStatementInitialization",c[c.FunctionAttribute=61]="FunctionAttribute",c[c.FunctionAttributes=62]="FunctionAttributes",c[c.FunctionBody=63]="FunctionBody",c[c.FunctionCallExpression=64]="FunctionCallExpression",c[c.FunctionDefinition=65]="FunctionDefinition",c[c.FunctionName=66]="FunctionName",c[c.FunctionType=67]="FunctionType",c[c.FunctionTypeAttribute=68]="FunctionTypeAttribute",c[c.FunctionTypeAttributes=69]="FunctionTypeAttributes",c[c.HexNumberExpression=70]="HexNumberExpression",c[c.HexStringLiteral=71]="HexStringLiteral",c[c.HexStringLiterals=72]="HexStringLiterals",c[c.IdentifierPath=73]="IdentifierPath",c[c.IfStatement=74]="IfStatement",c[c.ImportAlias=75]="ImportAlias",c[c.ImportClause=76]="ImportClause",c[c.ImportDeconstruction=77]="ImportDeconstruction",c[c.ImportDeconstructionSymbol=78]="ImportDeconstructionSymbol",c[c.ImportDeconstructionSymbols=79]="ImportDeconstructionSymbols",c[c.ImportDirective=80]="ImportDirective",c[c.IndexAccessEnd=81]="IndexAccessEnd",c[c.IndexAccessExpression=82]="IndexAccessExpression",c[c.InequalityExpression=83]="InequalityExpression",c[c.InheritanceSpecifier=84]="InheritanceSpecifier",c[c.InheritanceType=85]="InheritanceType",c[c.InheritanceTypes=86]="InheritanceTypes",c[c.InterfaceDefinition=87]="InterfaceDefinition",c[c.InterfaceMembers=88]="InterfaceMembers",c[c.LibraryDefinition=89]="LibraryDefinition",c[c.LibraryMembers=90]="LibraryMembers",c[c.MappingKey=91]="MappingKey",c[c.MappingKeyType=92]="MappingKeyType",c[c.MappingType=93]="MappingType",c[c.MappingValue=94]="MappingValue",c[c.MemberAccessExpression=95]="MemberAccessExpression",c[c.ModifierAttribute=96]="ModifierAttribute",c[c.ModifierAttributes=97]="ModifierAttributes",c[c.ModifierDefinition=98]="ModifierDefinition",c[c.ModifierInvocation=99]="ModifierInvocation",c[c.MultiplicativeExpression=100]="MultiplicativeExpression",c[c.NamedArgument=101]="NamedArgument",c[c.NamedArgumentGroup=102]="NamedArgumentGroup",c[c.NamedArguments=103]="NamedArguments",c[c.NamedArgumentsDeclaration=104]="NamedArgumentsDeclaration",c[c.NamedImport=105]="NamedImport",c[c.NewExpression=106]="NewExpression",c[c.NumberUnit=107]="NumberUnit",c[c.OrExpression=108]="OrExpression",c[c.OverridePaths=109]="OverridePaths",c[c.OverridePathsDeclaration=110]="OverridePathsDeclaration",c[c.OverrideSpecifier=111]="OverrideSpecifier",c[c.Parameter=112]="Parameter",c[c.Parameters=113]="Parameters",c[c.ParametersDeclaration=114]="ParametersDeclaration",c[c.PathImport=115]="PathImport",c[c.PositionalArguments=116]="PositionalArguments",c[c.PositionalArgumentsDeclaration=117]="PositionalArgumentsDeclaration",c[c.PostfixExpression=118]="PostfixExpression",c[c.Pragma=119]="Pragma",c[c.PragmaDirective=120]="PragmaDirective",c[c.PrefixExpression=121]="PrefixExpression",c[c.ReceiveFunctionAttribute=122]="ReceiveFunctionAttribute",c[c.ReceiveFunctionAttributes=123]="ReceiveFunctionAttributes",c[c.ReceiveFunctionDefinition=124]="ReceiveFunctionDefinition",c[c.ReturnStatement=125]="ReturnStatement",c[c.ReturnsDeclaration=126]="ReturnsDeclaration",c[c.RevertStatement=127]="RevertStatement",c[c.ShiftExpression=128]="ShiftExpression",c[c.SimpleVersionLiteral=129]="SimpleVersionLiteral",c[c.SourceUnit=130]="SourceUnit",c[c.SourceUnitMember=131]="SourceUnitMember",c[c.SourceUnitMembers=132]="SourceUnitMembers",c[c.StateVariableAttribute=133]="StateVariableAttribute",c[c.StateVariableAttributes=134]="StateVariableAttributes",c[c.StateVariableDefinition=135]="StateVariableDefinition",c[c.StateVariableDefinitionValue=136]="StateVariableDefinitionValue",c[c.Statement=137]="Statement",c[c.Statements=138]="Statements",c[c.StorageLayoutSpecifier=139]="StorageLayoutSpecifier",c[c.StorageLocation=140]="StorageLocation",c[c.StringExpression=141]="StringExpression",c[c.StringLiteral=142]="StringLiteral",c[c.StringLiterals=143]="StringLiterals",c[c.StructDefinition=144]="StructDefinition",c[c.StructMember=145]="StructMember",c[c.StructMembers=146]="StructMembers",c[c.ThrowStatement=147]="ThrowStatement",c[c.TryStatement=148]="TryStatement",c[c.TupleDeconstructionElement=149]="TupleDeconstructionElement",c[c.TupleDeconstructionElements=150]="TupleDeconstructionElements",c[c.TupleDeconstructionStatement=151]="TupleDeconstructionStatement",c[c.TupleExpression=152]="TupleExpression",c[c.TupleMember=153]="TupleMember",c[c.TupleValue=154]="TupleValue",c[c.TupleValues=155]="TupleValues",c[c.TypeExpression=156]="TypeExpression",c[c.TypeName=157]="TypeName",c[c.TypedTupleMember=158]="TypedTupleMember",c[c.UncheckedBlock=159]="UncheckedBlock",c[c.UnicodeStringLiteral=160]="UnicodeStringLiteral",c[c.UnicodeStringLiterals=161]="UnicodeStringLiterals",c[c.UnnamedFunctionAttribute=162]="UnnamedFunctionAttribute",c[c.UnnamedFunctionAttributes=163]="UnnamedFunctionAttributes",c[c.UnnamedFunctionDefinition=164]="UnnamedFunctionDefinition",c[c.UntypedTupleMember=165]="UntypedTupleMember",c[c.UserDefinedValueTypeDefinition=166]="UserDefinedValueTypeDefinition",c[c.UsingAlias=167]="UsingAlias",c[c.UsingClause=168]="UsingClause",c[c.UsingDeconstruction=169]="UsingDeconstruction",c[c.UsingDeconstructionSymbol=170]="UsingDeconstructionSymbol",c[c.UsingDeconstructionSymbols=171]="UsingDeconstructionSymbols",c[c.UsingDirective=172]="UsingDirective",c[c.UsingOperator=173]="UsingOperator",c[c.UsingTarget=174]="UsingTarget",c[c.VariableDeclarationStatement=175]="VariableDeclarationStatement",c[c.VariableDeclarationType=176]="VariableDeclarationType",c[c.VariableDeclarationValue=177]="VariableDeclarationValue",c[c.VersionExpression=178]="VersionExpression",c[c.VersionExpressionSet=179]="VersionExpressionSet",c[c.VersionExpressionSets=180]="VersionExpressionSets",c[c.VersionLiteral=181]="VersionLiteral",c[c.VersionOperator=182]="VersionOperator",c[c.VersionPragma=183]="VersionPragma",c[c.VersionRange=184]="VersionRange",c[c.VersionTerm=185]="VersionTerm",c[c.WhileStatement=186]="WhileStatement",c[c.YulArguments=187]="YulArguments",c[c.YulAssignmentOperator=188]="YulAssignmentOperator",c[c.YulBlock=189]="YulBlock",c[c.YulBreakStatement=190]="YulBreakStatement",c[c.YulColonAndEqual=191]="YulColonAndEqual",c[c.YulContinueStatement=192]="YulContinueStatement",c[c.YulDefaultCase=193]="YulDefaultCase",c[c.YulEqualAndColon=194]="YulEqualAndColon",c[c.YulExpression=195]="YulExpression",c[c.YulForStatement=196]="YulForStatement",c[c.YulFunctionCallExpression=197]="YulFunctionCallExpression",c[c.YulFunctionDefinition=198]="YulFunctionDefinition",c[c.YulIfStatement=199]="YulIfStatement",c[c.YulLabel=200]="YulLabel",c[c.YulLeaveStatement=201]="YulLeaveStatement",c[c.YulLiteral=202]="YulLiteral",c[c.YulParameters=203]="YulParameters",c[c.YulParametersDeclaration=204]="YulParametersDeclaration",c[c.YulPath=205]="YulPath",c[c.YulPaths=206]="YulPaths",c[c.YulReturnsDeclaration=207]="YulReturnsDeclaration",c[c.YulStackAssignmentOperator=208]="YulStackAssignmentOperator",c[c.YulStackAssignmentStatement=209]="YulStackAssignmentStatement",c[c.YulStatement=210]="YulStatement",c[c.YulStatements=211]="YulStatements",c[c.YulSwitchCase=212]="YulSwitchCase",c[c.YulSwitchCases=213]="YulSwitchCases",c[c.YulSwitchStatement=214]="YulSwitchStatement",c[c.YulValueCase=215]="YulValueCase",c[c.YulVariableAssignmentStatement=216]="YulVariableAssignmentStatement",c[c.YulVariableDeclarationStatement=217]="YulVariableDeclarationStatement",c[c.YulVariableDeclarationValue=218]="YulVariableDeclarationValue",c[c.YulVariableNames=219]="YulVariableNames";var l={};l[l.Unrecognized=0]="Unrecognized",l[l.Missing=1]="Missing",l[l.ABIEncoderV2Keyword=2]="ABIEncoderV2Keyword",l[l.AbicoderKeyword=3]="AbicoderKeyword",l[l.AbicoderV1Keyword=4]="AbicoderV1Keyword",l[l.AbicoderV2Keyword=5]="AbicoderV2Keyword",l[l.AbstractKeyword=6]="AbstractKeyword",l[l.AddressKeyword=7]="AddressKeyword",l[l.AfterKeyword=8]="AfterKeyword",l[l.AliasKeyword=9]="AliasKeyword",l[l.Ampersand=10]="Ampersand",l[l.AmpersandAmpersand=11]="AmpersandAmpersand",l[l.AmpersandEqual=12]="AmpersandEqual",l[l.AnonymousKeyword=13]="AnonymousKeyword",l[l.ApplyKeyword=14]="ApplyKeyword",l[l.AsKeyword=15]="AsKeyword",l[l.AssemblyKeyword=16]="AssemblyKeyword",l[l.Asterisk=17]="Asterisk",l[l.AsteriskAsterisk=18]="AsteriskAsterisk",l[l.AsteriskEqual=19]="AsteriskEqual",l[l.AtKeyword=20]="AtKeyword",l[l.AutoKeyword=21]="AutoKeyword",l[l.Bang=22]="Bang",l[l.BangEqual=23]="BangEqual",l[l.Bar=24]="Bar",l[l.BarBar=25]="BarBar",l[l.BarEqual=26]="BarEqual",l[l.BoolKeyword=27]="BoolKeyword",l[l.BreakKeyword=28]="BreakKeyword",l[l.ByteKeyword=29]="ByteKeyword",l[l.BytesKeyword=30]="BytesKeyword",l[l.CallDataKeyword=31]="CallDataKeyword",l[l.Caret=32]="Caret",l[l.CaretEqual=33]="CaretEqual",l[l.CaseKeyword=34]="CaseKeyword",l[l.CatchKeyword=35]="CatchKeyword",l[l.CloseBrace=36]="CloseBrace",l[l.CloseBracket=37]="CloseBracket",l[l.CloseParen=38]="CloseParen",l[l.Colon=39]="Colon",l[l.ColonEqual=40]="ColonEqual",l[l.Comma=41]="Comma",l[l.ConstantKeyword=42]="ConstantKeyword",l[l.ConstructorKeyword=43]="ConstructorKeyword",l[l.ContinueKeyword=44]="ContinueKeyword",l[l.ContractKeyword=45]="ContractKeyword",l[l.CopyOfKeyword=46]="CopyOfKeyword",l[l.DaysKeyword=47]="DaysKeyword",l[l.DecimalLiteral=48]="DecimalLiteral",l[l.DefaultKeyword=49]="DefaultKeyword",l[l.DefineKeyword=50]="DefineKeyword",l[l.DeleteKeyword=51]="DeleteKeyword",l[l.DoKeyword=52]="DoKeyword",l[l.DoubleQuotedHexStringLiteral=53]="DoubleQuotedHexStringLiteral",l[l.DoubleQuotedStringLiteral=54]="DoubleQuotedStringLiteral",l[l.DoubleQuotedUnicodeStringLiteral=55]="DoubleQuotedUnicodeStringLiteral",l[l.DoubleQuotedVersionLiteral=56]="DoubleQuotedVersionLiteral",l[l.ElseKeyword=57]="ElseKeyword",l[l.EmitKeyword=58]="EmitKeyword",l[l.EndOfLine=59]="EndOfLine",l[l.EnumKeyword=60]="EnumKeyword",l[l.Equal=61]="Equal",l[l.EqualColon=62]="EqualColon",l[l.EqualEqual=63]="EqualEqual",l[l.EqualGreaterThan=64]="EqualGreaterThan",l[l.ErrorKeyword=65]="ErrorKeyword",l[l.EtherKeyword=66]="EtherKeyword",l[l.EventKeyword=67]="EventKeyword",l[l.ExperimentalKeyword=68]="ExperimentalKeyword",l[l.ExternalKeyword=69]="ExternalKeyword",l[l.FallbackKeyword=70]="FallbackKeyword",l[l.FalseKeyword=71]="FalseKeyword",l[l.FinalKeyword=72]="FinalKeyword",l[l.FinneyKeyword=73]="FinneyKeyword",l[l.FixedKeyword=74]="FixedKeyword",l[l.ForKeyword=75]="ForKeyword",l[l.FromKeyword=76]="FromKeyword",l[l.FunctionKeyword=77]="FunctionKeyword",l[l.GlobalKeyword=78]="GlobalKeyword",l[l.GreaterThan=79]="GreaterThan",l[l.GreaterThanEqual=80]="GreaterThanEqual",l[l.GreaterThanGreaterThan=81]="GreaterThanGreaterThan",l[l.GreaterThanGreaterThanEqual=82]="GreaterThanGreaterThanEqual",l[l.GreaterThanGreaterThanGreaterThan=83]="GreaterThanGreaterThanGreaterThan",l[l.GreaterThanGreaterThanGreaterThanEqual=84]="GreaterThanGreaterThanGreaterThanEqual",l[l.GweiKeyword=85]="GweiKeyword",l[l.HexKeyword=86]="HexKeyword",l[l.HexLiteral=87]="HexLiteral",l[l.HoursKeyword=88]="HoursKeyword",l[l.Identifier=89]="Identifier",l[l.IfKeyword=90]="IfKeyword",l[l.ImmutableKeyword=91]="ImmutableKeyword",l[l.ImplementsKeyword=92]="ImplementsKeyword",l[l.ImportKeyword=93]="ImportKeyword",l[l.InKeyword=94]="InKeyword",l[l.IndexedKeyword=95]="IndexedKeyword",l[l.InlineKeyword=96]="InlineKeyword",l[l.IntKeyword=97]="IntKeyword",l[l.InterfaceKeyword=98]="InterfaceKeyword",l[l.InternalKeyword=99]="InternalKeyword",l[l.IsKeyword=100]="IsKeyword",l[l.LayoutKeyword=101]="LayoutKeyword",l[l.LessThan=102]="LessThan",l[l.LessThanEqual=103]="LessThanEqual",l[l.LessThanLessThan=104]="LessThanLessThan",l[l.LessThanLessThanEqual=105]="LessThanLessThanEqual",l[l.LetKeyword=106]="LetKeyword",l[l.LibraryKeyword=107]="LibraryKeyword",l[l.MacroKeyword=108]="MacroKeyword",l[l.MappingKeyword=109]="MappingKeyword",l[l.MatchKeyword=110]="MatchKeyword",l[l.MemoryKeyword=111]="MemoryKeyword",l[l.Minus=112]="Minus",l[l.MinusEqual=113]="MinusEqual",l[l.MinusGreaterThan=114]="MinusGreaterThan",l[l.MinusMinus=115]="MinusMinus",l[l.MinutesKeyword=116]="MinutesKeyword",l[l.ModifierKeyword=117]="ModifierKeyword",l[l.MultiLineComment=118]="MultiLineComment",l[l.MultiLineNatSpecComment=119]="MultiLineNatSpecComment",l[l.MutableKeyword=120]="MutableKeyword",l[l.NewKeyword=121]="NewKeyword",l[l.NullKeyword=122]="NullKeyword",l[l.OfKeyword=123]="OfKeyword",l[l.OpenBrace=124]="OpenBrace",l[l.OpenBracket=125]="OpenBracket",l[l.OpenParen=126]="OpenParen",l[l.OverrideKeyword=127]="OverrideKeyword",l[l.PartialKeyword=128]="PartialKeyword",l[l.PayableKeyword=129]="PayableKeyword",l[l.Percent=130]="Percent",l[l.PercentEqual=131]="PercentEqual",l[l.Period=132]="Period",l[l.Plus=133]="Plus",l[l.PlusEqual=134]="PlusEqual",l[l.PlusPlus=135]="PlusPlus",l[l.PragmaKeyword=136]="PragmaKeyword",l[l.PrivateKeyword=137]="PrivateKeyword",l[l.PromiseKeyword=138]="PromiseKeyword",l[l.PublicKeyword=139]="PublicKeyword",l[l.PureKeyword=140]="PureKeyword",l[l.QuestionMark=141]="QuestionMark",l[l.ReceiveKeyword=142]="ReceiveKeyword",l[l.ReferenceKeyword=143]="ReferenceKeyword",l[l.RelocatableKeyword=144]="RelocatableKeyword",l[l.ReturnKeyword=145]="ReturnKeyword",l[l.ReturnsKeyword=146]="ReturnsKeyword",l[l.RevertKeyword=147]="RevertKeyword",l[l.SMTCheckerKeyword=148]="SMTCheckerKeyword",l[l.SealedKeyword=149]="SealedKeyword",l[l.SecondsKeyword=150]="SecondsKeyword",l[l.Semicolon=151]="Semicolon",l[l.SingleLineComment=152]="SingleLineComment",l[l.SingleLineNatSpecComment=153]="SingleLineNatSpecComment",l[l.SingleQuotedHexStringLiteral=154]="SingleQuotedHexStringLiteral",l[l.SingleQuotedStringLiteral=155]="SingleQuotedStringLiteral",l[l.SingleQuotedUnicodeStringLiteral=156]="SingleQuotedUnicodeStringLiteral",l[l.SingleQuotedVersionLiteral=157]="SingleQuotedVersionLiteral",l[l.SizeOfKeyword=158]="SizeOfKeyword",l[l.Slash=159]="Slash",l[l.SlashEqual=160]="SlashEqual",l[l.SolidityKeyword=161]="SolidityKeyword",l[l.StaticKeyword=162]="StaticKeyword",l[l.StorageKeyword=163]="StorageKeyword",l[l.StringKeyword=164]="StringKeyword",l[l.StructKeyword=165]="StructKeyword",l[l.SuperKeyword=166]="SuperKeyword",l[l.SupportsKeyword=167]="SupportsKeyword",l[l.SwitchKeyword=168]="SwitchKeyword",l[l.SzaboKeyword=169]="SzaboKeyword",l[l.ThisKeyword=170]="ThisKeyword",l[l.ThrowKeyword=171]="ThrowKeyword",l[l.Tilde=172]="Tilde",l[l.TransientKeyword=173]="TransientKeyword",l[l.TrueKeyword=174]="TrueKeyword",l[l.TryKeyword=175]="TryKeyword",l[l.TypeDefKeyword=176]="TypeDefKeyword",l[l.TypeKeyword=177]="TypeKeyword",l[l.TypeOfKeyword=178]="TypeOfKeyword",l[l.UfixedKeyword=179]="UfixedKeyword",l[l.UintKeyword=180]="UintKeyword",l[l.UncheckedKeyword=181]="UncheckedKeyword",l[l.UsingKeyword=182]="UsingKeyword",l[l.VarKeyword=183]="VarKeyword",l[l.VersionSpecifier=184]="VersionSpecifier",l[l.ViewKeyword=185]="ViewKeyword",l[l.VirtualKeyword=186]="VirtualKeyword",l[l.WeeksKeyword=187]="WeeksKeyword",l[l.WeiKeyword=188]="WeiKeyword",l[l.WhileKeyword=189]="WhileKeyword",l[l.Whitespace=190]="Whitespace",l[l.YearsKeyword=191]="YearsKeyword",l[l.YulAbstractKeyword=192]="YulAbstractKeyword",l[l.YulAfterKeyword=193]="YulAfterKeyword",l[l.YulAliasKeyword=194]="YulAliasKeyword",l[l.YulAnonymousKeyword=195]="YulAnonymousKeyword",l[l.YulApplyKeyword=196]="YulApplyKeyword",l[l.YulAsKeyword=197]="YulAsKeyword",l[l.YulAssemblyKeyword=198]="YulAssemblyKeyword",l[l.YulAutoKeyword=199]="YulAutoKeyword",l[l.YulBoolKeyword=200]="YulBoolKeyword",l[l.YulBreakKeyword=201]="YulBreakKeyword",l[l.YulBytesKeyword=202]="YulBytesKeyword",l[l.YulCallDataKeyword=203]="YulCallDataKeyword",l[l.YulCaseKeyword=204]="YulCaseKeyword",l[l.YulCatchKeyword=205]="YulCatchKeyword",l[l.YulConstantKeyword=206]="YulConstantKeyword",l[l.YulConstructorKeyword=207]="YulConstructorKeyword",l[l.YulContinueKeyword=208]="YulContinueKeyword",l[l.YulContractKeyword=209]="YulContractKeyword",l[l.YulCopyOfKeyword=210]="YulCopyOfKeyword",l[l.YulDaysKeyword=211]="YulDaysKeyword",l[l.YulDecimalLiteral=212]="YulDecimalLiteral",l[l.YulDefaultKeyword=213]="YulDefaultKeyword",l[l.YulDefineKeyword=214]="YulDefineKeyword",l[l.YulDeleteKeyword=215]="YulDeleteKeyword",l[l.YulDoKeyword=216]="YulDoKeyword",l[l.YulElseKeyword=217]="YulElseKeyword",l[l.YulEmitKeyword=218]="YulEmitKeyword",l[l.YulEnumKeyword=219]="YulEnumKeyword",l[l.YulEtherKeyword=220]="YulEtherKeyword",l[l.YulEventKeyword=221]="YulEventKeyword",l[l.YulExternalKeyword=222]="YulExternalKeyword",l[l.YulFallbackKeyword=223]="YulFallbackKeyword",l[l.YulFalseKeyword=224]="YulFalseKeyword",l[l.YulFinalKeyword=225]="YulFinalKeyword",l[l.YulFinneyKeyword=226]="YulFinneyKeyword",l[l.YulFixedKeyword=227]="YulFixedKeyword",l[l.YulForKeyword=228]="YulForKeyword",l[l.YulFunctionKeyword=229]="YulFunctionKeyword",l[l.YulGweiKeyword=230]="YulGweiKeyword",l[l.YulHexKeyword=231]="YulHexKeyword",l[l.YulHexLiteral=232]="YulHexLiteral",l[l.YulHoursKeyword=233]="YulHoursKeyword",l[l.YulIdentifier=234]="YulIdentifier",l[l.YulIfKeyword=235]="YulIfKeyword",l[l.YulImmutableKeyword=236]="YulImmutableKeyword",l[l.YulImplementsKeyword=237]="YulImplementsKeyword",l[l.YulImportKeyword=238]="YulImportKeyword",l[l.YulInKeyword=239]="YulInKeyword",l[l.YulIndexedKeyword=240]="YulIndexedKeyword",l[l.YulInlineKeyword=241]="YulInlineKeyword",l[l.YulIntKeyword=242]="YulIntKeyword",l[l.YulInterfaceKeyword=243]="YulInterfaceKeyword",l[l.YulInternalKeyword=244]="YulInternalKeyword",l[l.YulIsKeyword=245]="YulIsKeyword",l[l.YulLeaveKeyword=246]="YulLeaveKeyword",l[l.YulLetKeyword=247]="YulLetKeyword",l[l.YulLibraryKeyword=248]="YulLibraryKeyword",l[l.YulMacroKeyword=249]="YulMacroKeyword",l[l.YulMappingKeyword=250]="YulMappingKeyword",l[l.YulMatchKeyword=251]="YulMatchKeyword",l[l.YulMemoryKeyword=252]="YulMemoryKeyword",l[l.YulMinutesKeyword=253]="YulMinutesKeyword",l[l.YulModifierKeyword=254]="YulModifierKeyword",l[l.YulMutableKeyword=255]="YulMutableKeyword",l[l.YulNewKeyword=256]="YulNewKeyword",l[l.YulNullKeyword=257]="YulNullKeyword",l[l.YulOfKeyword=258]="YulOfKeyword",l[l.YulOverrideKeyword=259]="YulOverrideKeyword",l[l.YulPartialKeyword=260]="YulPartialKeyword",l[l.YulPayableKeyword=261]="YulPayableKeyword",l[l.YulPragmaKeyword=262]="YulPragmaKeyword",l[l.YulPrivateKeyword=263]="YulPrivateKeyword",l[l.YulPromiseKeyword=264]="YulPromiseKeyword",l[l.YulPublicKeyword=265]="YulPublicKeyword",l[l.YulPureKeyword=266]="YulPureKeyword",l[l.YulReceiveKeyword=267]="YulReceiveKeyword",l[l.YulReferenceKeyword=268]="YulReferenceKeyword",l[l.YulRelocatableKeyword=269]="YulRelocatableKeyword",l[l.YulReturnsKeyword=270]="YulReturnsKeyword",l[l.YulSealedKeyword=271]="YulSealedKeyword",l[l.YulSecondsKeyword=272]="YulSecondsKeyword",l[l.YulSizeOfKeyword=273]="YulSizeOfKeyword",l[l.YulStaticKeyword=274]="YulStaticKeyword",l[l.YulStorageKeyword=275]="YulStorageKeyword",l[l.YulStringKeyword=276]="YulStringKeyword",l[l.YulStructKeyword=277]="YulStructKeyword",l[l.YulSuperKeyword=278]="YulSuperKeyword",l[l.YulSupportsKeyword=279]="YulSupportsKeyword",l[l.YulSwitchKeyword=280]="YulSwitchKeyword",l[l.YulSzaboKeyword=281]="YulSzaboKeyword",l[l.YulThisKeyword=282]="YulThisKeyword",l[l.YulThrowKeyword=283]="YulThrowKeyword",l[l.YulTrueKeyword=284]="YulTrueKeyword",l[l.YulTryKeyword=285]="YulTryKeyword",l[l.YulTypeDefKeyword=286]="YulTypeDefKeyword",l[l.YulTypeKeyword=287]="YulTypeKeyword",l[l.YulTypeOfKeyword=288]="YulTypeOfKeyword",l[l.YulUfixedKeyword=289]="YulUfixedKeyword",l[l.YulUintKeyword=290]="YulUintKeyword",l[l.YulUncheckedKeyword=291]="YulUncheckedKeyword",l[l.YulUsingKeyword=292]="YulUsingKeyword",l[l.YulVarKeyword=293]="YulVarKeyword",l[l.YulViewKeyword=294]="YulViewKeyword",l[l.YulVirtualKeyword=295]="YulVirtualKeyword",l[l.YulWeeksKeyword=296]="YulWeeksKeyword",l[l.YulWeiKeyword=297]="YulWeiKeyword",l[l.YulWhileKeyword=298]="YulWhileKeyword",l[l.YulYearsKeyword=299]="YulYearsKeyword";var h={};h[h.Root=0]="Root",h[h.Unrecognized=1]="Unrecognized",h[h.Missing=2]="Missing",h[h.Item=3]="Item",h[h.Variant=4]="Variant",h[h.Separator=5]="Separator",h[h.Operand=6]="Operand",h[h.LeftOperand=7]="LeftOperand",h[h.RightOperand=8]="RightOperand",h[h.LeadingTrivia=9]="LeadingTrivia",h[h.TrailingTrivia=10]="TrailingTrivia",h[h.AbicoderKeyword=11]="AbicoderKeyword",h[h.AbstractKeyword=12]="AbstractKeyword",h[h.AddressKeyword=13]="AddressKeyword",h[h.Alias=14]="Alias",h[h.AnonymousKeyword=15]="AnonymousKeyword",h[h.Arguments=16]="Arguments",h[h.AsKeyword=17]="AsKeyword",h[h.AssemblyKeyword=18]="AssemblyKeyword",h[h.Assignment=19]="Assignment",h[h.Asterisk=20]="Asterisk",h[h.AtKeyword=21]="AtKeyword",h[h.Attributes=22]="Attributes",h[h.Block=23]="Block",h[h.Body=24]="Body",h[h.BreakKeyword=25]="BreakKeyword",h[h.CaseKeyword=26]="CaseKeyword",h[h.Cases=27]="Cases",h[h.CatchClauses=28]="CatchClauses",h[h.CatchKeyword=29]="CatchKeyword",h[h.Clause=30]="Clause",h[h.CloseBrace=31]="CloseBrace",h[h.CloseBracket=32]="CloseBracket",h[h.CloseParen=33]="CloseParen",h[h.Colon=34]="Colon",h[h.Condition=35]="Condition",h[h.ConstantKeyword=36]="ConstantKeyword",h[h.ConstructorKeyword=37]="ConstructorKeyword",h[h.ContinueKeyword=38]="ContinueKeyword",h[h.ContractKeyword=39]="ContractKeyword",h[h.DefaultKeyword=40]="DefaultKeyword",h[h.DoKeyword=41]="DoKeyword",h[h.Elements=42]="Elements",h[h.ElseBranch=43]="ElseBranch",h[h.ElseKeyword=44]="ElseKeyword",h[h.EmitKeyword=45]="EmitKeyword",h[h.End=46]="End",h[h.EnumKeyword=47]="EnumKeyword",h[h.Equal=48]="Equal",h[h.EqualGreaterThan=49]="EqualGreaterThan",h[h.Error=50]="Error",h[h.ErrorKeyword=51]="ErrorKeyword",h[h.Event=52]="Event",h[h.EventKeyword=53]="EventKeyword",h[h.ExperimentalKeyword=54]="ExperimentalKeyword",h[h.Expression=55]="Expression",h[h.FallbackKeyword=56]="FallbackKeyword",h[h.FalseExpression=57]="FalseExpression",h[h.Feature=58]="Feature",h[h.Flags=59]="Flags",h[h.ForKeyword=60]="ForKeyword",h[h.FromKeyword=61]="FromKeyword",h[h.FunctionKeyword=62]="FunctionKeyword",h[h.GlobalKeyword=63]="GlobalKeyword",h[h.Identifier=64]="Identifier",h[h.IfKeyword=65]="IfKeyword",h[h.ImportKeyword=66]="ImportKeyword",h[h.Index=67]="Index",h[h.IndexedKeyword=68]="IndexedKeyword",h[h.Inheritance=69]="Inheritance",h[h.Initialization=70]="Initialization",h[h.InterfaceKeyword=71]="InterfaceKeyword",h[h.IsKeyword=72]="IsKeyword",h[h.Items=73]="Items",h[h.Iterator=74]="Iterator",h[h.KeyType=75]="KeyType",h[h.Label=76]="Label",h[h.LayoutKeyword=77]="LayoutKeyword",h[h.LeaveKeyword=78]="LeaveKeyword",h[h.LetKeyword=79]="LetKeyword",h[h.LibraryKeyword=80]="LibraryKeyword",h[h.Literal=81]="Literal",h[h.MappingKeyword=82]="MappingKeyword",h[h.Member=83]="Member",h[h.Members=84]="Members",h[h.Minus=85]="Minus",h[h.MinusGreaterThan=86]="MinusGreaterThan",h[h.ModifierKeyword=87]="ModifierKeyword",h[h.Name=88]="Name",h[h.NewKeyword=89]="NewKeyword",h[h.OpenBrace=90]="OpenBrace",h[h.OpenBracket=91]="OpenBracket",h[h.OpenParen=92]="OpenParen",h[h.Operator=93]="Operator",h[h.Options=94]="Options",h[h.Overridden=95]="Overridden",h[h.OverrideKeyword=96]="OverrideKeyword",h[h.Parameters=97]="Parameters",h[h.Path=98]="Path",h[h.Paths=99]="Paths",h[h.PayableKeyword=100]="PayableKeyword",h[h.Period=101]="Period",h[h.Pragma=102]="Pragma",h[h.PragmaKeyword=103]="PragmaKeyword",h[h.QuestionMark=104]="QuestionMark",h[h.ReceiveKeyword=105]="ReceiveKeyword",h[h.ReturnKeyword=106]="ReturnKeyword",h[h.Returns=107]="Returns",h[h.ReturnsKeyword=108]="ReturnsKeyword",h[h.RevertKeyword=109]="RevertKeyword",h[h.Semicolon=110]="Semicolon",h[h.Sets=111]="Sets",h[h.SolidityKeyword=112]="SolidityKeyword",h[h.Specifiers=113]="Specifiers",h[h.Start=114]="Start",h[h.Statements=115]="Statements",h[h.StorageLocation=116]="StorageLocation",h[h.StructKeyword=117]="StructKeyword",h[h.SwitchKeyword=118]="SwitchKeyword",h[h.Symbols=119]="Symbols",h[h.Target=120]="Target",h[h.ThrowKeyword=121]="ThrowKeyword",h[h.TrueExpression=122]="TrueExpression",h[h.TryKeyword=123]="TryKeyword",h[h.TypeKeyword=124]="TypeKeyword",h[h.TypeName=125]="TypeName",h[h.Types=126]="Types",h[h.UncheckedKeyword=127]="UncheckedKeyword",h[h.Unit=128]="Unit",h[h.UsingKeyword=129]="UsingKeyword",h[h.Value=130]="Value",h[h.ValueType=131]="ValueType",h[h.VarKeyword=132]="VarKeyword",h[h.Variable=133]="Variable",h[h.VariableType=134]="VariableType",h[h.Variables=135]="Variables",h[h.Version=136]="Version",h[h.WhileKeyword=137]="WhileKeyword";var u={};let wr,xr,vr,br;u.NonterminalNode="NonterminalNode",Object.defineProperty(te.prototype,"type",{get:function(){return u.NonterminalNode}}),te.prototype.asNonterminalNode=function(){return this},te.prototype.isNonterminalNode=function(){return!0},te.prototype.asTerminalNode=function(){},te.prototype.isTerminalNode=function(){return!1},u.TerminalNode="TerminalNode",Object.defineProperty(Pe.prototype,"type",{get:function(){return u.TerminalNode}}),Pe.prototype.asTerminalNode=function(){return this},Pe.prototype.isTerminalNode=function(){return!0},Pe.prototype.asNonterminalNode=function(){},Pe.prototype.isNonterminalNode=function(){return!1};class _r{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}_r.sequence=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=wr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+12*t;let r;if(R(at).getUint8(e+0,!0)){let t;switch(R(at).getUint8(e+4,!0)){case 0:var h=R(at).getInt32(e+8,!0),u=new.target===te?this:Object.create(te.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),zt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){zt.unregister(u),F(Gt,h),u[j]=A,u[Y]=void 0,Q[18](Gt[1+(h<<1)]&~q)}}),t=u;break;case 1:var d=R(at).getInt32(e+8,!0),p=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),he.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){he.unregister(p),F(le,d),p[j]=A,p[Y]=void 0,Q[19](le[1+(d<<1)]&~q)}}),t=p}r=t}else r=void 0;l.push(r)}i={tag:"ok",val:l}}const m=i;if(At(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},_r.choice=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=xr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{let t;switch(R(at).getUint8(s+4,!0)){case 0:var o=R(at).getInt32(s+8,!0),c=new.target===te?this:Object.create(te.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),zt.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){zt.unregister(c),F(Gt,o),c[j]=A,c[Y]=void 0,Q[18](Gt[1+(o<<1)]&~q)}}),t=c;break;case 1:var l=R(at).getInt32(s+8,!0),h=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),he.register(h,l,h),Object.defineProperty(h,j,{writable:!0,value:function(){he.unregister(h),F(le,l),h[j]=A,h[Y]=void 0,Q[19](le[1+(l<<1)]&~q)}}),t=h}i={tag:"ok",val:t}}const u=i;if(kt(s),"object"==typeof u&&"err"===u.tag)throw u.val;return u.val},_r.repeated=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=vr(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var h=R(at).getInt32(e+4,!0),u=new.target===te?this:Object.create(te.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),zt.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){zt.unregister(u),F(Gt,h),u[j]=A,u[Y]=void 0,Q[18](Gt[1+(h<<1)]&~q)}}),r=u;break;case 1:var d=R(at).getInt32(e+4,!0),p=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),he.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){he.unregister(p),F(le,d),p[j]=A,p[Y]=void 0,Q[19](le[1+(d<<1)]&~q)}}),r=p}l.push(r)}i={tag:"ok",val:l}}const m=i;if(Ct(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},_r.separated=function(t){var e=t[Y];if(!e||0===(Gt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Gt[1+(e<<1)]&~q;const s=br(r);let i;if(R(at).getUint8(s+0,!0)){var n=R(at).getInt32(s+4,!0),a=R(at).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(at.buffer,n,a))}}else{var o=R(at).getInt32(s+8,!0),c=R(at).getInt32(s+4,!0),l=[];for(let t=0;t<o;t++){const e=c+8*t;var h=R(at).getInt32(e+4,!0),u=R(at).getInt32(e+0,!0),d=[];for(let t=0;t<h;t++){const e=u+8*t;let r;switch(R(at).getUint8(e+0,!0)){case 0:var p=R(at).getInt32(e+4,!0),m=new.target===te?this:Object.create(te.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),zt.register(m,p,m),Object.defineProperty(m,j,{writable:!0,value:function(){zt.unregister(m),F(Gt,p),m[j]=A,m[Y]=void 0,Q[18](Gt[1+(p<<1)]&~q)}}),r=m;break;case 1:var y=R(at).getInt32(e+4,!0),f=new.target===Pe?this:Object.create(Pe.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),he.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){he.unregister(f),F(le,y),f[j]=A,f[Y]=void 0,Q[19](le[1+(y<<1)]&~q)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}const g=i;if(Lt(s),"object"==typeof g&&"err"===g.tag)throw g.val;return g.val};const Er=[q,0],Tr=K(t=>{const{rep:e}=F(Er,t);Q[28](e)});O[12]=Er;const Sr=[q,0],kr=K(t=>{const{rep:e}=F(Sr,t);Q[29](e)});let Rr;O[13]=Sr;class Ar{constructor(){throw new Error('"BindingGraph" resource does not define a constructor')}}Ar.prototype.definitionAt=function(t){var e=this[Y];if(!e||0===(Er[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=Er[1+(e<<1)]&~q,s=t[Y];if(!s||0===(ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=Rr(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===Nr?this:Object.create(Nr.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),kr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){kr.unregister(c),F(Sr,o),c[j]=A,c[Y]=void 0,Q[29](Sr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};const Cr=[q,0],Lr=K(t=>{const{rep:e}=F(Cr,t);Q[30](e)});let Ir,Kr;O[14]=Cr,Ar.prototype.referenceAt=function(t){var e=this[Y];if(!e||0===(Er[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=Er[1+(e<<1)]&~q,s=t[Y];if(!s||0===(ae[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=ae[1+(s<<1)]&~q;const n=Ir(r,i);let a;if(R(at).getUint8(n+0,!0)){var o=R(at).getInt32(n+4,!0),c=new.target===$r?this:Object.create($r.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Lr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){Lr.unregister(c),F(Cr,o),c[j]=A,c[Y]=void 0,Q[30](Cr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};class Nr{constructor(){throw new Error('"Definition" resource does not define a constructor')}}Object.defineProperty(Nr.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;return Kr(e)>>>0}});const Or=[q,0],Dr=K(t=>{const{rep:e}=F(Or,t);Q[31](e)});O[15]=Or;const Pr=[q,0],qr=K(t=>{const{rep:e}=F(Pr,t);Q[32](e)});let Mr,Fr,Ur,Yr,Vr,jr,Br,Hr;O[16]=Pr,Object.defineProperty(Nr.prototype,"nameLocation",{get:function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;const r=Mr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Nr.prototype,"definiensLocation",{get:function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;const r=Fr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),Nr.prototype.references=function(){var t=this[Y];if(!t||0===(Sr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Sr[1+(t<<1)]&~q;const r=Ur(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===$r?this:Object.create($r.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Lr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Lr.unregister(o),F(Cr,a),o[j]=A,o[Y]=void 0,Q[30](Cr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c};class $r{constructor(){throw new Error('"Reference" resource does not define a constructor')}}Object.defineProperty($r.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(Cr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=Cr[1+(t<<1)]&~q;return Yr(e)>>>0}}),Object.defineProperty($r.prototype,"location",{get:function(){var t=this[Y];if(!t||0===(Cr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=Cr[1+(t<<1)]&~q;const r=Vr(e);let s;switch(R(at).getUint8(r+0,!0)){case 0:var i=R(at).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(at).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),$r.prototype.definitions=function(){var t=this[Y];if(!t||0===(Cr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=Cr[1+(t<<1)]&~q;const r=jr(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Nr?this:Object.create(Nr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),kr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){kr.unregister(o),F(Sr,a),o[j]=A,o[Y]=void 0,Q[29](Sr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c};class Gr{constructor(){throw new Error('"UserFileLocation" resource does not define a constructor')}}Object.defineProperty(Gr.prototype,"fileId",{get:function(){var t=this[Y];if(!t||0===(Or[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Or[1+(t<<1)]&~q;const r=Br(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}}),Object.defineProperty(Gr.prototype,"cursor",{get:function(){var t=this[Y];if(!t||0===(Or[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=Or[1+(t<<1)]&~q,r=Hr(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s}});var d={UserFileLocation:"UserFileLocation"};Object.defineProperty(Gr.prototype,"type",{get:function(){return d.UserFileLocation}}),Gr.prototype.asUserFileLocation=function(){return this},Gr.prototype.isUserFileLocation=function(){return!0},Gr.prototype.asBuiltInLocation=function(){},Gr.prototype.isBuiltInLocation=function(){return!1};class zr{constructor(){throw new Error('"BuiltInLocation" resource does not define a constructor')}}d.BuiltInLocation="BuiltInLocation",Object.defineProperty(zr.prototype,"type",{get:function(){return d.BuiltInLocation}}),zr.prototype.asBuiltInLocation=function(){return this},zr.prototype.isBuiltInLocation=function(){return!0},zr.prototype.asUserFileLocation=function(){},zr.prototype.isUserFileLocation=function(){return!1};const Wr=[q,0],Xr=K(t=>{const{rep:e}=F(Wr,t);Q[33](e)});let Qr,Jr;O[17]=Wr;class Zr{constructor(){throw new Error('"Parser" resource does not define a constructor')}}Zr.create=function(t){var e=W(t,Et,at);const r=Qr(e,z);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===Zr?this:Object.create(Zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Xr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Xr.unregister(o),F(Wr,a),o[j]=A,o[Y]=void 0,Q[33](Wr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},Object.defineProperty(Zr.prototype,"languageVersion",{get:function(){var t=this[Y];if(!t||0===(Wr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=Wr[1+(t<<1)]&~q;const r=Jr(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}});const ts=[q,0],es=K(t=>{const{rep:e}=F(ts,t);Q[34](e)});let rs,ss,is,ns,as,os;O[18]=ts,Zr.prototype.parseFileContents=function(t){var e=this[Y];if(!e||0===(Wr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var r=Wr[1+(e<<1)]&~q,s=W(t,Et,at),i=rs(r,s,z),n=new.target===cs?this:Object.create(cs.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),es.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){es.unregister(n),F(ts,i),n[j]=A,n[Y]=void 0,Q[34](ts[1+(i<<1)]&~q)}}),n},Zr.prototype.parseNonterminal=function(t,e){var r=this[Y];if(!r||0===(Wr[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=Wr[1+(r<<1)]&~q,i=W(e,Et,at),n=z,a=ss(s,c[t],i,n),o=new.target===cs?this:Object.create(cs.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),es.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){es.unregister(o),F(ts,a),o[j]=A,o[Y]=void 0,Q[34](ts[1+(a<<1)]&~q)}}),o};class cs{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(cs.prototype,"tree",{get:function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q,r=is(e),s=new.target===te?this:Object.create(te.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),zt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){zt.unregister(s),F(Gt,r),s[j]=A,s[Y]=void 0,Q[18](Gt[1+(r<<1)]&~q)}}),s}}),cs.prototype.errors=function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q;const r=ns(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return It(r),l},cs.prototype.isValid=function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q;return!!as(e)},cs.prototype.createTreeCursor=function(){var t=this[Y];if(!t||0===(ts[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=ts[1+(t<<1)]&~q,r=os(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s};const ls=[q,0],hs=K(t=>{const{rep:e}=F(ls,t);Q[35](e)});let us,ds,ps;O[19]=ls;class ms{constructor(){throw new Error('"InternalCompilationBuilder" resource does not define a constructor')}}ms.create=function(t){var e=W(t,Et,at);const r=us(e,z);let s;if(R(at).getUint8(r+0,!0)){var i=R(at).getInt32(r+4,!0),n=R(at).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(at.buffer,i,n))}}else{var a=R(at).getInt32(r+4,!0),o=new.target===ms?this:Object.create(ms.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),hs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){hs.unregister(o),F(ls,a),o[j]=A,o[Y]=void 0,Q[35](ls[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(kt(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},ms.prototype.addFile=function(t,e){var r=this[Y];if(!r||0===(ls[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var s=ls[1+(r<<1)]&~q,i=W(t,Et,at),n=z,a=W(e,Et,at);const o=ds(s,i,n,a,z);var c=R(at).getInt32(o+4,!0),l=R(at).getInt32(o+0,!0),h=[];for(let t=0;t<c;t++){const e=l+4*t;var u=R(at).getInt32(e+0,!0),d=new.target===Me?this:Object.create(Me.prototype);Object.defineProperty(d,Y,{writable:!0,value:u}),oe.register(d,u,d),Object.defineProperty(d,j,{writable:!0,value:function(){oe.unregister(d),F(ae,u),d[j]=A,d[Y]=void 0,Q[21](ae[1+(u<<1)]&~q)}}),h.push(d)}const p={importPaths:h};return Tt(o),p},ms.prototype.resolveImport=function(t,e,r){var s=this[Y];if(!s||0===(ls[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var i=ls[1+(s<<1)]&~q,n=W(t,Et,at),a=z,o=e[Y];if(!o||0===(ae[1+(o<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var c=ae[1+(o<<1)]&~q,l=W(r,Et,at);const h=ps(i,n,a,c,l,z);let u;if(R(at).getUint8(h+0,!0)){var d=R(at).getInt32(h+4,!0),p=R(at).getInt32(h+8,!0);u={tag:"err",val:$.decode(new Uint8Array(at.buffer,d,p))}}else u={tag:"ok",val:void 0};const m=u;if(kt(h),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val};const ys=[q,0],fs=K(t=>{const{rep:e}=F(ys,t);Q[36](e)});let gs,ws;O[20]=ys,ms.prototype.build=function(){var t=this[Y];if(!t||0===(ls[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var e=ls[1+(t<<1)]&~q,r=gs(e),s=new.target===xs?this:Object.create(xs.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),fs.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){fs.unregister(s),F(ys,r),s[j]=A,s[Y]=void 0,Q[36](ys[1+(r<<1)]&~q)}}),s};class xs{constructor(){throw new Error('"CompilationUnit" resource does not define a constructor')}}Object.defineProperty(xs.prototype,"languageVersion",{get:function(){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ys[1+(t<<1)]&~q;const r=ws(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}});const vs=[q,0],bs=K(t=>{const{rep:e}=F(vs,t);Q[37](e)});let _s,Es,Ts,Ss,ks,Rs,As,Cs,Ls,Is,Ks;O[21]=vs,xs.prototype.files=function(){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ys[1+(t<<1)]&~q;const r=_s(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+4*t;var a=R(at).getInt32(e+0,!0),o=new.target===Ns?this:Object.create(Ns.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),bs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){bs.unregister(o),F(vs,a),o[j]=A,o[Y]=void 0,Q[37](vs[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Tt(r),c},xs.prototype.file=function(t){var e=this[Y];if(!e||0===(ys[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var r=ys[1+(e<<1)]&~q,s=W(t,Et,at);const i=Es(r,s,z);let n;if(R(at).getUint8(i+0,!0)){var a=R(at).getInt32(i+4,!0),o=new.target===Ns?this:Object.create(Ns.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),bs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){bs.unregister(o),F(vs,a),o[j]=A,o[Y]=void 0,Q[37](vs[1+(a<<1)]&~q)}}),n=o}else n=void 0;return n},Object.defineProperty(xs.prototype,"bindingGraph",{get:function(){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=ys[1+(t<<1)]&~q,r=Ts(e),s=new.target===Ar?this:Object.create(Ar.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Tr.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Tr.unregister(s),F(Er,r),s[j]=A,s[Y]=void 0,Q[28](Er[1+(r<<1)]&~q)}}),s}});class Ns{constructor(){throw new Error('"File" resource does not define a constructor')}}Object.defineProperty(Ns.prototype,"id",{get:function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q;const r=Ss(e);var s=R(at).getInt32(r+0,!0),i=R(at).getInt32(r+4,!0);const n=$.decode(new Uint8Array(at.buffer,s,i));return St(r),n}}),Object.defineProperty(Ns.prototype,"tree",{get:function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q,r=ks(e),s=new.target===te?this:Object.create(te.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),zt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){zt.unregister(s),F(Gt,r),s[j]=A,s[Y]=void 0,Q[18](Gt[1+(r<<1)]&~q)}}),s}}),Ns.prototype.errors=function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q;const r=Rs(e);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+40*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(at).getInt32(e+8,!0)>>>0,utf16:R(at).getInt32(e+12,!0)>>>0,line:R(at).getInt32(e+16,!0)>>>0,column:R(at).getInt32(e+20,!0)>>>0},end:{utf8:R(at).getInt32(e+24,!0)>>>0,utf16:R(at).getInt32(e+28,!0)>>>0,line:R(at).getInt32(e+32,!0)>>>0,column:R(at).getInt32(e+36,!0)>>>0}}})}const l=n;return It(r),l},Ns.prototype.createTreeCursor=function(){var t=this[Y];if(!t||0===(vs[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var e=vs[1+(t<<1)]&~q,r=As(e),s=new.target===Me?this:Object.create(Me.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),oe.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){oe.unregister(s),F(ae,r),s[j]=A,s[Y]=void 0,Q[21](ae[1+(r<<1)]&~q)}}),s};class Os{constructor(){throw new Error('"LanguageFacts" resource does not define a constructor')}}Os.allVersions=function(){const t=Cs();var e=R(at).getInt32(t+4,!0),r=R(at).getInt32(t+0,!0),s=[];for(let t=0;t<e;t++){const e=r+8*t;var i=R(at).getInt32(e+0,!0),n=R(at).getInt32(e+4,!0),a=$.decode(new Uint8Array(at.buffer,i,n));s.push(a)}const o=s;return Kt(t),o},Os.earliestVersion=function(){const t=Ls();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return St(t),s},Os.latestVersion=function(){const t=Is();var e=R(at).getInt32(t+0,!0),r=R(at).getInt32(t+4,!0);const s=$.decode(new Uint8Array(at.buffer,e,r));return St(t),s},Os.inferLanguageVersions=function(t){var e=W(t,Et,at);const r=Ks(e,z);var s=R(at).getInt32(r+4,!0),i=R(at).getInt32(r+0,!0),n=[];for(let t=0;t<s;t++){const e=i+8*t;var a=R(at).getInt32(e+0,!0),o=R(at).getInt32(e+4,!0),c=$.decode(new Uint8Array(at.buffer,a,o));n.push(c)}const l=n;return Kt(r),l};const Ds=M.bind(null,Sr),Ps=M.bind(null,Cr),qs=M.bind(null,Or),Ms=M.bind(null,Pr),Fs=M.bind(null,Gt),Us=M.bind(null,le),Ys=M.bind(null,Ht),Vs=M.bind(null,ae),js=M.bind(null,ee),Bs=M.bind(null,ts);function Hs(t){return Ht[1+(t<<1)]&~q}function $s(t){const e=F(Ht,t);e.own&&Q[20](e.rep)}function Gs(t){const e=F(Gt,t);e.own&&Q[18](e.rep)}function zs(t){const e=F(ee,t);e.own&&Q[22](e.rep)}function Ws(t){const e=F(ae,t);e.own&&Q[21](e.rep)}function Xs(t){const e=F(le,t);e.own&&Q[19](e.rep)}function Qs(t){return le[1+(t<<1)]&~q}function Js(t){return Gt[1+(t<<1)]&~q}const Zs=M.bind(null,Fe);function ti(t){const e=F(Fe,t);e.own&&Q[23](e.rep)}const ei=M.bind(null,nr);function ri(t){const e=F(nr,t);e.own&&Q[25](e.rep)}const si=M.bind(null,sr);function ii(t){const e=F(sr,t);e.own&&Q[24](e.rep)}function ni(t){const e=F(Sr,t);e.own&&Q[29](e.rep)}function ai(t){const e=F(Cr,t);e.own&&Q[30](e.rep)}function oi(t){const e=F(Or,t);e.own&&Q[31](e.rep)}function ci(t){const e=F(Pr,t);e.own&&Q[32](e.rep)}const li=M.bind(null,Wr);function hi(t){const e=F(Wr,t);e.own&&Q[33](e.rep)}function ui(t){const e=F(ts,t);e.own&&Q[34](e.rep)}const di=M.bind(null,ls);function pi(t){const e=F(ls,t);e.own&&Q[35](e.rep)}const mi=M.bind(null,ys);function yi(t){const e=F(ys,t);e.own&&Q[36](e.rep)}function fi(t){const e=F(vs,t);e.own&&Q[37](e.rep)}const gi=M.bind(null,Er);function wi(t){const e=F(Er,t);e.own&&Q[28](e.rep)}const xi=M.bind(null,vs);function vi(t){const e=F(Z,t);if(e.own){const t=tt.get(e.rep);t?(t[j]&&t[j](),tt.delete(e.rep)):E[U]&&E[U](e.rep)}}function bi(t){const e=F(vt,t);if(e.own){const t=bt.get(e.rep);t?(t[j]&&t[j](),bt.delete(e.rep)):b[U]&&b[U](e.rep)}}function _i(t){const e=F(st,t);if(e.own){const t=it.get(e.rep);t?(t[j]&&t[j](),it.delete(e.rep)):_[U]&&_[U](e.rep)}}function Ei(t){const e=F(pt,t);if(e.own){const t=mt.get(e.rep);t?(t[j]&&t[j](),mt.delete(e.rep)):x[U]&&x[U](e.rep)}}const Ti=(()=>{let t,e,s,i=function*(){const t=I(new URL(r(7870),r.b)),e=I(new URL(r(1112),r.b)),s=I(new URL(r(9719),r.b)),i=I(new URL(r(450),r.b));({exports:Q}=yield P(yield s)),({exports:J}=yield P(yield t,{"[export]nomic-foundation:slang/bindings":{"[resource-drop]binding-graph":wi,"[resource-drop]built-in-location":ci,"[resource-drop]definition":ni,"[resource-drop]reference":ai,"[resource-drop]user-file-location":oi,"[resource-new]binding-graph":gi,"[resource-new]built-in-location":Ms,"[resource-new]definition":Ds,"[resource-new]reference":Ps,"[resource-new]user-file-location":qs},"[export]nomic-foundation:slang/compilation":{"[resource-drop]compilation-unit":yi,"[resource-drop]file":fi,"[resource-drop]internal-compilation-builder":pi,"[resource-new]compilation-unit":mi,"[resource-new]file":xi,"[resource-new]internal-compilation-builder":di},"[export]nomic-foundation:slang/cst":{"[resource-drop]ancestors-iterator":ti,"[resource-drop]cursor":Ws,"[resource-drop]cursor-iterator":zs,"[resource-drop]edge":$s,"[resource-drop]nonterminal-node":Gs,"[resource-drop]query":ii,"[resource-drop]query-match-iterator":ri,"[resource-drop]terminal-node":Xs,"[resource-new]ancestors-iterator":Zs,"[resource-new]cursor":Vs,"[resource-new]cursor-iterator":js,"[resource-new]edge":Ys,"[resource-new]nonterminal-node":Fs,"[resource-new]query":si,"[resource-new]query-match-iterator":ei,"[resource-new]terminal-node":Us,"[resource-rep]edge":Hs,"[resource-rep]nonterminal-node":Js,"[resource-rep]terminal-node":Qs},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-output":ui,"[resource-drop]parser":hi,"[resource-new]parse-output":Bs,"[resource-new]parser":li},wasi_snapshot_preview1:{environ_get:Q[14],environ_sizes_get:Q[15],fd_write:Q[13],proc_exit:Q[16],random_get:Q[12]}})),({exports:nt}=yield P(yield e,{__main_module__:{cabi_realloc:J.cabi_realloc},env:{memory:J.memory},"wasi:cli/environment@0.2.3":{"get-environment":Q[0]},"wasi:cli/exit@0.2.3":{exit:ut},"wasi:cli/stderr@0.2.3":{"get-stderr":rt},"wasi:cli/stdin@0.2.3":{"get-stdin":lt},"wasi:cli/stdout@0.2.3":{"get-stdout":ht},"wasi:filesystem/preopens@0.2.3":{"get-directories":Q[11]},"wasi:filesystem/types@0.2.3":{"[method]descriptor.append-via-stream":Q[2],"[method]descriptor.get-type":Q[3],"[method]descriptor.stat":Q[4],"[method]descriptor.write-via-stream":Q[1],"[resource-drop]descriptor":Ei,"filesystem-error-code":Q[5]},"wasi:io/error@0.2.3":{"[resource-drop]error":bi},"wasi:io/streams@0.2.3":{"[method]output-stream.blocking-flush":Q[9],"[method]output-stream.blocking-write-and-flush":Q[8],"[method]output-stream.check-write":Q[6],"[method]output-stream.write":Q[7],"[resource-drop]input-stream":_i,"[resource-drop]output-stream":vi},"wasi:random/random@0.2.3":{"get-random-bytes":Q[10]}})),at=J.memory,ot=nt.cabi_import_realloc,({exports:_t}=yield P(yield i,{"":{$imports:Q.$imports,0:dt,1:ft,10:Vt,11:jt,12:nt.random_get,13:nt.fd_write,14:nt.environ_get,15:nt.environ_sizes_get,16:nt.proc_exit,17:J["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],18:J["nomic-foundation:slang/cst#[dtor]nonterminal-node"],19:J["nomic-foundation:slang/cst#[dtor]terminal-node"],2:gt,20:J["nomic-foundation:slang/cst#[dtor]edge"],21:J["nomic-foundation:slang/cst#[dtor]cursor"],22:J["nomic-foundation:slang/cst#[dtor]cursor-iterator"],23:J["nomic-foundation:slang/cst#[dtor]ancestors-iterator"],24:J["nomic-foundation:slang/cst#[dtor]query"],25:J["nomic-foundation:slang/cst#[dtor]query-match-iterator"],26:J["nomic-foundation:slang/cst#[dtor]text-index-extensions"],27:J["nomic-foundation:slang/ast#[dtor]selectors"],28:J["nomic-foundation:slang/bindings#[dtor]binding-graph"],29:J["nomic-foundation:slang/bindings#[dtor]definition"],3:wt,30:J["nomic-foundation:slang/bindings#[dtor]reference"],31:J["nomic-foundation:slang/bindings#[dtor]user-file-location"],32:J["nomic-foundation:slang/bindings#[dtor]built-in-location"],33:J["nomic-foundation:slang/parser#[dtor]parser"],34:J["nomic-foundation:slang/parser#[dtor]parse-output"],35:J["nomic-foundation:slang/compilation#[dtor]internal-compilation-builder"],36:J["nomic-foundation:slang/compilation#[dtor]compilation-unit"],37:J["nomic-foundation:slang/compilation#[dtor]file"],38:J["nomic-foundation:slang/utils#[dtor]language-facts"],4:xt,5:qt,6:Mt,7:Ft,8:Ut,9:Yt}})),Et=J.cabi_realloc,Tt=J["cabi_post_nomic-foundation:slang/bindings#[method]definition.references"],St=J["cabi_post_nomic-foundation:slang/bindings#[method]user-file-location.file-id"],kt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],Rt=J["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],At=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Ct=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Lt=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],It=J["cabi_post_nomic-foundation:slang/compilation#[method]file.errors"],Kt=J["cabi_post_nomic-foundation:slang/utils#[static]language-facts.all-versions"],Nt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-identifier"],Ot=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"],Dt=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"],Wt=J["nomic-foundation:slang/cst#[static]nonterminal-node.create"],Xt=J["nomic-foundation:slang/cst#[method]nonterminal-node.id"],Qt=J["nomic-foundation:slang/cst#[method]nonterminal-node.kind"],Jt=J["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"],Zt=J["nomic-foundation:slang/cst#[method]nonterminal-node.children"],se=J["nomic-foundation:slang/cst#[method]nonterminal-node.descendants"],ie=J["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"],ne=J["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],ce=J["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"],ue=J["nomic-foundation:slang/cst#[static]terminal-node.create"],de=J["nomic-foundation:slang/cst#[method]terminal-node.id"],pe=J["nomic-foundation:slang/cst#[method]terminal-node.kind"],me=J["nomic-foundation:slang/cst#[method]terminal-node.text-length"],ye=J["nomic-foundation:slang/cst#[method]terminal-node.children"],fe=J["nomic-foundation:slang/cst#[method]terminal-node.descendants"],ge=J["nomic-foundation:slang/cst#[method]terminal-node.unparse"],we=J["nomic-foundation:slang/cst#[method]terminal-node.to-json"],xe=J["nomic-foundation:slang/cst#[static]edge.create-with-terminal"],ve=J["nomic-foundation:slang/cst#[static]edge.create-with-nonterminal"],be=J["nomic-foundation:slang/cst#[method]edge.label"],_e=J["nomic-foundation:slang/cst#[method]edge.node"],Ee=J["nomic-foundation:slang/cst#[method]cursor.reset"],Te=J["nomic-foundation:slang/cst#[method]cursor.complete"],Se=J["nomic-foundation:slang/cst#[method]cursor.is-completed"],ke=J["nomic-foundation:slang/cst#[method]cursor.clone"],Re=J["nomic-foundation:slang/cst#[method]cursor.spawn"],Ae=J["nomic-foundation:slang/cst#[method]cursor.node"],Ce=J["nomic-foundation:slang/cst#[method]cursor.label"],Le=J["nomic-foundation:slang/cst#[method]cursor.text-offset"],Ie=J["nomic-foundation:slang/cst#[method]cursor.text-range"],Ke=J["nomic-foundation:slang/cst#[method]cursor.depth"],Ne=J["nomic-foundation:slang/cst#[method]cursor.children"],Oe=J["nomic-foundation:slang/cst#[method]cursor.descendants"],De=J["nomic-foundation:slang/cst#[method]cursor.remaining-nodes"],Ye=J["nomic-foundation:slang/cst#[method]cursor.ancestors"],Ve=J["nomic-foundation:slang/cst#[method]cursor.go-to-next"],je=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendant"],Be=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous"],He=J["nomic-foundation:slang/cst#[method]cursor.go-to-parent"],$e=J["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"],Ge=J["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"],ze=J["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"],We=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"],Xe=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"],Qe=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"],Je=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"],Ze=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"],tr=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"],er=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"],rr=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"],or=J["nomic-foundation:slang/cst#[method]cursor.query"],cr=J["nomic-foundation:slang/cst#[method]cursor-iterator.next"],lr=J["nomic-foundation:slang/cst#[method]ancestors-iterator.next"],hr=J["nomic-foundation:slang/cst#[static]query.create"],ur=J["nomic-foundation:slang/cst#[method]query-match-iterator.next"],dr=J["nomic-foundation:slang/cst#[static]text-index-extensions.zero"],wr=J["nomic-foundation:slang/ast#[static]selectors.sequence"],xr=J["nomic-foundation:slang/ast#[static]selectors.choice"],vr=J["nomic-foundation:slang/ast#[static]selectors.repeated"],br=J["nomic-foundation:slang/ast#[static]selectors.separated"],Rr=J["nomic-foundation:slang/bindings#[method]binding-graph.definition-at"],Ir=J["nomic-foundation:slang/bindings#[method]binding-graph.reference-at"],Kr=J["nomic-foundation:slang/bindings#[method]definition.id"],Mr=J["nomic-foundation:slang/bindings#[method]definition.name-location"],Fr=J["nomic-foundation:slang/bindings#[method]definition.definiens-location"],Ur=J["nomic-foundation:slang/bindings#[method]definition.references"],Yr=J["nomic-foundation:slang/bindings#[method]reference.id"],Vr=J["nomic-foundation:slang/bindings#[method]reference.location"],jr=J["nomic-foundation:slang/bindings#[method]reference.definitions"],Br=J["nomic-foundation:slang/bindings#[method]user-file-location.file-id"],Hr=J["nomic-foundation:slang/bindings#[method]user-file-location.cursor"],Qr=J["nomic-foundation:slang/parser#[static]parser.create"],Jr=J["nomic-foundation:slang/parser#[method]parser.language-version"],rs=J["nomic-foundation:slang/parser#[method]parser.parse-file-contents"],ss=J["nomic-foundation:slang/parser#[method]parser.parse-nonterminal"],is=J["nomic-foundation:slang/parser#[method]parse-output.tree"],ns=J["nomic-foundation:slang/parser#[method]parse-output.errors"],as=J["nomic-foundation:slang/parser#[method]parse-output.is-valid"],os=J["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"],us=J["nomic-foundation:slang/compilation#[static]internal-compilation-builder.create"],ds=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.add-file"],ps=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.resolve-import"],gs=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.build"],ws=J["nomic-foundation:slang/compilation#[method]compilation-unit.language-version"],_s=J["nomic-foundation:slang/compilation#[method]compilation-unit.files"],Es=J["nomic-foundation:slang/compilation#[method]compilation-unit.file"],Ts=J["nomic-foundation:slang/compilation#[method]compilation-unit.binding-graph"],Ss=J["nomic-foundation:slang/compilation#[method]file.id"],ks=J["nomic-foundation:slang/compilation#[method]file.tree"],Rs=J["nomic-foundation:slang/compilation#[method]file.errors"],As=J["nomic-foundation:slang/compilation#[method]file.create-tree-cursor"],Cs=J["nomic-foundation:slang/utils#[static]language-facts.all-versions"],Ls=J["nomic-foundation:slang/utils#[static]language-facts.earliest-version"],Is=J["nomic-foundation:slang/utils#[static]language-facts.latest-version"],Ks=J["nomic-foundation:slang/utils#[static]language-facts.infer-language-versions"]}();const n=function r(n){try{let a;do{({value:n,done:a}=i.next(n))}while(!(n instanceof Promise||a));if(a){if(!e)return n;e(n)}t||(t=new Promise((t,r)=>(e=t,s=r))),n.then(r,s)}catch(t){if(!s)throw t;s(t)}}(null);return t||n})();await Ti;const Si={Selectors:_r},ki={AncestorsIterator:mr,Cursor:Me,CursorIterator:pr,Edge:qe,EdgeLabel:{Root:"Root",Unrecognized:"Unrecognized",Missing:"Missing",Item:"Item",Variant:"Variant",Separator:"Separator",Operand:"Operand",LeftOperand:"LeftOperand",RightOperand:"RightOperand",LeadingTrivia:"LeadingTrivia",TrailingTrivia:"TrailingTrivia",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",Alias:"Alias",AnonymousKeyword:"AnonymousKeyword",Arguments:"Arguments",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Assignment:"Assignment",Asterisk:"Asterisk",AtKeyword:"AtKeyword",Attributes:"Attributes",Block:"Block",Body:"Body",BreakKeyword:"BreakKeyword",CaseKeyword:"CaseKeyword",Cases:"Cases",CatchClauses:"CatchClauses",CatchKeyword:"CatchKeyword",Clause:"Clause",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",Condition:"Condition",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",DefaultKeyword:"DefaultKeyword",DoKeyword:"DoKeyword",Elements:"Elements",ElseBranch:"ElseBranch",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",End:"End",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualGreaterThan:"EqualGreaterThan",Error:"Error",ErrorKeyword:"ErrorKeyword",Event:"Event",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",Expression:"Expression",FallbackKeyword:"FallbackKeyword",FalseExpression:"FalseExpression",Feature:"Feature",Flags:"Flags",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImportKeyword:"ImportKeyword",Index:"Index",IndexedKeyword:"IndexedKeyword",Inheritance:"Inheritance",Initialization:"Initialization",InterfaceKeyword:"InterfaceKeyword",IsKeyword:"IsKeyword",Items:"Items",Iterator:"Iterator",KeyType:"KeyType",Label:"Label",LayoutKeyword:"LayoutKeyword",LeaveKeyword:"LeaveKeyword",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",Literal:"Literal",MappingKeyword:"MappingKeyword",Member:"Member",Members:"Members",Minus:"Minus",MinusGreaterThan:"MinusGreaterThan",ModifierKeyword:"ModifierKeyword",Name:"Name",NewKeyword:"NewKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",Operator:"Operator",Options:"Options",Overridden:"Overridden",OverrideKeyword:"OverrideKeyword",Parameters:"Parameters",Path:"Path",Paths:"Paths",PayableKeyword:"PayableKeyword",Period:"Period",Pragma:"Pragma",PragmaKeyword:"PragmaKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReturnKeyword:"ReturnKeyword",Returns:"Returns",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",Semicolon:"Semicolon",Sets:"Sets",SolidityKeyword:"SolidityKeyword",Specifiers:"Specifiers",Start:"Start",Statements:"Statements",StorageLocation:"StorageLocation",StructKeyword:"StructKeyword",SwitchKeyword:"SwitchKeyword",Symbols:"Symbols",Target:"Target",ThrowKeyword:"ThrowKeyword",TrueExpression:"TrueExpression",TryKeyword:"TryKeyword",TypeKeyword:"TypeKeyword",TypeName:"TypeName",Types:"Types",UncheckedKeyword:"UncheckedKeyword",Unit:"Unit",UsingKeyword:"UsingKeyword",Value:"Value",ValueType:"ValueType",VarKeyword:"VarKeyword",Variable:"Variable",VariableType:"VariableType",Variables:"Variables",Version:"Version",WhileKeyword:"WhileKeyword"},NodeType:u,NonterminalKind:{AbicoderPragma:"AbicoderPragma",AbicoderVersion:"AbicoderVersion",AdditiveExpression:"AdditiveExpression",AddressType:"AddressType",AndExpression:"AndExpression",ArgumentsDeclaration:"ArgumentsDeclaration",ArrayExpression:"ArrayExpression",ArrayTypeName:"ArrayTypeName",ArrayValues:"ArrayValues",AssemblyFlags:"AssemblyFlags",AssemblyFlagsDeclaration:"AssemblyFlagsDeclaration",AssemblyStatement:"AssemblyStatement",AssignmentExpression:"AssignmentExpression",BitwiseAndExpression:"BitwiseAndExpression",BitwiseOrExpression:"BitwiseOrExpression",BitwiseXorExpression:"BitwiseXorExpression",Block:"Block",BreakStatement:"BreakStatement",CallOptions:"CallOptions",CallOptionsExpression:"CallOptionsExpression",CatchClause:"CatchClause",CatchClauseError:"CatchClauseError",CatchClauses:"CatchClauses",ConditionalExpression:"ConditionalExpression",ConstantDefinition:"ConstantDefinition",ConstructorAttribute:"ConstructorAttribute",ConstructorAttributes:"ConstructorAttributes",ConstructorDefinition:"ConstructorDefinition",ContinueStatement:"ContinueStatement",ContractDefinition:"ContractDefinition",ContractMember:"ContractMember",ContractMembers:"ContractMembers",ContractSpecifier:"ContractSpecifier",ContractSpecifiers:"ContractSpecifiers",DecimalNumberExpression:"DecimalNumberExpression",DoWhileStatement:"DoWhileStatement",ElementaryType:"ElementaryType",ElseBranch:"ElseBranch",EmitStatement:"EmitStatement",EnumDefinition:"EnumDefinition",EnumMembers:"EnumMembers",EqualityExpression:"EqualityExpression",ErrorDefinition:"ErrorDefinition",ErrorParameter:"ErrorParameter",ErrorParameters:"ErrorParameters",ErrorParametersDeclaration:"ErrorParametersDeclaration",EventDefinition:"EventDefinition",EventParameter:"EventParameter",EventParameters:"EventParameters",EventParametersDeclaration:"EventParametersDeclaration",ExperimentalFeature:"ExperimentalFeature",ExperimentalPragma:"ExperimentalPragma",ExponentiationExpression:"ExponentiationExpression",Expression:"Expression",ExpressionStatement:"ExpressionStatement",FallbackFunctionAttribute:"FallbackFunctionAttribute",FallbackFunctionAttributes:"FallbackFunctionAttributes",FallbackFunctionDefinition:"FallbackFunctionDefinition",ForStatement:"ForStatement",ForStatementCondition:"ForStatementCondition",ForStatementInitialization:"ForStatementInitialization",FunctionAttribute:"FunctionAttribute",FunctionAttributes:"FunctionAttributes",FunctionBody:"FunctionBody",FunctionCallExpression:"FunctionCallExpression",FunctionDefinition:"FunctionDefinition",FunctionName:"FunctionName",FunctionType:"FunctionType",FunctionTypeAttribute:"FunctionTypeAttribute",FunctionTypeAttributes:"FunctionTypeAttributes",HexNumberExpression:"HexNumberExpression",HexStringLiteral:"HexStringLiteral",HexStringLiterals:"HexStringLiterals",IdentifierPath:"IdentifierPath",IfStatement:"IfStatement",ImportAlias:"ImportAlias",ImportClause:"ImportClause",ImportDeconstruction:"ImportDeconstruction",ImportDeconstructionSymbol:"ImportDeconstructionSymbol",ImportDeconstructionSymbols:"ImportDeconstructionSymbols",ImportDirective:"ImportDirective",IndexAccessEnd:"IndexAccessEnd",IndexAccessExpression:"IndexAccessExpression",InequalityExpression:"InequalityExpression",InheritanceSpecifier:"InheritanceSpecifier",InheritanceType:"InheritanceType",InheritanceTypes:"InheritanceTypes",InterfaceDefinition:"InterfaceDefinition",InterfaceMembers:"InterfaceMembers",LibraryDefinition:"LibraryDefinition",LibraryMembers:"LibraryMembers",MappingKey:"MappingKey",MappingKeyType:"MappingKeyType",MappingType:"MappingType",MappingValue:"MappingValue",MemberAccessExpression:"MemberAccessExpression",ModifierAttribute:"ModifierAttribute",ModifierAttributes:"ModifierAttributes",ModifierDefinition:"ModifierDefinition",ModifierInvocation:"ModifierInvocation",MultiplicativeExpression:"MultiplicativeExpression",NamedArgument:"NamedArgument",NamedArgumentGroup:"NamedArgumentGroup",NamedArguments:"NamedArguments",NamedArgumentsDeclaration:"NamedArgumentsDeclaration",NamedImport:"NamedImport",NewExpression:"NewExpression",NumberUnit:"NumberUnit",OrExpression:"OrExpression",OverridePaths:"OverridePaths",OverridePathsDeclaration:"OverridePathsDeclaration",OverrideSpecifier:"OverrideSpecifier",Parameter:"Parameter",Parameters:"Parameters",ParametersDeclaration:"ParametersDeclaration",PathImport:"PathImport",PositionalArguments:"PositionalArguments",PositionalArgumentsDeclaration:"PositionalArgumentsDeclaration",PostfixExpression:"PostfixExpression",Pragma:"Pragma",PragmaDirective:"PragmaDirective",PrefixExpression:"PrefixExpression",ReceiveFunctionAttribute:"ReceiveFunctionAttribute",ReceiveFunctionAttributes:"ReceiveFunctionAttributes",ReceiveFunctionDefinition:"ReceiveFunctionDefinition",ReturnStatement:"ReturnStatement",ReturnsDeclaration:"ReturnsDeclaration",RevertStatement:"RevertStatement",ShiftExpression:"ShiftExpression",SimpleVersionLiteral:"SimpleVersionLiteral",SourceUnit:"SourceUnit",SourceUnitMember:"SourceUnitMember",SourceUnitMembers:"SourceUnitMembers",StateVariableAttribute:"StateVariableAttribute",StateVariableAttributes:"StateVariableAttributes",StateVariableDefinition:"StateVariableDefinition",StateVariableDefinitionValue:"StateVariableDefinitionValue",Statement:"Statement",Statements:"Statements",StorageLayoutSpecifier:"StorageLayoutSpecifier",StorageLocation:"StorageLocation",StringExpression:"StringExpression",StringLiteral:"StringLiteral",StringLiterals:"StringLiterals",StructDefinition:"StructDefinition",StructMember:"StructMember",StructMembers:"StructMembers",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TupleDeconstructionElement:"TupleDeconstructionElement",TupleDeconstructionElements:"TupleDeconstructionElements",TupleDeconstructionStatement:"TupleDeconstructionStatement",TupleExpression:"TupleExpression",TupleMember:"TupleMember",TupleValue:"TupleValue",TupleValues:"TupleValues",TypeExpression:"TypeExpression",TypeName:"TypeName",TypedTupleMember:"TypedTupleMember",UncheckedBlock:"UncheckedBlock",UnicodeStringLiteral:"UnicodeStringLiteral",UnicodeStringLiterals:"UnicodeStringLiterals",UnnamedFunctionAttribute:"UnnamedFunctionAttribute",UnnamedFunctionAttributes:"UnnamedFunctionAttributes",UnnamedFunctionDefinition:"UnnamedFunctionDefinition",UntypedTupleMember:"UntypedTupleMember",UserDefinedValueTypeDefinition:"UserDefinedValueTypeDefinition",UsingAlias:"UsingAlias",UsingClause:"UsingClause",UsingDeconstruction:"UsingDeconstruction",UsingDeconstructionSymbol:"UsingDeconstructionSymbol",UsingDeconstructionSymbols:"UsingDeconstructionSymbols",UsingDirective:"UsingDirective",UsingOperator:"UsingOperator",UsingTarget:"UsingTarget",VariableDeclarationStatement:"VariableDeclarationStatement",VariableDeclarationType:"VariableDeclarationType",VariableDeclarationValue:"VariableDeclarationValue",VersionExpression:"VersionExpression",VersionExpressionSet:"VersionExpressionSet",VersionExpressionSets:"VersionExpressionSets",VersionLiteral:"VersionLiteral",VersionOperator:"VersionOperator",VersionPragma:"VersionPragma",VersionRange:"VersionRange",VersionTerm:"VersionTerm",WhileStatement:"WhileStatement",YulArguments:"YulArguments",YulAssignmentOperator:"YulAssignmentOperator",YulBlock:"YulBlock",YulBreakStatement:"YulBreakStatement",YulColonAndEqual:"YulColonAndEqual",YulContinueStatement:"YulContinueStatement",YulDefaultCase:"YulDefaultCase",YulEqualAndColon:"YulEqualAndColon",YulExpression:"YulExpression",YulForStatement:"YulForStatement",YulFunctionCallExpression:"YulFunctionCallExpression",YulFunctionDefinition:"YulFunctionDefinition",YulIfStatement:"YulIfStatement",YulLabel:"YulLabel",YulLeaveStatement:"YulLeaveStatement",YulLiteral:"YulLiteral",YulParameters:"YulParameters",YulParametersDeclaration:"YulParametersDeclaration",YulPath:"YulPath",YulPaths:"YulPaths",YulReturnsDeclaration:"YulReturnsDeclaration",YulStackAssignmentOperator:"YulStackAssignmentOperator",YulStackAssignmentStatement:"YulStackAssignmentStatement",YulStatement:"YulStatement",YulStatements:"YulStatements",YulSwitchCase:"YulSwitchCase",YulSwitchCases:"YulSwitchCases",YulSwitchStatement:"YulSwitchStatement",YulValueCase:"YulValueCase",YulVariableAssignmentStatement:"YulVariableAssignmentStatement",YulVariableDeclarationStatement:"YulVariableDeclarationStatement",YulVariableDeclarationValue:"YulVariableDeclarationValue",YulVariableNames:"YulVariableNames"},NonterminalNode:te,Query:yr,QueryMatchIterator:fr,TerminalKind:{Unrecognized:"Unrecognized",Missing:"Missing",ABIEncoderV2Keyword:"ABIEncoderV2Keyword",AbicoderKeyword:"AbicoderKeyword",AbicoderV1Keyword:"AbicoderV1Keyword",AbicoderV2Keyword:"AbicoderV2Keyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",AfterKeyword:"AfterKeyword",AliasKeyword:"AliasKeyword",Ampersand:"Ampersand",AmpersandAmpersand:"AmpersandAmpersand",AmpersandEqual:"AmpersandEqual",AnonymousKeyword:"AnonymousKeyword",ApplyKeyword:"ApplyKeyword",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Asterisk:"Asterisk",AsteriskAsterisk:"AsteriskAsterisk",AsteriskEqual:"AsteriskEqual",AtKeyword:"AtKeyword",AutoKeyword:"AutoKeyword",Bang:"Bang",BangEqual:"BangEqual",Bar:"Bar",BarBar:"BarBar",BarEqual:"BarEqual",BoolKeyword:"BoolKeyword",BreakKeyword:"BreakKeyword",ByteKeyword:"ByteKeyword",BytesKeyword:"BytesKeyword",CallDataKeyword:"CallDataKeyword",Caret:"Caret",CaretEqual:"CaretEqual",CaseKeyword:"CaseKeyword",CatchKeyword:"CatchKeyword",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",ColonEqual:"ColonEqual",Comma:"Comma",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",CopyOfKeyword:"CopyOfKeyword",DaysKeyword:"DaysKeyword",DecimalLiteral:"DecimalLiteral",DefaultKeyword:"DefaultKeyword",DefineKeyword:"DefineKeyword",DeleteKeyword:"DeleteKeyword",DoKeyword:"DoKeyword",DoubleQuotedHexStringLiteral:"DoubleQuotedHexStringLiteral",DoubleQuotedStringLiteral:"DoubleQuotedStringLiteral",DoubleQuotedUnicodeStringLiteral:"DoubleQuotedUnicodeStringLiteral",DoubleQuotedVersionLiteral:"DoubleQuotedVersionLiteral",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",EndOfLine:"EndOfLine",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualColon:"EqualColon",EqualEqual:"EqualEqual",EqualGreaterThan:"EqualGreaterThan",ErrorKeyword:"ErrorKeyword",EtherKeyword:"EtherKeyword",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",ExternalKeyword:"ExternalKeyword",FallbackKeyword:"FallbackKeyword",FalseKeyword:"FalseKeyword",FinalKeyword:"FinalKeyword",FinneyKeyword:"FinneyKeyword",FixedKeyword:"FixedKeyword",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",GreaterThan:"GreaterThan",GreaterThanEqual:"GreaterThanEqual",GreaterThanGreaterThan:"GreaterThanGreaterThan",GreaterThanGreaterThanEqual:"GreaterThanGreaterThanEqual",GreaterThanGreaterThanGreaterThan:"GreaterThanGreaterThanGreaterThan",GreaterThanGreaterThanGreaterThanEqual:"GreaterThanGreaterThanGreaterThanEqual",GweiKeyword:"GweiKeyword",HexKeyword:"HexKeyword",HexLiteral:"HexLiteral",HoursKeyword:"HoursKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImmutableKeyword:"ImmutableKeyword",ImplementsKeyword:"ImplementsKeyword",ImportKeyword:"ImportKeyword",InKeyword:"InKeyword",IndexedKeyword:"IndexedKeyword",InlineKeyword:"InlineKeyword",IntKeyword:"IntKeyword",InterfaceKeyword:"InterfaceKeyword",InternalKeyword:"InternalKeyword",IsKeyword:"IsKeyword",LayoutKeyword:"LayoutKeyword",LessThan:"LessThan",LessThanEqual:"LessThanEqual",LessThanLessThan:"LessThanLessThan",LessThanLessThanEqual:"LessThanLessThanEqual",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",MacroKeyword:"MacroKeyword",MappingKeyword:"MappingKeyword",MatchKeyword:"MatchKeyword",MemoryKeyword:"MemoryKeyword",Minus:"Minus",MinusEqual:"MinusEqual",MinusGreaterThan:"MinusGreaterThan",MinusMinus:"MinusMinus",MinutesKeyword:"MinutesKeyword",ModifierKeyword:"ModifierKeyword",MultiLineComment:"MultiLineComment",MultiLineNatSpecComment:"MultiLineNatSpecComment",MutableKeyword:"MutableKeyword",NewKeyword:"NewKeyword",NullKeyword:"NullKeyword",OfKeyword:"OfKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",OverrideKeyword:"OverrideKeyword",PartialKeyword:"PartialKeyword",PayableKeyword:"PayableKeyword",Percent:"Percent",PercentEqual:"PercentEqual",Period:"Period",Plus:"Plus",PlusEqual:"PlusEqual",PlusPlus:"PlusPlus",PragmaKeyword:"PragmaKeyword",PrivateKeyword:"PrivateKeyword",PromiseKeyword:"PromiseKeyword",PublicKeyword:"PublicKeyword",PureKeyword:"PureKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReferenceKeyword:"ReferenceKeyword",RelocatableKeyword:"RelocatableKeyword",ReturnKeyword:"ReturnKeyword",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",SMTCheckerKeyword:"SMTCheckerKeyword",SealedKeyword:"SealedKeyword",SecondsKeyword:"SecondsKeyword",Semicolon:"Semicolon",SingleLineComment:"SingleLineComment",SingleLineNatSpecComment:"SingleLineNatSpecComment",SingleQuotedHexStringLiteral:"SingleQuotedHexStringLiteral",SingleQuotedStringLiteral:"SingleQuotedStringLiteral",SingleQuotedUnicodeStringLiteral:"SingleQuotedUnicodeStringLiteral",SingleQuotedVersionLiteral:"SingleQuotedVersionLiteral",SizeOfKeyword:"SizeOfKeyword",Slash:"Slash",SlashEqual:"SlashEqual",SolidityKeyword:"SolidityKeyword",StaticKeyword:"StaticKeyword",StorageKeyword:"StorageKeyword",StringKeyword:"StringKeyword",StructKeyword:"StructKeyword",SuperKeyword:"SuperKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThisKeyword:"ThisKeyword",ThrowKeyword:"ThrowKeyword",Tilde:"Tilde",TransientKeyword:"TransientKeyword",TrueKeyword:"TrueKeyword",TryKeyword:"TryKeyword",TypeDefKeyword:"TypeDefKeyword",TypeKeyword:"TypeKeyword",TypeOfKeyword:"TypeOfKeyword",UfixedKeyword:"UfixedKeyword",UintKeyword:"UintKeyword",UncheckedKeyword:"UncheckedKeyword",UsingKeyword:"UsingKeyword",VarKeyword:"VarKeyword",VersionSpecifier:"VersionSpecifier",ViewKeyword:"ViewKeyword",VirtualKeyword:"VirtualKeyword",WeeksKeyword:"WeeksKeyword",WeiKeyword:"WeiKeyword",WhileKeyword:"WhileKeyword",Whitespace:"Whitespace",YearsKeyword:"YearsKeyword",YulAbstractKeyword:"YulAbstractKeyword",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",YulGweiKeyword:"YulGweiKeyword",YulHexKeyword:"YulHexKeyword",YulHexLiteral:"YulHexLiteral",YulHoursKeyword:"YulHoursKeyword",YulIdentifier:"YulIdentifier",YulIfKeyword:"YulIfKeyword",YulImmutableKeyword:"YulImmutableKeyword",YulImplementsKeyword:"YulImplementsKeyword",YulImportKeyword:"YulImportKeyword",YulInKeyword:"YulInKeyword",YulIndexedKeyword:"YulIndexedKeyword",YulInlineKeyword:"YulInlineKeyword",YulIntKeyword:"YulIntKeyword",YulInterfaceKeyword:"YulInterfaceKeyword",YulInternalKeyword:"YulInternalKeyword",YulIsKeyword:"YulIsKeyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModifierKeyword:"YulModifierKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNullKeyword:"YulNullKeyword",YulOfKeyword:"YulOfKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulStaticKeyword:"YulStaticKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSuperKeyword:"YulSuperKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulThisKeyword:"YulThisKeyword",YulThrowKeyword:"YulThrowKeyword",YulTrueKeyword:"YulTrueKeyword",YulTryKeyword:"YulTryKeyword",YulTypeDefKeyword:"YulTypeDefKeyword",YulTypeKeyword:"YulTypeKeyword",YulTypeOfKeyword:"YulTypeOfKeyword",YulUfixedKeyword:"YulUfixedKeyword",YulUintKeyword:"YulUintKeyword",YulUncheckedKeyword:"YulUncheckedKeyword",YulUsingKeyword:"YulUsingKeyword",YulVarKeyword:"YulVarKeyword",YulViewKeyword:"YulViewKeyword",YulVirtualKeyword:"YulVirtualKeyword",YulWeeksKeyword:"YulWeeksKeyword",YulWeiKeyword:"YulWeiKeyword",YulWhileKeyword:"YulWhileKeyword",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:Bt,TerminalNode:Pe,TextIndexExtensions:gr},Ri={ParseOutput:cs,Parser:Zr},Ai={LanguageFacts:Os};s()}catch(Ci){s(Ci)}},1)},1901(t,e,r){r.a(t,async(t,s)=>{try{r.d(e,{K3:()=>i.K3,Rj:()=>i.Rj,Wp:()=>i.Wp,tQ:()=>i.tQ});var i=r(1406),n=t([i]),a=n.then?(await n)():n;i=a[0],s()}catch(t){s(t)}})},4687(t,e,r){r.d(e,{tN:()=>N,X5:()=>P,rN:()=>I,bd:()=>L,F7:()=>K});var s=r(838);const{addLeadingComment:i,addTrailingComment:n,addDanglingComment:a,hasNewline:o,hasNewlineInRange:c,getNextNonSpaceNonCommentCharacter:l,getNextNonSpaceNonCommentCharacterIndex:h}=s.util;function u(t,e){if(!t.body)return void a(t,e);const r=t.body.filter(t=>"EmptyStatement"!==t.type);0===r.length?a(t,e):i(r[0],e)}function d(t,e){"BlockStatement"===t.type?u(t,e):i(t,e)}function p(t,e,r,s,o,c){return!(!r||"IfStatement"!==r.type||!s)&&(")"===l(t,c.locEnd(o))?(n(e,o),!0):e===r.trueBody&&s===r.falseBody?("ExpressionStatement"===e.type?n(e,o):a(r,o),!0):"ExpressionStatement"===s.type?(u(s,o),!0):"IfStatement"===s.type?(d(s.trueBody,o),!0):r.trueBody===s&&(i(s,o),!0))}function m(t,e,r,s,i,a){return!(!r||"WhileStatement"!==r.type||!s)&&(")"===l(t,a.locEnd(i))?(n(e,i),!0):"BlockStatement"===s.type&&(u(s,i),!0))}function y(t,e,r,s){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(n(e,s),0):"BlockStatement"===r.type?(u(r,s),0):"TryStatement"===r.type?(d(r.finalizer,s),0):"CatchClause"!==r.type||(d(r.body,s),0)))}function f(t,e,r,s){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||r&&"Decorator"===r.type||(t.decorators&&0!==t.decorators.length?n(t.decorators[t.decorators.length-1],s):i(t,s),0))}function g(t,e,r,s,i){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==l(t,i.locEnd(r))||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(n(r,s),!0)}function w(t,e,r,s,i,a){return(e&&"FunctionTypeParam"===e.type&&r&&"FunctionTypeAnnotation"===r.type&&s&&"FunctionTypeParam"!==s.type||!(!e||"Identifier"!==e.type&&"AssignmentPattern"!==e.type||!r||"ArrowFunctionExpression"!==r.type&&"FunctionExpression"!==r.type&&"FunctionDeclaration"!==r.type&&"ObjectMethod"!==r.type&&"ClassMethod"!==r.type||")"!==l(t,a.locEnd(i))))&&(n(e,i),!0)}function x(t,e){return!(!t||"ImportSpecifier"!==t.type||(i(t,e),0))}function v(t,e,r,s){return e&&e.body&&0===e.body.length?(s?a(e,r):i(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(s?a(t,r):i(t,r),0))}const{addLeadingComment:b,addTrailingComment:_,addDanglingComment:E,getNextNonSpaceNonCommentCharacter:T}=s.util,{addLeadingComment:S,addTrailingComment:k,addDanglingComment:R,getNextNonSpaceNonCommentCharacter:A}=s.util,C=[function({text:t,precedingNode:e,enclosingNode:r,followingNode:s,comment:i,options:n}){if(!r||"ContractDefinition"!==r.type)return!1;const a=T(t,n.locEnd(i));return s&&("InheritanceSpecifier"===s.type||s===r.storageLayout)||"{"===a?!e||"InheritanceSpecifier"!==e.type&&e!==r.storageLayout?(b(r,i),!0):(_(e,i),!0):0===r.subNodes.length&&(E(r,i),!0)},function({text:t,precedingNode:e,enclosingNode:r,comment:s,options:i}){if(!r||"ModifierInvocation"!==r.type)return!1;const n=A(t,i.locEnd(s));return"("===n?(S(r,s),!0):")"===n&&(e?(k(e,s),!0):"LineComment"===s.type?(S(r,s),!0):(R(r,s),!0))}];function L(t,e,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=t,u={text:e,precedingNode:c,enclosingNode:l,followingNode:h,comment:t,options:r};return!(!C.some(t=>t(u))&&!function(t,e,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=t;return!!(w(e,c,l,h,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(i(t,r),0))}(l,h,t)||p(e,c,l,h,t,r)||m(e,c,l,h,t,r)||y(l,c,h,t)||f(l,0,h,t)||x(l,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(i(t,r),0))}(l,0,t)||function(t,e,r,s){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(n(t,s),0))}(c,l,0,t)||v(l,s,t,a)||function(t,e,r,s,i){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&o(t,i.locEnd(s)))&&(n(r,s),!0)}(e,l,c,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(i(t,e),0))}(l,t)||g(e,l,c,t,r))}(t,e,r,s,a))}function I(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=t,h={text:e,precedingNode:a,enclosingNode:o,followingNode:l,comment:t,options:r};return!(!C.some(t=>t(h))&&!function(t,e,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=t;return!!(w(e,a,o,l,t,r)||function(t,e,r,s,n,a){const o=e&&!c(n,a.locEnd(e),a.locStart(s));return!(e&&o||!t||"ConditionalExpression"!==t.type||!r||(i(r,s),0))}(o,a,l,t,e,r)||x(o,t)||p(e,a,o,l,t,r)||m(e,a,o,l,t,r)||y(o,a,l,t)||f(o,0,l,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(i(t,e),0))}(o,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(i(e.arguments[0],r),!0)}(a,o,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(i(t,e),0))}(o,t)||v(o,s,t,n)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(i(t,r),0))}(o,0,t)||function(t,e,r){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!e||"ObjectExpression"!==e.type&&"ArrayExpression"!==e.type&&"TemplateLiteral"!==e.type&&"TaggedTemplateExpression"!==e.type||(i(e,r),0))}(o,l,t))}(t,e,r,s,n))}function K(t,e,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=t,y={text:e,precedingNode:c,enclosingNode:u,followingNode:d,comment:t,options:r};return!(!C.some(t=>t(y))&&!function(t,e,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=t;return!!(p(e,c,u,d,t,r)||m(e,c,u,d,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(n(t.value.left,r),0))}(u,c,t)||function(t,e,r,s){return!(")"!==l(t,s.locEnd(r))||(!e||("FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&("ArrowFunctionExpression"!==e.type||"CallExpression"===e.body.type&&0!==e.body.arguments.length)&&"ClassMethod"!==e.type&&"ObjectMethod"!==e.type||0!==e.params.length)&&("CallExpression"!==e.type&&"NewExpression"!==e.type||0!==e.arguments.length)?!e||"MethodDefinition"!==e.type||0!==e.value.params.length||(a(e.value,r),0):(a(e,r),0)))}(e,u,t,r)||g(e,u,c,t,r)||v(u,s,t,o)||function(t,e,r,s){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const i=h(t,s.locEnd(r));return"=>"===t.substr(i,2)&&(a(e,r),!0)}(e,u,t,r)||function(t,e,r,s,i){return!("("!==l(t,i.locEnd(s))||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(n(r,s),0))}(e,u,c,t,r)||function(t,e,r,s,a){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(i(s.name,a),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(n(r.constraint,a),0)))}(0,u,c,d,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(n(t,e),0))}(u,t))}(t,e,r,s,o))}function N(t){return"BlockComment"===t.type}const{hardline:O,join:D}=s.doc.builders;function P(t,e){const r=t.getValue();switch(r.type){case"BlockComment":if(function(t){const e=`*${t.value}*`.split("\n");return e.length>1&&e.every(t=>"*"===t.trim()[0])}(r)){const t=function(t){const e=t.value.split("\n");return["/*",D(O,e.map((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`)),"*/"]}(r);return r.trailing&&!s.util.hasNewline(e.originalText,e.locStart(r),{backwards:!0})?[O,t]:t}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},2101(t,e,r){function s(t){console.warn(`[2K\r[prettier-solidity] ${t}`)}r.d(e,{o:()=>s})},7671(t,e,r){function s(t,e){return e.range?e.range[t]:e.expression?.range?e.expression.range[t]:null}r.d(e,{A:()=>i});const i={locEnd:t=>s(1,t),locStart:t=>s(0,t)}},4242(t,e,r){r.d(e,{A:()=>c});var s=r(3121),i=r(6170),n=r(7638),a=r(2101);const o=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t,c=function(t,e,r=e){const c=i(r.compiler),l=s.parse(t,{loc:!0,range:!0,comments:!0});return s.visit(l,{PragmaDirective(t){"solidity"===t.name&&c&&(n(c,t.value)||(0,a.o)(`The compiler option is set to '${r.compiler}', which does not satisfy 'pragma solidity ${t.value}'.`))},ModifierDefinition(t){t.parameters||(t.parameters=[])},FunctionDefinition(t){t.isConstructor||t.modifiers.forEach(t=>{0===t.arguments?.length&&(t.arguments=null)})},ForStatement(t){t.initExpression&&(t.initExpression.omitSemicolon=!0),t.loopExpression.omitSemicolon=!0},HexLiteral(t){const e=t.value.slice(4,-1);t.value=r.singleQuote?`hex'${e}'`:`hex"${e}"`},Conditional(t){if(r.experimentalTernaries)for(;"TupleExpression"===t.condition.type&&!t.condition.isArray&&1===t.condition.components.length&&"Conditional"!==t.condition.components[0].type;)[t.condition]=t.condition.components},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=o(t.left,["%"]),t.right=o(t.right,["%"]);break;case"*":t.left=o(t.left,["/","%"]);break;case"/":t.left=o(t.left,["*","%"]);break;case"%":t.left=o(t.left,["*","/","%"]);break;case"**":if(!c)break;if(n(c,">=0.8.0")){t.right=o(t.right,["**"]);break}if("BinaryOperation"===t.right.type&&"**"===t.right.operator){const e={type:"BinaryOperation",operator:"**",left:t.left,right:t.right.left};t.left={type:"TupleExpression",components:[e],isArray:!1},t.right=t.right.right}break;case"<<":case">>":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**"]);break;case"&":t.left=o(t.left,["+","-","*","/","**","<<",">>"]),t.right=o(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=o(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=o(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=o(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"==":case"!=":t.left=o(t.left,["==","!="]);break;case"||":t.left=o(t.left,["&&"]),t.right=o(t.right,["&&"])}}}),l}},2680(t,e,r){r.d(e,{A:()=>Ys});var s={};r.r(s),r.d(s,{addition:()=>nt,assignment:()=>Y,bit:()=>st,equality:()=>et,exponentiation:()=>ct,inequality:()=>rt,logical:()=>tt,multiplication:()=>at,shift:()=>it});var i={};r.r(i),r.d(i,{ArrayTypeName:()=>n,AssemblyAssignment:()=>c,AssemblyBlock:()=>_,AssemblyCall:()=>E,AssemblyCase:()=>T,AssemblyFor:()=>k,AssemblyFunctionDefinition:()=>A,AssemblyIf:()=>C,AssemblyLocalDefinition:()=>I,AssemblyMemberAccess:()=>K,AssemblyStackAssignment:()=>O,AssemblySwitch:()=>q,BinaryOperation:()=>lt,Block:()=>dt,BooleanLiteral:()=>pt,Break:()=>mt,BreakStatement:()=>yt,CatchClause:()=>gt,Conditional:()=>Tt,Continue:()=>St,ContinueStatement:()=>kt,ContractDefinition:()=>Ot,CustomErrorDefinition:()=>Pt,DecimalNumber:()=>qt,DoWhileStatement:()=>Vt,ElementaryTypeName:()=>Bt,EmitStatement:()=>Ht,EnumDefinition:()=>zt,EnumValue:()=>Wt,EventDefinition:()=>Qt,ExpressionStatement:()=>Zt,FileLevelConstant:()=>te,ForStatement:()=>ce,FunctionCall:()=>me,FunctionDefinition:()=>Ie,FunctionTypeName:()=>Me,HexLiteral:()=>Ve,HexNumber:()=>je,Identifier:()=>Be,IfStatement:()=>Xe,ImportDirective:()=>rr,IndexAccess:()=>cr,IndexRangeAccess:()=>lr,InheritanceSpecifier:()=>ur,InlineAssemblyStatement:()=>dr,LabelDefinition:()=>yr,Mapping:()=>gr,MemberAccess:()=>_r,ModifierDefinition:()=>Ir,ModifierInvocation:()=>Nr,NameValueExpression:()=>Or,NameValueList:()=>qr,NewExpression:()=>Mr,NumberLiteral:()=>Fr,PragmaDirective:()=>Ur,ReturnStatement:()=>Hr,RevertStatement:()=>$r,SourceUnit:()=>zr,StateVariableDeclaration:()=>Xr,StringLiteral:()=>Zr,StructDefinition:()=>es,ThrowStatement:()=>rs,TryStatement:()=>ns,TupleExpression:()=>cs,TypeDefinition:()=>ls,UnaryOperation:()=>hs,UncheckedStatement:()=>ds,UserDefinedTypeName:()=>ps,UsingForDeclaration:()=>fs,VariableDeclaration:()=>As,VariableDeclarationStatement:()=>Ks,WhileStatement:()=>qs});const n={print:({node:t,path:e,print:r})=>[e.call(r,"baseTypeName"),"[",t.length?e.call(r,"length"):"","]"]};var a=r(838);const{join:o}=a.doc.builders,c={print:({path:t,print:e})=>[o(", ",t.map(e,"names"))," := ",t.call(e,"expression")]},{group:l,indent:h,join:u,line:d,softline:p,hardline:m}=a.doc.builders,{isNextLineEmpty:y}=a.util,f=(t,e,r,s=()=>!0)=>{if(!t.comments)return"";function i(t){return!t.trailing&&!t.leading&&!t.printed&&s(t)}return u(d,e.map((t,e,s)=>{const n=t.getValue();if(!i(n))return null;n.printed=!0;const o=e===s.length-1||-1===s.slice(e+1).findIndex(i);return[r.printer.printComment(t,r),!o&&a.util.isNextLineEmpty(r.originalText,r.locEnd(n))?m:""]},"comments").filter(Boolean))};function g(t,e,r,s){const i=[];return t.each((t,e)=>{const n=t.getValue(),a=n.type;0!==i.length&&"LabelDefinition"!==a&&i.push(m),i.push(s(t)),!t.isLast&&y(r.originalText,r.locEnd(n)+1)&&i.push(m)},e),i}const w=(t,{firstSeparator:e=p,lastSeparator:r=e,grouped:s=!0}={})=>{const i=[h([e,t]),r];return s?l(i):i},x=(t,{firstSeparator:e,separator:r=[",",d],lastSeparator:s,grouped:i}={})=>w(u(r,t),{firstSeparator:e,lastSeparator:s,grouped:i}),v=(t,e)=>["TupleExpression","FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(e.type)?[" ",t]:l(h([d,t])),{hardline:b}=a.doc.builders,_={print:({node:t,options:e,path:r,print:s})=>0!==t.operations.length||t.comments?["{",w([g(r,"operations",e,s),f(t,r,e)],{firstSeparator:b,grouped:!1}),"}"]:"{}"},E={print:({node:t,path:e,print:r,options:s})=>0===t.arguments.length&&")"!==s.originalText.charAt(s.locEnd(t))?t.functionName:[t.functionName,"(",x(e.map(r,"arguments")),")"]},T={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]},{join:S}=a.doc.builders,k={print:({path:t,print:e})=>S(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])},{line:R}=a.doc.builders,A={print:({node:t,path:e,print:r})=>["function ",t.name,"(",x(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":w(["->",x(e.map(r,"returnArguments"),{firstSeparator:R,lastSeparator:""})],{firstSeparator:R}),e.call(r,"body")]},C={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]},{line:L}=a.doc.builders,I={print:({node:t,path:e,print:r})=>{const s=["let",x(e.map(r,"names"),{firstSeparator:L})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}},K={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},{hardline:N}=a.doc.builders,O={print:({node:t,path:e,print:r})=>[e.call(r,"expression"),N,"=: ",t.name]},{hardline:D,join:P}=a.doc.builders,q={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),D,P(D,t.map(e,"cases"))]},{group:M,line:F,indent:U}=a.doc.builders,Y={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left"),` ${t.operator}`,v(e.call(r,"right"),t.right)]},{group:V,line:j}=a.doc.builders,B=(t,e,r,s)=>{const i="end"===s.experimentalOperatorPosition?[" ",t.operator,j,e.call(r,"right")]:[j,t.operator," ",e.call(r,"right")],{parent:n}=e;return"BinaryOperation"===t.left.type||"BinaryOperation"===n.type&&!Y.match(n.operator)?i:V(i)},H=(t,e)=>(r,s,i,n)=>{const a=t(s),o=e(s);return a([s.call(i,"left"),o(B(r,s,i,n))])},$=({type:t,operator:e},r)=>"BinaryOperation"!==t||r.some(t=>t.match(e)),{group:G}=a.doc.builders,z=t=>e=>r=>{const{parent:s}=e;return $(s,t)?G(r):r},{indent:W}=a.doc.builders,X=["ReturnStatement","IfStatement","ForStatement","WhileStatement"],Q=t=>e=>r=>{for(let s=0,{node:i}=e;;s+=1){const n=e.getParentNode(s);if(X.includes(n.type))return r;if($(n,t))return W(r);if(i===n.right)return r;i=n}},J=t=>H(z(t),Q(t)),{indent:Z}=a.doc.builders,tt={match:t=>["&&","||"].includes(t),print:H(z([]),t=>e=>{for(let r=0,{node:s}=t;;r+=1){const i=t.getParentNode(r);if(X.includes(i.type))return e;if("Conditional"===i.type&&i.condition===s)return e;if($(i,[]))return Z(e);if(s===i.right)return e;s=i}})},et={match:t=>["==","!="].includes(t),print:J([tt])},rt={match:t=>["<",">","<=",">="].includes(t),print:J([tt,et])},st={match:t=>["&","|","^"].includes(t),print:J([rt,et,tt])},it={match:t=>["<<",">>"].includes(t),print:J([st,rt,et,tt])},nt={match:t=>["+","-"].includes(t),print:J([it,st,rt,et,tt])},at={match:t=>["*","/","%"].includes(t),print:J([nt,it,st,rt,et,tt])},{group:ot}=a.doc.builders,ct={match:t=>"**"===t,print:H(()=>t=>ot(t),Q([at,nt,it,st,rt,et,tt]))},lt={print:({node:t,path:e,print:r,options:i})=>{const n=Object.values(s).find(e=>e.match(t.operator));if(void 0===n)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(t.operator)}`);return n.print(t,e,r,i)}},{hardline:ht,indent:ut}=a.doc.builders,dt={print:({node:t,options:e,path:r,print:s})=>0!==t.statements.length||t.comments?["{",ut([ht,g(r,"statements",e,s),f(t,r,e)]),ht,"}"]:"{}"},pt={print:({node:t})=>t.value?"true":"false"},mt={print:()=>"break"},yt={print:()=>"break;"},ft=(t,e,r)=>t.parameters?[t.kind||"","(",x(e.map(r,"parameters")),") "]:"",gt={print:({node:t,path:e,print:r})=>["catch ",ft(t,e,r),e.call(r,"body")]},{group:wt,hardline:xt,ifBreak:vt,indent:bt,line:_t,softline:Et}=a.doc.builders,Tt={print:({node:t,path:e,print:r,options:s})=>s.experimentalTernaries?((t,e,r,s)=>{const{parent:i}=e,n="Conditional"===i.type,a=n&&i.trueExpression===t,o="Conditional"===t.falseExpression.type,c=e.call(r,"condition"),l=wt(["TupleExpression"===t.condition.type?c:vt(["(",w(c),")"],c)," ?"]),h=bt([a?xt:_t,e.call(r,"trueExpression")]),u=wt([l,h],{id:Symbol("Conditional.trueExpression")});let d=" ";!o&&(s.tabWidth>2||s.useTabs)&&(d=s.useTabs?"\t":" ".repeat(s.tabWidth-1));const p=e.call(r,"falseExpression"),m=[n?xt:_t,":",o?[" ",p]:vt([d,bt(p)],[" ",p],{groupId:u.id})];return wt([u,m])})(t,e,r,s):((t,e)=>wt([t.call(e,"condition"),bt(["Conditional"===t.parent.type?xt:_t,"? ",t.call(e,"trueExpression"),_t,": ",t.call(e,"falseExpression")])]))(e,r)},St={print:()=>"continue"},kt={print:()=>"continue;"},{group:Rt,hardline:At,ifBreak:Ct,line:Lt,softline:It}=a.doc.builders,Kt=(t,e,r)=>{const s=[];if(t.baseContracts.length>0&&s.push(["is",x(e.map(r,"baseContracts"),{firstSeparator:Lt})]),t.storageLayout&&s.push(["layout at",w(e.call(r,"storageLayout"),{firstSeparator:Lt,lastSeparator:0===t.baseContracts.length?Lt:""})]),0===s.length)return Lt;if(1===s.length)return[" ",s];const i=Symbol("ContractSpecifiers.inheritance");return x([Rt(s[0],{id:i}),s[1]],{firstSeparator:Lt,separator:Ct("",It,{groupId:i})})},Nt=(t,e,r,s)=>{const i=f(t,e,r);return t.subNodes.length>0||i?.length?w([g(e,"subNodes",r,s),i],{firstSeparator:At,grouped:!1}):""},Ot={print:({node:t,options:e,path:r,print:s})=>[Rt(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,Kt(t,r,s),"{"]),Nt(t,r,e,s),"}"]},Dt=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",Pt={print:({node:t,path:e,print:r})=>["error ",t.name,"(",Dt(t,e,r),");"]},qt={print:({node:t})=>t.value},{group:Mt,indent:Ft,line:Ut}=a.doc.builders,Yt=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:Mt([Ft([Ut,e.call(r,"body")]),Ut]),Vt={print:({node:t,path:e,print:r})=>["do",Yt(t,e,r),"while (",w(e.call(r,"condition")),");"]},jt=t=>t.stateMutability?.length>0?[" ",t.stateMutability]:"",Bt={print:({node:t})=>[t.name,jt(t)]},Ht={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:$t,hardline:Gt}=a.doc.builders,zt={print:({node:t,path:e,print:r})=>$t(["enum ",t.name," {",x(e.map(r,"members"),{firstSeparator:Gt}),"}"])},Wt={print:({node:t})=>t.name},Xt=(t,e,r)=>t.parameters?.length>0?x(e.map(r,"parameters")):"",Qt={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Xt(t,e,r),")",t.isAnonymous?" anonymous":"",";"]},{hardline:Jt}=a.doc.builders,Zt={print:({node:t,options:e,path:r,print:s})=>{const i=[],{parent:n}=r;if("IfStatement"===n.type&&t.comments?.length){const s=f(t,r,e);s?.length&&(i.push(s),i.push(Jt))}return i.push(r.call(s,"expression")),i.push(t.omitSemicolon?"":";"),i}},te={print:({node:t,path:e,print:r})=>[e.call(r,"typeName")," constant ",t.name," =",v(e.call(r,"initialValue"),t.initialValue),";"]},{group:ee,indent:re,line:se}=a.doc.builders,ie=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",ne=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",ae=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",oe=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:ee(re([se,e.call(r,"body")])),ce={print:({node:t,path:e,print:r})=>["for (",x([ie(t,e,r),ne(t,e,r),ae(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",se]:";"}),")",oe(t,e,r)]},{group:le,indentIfBreak:he,label:ue,line:de,softline:pe}=a.doc.builders,me={print:({node:t,path:e,print:r,options:s})=>{let i=e.call(r,"expression"),n=")";return t.arguments?.length>0&&(n=t.identifiers?.length>0?((t,e,r)=>{const s=t.map(e,"identifiers");return["{",x(t.map(e,"arguments").map((t,e)=>[s[e],": ",t]),{firstSeparator:r.bracketSpacing?de:pe,lastSeparator:[r.bracketSpacing?de:pe,"})"]})]})(e,r,s):((t,e)=>x(t.map(e,"arguments"),{lastSeparator:[pe,")"]}))(e,r)),"MemberAccessChain"===i.label?(i=le(i.contents,{id:Symbol("FunctionCall.expression")}),n=he(n,{groupId:i.id}),ue("MemberAccessChain",[i,"(",n])):[i,"(",n].flat()}},{dedent:ye,group:fe,indent:ge,join:we,line:xe}=a.doc.builders,{getNextNonSpaceNonCommentCharacter:ve}=a.util,be=(t,e)=>t.isConstructor&&!t.name?"constructor":t.name?`function ${t.name}`:t.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[e.originalText.slice(e.locStart(t),e.locStart(t)+8)],_e=(t,e,r,s,i)=>{if(e[t]?.length>0)return x(r.map(s,t),{grouped:!1});if(e.comments?.length>0){const t=f(e,r,i,t=>")"===ve(i.originalText,i.locEnd(t)));return t.length>0?w(t):""}return""},Ee=t=>t.visibility&&"default"!==t.visibility?[xe,t.visibility]:"",Te=t=>t.isVirtual?[xe,"virtual"]:"",Se=(t,e,r)=>t.override?0===t.override.length?[xe,"override"]:[xe,"override(",x(e.map(r,"override")),")"]:"",ke=t=>t.stateMutability?[xe,t.stateMutability]:"",Re=(t,e,r)=>t.modifiers.length>0?[xe,we(xe,e.map(r,"modifiers"))]:"",Ae=(t,e,r,s)=>t.returnParameters?[xe,"returns (",fe(_e("returnParameters",t,e,r,s)),")"]:"",Ce=t=>t.body?ye(xe):";",Le=(t,e,r)=>t.body?e.call(r,"body"):"",Ie={print:({node:t,path:e,print:r,options:s})=>[fe([be(t,s),"(",_e("parameters",t,e,r,s),")",ge(fe([f(t,e,s),Ee(t),ke(t),Te(t),Se(t,e,r),Re(t,e,r),Ae(t,e,r,s),Ce(t)]))]),Le(t,e,r)]},{group:Ke,indent:Ne,line:Oe}=a.doc.builders,De=(t,e,r)=>t.returnTypes.length>0?[Oe,"returns (",x(e.map(r,"returnTypes")),")"]:"",Pe=t=>t.visibility&&"default"!==t.visibility?[Oe,t.visibility]:"",qe=t=>t.stateMutability&&"default"!==t.stateMutability?[Oe,t.stateMutability]:"",Me={print:({node:t,path:e,print:r})=>Ke(["function(",x(e.map(r,"parameterTypes"),{grouped:!1}),")",Ne(Ke([Pe(t),qe(t),De(t,e,r)]))])};function Fe(t,e){const r={quote:'"',regex:/"/g},s={quote:"'",regex:/'/g},i=e.singleQuote?s:r,n=i===s?r:s;let o=!1;(t.includes(i.quote)||t.includes(n.quote))&&(o=(t.match(i.regex)||[]).length>(t.match(n.regex)||[]).length);const c=o?n.quote:i.quote;return a.util.makeString(t,c)}const{join:Ue,hardline:Ye}=a.doc.builders,Ve={print:({node:t,options:e})=>{const r=t.parts.map(t=>`hex${Fe(t,e)}`);return Ue(Ye,r)}},je={print:({node:t})=>t.value},Be={print:({node:t})=>t.name},{group:He,hardline:$e,indent:Ge,line:ze}=a.doc.builders,We=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:He(Ge([ze,e.call(r,"falseBody")])),Xe={print:({node:t,options:e,path:r,print:s})=>{const i=(t.comments||[]).filter(t=>!t.leading&&!t.trailing),n=[];return n.push("if (",w(r.call(s,"condition")),")"),n.push(((t,e,r)=>{if("Block"===t.trueBody.type)return[" ",e.call(r,"trueBody")];const s="IfStatement"===t.trueBody.type;return He(Ge([s?$e:ze,e.call(r,"trueBody")]))})(t,r,s)),i.length&&t.falseBody&&(n.push($e),n.push(f(t,r,e))),n.push(((t,e,r,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":$e,"else",We(t,e,r)]:"")(t,r,s,i)),n}};var Qe=r(6170),Je=r(7638);const{group:Ze,line:tr,softline:er}=a.doc.builders,rr={print:({node:t,options:e})=>{const r=Fe(t.path,e);let s;if(t.unitAlias)s=e.originalText.slice(e.locStart(t),e.locStart(t.pathLiteral)).includes("*")?["* as ",t.unitAlias," from ",r]:[r," as ",t.unitAlias];else if(t.symbolAliases){const i=Qe(e.compiler),n=t.symbolAliases.map(([t,e])=>e?`${t} as ${e}`:t);let a,o;i&&Je(i,">=0.7.4")&&n.length>1?(a=e.bracketSpacing?tr:er,o=[",",tr]):(a=e.bracketSpacing?" ":"",o=", "),s=["{",x(n,{firstSeparator:a,separator:o}),"} from ",r]}else s=r;return Ze(["import ",s,";"])}},{group:sr,indent:ir,indentIfBreak:nr,label:ar,softline:or}=a.doc.builders,cr={print:({path:t,print:e})=>{let r=t.call(e,"base"),s=sr([ir([or,t.call(e,"index")]),or,"]"]);return"MemberAccessChain"===r.label?(r=sr(r.contents,{id:Symbol("IndexAccess.base")}),s=nr(s,{groupId:r.id}),ar("MemberAccessChain",[r,"[",s])):[r,"[",s].flat()}},lr={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]},hr=(t,e,r)=>t.arguments?.length?["(",x(e.map(r,"arguments")),")"]:"",ur={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),hr(t,e,r)]},dr={print:({node:t,path:e,print:r,options:s})=>["assembly ",t.language?`${Fe(t.language,s)} `:"",t.flags?.length>0?["(",x(t.flags.map(t=>Fe(t,s))),") "]:"",e.call(r,"body")]},{dedent:pr,line:mr}=a.doc.builders,yr={print:({node:t})=>[pr(mr),t.name,":"]},fr=(t,e,r,s)=>e[`${t}Name`]?[r.call(s,`${t}Type`)," ",r.call(s,`${t}Name`)]:r.call(s,`${t}Type`),gr={print:({node:t,path:e,print:r})=>["mapping(",fr("key",t,e,r)," => ",fr("value",t,e,r),")"]},{group:wr,indent:xr,label:vr,softline:br}=a.doc.builders,_r={print:({node:t,path:e,print:r})=>{let s=e.call(r,"expression");Array.isArray(s)&&(s=s.flat());const i=[s,vr("separator",[br,"."]),t.memberName].flat();return((t,e)=>{let r=0,s=t,i=e.getParentNode(r);for(;i&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(i.type);){switch(i.type){case"MemberAccess":return!1;case"IndexAccess":if(s!==i.base)return!0;break;case"FunctionCall":if(s!==i.expression)return!0}r+=1,s=i,i=e.getParentNode(r)}return!0})(t,e)?(t=>{const e=t.findIndex(t=>"separator"===t.label),r=t.slice(0,e),s=wr(xr(t.slice(e)));return vr("MemberAccessChain",wr([r,s]))})(i):i}},{dedent:Er,group:Tr,indent:Sr,line:kr}=a.doc.builders,Rr=(t,e,r)=>t.parameters?.length>0?["(",x(e.map(r,"parameters"),{separator:[",",kr]}),")"]:"()",Ar=t=>t.isVirtual?[kr,"virtual"]:"",Cr=(t,e,r)=>t.override?0===t.override.length?[kr,"override"]:[kr,"override(",x(e.map(r,"override")),")"]:"",Lr=(t,e,r)=>t.body?t.isVirtual?Tr(e.call(r,"body")):[e.call(r,"body")]:";",Ir={print:({node:t,path:e,print:r})=>["modifier ",t.name,Rr(t,e,r),Tr(Sr([Ar(t),Cr(t,e,r),t.body?Er(kr):""])),Lr(t,e,r)]},Kr=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",x(e.map(r,"arguments")),")"]:"()":t.comments?.some(t=>!t.leading&&!t.trailing&&!t.printed)?["(",f(t,e,s),")"]:"",Nr={print:({node:t,path:e,print:r,options:s})=>[t.name,Kr(t,e,r,s)]},Or={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:Dr,softline:Pr}=a.doc.builders,qr={print:({node:t,path:e,print:r,options:s})=>x(e.map(r,"arguments").map((e,r)=>[t.names[r],": ",e]),{firstSeparator:s.bracketSpacing?Dr:Pr})},Mr={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},Fr={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},Ur={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:Yr,indent:Vr,line:jr}=a.doc.builders,Br=(t,e,r,s)=>t.expression?"TupleExpression"===t.expression.type||s.experimentalTernaries&&"Conditional"===t.expression.type?[" ",e.call(r,"expression")]:Yr(Vr([jr,e.call(r,"expression")])):"",Hr={print:({node:t,path:e,print:r,options:s})=>["return",Br(t,e,r,s),";"]},$r={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:Gr}=a.doc.builders,zr={print:({node:t,options:e,path:r,print:s})=>[g(r,"children",e,s),f(t,r,e),e.parentParser?"":Gr]},Wr=(t,e,r)=>t.initialValue?[" =",v(e.call(r,"initialValue"),t.initialValue)]:"",Xr={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),Wr(t,e,r),";"]},{join:Qr,hardline:Jr}=a.doc.builders,Zr={print:({node:t,options:e})=>{const r=t.parts.map((r,s)=>(t.isUnicode[s]?"unicode":"")+Fe(r,e));return Qr(Jr,r)}},{hardline:ts}=a.doc.builders,es={print:({node:t,path:e,print:r})=>["struct ",t.name," {",t.members.length>0?x(e.map(r,"members"),{firstSeparator:ts,separator:[";",ts],lastSeparator:[";",ts]}):"","}"]},rs={print:()=>"throw;"},{join:ss,line:is}=a.doc.builders,ns={print:({node:t,path:e,print:r})=>{let s=["try",w(e.call(r,"expression"),{firstSeparator:is})];const i=((t,e,r)=>t.returnParameters?["returns (",x(e.map(r,"returnParameters")),")"]:"")(t,e,r);return i&&(s=s.concat([i," "])),s=s.concat([e.call(r,"body")," ",ss(" ",e.map(r,"catchClauses"))]),s}},{group:as}=a.doc.builders,os=(t,e,r)=>1===t.components?.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):x(e.map(r,"components")),cs={print:({node:t,path:e,print:r})=>as([t.isArray?"[":"(",os(t,e,r),t.isArray?"]":")"])},ls={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},hs={print:({node:t,path:e,print:r})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(r,"subExpression")]:[e.call(r,"subExpression"),t.operator]},{group:us}=a.doc.builders,ds={print:({path:t,print:e})=>us(["unchecked ",t.call(e,"block")])},ps={print:({node:t})=>t.namePath},{line:ms,softline:ys}=a.doc.builders,fs={print:({node:t,path:e,print:r,options:s})=>["using ",t.functions?.length?["{",x(t.functions.map((e,r)=>t.operators[r]?[e," as ",t.operators[r]]:e),{firstSeparator:s.bracketSpacing?ms:ys}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]},{group:gs,indent:ws,line:xs}=a.doc.builders,vs=t=>t.isIndexed?" indexed":"",bs=t=>t.visibility&&"default"!==t.visibility?[xs,t.visibility]:"",_s=t=>t.isDeclaredConst?" constant":"",Es=t=>t.storageLocation&&"default"!==t.visibility?[xs,t.storageLocation]:"",Ts=t=>t.isImmutable?" immutable":"",Ss=t=>t.isTransient?" transient":"",ks=(t,e,r)=>t.override?0===t.override.length?[xs,"override"]:[xs,"override(",x(e.map(r,"override")),")"]:"",Rs=t=>t.name?[" ",t.name]:"",As={print:({node:t,path:e,print:r})=>t.typeName?gs([e.call(r,"typeName"),ws([vs(t),bs(t),_s(t),Es(t),Ts(t),Ss(t),ks(t,e,r),Rs(t)])]):t.name},{group:Cs,indentIfBreak:Ls,line:Is}=a.doc.builders,Ks={print:({node:t,path:e,print:r})=>{const s=0===t.variables.filter(t=>t?.typeName).length,i=Cs([s?"var ":"",(n=e.map(r,"variables"),a=t.variables.length>1||s,a?["(",x(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((t,e,r)=>t.initialValue?[" =",v(e.call(r,"initialValue"),t.initialValue)]:"")(t,e,r);return Cs([i,Ls(o,{groupId:i.id}),t.omitSemicolon?"":";"])}},{group:Ns,indent:Os,line:Ds}=a.doc.builders,Ps=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Ns(Os([Ds,e.call(r,"body")])),qs={print:({node:t,path:e,print:r})=>["while (",w(e.call(r,"condition")),")",Ps(t,e,r)]};var Ms=r(2101);const Fs=function t(e){const r=e.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach(s=>{switch(s){case"loc":case"range":break;case"comments":e.each(t=>{t.getValue().printed=!0},"comments");break;default:if("object"==typeof r[s]){if(Array.isArray(r[s]))return void e.each(t,s);e.call(t,s)}}})},Us=function(){let t;return()=>(void 0===t&&((0,Ms.o)("The 'antlr' parser has been deprecated, please use 'slang' instead."),t=!0),t)}(),Ys=function(t,e,r){Us();const s=t.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return function(t){return t?.comments?.length>0&&t.comments.some(t=>"prettier-ignore"===t.value.trim())}(s)?(Fs(t),e.originalText.slice(e.locStart(s),e.locEnd(s)+1)):i[s.type].print({node:s,options:e,path:t,print:r})}}},a={};function o(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={exports:{}};return n[t].call(r.exports,r,r.exports,o),r.exports}t="function"==typeof Symbol,e=t?Symbol("webpack queues"):"__webpack_queues__",r=t?Symbol("webpack exports"):"__webpack_exports__",s=t?Symbol("webpack error"):"__webpack_error__",i=t=>{t&&t.d<1&&(t.d=1,t.forEach(t=>t.r--),t.forEach(t=>t.r--?t.r++:t()))},o.a=(t,n,a)=>{var o;a&&((o=[]).d=-1);var c,l,h,u=new Set,d=t.exports,p=new Promise((t,e)=>{h=e,l=t});p[r]=d,p[e]=t=>(o&&t(o),u.forEach(t),p.catch(t=>{})),t.exports=p,n(t=>{var n;c=(t=>t.map(t=>{if(null!==t&&"object"==typeof t){if(t[e])return t;if(t.then){var n=[];n.d=0,t.then(t=>{a[r]=t,i(n)},t=>{a[s]=t,i(n)});var a={};return a[e]=t=>t(n),a}}var o={};return o[e]=t=>{},o[r]=t,o}))(t);var a=()=>c.map(t=>{if(t[s])throw t[s];return t[r]}),l=new Promise(t=>{(n=()=>t(a)).r=0;var r=t=>t!==o&&!u.has(t)&&(u.add(t),t&&!t.d&&(n.r++,t.push(n)));c.map(t=>t[e](r))});return n.r?l:a()},t=>(t?h(p[s]=t):l(d),i(o))),o&&o.d<0&&(o.d=0)},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.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(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),o.b=void 0;var c=o(8156);const l=(c=await c).A;export{l as default};var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{};h.prettierPlugins=h.prettierPlugins||{},h.prettierPlugins.solidity=l;
|
|
2
2
|
//# sourceMappingURL=standalone.js.map
|