@guihz/trading-vue-editor-tes 0.0.87 → 0.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/assets/parserTccWorker-DmsbBKf_.js +207 -0
- package/lib/assets/scriptsRunWorker-CR8yhfY4.js +80 -0
- package/lib/components/editor/parseScript/buildInFuncNamespace/index.d.ts +2 -1
- package/lib/components/editor/parseScript/buildInFuncNamespace/request.d.ts +22 -0
- package/lib/components/editor/parseScript/parseToJs.d.ts +2 -2
- package/lib/trading-vue-editor.js +1376 -1367
- package/lib/trading-vue-editor.umd.cjs +35 -35
- package/package.json +3 -1
- package/lib/assets/parserTccWorker-uj2W1nSC.js +0 -201
- package/lib/assets/scriptsRunWorker-DiX92qlp.js +0 -66
@@ -1,201 +0,0 @@
|
|
1
|
-
var X0=Object.defineProperty;var q0=(ho,hi,Or)=>hi in ho?X0(ho,hi,{enumerable:!0,configurable:!0,writable:!0,value:Or}):ho[hi]=Or;var k=(ho,hi,Or)=>(q0(ho,typeof hi!="symbol"?hi+"":hi,Or),Or);(function(){"use strict";var ho={92:()=>{}},hi={};function Or(t){var e=hi[t];if(e!==void 0)return e.exports;var n=hi[t]={exports:{}};return ho[t](n,n.exports,Or),n.exports}Or.d=(t,e)=>{for(var n in e)Or.o(e,n)&&!Or.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Or.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var kt={};(()=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t(l)}function e(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(t(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(t(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),t(p)==="symbol"?p:String(p)),a)}var p}Or.d(kt,{dx:()=>dn,q2:()=>ch,FO:()=>Lm,xf:()=>tu,Gy:()=>Vm,s4:()=>Is,c7:()=>Hm,_7:()=>wm,gp:()=>Im,cK:()=>ws,zs:()=>Bh,AV:()=>tu,Xp:()=>ge,VS:()=>re,ul:()=>Mo,hW:()=>ar,x1:()=>ja,z5:()=>Fc,oN:()=>Ih,TB:()=>Nm,u1:()=>Bc,_b:()=>Qh,$F:()=>Dm,_T:()=>rp,db:()=>km,Zx:()=>Gn,_x:()=>Uo,r8:()=>qi,JI:()=>Fe,TP:()=>on,WU:()=>n,Nj:()=>U,ZP:()=>W0});var n=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),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}var r,d;return r=l,(d=[{key:"getTokenSource",value:function(){return this.source[0]}},{key:"getInputStream",value:function(){return this.source[1]}},{key:"text",get:function(){return this._text},set:function(a){this._text=a}}])&&e(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function i(l,r){if(!Array.isArray(l)||!Array.isArray(r))return!1;if(l===r)return!0;if(l.length!==r.length)return!1;for(var d=0;d<l.length;d++)if(!(l[d]===r[d]||l[d].equals&&l[d].equals(r[d])))return!1;return!0}function s(l){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},s(l)}n.INVALID_TYPE=0,n.EPSILON=-2,n.MIN_USER_TOKEN_TYPE=1,n.EOF=-1,n.DEFAULT_CHANNEL=0,n.HIDDEN_CHANNEL=1;var f=Math.round(Math.random()*Math.pow(2,32));function h(l){if(!l)return 0;var r,d,a=s(l),p=a==="string"?l:!(a!=="object"||!l.toString)&&l.toString();if(!p)return 0;for(var c=3&p.length,m=p.length-c,o=f,u=3432918353,v=461845907,x=0;x<m;)d=255&p.charCodeAt(x)|(255&p.charCodeAt(++x))<<8|(255&p.charCodeAt(++x))<<16|(255&p.charCodeAt(++x))<<24,++x,o=27492+(65535&(r=5*(65535&(o=(o^=d=(65535&(d=(d=(65535&d)*u+(((d>>>16)*u&65535)<<16)&4294967295)<<15|d>>>17))*v+(((d>>>16)*v&65535)<<16)&4294967295)<<13|o>>>19))+((5*(o>>>16)&65535)<<16)&4294967295))+((58964+(r>>>16)&65535)<<16);switch(d=0,c){case 3:d^=(255&p.charCodeAt(x+2))<<16;case 2:d^=(255&p.charCodeAt(x+1))<<8;case 1:o^=d=(65535&(d=(d=(65535&(d^=255&p.charCodeAt(x)))*u+(((d>>>16)*u&65535)<<16)&4294967295)<<15|d>>>17))*v+(((d>>>16)*v&65535)<<16)&4294967295}return o^=p.length,o=2246822507*(65535&(o^=o>>>16))+((2246822507*(o>>>16)&65535)<<16)&4294967295,o=3266489909*(65535&(o^=o>>>13))+((3266489909*(o>>>16)&65535)<<16)&4294967295,(o^=o>>>16)>>>0}function y(l){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},y(l)}function E(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(y(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(y(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),y(p)==="symbol"?p:String(p)),a)}var p}var T=function(){function l(){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.count=0,this.hash=0}var r,d,a;return r=l,d=[{key:"update",value:function(){for(var p=0;p<arguments.length;p++){var c=arguments[p];if(c!=null)if(Array.isArray(c))this.update.apply(this,c);else{var m=0;switch(y(c)){case"undefined":case"function":continue;case"number":case"boolean":m=c;break;case"string":m=h(c);break;default:c.updateHashCode?c.updateHashCode(this):console.log("No updateHashCode for "+c.toString());continue}m=(m*=3432918353)<<15|m>>>17,m*=461845907,this.count=this.count+1;var o=this.hash^m;o=5*(o=o<<13|o>>>19)+3864292196,this.hash=o}}}},{key:"finish",value:function(){var p=this.hash^4*this.count;return p^=p>>>16,p*=2246822507,p^=p>>>13,(p*=3266489909)^p>>>16}}],a=[{key:"hashStuff",value:function(){var p=new l;return p.update.apply(p,arguments),p.finish()}}],d&&E(r.prototype,d),a&&E(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}();function O(l){return l?typeof l=="string"?h(l):l.hashCode():-1}function A(l,r){return l?l.equals(r):l===r}function I(l){return l===null?"null":l}function U(l){return Array.isArray(l)?"["+l.map(I).join(", ")+"]":"null"}function L(l){return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},L(l)}function b(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(L(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(L(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),L(p)==="symbol"?p:String(p)),a)}var p}var _="h-",g=function(){function l(a,p){(function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l),this.data={},this.hashFunction=a||O,this.equalsFunction=p||A}var r,d;return r=l,(d=[{key:"add",value:function(a){var p=_+this.hashFunction(a);if(p in this.data){for(var c=this.data[p],m=0;m<c.length;m++)if(this.equalsFunction(a,c[m]))return c[m];return c.push(a),a}return this.data[p]=[a],a}},{key:"has",value:function(a){return this.get(a)!=null}},{key:"get",value:function(a){var p=_+this.hashFunction(a);if(p in this.data){for(var c=this.data[p],m=0;m<c.length;m++)if(this.equalsFunction(a,c[m]))return c[m]}return null}},{key:"values",value:function(){var a=this;return Object.keys(this.data).filter(function(p){return p.startsWith(_)}).flatMap(function(p){return a.data[p]},this)}},{key:"toString",value:function(){return U(this.values())}},{key:"length",get:function(){var a=this;return Object.keys(this.data).filter(function(p){return p.startsWith(_)}).map(function(p){return a.data[p].length},this).reduce(function(p,c){return p+c},0)}}])&&b(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function C(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),r&&R(l,r)}function R(l,r){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},R(l,r)}function D(l){var r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var d,a=B(l);if(r){var p=B(this).constructor;d=Reflect.construct(a,arguments,p)}else d=a.apply(this,arguments);return function(c,m){if(m&&(X(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(c)}(this,d)}}function B(l){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},B(l)}function X(l){return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},X(l)}function ne(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function z(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(X(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(X(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),X(p)==="symbol"?p:String(p)),a)}var p}function Y(l,r,d){return r&&z(l.prototype,r),d&&z(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}var K=function(){function l(){ne(this,l)}return Y(l,[{key:"hashCode",value:function(){var r=new T;return this.updateHashCode(r),r.finish()}},{key:"evaluate",value:function(r,d){}},{key:"evalPrecedence",value:function(r,d){return this}}],[{key:"andContext",value:function(r,d){if(r===null||r===l.NONE)return d;if(d===null||d===l.NONE)return r;var a=new ce(r,d);return a.opnds.length===1?a.opnds[0]:a}},{key:"orContext",value:function(r,d){if(r===null)return d;if(d===null)return r;if(r===l.NONE||d===l.NONE)return l.NONE;var a=new Q(r,d);return a.opnds.length===1?a.opnds[0]:a}}]),l}(),ce=function(l){C(d,l);var r=D(d);function d(a,p){var c;ne(this,d),c=r.call(this);var m=new g;a instanceof d?a.opnds.map(function(v){m.add(v)}):m.add(a),p instanceof d?p.opnds.map(function(v){m.add(v)}):m.add(p);var o=me(m);if(o.length>0){var u=null;o.map(function(v){(u===null||v.precedence<u.precedence)&&(u=v)}),m.add(u)}return c.opnds=Array.from(m.values()),c}return Y(d,[{key:"equals",value:function(a){return this===a||a instanceof d&&i(this.opnds,a.opnds)}},{key:"updateHashCode",value:function(a){a.update(this.opnds,"AND")}},{key:"evaluate",value:function(a,p){for(var c=0;c<this.opnds.length;c++)if(!this.opnds[c].evaluate(a,p))return!1;return!0}},{key:"evalPrecedence",value:function(a,p){for(var c=!1,m=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],v=u.evalPrecedence(a,p);if(c|=v!==u,v===null)return null;v!==K.NONE&&m.push(v)}if(!c)return this;if(m.length===0)return K.NONE;var x=null;return m.map(function(S){x=x===null?S:K.andContext(x,S)}),x}},{key:"toString",value:function(){var a=this.opnds.map(function(p){return p.toString()});return(a.length>3?a.slice(3):a).join("&&")}}]),d}(K),Q=function(l){C(d,l);var r=D(d);function d(a,p){var c;ne(this,d),c=r.call(this);var m=new g;a instanceof d?a.opnds.map(function(x){m.add(x)}):m.add(a),p instanceof d?p.opnds.map(function(x){m.add(x)}):m.add(p);var o=me(m);if(o.length>0){var u=o.sort(function(x,S){return x.compareTo(S)}),v=u[u.length-1];m.add(v)}return c.opnds=Array.from(m.values()),c}return Y(d,[{key:"equals",value:function(a){return this===a||a instanceof d&&i(this.opnds,a.opnds)}},{key:"updateHashCode",value:function(a){a.update(this.opnds,"OR")}},{key:"evaluate",value:function(a,p){for(var c=0;c<this.opnds.length;c++)if(this.opnds[c].evaluate(a,p))return!0;return!1}},{key:"evalPrecedence",value:function(a,p){for(var c=!1,m=[],o=0;o<this.opnds.length;o++){var u=this.opnds[o],v=u.evalPrecedence(a,p);if(c|=v!==u,v===K.NONE)return K.NONE;v!==null&&m.push(v)}return c?(m.length===0||m.map(function(x){return x}),null):this}},{key:"toString",value:function(){var a=this.opnds.map(function(p){return p.toString()});return(a.length>3?a.slice(3):a).join("||")}}]),d}(K);function me(l){var r=[];return l.values().map(function(d){d instanceof K.PrecedencePredicate&&r.push(d)}),r}function _e(l){return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_e(l)}function te(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(_e(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(_e(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),_e(p)==="symbol"?p:String(p)),a)}var p}function pe(l,r){if(l===null){var d={state:null,alt:null,context:null,semanticContext:null};return r&&(d.reachesIntoOuterContext=0),d}var a={};return a.state=l.state||null,a.alt=l.alt===void 0?null:l.alt,a.context=l.context||null,a.semanticContext=l.semanticContext||null,r&&(a.reachesIntoOuterContext=l.reachesIntoOuterContext||0,a.precedenceFilterSuppressed=l.precedenceFilterSuppressed||!1),a}var le=function(){function l(a,p){(function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l),this.checkContext(a,p),a=pe(a),p=pe(p,!0),this.state=a.state!==null?a.state:p.state,this.alt=a.alt!==null?a.alt:p.alt,this.context=a.context!==null?a.context:p.context,this.semanticContext=a.semanticContext!==null?a.semanticContext:p.semanticContext!==null?p.semanticContext:K.NONE,this.reachesIntoOuterContext=p.reachesIntoOuterContext,this.precedenceFilterSuppressed=p.precedenceFilterSuppressed}var r,d;return r=l,(d=[{key:"checkContext",value:function(a,p){a.context!==null&&a.context!==void 0||p!==null&&p.context!==null&&p.context!==void 0||(this.context=null)}},{key:"hashCode",value:function(){var a=new T;return this.updateHashCode(a),a.finish()}},{key:"updateHashCode",value:function(a){a.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}},{key:"equals",value:function(a){return this===a||a instanceof l&&this.state.stateNumber===a.state.stateNumber&&this.alt===a.alt&&(this.context===null?a.context===null:this.context.equals(a.context))&&this.semanticContext.equals(a.semanticContext)&&this.precedenceFilterSuppressed===a.precedenceFilterSuppressed}},{key:"hashCodeForConfigSet",value:function(){var a=new T;return a.update(this.state.stateNumber,this.alt,this.semanticContext),a.finish()}},{key:"equalsForConfigSet",value:function(a){return this===a||a instanceof l&&this.state.stateNumber===a.state.stateNumber&&this.alt===a.alt&&this.semanticContext.equals(a.semanticContext)}},{key:"toString",value:function(){return"("+this.state+","+this.alt+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==K.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}])&&te(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Oe(l){return Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Oe(l)}function Ie(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Oe(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Oe(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Oe(p)==="symbol"?p:String(p)),a)}var p}var ge=function(){function l(a,p){(function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l),this.start=a,this.stop=p}var r,d;return r=l,(d=[{key:"clone",value:function(){return new l(this.start,this.stop)}},{key:"contains",value:function(a){return a>=this.start&&a<this.stop}},{key:"toString",value:function(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}},{key:"length",get:function(){return this.stop-this.start}}])&&Ie(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ue(l){return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ue(l)}function J(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ue(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ue(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ue(p)==="symbol"?p:String(p)),a)}var p}ge.INVALID_INTERVAL=new ge(-1,-2);var re=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),this.intervals=null,this.readOnly=!1}var r,d;return r=l,(d=[{key:"first",value:function(a){return this.intervals===null||this.intervals.length===0?n.INVALID_TYPE:this.intervals[0].start}},{key:"addOne",value:function(a){this.addInterval(new ge(a,a+1))}},{key:"addRange",value:function(a,p){this.addInterval(new ge(a,p+1))}},{key:"addInterval",value:function(a){if(this.intervals===null)this.intervals=[],this.intervals.push(a.clone());else{for(var p=0;p<this.intervals.length;p++){var c=this.intervals[p];if(a.stop<c.start)return void this.intervals.splice(p,0,a);if(a.stop===c.start)return void(this.intervals[p]=new ge(a.start,c.stop));if(a.start<=c.stop)return this.intervals[p]=new ge(Math.min(c.start,a.start),Math.max(c.stop,a.stop)),void this.reduce(p)}this.intervals.push(a.clone())}}},{key:"addSet",value:function(a){var p=this;return a.intervals!==null&&a.intervals.forEach(function(c){return p.addInterval(c)},this),this}},{key:"reduce",value:function(a){if(a<this.intervals.length-1){var p=this.intervals[a],c=this.intervals[a+1];p.stop>=c.stop?(this.intervals.splice(a+1,1),this.reduce(a)):p.stop>=c.start&&(this.intervals[a]=new ge(p.start,c.stop),this.intervals.splice(a+1,1))}}},{key:"complement",value:function(a,p){var c=new l;return c.addInterval(new ge(a,p+1)),this.intervals!==null&&this.intervals.forEach(function(m){return c.removeRange(m)}),c}},{key:"contains",value:function(a){if(this.intervals===null)return!1;for(var p=0;p<this.intervals.length;p++)if(this.intervals[p].contains(a))return!0;return!1}},{key:"removeRange",value:function(a){if(a.start===a.stop-1)this.removeOne(a.start);else if(this.intervals!==null)for(var p=0,c=0;c<this.intervals.length;c++){var m=this.intervals[p];if(a.stop<=m.start)return;if(a.start>m.start&&a.stop<m.stop){this.intervals[p]=new ge(m.start,a.start);var o=new ge(a.stop,m.stop);return void this.intervals.splice(p,0,o)}a.start<=m.start&&a.stop>=m.stop?(this.intervals.splice(p,1),p-=1):a.start<m.stop?this.intervals[p]=new ge(m.start,a.start):a.stop<m.stop&&(this.intervals[p]=new ge(a.stop,m.stop)),p+=1}}},{key:"removeOne",value:function(a){if(this.intervals!==null)for(var p=0;p<this.intervals.length;p++){var c=this.intervals[p];if(a<c.start)return;if(a===c.start&&a===c.stop-1)return void this.intervals.splice(p,1);if(a===c.start)return void(this.intervals[p]=new ge(c.start+1,c.stop));if(a===c.stop-1)return void(this.intervals[p]=new ge(c.start,c.stop-1));if(a<c.stop-1){var m=new ge(c.start,a);return c.start=a+1,void this.intervals.splice(p,0,m)}}}},{key:"toString",value:function(a,p,c){return a=a||null,p=p||null,c=c||!1,this.intervals===null?"{}":a!==null||p!==null?this.toTokenString(a,p):c?this.toCharString():this.toIndexString()}},{key:"toCharString",value:function(){for(var a=[],p=0;p<this.intervals.length;p++){var c=this.intervals[p];c.stop===c.start+1?c.start===n.EOF?a.push("<EOF>"):a.push("'"+String.fromCharCode(c.start)+"'"):a.push("'"+String.fromCharCode(c.start)+"'..'"+String.fromCharCode(c.stop-1)+"'")}return a.length>1?"{"+a.join(", ")+"}":a[0]}},{key:"toIndexString",value:function(){for(var a=[],p=0;p<this.intervals.length;p++){var c=this.intervals[p];c.stop===c.start+1?c.start===n.EOF?a.push("<EOF>"):a.push(c.start.toString()):a.push(c.start.toString()+".."+(c.stop-1).toString())}return a.length>1?"{"+a.join(", ")+"}":a[0]}},{key:"toTokenString",value:function(a,p){for(var c=[],m=0;m<this.intervals.length;m++)for(var o=this.intervals[m],u=o.start;u<o.stop;u++)c.push(this.elementName(a,p,u));return c.length>1?"{"+c.join(", ")+"}":c[0]}},{key:"elementName",value:function(a,p,c){return c===n.EOF?"<EOF>":c===n.EPSILON?"<EPSILON>":a[c]||p[c]}},{key:"length",get:function(){return this.intervals.map(function(a){return a.length}).reduce(function(a,p){return a+p})}}])&&J(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function se(l){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},se(l)}function Te(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(se(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(se(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),se(p)==="symbol"?p:String(p)),a)}var p}var ye=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),this.atn=null,this.stateNumber=l.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}var r,d;return r=l,(d=[{key:"toString",value:function(){return this.stateNumber}},{key:"equals",value:function(a){return a instanceof l&&this.stateNumber===a.stateNumber}},{key:"isNonGreedyExitState",value:function(){return!1}},{key:"addTransition",value:function(a,p){p===void 0&&(p=-1),this.transitions.length===0?this.epsilonOnlyTransitions=a.isEpsilon:this.epsilonOnlyTransitions!==a.isEpsilon&&(this.epsilonOnlyTransitions=!1),p===-1?this.transitions.push(a):this.transitions.splice(p,1,a)}}])&&Te(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function At(l){return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},At(l)}function jt(l,r){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},jt(l,r)}function Et(l,r){if(r&&(At(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mt(l)}function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function gt(l){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gt(l)}ye.INVALID_TYPE=0,ye.BASIC=1,ye.RULE_START=2,ye.BLOCK_START=3,ye.PLUS_BLOCK_START=4,ye.STAR_BLOCK_START=5,ye.TOKEN_START=6,ye.RULE_STOP=7,ye.BLOCK_END=8,ye.STAR_LOOP_BACK=9,ye.STAR_LOOP_ENTRY=10,ye.PLUS_LOOP_BACK=11,ye.LOOP_END=12,ye.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"],ye.INVALID_STATE_NUMBER=-1;var Ct=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&jt(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=gt(d);if(a){var u=gt(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Et(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.RULE_STOP,Et(m,Mt(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function Jt(l){return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jt(l)}function oe(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Jt(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Jt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Jt(p)==="symbol"?p:String(p)),a)}var p}function ke(l,r,d){return r&&oe(l.prototype,r),d&&oe(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}var de=ke(function l(r){if(function(d,a){if(!(d instanceof a))throw new TypeError("Cannot call a class as a function")}(this,l),r==null)throw"target cannot be null.";this.target=r,this.isEpsilon=!1,this.label=null});function bt(l){return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bt(l)}function xt(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(bt(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(bt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),bt(p)==="symbol"?p:String(p)),a)}var p}function Dt(l,r){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Dt(l,r)}function Bn(l){return Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bn(l)}de.EPSILON=1,de.RANGE=2,de.RULE=3,de.PREDICATE=4,de.ATOM=5,de.ACTION=6,de.SET=7,de.NOT_SET=8,de.WILDCARD=9,de.PRECEDENCE=10,de.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],de.serializationTypes={EpsilonTransition:de.EPSILON,RangeTransition:de.RANGE,RuleTransition:de.RULE,PredicateTransition:de.PREDICATE,AtomTransition:de.ATOM,ActionTransition:de.ACTION,SetTransition:de.SET,NotSetTransition:de.NOT_SET,WildcardTransition:de.WILDCARD,PrecedencePredicateTransition:de.PRECEDENCE};var Zt=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Dt(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Bn(a);if(p){var v=Bn(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(bt(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v,x){var S;return function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,m),(S=c.call(this,o)).ruleIndex=u,S.precedence=v,S.followState=x,S.serializationType=de.RULE,S.isEpsilon=!0,S}return r=m,(d=[{key:"matches",value:function(o,u,v){return!1}}])&&xt(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function pn(l){return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pn(l)}function $t(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(pn(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(pn(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),pn(p)==="symbol"?p:String(p)),a)}var p}function Pt(l,r){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Pt(l,r)}function ln(l){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(l)}var Ai=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Pt(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=ln(a);if(p){var v=ln(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(pn(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o)).serializationType=de.SET,u!=null?v.label=u:(v.label=new re,v.label.addOne(n.INVALID_TYPE)),v}return r=m,(d=[{key:"matches",value:function(o,u,v){return this.label.contains(o)}},{key:"toString",value:function(){return this.label.toString()}}])&&$t(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function V(l){return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},V(l)}function we(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(V(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(V(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),V(p)==="symbol"?p:String(p)),a)}var p}function Be(){return Be=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,d){var a=function(c,m){for(;!Object.prototype.hasOwnProperty.call(c,m)&&(c=ut(c))!==null;);return c}(l,r);if(a){var p=Object.getOwnPropertyDescriptor(a,r);return p.get?p.get.call(arguments.length<3?l:d):p.value}},Be.apply(this,arguments)}function Me(l,r){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Me(l,r)}function ut(l){return ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ut(l)}var rn=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Me(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=ut(a);if(p){var v=ut(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(V(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o,u)).serializationType=de.NOT_SET,v}return r=m,(d=[{key:"matches",value:function(o,u,v){return o>=u&&o<=v&&!Be(ut(m.prototype),"matches",this).call(this,o,u,v)}},{key:"toString",value:function(){return"~"+Be(ut(m.prototype),"toString",this).call(this)}}])&&we(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Ai);function ft(l){return ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ft(l)}function gn(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ft(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ft(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ft(p)==="symbol"?p:String(p)),a)}var p}function Tn(l,r){return Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Tn(l,r)}function li(l){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},li(l)}var Fn=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Tn(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=li(a);if(p){var v=li(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(ft(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this,o)).serializationType=de.WILDCARD,u}return r=m,(d=[{key:"matches",value:function(o,u,v){return o>=u&&o<=v}},{key:"toString",value:function(){return"."}}])&&gn(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function fn(l){return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fn(l)}function co(l,r){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},co(l,r)}function xi(l){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xi(l)}var lo=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&co(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=xi(d);if(a){var u=xi(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(fn(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(m){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),p.call(this,m)}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(de);function Tr(l){return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tr(l)}function zr(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Tr(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Tr(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Tr(p)==="symbol"?p:String(p)),a)}var p}function Io(l,r,d){return r&&zr(l.prototype,r),d&&zr(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}function Wi(l){return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wi(l)}function Pr(l,r){return Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Pr(l,r)}function fi(l){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fi(l)}function Po(l){return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Po(l)}function _t(l,r){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},_t(l,r)}function or(l){return or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},or(l)}var w=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&_t(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=or(d);if(a){var u=or(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Po(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(){return function(m,o){if(!(m instanceof o))throw new TypeError("Cannot call a class as a function")}(this,c),p.apply(this,arguments)}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Pr(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=fi(d);if(a){var u=fi(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Wi(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(){return function(m,o){if(!(m instanceof o))throw new TypeError("Cannot call a class as a function")}(this,c),p.apply(this,arguments)}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(Io(function l(){(function(r,d){if(!(r instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l)})));function $(l){return $=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$(l)}function W(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if($(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if($(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),$(p)==="symbol"?p:String(p)),a)}var p}function Z(l,r){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Z(l,r)}function ie(l){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ie(l)}var Fe=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Z(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=ie(a);if(p){var v=ie(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&($(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.apply(this,arguments)}return r=m,(d=[{key:"ruleContext",get:function(){throw new Error("missing interface implementation")}}])&&W(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(w);function Pe(l){return Pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(l)}function rt(l,r){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},rt(l,r)}function Ht(l){return Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ht(l)}var on=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&rt(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Ht(d);if(a){var u=Ht(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Pe(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(){return function(m,o){if(!(m instanceof o))throw new TypeError("Cannot call a class as a function")}(this,c),p.apply(this,arguments)}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(w);function bn(l){return bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bn(l)}function Fr(l,r){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Fr(l,r)}function Bt(l){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bt(l)}var Wr=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Fr(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Bt(d);if(a){var u=Bt(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(bn(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(){return function(m,o){if(!(m instanceof o))throw new TypeError("Cannot call a class as a function")}(this,c),p.apply(this,arguments)}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(on),Ar={toStringTree:function(l,r,d){r=r||null,(d=d||null)!==null&&(r=d.ruleNames);var a=Ar.getNodeText(l,r);a=function(o,u){return o=o.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r")}(a);var p=l.getChildCount();if(p===0)return a;var c="("+a+" ";p>0&&(a=Ar.toStringTree(l.getChild(0),r),c=c.concat(a));for(var m=1;m<p;m++)a=Ar.toStringTree(l.getChild(m),r),c=c.concat(" "+a);return c.concat(")")},getNodeText:function(l,r,d){if(r=r||null,(d=d||null)!==null&&(r=d.ruleNames),r!==null){if(l instanceof Fe){var a=l.ruleContext.getAltNumber();return a!=0?r[l.ruleIndex]+":"+a:r[l.ruleIndex]}if(l instanceof Wr)return l.toString();if(l instanceof on&&l.symbol!==null)return l.symbol.text}var p=l.getPayload();return p instanceof n?p.text:l.getPayload().toString()},getChildren:function(l){for(var r=[],d=0;d<l.getChildCount();d++)r.push(l.getChild(d));return r},getAncestors:function(l){var r=[];for(l=l.getParent();l!==null;)r=[l].concat(r),l=l.getParent();return r},findAllTokenNodes:function(l,r){return Ar.findAllNodes(l,r,!0)},findAllRuleNodes:function(l,r){return Ar.findAllNodes(l,r,!1)},findAllNodes:function(l,r,d){var a=[];return Ar._findAllNodes(l,r,d,a),a},_findAllNodes:function(l,r,d,a){d&&l instanceof on?l.symbol.type===r&&a.push(l):!d&&l instanceof Fe&&l.ruleIndex===r&&a.push(l);for(var p=0;p<l.getChildCount();p++)Ar._findAllNodes(l.getChild(p),r,d,a)},descendants:function(l){for(var r=[l],d=0;d<l.getChildCount();d++)r=r.concat(Ar.descendants(l.getChild(d)));return r}};const Ku=Ar;function Xi(l){return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xi(l)}function hf(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Xi(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Xi(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Xi(p)==="symbol"?p:String(p)),a)}var p}function Fo(l,r){return Fo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Fo(l,r)}function sa(l){return sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sa(l)}var qi=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Fo(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=sa(a);if(p){var v=sa(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Xi(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this)).parentCtx=o||null,v.invokingState=u||-1,v}return r=m,(d=[{key:"depth",value:function(){for(var o=0,u=this;u!==null;)u=u.parentCtx,o+=1;return o}},{key:"isEmpty",value:function(){return this.invokingState===-1}},{key:"getSourceInterval",value:function(){return ge.INVALID_INTERVAL}},{key:"ruleContext",get:function(){return this}},{key:"getPayload",value:function(){return this}},{key:"getText",value:function(){return this.getChildCount()===0?"":this.children.map(function(o){return o.getText()}).join("")}},{key:"getAltNumber",value:function(){return 0}},{key:"setAltNumber",value:function(o){}},{key:"getChild",value:function(o){return null}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitChildren(this)}},{key:"toStringTree",value:function(o,u){return Ku.toStringTree(this,o,u)}},{key:"toString",value:function(o,u){o=o||null,u=u||null;for(var v=this,x="[";v!==null&&v!==u;){if(o===null)v.isEmpty()||(x+=v.invokingState);else{var S=v.ruleIndex;x+=S>=0&&S<o.length?o[S]:""+S}v.parentCtx===null||o===null&&v.parentCtx.isEmpty()||(x+=" "),v=v.parentCtx}return x+"]"}}])&&hf(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Fe);function Lo(l){return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lo(l)}function ua(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Lo(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Lo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Lo(p)==="symbol"?p:String(p)),a)}var p}var it=function(){function l(a){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.cachedHashCode=a}var r,d;return r=l,(d=[{key:"isEmpty",value:function(){return this===l.EMPTY}},{key:"hasEmptyPath",value:function(){return this.getReturnState(this.length-1)===l.EMPTY_RETURN_STATE}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(a){a.update(this.cachedHashCode)}}])&&ua(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function j(l){return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},j(l)}function H(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(j(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(j(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),j(p)==="symbol"?p:String(p)),a)}var p}function q(l,r){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},q(l,r)}function ue(l,r){if(r&&(j(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ve(l)}function ve(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function be(l){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},be(l)}it.EMPTY=null,it.EMPTY_RETURN_STATE=2147483647,it.globalNodeCount=1,it.id=it.globalNodeCount,it.trace_atn_sim=!1;var Se=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&q(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=be(a);if(p){var v=be(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return ue(this,o)});function m(o,u){var v;(function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")})(this,m);var x=new T;x.update(o,u);var S=x.finish();return(v=c.call(this,S)).parents=o,v.returnStates=u,ue(v,ve(v))}return r=m,(d=[{key:"isEmpty",value:function(){return this.returnStates[0]===it.EMPTY_RETURN_STATE}},{key:"getParent",value:function(o){return this.parents[o]}},{key:"getReturnState",value:function(o){return this.returnStates[o]}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.hashCode()===o.hashCode()&&i(this.returnStates,o.returnStates)&&i(this.parents,o.parents)}},{key:"toString",value:function(){if(this.isEmpty())return"[]";for(var o="[",u=0;u<this.returnStates.length;u++)u>0&&(o+=", "),this.returnStates[u]!==it.EMPTY_RETURN_STATE?(o+=this.returnStates[u],this.parents[u]!==null?o=o+" "+this.parents[u]:o+="null"):o+="$";return o+"]"}},{key:"length",get:function(){return this.returnStates.length}}])&&H(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(it);function Ke(l){return Ke=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ke(l)}function Le(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ke(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ke(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ke(p)==="symbol"?p:String(p)),a)}var p}function ot(l,r){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},ot(l,r)}function Ut(l){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ut(l)}var ct=function(l){(function(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),v&&ot(u,v)})(o,l);var r,d,a,p,c,m=(p=o,c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var u,v=Ut(p);if(c){var x=Ut(this).constructor;u=Reflect.construct(v,arguments,x)}else u=v.apply(this,arguments);return function(S,N){if(N&&(Ke(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee}(S)}(this,u)});function o(u,v){var x;(function(ee,Re){if(!(ee instanceof Re))throw new TypeError("Cannot call a class as a function")})(this,o);var S,N=new T;return u!==null?N.update(u,v):N.update(1),S=N.finish(),(x=m.call(this,S)).parentCtx=u,x.returnState=v,x}return r=o,a=[{key:"create",value:function(u,v){return v===it.EMPTY_RETURN_STATE&&u===null?it.EMPTY:new o(u,v)}}],(d=[{key:"getParent",value:function(u){return this.parentCtx}},{key:"getReturnState",value:function(u){return this.returnState}},{key:"equals",value:function(u){return this===u||u instanceof o&&this.hashCode()===u.hashCode()&&this.returnState===u.returnState&&(this.parentCtx==null?u.parentCtx==null:this.parentCtx.equals(u.parentCtx))}},{key:"toString",value:function(){var u=this.parentCtx===null?"":this.parentCtx.toString();return u.length===0?this.returnState===it.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+u}},{key:"length",get:function(){return 1}}])&&Le(r.prototype,d),a&&Le(r,a),Object.defineProperty(r,"prototype",{writable:!1}),o}(it);function Gt(l){return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gt(l)}function An(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Gt(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Gt(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Gt(p)==="symbol"?p:String(p)),a)}var p}function Hn(l,r){return Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Hn(l,r)}function Yn(l){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(l)}var Lr=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Hn(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Yn(a);if(p){var v=Yn(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Gt(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this,null,it.EMPTY_RETURN_STATE)}return r=m,(d=[{key:"isEmpty",value:function(){return!0}},{key:"getParent",value:function(o){return null}},{key:"getReturnState",value:function(o){return this.returnState}},{key:"equals",value:function(o){return this===o}},{key:"toString",value:function(){return"$"}}])&&An(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(ct);function Xr(l){return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xr(l)}function Ts(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Xr(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Xr(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Xr(p)==="symbol"?p:String(p)),a)}var p}it.EMPTY=new Lr;var Jn="h-",Yi=function(){function l(a,p){(function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l),this.data={},this.hashFunction=a||O,this.equalsFunction=p||A}var r,d;return r=l,(d=[{key:"set",value:function(a,p){var c=Jn+this.hashFunction(a);if(c in this.data){for(var m=this.data[c],o=0;o<m.length;o++){var u=m[o];if(this.equalsFunction(a,u.key)){var v=u.value;return u.value=p,v}}return m.push({key:a,value:p}),p}return this.data[c]=[{key:a,value:p}],p}},{key:"containsKey",value:function(a){var p=Jn+this.hashFunction(a);if(p in this.data)for(var c=this.data[p],m=0;m<c.length;m++){var o=c[m];if(this.equalsFunction(a,o.key))return!0}return!1}},{key:"get",value:function(a){var p=Jn+this.hashFunction(a);if(p in this.data)for(var c=this.data[p],m=0;m<c.length;m++){var o=c[m];if(this.equalsFunction(a,o.key))return o.value}return null}},{key:"entries",value:function(){var a=this;return Object.keys(this.data).filter(function(p){return p.startsWith(Jn)}).flatMap(function(p){return a.data[p]},this)}},{key:"getKeys",value:function(){return this.entries().map(function(a){return a.key})}},{key:"getValues",value:function(){return this.entries().map(function(a){return a.value})}},{key:"toString",value:function(){return"["+this.entries().map(function(a){return"{"+a.key+":"+a.value+"}"}).join(", ")+"]"}},{key:"length",get:function(){var a=this;return Object.keys(this.data).filter(function(p){return p.startsWith(Jn)}).map(function(p){return a.data[p].length},this).reduce(function(p,c){return p+c},0)}}])&&Ts(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function ca(l,r){if(r==null&&(r=qi.EMPTY),r.parentCtx===null||r===qi.EMPTY)return it.EMPTY;var d=ca(l,r.parentCtx),a=l.states[r.invokingState].transitions[0];return ct.create(d,a.followState.stateNumber)}function zu(l,r,d){if(l.isEmpty())return l;var a=d.get(l)||null;if(a!==null)return a;if((a=r.get(l))!==null)return d.set(l,a),a;for(var p=!1,c=[],m=0;m<c.length;m++){var o=zu(l.getParent(m),r,d);if(p||o!==l.getParent(m)){if(!p){c=[];for(var u=0;u<l.length;u++)c[u]=l.getParent(u);p=!0}c[m]=o}}if(!p)return r.add(l),d.set(l,l),l;var v;return v=c.length===0?it.EMPTY:c.length===1?ct.create(c[0],l.getReturnState(0)):new Se(c,l.returnStates),r.add(v),d.set(v,v),d.set(l,v),v}function la(l,r,d,a){if(l===r)return l;if(l instanceof ct&&r instanceof ct)return function(p,c,m,o){if(o!==null){var u=o.get(p,c);if(u!==null||(u=o.get(c,p))!==null)return u}var v=function(ze,mn,hn){if(hn){if(ze===it.EMPTY||mn===it.EMPTY)return it.EMPTY}else{if(ze===it.EMPTY&&mn===it.EMPTY)return it.EMPTY;if(ze===it.EMPTY){var Kn=[mn.returnState,it.EMPTY_RETURN_STATE],Ur=[mn.parentCtx,null];return new Se(Ur,Kn)}if(mn===it.EMPTY){var ki=[ze.returnState,it.EMPTY_RETURN_STATE],Ri=[ze.parentCtx,null];return new Se(Ri,ki)}}return null}(p,c,m);if(v!==null)return o!==null&&o.set(p,c,v),v;if(p.returnState===c.returnState){var x=la(p.parentCtx,c.parentCtx,m,o);if(x===p.parentCtx)return p;if(x===c.parentCtx)return c;var S=ct.create(x,p.returnState);return o!==null&&o.set(p,c,S),S}var N=null;if((p===c||p.parentCtx!==null&&p.parentCtx===c.parentCtx)&&(N=p.parentCtx),N!==null){var ee=[p.returnState,c.returnState];p.returnState>c.returnState&&(ee[0]=c.returnState,ee[1]=p.returnState);var Re=new Se([N,N],ee);return o!==null&&o.set(p,c,Re),Re}var Ce=[p.returnState,c.returnState],He=[p.parentCtx,c.parentCtx];p.returnState>c.returnState&&(Ce[0]=c.returnState,Ce[1]=p.returnState,He=[c.parentCtx,p.parentCtx]);var at=new Se(He,Ce);return o!==null&&o.set(p,c,at),at}(l,r,d,a);if(d){if(l instanceof Lr)return l;if(r instanceof Lr)return r}return l instanceof ct&&(l=new Se([l.getParent()],[l.returnState])),r instanceof ct&&(r=new Se([r.getParent()],[r.returnState])),function(p,c,m,o){if(o!==null){var u=o.get(p,c);if(u!==null||(u=o.get(c,p))!==null)return it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+c+" -> previous"),u}for(var v=0,x=0,S=0,N=new Array(p.returnStates.length+c.returnStates.length).fill(0),ee=new Array(p.returnStates.length+c.returnStates.length).fill(null);v<p.returnStates.length&&x<c.returnStates.length;){var Re=p.parents[v],Ce=c.parents[x];if(p.returnStates[v]===c.returnStates[x]){var He=p.returnStates[v];He===it.EMPTY_RETURN_STATE&&Re===null&&Ce===null||Re!==null&&Ce!==null&&Re===Ce?(ee[S]=Re,N[S]=He):(ee[S]=la(Re,Ce,m,o),N[S]=He),v+=1,x+=1}else p.returnStates[v]<c.returnStates[x]?(ee[S]=Re,N[S]=p.returnStates[v],v+=1):(ee[S]=Ce,N[S]=c.returnStates[x],x+=1);S+=1}if(v<p.returnStates.length)for(var at=v;at<p.returnStates.length;at++)ee[S]=p.parents[at],N[S]=p.returnStates[at],S+=1;else for(var ze=x;ze<c.returnStates.length;ze++)ee[S]=c.parents[ze],N[S]=c.returnStates[ze],S+=1;if(S<ee.length){if(S===1){var mn=ct.create(ee[0],N[0]);return o!==null&&o.set(p,c,mn),mn}ee=ee.slice(0,S),N=N.slice(0,S)}var hn=new Se(ee,N);return hn.equals(p)?(o!==null&&o.set(p,c,p),it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+c+" -> a"),p):hn.equals(c)?(o!==null&&o.set(p,c,c),it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+c+" -> b"),c):(function(Kn){for(var Ur=new Yi,ki=0;ki<Kn.length;ki++){var Ri=Kn[ki];Ur.containsKey(Ri)||Ur.set(Ri,Ri)}for(var xr=0;xr<Kn.length;xr++)Kn[xr]=Ur.get(Kn[xr])}(ee),o!==null&&o.set(p,c,hn),it.trace_atn_sim&&console.log("mergeArrays a="+p+",b="+c+" -> "+hn),hn)}(l,r,d,a)}function Ji(l){return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ji(l)}function Zi(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ji(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ji(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ji(p)==="symbol"?p:String(p)),a)}var p}var Mr=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),this.data=[]}var r,d;return r=l,(d=[{key:"add",value:function(a){this.data[a]=!0}},{key:"or",value:function(a){var p=this;Object.keys(a.data).map(function(c){return p.add(c)},this)}},{key:"remove",value:function(a){delete this.data[a]}},{key:"has",value:function(a){return this.data[a]===!0}},{key:"values",value:function(){return Object.keys(this.data)}},{key:"minValue",value:function(){return Math.min.apply(null,this.values())}},{key:"hashCode",value:function(){return T.hashStuff(this.values())}},{key:"equals",value:function(a){return a instanceof l&&i(this.data,a.data)}},{key:"toString",value:function(){return"{"+this.values().join(", ")+"}"}},{key:"length",get:function(){return this.values().length}}])&&Zi(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function fo(l){return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},fo(l)}function Wu(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(fo(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(fo(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),fo(p)==="symbol"?p:String(p)),a)}var p}var Mo=function(){function l(a){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.atn=a}var r,d;return r=l,(d=[{key:"getDecisionLookahead",value:function(a){if(a===null)return null;for(var p=a.transitions.length,c=[],m=0;m<p;m++){c[m]=new re;var o=new g;this._LOOK(a.transition(m).target,null,it.EMPTY,c[m],o,new Mr,!1,!1),(c[m].length===0||c[m].contains(l.HIT_PRED))&&(c[m]=null)}return c}},{key:"LOOK",value:function(a,p,c){var m=new re,o=(c=c||null)!==null?ca(a.atn,c):null;return this._LOOK(a,p,o,m,new g,new Mr,!0,!0),m}},{key:"_LOOK",value:function(a,p,c,m,o,u,v,x){var S=new le({state:a,alt:0,context:c},null);if(!o.has(S)){if(o.add(S),a===p){if(c===null)return void m.addOne(n.EPSILON);if(c.isEmpty()&&x)return void m.addOne(n.EOF)}if(a instanceof Ct){if(c===null)return void m.addOne(n.EPSILON);if(c.isEmpty()&&x)return void m.addOne(n.EOF);if(c!==it.EMPTY){var N=u.has(a.ruleIndex);try{u.remove(a.ruleIndex);for(var ee=0;ee<c.length;ee++){var Re=this.atn.states[c.getReturnState(ee)];this._LOOK(Re,p,c.getParent(ee),m,o,u,v,x)}}finally{N&&u.add(a.ruleIndex)}return}}for(var Ce=0;Ce<a.transitions.length;Ce++){var He=a.transitions[Ce];if(He.constructor===Zt){if(u.has(He.target.ruleIndex))continue;var at=ct.create(c,He.followState.stateNumber);try{u.add(He.target.ruleIndex),this._LOOK(He.target,p,at,m,o,u,v,x)}finally{u.remove(He.target.ruleIndex)}}else if(He instanceof lo)v?this._LOOK(He.target,p,c,m,o,u,v,x):m.addOne(l.HIT_PRED);else if(He.isEpsilon)this._LOOK(He.target,p,c,m,o,u,v,x);else if(He.constructor===Fn)m.addRange(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{var ze=He.label;ze!==null&&(He instanceof rn&&(ze=ze.complement(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),m.addSet(ze))}}}}}])&&Wu(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function As(l){return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},As(l)}function gg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(As(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(As(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),As(p)==="symbol"?p:String(p)),a)}var p}Mo.HIT_PRED=n.INVALID_TYPE;var dn=function(){function l(a,p){(function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l),this.grammarType=a,this.maxTokenType=p,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}var r,d;return r=l,(d=[{key:"nextTokensInContext",value:function(a,p){return new Mo(this).LOOK(a,null,p)}},{key:"nextTokensNoContext",value:function(a){return a.nextTokenWithinRule!==null||(a.nextTokenWithinRule=this.nextTokensInContext(a,null),a.nextTokenWithinRule.readOnly=!0),a.nextTokenWithinRule}},{key:"nextTokens",value:function(a,p){return p===void 0?this.nextTokensNoContext(a):this.nextTokensInContext(a,p)}},{key:"addState",value:function(a){a!==null&&(a.atn=this,a.stateNumber=this.states.length),this.states.push(a)}},{key:"removeState",value:function(a){this.states[a.stateNumber]=null}},{key:"defineDecisionState",value:function(a){return this.decisionToState.push(a),a.decision=this.decisionToState.length-1,a.decision}},{key:"getDecisionState",value:function(a){return this.decisionToState.length===0?null:this.decisionToState[a]}},{key:"getExpectedTokens",value:function(a,p){if(a<0||a>=this.states.length)throw"Invalid state number.";var c=this.states[a],m=this.nextTokens(c);if(!m.contains(n.EPSILON))return m;var o=new re;for(o.addSet(m),o.removeOne(n.EPSILON);p!==null&&p.invokingState>=0&&m.contains(n.EPSILON);){var u=this.states[p.invokingState].transitions[0];m=this.nextTokens(u.followState),o.addSet(m),o.removeOne(n.EPSILON),p=p.parentCtx}return m.contains(n.EPSILON)&&o.addOne(n.EOF),o}}])&&gg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();dn.INVALID_ALT_NUMBER=0;function pf(l){return pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},pf(l)}function df(l,r){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},df(l,r)}function Xu(l){return Xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xu(l)}var Nd=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&df(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Xu(d);if(a){var u=Xu(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(pf(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.BASIC,m}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function mf(l){return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mf(l)}function _f(l,r){return _f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},_f(l,r)}function Id(l,r){if(r&&(mf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pd(l)}function Pd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function qu(l){return qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qu(l)}var fa=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&_f(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=qu(d);if(a){var u=qu(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Id(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).decision=-1,m.nonGreedy=!1,Id(m,Pd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function yf(l){return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},yf(l)}function gf(l,r){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},gf(l,r)}function Fd(l,r){if(r&&(yf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ld(l)}function Ld(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Yu(l){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yu(l)}var ha=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&gf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Yu(d);if(a){var u=Yu(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Fd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).endState=null,Fd(m,Ld(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(fa);function bf(l){return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bf(l)}function vf(l,r){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},vf(l,r)}function Md(l,r){if(r&&(bf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bd(l)}function Bd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Ju(l){return Ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ju(l)}var Ef=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&vf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Ju(d);if(a){var u=Ju(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Md(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.BLOCK_END,m.startState=null,Md(m,Bd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function Sf(l){return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Sf(l)}function Tf(l,r){return Tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Tf(l,r)}function Ud(l,r){if(r&&(Sf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vd(l)}function Vd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Zu(l){return Zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zu(l)}var pa=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Tf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Zu(d);if(a){var u=Zu(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Ud(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.LOOP_END,m.loopBackState=null,Ud(m,Vd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function Af(l){return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Af(l)}function xf(l,r){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},xf(l,r)}function jd(l,r){if(r&&(Af(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $d(l)}function $d(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Qu(l){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qu(l)}var Hd=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&xf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Qu(d);if(a){var u=Qu(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return jd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.RULE_START,m.stopState=null,m.isPrecedenceRule=!1,jd(m,$d(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function Of(l){return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Of(l)}function Cf(l,r){return Cf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Cf(l,r)}function Gd(l,r){if(r&&(Of(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kd(l)}function Kd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function ec(l){return ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ec(l)}var bg=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Cf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=ec(d);if(a){var u=ec(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Gd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.TOKEN_START,Gd(m,Kd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(fa);function Df(l){return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Df(l)}function kf(l,r){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},kf(l,r)}function zd(l,r){if(r&&(Df(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wd(l)}function Wd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tc(l){return tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tc(l)}var Xd=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&kf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=tc(d);if(a){var u=tc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return zd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.PLUS_LOOP_BACK,zd(m,Wd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(fa);function Rf(l){return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rf(l)}function wf(l,r){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},wf(l,r)}function qd(l,r){if(r&&(Rf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yd(l)}function Yd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function nc(l){return nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},nc(l)}var Nf=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&wf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=nc(d);if(a){var u=nc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return qd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.STAR_LOOP_BACK,qd(m,Yd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ye);function If(l){return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},If(l)}function Pf(l,r){return Pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Pf(l,r)}function Jd(l,r){if(r&&(If(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zd(l)}function Zd(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function rc(l){return rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rc(l)}var Bo=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Pf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=rc(d);if(a){var u=rc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Jd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.STAR_LOOP_ENTRY,m.loopBackState=null,m.isPrecedenceDecision=null,Jd(m,Zd(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(fa);function Ff(l){return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ff(l)}function Lf(l,r){return Lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Lf(l,r)}function Qd(l,r){if(r&&(Ff(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return em(l)}function em(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function ic(l){return ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ic(l)}var Mf=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Lf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=ic(d);if(a){var u=ic(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return Qd(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.PLUS_BLOCK_START,m.loopBackState=null,Qd(m,em(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ha);function Bf(l){return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bf(l)}function Uf(l,r){return Uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Uf(l,r)}function tm(l,r){if(r&&(Bf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nm(l)}function nm(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function oc(l){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oc(l)}var Vf=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Uf(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=oc(d);if(a){var u=oc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return tm(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.STAR_BLOCK_START,tm(m,nm(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ha);function jf(l){return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},jf(l)}function $f(l,r){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},$f(l,r)}function rm(l,r){if(r&&(jf(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return im(l)}function im(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function ac(l){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ac(l)}var om=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&$f(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=ac(d);if(a){var u=ac(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return rm(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).stateType=ye.BLOCK_START,rm(m,im(m))}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(ha);function da(l){return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},da(l)}function vg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(da(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(da(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),da(p)==="symbol"?p:String(p)),a)}var p}function Hf(l,r){return Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Hf(l,r)}function sc(l){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sc(l)}var Gf=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Hf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=sc(a);if(p){var v=sc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(da(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o)).label_=u,v.label=v.makeLabel(),v.serializationType=de.ATOM,v}return r=m,(d=[{key:"makeLabel",value:function(){var o=new re;return o.addOne(this.label_),o}},{key:"matches",value:function(o,u,v){return this.label_===o}},{key:"toString",value:function(){return this.label_}}])&&vg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function ma(l){return ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ma(l)}function Eg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ma(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ma(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ma(p)==="symbol"?p:String(p)),a)}var p}function Kf(l,r){return Kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Kf(l,r)}function uc(l){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uc(l)}var Sg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Kf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=uc(a);if(p){var v=uc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(ma(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v){var x;return function(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")}(this,m),(x=c.call(this,o)).serializationType=de.RANGE,x.start=u,x.stop=v,x.label=x.makeLabel(),x}return r=m,(d=[{key:"makeLabel",value:function(){var o=new re;return o.addRange(this.start,this.stop),o}},{key:"matches",value:function(o,u,v){return o>=this.start&&o<=this.stop}},{key:"toString",value:function(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}])&&Eg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function _a(l){return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_a(l)}function Tg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(_a(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(_a(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),_a(p)==="symbol"?p:String(p)),a)}var p}function zf(l,r){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},zf(l,r)}function cc(l){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cc(l)}var am=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&zf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=cc(a);if(p){var v=cc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(_a(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v,x){var S;return function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,m),(S=c.call(this,o)).serializationType=de.ACTION,S.ruleIndex=u,S.actionIndex=v===void 0?-1:v,S.isCtxDependent=x!==void 0&&x,S.isEpsilon=!0,S}return r=m,(d=[{key:"matches",value:function(o,u,v){return!1}},{key:"toString",value:function(){return"action_"+this.ruleIndex+":"+this.actionIndex}}])&&Tg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function ya(l){return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ya(l)}function Ag(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ya(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ya(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ya(p)==="symbol"?p:String(p)),a)}var p}function Wf(l,r){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Wf(l,r)}function lc(l){return lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lc(l)}var xs=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Wf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=lc(a);if(p){var v=lc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(ya(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o)).serializationType=de.EPSILON,v.isEpsilon=!0,v.outermostPrecedenceReturn=u,v}return r=m,(d=[{key:"matches",value:function(o,u,v){return!1}},{key:"toString",value:function(){return"epsilon"}}])&&Ag(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(de);function ga(l){return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ga(l)}function xg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ga(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ga(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ga(p)==="symbol"?p:String(p)),a)}var p}function Xf(l,r){return Xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Xf(l,r)}function fc(l){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(l)}var sm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Xf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=fc(a);if(p){var v=fc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(ga(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v){var x;return function(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")}(this,m),(x=c.call(this)).ruleIndex=o===void 0?-1:o,x.predIndex=u===void 0?-1:u,x.isCtxDependent=v!==void 0&&v,x}return r=m,(d=[{key:"evaluate",value:function(o,u){var v=this.isCtxDependent?u:null;return o.sempred(v,this.ruleIndex,this.predIndex)}},{key:"updateHashCode",value:function(o){o.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.ruleIndex===o.ruleIndex&&this.predIndex===o.predIndex&&this.isCtxDependent===o.isCtxDependent}},{key:"toString",value:function(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}])&&xg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(K);function ba(l){return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ba(l)}function Og(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ba(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ba(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ba(p)==="symbol"?p:String(p)),a)}var p}function qf(l,r){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},qf(l,r)}function hc(l){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hc(l)}K.NONE=new sm;var um=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&qf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=hc(a);if(p){var v=hc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(ba(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v,x){var S;return function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,m),(S=c.call(this,o)).serializationType=de.PREDICATE,S.ruleIndex=u,S.predIndex=v,S.isCtxDependent=x,S.isEpsilon=!0,S}return r=m,(d=[{key:"matches",value:function(o,u,v){return!1}},{key:"getPredicate",value:function(){return new sm(this.ruleIndex,this.predIndex,this.isCtxDependent)}},{key:"toString",value:function(){return"pred_"+this.ruleIndex+":"+this.predIndex}}])&&Og(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(lo);function va(l){return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},va(l)}function Cg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(va(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(va(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),va(p)==="symbol"?p:String(p)),a)}var p}function Yf(l,r){return Yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Yf(l,r)}function pc(l){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(l)}var cm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Yf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=pc(a);if(p){var v=pc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(va(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this)).precedence=o===void 0?0:o,u}return r=m,(d=[{key:"evaluate",value:function(o,u){return o.precpred(u,this.precedence)}},{key:"evalPrecedence",value:function(o,u){return o.precpred(u,this.precedence)?K.NONE:null}},{key:"compareTo",value:function(o){return this.precedence-o.precedence}},{key:"updateHashCode",value:function(o){o.update(this.precedence)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.precedence===o.precedence}},{key:"toString",value:function(){return"{"+this.precedence+">=prec}?"}}])&&Cg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(K);function Ea(l){return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ea(l)}function Dg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ea(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ea(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ea(p)==="symbol"?p:String(p)),a)}var p}function Jf(l,r){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Jf(l,r)}function dc(l){return dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dc(l)}K.PrecedencePredicate=cm;var kg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Jf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=dc(a);if(p){var v=dc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ea(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o)).serializationType=de.PRECEDENCE,v.precedence=u,v.isEpsilon=!0,v}return r=m,(d=[{key:"matches",value:function(o,u,v){return!1}},{key:"getPredicate",value:function(){return new cm(this.precedence)}},{key:"toString",value:function(){return this.precedence+" >= _p"}}])&&Dg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(lo);function Os(l){return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Os(l)}function lm(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Os(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Os(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Os(p)==="symbol"?p:String(p)),a)}var p}function Rg(l,r,d){return r&&lm(l.prototype,r),d&&lm(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}var Cs=Rg(function l(r){(function(d,a){if(!(d instanceof a))throw new TypeError("Cannot call a class as a function")})(this,l),r===void 0&&(r=null),this.readOnly=!1,this.verifyATN=r===null||r.verifyATN,this.generateRuleBypassTransitions=r!==null&&r.generateRuleBypassTransitions});Cs.defaultOptions=new Cs,Cs.defaultOptions.readOnly=!0;function Ds(l){return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ds(l)}function wg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ds(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ds(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ds(p)==="symbol"?p:String(p)),a)}var p}var Qi=function(){function l(a){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.actionType=a,this.isPositionDependent=!1}var r,d;return r=l,(d=[{key:"hashCode",value:function(){var a=new T;return this.updateHashCode(a),a.finish()}},{key:"updateHashCode",value:function(a){a.update(this.actionType)}},{key:"equals",value:function(a){return this===a}}])&&wg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Sa(l){return Sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Sa(l)}function Ng(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Sa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Sa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Sa(p)==="symbol"?p:String(p)),a)}var p}function Zf(l,r){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Zf(l,r)}function mc(l){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(l)}var Qf=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Zf(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=mc(a);if(p){var v=mc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Sa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this,6)}return r=m,(d=[{key:"execute",value:function(o){o.skip()}},{key:"toString",value:function(){return"skip"}}])&&Ng(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function Ta(l){return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ta(l)}function Ig(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ta(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ta(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ta(p)==="symbol"?p:String(p)),a)}var p}function eh(l,r){return eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},eh(l,r)}function _c(l){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(l)}Qf.INSTANCE=new Qf;var Pg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&eh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=_c(a);if(p){var v=_c(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ta(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this,0)).channel=o,u}return r=m,(d=[{key:"execute",value:function(o){o._channel=this.channel}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.channel)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.channel===o.channel}},{key:"toString",value:function(){return"channel("+this.channel+")"}}])&&Ig(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function Aa(l){return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Aa(l)}function Fg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Aa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Aa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Aa(p)==="symbol"?p:String(p)),a)}var p}function th(l,r){return th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},th(l,r)}function yc(l){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(l)}var Lg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&th(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=yc(a);if(p){var v=yc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Aa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,1)).ruleIndex=o,v.actionIndex=u,v.isPositionDependent=!0,v}return r=m,(d=[{key:"execute",value:function(o){o.action(null,this.ruleIndex,this.actionIndex)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.ruleIndex,this.actionIndex)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.ruleIndex===o.ruleIndex&&this.actionIndex===o.actionIndex}}])&&Fg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function xa(l){return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xa(l)}function Mg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(xa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),xa(p)==="symbol"?p:String(p)),a)}var p}function nh(l,r){return nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},nh(l,r)}function gc(l){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(l)}var rh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&nh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=gc(a);if(p){var v=gc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(xa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this,3)}return r=m,(d=[{key:"execute",value:function(o){o.more()}},{key:"toString",value:function(){return"more"}}])&&Mg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function Oa(l){return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Oa(l)}function Bg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Oa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Oa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Oa(p)==="symbol"?p:String(p)),a)}var p}function ih(l,r){return ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},ih(l,r)}function bc(l){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(l)}rh.INSTANCE=new rh;var Ug=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ih(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=bc(a);if(p){var v=bc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Oa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this,7)).type=o,u}return r=m,(d=[{key:"execute",value:function(o){o.type=this.type}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.type)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.type===o.type}},{key:"toString",value:function(){return"type("+this.type+")"}}])&&Bg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function Ca(l){return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ca(l)}function Vg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ca(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ca(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ca(p)==="symbol"?p:String(p)),a)}var p}function oh(l,r){return oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},oh(l,r)}function vc(l){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(l)}var jg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&oh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=vc(a);if(p){var v=vc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ca(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this,5)).mode=o,u}return r=m,(d=[{key:"execute",value:function(o){o.pushMode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.mode===o.mode}},{key:"toString",value:function(){return"pushMode("+this.mode+")"}}])&&Vg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function Da(l){return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Da(l)}function $g(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Da(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Da(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Da(p)==="symbol"?p:String(p)),a)}var p}function ah(l,r){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},ah(l,r)}function Ec(l){return Ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ec(l)}var sh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ah(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ec(a);if(p){var v=Ec(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Da(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this,4)}return r=m,(d=[{key:"execute",value:function(o){o.popMode()}},{key:"toString",value:function(){return"popMode"}}])&&$g(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function ka(l){return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ka(l)}function Hg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ka(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ka(p)==="symbol"?p:String(p)),a)}var p}function uh(l,r){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},uh(l,r)}function Sc(l){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(l)}sh.INSTANCE=new sh;var Gg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&uh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Sc(a);if(p){var v=Sc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(ka(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this,2)).mode=o,u}return r=m,(d=[{key:"execute",value:function(o){o.mode(this.mode)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.mode)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.mode===o.mode}},{key:"toString",value:function(){return"mode("+this.mode+")"}}])&&Hg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function ks(l){return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ks(l)}function Kg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(ks(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(ks(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),ks(p)==="symbol"?p:String(p)),a)}var p}function Tc(l,r){var d=[];return d[l-1]=r,d.map(function(a){return r})}var ch=function(){function l(a){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),a==null&&(a=Cs.defaultOptions),this.deserializationOptions=a,this.stateFactories=null,this.actionFactories=null}var r,d;return r=l,d=[{key:"deserialize",value:function(a){var p=this.reset(a);this.checkVersion(p),p&&this.skipUUID();var c=this.readATN();this.readStates(c,p),this.readRules(c,p),this.readModes(c);var m=[];return this.readSets(c,m,this.readInt.bind(this)),p&&this.readSets(c,m,this.readInt32.bind(this)),this.readEdges(c,m),this.readDecisions(c),this.readLexerActions(c,p),this.markPrecedenceDecisions(c),this.verifyATN(c),this.deserializationOptions.generateRuleBypassTransitions&&c.grammarType===1&&(this.generateRuleBypassTransitions(c),this.verifyATN(c)),c}},{key:"reset",value:function(a){if((a.charCodeAt?a.charCodeAt(0):a[0])===3){var p=a.split("").map(function(c){var m=c.charCodeAt(0);return m>1?m-2:m+65534});return p[0]=a.charCodeAt(0),this.data=p,this.pos=0,!0}return this.data=a,this.pos=0,!1}},{key:"skipUUID",value:function(){for(var a=0;a++<8;)this.readInt()}},{key:"checkVersion",value:function(a){var p=this.readInt();if(!a&&p!==4)throw"Could not deserialize ATN with version "+p+" (expected 4)."}},{key:"readATN",value:function(){var a=this.readInt(),p=this.readInt();return new dn(a,p)}},{key:"readStates",value:function(a,p){for(var c,m,o,u=[],v=[],x=this.readInt(),S=0;S<x;S++){var N=this.readInt();if(N!==ye.INVALID_TYPE){var ee=this.readInt();p&&ee===65535&&(ee=-1);var Re=this.stateFactory(N,ee);if(N===ye.LOOP_END){var Ce=this.readInt();u.push([Re,Ce])}else if(Re instanceof ha){var He=this.readInt();v.push([Re,He])}a.addState(Re)}else a.addState(null)}for(c=0;c<u.length;c++)(m=u[c])[0].loopBackState=a.states[m[1]];for(c=0;c<v.length;c++)(m=v[c])[0].endState=a.states[m[1]];var at=this.readInt();for(c=0;c<at;c++)o=this.readInt(),a.states[o].nonGreedy=!0;var ze=this.readInt();for(c=0;c<ze;c++)o=this.readInt(),a.states[o].isPrecedenceRule=!0}},{key:"readRules",value:function(a,p){var c,m=this.readInt();for(a.grammarType===0&&(a.ruleToTokenType=Tc(m,0)),a.ruleToStartState=Tc(m,0),c=0;c<m;c++){var o=this.readInt();if(a.ruleToStartState[c]=a.states[o],a.grammarType===0){var u=this.readInt();p&&u===65535&&(u=n.EOF),a.ruleToTokenType[c]=u}}for(a.ruleToStopState=Tc(m,0),c=0;c<a.states.length;c++){var v=a.states[c];v instanceof Ct&&(a.ruleToStopState[v.ruleIndex]=v,a.ruleToStartState[v.ruleIndex].stopState=v)}}},{key:"readModes",value:function(a){for(var p=this.readInt(),c=0;c<p;c++){var m=this.readInt();a.modeToStartState.push(a.states[m])}}},{key:"readSets",value:function(a,p,c){for(var m=this.readInt(),o=0;o<m;o++){var u=new re;p.push(u);var v=this.readInt();this.readInt()!==0&&u.addOne(-1);for(var x=0;x<v;x++){var S=c(),N=c();u.addRange(S,N)}}}},{key:"readEdges",value:function(a,p){var c,m,o,u,v,x=this.readInt();for(c=0;c<x;c++){var S=this.readInt(),N=this.readInt(),ee=this.readInt(),Re=this.readInt(),Ce=this.readInt(),He=this.readInt();u=this.edgeFactory(a,ee,S,N,Re,Ce,He,p),a.states[S].addTransition(u)}for(c=0;c<a.states.length;c++)for(o=a.states[c],m=0;m<o.transitions.length;m++){var at=o.transitions[m];if(at instanceof Zt){var ze=-1;a.ruleToStartState[at.target.ruleIndex].isPrecedenceRule&&at.precedence===0&&(ze=at.target.ruleIndex),u=new xs(at.followState,ze),a.ruleToStopState[at.target.ruleIndex].addTransition(u)}}for(c=0;c<a.states.length;c++){if((o=a.states[c])instanceof ha){if(o.endState===null||o.endState.startState!==null)throw"IllegalState";o.endState.startState=o}if(o instanceof Xd)for(m=0;m<o.transitions.length;m++)(v=o.transitions[m].target)instanceof Mf&&(v.loopBackState=o);else if(o instanceof Nf)for(m=0;m<o.transitions.length;m++)(v=o.transitions[m].target)instanceof Bo&&(v.loopBackState=o)}}},{key:"readDecisions",value:function(a){for(var p=this.readInt(),c=0;c<p;c++){var m=this.readInt(),o=a.states[m];a.decisionToState.push(o),o.decision=c}}},{key:"readLexerActions",value:function(a,p){if(a.grammarType===0){var c=this.readInt();a.lexerActions=Tc(c,null);for(var m=0;m<c;m++){var o=this.readInt(),u=this.readInt();p&&u===65535&&(u=-1);var v=this.readInt();p&&v===65535&&(v=-1),a.lexerActions[m]=this.lexerActionFactory(o,u,v)}}}},{key:"generateRuleBypassTransitions",value:function(a){var p,c=a.ruleToStartState.length;for(p=0;p<c;p++)a.ruleToTokenType[p]=a.maxTokenType+p+1;for(p=0;p<c;p++)this.generateRuleBypassTransition(a,p)}},{key:"generateRuleBypassTransition",value:function(a,p){var c,m,o=new om;o.ruleIndex=p,a.addState(o);var u=new Ef;u.ruleIndex=p,a.addState(u),o.endState=u,a.defineDecisionState(o),u.startState=o;var v=null,x=null;if(a.ruleToStartState[p].isPrecedenceRule){for(x=null,c=0;c<a.states.length;c++)if(m=a.states[c],this.stateIsEndStateFor(m,p)){x=m,v=m.loopBackState.transitions[0];break}if(v===null)throw"Couldn't identify final state of the precedence rule prefix section."}else x=a.ruleToStopState[p];for(c=0;c<a.states.length;c++){m=a.states[c];for(var S=0;S<m.transitions.length;S++){var N=m.transitions[S];N!==v&&N.target===x&&(N.target=u)}}for(var ee=a.ruleToStartState[p],Re=ee.transitions.length;Re>0;)o.addTransition(ee.transitions[Re-1]),ee.transitions=ee.transitions.slice(-1);a.ruleToStartState[p].addTransition(new xs(o)),u.addTransition(new xs(x));var Ce=new Nd;a.addState(Ce),Ce.addTransition(new Gf(u,a.ruleToTokenType[p])),o.addTransition(new xs(Ce))}},{key:"stateIsEndStateFor",value:function(a,p){if(a.ruleIndex!==p||!(a instanceof Bo))return null;var c=a.transitions[a.transitions.length-1].target;return c instanceof pa&&c.epsilonOnlyTransitions&&c.transitions[0].target instanceof Ct?a:null}},{key:"markPrecedenceDecisions",value:function(a){for(var p=0;p<a.states.length;p++){var c=a.states[p];if(c instanceof Bo&&a.ruleToStartState[c.ruleIndex].isPrecedenceRule){var m=c.transitions[c.transitions.length-1].target;m instanceof pa&&m.epsilonOnlyTransitions&&m.transitions[0].target instanceof Ct&&(c.isPrecedenceDecision=!0)}}}},{key:"verifyATN",value:function(a){if(this.deserializationOptions.verifyATN)for(var p=0;p<a.states.length;p++){var c=a.states[p];if(c!==null)if(this.checkCondition(c.epsilonOnlyTransitions||c.transitions.length<=1),c instanceof Mf)this.checkCondition(c.loopBackState!==null);else if(c instanceof Bo)if(this.checkCondition(c.loopBackState!==null),this.checkCondition(c.transitions.length===2),c.transitions[0].target instanceof Vf)this.checkCondition(c.transitions[1].target instanceof pa),this.checkCondition(!c.nonGreedy);else{if(!(c.transitions[0].target instanceof pa))throw"IllegalState";this.checkCondition(c.transitions[1].target instanceof Vf),this.checkCondition(c.nonGreedy)}else c instanceof Nf?(this.checkCondition(c.transitions.length===1),this.checkCondition(c.transitions[0].target instanceof Bo)):c instanceof pa?this.checkCondition(c.loopBackState!==null):c instanceof Hd?this.checkCondition(c.stopState!==null):c instanceof ha?this.checkCondition(c.endState!==null):c instanceof Ef?this.checkCondition(c.startState!==null):c instanceof fa?this.checkCondition(c.transitions.length<=1||c.decision>=0):this.checkCondition(c.transitions.length<=1||c instanceof Ct)}}},{key:"checkCondition",value:function(a,p){if(!a)throw p==null&&(p="IllegalState"),p}},{key:"readInt",value:function(){return this.data[this.pos++]}},{key:"readInt32",value:function(){return this.readInt()|this.readInt()<<16}},{key:"edgeFactory",value:function(a,p,c,m,o,u,v,x){var S=a.states[m];switch(p){case de.EPSILON:return new xs(S);case de.RANGE:return new Sg(S,v!==0?n.EOF:o,u);case de.RULE:return new Zt(a.states[o],u,v,S);case de.PREDICATE:return new um(S,o,u,v!==0);case de.PRECEDENCE:return new kg(S,o);case de.ATOM:return new Gf(S,v!==0?n.EOF:o);case de.ACTION:return new am(S,o,u,v!==0);case de.SET:return new Ai(S,x[o]);case de.NOT_SET:return new rn(S,x[o]);case de.WILDCARD:return new Fn(S);default:throw"The specified transition type: "+p+" is not valid."}}},{key:"stateFactory",value:function(a,p){if(this.stateFactories===null){var c=[];c[ye.INVALID_TYPE]=null,c[ye.BASIC]=function(){return new Nd},c[ye.RULE_START]=function(){return new Hd},c[ye.BLOCK_START]=function(){return new om},c[ye.PLUS_BLOCK_START]=function(){return new Mf},c[ye.STAR_BLOCK_START]=function(){return new Vf},c[ye.TOKEN_START]=function(){return new bg},c[ye.RULE_STOP]=function(){return new Ct},c[ye.BLOCK_END]=function(){return new Ef},c[ye.STAR_LOOP_BACK]=function(){return new Nf},c[ye.STAR_LOOP_ENTRY]=function(){return new Bo},c[ye.PLUS_LOOP_BACK]=function(){return new Xd},c[ye.LOOP_END]=function(){return new pa},this.stateFactories=c}if(a>this.stateFactories.length||this.stateFactories[a]===null)throw"The specified state type "+a+" is not valid.";var m=this.stateFactories[a]();if(m!==null)return m.ruleIndex=p,m}},{key:"lexerActionFactory",value:function(a,p,c){if(this.actionFactories===null){var m=[];m[0]=function(o,u){return new Pg(o)},m[1]=function(o,u){return new Lg(o,u)},m[2]=function(o,u){return new Gg(o)},m[3]=function(o,u){return rh.INSTANCE},m[4]=function(o,u){return sh.INSTANCE},m[5]=function(o,u){return new jg(o)},m[6]=function(o,u){return Qf.INSTANCE},m[7]=function(o,u){return new Ug(o)},this.actionFactories=m}if(a>this.actionFactories.length||this.actionFactories[a]===null)throw"The specified lexer action type "+a+" is not valid.";return this.actionFactories[a](p,c)}}],d&&Kg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Rs(l){return Rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rs(l)}function zg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Rs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Rs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Rs(p)==="symbol"?p:String(p)),a)}var p}var ws=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l)}var r,d;return r=l,(d=[{key:"syntaxError",value:function(a,p,c,m,o,u){}},{key:"reportAmbiguity",value:function(a,p,c,m,o,u,v){}},{key:"reportAttemptingFullContext",value:function(a,p,c,m,o,u){}},{key:"reportContextSensitivity",value:function(a,p,c,m,o,u){}}])&&zg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ra(l){return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ra(l)}function Wg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ra(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ra(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ra(p)==="symbol"?p:String(p)),a)}var p}function lh(l,r){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},lh(l,r)}function Ac(l){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ac(l)}var fh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&lh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ac(a);if(p){var v=Ac(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ra(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this)}return r=m,(d=[{key:"syntaxError",value:function(o,u,v,x,S,N){console.error("line "+v+":"+x+" "+S)}}])&&Wg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(ws);function wa(l){return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},wa(l)}function Xg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(wa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(wa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),wa(p)==="symbol"?p:String(p)),a)}var p}function hh(l,r){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},hh(l,r)}function fm(l,r){if(r&&(wa(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hm(l)}function hm(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function xc(l){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(l)}fh.INSTANCE=new fh;var qg=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&hh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=xc(a);if(p){var v=xc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return fm(this,o)});function m(o){var u;if(function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),u=c.call(this),o===null)throw"delegates";return u.delegates=o,fm(u,hm(u))}return r=m,d=[{key:"syntaxError",value:function(o,u,v,x,S,N){this.delegates.map(function(ee){return ee.syntaxError(o,u,v,x,S,N)})}},{key:"reportAmbiguity",value:function(o,u,v,x,S,N,ee){this.delegates.map(function(Re){return Re.reportAmbiguity(o,u,v,x,S,N,ee)})}},{key:"reportAttemptingFullContext",value:function(o,u,v,x,S,N){this.delegates.map(function(ee){return ee.reportAttemptingFullContext(o,u,v,x,S,N)})}},{key:"reportContextSensitivity",value:function(o,u,v,x,S,N){this.delegates.map(function(ee){return ee.reportContextSensitivity(o,u,v,x,S,N)})}}],d&&Xg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(ws);function Ns(l){return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ns(l)}function Yg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ns(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ns(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ns(p)==="symbol"?p:String(p)),a)}var p}var Oc=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),this._listeners=[fh.INSTANCE],this._interp=null,this._stateNumber=-1}var r,d;return r=l,(d=[{key:"checkVersion",value:function(a){var p="4.13.0";p!==a&&console.log("ANTLR runtime and generated code versions disagree: "+p+"!="+a)}},{key:"addErrorListener",value:function(a){this._listeners.push(a)}},{key:"removeErrorListeners",value:function(){this._listeners=[]}},{key:"getLiteralNames",value:function(){return Object.getPrototypeOf(this).constructor.literalNames||[]}},{key:"getSymbolicNames",value:function(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}},{key:"getTokenNames",value:function(){if(!this.tokenNames){var a=this.getLiteralNames(),p=this.getSymbolicNames(),c=a.length>p.length?a.length:p.length;this.tokenNames=[];for(var m=0;m<c;m++)this.tokenNames[m]=a[m]||p[m]||"<INVALID"}return this.tokenNames}},{key:"getTokenTypeMap",value:function(){var a=this.getTokenNames();if(a===null)throw"The current recognizer does not provide a list of token names.";var p=this.tokenTypeMapCache[a];return p===void 0&&((p=a.reduce(function(c,m,o){c[m]=o})).EOF=n.EOF,this.tokenTypeMapCache[a]=p),p}},{key:"getRuleIndexMap",value:function(){var a=this.ruleNames;if(a===null)throw"The current recognizer does not provide a list of rule names.";var p=this.ruleIndexMapCache[a];return p===void 0&&(p=a.reduce(function(c,m,o){c[m]=o}),this.ruleIndexMapCache[a]=p),p}},{key:"getTokenType",value:function(a){var p=this.getTokenTypeMap()[a];return p!==void 0?p:n.INVALID_TYPE}},{key:"getErrorHeader",value:function(a){return"line "+a.getOffendingToken().line+":"+a.getOffendingToken().column}},{key:"getTokenErrorDisplay",value:function(a){if(a===null)return"<no token>";var p=a.text;return p===null&&(p=a.type===n.EOF?"<EOF>":"<"+a.type+">"),"'"+(p=p.replace(`
|
2
|
-
`,"\\n").replace("\r","\\r").replace(" ","\\t"))+"'"}},{key:"getErrorListenerDispatch",value:function(){return new qg(this._listeners)}},{key:"sempred",value:function(a,p,c){return!0}},{key:"precpred",value:function(a,p){return!0}},{key:"atn",get:function(){return this._interp.atn}},{key:"state",get:function(){return this._stateNumber},set:function(a){this._stateNumber=a}}])&&Yg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Na(l){return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Na(l)}function Jg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Na(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Na(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Na(p)==="symbol"?p:String(p)),a)}var p}function ph(l,r){return ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},ph(l,r)}function Cc(l){return Cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cc(l)}Oc.tokenTypeMapCache={},Oc.ruleIndexMapCache={};var Is=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ph(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Cc(a);if(p){var v=Cc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Na(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v,x,S){var N;return function(ee,Re){if(!(ee instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,m),(N=c.call(this)).source=o!==void 0?o:m.EMPTY_SOURCE,N.type=u!==void 0?u:null,N.channel=v!==void 0?v:n.DEFAULT_CHANNEL,N.start=x!==void 0?x:-1,N.stop=S!==void 0?S:-1,N.tokenIndex=-1,N.source[0]!==null?(N.line=o[0].line,N.column=o[0].column):N.column=-1,N}return r=m,(d=[{key:"clone",value:function(){var o=new m(this.source,this.type,this.channel,this.start,this.stop);return o.tokenIndex=this.tokenIndex,o.line=this.line,o.column=this.column,o.text=this.text,o}},{key:"cloneWithType",value:function(o){var u=new m(this.source,o,this.channel,this.start,this.stop);return u.tokenIndex=this.tokenIndex,u.line=this.line,u.column=this.column,o===n.EOF&&(u.text=""),u}},{key:"toString",value:function(){var o=this.text;return o=o!==null?o.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+o+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}},{key:"text",get:function(){if(this._text!==null)return this._text;var o=this.getInputStream();if(o===null)return null;var u=o.size;return this.start<u&&this.stop<u?o.getText(this.start,this.stop):"<EOF>"},set:function(o){this._text=o}}])&&Jg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(n);function Ia(l){return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ia(l)}function dh(l,r){return dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},dh(l,r)}function Dc(l){return Dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dc(l)}function pm(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ia(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ia(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ia(p)==="symbol"?p:String(p)),a)}var p}function dm(l,r,d){return r&&pm(l.prototype,r),d&&pm(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}function mm(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}Is.EMPTY_SOURCE=[null,null];var mh=function(l){(function(c,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(m&&m.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),m&&dh(c,m)})(p,l);var r,d,a=(r=p,d=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,m=Dc(r);if(d){var o=Dc(this).constructor;c=Reflect.construct(m,arguments,o)}else c=m.apply(this,arguments);return function(u,v){if(v&&(Ia(v)==="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(u)}(this,c)});function p(c){var m;return mm(this,p),(m=a.call(this)).copyText=c!==void 0&&c,m}return dm(p,[{key:"create",value:function(c,m,o,u,v,x,S,N){var ee=new Is(c,m,u,v,x);return ee.line=S,ee.column=N,o!==null?ee.text=o:this.copyText&&c[1]!==null&&(ee.text=c[1].getText(v,x)),ee}},{key:"createThin",value:function(c,m){var o=new Is(null,c);return o.text=m,o}}]),p}(dm(function l(){mm(this,l)}));function Pa(l){return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pa(l)}function Zg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Pa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Pa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Pa(p)==="symbol"?p:String(p)),a)}var p}function _m(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function _h(l){var r=typeof Map=="function"?new Map:void 0;return _h=function(d){if(d===null||(a=d,Function.toString.call(a).indexOf("[native code]")===-1))return d;var a;if(typeof d!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(d))return r.get(d);r.set(d,p)}function p(){return yh(d,arguments,Fs(this).constructor)}return p.prototype=Object.create(d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),Ps(p,d)},_h(l)}function yh(l,r,d){return yh=ym()?Reflect.construct.bind():function(a,p,c){var m=[null];m.push.apply(m,p);var o=new(Function.bind.apply(a,m));return c&&Ps(o,c.prototype),o},yh.apply(null,arguments)}function ym(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ps(l,r){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Ps(l,r)}function Fs(l){return Fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fs(l)}mh.DEFAULT=new mh;var Uo=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Ps(o,u)})(m,l);var r,d,a,p,c=(a=m,p=ym(),function(){var o,u=Fs(a);if(p){var v=Fs(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Pa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _m(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),u=c.call(this,o.message),Error.captureStackTrace&&Error.captureStackTrace(_m(u),m),u.message=o.message,u.recognizer=o.recognizer,u.input=o.input,u.ctx=o.ctx,u.offendingToken=null,u.offendingState=-1,u.recognizer!==null&&(u.offendingState=u.recognizer.state),u}return r=m,(d=[{key:"getExpectedTokens",value:function(){return this.recognizer!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}},{key:"toString",value:function(){return this.message}}])&&Zg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(_h(Error));function Fa(l){return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fa(l)}function Qg(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Fa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Fa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Fa(p)==="symbol"?p:String(p)),a)}var p}function gh(l,r){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},gh(l,r)}function kc(l){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kc(l)}var bh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&gh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=kc(a);if(p){var v=kc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Fa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v,x){var S;return function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,m),(S=c.call(this,{message:"",recognizer:o,input:u,ctx:null})).startIndex=v,S.deadEndConfigs=x,S}return r=m,(d=[{key:"toString",value:function(){var o="";return this.startIndex>=0&&this.startIndex<this.input.size&&(o=this.input.getText(new ge(this.startIndex,this.startIndex))),"LexerNoViableAltException"+o}}])&&Qg(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Uo);function La(l){return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},La(l)}function e0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(La(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(La(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),La(p)==="symbol"?p:String(p)),a)}var p}function vh(l,r){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},vh(l,r)}function gm(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Rc(l){return Rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rc(l)}var ar=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&vh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Rc(a);if(p){var v=Rc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(La(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gm(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this))._input=o,u._factory=mh.DEFAULT,u._tokenFactorySourcePair=[gm(u),o],u._interp=null,u._token=null,u._tokenStartCharIndex=-1,u._tokenStartLine=-1,u._tokenStartColumn=-1,u._hitEOF=!1,u._channel=n.DEFAULT_CHANNEL,u._type=n.INVALID_TYPE,u._modeStack=[],u._mode=m.DEFAULT_MODE,u._text=null,u}return r=m,(d=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._token=null,this._type=n.INVALID_TYPE,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=m.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}},{key:"nextToken",value:function(){if(this._input===null)throw"nextToken requires a non-null input stream.";var o=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=n.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;for(var u=!1;;){this._type=n.INVALID_TYPE;var v=m.SKIP;try{v=this._interp.match(this._input,this._mode)}catch(x){if(!(x instanceof Uo))throw console.log(x.stack),x;this.notifyListeners(x),this.recover(x)}if(this._input.LA(1)===n.EOF&&(this._hitEOF=!0),this._type===n.INVALID_TYPE&&(this._type=v),this._type===m.SKIP){u=!0;break}if(this._type!==m.MORE)break}if(!u)return this._token===null&&this.emit(),this._token}}finally{this._input.release(o)}}},{key:"skip",value:function(){this._type=m.SKIP}},{key:"more",value:function(){this._type=m.MORE}},{key:"mode",value:function(o){this._mode=o}},{key:"pushMode",value:function(o){this._interp.debug&&console.log("pushMode "+o),this._modeStack.push(this._mode),this.mode(o)}},{key:"popMode",value:function(){if(this._modeStack.length===0)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}},{key:"emitToken",value:function(o){this._token=o}},{key:"emit",value:function(){var o=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(o),o}},{key:"emitEOF",value:function(){var o=this.column,u=this.line,v=this._factory.create(this._tokenFactorySourcePair,n.EOF,null,n.DEFAULT_CHANNEL,this._input.index,this._input.index-1,u,o);return this.emitToken(v),v}},{key:"getCharIndex",value:function(){return this._input.index}},{key:"getAllTokens",value:function(){for(var o=[],u=this.nextToken();u.type!==n.EOF;)o.push(u),u=this.nextToken();return o}},{key:"notifyListeners",value:function(o){var u=this._tokenStartCharIndex,v=this._input.index,x=this._input.getText(u,v),S="token recognition error at: '"+this.getErrorDisplay(x)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,S,o)}},{key:"getErrorDisplay",value:function(o){for(var u=[],v=0;v<o.length;v++)u.push(o[v]);return u.join("")}},{key:"getErrorDisplayForChar",value:function(o){return o.charCodeAt(0)===n.EOF?"<EOF>":o===`
|
3
|
-
`?"\\n":o===" "?"\\t":o==="\r"?"\\r":o}},{key:"getCharErrorDisplay",value:function(o){return"'"+this.getErrorDisplayForChar(o)+"'"}},{key:"recover",value:function(o){this._input.LA(1)!==n.EOF&&(o instanceof bh?this._interp.consume(this._input):this._input.consume())}},{key:"inputStream",get:function(){return this._input},set:function(o){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=o,this._tokenFactorySourcePair=[this,this._input]}},{key:"sourceName",get:function(){return this._input.sourceName}},{key:"type",get:function(){return this._type},set:function(o){this._type=o}},{key:"line",get:function(){return this._interp.line},set:function(o){this._interp.line=o}},{key:"column",get:function(){return this._interp.column},set:function(o){this._interp.column=o}},{key:"text",get:function(){return this._text!==null?this._text:this._interp.getText(this._input)},set:function(o){this._text=o}}])&&e0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Oc);function Ls(l){return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ls(l)}function t0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ls(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ls(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ls(p)==="symbol"?p:String(p)),a)}var p}function n0(l){return l.hashCodeForConfigSet()}function r0(l,r){return l===r||l!==null&&r!==null&&l.equalsForConfigSet(r)}ar.DEFAULT_MODE=0,ar.MORE=-2,ar.SKIP=-3,ar.DEFAULT_TOKEN_CHANNEL=n.DEFAULT_CHANNEL,ar.HIDDEN=n.HIDDEN_CHANNEL,ar.MIN_CHAR_VALUE=0,ar.MAX_CHAR_VALUE=1114111;var Br=function(){function l(a){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.configLookup=new g(n0,r0),this.fullCtx=a===void 0||a,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}var r,d;return r=l,(d=[{key:"add",value:function(a,p){if(p===void 0&&(p=null),this.readOnly)throw"This set is readonly";a.semanticContext!==K.NONE&&(this.hasSemanticContext=!0),a.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);var c=this.configLookup.add(a);if(c===a)return this.cachedHashCode=-1,this.configs.push(a),!0;var m=!this.fullCtx,o=la(c.context,a.context,m,p);return c.reachesIntoOuterContext=Math.max(c.reachesIntoOuterContext,a.reachesIntoOuterContext),a.precedenceFilterSuppressed&&(c.precedenceFilterSuppressed=!0),c.context=o,!0}},{key:"getStates",value:function(){for(var a=new g,p=0;p<this.configs.length;p++)a.add(this.configs[p].state);return a}},{key:"getPredicates",value:function(){for(var a=[],p=0;p<this.configs.length;p++){var c=this.configs[p].semanticContext;c!==K.NONE&&a.push(c.semanticContext)}return a}},{key:"optimizeConfigs",value:function(a){if(this.readOnly)throw"This set is readonly";if(this.configLookup.length!==0)for(var p=0;p<this.configs.length;p++){var c=this.configs[p];c.context=a.getCachedContext(c.context)}}},{key:"addAll",value:function(a){for(var p=0;p<a.length;p++)this.add(a[p]);return!1}},{key:"equals",value:function(a){return this===a||a instanceof l&&i(this.configs,a.configs)&&this.fullCtx===a.fullCtx&&this.uniqueAlt===a.uniqueAlt&&this.conflictingAlts===a.conflictingAlts&&this.hasSemanticContext===a.hasSemanticContext&&this.dipsIntoOuterContext===a.dipsIntoOuterContext}},{key:"hashCode",value:function(){var a=new T;return a.update(this.configs),a.finish()}},{key:"updateHashCode",value:function(a){this.readOnly?(this.cachedHashCode===-1&&(this.cachedHashCode=this.hashCode()),a.update(this.cachedHashCode)):a.update(this.hashCode())}},{key:"isEmpty",value:function(){return this.configs.length===0}},{key:"contains",value:function(a){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(a)}},{key:"containsFast",value:function(a){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(a)}},{key:"clear",value:function(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new g}},{key:"setReadonly",value:function(a){this.readOnly=a,a&&(this.configLookup=null)}},{key:"toString",value:function(){return U(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==dn.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}},{key:"items",get:function(){return this.configs}},{key:"length",get:function(){return this.configs.length}}])&&t0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ms(l){return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ms(l)}function i0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ms(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ms(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ms(p)==="symbol"?p:String(p)),a)}var p}var Vo=function(){function l(a,p){return function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}(this,l),a===null&&(a=-1),p===null&&(p=new Br),this.stateNumber=a,this.configs=p,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}var r,d;return r=l,(d=[{key:"getAltSet",value:function(){var a=new g;if(this.configs!==null)for(var p=0;p<this.configs.length;p++){var c=this.configs[p];a.add(c.alt)}return a.length===0?null:a}},{key:"equals",value:function(a){return this===a||a instanceof l&&this.configs.equals(a.configs)}},{key:"toString",value:function(){var a=this.stateNumber+":"+this.configs;return this.isAcceptState&&(a+="=>",this.predicates!==null?a+=this.predicates:a+=this.prediction),a}},{key:"hashCode",value:function(){var a=new T;return a.update(this.configs),a.finish()}}])&&i0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Bs(l){return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bs(l)}function o0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Bs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Bs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Bs(p)==="symbol"?p:String(p)),a)}var p}var Oi=function(){function l(a,p){return function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}(this,l),this.atn=a,this.sharedContextCache=p,this}var r,d;return r=l,d=[{key:"getCachedContext",value:function(a){if(this.sharedContextCache===null)return a;var p=new Yi;return zu(a,this.sharedContextCache,p)}}],d&&o0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Eh(l){return Eh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Eh(l)}function Sh(l,r){return Sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Sh(l,r)}function wc(l){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wc(l)}Oi.ERROR=new Vo(2147483647,new Br);var bm=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Sh(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=wc(d);if(a){var u=wc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Eh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),(m=p.call(this)).configLookup=new g,m}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(Br);function Ma(l){return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ma(l)}function a0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ma(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ma(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ma(p)==="symbol"?p:String(p)),a)}var p}function Th(){return Th=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(l,r,d){var a=function(c,m){for(;!Object.prototype.hasOwnProperty.call(c,m)&&(c=Ba(c))!==null;);return c}(l,r);if(a){var p=Object.getOwnPropertyDescriptor(a,r);return p.get?p.get.call(arguments.length<3?l:d):p.value}},Th.apply(this,arguments)}function Ah(l,r){return Ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Ah(l,r)}function vm(l,r){if(r&&(Ma(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Em(l)}function Em(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function Ba(l){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(l)}var Ci=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Ah(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Ba(a);if(p){var v=Ba(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return vm(this,o)});function m(o,u){var v;(function(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")})(this,m),v=c.call(this,o,u);var x=o.lexerActionExecutor||null;return v.lexerActionExecutor=x||(u!==null?u.lexerActionExecutor:null),v.passedThroughNonGreedyDecision=u!==null&&v.checkNonGreedyDecision(u,v.state),v.hashCodeForConfigSet=m.prototype.hashCode,v.equalsForConfigSet=m.prototype.equals,vm(v,Em(v))}return r=m,(d=[{key:"updateHashCode",value:function(o){o.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.passedThroughNonGreedyDecision===o.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(o.lexerActionExecutor):!o.lexerActionExecutor)&&Th(Ba(m.prototype),"equals",this).call(this,o)}},{key:"checkNonGreedyDecision",value:function(o,u){return o.passedThroughNonGreedyDecision||u instanceof fa&&u.nonGreedy}}])&&a0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(le);function Ua(l){return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ua(l)}function s0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ua(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ua(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ua(p)==="symbol"?p:String(p)),a)}var p}function xh(l,r){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},xh(l,r)}function Nc(l){return Nc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nc(l)}var Oh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&xh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Nc(a);if(p){var v=Nc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ua(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,u.actionType)).offset=o,v.action=u,v.isPositionDependent=!0,v}return r=m,(d=[{key:"execute",value:function(o){this.action.execute(o)}},{key:"updateHashCode",value:function(o){o.update(this.actionType,this.offset,this.action)}},{key:"equals",value:function(o){return this===o||o instanceof m&&this.offset===o.offset&&this.action===o.action}}])&&s0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Qi);function Us(l){return Us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Us(l)}function Sm(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Us(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Us(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Us(p)==="symbol"?p:String(p)),a)}var p}var u0=function(){function l(p){return function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}(this,l),this.lexerActions=p===null?[]:p,this.cachedHashCode=T.hashStuff(p),this}var r,d,a;return r=l,a=[{key:"append",value:function(p,c){return new l(p===null?[c]:p.lexerActions.concat([c]))}}],(d=[{key:"fixOffsetBeforeMatch",value:function(p){for(var c=null,m=0;m<this.lexerActions.length;m++)!this.lexerActions[m].isPositionDependent||this.lexerActions[m]instanceof Oh||(c===null&&(c=this.lexerActions.concat([])),c[m]=new Oh(p,this.lexerActions[m]));return c===null?this:new l(c)}},{key:"execute",value:function(p,c,m){var o=!1,u=c.index;try{for(var v=0;v<this.lexerActions.length;v++){var x=this.lexerActions[v];if(x instanceof Oh){var S=x.offset;c.seek(m+S),x=x.action,o=m+S!==u}else x.isPositionDependent&&(c.seek(u),o=!1);x.execute(p)}}finally{o&&c.seek(u)}}},{key:"hashCode",value:function(){return this.cachedHashCode}},{key:"updateHashCode",value:function(p){p.update(this.cachedHashCode)}},{key:"equals",value:function(p){if(this===p)return!0;if(p instanceof l){if(this.cachedHashCode!=p.cachedHashCode||this.lexerActions.length!=p.lexerActions.length)return!1;for(var c=this.lexerActions.length,m=0;m<c;++m)if(!this.lexerActions[m].equals(p.lexerActions[m]))return!1;return!0}return!1}}])&&Sm(r.prototype,d),a&&Sm(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ch(l,r){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Ch(l,r)}function Ic(l){return Ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ic(l)}function Va(l){return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Va(l)}function Tm(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function Am(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Va(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Va(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Va(p)==="symbol"?p:String(p)),a)}var p}function xm(l,r,d){return r&&Am(l.prototype,r),d&&Am(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}function Om(l){l.index=-1,l.line=0,l.column=-1,l.dfaState=null}var c0=function(){function l(){Tm(this,l),Om(this)}return xm(l,[{key:"reset",value:function(){Om(this)}}]),l}(),ja=function(l){(function(c,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(m&&m.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),m&&Ch(c,m)})(p,l);var r,d,a=(r=p,d=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var c,m=Ic(r);if(d){var o=Ic(this).constructor;c=Reflect.construct(m,arguments,o)}else c=m.apply(this,arguments);return function(u,v){if(v&&(Va(v)==="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(u)}(this,c)});function p(c,m,o,u){var v;return Tm(this,p),(v=a.call(this,m,u)).decisionToDFA=o,v.recog=c,v.startIndex=-1,v.line=1,v.column=0,v.mode=ar.DEFAULT_MODE,v.prevAccept=new c0,v}return xm(p,[{key:"copyState",value:function(c){this.column=c.column,this.line=c.line,this.mode=c.mode,this.startIndex=c.startIndex}},{key:"match",value:function(c,m){this.mode=m;var o=c.mark();try{this.startIndex=c.index,this.prevAccept.reset();var u=this.decisionToDFA[m];return u.s0===null?this.matchATN(c):this.execATN(c,u.s0)}finally{c.release(o)}}},{key:"reset",value:function(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=ar.DEFAULT_MODE}},{key:"matchATN",value:function(c){var m=this.atn.modeToStartState[this.mode];p.debug&&console.log("matchATN mode "+this.mode+" start: "+m);var o=this.mode,u=this.computeStartState(c,m),v=u.hasSemanticContext;u.hasSemanticContext=!1;var x=this.addDFAState(u);v||(this.decisionToDFA[this.mode].s0=x);var S=this.execATN(c,x);return p.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[o].toLexerString()),S}},{key:"execATN",value:function(c,m){p.debug&&console.log("start state closure="+m.configs),m.isAcceptState&&this.captureSimState(this.prevAccept,c,m);for(var o=c.LA(1),u=m;;){p.debug&&console.log("execATN loop starting closure: "+u.configs);var v=this.getExistingTargetState(u,o);if(v===null&&(v=this.computeTargetState(c,u,o)),v===Oi.ERROR||(o!==n.EOF&&this.consume(c),v.isAcceptState&&(this.captureSimState(this.prevAccept,c,v),o===n.EOF)))break;o=c.LA(1),u=v}return this.failOrAccept(this.prevAccept,c,u.configs,o)}},{key:"getExistingTargetState",value:function(c,m){if(c.edges===null||m<p.MIN_DFA_EDGE||m>p.MAX_DFA_EDGE)return null;var o=c.edges[m-p.MIN_DFA_EDGE];return o===void 0&&(o=null),p.debug&&o!==null&&console.log("reuse state "+c.stateNumber+" edge to "+o.stateNumber),o}},{key:"computeTargetState",value:function(c,m,o){var u=new bm;return this.getReachableConfigSet(c,m.configs,u,o),u.items.length===0?(u.hasSemanticContext||this.addDFAEdge(m,o,Oi.ERROR),Oi.ERROR):this.addDFAEdge(m,o,null,u)}},{key:"failOrAccept",value:function(c,m,o,u){if(this.prevAccept.dfaState!==null){var v=c.dfaState.lexerActionExecutor;return this.accept(m,v,this.startIndex,c.index,c.line,c.column),c.dfaState.prediction}if(u===n.EOF&&m.index===this.startIndex)return n.EOF;throw new bh(this.recog,m,this.startIndex,o)}},{key:"getReachableConfigSet",value:function(c,m,o,u){for(var v=dn.INVALID_ALT_NUMBER,x=0;x<m.items.length;x++){var S=m.items[x],N=S.alt===v;if(!N||!S.passedThroughNonGreedyDecision){p.debug&&console.log(`testing %s at %s
|
4
|
-
`,this.getTokenName(u),S.toString(this.recog,!0));for(var ee=0;ee<S.state.transitions.length;ee++){var Re=S.state.transitions[ee],Ce=this.getReachableTarget(Re,u);if(Ce!==null){var He=S.lexerActionExecutor;He!==null&&(He=He.fixOffsetBeforeMatch(c.index-this.startIndex));var at=u===n.EOF,ze=new Ci({state:Ce,lexerActionExecutor:He},S);this.closure(c,ze,o,N,!0,at)&&(v=S.alt)}}}}}},{key:"accept",value:function(c,m,o,u,v,x){p.debug&&console.log(`ACTION %s
|
5
|
-
`,m),c.seek(u),this.line=v,this.column=x,m!==null&&this.recog!==null&&m.execute(this.recog,c,o)}},{key:"getReachableTarget",value:function(c,m){return c.matches(m,0,ar.MAX_CHAR_VALUE)?c.target:null}},{key:"computeStartState",value:function(c,m){for(var o=it.EMPTY,u=new bm,v=0;v<m.transitions.length;v++){var x=m.transitions[v].target,S=new Ci({state:x,alt:v+1,context:o},null);this.closure(c,S,u,!1,!1,!1)}return u}},{key:"closure",value:function(c,m,o,u,v,x){var S=null;if(p.debug&&console.log("closure("+m.toString(this.recog,!0)+")"),m.state instanceof Ct){if(p.debug&&(this.recog!==null?console.log(`closure at %s rule stop %s
|
6
|
-
`,this.recog.ruleNames[m.state.ruleIndex],m):console.log(`closure at rule stop %s
|
7
|
-
`,m)),m.context===null||m.context.hasEmptyPath()){if(m.context===null||m.context.isEmpty())return o.add(m),!0;o.add(new Ci({state:m.state,context:it.EMPTY},m)),u=!0}if(m.context!==null&&!m.context.isEmpty()){for(var N=0;N<m.context.length;N++)if(m.context.getReturnState(N)!==it.EMPTY_RETURN_STATE){var ee=m.context.getParent(N),Re=this.atn.states[m.context.getReturnState(N)];S=new Ci({state:Re,context:ee},m),u=this.closure(c,S,o,u,v,x)}}return u}m.state.epsilonOnlyTransitions||u&&m.passedThroughNonGreedyDecision||o.add(m);for(var Ce=0;Ce<m.state.transitions.length;Ce++){var He=m.state.transitions[Ce];(S=this.getEpsilonTarget(c,m,He,o,v,x))!==null&&(u=this.closure(c,S,o,u,v,x))}return u}},{key:"getEpsilonTarget",value:function(c,m,o,u,v,x){var S=null;if(o.serializationType===de.RULE){var N=ct.create(m.context,o.followState.stateNumber);S=new Ci({state:o.target,context:N},m)}else{if(o.serializationType===de.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(o.serializationType===de.PREDICATE)p.debug&&console.log("EVAL rule "+o.ruleIndex+":"+o.predIndex),u.hasSemanticContext=!0,this.evaluatePredicate(c,o.ruleIndex,o.predIndex,v)&&(S=new Ci({state:o.target},m));else if(o.serializationType===de.ACTION)if(m.context===null||m.context.hasEmptyPath()){var ee=u0.append(m.lexerActionExecutor,this.atn.lexerActions[o.actionIndex]);S=new Ci({state:o.target,lexerActionExecutor:ee},m)}else S=new Ci({state:o.target},m);else o.serializationType===de.EPSILON?S=new Ci({state:o.target},m):o.serializationType!==de.ATOM&&o.serializationType!==de.RANGE&&o.serializationType!==de.SET||x&&o.matches(n.EOF,0,ar.MAX_CHAR_VALUE)&&(S=new Ci({state:o.target},m))}return S}},{key:"evaluatePredicate",value:function(c,m,o,u){if(this.recog===null)return!0;if(!u)return this.recog.sempred(null,m,o);var v=this.column,x=this.line,S=c.index,N=c.mark();try{return this.consume(c),this.recog.sempred(null,m,o)}finally{this.column=v,this.line=x,c.seek(S),c.release(N)}}},{key:"captureSimState",value:function(c,m,o){c.index=m.index,c.line=this.line,c.column=this.column,c.dfaState=o}},{key:"addDFAEdge",value:function(c,m,o,u){if(o===void 0&&(o=null),u===void 0&&(u=null),o===null&&u!==null){var v=u.hasSemanticContext;if(u.hasSemanticContext=!1,o=this.addDFAState(u),v)return o}return m<p.MIN_DFA_EDGE||m>p.MAX_DFA_EDGE||(p.debug&&console.log("EDGE "+c+" -> "+o+" upon "+m),c.edges===null&&(c.edges=[]),c.edges[m-p.MIN_DFA_EDGE]=o),o}},{key:"addDFAState",value:function(c){for(var m=new Vo(null,c),o=null,u=0;u<c.items.length;u++){var v=c.items[u];if(v.state instanceof Ct){o=v;break}}o!==null&&(m.isAcceptState=!0,m.lexerActionExecutor=o.lexerActionExecutor,m.prediction=this.atn.ruleToTokenType[o.state.ruleIndex]);var x=this.decisionToDFA[this.mode],S=x.states.get(m);if(S!==null)return S;var N=m;return N.stateNumber=x.states.length,c.setReadonly(!0),N.configs=c,x.states.add(N),N}},{key:"getDFA",value:function(c){return this.decisionToDFA[c]}},{key:"getText",value:function(c){return c.getText(this.startIndex,c.index-1)}},{key:"consume",value:function(c){c.LA(1)===10?(this.line+=1,this.column=0):this.column+=1,c.consume()}},{key:"getTokenName",value:function(c){return c===-1?"EOF":"'"+String.fromCharCode(c)+"'"}}]),p}(Oi);function Vs(l){return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vs(l)}function l0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Vs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Vs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Vs(p)==="symbol"?p:String(p)),a)}var p}ja.debug=!1,ja.dfa_debug=!1,ja.MIN_DFA_EDGE=0,ja.MAX_DFA_EDGE=127;var Cm=function(){function l(a,p){(function(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")})(this,l),this.alt=p,this.pred=a}var r,d;return r=l,(d=[{key:"toString",value:function(){return"("+this.pred+", "+this.alt+")"}}])&&l0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function js(l){return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},js(l)}function f0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(js(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(js(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),js(p)==="symbol"?p:String(p)),a)}var p}var h0=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),this.data={}}var r,d;return r=l,(d=[{key:"get",value:function(a){return this.data["k-"+a]||null}},{key:"set",value:function(a,p){this.data["k-"+a]=p}},{key:"values",value:function(){var a=this;return Object.keys(this.data).filter(function(p){return p.startsWith("k-")}).map(function(p){return a.data[p]},this)}}])&&f0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}(),Di={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(l,r){if(Di.allConfigsInRuleStopStates(r))return!0;if(l===Di.SLL&&r.hasSemanticContext){for(var d=new Br,a=0;a<r.items.length;a++){var p=r.items[a];p=new le({semanticContext:K.NONE},p),d.add(p)}r=d}var c=Di.getConflictingAltSubsets(r);return Di.hasConflictingAltSet(c)&&!Di.hasStateAssociatedWithOneAlt(r)},hasConfigInRuleStopState:function(l){for(var r=0;r<l.items.length;r++)if(l.items[r].state instanceof Ct)return!0;return!1},allConfigsInRuleStopStates:function(l){for(var r=0;r<l.items.length;r++)if(!(l.items[r].state instanceof Ct))return!1;return!0},resolvesToJustOneViableAlt:function(l){return Di.getSingleViableAlt(l)},allSubsetsConflict:function(l){return!Di.hasNonConflictingAltSet(l)},hasNonConflictingAltSet:function(l){for(var r=0;r<l.length;r++)if(l[r].length===1)return!0;return!1},hasConflictingAltSet:function(l){for(var r=0;r<l.length;r++)if(l[r].length>1)return!0;return!1},allSubsetsEqual:function(l){for(var r=null,d=0;d<l.length;d++){var a=l[d];if(r===null)r=a;else if(a!==r)return!1}return!0},getUniqueAlt:function(l){var r=Di.getAlts(l);return r.length===1?r.minValue():dn.INVALID_ALT_NUMBER},getAlts:function(l){var r=new Mr;return l.map(function(d){r.or(d)}),r},getConflictingAltSubsets:function(l){var r=new Yi;return r.hashFunction=function(d){T.hashStuff(d.state.stateNumber,d.context)},r.equalsFunction=function(d,a){return d.state.stateNumber===a.state.stateNumber&&d.context.equals(a.context)},l.items.map(function(d){var a=r.get(d);a===null&&(a=new Mr,r.set(d,a)),a.add(d.alt)}),r.getValues()},getStateToAltMap:function(l){var r=new h0;return l.items.map(function(d){var a=r.get(d.state);a===null&&(a=new Mr,r.set(d.state,a)),a.add(d.alt)}),r},hasStateAssociatedWithOneAlt:function(l){for(var r=Di.getStateToAltMap(l).values(),d=0;d<r.length;d++)if(r[d].length===1)return!0;return!1},getSingleViableAlt:function(l){for(var r=null,d=0;d<l.length;d++){var a=l[d].minValue();if(r===null)r=a;else if(r!==a)return dn.INVALID_ALT_NUMBER}return r}};const Gn=Di;function Dh(l){return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Dh(l)}function kh(l,r){return kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},kh(l,r)}function Pc(l){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pc(l)}var Fc=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&kh(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Pc(d);if(a){var u=Pc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Dh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(m,o,u,v,x,S){var N;return function(ee,Re){if(!(ee instanceof Re))throw new TypeError("Cannot call a class as a function")}(this,c),S=S||m._ctx,v=v||m.getCurrentToken(),u=u||m.getCurrentToken(),o=o||m.getInputStream(),(N=p.call(this,{message:"",recognizer:m,input:o,ctx:S})).deadEndConfigs=x,N.startToken=u,N.offendingToken=v,N}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(Uo);function $s(l){return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$s(l)}function p0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if($s(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if($s(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),$s(p)==="symbol"?p:String(p)),a)}var p}var d0=function(){function l(a){(function(p,c){if(!(p instanceof c))throw new TypeError("Cannot call a class as a function")})(this,l),this.defaultMapCtor=a||Yi,this.cacheMap=new this.defaultMapCtor}var r,d;return r=l,(d=[{key:"get",value:function(a,p){var c=this.cacheMap.get(a)||null;return c===null?null:c.get(p)||null}},{key:"set",value:function(a,p,c){var m=this.cacheMap.get(a)||null;m===null&&(m=new this.defaultMapCtor,this.cacheMap.set(a,m)),m.set(p,c)}}])&&p0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function $a(l){return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$a(l)}function m0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if($a(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if($a(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),$a(p)==="symbol"?p:String(p)),a)}var p}function Rh(l,r){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Rh(l,r)}function Lc(l){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lc(l)}var Dm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Rh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Lc(a);if(p){var v=Lc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&($a(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v,x){var S;return function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,m),(S=c.call(this,u,x)).parser=o,S.decisionToDFA=v,S.predictionMode=Gn.LL,S._input=null,S._startIndex=0,S._outerContext=null,S._dfa=null,S.mergeCache=null,S.debug=!1,S.debug_closure=!1,S.debug_add=!1,S.trace_atn_sim=!1,S.dfa_debug=!1,S.retry_debug=!1,S}return r=m,d=[{key:"reset",value:function(){}},{key:"adaptivePredict",value:function(o,u,v){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+u+" exec LA(1)=="+this.getLookaheadName(o)+" line "+o.LT(1).line+":"+o.LT(1).column),this._input=o,this._startIndex=o.index,this._outerContext=v;var x=this.decisionToDFA[u];this._dfa=x;var S=o.mark(),N=o.index;try{var ee;if((ee=x.precedenceDfa?x.getPrecedenceStartState(this.parser.getPrecedence()):x.s0)===null){v===null&&(v=qi.EMPTY),this.debug&&console.log("predictATN decision "+x.decision+" exec LA(1)=="+this.getLookaheadName(o)+", outerContext="+v.toString(this.parser.ruleNames));var Re=this.computeStartState(x.atnStartState,qi.EMPTY,!1);x.precedenceDfa?(x.s0.configs=Re,Re=this.applyPrecedenceFilter(Re),ee=this.addDFAState(x,new Vo(null,Re)),x.setPrecedenceStartState(this.parser.getPrecedence(),ee)):(ee=this.addDFAState(x,new Vo(null,Re)),x.s0=ee)}var Ce=this.execATN(x,ee,o,N,v);return this.debug&&console.log("DFA after predictATN: "+x.toString(this.parser.literalNames,this.parser.symbolicNames)),Ce}finally{this._dfa=null,this.mergeCache=null,o.seek(N),o.release(S)}}},{key:"execATN",value:function(o,u,v,x,S){var N;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+o.decision+", DFA state "+u+", LA(1)=="+this.getLookaheadName(v)+" line "+v.LT(1).line+":"+v.LT(1).column);var ee=u;this.debug&&console.log("s0 = "+u);for(var Re=v.LA(1);;){var Ce=this.getExistingTargetState(ee,Re);if(Ce===null&&(Ce=this.computeTargetState(o,ee,Re)),Ce===Oi.ERROR){var He=this.noViableAlt(v,S,ee.configs,x);if(v.seek(x),(N=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(ee.configs,S))!==dn.INVALID_ALT_NUMBER)return N;throw He}if(Ce.requiresFullContext&&this.predictionMode!==Gn.SLL){var at=null;if(Ce.predicates!==null){this.debug&&console.log("DFA state has preds in DFA sim LL failover");var ze=v.index;if(ze!==x&&v.seek(x),(at=this.evalSemanticContext(Ce.predicates,S,!0)).length===1)return this.debug&&console.log("Full LL avoided"),at.minValue();ze!==x&&v.seek(ze)}this.dfa_debug&&console.log("ctx sensitive state "+S+" in "+Ce);var mn=this.computeStartState(o.atnStartState,S,!0);return this.reportAttemptingFullContext(o,at,Ce.configs,x,v.index),this.execATNWithFullContext(o,Ce,mn,v,x,S)}if(Ce.isAcceptState){if(Ce.predicates===null)return Ce.prediction;var hn=v.index;v.seek(x);var Kn=this.evalSemanticContext(Ce.predicates,S,!0);if(Kn.length===0)throw this.noViableAlt(v,S,Ce.configs,x);return Kn.length===1||this.reportAmbiguity(o,Ce,x,hn,!1,Kn,Ce.configs),Kn.minValue()}ee=Ce,Re!==n.EOF&&(v.consume(),Re=v.LA(1))}}},{key:"getExistingTargetState",value:function(o,u){var v=o.edges;return v===null?null:v[u+1]||null}},{key:"computeTargetState",value:function(o,u,v){var x=this.computeReachSet(u.configs,v,!1);if(x===null)return this.addDFAEdge(o,u,v,Oi.ERROR),Oi.ERROR;var S=new Vo(null,x),N=this.getUniqueAlt(x);if(this.debug){var ee=Gn.getConflictingAltSubsets(x);console.log("SLL altSubSets="+U(ee)+", configs="+x+", predict="+N+", allSubsetsConflict="+Gn.allSubsetsConflict(ee)+", conflictingAlts="+this.getConflictingAlts(x))}return N!==dn.INVALID_ALT_NUMBER?(S.isAcceptState=!0,S.configs.uniqueAlt=N,S.prediction=N):Gn.hasSLLConflictTerminatingPrediction(this.predictionMode,x)&&(S.configs.conflictingAlts=this.getConflictingAlts(x),S.requiresFullContext=!0,S.isAcceptState=!0,S.prediction=S.configs.conflictingAlts.minValue()),S.isAcceptState&&S.configs.hasSemanticContext&&(this.predicateDFAState(S,this.atn.getDecisionState(o.decision)),S.predicates!==null&&(S.prediction=dn.INVALID_ALT_NUMBER)),this.addDFAEdge(o,u,v,S)}},{key:"predicateDFAState",value:function(o,u){var v=u.transitions.length,x=this.getConflictingAltsOrUniqueAlt(o.configs),S=this.getPredsForAmbigAlts(x,o.configs,v);S!==null?(o.predicates=this.getPredicatePredictions(x,S),o.prediction=dn.INVALID_ALT_NUMBER):o.prediction=x.minValue()}},{key:"execATNWithFullContext",value:function(o,u,v,x,S,N){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+v);var ee,Re=!1,Ce=v;x.seek(S);for(var He=x.LA(1),at=-1;;){if((ee=this.computeReachSet(Ce,He,!0))===null){var ze=this.noViableAlt(x,N,Ce,S);x.seek(S);var mn=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(Ce,N);if(mn!==dn.INVALID_ALT_NUMBER)return mn;throw ze}var hn=Gn.getConflictingAltSubsets(ee);if(this.debug&&console.log("LL altSubSets="+hn+", predict="+Gn.getUniqueAlt(hn)+", resolvesToJustOneViableAlt="+Gn.resolvesToJustOneViableAlt(hn)),ee.uniqueAlt=this.getUniqueAlt(ee),ee.uniqueAlt!==dn.INVALID_ALT_NUMBER){at=ee.uniqueAlt;break}if(this.predictionMode!==Gn.LL_EXACT_AMBIG_DETECTION){if((at=Gn.resolvesToJustOneViableAlt(hn))!==dn.INVALID_ALT_NUMBER)break}else if(Gn.allSubsetsConflict(hn)&&Gn.allSubsetsEqual(hn)){Re=!0,at=Gn.getSingleViableAlt(hn);break}Ce=ee,He!==n.EOF&&(x.consume(),He=x.LA(1))}return ee.uniqueAlt!==dn.INVALID_ALT_NUMBER?(this.reportContextSensitivity(o,at,ee,S,x.index),at):(this.reportAmbiguity(o,u,S,x.index,Re,null,ee),at)}},{key:"computeReachSet",value:function(o,u,v){this.debug&&console.log("in computeReachSet, starting closure: "+o),this.mergeCache===null&&(this.mergeCache=new d0);for(var x=new Br(v),S=null,N=0;N<o.items.length;N++){var ee=o.items[N];if(this.debug&&console.log("testing "+this.getTokenName(u)+" at "+ee),ee.state instanceof Ct)(v||u===n.EOF)&&(S===null&&(S=[]),S.push(ee),this.debug_add&&console.log("added "+ee+" to skippedStopStates"));else for(var Re=0;Re<ee.state.transitions.length;Re++){var Ce=ee.state.transitions[Re],He=this.getReachableTarget(Ce,u);if(He!==null){var at=new le({state:He},ee);x.add(at,this.mergeCache),this.debug_add&&console.log("added "+at+" to intermediate")}}}var ze=null;if(S===null&&u!==n.EOF&&(x.items.length===1||this.getUniqueAlt(x)!==dn.INVALID_ALT_NUMBER)&&(ze=x),ze===null){ze=new Br(v);for(var mn=new g,hn=u===n.EOF,Kn=0;Kn<x.items.length;Kn++)this.closure(x.items[Kn],ze,mn,!1,v,hn)}if(u===n.EOF&&(ze=this.removeAllConfigsNotInRuleStopState(ze,ze===x)),!(S===null||v&&Gn.hasConfigInRuleStopState(ze)))for(var Ur=0;Ur<S.length;Ur++)ze.add(S[Ur],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+o+" -> "+ze),ze.items.length===0?null:ze}},{key:"removeAllConfigsNotInRuleStopState",value:function(o,u){if(Gn.allConfigsInRuleStopStates(o))return o;for(var v=new Br(o.fullCtx),x=0;x<o.items.length;x++){var S=o.items[x];if(S.state instanceof Ct)v.add(S,this.mergeCache);else if(u&&S.state.epsilonOnlyTransitions&&this.atn.nextTokens(S.state).contains(n.EPSILON)){var N=this.atn.ruleToStopState[S.state.ruleIndex];v.add(new le({state:N},S),this.mergeCache)}}return v}},{key:"computeStartState",value:function(o,u,v){var x=ca(this.atn,u),S=new Br(v);this.trace_atn_sim&&console.log("computeStartState from ATN state "+o+" initialContext="+x.toString(this.parser));for(var N=0;N<o.transitions.length;N++){var ee=o.transitions[N].target,Re=new le({state:ee,alt:N+1,context:x},null),Ce=new g;this.closure(Re,S,Ce,!0,v,!1)}return S}},{key:"applyPrecedenceFilter",value:function(o){for(var u,v=[],x=new Br(o.fullCtx),S=0;S<o.items.length;S++)if((u=o.items[S]).alt===1){var N=u.semanticContext.evalPrecedence(this.parser,this._outerContext);N!==null&&(v[u.state.stateNumber]=u.context,N!==u.semanticContext?x.add(new le({semanticContext:N},u),this.mergeCache):x.add(u,this.mergeCache))}for(var ee=0;ee<o.items.length;ee++)if((u=o.items[ee]).alt!==1){if(!u.precedenceFilterSuppressed){var Re=v[u.state.stateNumber]||null;if(Re!==null&&Re.equals(u.context))continue}x.add(u,this.mergeCache)}return x}},{key:"getReachableTarget",value:function(o,u){return o.matches(u,0,this.atn.maxTokenType)?o.target:null}},{key:"getPredsForAmbigAlts",value:function(o,u,v){for(var x=[],S=0;S<u.items.length;S++){var N=u.items[S];o.has(N.alt)&&(x[N.alt]=K.orContext(x[N.alt]||null,N.semanticContext))}for(var ee=0,Re=1;Re<v+1;Re++){var Ce=x[Re]||null;Ce===null?x[Re]=K.NONE:Ce!==K.NONE&&(ee+=1)}return ee===0&&(x=null),this.debug&&console.log("getPredsForAmbigAlts result "+U(x)),x}},{key:"getPredicatePredictions",value:function(o,u){for(var v=[],x=!1,S=1;S<u.length;S++){var N=u[S];o!==null&&o.has(S)&&v.push(new Cm(N,S)),N!==K.NONE&&(x=!0)}return x?v:null}},{key:"getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule",value:function(o,u){var v=this.splitAccordingToSemanticValidity(o,u),x=v[0],S=v[1],N=this.getAltThatFinishedDecisionEntryRule(x);return N!==dn.INVALID_ALT_NUMBER||S.items.length>0&&(N=this.getAltThatFinishedDecisionEntryRule(S))!==dn.INVALID_ALT_NUMBER?N:dn.INVALID_ALT_NUMBER}},{key:"getAltThatFinishedDecisionEntryRule",value:function(o){for(var u=[],v=0;v<o.items.length;v++){var x=o.items[v];(x.reachesIntoOuterContext>0||x.state instanceof Ct&&x.context.hasEmptyPath())&&u.indexOf(x.alt)<0&&u.push(x.alt)}return u.length===0?dn.INVALID_ALT_NUMBER:Math.min.apply(null,u)}},{key:"splitAccordingToSemanticValidity",value:function(o,u){for(var v=new Br(o.fullCtx),x=new Br(o.fullCtx),S=0;S<o.items.length;S++){var N=o.items[S];N.semanticContext!==K.NONE?N.semanticContext.evaluate(this.parser,u)?v.add(N):x.add(N):v.add(N)}return[v,x]}},{key:"evalSemanticContext",value:function(o,u,v){for(var x=new Mr,S=0;S<o.length;S++){var N=o[S];if(N.pred!==K.NONE){var ee=N.pred.evaluate(this.parser,u);if((this.debug||this.dfa_debug)&&console.log("eval pred "+N+"="+ee),ee&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+N.alt),x.add(N.alt),!v))break}else if(x.add(N.alt),!v)break}return x}},{key:"closure",value:function(o,u,v,x,S,N){this.closureCheckingStopState(o,u,v,x,S,0,N)}},{key:"closureCheckingStopState",value:function(o,u,v,x,S,N,ee){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+o.toString(this.parser,!0)+")"),o.state instanceof Ct){if(!o.context.isEmpty()){for(var Re=0;Re<o.context.length;Re++)if(o.context.getReturnState(Re)!==it.EMPTY_RETURN_STATE){var Ce=this.atn.states[o.context.getReturnState(Re)],He=o.context.getParent(Re),at={state:Ce,alt:o.alt,context:He,semanticContext:o.semanticContext},ze=new le(at,null);ze.reachesIntoOuterContext=o.reachesIntoOuterContext,this.closureCheckingStopState(ze,u,v,x,S,N-1,ee)}else{if(S){u.add(new le({state:o.state,context:it.EMPTY},o),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex)),this.closure_(o,u,v,x,S,N,ee)}return}if(S)return void u.add(o,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(o.state.ruleIndex))}this.closure_(o,u,v,x,S,N,ee)}},{key:"closure_",value:function(o,u,v,x,S,N,ee){var Re=o.state;Re.epsilonOnlyTransitions||u.add(o,this.mergeCache);for(var Ce=0;Ce<Re.transitions.length;Ce++)if(Ce!==0||!this.canDropLoopEntryEdgeInLeftRecursiveRule(o)){var He=Re.transitions[Ce],at=x&&!(He instanceof am),ze=this.getEpsilonTarget(o,He,at,N===0,S,ee);if(ze!==null){var mn=N;if(o.state instanceof Ct){if(this._dfa!==null&&this._dfa.precedenceDfa&&He.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(ze.precedenceFilterSuppressed=!0),ze.reachesIntoOuterContext+=1,v.add(ze)!==ze)continue;u.dipsIntoOuterContext=!0,mn-=1,this.debug&&console.log("dips into outer ctx: "+ze)}else{if(!He.isEpsilon&&v.add(ze)!==ze)continue;He instanceof Zt&&mn>=0&&(mn+=1)}this.closureCheckingStopState(ze,u,v,at,S,mn,ee)}}}},{key:"canDropLoopEntryEdgeInLeftRecursiveRule",value:function(o){var u=o.state;if(u.stateType!==ye.STAR_LOOP_ENTRY||u.stateType!==ye.STAR_LOOP_ENTRY||!u.isPrecedenceDecision||o.context.isEmpty()||o.context.hasEmptyPath())return!1;for(var v=o.context.length,x=0;x<v;x++)if(this.atn.states[o.context.getReturnState(x)].ruleIndex!==u.ruleIndex)return!1;for(var S=u.transitions[0].target.endState.stateNumber,N=this.atn.states[S],ee=0;ee<v;ee++){var Re=o.context.getReturnState(ee),Ce=this.atn.states[Re];if(Ce.transitions.length!==1||!Ce.transitions[0].isEpsilon)return!1;var He=Ce.transitions[0].target;if(!(Ce.stateType===ye.BLOCK_END&&He===u||Ce===N||He===N||He.stateType===ye.BLOCK_END&&He.transitions.length===1&&He.transitions[0].isEpsilon&&He.transitions[0].target===u))return!1}return!0}},{key:"getRuleName",value:function(o){return this.parser!==null&&o>=0?this.parser.ruleNames[o]:"<rule "+o+">"}},{key:"getEpsilonTarget",value:function(o,u,v,x,S,N){switch(u.serializationType){case de.RULE:return this.ruleTransition(o,u);case de.PRECEDENCE:return this.precedenceTransition(o,u,v,x,S);case de.PREDICATE:return this.predTransition(o,u,v,x,S);case de.ACTION:return this.actionTransition(o,u);case de.EPSILON:return new le({state:u.target},o);case de.ATOM:case de.RANGE:case de.SET:return N&&u.matches(n.EOF,0,1)?new le({state:u.target},o):null;default:return null}}},{key:"actionTransition",value:function(o,u){if(this.debug){var v=u.actionIndex===-1?65535:u.actionIndex;console.log("ACTION edge "+u.ruleIndex+":"+v)}return new le({state:u.target},o)}},{key:"precedenceTransition",value:function(o,u,v,x,S){this.debug&&(console.log("PRED (collectPredicates="+v+") "+u.precedence+">=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+U(this.parser.getRuleInvocationStack())));var N=null;if(v&&x)if(S){var ee=this._input.index;this._input.seek(this._startIndex);var Re=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(ee),Re&&(N=new le({state:u.target},o))}else{var Ce=K.andContext(o.semanticContext,u.getPredicate());N=new le({state:u.target,semanticContext:Ce},o)}else N=new le({state:u.target},o);return this.debug&&console.log("config from pred transition="+N),N}},{key:"predTransition",value:function(o,u,v,x,S){this.debug&&(console.log("PRED (collectPredicates="+v+") "+u.ruleIndex+":"+u.predIndex+", ctx dependent="+u.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+U(this.parser.getRuleInvocationStack())));var N=null;if(v&&(u.isCtxDependent&&x||!u.isCtxDependent))if(S){var ee=this._input.index;this._input.seek(this._startIndex);var Re=u.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(ee),Re&&(N=new le({state:u.target},o))}else{var Ce=K.andContext(o.semanticContext,u.getPredicate());N=new le({state:u.target,semanticContext:Ce},o)}else N=new le({state:u.target},o);return this.debug&&console.log("config from pred transition="+N),N}},{key:"ruleTransition",value:function(o,u){this.debug&&console.log("CALL rule "+this.getRuleName(u.target.ruleIndex)+", ctx="+o.context);var v=u.followState,x=ct.create(o.context,v.stateNumber);return new le({state:u.target,context:x},o)}},{key:"getConflictingAlts",value:function(o){var u=Gn.getConflictingAltSubsets(o);return Gn.getAlts(u)}},{key:"getConflictingAltsOrUniqueAlt",value:function(o){var u=null;return o.uniqueAlt!==dn.INVALID_ALT_NUMBER?(u=new Mr).add(o.uniqueAlt):u=o.conflictingAlts,u}},{key:"getTokenName",value:function(o){if(o===n.EOF)return"EOF";if(this.parser!==null&&this.parser.literalNames!==null){if(!(o>=this.parser.literalNames.length&&o>=this.parser.symbolicNames.length))return(this.parser.literalNames[o]||this.parser.symbolicNames[o])+"<"+o+">";console.log(o+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+o}},{key:"getLookaheadName",value:function(o){return this.getTokenName(o.LA(1))}},{key:"dumpDeadEndConfigs",value:function(o){console.log("dead end configs: ");for(var u=o.getDeadEndConfigs(),v=0;v<u.length;v++){var x=u[v],S="no edges";if(x.state.transitions.length>0){var N=x.state.transitions[0];N instanceof Gf?S="Atom "+this.getTokenName(N.label):N instanceof Ai&&(S=(N instanceof rn?"~":"")+"Set "+N.set)}console.error(x.toString(this.parser,!0)+":"+S)}}},{key:"noViableAlt",value:function(o,u,v,x){return new Fc(this.parser,o,o.get(x),o.LT(1),v,u)}},{key:"getUniqueAlt",value:function(o){for(var u=dn.INVALID_ALT_NUMBER,v=0;v<o.items.length;v++){var x=o.items[v];if(u===dn.INVALID_ALT_NUMBER)u=x.alt;else if(x.alt!==u)return dn.INVALID_ALT_NUMBER}return u}},{key:"addDFAEdge",value:function(o,u,v,x){if(this.debug&&console.log("EDGE "+u+" -> "+x+" upon "+this.getTokenName(v)),x===null)return null;if(x=this.addDFAState(o,x),u===null||v<-1||v>this.atn.maxTokenType)return x;if(u.edges===null&&(u.edges=[]),u.edges[v+1]=x,this.debug){var S=this.parser===null?null:this.parser.literalNames,N=this.parser===null?null:this.parser.symbolicNames;console.log(`DFA=
|
8
|
-
`+o.toString(S,N))}return x}},{key:"addDFAState",value:function(o,u){if(u===Oi.ERROR)return u;var v=o.states.get(u);return v!==null?(this.trace_atn_sim&&console.log("addDFAState "+u+" exists"),v):(u.stateNumber=o.states.length,u.configs.readOnly||(u.configs.optimizeConfigs(this),u.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+u),o.states.add(u),this.debug&&console.log("adding new DFA state: "+u),u)}},{key:"reportAttemptingFullContext",value:function(o,u,v,x,S){if(this.debug||this.retry_debug){var N=new ge(x,S+1);console.log("reportAttemptingFullContext decision="+o.decision+":"+v+", input="+this.parser.getTokenStream().getText(N))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,o,x,S,u,v)}},{key:"reportContextSensitivity",value:function(o,u,v,x,S){if(this.debug||this.retry_debug){var N=new ge(x,S+1);console.log("reportContextSensitivity decision="+o.decision+":"+v+", input="+this.parser.getTokenStream().getText(N))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,o,x,S,u,v)}},{key:"reportAmbiguity",value:function(o,u,v,x,S,N,ee){if(this.debug||this.retry_debug){var Re=new ge(v,x+1);console.log("reportAmbiguity "+N+":"+ee+", input="+this.parser.getTokenStream().getText(Re))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,o,v,x,S,N,ee)}}],d&&m0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Oi);function Hs(l){return Hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hs(l)}function _0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Hs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Hs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Hs(p)==="symbol"?p:String(p)),a)}var p}var km=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l),this.cache=new Yi}var r,d;return r=l,(d=[{key:"add",value:function(a){if(a===it.EMPTY)return it.EMPTY;var p=this.cache.get(a)||null;return p!==null?p:(this.cache.set(a,a),a)}},{key:"get",value:function(a){return this.cache.get(a)||null}},{key:"length",get:function(){return this.cache.length}}])&&_0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();const y0={ATN:dn,ATNDeserializer:ch,LexerATNSimulator:ja,ParserATNSimulator:Dm,PredictionMode:Gn,PredictionContextCache:km};function Gs(l){return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gs(l)}function g0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Gs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Gs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Gs(p)==="symbol"?p:String(p)),a)}var p}var wh=function(){function l(a,p,c){(function(m,o){if(!(m instanceof o))throw new TypeError("Cannot call a class as a function")})(this,l),this.dfa=a,this.literalNames=p||[],this.symbolicNames=c||[]}var r,d;return r=l,(d=[{key:"toString",value:function(){if(this.dfa.s0===null)return null;for(var a="",p=this.dfa.sortedStates(),c=0;c<p.length;c++){var m=p[c];if(m.edges!==null)for(var o=m.edges.length,u=0;u<o;u++){var v=m.edges[u]||null;v!==null&&v.stateNumber!==2147483647&&(a=(a=(a=(a=(a=(a=a.concat(this.getStateString(m))).concat("-")).concat(this.getEdgeLabel(u))).concat("->")).concat(this.getStateString(v))).concat(`
|
9
|
-
`))}}return a.length===0?null:a}},{key:"getEdgeLabel",value:function(a){return a===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[a-1]||this.symbolicNames[a-1]:String.fromCharCode(a-1)}},{key:"getStateString",value:function(a){var p=(a.isAcceptState?":":"")+"s"+a.stateNumber+(a.requiresFullContext?"^":"");return a.isAcceptState?a.predicates!==null?p+"=>"+U(a.predicates):p+"=>"+a.prediction.toString():p}}])&&g0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ha(l){return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ha(l)}function b0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ha(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ha(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ha(p)==="symbol"?p:String(p)),a)}var p}function Nh(l,r){return Nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Nh(l,r)}function Mc(l){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mc(l)}var Rm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Nh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Mc(a);if(p){var v=Mc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ha(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){return function(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this,o,null)}return r=m,(d=[{key:"getEdgeLabel",value:function(o){return"'"+String.fromCharCode(o)+"'"}}])&&b0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(wh);function Ks(l){return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ks(l)}function v0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ks(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ks(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ks(p)==="symbol"?p:String(p)),a)}var p}var wm=function(){function l(a,p){if(function(m,o){if(!(m instanceof o))throw new TypeError("Cannot call a class as a function")}(this,l),p===void 0&&(p=0),this.atnStartState=a,this.decision=p,this._states=new g,this.s0=null,this.precedenceDfa=!1,a instanceof Bo&&a.isPrecedenceDecision){this.precedenceDfa=!0;var c=new Vo(null,new Br);c.edges=[],c.isAcceptState=!1,c.requiresFullContext=!1,this.s0=c}}var r,d;return r=l,(d=[{key:"getPrecedenceStartState",value:function(a){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return a<0||a>=this.s0.edges.length?null:this.s0.edges[a]||null}},{key:"setPrecedenceStartState",value:function(a,p){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";a<0||(this.s0.edges[a]=p)}},{key:"setPrecedenceDfa",value:function(a){if(this.precedenceDfa!==a){if(this._states=new g,a){var p=new Vo(null,new Br);p.edges=[],p.isAcceptState=!1,p.requiresFullContext=!1,this.s0=p}else this.s0=null;this.precedenceDfa=a}}},{key:"sortedStates",value:function(){return this._states.values().sort(function(a,p){return a.stateNumber-p.stateNumber})}},{key:"toString",value:function(a,p){return a=a||null,p=p||null,this.s0===null?"":new wh(this,a,p).toString()}},{key:"toLexerString",value:function(){return this.s0===null?"":new Rm(this).toString()}},{key:"states",get:function(){return this._states}}])&&v0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();const E0={DFA:wm,DFASerializer:wh,LexerDFASerializer:Rm,PredPrediction:Cm},S0={PredictionContext:it},T0={Interval:ge,IntervalSet:re};function zs(l){return zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zs(l)}function A0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(zs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),zs(p)==="symbol"?p:String(p)),a)}var p}var Ih=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l)}var r,d;return r=l,(d=[{key:"visitTerminal",value:function(a){}},{key:"visitErrorNode",value:function(a){}},{key:"enterEveryRule",value:function(a){}},{key:"exitEveryRule",value:function(a){}}])&&A0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Ws(l){return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ws(l)}function x0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ws(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ws(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ws(p)==="symbol"?p:String(p)),a)}var p}var Nm=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l)}var r,d;return r=l,(d=[{key:"visit",value:function(a){return Array.isArray(a)?a.map(function(p){return p.accept(this)},this):a.accept(this)}},{key:"visitChildren",value:function(a){return a.children?this.visit(a.children):null}},{key:"visitTerminal",value:function(a){}},{key:"visitErrorNode",value:function(a){}}])&&x0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function Xs(l){return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xs(l)}function O0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Xs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Xs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Xs(p)==="symbol"?p:String(p)),a)}var p}var Bc=function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l)}var r,d;return r=l,(d=[{key:"walk",value:function(a,p){if(p instanceof Wr||p.isErrorNode!==void 0&&p.isErrorNode())a.visitErrorNode(p);else if(p instanceof on)a.visitTerminal(p);else{this.enterRule(a,p);for(var c=0;c<p.getChildCount();c++){var m=p.getChild(c);this.walk(a,m)}this.exitRule(a,p)}}},{key:"enterRule",value:function(a,p){var c=p.ruleContext;a.enterEveryRule(c),c.enterRule(a)}},{key:"exitRule",value:function(a,p){var c=p.ruleContext;c.exitRule(a),a.exitEveryRule(c)}}])&&O0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();Bc.DEFAULT=new Bc;const C0={Trees:Ku,RuleNode:Fe,ErrorNode:Wr,TerminalNode:on,ParseTreeListener:Ih,ParseTreeVisitor:Nm,ParseTreeWalker:Bc};function Ph(l){return Ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ph(l)}function Fh(l,r){return Fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Fh(l,r)}function Uc(l){return Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uc(l)}var qs=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Fh(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Uc(d);if(a){var u=Uc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Ph(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(m){var o;return function(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,c),(o=p.call(this,{message:"",recognizer:m,input:m.getInputStream(),ctx:m._ctx})).offendingToken=m.getCurrentToken(),o}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(Uo);function Lh(l){return Lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lh(l)}function Mh(l,r){return Mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Mh(l,r)}function Vc(l){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vc(l)}var Bh=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Mh(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Vc(d);if(a){var u=Vc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Lh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(m,o,u){var v;(function(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")})(this,c),v=p.call(this,{message:D0(o,u||null),recognizer:m,input:m.getInputStream(),ctx:m._ctx});var x=m._interp.atn.states[m.state].transitions[0];return x instanceof um?(v.ruleIndex=x.ruleIndex,v.predicateIndex=x.predIndex):(v.ruleIndex=0,v.predicateIndex=0),v.predicate=o,v.offendingToken=m.getCurrentToken(),v}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(Uo);function D0(l,r){return r!==null?r:"failed predicate: {"+l+"}?"}function Ga(l){return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ga(l)}function k0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ga(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ga(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ga(p)==="symbol"?p:String(p)),a)}var p}function Uh(l,r){return Uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Uh(l,r)}function jc(l){return jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jc(l)}var Im=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Uh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=jc(a);if(p){var v=jc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ga(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),o=o||!0,(u=c.call(this)).exactOnly=o,u}return r=m,d=[{key:"reportAmbiguity",value:function(o,u,v,x,S,N,ee){if(!this.exactOnly||S){var Re="reportAmbiguity d="+this.getDecisionDescription(o,u)+": ambigAlts="+this.getConflictingAlts(N,ee)+", input='"+o.getTokenStream().getText(new ge(v,x))+"'";o.notifyErrorListeners(Re)}}},{key:"reportAttemptingFullContext",value:function(o,u,v,x,S,N){var ee="reportAttemptingFullContext d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new ge(v,x))+"'";o.notifyErrorListeners(ee)}},{key:"reportContextSensitivity",value:function(o,u,v,x,S,N){var ee="reportContextSensitivity d="+this.getDecisionDescription(o,u)+", input='"+o.getTokenStream().getText(new ge(v,x))+"'";o.notifyErrorListeners(ee)}},{key:"getDecisionDescription",value:function(o,u){var v=u.decision,x=u.atnStartState.ruleIndex,S=o.ruleNames;if(x<0||x>=S.length)return""+v;var N=S[x]||null;return N===null||N.length===0?""+v:"".concat(v," (").concat(N,")")}},{key:"getConflictingAlts",value:function(o,u){if(o!==null)return o;for(var v=new Mr,x=0;x<u.items.length;x++)v.add(u.items[x].alt);return"{".concat(v.values().join(", "),"}")}}],d&&k0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(ws);function Vh(l){return Vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vh(l)}function Pm(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function jh(l){var r=typeof Map=="function"?new Map:void 0;return jh=function(d){if(d===null||(a=d,Function.toString.call(a).indexOf("[native code]")===-1))return d;var a;if(typeof d!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(d))return r.get(d);r.set(d,p)}function p(){return $h(d,arguments,Js(this).constructor)}return p.prototype=Object.create(d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),Ys(p,d)},jh(l)}function $h(l,r,d){return $h=Fm()?Reflect.construct.bind():function(a,p,c){var m=[null];m.push.apply(m,p);var o=new(Function.bind.apply(a,m));return c&&Ys(o,c.prototype),o},$h.apply(null,arguments)}function Fm(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ys(l,r){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Ys(l,r)}function Js(l){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Js(l)}var R0=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Ys(m,o)})(c,l);var r,d,a,p=(d=c,a=Fm(),function(){var m,o=Js(d);if(a){var u=Js(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(Vh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pm(v)}(this,m)});function c(){var m;return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,c),m=p.call(this),Error.captureStackTrace(Pm(m),c),m}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(jh(Error));function Zs(l){return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zs(l)}function w0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Zs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Zs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Zs(p)==="symbol"?p:String(p)),a)}var p}function Ka(l){return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ka(l)}function N0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ka(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ka(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ka(p)==="symbol"?p:String(p)),a)}var p}function Hh(l,r){return Hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Hh(l,r)}function $c(l){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$c(l)}var Gh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Hh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=$c(a);if(p){var v=$c(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ka(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){var o;return function(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,m),(o=c.call(this)).errorRecoveryMode=!1,o.lastErrorIndex=-1,o.lastErrorStates=null,o.nextTokensContext=null,o.nextTokenState=0,o}return r=m,d=[{key:"reset",value:function(o){this.endErrorCondition(o)}},{key:"beginErrorCondition",value:function(o){this.errorRecoveryMode=!0}},{key:"inErrorRecoveryMode",value:function(o){return this.errorRecoveryMode}},{key:"endErrorCondition",value:function(o){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}},{key:"reportMatch",value:function(o){this.endErrorCondition(o)}},{key:"reportError",value:function(o,u){this.inErrorRecoveryMode(o)||(this.beginErrorCondition(o),u instanceof Fc?this.reportNoViableAlternative(o,u):u instanceof qs?this.reportInputMismatch(o,u):u instanceof Bh?this.reportFailedPredicate(o,u):(console.log("unknown recognition error type: "+u.constructor.name),console.log(u.stack),o.notifyErrorListeners(u.getOffendingToken(),u.getMessage(),u)))}},{key:"recover",value:function(o,u){this.lastErrorIndex===o.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(o.state)>=0&&o.consume(),this.lastErrorIndex=o._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(o.state);var v=this.getErrorRecoverySet(o);this.consumeUntil(o,v)}},{key:"sync",value:function(o){if(!this.inErrorRecoveryMode(o)){var u=o._interp.atn.states[o.state],v=o.getTokenStream().LA(1),x=o.atn.nextTokens(u);if(x.contains(v))return this.nextTokensContext=null,void(this.nextTokenState=ye.INVALID_STATE_NUMBER);if(x.contains(n.EPSILON))this.nextTokensContext===null&&(this.nextTokensContext=o._ctx,this.nextTokensState=o._stateNumber);else switch(u.stateType){case ye.BLOCK_START:case ye.STAR_BLOCK_START:case ye.PLUS_BLOCK_START:case ye.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(o)!==null)return;throw new qs(o);case ye.PLUS_LOOP_BACK:case ye.STAR_LOOP_BACK:this.reportUnwantedToken(o);var S=new re;S.addSet(o.getExpectedTokens());var N=S.addSet(this.getErrorRecoverySet(o));this.consumeUntil(o,N)}}}},{key:"reportNoViableAlternative",value:function(o,u){var v,x=o.getTokenStream();v=x!==null?u.startToken.type===n.EOF?"<EOF>":x.getText(new ge(u.startToken.tokenIndex,u.offendingToken.tokenIndex)):"<unknown input>";var S="no viable alternative at input "+this.escapeWSAndQuote(v);o.notifyErrorListeners(S,u.offendingToken,u)}},{key:"reportInputMismatch",value:function(o,u){var v="mismatched input "+this.getTokenErrorDisplay(u.offendingToken)+" expecting "+u.getExpectedTokens().toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(v,u.offendingToken,u)}},{key:"reportFailedPredicate",value:function(o,u){var v="rule "+o.ruleNames[o._ctx.ruleIndex]+" "+u.message;o.notifyErrorListeners(v,u.offendingToken,u)}},{key:"reportUnwantedToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),v="extraneous input "+this.getTokenErrorDisplay(u)+" expecting "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames);o.notifyErrorListeners(v,u,null)}}},{key:"reportMissingToken",value:function(o){if(!this.inErrorRecoveryMode(o)){this.beginErrorCondition(o);var u=o.getCurrentToken(),v="missing "+this.getExpectedTokens(o).toString(o.literalNames,o.symbolicNames)+" at "+this.getTokenErrorDisplay(u);o.notifyErrorListeners(v,u,null)}}},{key:"recoverInline",value:function(o){var u=this.singleTokenDeletion(o);if(u!==null)return o.consume(),u;if(this.singleTokenInsertion(o))return this.getMissingSymbol(o);throw new qs(o)}},{key:"singleTokenInsertion",value:function(o){var u=o.getTokenStream().LA(1),v=o._interp.atn,x=v.states[o.state].transitions[0].target;return!!v.nextTokens(x,o._ctx).contains(u)&&(this.reportMissingToken(o),!0)}},{key:"singleTokenDeletion",value:function(o){var u=o.getTokenStream().LA(2);if(this.getExpectedTokens(o).contains(u)){this.reportUnwantedToken(o),o.consume();var v=o.getCurrentToken();return this.reportMatch(o),v}return null}},{key:"getMissingSymbol",value:function(o){var u,v=o.getCurrentToken(),x=this.getExpectedTokens(o).first();u=x===n.EOF?"<missing EOF>":"<missing "+o.literalNames[x]+">";var S=v,N=o.getTokenStream().LT(-1);return S.type===n.EOF&&N!==null&&(S=N),o.getTokenFactory().create(S.source,x,u,n.DEFAULT_CHANNEL,-1,-1,S.line,S.column)}},{key:"getExpectedTokens",value:function(o){return o.getExpectedTokens()}},{key:"getTokenErrorDisplay",value:function(o){if(o===null)return"<no token>";var u=o.text;return u===null&&(u=o.type===n.EOF?"<EOF>":"<"+o.type+">"),this.escapeWSAndQuote(u)}},{key:"escapeWSAndQuote",value:function(o){return"'"+(o=(o=(o=o.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}},{key:"getErrorRecoverySet",value:function(o){for(var u=o._interp.atn,v=o._ctx,x=new re;v!==null&&v.invokingState>=0;){var S=u.states[v.invokingState].transitions[0],N=u.nextTokens(S.followState);x.addSet(N),v=v.parentCtx}return x.removeOne(n.EPSILON),x}},{key:"consumeUntil",value:function(o,u){for(var v=o.getTokenStream().LA(1);v!==n.EOF&&!u.contains(v);)o.consume(),v=o.getTokenStream().LA(1)}}],d&&N0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(function(){function l(){(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,l)}var r,d;return r=l,(d=[{key:"reset",value:function(a){}},{key:"recoverInline",value:function(a){}},{key:"recover",value:function(a,p){}},{key:"sync",value:function(a){}},{key:"inErrorRecoveryMode",value:function(a){}},{key:"reportError",value:function(a){}}])&&w0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}());function za(l){return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},za(l)}function I0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(za(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),za(p)==="symbol"?p:String(p)),a)}var p}function Kh(l,r){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Kh(l,r)}function Hc(l){return Hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hc(l)}var Lm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Kh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Hc(a);if(p){var v=Hc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(za(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(){return function(o,u){if(!(o instanceof u))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this)}return r=m,d=[{key:"recover",value:function(o,u){for(var v=o._ctx;v!==null;)v.exception=u,v=v.parentCtx;throw new R0(u)}},{key:"recoverInline",value:function(o){this.recover(o,new qs(o))}},{key:"sync",value:function(o){}}],d&&I0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Gh);const P0={RecognitionException:Uo,NoViableAltException:Fc,LexerNoViableAltException:bh,InputMismatchException:qs,FailedPredicateException:Bh,DiagnosticErrorListener:Im,BailErrorStrategy:Lm,DefaultErrorStrategy:Gh,ErrorListener:ws};function Qs(l){return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qs(l)}function F0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Qs(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Qs(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Qs(p)==="symbol"?p:String(p)),a)}var p}var eu=function(){function l(a,p){if(function(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,l),this.name="<empty>",this.strdata=a,this.decodeToUnicodeCodePoints=p||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(var c=0;c<this.strdata.length;){var m=this.strdata.codePointAt(c);this.data.push(m),c+=m<=65535?1:2}else{this.data=new Array(this.strdata.length);for(var o=0;o<this.strdata.length;o++)this.data[o]=this.strdata.charCodeAt(o)}this._size=this.data.length}var r,d;return r=l,(d=[{key:"reset",value:function(){this._index=0}},{key:"consume",value:function(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}},{key:"LA",value:function(a){if(a===0)return 0;a<0&&(a+=1);var p=this._index+a-1;return p<0||p>=this._size?n.EOF:this.data[p]}},{key:"LT",value:function(a){return this.LA(a)}},{key:"mark",value:function(){return-1}},{key:"release",value:function(a){}},{key:"seek",value:function(a){a<=this._index?this._index=a:this._index=Math.min(a,this._size)}},{key:"getText",value:function(a,p){if(p>=this._size&&(p=this._size-1),a>=this._size)return"";if(this.decodeToUnicodeCodePoints){for(var c="",m=a;m<=p;m++)c+=String.fromCodePoint(this.data[m]);return c}return this.strdata.slice(a,p+1)}},{key:"toString",value:function(){return this.strdata}},{key:"index",get:function(){return this._index}},{key:"size",get:function(){return this._size}}])&&F0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),l}();function zh(l){return zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},zh(l)}function Wh(l,r){return Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Wh(l,r)}function Gc(l){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gc(l)}var tu=function(l){(function(m,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(o&&o.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),o&&Wh(m,o)})(c,l);var r,d,a,p=(d=c,a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var m,o=Gc(d);if(a){var u=Gc(this).constructor;m=Reflect.construct(o,arguments,u)}else m=o.apply(this,arguments);return function(v,x){if(x&&(zh(x)==="object"||typeof x=="function"))return x;if(x!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(v)}(this,m)});function c(m,o){return function(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,c),p.call(this,m,o)}return r=c,Object.defineProperty(r,"prototype",{writable:!1}),r}(eu),Mm=Or(92);function Wa(l){return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wa(l)}function L0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Wa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Wa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Wa(p)==="symbol"?p:String(p)),a)}var p}function Xh(l,r){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Xh(l,r)}function Kc(l){return Kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kc(l)}var Bm=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Um=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Xh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Kc(a);if(p){var v=Kc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Wa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u,v){var x;if(function(N,ee){if(!(N instanceof ee))throw new TypeError("Cannot call a class as a function")}(this,m),!Bm)throw new Error("FileStream is only available when running in Node!");var S=Mm.readFileSync(o,u||"utf-8");return(x=c.call(this,S,v)).fileName=o,x}return r=m,d=[{key:"fromPath",value:function(o,u,v){if(!Bm)throw new Error("FileStream is only available when running in Node!");Mm.readFile(o,u,function(x,S){var N=null;S!==null&&(N=new eu(S,!0)),v(x,N)})}}],d&&L0(r,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(tu);const Vm={fromString:function(l){return new eu(l,!0)},fromBlob:function(l,r,d,a){var p=new window.FileReader;p.onload=function(c){var m=new eu(c.target.result,!0);d(m)},p.onerror=a,p.readAsText(l,r)},fromBuffer:function(l,r){return new eu(l.toString(r),!0)},fromPath:function(l,r,d){Um.fromPath(l,r,d)},fromPathSync:function(l,r){return new Um(l,r)}},M0={arrayToString:U,stringToCharArray:function(l){for(var r=new Uint16Array(l.length),d=0;d<l.length;d++)r[d]=l.charCodeAt(d);return r}};function nu(l){return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nu(l)}function jm(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(nu(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(nu(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),nu(p)==="symbol"?p:String(p)),a)}var p}function B0(l,r,d){return r&&jm(l.prototype,r),d&&jm(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}function Xa(l){return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xa(l)}function U0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Xa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Xa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Xa(p)==="symbol"?p:String(p)),a)}var p}function qh(l,r){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},qh(l,r)}function zc(l){return zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zc(l)}var $m=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&qh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=zc(a);if(p){var v=zc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Xa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this)).tokenSource=o,u.tokens=[],u.index=-1,u.fetchedEOF=!1,u}return r=m,(d=[{key:"mark",value:function(){return 0}},{key:"release",value:function(o){}},{key:"reset",value:function(){this.seek(0)}},{key:"seek",value:function(o){this.lazyInit(),this.index=this.adjustSeekIndex(o)}},{key:"size",get:function(){return this.tokens.length}},{key:"get",value:function(o){return this.lazyInit(),this.tokens[o]}},{key:"consume",value:function(){if(!(this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length))&&this.LA(1)===n.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}},{key:"sync",value:function(o){var u=o-this.tokens.length+1;return!(u>0)||this.fetch(u)>=u}},{key:"fetch",value:function(o){if(this.fetchedEOF)return 0;for(var u=0;u<o;u++){var v=this.tokenSource.nextToken();if(v.tokenIndex=this.tokens.length,this.tokens.push(v),v.type===n.EOF)return this.fetchedEOF=!0,u+1}return o}},{key:"getTokens",value:function(o,u,v){if(v===void 0&&(v=null),o<0||u<0)return null;this.lazyInit();var x=[];u>=this.tokens.length&&(u=this.tokens.length-1);for(var S=o;S<u;S++){var N=this.tokens[S];if(N.type===n.EOF)break;(v===null||v.contains(N.type))&&x.push(N)}return x}},{key:"LA",value:function(o){return this.LT(o).type}},{key:"LB",value:function(o){return this.index-o<0?null:this.tokens[this.index-o]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);var u=this.index+o-1;return this.sync(u),u>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[u]}},{key:"adjustSeekIndex",value:function(o){return o}},{key:"lazyInit",value:function(){this.index===-1&&this.setup()}},{key:"setup",value:function(){this.sync(0),this.index=this.adjustSeekIndex(0)}},{key:"setTokenSource",value:function(o){this.tokenSource=o,this.tokens=[],this.index=-1,this.fetchedEOF=!1}},{key:"nextTokenOnChannel",value:function(o,u){if(this.sync(o),o>=this.tokens.length)return-1;for(var v=this.tokens[o];v.channel!==this.channel;){if(v.type===n.EOF)return-1;o+=1,this.sync(o),v=this.tokens[o]}return o}},{key:"previousTokenOnChannel",value:function(o,u){for(;o>=0&&this.tokens[o].channel!==u;)o-=1;return o}},{key:"getHiddenTokensToRight",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var v=this.nextTokenOnChannel(o+1,ar.DEFAULT_TOKEN_CHANNEL),x=o+1,S=v===-1?this.tokens.length-1:v;return this.filterForChannel(x,S,u)}},{key:"getHiddenTokensToLeft",value:function(o,u){if(u===void 0&&(u=-1),this.lazyInit(),o<0||o>=this.tokens.length)throw o+" not in 0.."+this.tokens.length-1;var v=this.previousTokenOnChannel(o-1,ar.DEFAULT_TOKEN_CHANNEL);if(v===o-1)return null;var x=v+1,S=o-1;return this.filterForChannel(x,S,u)}},{key:"filterForChannel",value:function(o,u,v){for(var x=[],S=o;S<u+1;S++){var N=this.tokens[S];v===-1?N.channel!==ar.DEFAULT_TOKEN_CHANNEL&&x.push(N):N.channel===v&&x.push(N)}return x.length===0?null:x}},{key:"getSourceName",value:function(){return this.tokenSource.getSourceName()}},{key:"getText",value:function(o){this.lazyInit(),this.fill(),o||(o=new ge(0,this.tokens.length-1));var u=o.start;u instanceof n&&(u=u.tokenIndex);var v=o.stop;if(v instanceof n&&(v=v.tokenIndex),u===null||v===null||u<0||v<0)return"";v>=this.tokens.length&&(v=this.tokens.length-1);for(var x="",S=u;S<v+1;S++){var N=this.tokens[S];if(N.type===n.EOF)break;x+=N.text}return x}},{key:"fill",value:function(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}])&&U0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(B0(function l(){(function(r,d){if(!(r instanceof d))throw new TypeError("Cannot call a class as a function")})(this,l)}));function qa(l){return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},qa(l)}function V0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(qa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),qa(p)==="symbol"?p:String(p)),a)}var p}function Yh(l,r){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Yh(l,r)}function Wc(l){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wc(l)}Object.defineProperty($m,"size",{get:function(){return this.tokens.length}});var Hm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Yh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Wc(a);if(p){var v=Wc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(qa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o)).channel=u===void 0?n.DEFAULT_CHANNEL:u,v}return r=m,(d=[{key:"adjustSeekIndex",value:function(o){return this.nextTokenOnChannel(o,this.channel)}},{key:"LB",value:function(o){if(o===0||this.index-o<0)return null;for(var u=this.index,v=1;v<=o;)u=this.previousTokenOnChannel(u-1,this.channel),v+=1;return u<0?null:this.tokens[u]}},{key:"LT",value:function(o){if(this.lazyInit(),o===0)return null;if(o<0)return this.LB(-o);for(var u=this.index,v=1;v<o;)this.sync(u+1)&&(u=this.nextTokenOnChannel(u+1,this.channel)),v+=1;return this.tokens[u]}},{key:"getNumberOfOnChannelTokens",value:function(){var o=0;this.fill();for(var u=0;u<this.tokens.length;u++){var v=this.tokens[u];if(v.channel===this.channel&&(o+=1),v.type===n.EOF)break}return o}}])&&V0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}($m);function Ya(l){return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ya(l)}function j0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ya(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ya(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ya(p)==="symbol"?p:String(p)),a)}var p}function Jh(l,r){return Jh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Jh(l,r)}function Xc(l){return Xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xc(l)}var $0=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Jh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Xc(a);if(p){var v=Xc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ya(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this)).parser=o,u}return r=m,(d=[{key:"enterEveryRule",value:function(o){console.log("enter "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}},{key:"visitTerminal",value:function(o){console.log("consume "+o.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}},{key:"exitEveryRule",value:function(o){console.log("exit "+this.parser.ruleNames[o.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}])&&j0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Ih);function Ja(l){return Ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ja(l)}function H0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Ja(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Ja(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Ja(p)==="symbol"?p:String(p)),a)}var p}function Zh(l,r){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},Zh(l,r)}function qc(l){return qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qc(l)}var Qh=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&Zh(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=qc(a);if(p){var v=qc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Ja(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this))._input=null,u._errHandler=new Gh,u._precedenceStack=[],u._precedenceStack.push(0),u._ctx=null,u.buildParseTrees=!0,u._tracer=null,u._parseListeners=null,u._syntaxErrors=0,u.setInputStream(o),u}return r=m,d=[{key:"reset",value:function(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}},{key:"match",value:function(o){var u=this.getCurrentToken();return u.type===o?(this._errHandler.reportMatch(this),this.consume()):(u=this._errHandler.recoverInline(this),this.buildParseTrees&&u.tokenIndex===-1&&this._ctx.addErrorNode(u)),u}},{key:"matchWildcard",value:function(){var o=this.getCurrentToken();return o.type>0?(this._errHandler.reportMatch(this),this.consume()):(o=this._errHandler.recoverInline(this),this.buildParseTrees&&o.tokenIndex===-1&&this._ctx.addErrorNode(o)),o}},{key:"getParseListeners",value:function(){return this._parseListeners||[]}},{key:"addParseListener",value:function(o){if(o===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(o)}},{key:"removeParseListener",value:function(o){if(this._parseListeners!==null){var u=this._parseListeners.indexOf(o);u>=0&&this._parseListeners.splice(u,1),this._parseListeners.length===0&&(this._parseListeners=null)}}},{key:"removeParseListeners",value:function(){this._parseListeners=null}},{key:"triggerEnterRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.forEach(function(u){u.enterEveryRule(o),o.enterRule(u)})}}},{key:"triggerExitRuleEvent",value:function(){if(this._parseListeners!==null){var o=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(u){o.exitRule(u),u.exitEveryRule(o)})}}},{key:"getTokenFactory",value:function(){return this._input.tokenSource._factory}},{key:"setTokenFactory",value:function(o){this._input.tokenSource._factory=o}},{key:"getATNWithBypassAlts",value:function(){var o=this.getSerializedATN();if(o===null)throw"The current parser does not support an ATN with bypass alternatives.";var u=this.bypassAltsAtnCache[o];if(u===null){var v=new Cs;v.generateRuleBypassTransitions=!0,u=new ch(v).deserialize(o),this.bypassAltsAtnCache[o]=u}return u}},{key:"getInputStream",value:function(){return this.getTokenStream()}},{key:"setInputStream",value:function(o){this.setTokenStream(o)}},{key:"getTokenStream",value:function(){return this._input}},{key:"setTokenStream",value:function(o){this._input=null,this.reset(),this._input=o}},{key:"syntaxErrorsCount",get:function(){return this._syntaxErrors}},{key:"getCurrentToken",value:function(){return this._input.LT(1)}},{key:"notifyErrorListeners",value:function(o,u,v){v=v||null,(u=u||null)===null&&(u=this.getCurrentToken()),this._syntaxErrors+=1;var x=u.line,S=u.column;this.getErrorListenerDispatch().syntaxError(this,u,x,S,o,v)}},{key:"consume",value:function(){var o=this.getCurrentToken();o.type!==n.EOF&&this.getInputStream().consume();var u,v=this._parseListeners!==null&&this._parseListeners.length>0;return(this.buildParseTrees||v)&&((u=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(o):this._ctx.addTokenNode(o)).invokingState=this.state,v&&this._parseListeners.forEach(function(x){u instanceof Wr||u.isErrorNode!==void 0&&u.isErrorNode()?x.visitErrorNode(u):u instanceof on&&x.visitTerminal(u)})),o}},{key:"addContextToParseTree",value:function(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}},{key:"enterRule",value:function(o,u,v){this.state=u,this._ctx=o,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}},{key:"exitRule",value:function(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}},{key:"enterOuterAlt",value:function(o,u){o.setAltNumber(u),this.buildParseTrees&&this._ctx!==o&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(o)),this._ctx=o}},{key:"getPrecedence",value:function(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}},{key:"enterRecursionRule",value:function(o,u,v,x){this.state=u,this._precedenceStack.push(x),this._ctx=o,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}},{key:"pushNewRecursionContext",value:function(o,u,v){var x=this._ctx;x.parentCtx=o,x.invokingState=u,x.stop=this._input.LT(-1),this._ctx=o,this._ctx.start=x.start,this.buildParseTrees&&this._ctx.addChild(x),this.triggerEnterRuleEvent()}},{key:"unrollRecursionContexts",value:function(o){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);var u=this._ctx,v=this.getParseListeners();if(v!==null&&v.length>0)for(;this._ctx!==o;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=o;u.parentCtx=o,this.buildParseTrees&&o!==null&&o.addChild(u)}},{key:"getInvokingContext",value:function(o){for(var u=this._ctx;u!==null;){if(u.ruleIndex===o)return u;u=u.parentCtx}return null}},{key:"precpred",value:function(o,u){return u>=this._precedenceStack[this._precedenceStack.length-1]}},{key:"inContext",value:function(o){return!1}},{key:"isExpectedToken",value:function(o){var u=this._interp.atn,v=this._ctx,x=u.states[this.state],S=u.nextTokens(x);if(S.contains(o))return!0;if(!S.contains(n.EPSILON))return!1;for(;v!==null&&v.invokingState>=0&&S.contains(n.EPSILON);){var N=u.states[v.invokingState].transitions[0];if((S=u.nextTokens(N.followState)).contains(o))return!0;v=v.parentCtx}return!(!S.contains(n.EPSILON)||o!==n.EOF)}},{key:"getExpectedTokens",value:function(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}},{key:"getExpectedTokensWithinCurrentRule",value:function(){var o=this._interp.atn,u=o.states[this.state];return o.nextTokens(u)}},{key:"getRuleIndex",value:function(o){var u=this.getRuleIndexMap()[o];return u!==null?u:-1}},{key:"getRuleInvocationStack",value:function(o){(o=o||null)===null&&(o=this._ctx);for(var u=[];o!==null;){var v=o.ruleIndex;v<0?u.push("n/a"):u.push(this.ruleNames[v]),o=o.parentCtx}return u}},{key:"getDFAStrings",value:function(){return this._interp.decisionToDFA.toString()}},{key:"dumpDFA",value:function(){for(var o=!1,u=0;u<this._interp.decisionToDFA.length;u++){var v=this._interp.decisionToDFA[u];v.states.length>0&&(o&&console.log(),this.printer.println("Decision "+v.decision+":"),this.printer.print(v.toString(this.literalNames,this.symbolicNames)),o=!0)}}},{key:"getSourceName",value:function(){return this._input.sourceName}},{key:"setTrace",value:function(o){o?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new $0(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}],d&&H0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Oc);function Za(l){return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Za(l)}function G0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Za(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Za(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Za(p)==="symbol"?p:String(p)),a)}var p}function ep(l,r){return ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},ep(l,r)}function Yc(l){return Yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yc(l)}Qh.bypassAltsAtnCache={};var Gm=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&ep(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Yc(a);if(p){var v=Yc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Za(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){var u;return function(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}(this,m),(u=c.call(this)).parentCtx=null,u.symbol=o,u}return r=m,(d=[{key:"getChild",value:function(o){return null}},{key:"getSymbol",value:function(){return this.symbol}},{key:"getParent",value:function(){return this.parentCtx}},{key:"getPayload",value:function(){return this.symbol}},{key:"getSourceInterval",value:function(){if(this.symbol===null)return ge.INVALID_INTERVAL;var o=this.symbol.tokenIndex;return new ge(o,o)}},{key:"getChildCount",value:function(){return 0}},{key:"accept",value:function(o){return o.visitTerminal(this)}},{key:"getText",value:function(){return this.symbol.text}},{key:"toString",value:function(){return this.symbol.type===n.EOF?"<EOF>":this.symbol.text}}])&&G0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(on);function Qa(l){return Qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Qa(l)}function K0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(Qa(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(Qa(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),Qa(p)==="symbol"?p:String(p)),a)}var p}function tp(l,r){return tp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},tp(l,r)}function Jc(l){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jc(l)}var Km=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&tp(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Jc(a);if(p){var v=Jc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(Qa(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o){return function(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,m),c.call(this,o)}return r=m,(d=[{key:"isErrorNode",value:function(){return!0}},{key:"accept",value:function(o){return o.visitErrorNode(this)}}])&&K0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(Gm);function es(l){return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},es(l)}function z0(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,(p=function(c,m){if(es(c)!=="object"||c===null)return c;var o=c[Symbol.toPrimitive];if(o!==void 0){var u=o.call(c,"string");if(es(u)!=="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(a.key),es(p)==="symbol"?p:String(p)),a)}var p}function np(l,r){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},np(l,r)}function Zc(l){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zc(l)}var rp=function(l){(function(o,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(u&&u.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),u&&np(o,u)})(m,l);var r,d,a,p,c=(a=m,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var o,u=Zc(a);if(p){var v=Zc(this).constructor;o=Reflect.construct(u,arguments,v)}else o=u.apply(this,arguments);return function(x,S){if(S&&(es(S)==="object"||typeof S=="function"))return S;if(S!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}(x)}(this,o)});function m(o,u){var v;return function(x,S){if(!(x instanceof S))throw new TypeError("Cannot call a class as a function")}(this,m),(v=c.call(this,o,u)).children=null,v.start=null,v.stop=null,v.exception=null,v}return r=m,(d=[{key:"copyFrom",value:function(o){this.parentCtx=o.parentCtx,this.invokingState=o.invokingState,this.children=null,this.start=o.start,this.stop=o.stop,o.children&&(this.children=[],o.children.map(function(u){u instanceof Km&&(this.children.push(u),u.parentCtx=this)},this))}},{key:"enterRule",value:function(o){}},{key:"exitRule",value:function(o){}},{key:"addChild",value:function(o){return this.children===null&&(this.children=[]),this.children.push(o),o}},{key:"removeLastChild",value:function(){this.children!==null&&this.children.pop()}},{key:"addTokenNode",value:function(o){var u=new Gm(o);return this.addChild(u),u.parentCtx=this,u}},{key:"addErrorNode",value:function(o){var u=new Km(o);return this.addChild(u),u.parentCtx=this,u}},{key:"getChild",value:function(o,u){if(u=u||null,this.children===null||o<0||o>=this.children.length)return null;if(u===null)return this.children[o];for(var v=0;v<this.children.length;v++){var x=this.children[v];if(x instanceof u){if(o===0)return x;o-=1}}return null}},{key:"getToken",value:function(o,u){if(this.children===null||u<0||u>=this.children.length)return null;for(var v=0;v<this.children.length;v++){var x=this.children[v];if(x instanceof on&&x.symbol.type===o){if(u===0)return x;u-=1}}return null}},{key:"getTokens",value:function(o){if(this.children===null)return[];for(var u=[],v=0;v<this.children.length;v++){var x=this.children[v];x instanceof on&&x.symbol.type===o&&u.push(x)}return u}},{key:"getTypedRuleContext",value:function(o,u){return this.getChild(u,o)}},{key:"getTypedRuleContexts",value:function(o){if(this.children===null)return[];for(var u=[],v=0;v<this.children.length;v++){var x=this.children[v];x instanceof o&&u.push(x)}return u}},{key:"getChildCount",value:function(){return this.children===null?0:this.children.length}},{key:"getSourceInterval",value:function(){return this.start===null||this.stop===null?ge.INVALID_INTERVAL:new ge(this.start.tokenIndex,this.stop.tokenIndex)}}])&&z0(r.prototype,d),Object.defineProperty(r,"prototype",{writable:!1}),m}(qi);function ip(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),r&&op(l,r)}function op(l,r){return op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,a){return d.__proto__=a,d},op(l,r)}function ap(l){var r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var d,a=Qc(l);if(r){var p=Qc(this).constructor;d=Reflect.construct(a,arguments,p)}else d=a.apply(this,arguments);return function(c,m){if(m&&(ts(m)==="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(c)}(this,d)}}function Qc(l){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qc(l)}function ts(l){return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ts(l)}function ns(l,r){var d=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(!d){if(Array.isArray(l)||(d=function(u,v){if(u){if(typeof u=="string")return zm(u,v);var x=Object.prototype.toString.call(u).slice(8,-1);return x==="Object"&&u.constructor&&(x=u.constructor.name),x==="Map"||x==="Set"?Array.from(u):x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?zm(u,v):void 0}}(l))||r&&l&&typeof l.length=="number"){d&&(l=d);var a=0,p=function(){};return{s:p,n:function(){return a>=l.length?{done:!0}:{done:!1,value:l[a++]}},e:function(u){throw u},f:p}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,m=!0,o=!1;return{s:function(){d=d.call(l)},n:function(){var u=d.next();return m=u.done,u},e:function(u){o=!0,c=u},f:function(){try{m||d.return==null||d.return()}finally{if(o)throw c}}}}function zm(l,r){(r==null||r>l.length)&&(r=l.length);for(var d=0,a=new Array(r);d<r;d++)a[d]=l[d];return a}function ru(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function Wm(l,r){for(var d=0;d<r.length;d++){var a=r[d];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,Xm(a.key),a)}}function iu(l,r,d){return r&&Wm(l.prototype,r),d&&Wm(l,d),Object.defineProperty(l,"prototype",{writable:!1}),l}function Xm(l){var r=function(d,a){if(ts(d)!=="object"||d===null)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var c=p.call(d,"string");if(ts(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(d)}(l);return ts(r)==="symbol"?r:String(r)}qi.EMPTY=new rp;var el,tl,sp,qm=function(){function l(r){ru(this,l),this.tokens=r,this.programs=new Map}return iu(l,[{key:"getTokenStream",value:function(){return this.tokens}},{key:"insertAfter",value:function(r,d){var a,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.DEFAULT_PROGRAM_NAME;a=typeof r=="number"?r:r.tokenIndex;var c=this.getProgram(p),m=new Jm(this.tokens,a,c.length,d);c.push(m)}},{key:"insertBefore",value:function(r,d){var a,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.DEFAULT_PROGRAM_NAME;a=typeof r=="number"?r:r.tokenIndex;var c=this.getProgram(p),m=new rs(this.tokens,a,c.length,d);c.push(m)}},{key:"replaceSingle",value:function(r,d){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.DEFAULT_PROGRAM_NAME;this.replace(r,r,d,a)}},{key:"replace",value:function(r,d,a){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:l.DEFAULT_PROGRAM_NAME;if(typeof r!="number"&&(r=r.tokenIndex),typeof d!="number"&&(d=d.tokenIndex),r>d||r<0||d<0||d>=this.tokens.size)throw new RangeError("replace: range invalid: ".concat(r,"..").concat(d,"(size=").concat(this.tokens.size,")"));var c=this.getProgram(p),m=new nl(this.tokens,r,d,c.length,a);c.push(m)}},{key:"delete",value:function(r,d){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.DEFAULT_PROGRAM_NAME;d===void 0&&(d=r),this.replace(r,d,null,a)}},{key:"getProgram",value:function(r){var d=this.programs.get(r);return d==null&&(d=this.initializeProgram(r)),d}},{key:"initializeProgram",value:function(r){var d=[];return this.programs.set(r,d),d}},{key:"getText",value:function(r){var d,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.DEFAULT_PROGRAM_NAME;d=r instanceof ge?r:new ge(0,this.tokens.size-1),typeof r=="string"&&(a=r);var p=this.programs.get(a),c=d.start,m=d.stop;if(m>this.tokens.size-1&&(m=this.tokens.size-1),c<0&&(c=0),p==null||p.length===0)return this.tokens.getText(new ge(c,m));for(var o=[],u=this.reduceToSingleOperationPerIndex(p),v=c;v<=m&&v<this.tokens.size;){var x=u.get(v);u.delete(v);var S=this.tokens.get(v);x==null?(S.type!==n.EOF&&o.push(String(S.text)),v++):v=x.execute(o)}if(m===this.tokens.size-1){var N,ee=ns(u.values());try{for(ee.s();!(N=ee.n()).done;){var Re=N.value;Re.index>=this.tokens.size-1&&o.push(Re.text.toString())}}catch(Ce){ee.e(Ce)}finally{ee.f()}}return o.join("")}},{key:"reduceToSingleOperationPerIndex",value:function(r){for(var d=0;d<r.length;d++){var a=r[d];if(a!=null&&a instanceof nl){var p,c=a,m=ns(this.getKindOfOps(r,rs,d));try{for(m.s();!(p=m.n()).done;){var o=p.value;o.index===c.index?(r[o.instructionIndex]=void 0,c.text=o.text.toString()+(c.text!=null?c.text.toString():"")):o.index>c.index&&o.index<=c.lastIndex&&(r[o.instructionIndex]=void 0)}}catch(xr){m.e(xr)}finally{m.f()}var u,v=ns(this.getKindOfOps(r,nl,d));try{for(v.s();!(u=v.n()).done;){var x=u.value;if(x.index>=c.index&&x.lastIndex<=c.lastIndex)r[x.instructionIndex]=void 0;else{var S=x.lastIndex<c.index||x.index>c.lastIndex;if(x.text!=null||c.text!=null||S){if(!S)throw new Error("replace op boundaries of ".concat(c," overlap with previous ").concat(x))}else r[x.instructionIndex]=void 0,c.index=Math.min(x.index,c.index),c.lastIndex=Math.max(x.lastIndex,c.lastIndex)}}}catch(xr){v.e(xr)}finally{v.f()}}}for(var N=0;N<r.length;N++){var ee=r[N];if(ee!=null&&ee instanceof rs){var Re,Ce=ee,He=ns(this.getKindOfOps(r,rs,N));try{for(He.s();!(Re=He.n()).done;){var at=Re.value;at.index===Ce.index&&(at instanceof Jm?(Ce.text=this.catOpText(at.text,Ce.text),r[at.instructionIndex]=void 0):at instanceof rs&&(Ce.text=this.catOpText(Ce.text,at.text),r[at.instructionIndex]=void 0))}}catch(xr){He.e(xr)}finally{He.f()}var ze,mn=ns(this.getKindOfOps(r,nl,N));try{for(mn.s();!(ze=mn.n()).done;){var hn=ze.value;if(Ce.index!==hn.index){if(Ce.index>=hn.index&&Ce.index<=hn.lastIndex)throw new Error("insert op ".concat(Ce," within boundaries of previous ").concat(hn))}else hn.text=this.catOpText(Ce.text,hn.text),r[N]=void 0}}catch(xr){mn.e(xr)}finally{mn.f()}}}var Kn,Ur=new Map,ki=ns(r);try{for(ki.s();!(Kn=ki.n()).done;){var Ri=Kn.value;if(Ri!=null){if(Ur.get(Ri.index)!=null)throw new Error("should only be one op per index");Ur.set(Ri.index,Ri)}}}catch(xr){ki.e(xr)}finally{ki.f()}return Ur}},{key:"catOpText",value:function(r,d){var a="",p="";return r!=null&&(a=r.toString()),d!=null&&(p=d.toString()),a+p}},{key:"getKindOfOps",value:function(r,d,a){return r.slice(0,a).filter(function(p){return p&&p instanceof d})}}]),l}();el=qm,sp="default",(tl=Xm(tl="DEFAULT_PROGRAM_NAME"))in el?Object.defineProperty(el,tl,{value:sp,enumerable:!0,configurable:!0,writable:!0}):el[tl]=sp;var Ym=function(){function l(r,d,a,p){ru(this,l),this.tokens=r,this.instructionIndex=a,this.index=d,this.text=p===void 0?"":p}return iu(l,[{key:"toString",value:function(){var r=this.constructor.name,d=r.indexOf("$");return"<"+(r=r.substring(d+1,r.length))+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}]),l}(),rs=function(l){ip(d,l);var r=ap(d);function d(a,p,c,m){return ru(this,d),r.call(this,a,p,c,m)}return iu(d,[{key:"execute",value:function(a){return this.text&&a.push(this.text.toString()),this.tokens.get(this.index).type!==n.EOF&&a.push(String(this.tokens.get(this.index).text)),this.index+1}}]),d}(Ym),Jm=function(l){ip(d,l);var r=ap(d);function d(a,p,c,m){return ru(this,d),r.call(this,a,p+1,c,m)}return iu(d)}(rs),nl=function(l){ip(d,l);var r=ap(d);function d(a,p,c,m,o){var u;return ru(this,d),(u=r.call(this,a,p,m,o)).lastIndex=c,u}return iu(d,[{key:"execute",value:function(a){return this.text&&a.push(this.text.toString()),this.lastIndex+1}},{key:"toString",value:function(){return this.text==null?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}]),d}(Ym);const W0={atn:y0,dfa:E0,context:S0,misc:T0,tree:C0,error:P0,Token:n,CommonToken:Is,CharStreams:Vm,CharStream:tu,InputStream:tu,CommonTokenStream:Hm,Lexer:ar,Parser:Qh,ParserRuleContext:rp,Interval:ge,IntervalSet:re,LL1Analyzer:Mo,Utils:M0,TokenStreamRewriter:qm}})();var Cr=kt.dx,up=kt.q2;kt.FO,kt.xf,kt.Gy;var Zm=kt.s4,Qm=kt.c7,cp=kt._7;kt.gp;var e_=kt.cK,t_=kt.zs,n_=kt.AV;kt.Xp,kt.VS,kt.ul;var r_=kt.hW,i_=kt.x1,pi=kt.z5;kt.oN;var o_=kt.TB;kt.u1;var a_=kt._b,s_=kt.$F,Qe=kt._T,lp=kt.db,u_=kt.Zx,et=kt._x;kt.r8,kt.JI,kt.TP;var fp=kt.WU;kt.Nj,kt.ZP;const M=class M extends a_{get grammarFileName(){return"tccScriptParser.g4"}get literalNames(){return M.literalNames}get symbolicNames(){return M.symbolicNames}get ruleNames(){return M.ruleNames}get serializedATN(){return M._serializedATN}createFailedPredicateException(e,n){return new t_(this,e,n)}constructor(e){super(e),this._interp=new s_(this,M._ATN,M.DecisionsToDFA,new lp)}program(){let e=new c_(this,this._ctx,this.state);this.enterRule(e,0,M.RULE_program);let n;try{this.enterOuterAlt(e,1);{for(this.state=102,this._errHandler.sync(this),n=this._input.LA(1);n===4||n===6||!(n-36&-32)&&1<<n-36&19237111;){switch(this.state=100,this._errHandler.sync(this),this._input.LA(1)){case 60:this.state=98,this.match(M.NEWLINE);break;case 4:case 6:case 36:case 37:case 38:case 40:case 41:case 42:case 43:case 47:case 51:case 52:case 54:case 57:this.state=99,this.globalStmt();break;default:throw new pi(this)}this.state=104,this._errHandler.sync(this),n=this._input.LA(1)}this.state=105,this.match(M.EOF)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}globalStmt(){let e=new rl(this,this._ctx,this.state);this.enterRule(e,2,M.RULE_globalStmt);let n;try{switch(this.state=118,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,3,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=107,this.variableDeclarationStmt(),this.state=109,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=108,this.match(M.Comma)),this.state=111,this.match(M.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=113,this.blockStmt();break;case 3:this.enterOuterAlt(e,3),this.state=114,this.importStmt();break;case 4:this.enterOuterAlt(e,4),this.state=115,this.arrowFunction();break;case 5:this.enterOuterAlt(e,5),this.state=116,this.arrowMethod();break;case 6:this.enterOuterAlt(e,6),this.state=117,this.typeStatement();break}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}blockStmt(){let e=new hp(this,this._ctx,this.state);this.enterRule(e,4,M.RULE_blockStmt);try{let n;this.enterOuterAlt(e,1);{for(this.state=125,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;)n===1&&(this.state=120,this.variableDeclarationStmt(),this.state=121,this.match(M.Comma)),this.state=127,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,4,this._ctx);switch(this.state=130,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 51:case 54:case 57:this.state=128,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=129,this.blockExpression();break;default:throw new pi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}stmt(){let e=new il(this,this._ctx,this.state);this.enterRule(e,6,M.RULE_stmt);let n;try{switch(this.state=139,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=132,this.simpleStmt(),this.state=134,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=133,this.match(M.Comma)),this.state=136,this.match(M.NEWLINE);break;case 2:this.enterOuterAlt(e,2),this.state=138,this.expressionBlockSequence();break}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}simpleStmt(){let e=new ol(this,this._ctx,this.state);this.enterRule(e,8,M.RULE_simpleStmt);try{switch(this.state=145,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,8,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=141,this.expressionSequence();break;case 2:this.enterOuterAlt(e,2),this.state=142,this.blockSequence();break;case 3:this.enterOuterAlt(e,3),this.state=143,this.brackethesized();break;case 4:this.enterOuterAlt(e,4),this.state=144,this.flowStmt();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}flowStmt(){let e=new pp(this,this._ctx,this.state);this.enterRule(e,10,M.RULE_flowStmt);let n;try{this.enterOuterAlt(e,1),this.state=147,n=this._input.LA(1),n===34||n===39?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}block(){let e=new is(this,this._ctx,this.state);this.enterRule(e,12,M.RULE_block);let n;try{switch(this.state=156,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 12:case 13:case 31:case 32:case 33:case 34:case 38:case 39:case 40:case 46:case 51:case 54:case 55:case 56:case 57:this.enterOuterAlt(e,1),this.state=149,this.simpleStmt(),this.state=151,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=150,this.match(M.Comma)),this.state=153,this.match(M.NEWLINE);break;case 60:this.enterOuterAlt(e,2),this.state=155,this.blockLine();break;default:throw new pi(this)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}blockLine(){let e=new po(this,this._ctx,this.state);this.enterRule(e,14,M.RULE_blockLine);let n;try{this.enterOuterAlt(e,1);{this.state=158,this.match(M.NEWLINE),this.state=159,this.match(M.INDENT),this.state=161,this._errHandler.sync(this),n=this._input.LA(1);do this.state=160,this.stmt(),this.state=163,this._errHandler.sync(this),n=this._input.LA(1);while(!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&63459303);this.state=165,this.match(M.DEDENT)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}variableDeclarationStmt(){let e=new ou(this,this._ctx,this.state);this.enterRule(e,16,M.RULE_variableDeclarationStmt);try{let n;this.enterOuterAlt(e,1);{switch(this.state=169,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,12,this._ctx)){case 1:this.state=167,this.methodStmt();break;case 2:this.state=168,this.variableDeclarationList();break}for(this.state=178,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=171,this.match(M.Comma),this.state=174,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.state=172,this.methodStmt();break;case 2:this.state=173,this.variableDeclarationList();break}this.state=180,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,14,this._ctx)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}variableDeclarationList(){let e=new wi(this,this._ctx,this.state);this.enterRule(e,18,M.RULE_variableDeclarationList);try{switch(this.state=189,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,15,this._ctx)){case 1:e=new f_(this,e),this.enterOuterAlt(e,1),this.state=181,this.varArrayDeclaration(),this.state=182,this.match(M.Assign),this.state=183,this.singleExpression(0);break;case 2:e=new l_(this,e),this.enterOuterAlt(e,2),this.state=185,this.name(),this.state=186,this.assignmentOperator(),this.state=187,this.singleExpression(0);break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varModifier(){let e=new al(this,this._ctx,this.state);this.enterRule(e,20,M.RULE_varModifier);let n;try{this.enterOuterAlt(e,1),this.state=191,n=this._input.LA(1),n===38||n===40?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}blockSequence(){let e=new dp(this,this._ctx,this.state);this.enterRule(e,22,M.RULE_blockSequence);try{let n;this.enterOuterAlt(e,1);{switch(this.state=195,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,16,this._ctx)){case 1:this.state=193,this.singleExpression(0);break;case 2:this.state=194,this.variableDeclarationList();break}for(this.state=204,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;){if(n===1)switch(this.state=197,this.match(M.Comma),this.state=200,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,17,this._ctx)){case 1:this.state=198,this.singleExpression(0);break;case 2:this.state=199,this.variableDeclarationList();break}this.state=206,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,18,this._ctx)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionSequence(){let e=new sl(this,this._ctx,this.state);this.enterRule(e,24,M.RULE_expressionSequence);try{let n;for(this.enterOuterAlt(e,1),this.state=207,this.singleExpression(0),this.state=212,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;)n===1&&(this.state=208,this.match(M.Comma),this.state=209,this.singleExpression(0)),this.state=214,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,19,this._ctx)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}expressionBlockSequence(){let e=new mp(this,this._ctx,this.state);this.enterRule(e,26,M.RULE_expressionBlockSequence);try{let n;this.enterOuterAlt(e,1);{for(this.state=223,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=217,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.state=215,this.singleExpression(0);break;case 2:this.state=216,this.variableDeclarationList();break}this.state=219,this.match(M.Comma)}this.state=225,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,21,this._ctx)}switch(this.state=228,this._errHandler.sync(this),this._input.LA(1)){case 4:case 6:case 38:case 40:case 51:case 54:case 57:this.state=226,this.varBlockStmt();break;case 37:case 41:case 42:case 43:this.state=227,this.blockExpression();break;default:throw new pi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varBlockStmt(){let e=new ul(this,this._ctx,this.state);this.enterRule(e,28,M.RULE_varBlockStmt);try{this.enterOuterAlt(e,1);{switch(this.state=236,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,23,this._ctx)){case 1:this.state=230,this.varArrayDeclaration(),this.state=231,this.match(M.Assign);break;case 2:this.state=233,this.name(),this.state=234,this.assignmentOperator();break}this.state=238,this.blockExpression()}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}varArrayDeclaration(){let e=new os(this,this._ctx,this.state);this.enterRule(e,30,M.RULE_varArrayDeclaration);let n;try{switch(this.state=258,this._errHandler.sync(this),this._input.LA(1)){case 38:case 40:case 51:case 54:case 57:e=new p_(this,e),this.enterOuterAlt(e,1);{switch(this.state=241,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=240,this.varModifier()),this.state=244,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,25,this._ctx)){case 1:this.state=243,this.typeGather();break}this.state=246,this.identifier()}break;case 4:e=new h_(this,e),this.enterOuterAlt(e,2);{for(this.state=247,this.match(M.OpenBracket),this.state=248,this.identifier(),this.state=253,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=249,this.match(M.Comma),this.state=250,this.identifier(),this.state=255,this._errHandler.sync(this),n=this._input.LA(1);this.state=256,this.match(M.CloseBracket)}break;default:throw new pi(this)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}blockExpression(){let e=new au(this,this._ctx,this.state);this.enterRule(e,32,M.RULE_blockExpression);try{switch(this.state=264,this._errHandler.sync(this),this._input.LA(1)){case 43:this.enterOuterAlt(e,1),this.state=260,this.ifStatement();break;case 37:this.enterOuterAlt(e,2),this.state=261,this.forStatement();break;case 42:this.enterOuterAlt(e,3),this.state=262,this.whileStatement();break;case 41:this.enterOuterAlt(e,4),this.state=263,this.switchStatement();break;default:throw new pi(this)}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}singleExpression(e){e===void 0&&(e=0);let n=this._ctx,i=this.state,s=new Ve(this,this._ctx,i),f=s,h=34;this.enterRecursionRule(s,34,M.RULE_singleExpression,e);let y;try{let E;this.enterOuterAlt(s,1);{switch(this.state=278,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,29,this._ctx)){case 1:s=new x_(this,s),this._ctx=s,f=s,this.state=267,this.methodStmt();break;case 2:s=new S_(this,s),this._ctx=s,f=s,this.state=268,y=this._input.LA(1),y===12||y===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=269,this.singleExpression(12);break;case 3:s=new T_(this,s),this._ctx=s,f=s,this.state=270,this.match(M.Not),this.state=271,this.singleExpression(11);break;case 4:s=new b_(this,s),this._ctx=s,f=s,this.state=272,this.name();break;case 5:s=new v_(this,s),this._ctx=s,f=s,this.state=273,this.literal();break;case 6:s=new d_(this,s),this._ctx=s,f=s,this.state=274,this.match(M.OpenParen),this.state=275,this.singleExpression(0),this.state=276,this.match(M.CloseParen);break}for(this._ctx.stop=this._input.LT(-1),this.state=311,this._errHandler.sync(this),E=this._interp.adaptivePredict(this._input,31,this._ctx);E!==2&&E!==Cr.INVALID_ALT_NUMBER;){if(E===1)switch(this._parseListeners!=null&&this.triggerExitRuleEvent(),f=s,this.state=309,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,30,this._ctx)){case 1:{if(s=new C_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=280,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=281,y=this._input.LA(1),!(y&-32)&&1<<y&114688?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=282,this.singleExpression(11)}break;case 2:{if(s=new m_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=283,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=284,y=this._input.LA(1),y===12||y===13?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=285,this.singleExpression(10)}break;case 3:{if(s=new __(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=286,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=287,y=this._input.LA(1),!(y&-32)&&1<<y&3932160?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=288,this.singleExpression(9)}break;case 4:{if(s=new O_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=289,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=290,y=this._input.LA(1),y===22||y===23?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=291,this.singleExpression(8)}break;case 5:{if(s=new g_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=292,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=293,this.match(M.And),this.state=294,this.singleExpression(7)}break;case 6:{if(s=new E_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=295,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=296,this.match(M.Or),this.state=297,this.singleExpression(6)}break;case 7:{if(s=new y_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=298,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=299,this.match(M.QuestionMark),this.state=300,this.singleExpression(0),this.state=301,this.match(M.Colon),this.state=302,this.singleExpression(4)}break;case 8:{if(s=new A_(this,new Ve(this,n,i)),this.pushNewRecursionContext(s,h,M.RULE_singleExpression),this.state=304,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=305,this.match(M.OpenBracket),this.state=306,this.singleExpression(0),this.state=307,this.match(M.CloseBracket)}break}this.state=313,this._errHandler.sync(this),E=this._interp.adaptivePredict(this._input,31,this._ctx)}}}catch(E){if(E instanceof et)s.exception=E,this._errHandler.reportError(this,E),this._errHandler.recover(this,E);else throw E}finally{this.unrollRecursionContexts(n)}return s}brackethesized(){let e=new cl(this,this._ctx,this.state);this.enterRule(e,36,M.RULE_brackethesized);try{this.enterOuterAlt(e,1),this.state=314,this.match(M.OpenBracket),this.state=315,this.expressionSequence(),this.state=316,this.match(M.CloseBracket)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}arguments(){let e=new _p(this,this._ctx,this.state);this.enterRule(e,38,M.RULE_arguments);let n;try{let i;this.enterOuterAlt(e,1);{if(this.state=318,this.match(M.OpenParen),this.state=330,this._errHandler.sync(this),n=this._input.LA(1),!(n&-32)&&1<<n&2147496016||!(n-32&-32)&&1<<n-32&63455235){for(this.state=319,this.argument(),this.state=324,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,32,this._ctx);i!==2&&i!==Cr.INVALID_ALT_NUMBER;)i===1&&(this.state=320,this.match(M.Comma),this.state=321,this.argument()),this.state=326,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,32,this._ctx);this.state=328,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=327,this.match(M.Comma))}this.state=332,this.match(M.CloseParen)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}argument(){let e=new ll(this,this._ctx,this.state);this.enterRule(e,40,M.RULE_argument);try{this.enterOuterAlt(e,1);{switch(this.state=337,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,35,this._ctx)){case 1:this.state=334,this.identifier(),this.state=335,this.match(M.Assign);break}switch(this.state=341,this._errHandler.sync(this),this._input.LA(1)){case 6:case 12:case 13:case 31:case 32:case 33:case 46:case 51:case 54:case 55:case 56:case 57:this.state=339,this.singleExpression(0);break;case 4:this.state=340,this.brackethesized();break;default:throw new pi(this)}}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}ifStatement(){let e=new yp(this,this._ctx,this.state);this.enterRule(e,42,M.RULE_ifStatement);let n;try{let i;this.enterOuterAlt(e,1);{for(this.state=343,this.match(M.If),this.state=344,this.singleExpression(0),this.state=345,this.blockLine(),this.state=353,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,37,this._ctx);i!==2&&i!==Cr.INVALID_ALT_NUMBER;)i===1&&(this.state=346,this.match(M.Else),this.state=347,this.match(M.If),this.state=348,this.singleExpression(0),this.state=349,this.blockLine()),this.state=355,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,37,this._ctx);this.state=358,this._errHandler.sync(this),n=this._input.LA(1),n===48&&(this.state=356,this.match(M.Else),this.state=357,this.blockLine())}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}forStatement(){let e=new su(this,this._ctx,this.state);this.enterRule(e,44,M.RULE_forStatement);let n;try{switch(this.state=392,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:e=new D_(this,e),this.enterOuterAlt(e,1);{switch(this.state=360,this.match(M.For),this.state=362,this._errHandler.sync(this),n=this._input.LA(1),(n===38||n===40)&&(this.state=361,this.varModifier()),this.state=365,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,40,this._ctx)){case 1:this.state=364,this.typeGather();break}this.state=367,this.identifier(),this.state=368,this.match(M.Assign),this.state=369,this.singleExpression(0),this.state=370,this.match(M.To),this.state=371,this.singleExpression(0),this.state=374,this._errHandler.sync(this),n=this._input.LA(1),n===50&&(this.state=372,this.match(M.By),this.state=373,this.singleExpression(0)),this.state=376,this.blockLine()}break;case 2:e=new k_(this,e),this.enterOuterAlt(e,2);{switch(this.state=378,this.match(M.For),this.state=386,this._errHandler.sync(this),this._input.LA(1)){case 51:case 54:case 57:this.state=379,this.identifier();break;case 4:this.state=380,this.match(M.OpenBracket),this.state=381,this.identifier(),this.state=382,this.match(M.Comma),this.state=383,this.identifier(),this.state=384,this.match(M.CloseBracket);break;default:throw new pi(this)}this.state=388,this.match(M.In),this.state=389,this.singleExpression(0),this.state=390,this.blockLine()}break}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}switchStatement(){let e=new gp(this,this._ctx,this.state);this.enterRule(e,46,M.RULE_switchStatement);let n;try{this.enterOuterAlt(e,1);{this.state=394,this.match(M.Switch),this.state=396,this._errHandler.sync(this),n=this._input.LA(1),(!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&63455235)&&(this.state=395,this.singleExpression(0)),this.state=398,this.match(M.NEWLINE),this.state=399,this.match(M.INDENT);{for(this.state=403,this._errHandler.sync(this),n=this._input.LA(1);!(n&-32)&&1<<n&2147496e3||!(n-32&-32)&&1<<n-32&63455235;)this.state=400,this.caseClause(),this.state=405,this._errHandler.sync(this),n=this._input.LA(1);this.state=407,this._errHandler.sync(this),n=this._input.LA(1),n===29&&(this.state=406,this.defaultCaluse())}this.state=409,this.match(M.DEDENT)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}caseClause(){let e=new fl(this,this._ctx,this.state);this.enterRule(e,48,M.RULE_caseClause);try{this.enterOuterAlt(e,1),this.state=411,this.singleExpression(0),this.state=412,this.match(M.ARROW),this.state=413,this.block()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}defaultCaluse(){let e=new bp(this,this._ctx,this.state);this.enterRule(e,50,M.RULE_defaultCaluse);try{this.enterOuterAlt(e,1),this.state=415,this.match(M.ARROW),this.state=416,this.block()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}whileStatement(){let e=new vp(this,this._ctx,this.state);this.enterRule(e,52,M.RULE_whileStatement);try{this.enterOuterAlt(e,1),this.state=418,this.match(M.While),this.state=419,this.singleExpression(0),this.state=420,this.blockLine()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}importStmt(){let e=new Ep(this,this._ctx,this.state);this.enterRule(e,54,M.RULE_importStmt);let n;try{let i;this.enterOuterAlt(e,1);{for(this.state=422,this.importElement(),this.state=427,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,47,this._ctx);i!==2&&i!==Cr.INVALID_ALT_NUMBER;)i===1&&(this.state=423,this.match(M.Comma),this.state=424,this.importElement()),this.state=429,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,47,this._ctx);this.state=431,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=430,this.match(M.Comma)),this.state=433,this.match(M.NEWLINE)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}importElement(){let e=new hl(this,this._ctx,this.state);this.enterRule(e,56,M.RULE_importElement);let n;try{this.enterOuterAlt(e,1),this.state=435,this.match(M.Import),this.state=436,this.identifier(),this.state=437,this.match(M.Divide),this.state=438,this.identifier(),this.state=439,this.match(M.Divide),this.state=440,this.match(M.IntegerLiteral),this.state=443,this._errHandler.sync(this),n=this._input.LA(1),n===53&&(this.state=441,this.match(M.As),this.state=442,this.identifier())}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}literal(){let e=new Sp(this,this._ctx,this.state);this.enterRule(e,58,M.RULE_literal);let n;try{this.enterOuterAlt(e,1),this.state=445,n=this._input.LA(1),!(n-31&-32)&&1<<n-31&50331655?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}methodStmt(){let e=new uu(this,this._ctx,this.state);this.enterRule(e,60,M.RULE_methodStmt);try{let n;for(this.enterOuterAlt(e,1),this.state=447,this.methodElement(),this.state=452,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,50,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;)n===1&&(this.state=448,this.match(M.Point),this.state=449,this.methodElement()),this.state=454,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,50,this._ctx)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodElement(){let e=new as(this,this._ctx,this.state);this.enterRule(e,62,M.RULE_methodElement);try{this.enterOuterAlt(e,1),this.state=455,this.methodName(),this.state=456,this.arguments()}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}methodName(){let e=new Tp(this,this._ctx,this.state);this.enterRule(e,64,M.RULE_methodName);let n;try{let i;this.enterOuterAlt(e,1);{switch(this.state=471,this._errHandler.sync(this),this._input.LA(1)){case 51:case 54:case 57:for(this.state=463,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,51,this._ctx);i!==2&&i!==Cr.INVALID_ALT_NUMBER;)i===1&&(this.state=458,this.identifier(),this.state=459,this.match(M.Point)),this.state=465,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,51,this._ctx);break;case 6:this.state=466,this.match(M.OpenParen),this.state=467,this.singleExpression(0),this.state=468,this.match(M.CloseParen),this.state=469,this.match(M.Point);break;default:throw new pi(this)}this.state=473,this.identifier(),this.state=482,this._errHandler.sync(this),n=this._input.LA(1),n===18&&(this.state=474,this.match(M.LessThan),this.state=475,this.typeName(),this.state=478,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=476,this.match(M.Comma),this.state=477,this.typeName()),this.state=480,this.match(M.MoreThan))}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}arrowFunction(){let e=new Ap(this,this._ctx,this.state);this.enterRule(e,66,M.RULE_arrowFunction);let n;try{this.enterOuterAlt(e,1),this.state=485,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=484,this.match(M.Export)),this.state=487,this.identifier(),this.state=488,this.arrowFunctionParameters(),this.state=489,this.match(M.ARROW),this.state=490,this.block()}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}arrowFunctionParameters(){let e=new xp(this,this._ctx,this.state);this.enterRule(e,68,M.RULE_arrowFunctionParameters);let n;try{this.enterOuterAlt(e,1),this.state=492,this.match(M.OpenParen),this.state=494,this._errHandler.sync(this),n=this._input.LA(1),!(n-51&-32)&&1<<n-51&73&&(this.state=493,this.formalParameterList()),this.state=496,this.match(M.CloseParen)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}formalParameterList(){let e=new pl(this,this._ctx,this.state);this.enterRule(e,70,M.RULE_formalParameterList);let n;try{for(this.enterOuterAlt(e,1),this.state=498,this.formalParameterArg(),this.state=503,this._errHandler.sync(this),n=this._input.LA(1);n===8;)this.state=499,this.match(M.Comma),this.state=500,this.formalParameterArg(),this.state=505,this._errHandler.sync(this),n=this._input.LA(1)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}formalParameterArg(){let e=new dl(this,this._ctx,this.state);this.enterRule(e,72,M.RULE_formalParameterArg);let n;try{this.enterOuterAlt(e,1);{switch(this.state=507,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,58,this._ctx)){case 1:this.state=506,this.typeGather();break}this.state=509,this.identifier(),this.state=512,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=510,this.match(M.Assign),this.state=511,this.singleExpression(0))}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}arrowMethod(){let e=new Op(this,this._ctx,this.state);this.enterRule(e,74,M.RULE_arrowMethod);let n;try{this.enterOuterAlt(e,1),this.state=515,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=514,this.match(M.Export)),this.state=517,this.match(M.Method),this.state=518,this.identifier(),this.state=519,this.arrowMethodParameters(),this.state=520,this.match(M.ARROW),this.state=521,this.block()}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}arrowMethodParameters(){let e=new Cp(this,this._ctx,this.state);this.enterRule(e,76,M.RULE_arrowMethodParameters);let n;try{this.enterOuterAlt(e,1),this.state=523,this.match(M.OpenParen),this.state=524,this.typeGather(),this.state=525,this.identifier(),this.state=528,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=526,this.match(M.Assign),this.state=527,this.singleExpression(0)),this.state=532,this._errHandler.sync(this),n=this._input.LA(1),n===8&&(this.state=530,this.match(M.Comma),this.state=531,this.formalParameterList()),this.state=534,this.match(M.CloseParen)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}typeStatement(){let e=new Dp(this,this._ctx,this.state);this.enterRule(e,78,M.RULE_typeStatement);let n;try{this.enterOuterAlt(e,1);{this.state=537,this._errHandler.sync(this),n=this._input.LA(1),n===36&&(this.state=536,this.match(M.Export)),this.state=539,this.match(M.Type),this.state=540,this.identifier(),this.state=541,this.match(M.NEWLINE),this.state=542,this.match(M.INDENT),this.state=544,this._errHandler.sync(this),n=this._input.LA(1);do this.state=543,this.typeElement(),this.state=546,this._errHandler.sync(this),n=this._input.LA(1);while(!(n-40&-32)&&1<<n-40&149505);this.state=548,this.match(M.DEDENT)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}typeElement(){let e=new ml(this,this._ctx,this.state);this.enterRule(e,80,M.RULE_typeElement);let n;try{this.enterOuterAlt(e,1);{switch(this.state=551,this._errHandler.sync(this),n=this._input.LA(1),n===40&&(this.state=550,this.match(M.Varip)),this.state=554,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,66,this._ctx)){case 1:this.state=553,this.typeGather();break}this.state=556,this.identifier(),this.state=559,this._errHandler.sync(this),n=this._input.LA(1),n===9&&(this.state=557,this.match(M.Assign),this.state=558,this.singleExpression(0)),this.state=561,this.match(M.NEWLINE)}}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}assignmentOperator(){let e=new _l(this,this._ctx,this.state);this.enterRule(e,82,M.RULE_assignmentOperator);let n;try{this.enterOuterAlt(e,1),this.state=563,n=this._input.LA(1),!(n&-32)&&1<<n&1593835520?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}typeMap(){let e=new yl(this,this._ctx,this.state);this.enterRule(e,84,M.RULE_typeMap);try{this.enterOuterAlt(e,1),this.state=565,this.match(M.Map),this.state=566,this.match(M.LessThan),this.state=567,this.typeName(),this.state=568,this.match(M.Comma),this.state=569,this.typeName(),this.state=570,this.match(M.MoreThan)}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeSeries(){let e=new kp(this,this._ctx,this.state);this.enterRule(e,86,M.RULE_typeSeries);try{switch(this.enterOuterAlt(e,1),this.state=572,this.typeName(),this.state=576,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,68,this._ctx)){case 1:this.state=573,this.typeName();break;case 2:this.state=574,this.typeArray();break;case 3:this.state=575,this.typeMap();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeArray(){let e=new gl(this,this._ctx,this.state);this.enterRule(e,88,M.RULE_typeArray);try{switch(this.state=587,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=578,this.typeName(),this.state=579,this.match(M.LessThan),this.state=580,this.typeName(),this.state=581,this.match(M.MoreThan);break;case 2:this.enterOuterAlt(e,2),this.state=583,this.typeName(),this.state=584,this.match(M.OpenBracket),this.state=585,this.match(M.CloseBracket);break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}typeGather(){let e=new jo(this,this._ctx,this.state);this.enterRule(e,90,M.RULE_typeGather);try{switch(this.state=593,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,70,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=589,this.typeName();break;case 2:this.enterOuterAlt(e,2),this.state=590,this.typeArray();break;case 3:this.enterOuterAlt(e,3),this.state=591,this.typeMap();break;case 4:this.enterOuterAlt(e,4),this.state=592,this.typeSeries();break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}identifier(){let e=new xn(this,this._ctx,this.state);this.enterRule(e,92,M.RULE_identifier);let n;try{this.enterOuterAlt(e,1),this.state=595,n=this._input.LA(1),!(n-51&-32)&&1<<n-51&73?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}typeName(){let e=new di(this,this._ctx,this.state);this.enterRule(e,94,M.RULE_typeName);let n;try{this.enterOuterAlt(e,1),this.state=597,this.identifier(),this.state=600,this._errHandler.sync(this),n=this._input.LA(1),n===3&&(this.state=598,this.match(M.Point),this.state=599,this.identifier())}catch(i){if(i instanceof et)e.exception=i,this._errHandler.reportError(this,i),this._errHandler.recover(this,i);else throw i}finally{this.exitRule()}return e}name(){let e=new cu(this,this._ctx,this.state);this.enterRule(e,96,M.RULE_name);try{let n;switch(this.state=623,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,75,this._ctx)){case 1:this.enterOuterAlt(e,1);{for(this.state=610,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,73,this._ctx);n!==2&&n!==Cr.INVALID_ALT_NUMBER;){if(n===1){switch(this.state=604,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,72,this._ctx)){case 1:this.state=602,this.identifier();break;case 2:this.state=603,this.methodElement();break}this.state=606,this.match(M.Point)}this.state=612,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,73,this._ctx)}this.state=613,this.identifier()}break;case 2:this.enterOuterAlt(e,2);{this.state=614,this.match(M.OpenParen),this.state=615,this.singleExpression(0),this.state=616,this.match(M.CloseParen),this.state=619,this._errHandler.sync(this),n=1;do{switch(n){case 1:this.state=617,this.match(M.Point),this.state=618,this.identifier();break;default:throw new pi(this)}this.state=621,this._errHandler.sync(this),n=this._interp.adaptivePredict(this._input,74,this._ctx)}while(n!==2&&n!==Cr.INVALID_ALT_NUMBER)}break}}catch(n){if(n instanceof et)e.exception=n,this._errHandler.reportError(this,n),this._errHandler.recover(this,n);else throw n}finally{this.exitRule()}return e}sempred(e,n,i){switch(n){case 17:return this.singleExpression_sempred(e,i)}return!0}singleExpression_sempred(e,n){switch(n){case 0:return this.precpred(this._ctx,10);case 1:return this.precpred(this._ctx,9);case 2:return this.precpred(this._ctx,8);case 3:return this.precpred(this._ctx,7);case 4:return this.precpred(this._ctx,6);case 5:return this.precpred(this._ctx,5);case 6:return this.precpred(this._ctx,4);case 7:return this.precpred(this._ctx,13)}return!0}static get _ATN(){return M.__ATN||(M.__ATN=new up().deserialize(M._serializedATN)),M.__ATN}};k(M,"INDENT",1),k(M,"DEDENT",2),k(M,"Point",3),k(M,"OpenBracket",4),k(M,"CloseBracket",5),k(M,"OpenParen",6),k(M,"CloseParen",7),k(M,"Comma",8),k(M,"Assign",9),k(M,"QuestionMark",10),k(M,"Colon",11),k(M,"Plus",12),k(M,"Minus",13),k(M,"Multiply",14),k(M,"Divide",15),k(M,"Modulus",16),k(M,"Hashtag",17),k(M,"LessThan",18),k(M,"MoreThan",19),k(M,"LessThanEquals",20),k(M,"GreaterThanEquals",21),k(M,"Equals_",22),k(M,"NotEquals",23),k(M,"MultiplyAssign",24),k(M,"DivideAssign",25),k(M,"ModulusAssign",26),k(M,"PlusAssign",27),k(M,"MinusAssign",28),k(M,"ARROW",29),k(M,"ColonEquals",30),k(M,"BooleanLiteral",31),k(M,"IntegerLiteral",32),k(M,"DecimalLiteral",33),k(M,"Break",34),k(M,"And",35),k(M,"Export",36),k(M,"For",37),k(M,"Var",38),k(M,"Continue",39),k(M,"Varip",40),k(M,"Switch",41),k(M,"While",42),k(M,"If",43),k(M,"In",44),k(M,"Or",45),k(M,"Not",46),k(M,"Method",47),k(M,"Else",48),k(M,"To",49),k(M,"By",50),k(M,"Type",51),k(M,"Import",52),k(M,"As",53),k(M,"Map",54),k(M,"ColorLiteral",55),k(M,"StringLiteral",56),k(M,"Identifier",57),k(M,"HIDDEN_",58),k(M,"COMMENT_",59),k(M,"NEWLINE",60),k(M,"EOF",fp.EOF),k(M,"RULE_program",0),k(M,"RULE_globalStmt",1),k(M,"RULE_blockStmt",2),k(M,"RULE_stmt",3),k(M,"RULE_simpleStmt",4),k(M,"RULE_flowStmt",5),k(M,"RULE_block",6),k(M,"RULE_blockLine",7),k(M,"RULE_variableDeclarationStmt",8),k(M,"RULE_variableDeclarationList",9),k(M,"RULE_varModifier",10),k(M,"RULE_blockSequence",11),k(M,"RULE_expressionSequence",12),k(M,"RULE_expressionBlockSequence",13),k(M,"RULE_varBlockStmt",14),k(M,"RULE_varArrayDeclaration",15),k(M,"RULE_blockExpression",16),k(M,"RULE_singleExpression",17),k(M,"RULE_brackethesized",18),k(M,"RULE_arguments",19),k(M,"RULE_argument",20),k(M,"RULE_ifStatement",21),k(M,"RULE_forStatement",22),k(M,"RULE_switchStatement",23),k(M,"RULE_caseClause",24),k(M,"RULE_defaultCaluse",25),k(M,"RULE_whileStatement",26),k(M,"RULE_importStmt",27),k(M,"RULE_importElement",28),k(M,"RULE_literal",29),k(M,"RULE_methodStmt",30),k(M,"RULE_methodElement",31),k(M,"RULE_methodName",32),k(M,"RULE_arrowFunction",33),k(M,"RULE_arrowFunctionParameters",34),k(M,"RULE_formalParameterList",35),k(M,"RULE_formalParameterArg",36),k(M,"RULE_arrowMethod",37),k(M,"RULE_arrowMethodParameters",38),k(M,"RULE_typeStatement",39),k(M,"RULE_typeElement",40),k(M,"RULE_assignmentOperator",41),k(M,"RULE_typeMap",42),k(M,"RULE_typeSeries",43),k(M,"RULE_typeArray",44),k(M,"RULE_typeGather",45),k(M,"RULE_identifier",46),k(M,"RULE_typeName",47),k(M,"RULE_name",48),k(M,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'map'"]),k(M,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),k(M,"ruleNames",["program","globalStmt","blockStmt","stmt","simpleStmt","flowStmt","block","blockLine","variableDeclarationStmt","variableDeclarationList","varModifier","blockSequence","expressionSequence","expressionBlockSequence","varBlockStmt","varArrayDeclaration","blockExpression","singleExpression","brackethesized","arguments","argument","ifStatement","forStatement","switchStatement","caseClause","defaultCaluse","whileStatement","importStmt","importElement","literal","methodStmt","methodElement","methodName","arrowFunction","arrowFunctionParameters","formalParameterList","formalParameterArg","arrowMethod","arrowMethodParameters","typeStatement","typeElement","assignmentOperator","typeMap","typeSeries","typeArray","typeGather","identifier","typeName","name"]),k(M,"_serializedATN",[4,1,60,626,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,1,0,1,0,5,0,101,8,0,10,0,12,0,104,9,0,1,0,1,0,1,1,1,1,3,1,110,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,119,8,1,1,2,1,2,1,2,5,2,124,8,2,10,2,12,2,127,9,2,1,2,1,2,3,2,131,8,2,1,3,1,3,3,3,135,8,3,1,3,1,3,1,3,3,3,140,8,3,1,4,1,4,1,4,1,4,3,4,146,8,4,1,5,1,5,1,6,1,6,3,6,152,8,6,1,6,1,6,1,6,3,6,157,8,6,1,7,1,7,1,7,4,7,162,8,7,11,7,12,7,163,1,7,1,7,1,8,1,8,3,8,170,8,8,1,8,1,8,1,8,3,8,175,8,8,5,8,177,8,8,10,8,12,8,180,9,8,1,9,1,9,1,9,1,9,1,9,1,9,1,9,1,9,3,9,190,8,9,1,10,1,10,1,11,1,11,3,11,196,8,11,1,11,1,11,1,11,3,11,201,8,11,5,11,203,8,11,10,11,12,11,206,9,11,1,12,1,12,1,12,5,12,211,8,12,10,12,12,12,214,9,12,1,13,1,13,3,13,218,8,13,1,13,1,13,5,13,222,8,13,10,13,12,13,225,9,13,1,13,1,13,3,13,229,8,13,1,14,1,14,1,14,1,14,1,14,1,14,3,14,237,8,14,1,14,1,14,1,15,3,15,242,8,15,1,15,3,15,245,8,15,1,15,1,15,1,15,1,15,1,15,5,15,252,8,15,10,15,12,15,255,9,15,1,15,1,15,3,15,259,8,15,1,16,1,16,1,16,1,16,3,16,265,8,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,3,17,279,8,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,5,17,310,8,17,10,17,12,17,313,9,17,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,5,19,323,8,19,10,19,12,19,326,9,19,1,19,3,19,329,8,19,3,19,331,8,19,1,19,1,19,1,20,1,20,1,20,3,20,338,8,20,1,20,1,20,3,20,342,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,352,8,21,10,21,12,21,355,9,21,1,21,1,21,3,21,359,8,21,1,22,1,22,3,22,363,8,22,1,22,3,22,366,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,375,8,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,387,8,22,1,22,1,22,1,22,1,22,3,22,393,8,22,1,23,1,23,3,23,397,8,23,1,23,1,23,1,23,5,23,402,8,23,10,23,12,23,405,9,23,1,23,3,23,408,8,23,1,23,1,23,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,5,27,426,8,27,10,27,12,27,429,9,27,1,27,3,27,432,8,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,444,8,28,1,29,1,29,1,30,1,30,1,30,5,30,451,8,30,10,30,12,30,454,9,30,1,31,1,31,1,31,1,32,1,32,1,32,5,32,462,8,32,10,32,12,32,465,9,32,1,32,1,32,1,32,1,32,1,32,3,32,472,8,32,1,32,1,32,1,32,1,32,1,32,3,32,479,8,32,1,32,1,32,3,32,483,8,32,1,33,3,33,486,8,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,3,34,495,8,34,1,34,1,34,1,35,1,35,1,35,5,35,502,8,35,10,35,12,35,505,9,35,1,36,3,36,508,8,36,1,36,1,36,1,36,3,36,513,8,36,1,37,3,37,516,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,3,38,529,8,38,1,38,1,38,3,38,533,8,38,1,38,1,38,1,39,3,39,538,8,39,1,39,1,39,1,39,1,39,1,39,4,39,545,8,39,11,39,12,39,546,1,39,1,39,1,40,3,40,552,8,40,1,40,3,40,555,8,40,1,40,1,40,1,40,3,40,560,8,40,1,40,1,40,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,3,43,577,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,588,8,44,1,45,1,45,1,45,1,45,3,45,594,8,45,1,46,1,46,1,47,1,47,1,47,3,47,601,8,47,1,48,1,48,3,48,605,8,48,1,48,1,48,5,48,609,8,48,10,48,12,48,612,9,48,1,48,1,48,1,48,1,48,1,48,1,48,4,48,620,8,48,11,48,12,48,621,3,48,624,8,48,1,48,0,1,34,49,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,0,9,2,0,34,34,39,39,2,0,38,38,40,40,1,0,12,13,1,0,14,16,1,0,18,21,1,0,22,23,2,0,31,33,55,56,2,0,24,28,30,30,3,0,51,51,54,54,57,57,673,0,102,1,0,0,0,2,118,1,0,0,0,4,125,1,0,0,0,6,139,1,0,0,0,8,145,1,0,0,0,10,147,1,0,0,0,12,156,1,0,0,0,14,158,1,0,0,0,16,169,1,0,0,0,18,189,1,0,0,0,20,191,1,0,0,0,22,195,1,0,0,0,24,207,1,0,0,0,26,223,1,0,0,0,28,236,1,0,0,0,30,258,1,0,0,0,32,264,1,0,0,0,34,278,1,0,0,0,36,314,1,0,0,0,38,318,1,0,0,0,40,337,1,0,0,0,42,343,1,0,0,0,44,392,1,0,0,0,46,394,1,0,0,0,48,411,1,0,0,0,50,415,1,0,0,0,52,418,1,0,0,0,54,422,1,0,0,0,56,435,1,0,0,0,58,445,1,0,0,0,60,447,1,0,0,0,62,455,1,0,0,0,64,471,1,0,0,0,66,485,1,0,0,0,68,492,1,0,0,0,70,498,1,0,0,0,72,507,1,0,0,0,74,515,1,0,0,0,76,523,1,0,0,0,78,537,1,0,0,0,80,551,1,0,0,0,82,563,1,0,0,0,84,565,1,0,0,0,86,572,1,0,0,0,88,587,1,0,0,0,90,593,1,0,0,0,92,595,1,0,0,0,94,597,1,0,0,0,96,623,1,0,0,0,98,101,5,60,0,0,99,101,3,2,1,0,100,98,1,0,0,0,100,99,1,0,0,0,101,104,1,0,0,0,102,100,1,0,0,0,102,103,1,0,0,0,103,105,1,0,0,0,104,102,1,0,0,0,105,106,5,0,0,1,106,1,1,0,0,0,107,109,3,16,8,0,108,110,5,8,0,0,109,108,1,0,0,0,109,110,1,0,0,0,110,111,1,0,0,0,111,112,5,60,0,0,112,119,1,0,0,0,113,119,3,4,2,0,114,119,3,54,27,0,115,119,3,66,33,0,116,119,3,74,37,0,117,119,3,78,39,0,118,107,1,0,0,0,118,113,1,0,0,0,118,114,1,0,0,0,118,115,1,0,0,0,118,116,1,0,0,0,118,117,1,0,0,0,119,3,1,0,0,0,120,121,3,16,8,0,121,122,5,8,0,0,122,124,1,0,0,0,123,120,1,0,0,0,124,127,1,0,0,0,125,123,1,0,0,0,125,126,1,0,0,0,126,130,1,0,0,0,127,125,1,0,0,0,128,131,3,28,14,0,129,131,3,32,16,0,130,128,1,0,0,0,130,129,1,0,0,0,131,5,1,0,0,0,132,134,3,8,4,0,133,135,5,8,0,0,134,133,1,0,0,0,134,135,1,0,0,0,135,136,1,0,0,0,136,137,5,60,0,0,137,140,1,0,0,0,138,140,3,26,13,0,139,132,1,0,0,0,139,138,1,0,0,0,140,7,1,0,0,0,141,146,3,24,12,0,142,146,3,22,11,0,143,146,3,36,18,0,144,146,3,10,5,0,145,141,1,0,0,0,145,142,1,0,0,0,145,143,1,0,0,0,145,144,1,0,0,0,146,9,1,0,0,0,147,148,7,0,0,0,148,11,1,0,0,0,149,151,3,8,4,0,150,152,5,8,0,0,151,150,1,0,0,0,151,152,1,0,0,0,152,153,1,0,0,0,153,154,5,60,0,0,154,157,1,0,0,0,155,157,3,14,7,0,156,149,1,0,0,0,156,155,1,0,0,0,157,13,1,0,0,0,158,159,5,60,0,0,159,161,5,1,0,0,160,162,3,6,3,0,161,160,1,0,0,0,162,163,1,0,0,0,163,161,1,0,0,0,163,164,1,0,0,0,164,165,1,0,0,0,165,166,5,2,0,0,166,15,1,0,0,0,167,170,3,60,30,0,168,170,3,18,9,0,169,167,1,0,0,0,169,168,1,0,0,0,170,178,1,0,0,0,171,174,5,8,0,0,172,175,3,60,30,0,173,175,3,18,9,0,174,172,1,0,0,0,174,173,1,0,0,0,175,177,1,0,0,0,176,171,1,0,0,0,177,180,1,0,0,0,178,176,1,0,0,0,178,179,1,0,0,0,179,17,1,0,0,0,180,178,1,0,0,0,181,182,3,30,15,0,182,183,5,9,0,0,183,184,3,34,17,0,184,190,1,0,0,0,185,186,3,96,48,0,186,187,3,82,41,0,187,188,3,34,17,0,188,190,1,0,0,0,189,181,1,0,0,0,189,185,1,0,0,0,190,19,1,0,0,0,191,192,7,1,0,0,192,21,1,0,0,0,193,196,3,34,17,0,194,196,3,18,9,0,195,193,1,0,0,0,195,194,1,0,0,0,196,204,1,0,0,0,197,200,5,8,0,0,198,201,3,34,17,0,199,201,3,18,9,0,200,198,1,0,0,0,200,199,1,0,0,0,201,203,1,0,0,0,202,197,1,0,0,0,203,206,1,0,0,0,204,202,1,0,0,0,204,205,1,0,0,0,205,23,1,0,0,0,206,204,1,0,0,0,207,212,3,34,17,0,208,209,5,8,0,0,209,211,3,34,17,0,210,208,1,0,0,0,211,214,1,0,0,0,212,210,1,0,0,0,212,213,1,0,0,0,213,25,1,0,0,0,214,212,1,0,0,0,215,218,3,34,17,0,216,218,3,18,9,0,217,215,1,0,0,0,217,216,1,0,0,0,218,219,1,0,0,0,219,220,5,8,0,0,220,222,1,0,0,0,221,217,1,0,0,0,222,225,1,0,0,0,223,221,1,0,0,0,223,224,1,0,0,0,224,228,1,0,0,0,225,223,1,0,0,0,226,229,3,28,14,0,227,229,3,32,16,0,228,226,1,0,0,0,228,227,1,0,0,0,229,27,1,0,0,0,230,231,3,30,15,0,231,232,5,9,0,0,232,237,1,0,0,0,233,234,3,96,48,0,234,235,3,82,41,0,235,237,1,0,0,0,236,230,1,0,0,0,236,233,1,0,0,0,237,238,1,0,0,0,238,239,3,32,16,0,239,29,1,0,0,0,240,242,3,20,10,0,241,240,1,0,0,0,241,242,1,0,0,0,242,244,1,0,0,0,243,245,3,90,45,0,244,243,1,0,0,0,244,245,1,0,0,0,245,246,1,0,0,0,246,259,3,92,46,0,247,248,5,4,0,0,248,253,3,92,46,0,249,250,5,8,0,0,250,252,3,92,46,0,251,249,1,0,0,0,252,255,1,0,0,0,253,251,1,0,0,0,253,254,1,0,0,0,254,256,1,0,0,0,255,253,1,0,0,0,256,257,5,5,0,0,257,259,1,0,0,0,258,241,1,0,0,0,258,247,1,0,0,0,259,31,1,0,0,0,260,265,3,42,21,0,261,265,3,44,22,0,262,265,3,52,26,0,263,265,3,46,23,0,264,260,1,0,0,0,264,261,1,0,0,0,264,262,1,0,0,0,264,263,1,0,0,0,265,33,1,0,0,0,266,267,6,17,-1,0,267,279,3,60,30,0,268,269,7,2,0,0,269,279,3,34,17,12,270,271,5,46,0,0,271,279,3,34,17,11,272,279,3,96,48,0,273,279,3,58,29,0,274,275,5,6,0,0,275,276,3,34,17,0,276,277,5,7,0,0,277,279,1,0,0,0,278,266,1,0,0,0,278,268,1,0,0,0,278,270,1,0,0,0,278,272,1,0,0,0,278,273,1,0,0,0,278,274,1,0,0,0,279,311,1,0,0,0,280,281,10,10,0,0,281,282,7,3,0,0,282,310,3,34,17,11,283,284,10,9,0,0,284,285,7,2,0,0,285,310,3,34,17,10,286,287,10,8,0,0,287,288,7,4,0,0,288,310,3,34,17,9,289,290,10,7,0,0,290,291,7,5,0,0,291,310,3,34,17,8,292,293,10,6,0,0,293,294,5,35,0,0,294,310,3,34,17,7,295,296,10,5,0,0,296,297,5,45,0,0,297,310,3,34,17,6,298,299,10,4,0,0,299,300,5,10,0,0,300,301,3,34,17,0,301,302,5,11,0,0,302,303,3,34,17,4,303,310,1,0,0,0,304,305,10,13,0,0,305,306,5,4,0,0,306,307,3,34,17,0,307,308,5,5,0,0,308,310,1,0,0,0,309,280,1,0,0,0,309,283,1,0,0,0,309,286,1,0,0,0,309,289,1,0,0,0,309,292,1,0,0,0,309,295,1,0,0,0,309,298,1,0,0,0,309,304,1,0,0,0,310,313,1,0,0,0,311,309,1,0,0,0,311,312,1,0,0,0,312,35,1,0,0,0,313,311,1,0,0,0,314,315,5,4,0,0,315,316,3,24,12,0,316,317,5,5,0,0,317,37,1,0,0,0,318,330,5,6,0,0,319,324,3,40,20,0,320,321,5,8,0,0,321,323,3,40,20,0,322,320,1,0,0,0,323,326,1,0,0,0,324,322,1,0,0,0,324,325,1,0,0,0,325,328,1,0,0,0,326,324,1,0,0,0,327,329,5,8,0,0,328,327,1,0,0,0,328,329,1,0,0,0,329,331,1,0,0,0,330,319,1,0,0,0,330,331,1,0,0,0,331,332,1,0,0,0,332,333,5,7,0,0,333,39,1,0,0,0,334,335,3,92,46,0,335,336,5,9,0,0,336,338,1,0,0,0,337,334,1,0,0,0,337,338,1,0,0,0,338,341,1,0,0,0,339,342,3,34,17,0,340,342,3,36,18,0,341,339,1,0,0,0,341,340,1,0,0,0,342,41,1,0,0,0,343,344,5,43,0,0,344,345,3,34,17,0,345,353,3,14,7,0,346,347,5,48,0,0,347,348,5,43,0,0,348,349,3,34,17,0,349,350,3,14,7,0,350,352,1,0,0,0,351,346,1,0,0,0,352,355,1,0,0,0,353,351,1,0,0,0,353,354,1,0,0,0,354,358,1,0,0,0,355,353,1,0,0,0,356,357,5,48,0,0,357,359,3,14,7,0,358,356,1,0,0,0,358,359,1,0,0,0,359,43,1,0,0,0,360,362,5,37,0,0,361,363,3,20,10,0,362,361,1,0,0,0,362,363,1,0,0,0,363,365,1,0,0,0,364,366,3,90,45,0,365,364,1,0,0,0,365,366,1,0,0,0,366,367,1,0,0,0,367,368,3,92,46,0,368,369,5,9,0,0,369,370,3,34,17,0,370,371,5,49,0,0,371,374,3,34,17,0,372,373,5,50,0,0,373,375,3,34,17,0,374,372,1,0,0,0,374,375,1,0,0,0,375,376,1,0,0,0,376,377,3,14,7,0,377,393,1,0,0,0,378,386,5,37,0,0,379,387,3,92,46,0,380,381,5,4,0,0,381,382,3,92,46,0,382,383,5,8,0,0,383,384,3,92,46,0,384,385,5,5,0,0,385,387,1,0,0,0,386,379,1,0,0,0,386,380,1,0,0,0,387,388,1,0,0,0,388,389,5,44,0,0,389,390,3,34,17,0,390,391,3,14,7,0,391,393,1,0,0,0,392,360,1,0,0,0,392,378,1,0,0,0,393,45,1,0,0,0,394,396,5,41,0,0,395,397,3,34,17,0,396,395,1,0,0,0,396,397,1,0,0,0,397,398,1,0,0,0,398,399,5,60,0,0,399,403,5,1,0,0,400,402,3,48,24,0,401,400,1,0,0,0,402,405,1,0,0,0,403,401,1,0,0,0,403,404,1,0,0,0,404,407,1,0,0,0,405,403,1,0,0,0,406,408,3,50,25,0,407,406,1,0,0,0,407,408,1,0,0,0,408,409,1,0,0,0,409,410,5,2,0,0,410,47,1,0,0,0,411,412,3,34,17,0,412,413,5,29,0,0,413,414,3,12,6,0,414,49,1,0,0,0,415,416,5,29,0,0,416,417,3,12,6,0,417,51,1,0,0,0,418,419,5,42,0,0,419,420,3,34,17,0,420,421,3,14,7,0,421,53,1,0,0,0,422,427,3,56,28,0,423,424,5,8,0,0,424,426,3,56,28,0,425,423,1,0,0,0,426,429,1,0,0,0,427,425,1,0,0,0,427,428,1,0,0,0,428,431,1,0,0,0,429,427,1,0,0,0,430,432,5,8,0,0,431,430,1,0,0,0,431,432,1,0,0,0,432,433,1,0,0,0,433,434,5,60,0,0,434,55,1,0,0,0,435,436,5,52,0,0,436,437,3,92,46,0,437,438,5,15,0,0,438,439,3,92,46,0,439,440,5,15,0,0,440,443,5,32,0,0,441,442,5,53,0,0,442,444,3,92,46,0,443,441,1,0,0,0,443,444,1,0,0,0,444,57,1,0,0,0,445,446,7,6,0,0,446,59,1,0,0,0,447,452,3,62,31,0,448,449,5,3,0,0,449,451,3,62,31,0,450,448,1,0,0,0,451,454,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,61,1,0,0,0,454,452,1,0,0,0,455,456,3,64,32,0,456,457,3,38,19,0,457,63,1,0,0,0,458,459,3,92,46,0,459,460,5,3,0,0,460,462,1,0,0,0,461,458,1,0,0,0,462,465,1,0,0,0,463,461,1,0,0,0,463,464,1,0,0,0,464,472,1,0,0,0,465,463,1,0,0,0,466,467,5,6,0,0,467,468,3,34,17,0,468,469,5,7,0,0,469,470,5,3,0,0,470,472,1,0,0,0,471,463,1,0,0,0,471,466,1,0,0,0,472,473,1,0,0,0,473,482,3,92,46,0,474,475,5,18,0,0,475,478,3,94,47,0,476,477,5,8,0,0,477,479,3,94,47,0,478,476,1,0,0,0,478,479,1,0,0,0,479,480,1,0,0,0,480,481,5,19,0,0,481,483,1,0,0,0,482,474,1,0,0,0,482,483,1,0,0,0,483,65,1,0,0,0,484,486,5,36,0,0,485,484,1,0,0,0,485,486,1,0,0,0,486,487,1,0,0,0,487,488,3,92,46,0,488,489,3,68,34,0,489,490,5,29,0,0,490,491,3,12,6,0,491,67,1,0,0,0,492,494,5,6,0,0,493,495,3,70,35,0,494,493,1,0,0,0,494,495,1,0,0,0,495,496,1,0,0,0,496,497,5,7,0,0,497,69,1,0,0,0,498,503,3,72,36,0,499,500,5,8,0,0,500,502,3,72,36,0,501,499,1,0,0,0,502,505,1,0,0,0,503,501,1,0,0,0,503,504,1,0,0,0,504,71,1,0,0,0,505,503,1,0,0,0,506,508,3,90,45,0,507,506,1,0,0,0,507,508,1,0,0,0,508,509,1,0,0,0,509,512,3,92,46,0,510,511,5,9,0,0,511,513,3,34,17,0,512,510,1,0,0,0,512,513,1,0,0,0,513,73,1,0,0,0,514,516,5,36,0,0,515,514,1,0,0,0,515,516,1,0,0,0,516,517,1,0,0,0,517,518,5,47,0,0,518,519,3,92,46,0,519,520,3,76,38,0,520,521,5,29,0,0,521,522,3,12,6,0,522,75,1,0,0,0,523,524,5,6,0,0,524,525,3,90,45,0,525,528,3,92,46,0,526,527,5,9,0,0,527,529,3,34,17,0,528,526,1,0,0,0,528,529,1,0,0,0,529,532,1,0,0,0,530,531,5,8,0,0,531,533,3,70,35,0,532,530,1,0,0,0,532,533,1,0,0,0,533,534,1,0,0,0,534,535,5,7,0,0,535,77,1,0,0,0,536,538,5,36,0,0,537,536,1,0,0,0,537,538,1,0,0,0,538,539,1,0,0,0,539,540,5,51,0,0,540,541,3,92,46,0,541,542,5,60,0,0,542,544,5,1,0,0,543,545,3,80,40,0,544,543,1,0,0,0,545,546,1,0,0,0,546,544,1,0,0,0,546,547,1,0,0,0,547,548,1,0,0,0,548,549,5,2,0,0,549,79,1,0,0,0,550,552,5,40,0,0,551,550,1,0,0,0,551,552,1,0,0,0,552,554,1,0,0,0,553,555,3,90,45,0,554,553,1,0,0,0,554,555,1,0,0,0,555,556,1,0,0,0,556,559,3,92,46,0,557,558,5,9,0,0,558,560,3,34,17,0,559,557,1,0,0,0,559,560,1,0,0,0,560,561,1,0,0,0,561,562,5,60,0,0,562,81,1,0,0,0,563,564,7,7,0,0,564,83,1,0,0,0,565,566,5,54,0,0,566,567,5,18,0,0,567,568,3,94,47,0,568,569,5,8,0,0,569,570,3,94,47,0,570,571,5,19,0,0,571,85,1,0,0,0,572,576,3,94,47,0,573,577,3,94,47,0,574,577,3,88,44,0,575,577,3,84,42,0,576,573,1,0,0,0,576,574,1,0,0,0,576,575,1,0,0,0,577,87,1,0,0,0,578,579,3,94,47,0,579,580,5,18,0,0,580,581,3,94,47,0,581,582,5,19,0,0,582,588,1,0,0,0,583,584,3,94,47,0,584,585,5,4,0,0,585,586,5,5,0,0,586,588,1,0,0,0,587,578,1,0,0,0,587,583,1,0,0,0,588,89,1,0,0,0,589,594,3,94,47,0,590,594,3,88,44,0,591,594,3,84,42,0,592,594,3,86,43,0,593,589,1,0,0,0,593,590,1,0,0,0,593,591,1,0,0,0,593,592,1,0,0,0,594,91,1,0,0,0,595,596,7,8,0,0,596,93,1,0,0,0,597,600,3,92,46,0,598,599,5,3,0,0,599,601,3,92,46,0,600,598,1,0,0,0,600,601,1,0,0,0,601,95,1,0,0,0,602,605,3,92,46,0,603,605,3,62,31,0,604,602,1,0,0,0,604,603,1,0,0,0,605,606,1,0,0,0,606,607,5,3,0,0,607,609,1,0,0,0,608,604,1,0,0,0,609,612,1,0,0,0,610,608,1,0,0,0,610,611,1,0,0,0,611,613,1,0,0,0,612,610,1,0,0,0,613,624,3,92,46,0,614,615,5,6,0,0,615,616,3,34,17,0,616,619,5,7,0,0,617,618,5,3,0,0,618,620,3,92,46,0,619,617,1,0,0,0,620,621,1,0,0,0,621,619,1,0,0,0,621,622,1,0,0,0,622,624,1,0,0,0,623,610,1,0,0,0,623,614,1,0,0,0,624,97,1,0,0,0,76,100,102,109,118,125,130,134,139,145,151,156,163,169,174,178,189,195,200,204,212,217,223,228,236,241,244,253,258,264,278,309,311,324,328,330,337,341,353,358,362,365,374,386,392,396,403,407,427,431,443,452,463,471,478,482,485,494,503,507,512,515,528,532,537,546,551,554,559,576,587,593,600,604,610,621,623]),k(M,"__ATN"),k(M,"DecisionsToDFA",M._ATN.decisionToState.map((e,n)=>new cp(e,n)));let F=M;class c_ extends Qe{constructor(e,n,i){super(n,i),this.parser=e}EOF(){return this.getToken(F.EOF,0)}NEWLINE_list(){return this.getTokens(F.NEWLINE)}NEWLINE(e){return this.getToken(F.NEWLINE,e)}globalStmt_list(){return this.getTypedRuleContexts(rl)}globalStmt(e){return this.getTypedRuleContext(rl,e)}get ruleIndex(){return F.RULE_program}accept(e){return e.visitProgram?e.visitProgram(this):e.visitChildren(this)}}class rl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}variableDeclarationStmt(){return this.getTypedRuleContext(ou,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma(){return this.getToken(F.Comma,0)}blockStmt(){return this.getTypedRuleContext(hp,0)}importStmt(){return this.getTypedRuleContext(Ep,0)}arrowFunction(){return this.getTypedRuleContext(Ap,0)}arrowMethod(){return this.getTypedRuleContext(Op,0)}typeStatement(){return this.getTypedRuleContext(Dp,0)}get ruleIndex(){return F.RULE_globalStmt}accept(e){return e.visitGlobalStmt?e.visitGlobalStmt(this):e.visitChildren(this)}}class hp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(ul,0)}blockExpression(){return this.getTypedRuleContext(au,0)}variableDeclarationStmt_list(){return this.getTypedRuleContexts(ou)}variableDeclarationStmt(e){return this.getTypedRuleContext(ou,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_blockStmt}accept(e){return e.visitBlockStmt?e.visitBlockStmt(this):e.visitChildren(this)}}class il extends Qe{constructor(e,n,i){super(n,i),this.parser=e}simpleStmt(){return this.getTypedRuleContext(ol,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma(){return this.getToken(F.Comma,0)}expressionBlockSequence(){return this.getTypedRuleContext(mp,0)}get ruleIndex(){return F.RULE_stmt}accept(e){return e.visitStmt?e.visitStmt(this):e.visitChildren(this)}}class ol extends Qe{constructor(e,n,i){super(n,i),this.parser=e}expressionSequence(){return this.getTypedRuleContext(sl,0)}blockSequence(){return this.getTypedRuleContext(dp,0)}brackethesized(){return this.getTypedRuleContext(cl,0)}flowStmt(){return this.getTypedRuleContext(pp,0)}get ruleIndex(){return F.RULE_simpleStmt}accept(e){return e.visitSimpleStmt?e.visitSimpleStmt(this):e.visitChildren(this)}}class pp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Break(){return this.getToken(F.Break,0)}Continue(){return this.getToken(F.Continue,0)}get ruleIndex(){return F.RULE_flowStmt}accept(e){return e.visitFlowStmt?e.visitFlowStmt(this):e.visitChildren(this)}}class is extends Qe{constructor(e,n,i){super(n,i),this.parser=e}simpleStmt(){return this.getTypedRuleContext(ol,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma(){return this.getToken(F.Comma,0)}blockLine(){return this.getTypedRuleContext(po,0)}get ruleIndex(){return F.RULE_block}accept(e){return e.visitBlock?e.visitBlock(this):e.visitChildren(this)}}class po extends Qe{constructor(e,n,i){super(n,i),this.parser=e}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}stmt_list(){return this.getTypedRuleContexts(il)}stmt(e){return this.getTypedRuleContext(il,e)}get ruleIndex(){return F.RULE_blockLine}accept(e){return e.visitBlockLine?e.visitBlockLine(this):e.visitChildren(this)}}class ou extends Qe{constructor(e,n,i){super(n,i),this.parser=e}methodStmt_list(){return this.getTypedRuleContexts(uu)}methodStmt(e){return this.getTypedRuleContext(uu,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(wi)}variableDeclarationList(e){return this.getTypedRuleContext(wi,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_variableDeclarationStmt}accept(e){return e.visitVariableDeclarationStmt?e.visitVariableDeclarationStmt(this):e.visitChildren(this)}}class wi extends Qe{constructor(e,n,i){super(n,i),this.parser=e}get ruleIndex(){return F.RULE_variableDeclarationList}copyFrom(e){super.copyFrom(e)}}class l_ extends wi{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(cu,0)}assignmentOperator(){return this.getTypedRuleContext(_l,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}accept(e){return e.visitAgainAssign?e.visitAgainAssign(this):e.visitChildren(this)}}class f_ extends wi{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}varArrayDeclaration(){return this.getTypedRuleContext(os,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}accept(e){return e.visitDeclareAssign?e.visitDeclareAssign(this):e.visitChildren(this)}}class al extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Var(){return this.getToken(F.Var,0)}Varip(){return this.getToken(F.Varip,0)}get ruleIndex(){return F.RULE_varModifier}accept(e){return e.visitVarModifier?e.visitVarModifier(this):e.visitChildren(this)}}class dp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(wi)}variableDeclarationList(e){return this.getTypedRuleContext(wi,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_blockSequence}accept(e){return e.visitBlockSequence?e.visitBlockSequence(this):e.visitChildren(this)}}class sl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_expressionSequence}accept(e){return e.visitExpressionSequence?e.visitExpressionSequence(this):e.visitChildren(this)}}class mp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}varBlockStmt(){return this.getTypedRuleContext(ul,0)}blockExpression(){return this.getTypedRuleContext(au,0)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}variableDeclarationList_list(){return this.getTypedRuleContexts(wi)}variableDeclarationList(e){return this.getTypedRuleContext(wi,e)}get ruleIndex(){return F.RULE_expressionBlockSequence}accept(e){return e.visitExpressionBlockSequence?e.visitExpressionBlockSequence(this):e.visitChildren(this)}}class ul extends Qe{constructor(e,n,i){super(n,i),this.parser=e}blockExpression(){return this.getTypedRuleContext(au,0)}varArrayDeclaration(){return this.getTypedRuleContext(os,0)}Assign(){return this.getToken(F.Assign,0)}name(){return this.getTypedRuleContext(cu,0)}assignmentOperator(){return this.getTypedRuleContext(_l,0)}get ruleIndex(){return F.RULE_varBlockStmt}accept(e){return e.visitVarBlockStmt?e.visitVarBlockStmt(this):e.visitChildren(this)}}class os extends Qe{constructor(e,n,i){super(n,i),this.parser=e}get ruleIndex(){return F.RULE_varArrayDeclaration}copyFrom(e){super.copyFrom(e)}}class h_ extends os{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenBracket(){return this.getToken(F.OpenBracket,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}CloseBracket(){return this.getToken(F.CloseBracket,0)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}accept(e){return e.visitVarMultiple?e.visitVarMultiple(this):e.visitChildren(this)}}class p_ extends os{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}identifier(){return this.getTypedRuleContext(xn,0)}varModifier(){return this.getTypedRuleContext(al,0)}typeGather(){return this.getTypedRuleContext(jo,0)}accept(e){return e.visitVarSingle?e.visitVarSingle(this):e.visitChildren(this)}}class au extends Qe{constructor(e,n,i){super(n,i),this.parser=e}ifStatement(){return this.getTypedRuleContext(yp,0)}forStatement(){return this.getTypedRuleContext(su,0)}whileStatement(){return this.getTypedRuleContext(vp,0)}switchStatement(){return this.getTypedRuleContext(gp,0)}get ruleIndex(){return F.RULE_blockExpression}accept(e){return e.visitBlockExpression?e.visitBlockExpression(this):e.visitChildren(this)}}class Ve extends Qe{constructor(e,n,i){super(n,i),this.parser=e}get ruleIndex(){return F.RULE_singleExpression}copyFrom(e){super.copyFrom(e)}}class d_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}OpenParen(){return this.getToken(F.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}CloseParen(){return this.getToken(F.CloseParen,0)}accept(e){return e.visitParenthesizedExpression?e.visitParenthesizedExpression(this):e.visitChildren(this)}}class m_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}Plus(){return this.getToken(F.Plus,0)}Minus(){return this.getToken(F.Minus,0)}accept(e){return e.visitAdditiveExpression?e.visitAdditiveExpression(this):e.visitChildren(this)}}class __ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}LessThan(){return this.getToken(F.LessThan,0)}MoreThan(){return this.getToken(F.MoreThan,0)}LessThanEquals(){return this.getToken(F.LessThanEquals,0)}GreaterThanEquals(){return this.getToken(F.GreaterThanEquals,0)}accept(e){return e.visitRelationalExpression?e.visitRelationalExpression(this):e.visitChildren(this)}}class y_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}QuestionMark(){return this.getToken(F.QuestionMark,0)}Colon(){return this.getToken(F.Colon,0)}accept(e){return e.visitTernaryExpression?e.visitTernaryExpression(this):e.visitChildren(this)}}class g_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}And(){return this.getToken(F.And,0)}accept(e){return e.visitLogicalAndExpression?e.visitLogicalAndExpression(this):e.visitChildren(this)}}class b_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}name(){return this.getTypedRuleContext(cu,0)}accept(e){return e.visitNameExpression?e.visitNameExpression(this):e.visitChildren(this)}}class v_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}literal(){return this.getTypedRuleContext(Sp,0)}accept(e){return e.visitLiteralExpression?e.visitLiteralExpression(this):e.visitChildren(this)}}class E_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}Or(){return this.getToken(F.Or,0)}accept(e){return e.visitLogicalOrExpression?e.visitLogicalOrExpression(this):e.visitChildren(this)}}class S_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression(){return this.getTypedRuleContext(Ve,0)}Minus(){return this.getToken(F.Minus,0)}Plus(){return this.getToken(F.Plus,0)}accept(e){return e.visitUnaryExpression?e.visitUnaryExpression(this):e.visitChildren(this)}}class T_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}Not(){return this.getToken(F.Not,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}accept(e){return e.visitNotExpression?e.visitNotExpression(this):e.visitChildren(this)}}class A_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}OpenBracket(){return this.getToken(F.OpenBracket,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}accept(e){return e.visitMemberIndexExpression?e.visitMemberIndexExpression(this):e.visitChildren(this)}}class x_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}methodStmt(){return this.getTypedRuleContext(uu,0)}accept(e){return e.visitMethodExpression?e.visitMethodExpression(this):e.visitChildren(this)}}class O_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}Equals_(){return this.getToken(F.Equals_,0)}NotEquals(){return this.getToken(F.NotEquals,0)}accept(e){return e.visitEqualityExpression?e.visitEqualityExpression(this):e.visitChildren(this)}}class C_ extends Ve{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}Multiply(){return this.getToken(F.Multiply,0)}Divide(){return this.getToken(F.Divide,0)}Modulus(){return this.getToken(F.Modulus,0)}accept(e){return e.visitMultiplicativeExpression?e.visitMultiplicativeExpression(this):e.visitChildren(this)}}class cl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}OpenBracket(){return this.getToken(F.OpenBracket,0)}expressionSequence(){return this.getTypedRuleContext(sl,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}get ruleIndex(){return F.RULE_brackethesized}accept(e){return e.visitBrackethesized?e.visitBrackethesized(this):e.visitChildren(this)}}class _p extends Qe{constructor(e,n,i){super(n,i),this.parser=e}OpenParen(){return this.getToken(F.OpenParen,0)}CloseParen(){return this.getToken(F.CloseParen,0)}argument_list(){return this.getTypedRuleContexts(ll)}argument(e){return this.getTypedRuleContext(ll,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_arguments}accept(e){return e.visitArguments?e.visitArguments(this):e.visitChildren(this)}}class ll extends Qe{constructor(e,n,i){super(n,i),this.parser=e}singleExpression(){return this.getTypedRuleContext(Ve,0)}brackethesized(){return this.getTypedRuleContext(cl,0)}identifier(){return this.getTypedRuleContext(xn,0)}Assign(){return this.getToken(F.Assign,0)}get ruleIndex(){return F.RULE_argument}accept(e){return e.visitArgument?e.visitArgument(this):e.visitChildren(this)}}class yp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}If_list(){return this.getTokens(F.If)}If(e){return this.getToken(F.If,e)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}blockLine_list(){return this.getTypedRuleContexts(po)}blockLine(e){return this.getTypedRuleContext(po,e)}Else_list(){return this.getTokens(F.Else)}Else(e){return this.getToken(F.Else,e)}get ruleIndex(){return F.RULE_ifStatement}accept(e){return e.visitIfStatement?e.visitIfStatement(this):e.visitChildren(this)}}class su extends Qe{constructor(e,n,i){super(n,i),this.parser=e}get ruleIndex(){return F.RULE_forStatement}copyFrom(e){super.copyFrom(e)}}class D_ extends su{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(F.For,0)}identifier(){return this.getTypedRuleContext(xn,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression_list(){return this.getTypedRuleContexts(Ve)}singleExpression(e){return this.getTypedRuleContext(Ve,e)}To(){return this.getToken(F.To,0)}blockLine(){return this.getTypedRuleContext(po,0)}varModifier(){return this.getTypedRuleContext(al,0)}typeGather(){return this.getTypedRuleContext(jo,0)}By(){return this.getToken(F.By,0)}accept(e){return e.visitForToStatement?e.visitForToStatement(this):e.visitChildren(this)}}class k_ extends su{constructor(e,n){super(e,n.parentCtx,n.invokingState),super.copyFrom(n)}For(){return this.getToken(F.For,0)}In(){return this.getToken(F.In,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}blockLine(){return this.getTypedRuleContext(po,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}OpenBracket(){return this.getToken(F.OpenBracket,0)}Comma(){return this.getToken(F.Comma,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}accept(e){return e.visitForInStatement?e.visitForInStatement(this):e.visitChildren(this)}}class gp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Switch(){return this.getToken(F.Switch,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}caseClause_list(){return this.getTypedRuleContexts(fl)}caseClause(e){return this.getTypedRuleContext(fl,e)}defaultCaluse(){return this.getTypedRuleContext(bp,0)}get ruleIndex(){return F.RULE_switchStatement}accept(e){return e.visitSwitchStatement?e.visitSwitchStatement(this):e.visitChildren(this)}}class fl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}singleExpression(){return this.getTypedRuleContext(Ve,0)}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(is,0)}get ruleIndex(){return F.RULE_caseClause}accept(e){return e.visitCaseClause?e.visitCaseClause(this):e.visitChildren(this)}}class bp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(is,0)}get ruleIndex(){return F.RULE_defaultCaluse}accept(e){return e.visitDefaultCaluse?e.visitDefaultCaluse(this):e.visitChildren(this)}}class vp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}While(){return this.getToken(F.While,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}blockLine(){return this.getTypedRuleContext(po,0)}get ruleIndex(){return F.RULE_whileStatement}accept(e){return e.visitWhileStatement?e.visitWhileStatement(this):e.visitChildren(this)}}class Ep extends Qe{constructor(e,n,i){super(n,i),this.parser=e}importElement_list(){return this.getTypedRuleContexts(hl)}importElement(e){return this.getTypedRuleContext(hl,e)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_importStmt}accept(e){return e.visitImportStmt?e.visitImportStmt(this):e.visitChildren(this)}}class hl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Import(){return this.getToken(F.Import,0)}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Divide_list(){return this.getTokens(F.Divide)}Divide(e){return this.getToken(F.Divide,e)}IntegerLiteral(){return this.getToken(F.IntegerLiteral,0)}As(){return this.getToken(F.As,0)}get ruleIndex(){return F.RULE_importElement}accept(e){return e.visitImportElement?e.visitImportElement(this):e.visitChildren(this)}}class Sp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}BooleanLiteral(){return this.getToken(F.BooleanLiteral,0)}ColorLiteral(){return this.getToken(F.ColorLiteral,0)}StringLiteral(){return this.getToken(F.StringLiteral,0)}IntegerLiteral(){return this.getToken(F.IntegerLiteral,0)}DecimalLiteral(){return this.getToken(F.DecimalLiteral,0)}get ruleIndex(){return F.RULE_literal}accept(e){return e.visitLiteral?e.visitLiteral(this):e.visitChildren(this)}}class uu extends Qe{constructor(e,n,i){super(n,i),this.parser=e}methodElement_list(){return this.getTypedRuleContexts(as)}methodElement(e){return this.getTypedRuleContext(as,e)}Point_list(){return this.getTokens(F.Point)}Point(e){return this.getToken(F.Point,e)}get ruleIndex(){return F.RULE_methodStmt}accept(e){return e.visitMethodStmt?e.visitMethodStmt(this):e.visitChildren(this)}}class as extends Qe{constructor(e,n,i){super(n,i),this.parser=e}methodName(){return this.getTypedRuleContext(Tp,0)}arguments(){return this.getTypedRuleContext(_p,0)}get ruleIndex(){return F.RULE_methodElement}accept(e){return e.visitMethodElement?e.visitMethodElement(this):e.visitChildren(this)}}class Tp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}OpenParen(){return this.getToken(F.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}CloseParen(){return this.getToken(F.CloseParen,0)}Point_list(){return this.getTokens(F.Point)}Point(e){return this.getToken(F.Point,e)}LessThan(){return this.getToken(F.LessThan,0)}typeName_list(){return this.getTypedRuleContexts(di)}typeName(e){return this.getTypedRuleContext(di,e)}MoreThan(){return this.getToken(F.MoreThan,0)}Comma(){return this.getToken(F.Comma,0)}get ruleIndex(){return F.RULE_methodName}accept(e){return e.visitMethodName?e.visitMethodName(this):e.visitChildren(this)}}class Ap extends Qe{constructor(e,n,i){super(n,i),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}arrowFunctionParameters(){return this.getTypedRuleContext(xp,0)}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(is,0)}Export(){return this.getToken(F.Export,0)}get ruleIndex(){return F.RULE_arrowFunction}accept(e){return e.visitArrowFunction?e.visitArrowFunction(this):e.visitChildren(this)}}class xp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}OpenParen(){return this.getToken(F.OpenParen,0)}CloseParen(){return this.getToken(F.CloseParen,0)}formalParameterList(){return this.getTypedRuleContext(pl,0)}get ruleIndex(){return F.RULE_arrowFunctionParameters}accept(e){return e.visitArrowFunctionParameters?e.visitArrowFunctionParameters(this):e.visitChildren(this)}}class pl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}formalParameterArg_list(){return this.getTypedRuleContexts(dl)}formalParameterArg(e){return this.getTypedRuleContext(dl,e)}Comma_list(){return this.getTokens(F.Comma)}Comma(e){return this.getToken(F.Comma,e)}get ruleIndex(){return F.RULE_formalParameterList}accept(e){return e.visitFormalParameterList?e.visitFormalParameterList(this):e.visitChildren(this)}}class dl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}typeGather(){return this.getTypedRuleContext(jo,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}get ruleIndex(){return F.RULE_formalParameterArg}accept(e){return e.visitFormalParameterArg?e.visitFormalParameterArg(this):e.visitChildren(this)}}class Op extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Method(){return this.getToken(F.Method,0)}identifier(){return this.getTypedRuleContext(xn,0)}arrowMethodParameters(){return this.getTypedRuleContext(Cp,0)}ARROW(){return this.getToken(F.ARROW,0)}block(){return this.getTypedRuleContext(is,0)}Export(){return this.getToken(F.Export,0)}get ruleIndex(){return F.RULE_arrowMethod}accept(e){return e.visitArrowMethod?e.visitArrowMethod(this):e.visitChildren(this)}}class Cp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}OpenParen(){return this.getToken(F.OpenParen,0)}typeGather(){return this.getTypedRuleContext(jo,0)}identifier(){return this.getTypedRuleContext(xn,0)}CloseParen(){return this.getToken(F.CloseParen,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}Comma(){return this.getToken(F.Comma,0)}formalParameterList(){return this.getTypedRuleContext(pl,0)}get ruleIndex(){return F.RULE_arrowMethodParameters}accept(e){return e.visitArrowMethodParameters?e.visitArrowMethodParameters(this):e.visitChildren(this)}}class Dp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Type(){return this.getToken(F.Type,0)}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}INDENT(){return this.getToken(F.INDENT,0)}DEDENT(){return this.getToken(F.DEDENT,0)}Export(){return this.getToken(F.Export,0)}typeElement_list(){return this.getTypedRuleContexts(ml)}typeElement(e){return this.getTypedRuleContext(ml,e)}get ruleIndex(){return F.RULE_typeStatement}accept(e){return e.visitTypeStatement?e.visitTypeStatement(this):e.visitChildren(this)}}class ml extends Qe{constructor(e,n,i){super(n,i),this.parser=e}identifier(){return this.getTypedRuleContext(xn,0)}NEWLINE(){return this.getToken(F.NEWLINE,0)}Varip(){return this.getToken(F.Varip,0)}typeGather(){return this.getTypedRuleContext(jo,0)}Assign(){return this.getToken(F.Assign,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}get ruleIndex(){return F.RULE_typeElement}accept(e){return e.visitTypeElement?e.visitTypeElement(this):e.visitChildren(this)}}class _l extends Qe{constructor(e,n,i){super(n,i),this.parser=e}ColonEquals(){return this.getToken(F.ColonEquals,0)}MultiplyAssign(){return this.getToken(F.MultiplyAssign,0)}DivideAssign(){return this.getToken(F.DivideAssign,0)}ModulusAssign(){return this.getToken(F.ModulusAssign,0)}PlusAssign(){return this.getToken(F.PlusAssign,0)}MinusAssign(){return this.getToken(F.MinusAssign,0)}get ruleIndex(){return F.RULE_assignmentOperator}accept(e){return e.visitAssignmentOperator?e.visitAssignmentOperator(this):e.visitChildren(this)}}class yl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Map(){return this.getToken(F.Map,0)}LessThan(){return this.getToken(F.LessThan,0)}Comma(){return this.getToken(F.Comma,0)}typeName_list(){return this.getTypedRuleContexts(di)}typeName(e){return this.getTypedRuleContext(di,e)}MoreThan(){return this.getToken(F.MoreThan,0)}get ruleIndex(){return F.RULE_typeMap}accept(e){return e.visitTypeMap?e.visitTypeMap(this):e.visitChildren(this)}}class kp extends Qe{constructor(e,n,i){super(n,i),this.parser=e}typeName_list(){return this.getTypedRuleContexts(di)}typeName(e){return this.getTypedRuleContext(di,e)}typeArray(){return this.getTypedRuleContext(gl,0)}typeMap(){return this.getTypedRuleContext(yl,0)}get ruleIndex(){return F.RULE_typeSeries}accept(e){return e.visitTypeSeries?e.visitTypeSeries(this):e.visitChildren(this)}}class gl extends Qe{constructor(e,n,i){super(n,i),this.parser=e}typeName_list(){return this.getTypedRuleContexts(di)}typeName(e){return this.getTypedRuleContext(di,e)}LessThan(){return this.getToken(F.LessThan,0)}MoreThan(){return this.getToken(F.MoreThan,0)}OpenBracket(){return this.getToken(F.OpenBracket,0)}CloseBracket(){return this.getToken(F.CloseBracket,0)}get ruleIndex(){return F.RULE_typeArray}accept(e){return e.visitTypeArray?e.visitTypeArray(this):e.visitChildren(this)}}class jo extends Qe{constructor(e,n,i){super(n,i),this.parser=e}typeName(){return this.getTypedRuleContext(di,0)}typeArray(){return this.getTypedRuleContext(gl,0)}typeMap(){return this.getTypedRuleContext(yl,0)}typeSeries(){return this.getTypedRuleContext(kp,0)}get ruleIndex(){return F.RULE_typeGather}accept(e){return e.visitTypeGather?e.visitTypeGather(this):e.visitChildren(this)}}class xn extends Qe{constructor(e,n,i){super(n,i),this.parser=e}Identifier(){return this.getToken(F.Identifier,0)}Map(){return this.getToken(F.Map,0)}Type(){return this.getToken(F.Type,0)}get ruleIndex(){return F.RULE_identifier}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}}class di extends Qe{constructor(e,n,i){super(n,i),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Point(){return this.getToken(F.Point,0)}get ruleIndex(){return F.RULE_typeName}accept(e){return e.visitTypeName?e.visitTypeName(this):e.visitChildren(this)}}class cu extends Qe{constructor(e,n,i){super(n,i),this.parser=e}identifier_list(){return this.getTypedRuleContexts(xn)}identifier(e){return this.getTypedRuleContext(xn,e)}Point_list(){return this.getTokens(F.Point)}Point(e){return this.getToken(F.Point,e)}methodElement_list(){return this.getTypedRuleContexts(as)}methodElement(e){return this.getTypedRuleContext(as,e)}OpenParen(){return this.getToken(F.OpenParen,0)}singleExpression(){return this.getTypedRuleContext(Ve,0)}CloseParen(){return this.getToken(F.CloseParen,0)}get ruleIndex(){return F.RULE_name}accept(e){return e.visitName?e.visitName(this):e.visitChildren(this)}}class R_ extends r_{constructor(n){super(n);k(this,"tokens");k(this,"indents");k(this,"opened");this.tokens=[],this.indents=[],this.opened=0}reset(){this.tokens=[],this.indents=[],this.opened=0,super.reset()}emitToken(n){super.emitToken(n),this.tokens.push(n)}nextToken(){if(this._input.LA(1)===F.EOF&&this.indents.length){for(this.tokens=this.tokens.filter(function(i){return i.type!==F.EOF}),this.emitToken(this.commonToken(F.NEWLINE,`
|
11
|
-
`));this.indents.length;)this.emitToken(this.createDedent()),this.indents.pop();this.emitToken(this.commonToken(F.EOF,"<EOF>"))}const n=super.nextToken();return this.tokens.length?this.tokens.shift():n}createDedent(){return this.commonToken(F.DEDENT,"")}getCharIndex(){return this._input.index}commonToken(n,i){const s=this.getCharIndex()-1,f=i.length?s-i.length+1:s;return new Zm([this,this._input],n,0,f,s)}getIndentationCount(n){let i=0;for(let s=0;s<n.length;s++)n[s]===" "?i+=4-i%4:i++;return i}atStartOfInput(){return this.getCharIndex()===0}openBrace(){this.opened++}closeBrace(){this.opened--}onNewLine(){const n=this.text.replace(/[^\r\n]+/g,""),i=this.text.replace(/[\r\n]+/g,""),s=this._input.LA(1),f=this._input.LA(2),h=this.getIndentationCount(i);if(this.opened>0||f!=-1&&(s===13||s===10||s===47&&f===47||h%4))this.skip();else{this.emitToken(this.commonToken(F.NEWLINE,n));const y=this.indents.length?this.indents[this.indents.length-1]:0;if(h===y)this.skip();else if(h>y)this.indents.push(h),this.emitToken(this.commonToken(F.INDENT,i));else for(;this.indents.length&&this.indents[this.indents.length-1]>h;)this.emitToken(this.createDedent()),this.indents.pop()}}}const Ne=class Ne extends R_{constructor(e){super(e),this._interp=new i_(this,Ne._ATN,Ne.DecisionsToDFA,new lp)}get grammarFileName(){return"tccScriptLexer.g4"}get literalNames(){return Ne.literalNames}get symbolicNames(){return Ne.symbolicNames}get ruleNames(){return Ne.ruleNames}get serializedATN(){return Ne._serializedATN}get channelNames(){return Ne.channelNames}get modeNames(){return Ne.modeNames}action(e,n,i){switch(n){case 1:this.OpenBracket_action(e,i);break;case 2:this.CloseBracket_action(e,i);break;case 3:this.OpenParen_action(e,i);break;case 4:this.CloseParen_action(e,i);break;case 57:this.NEWLINE_action(e,i);break}}OpenBracket_action(e,n){switch(n){case 0:this.openBrace();break}}CloseBracket_action(e,n){switch(n){case 1:this.closeBrace();break}}OpenParen_action(e,n){switch(n){case 2:this.openBrace();break}}CloseParen_action(e,n){switch(n){case 3:this.closeBrace();break}}NEWLINE_action(e,n){switch(n){case 4:this.onNewLine();break}}sempred(e,n,i){switch(n){case 57:return this.NEWLINE_sempred(e,i)}return!0}NEWLINE_sempred(e,n){switch(n){case 0:return this.atStartOfInput()}return!0}static get _ATN(){return Ne.__ATN||(Ne.__ATN=new up().deserialize(Ne._serializedATN)),Ne.__ATN}};k(Ne,"INDENT",1),k(Ne,"DEDENT",2),k(Ne,"Point",3),k(Ne,"OpenBracket",4),k(Ne,"CloseBracket",5),k(Ne,"OpenParen",6),k(Ne,"CloseParen",7),k(Ne,"Comma",8),k(Ne,"Assign",9),k(Ne,"QuestionMark",10),k(Ne,"Colon",11),k(Ne,"Plus",12),k(Ne,"Minus",13),k(Ne,"Multiply",14),k(Ne,"Divide",15),k(Ne,"Modulus",16),k(Ne,"Hashtag",17),k(Ne,"LessThan",18),k(Ne,"MoreThan",19),k(Ne,"LessThanEquals",20),k(Ne,"GreaterThanEquals",21),k(Ne,"Equals_",22),k(Ne,"NotEquals",23),k(Ne,"MultiplyAssign",24),k(Ne,"DivideAssign",25),k(Ne,"ModulusAssign",26),k(Ne,"PlusAssign",27),k(Ne,"MinusAssign",28),k(Ne,"ARROW",29),k(Ne,"ColonEquals",30),k(Ne,"BooleanLiteral",31),k(Ne,"IntegerLiteral",32),k(Ne,"DecimalLiteral",33),k(Ne,"Break",34),k(Ne,"And",35),k(Ne,"Export",36),k(Ne,"For",37),k(Ne,"Var",38),k(Ne,"Continue",39),k(Ne,"Varip",40),k(Ne,"Switch",41),k(Ne,"While",42),k(Ne,"If",43),k(Ne,"In",44),k(Ne,"Or",45),k(Ne,"Not",46),k(Ne,"Method",47),k(Ne,"Else",48),k(Ne,"To",49),k(Ne,"By",50),k(Ne,"Type",51),k(Ne,"Import",52),k(Ne,"As",53),k(Ne,"Map",54),k(Ne,"ColorLiteral",55),k(Ne,"StringLiteral",56),k(Ne,"Identifier",57),k(Ne,"HIDDEN_",58),k(Ne,"COMMENT_",59),k(Ne,"NEWLINE",60),k(Ne,"EOF",fp.EOF),k(Ne,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),k(Ne,"literalNames",[null,null,null,"'.'","'['","']'","'('","')'","','","'='","'?'","':'","'+'","'-'","'*'","'/'","'%'","'#'","'<'","'>'","'<='","'>='","'=='","'!='","'*='","'/='","'%='","'+='","'-='","'=>'","':='",null,null,null,"'break'","'and'","'export'","'for'","'var'","'continue'","'varip'","'switch'","'while'","'if'","'in'","'or'","'not'","'method'","'else'","'to'","'by'","'type'","'import'","'as'","'map'"]),k(Ne,"symbolicNames",[null,"INDENT","DEDENT","Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE"]),k(Ne,"modeNames",["DEFAULT_MODE"]),k(Ne,"ruleNames",["Point","OpenBracket","CloseBracket","OpenParen","CloseParen","Comma","Assign","QuestionMark","Colon","Plus","Minus","Multiply","Divide","Modulus","Hashtag","LessThan","MoreThan","LessThanEquals","GreaterThanEquals","Equals_","NotEquals","MultiplyAssign","DivideAssign","ModulusAssign","PlusAssign","MinusAssign","ARROW","ColonEquals","BooleanLiteral","IntegerLiteral","DecimalLiteral","Break","And","Export","For","Var","Continue","Varip","Switch","While","If","In","Or","Not","Method","Else","To","By","Type","Import","As","Map","ColorLiteral","StringLiteral","Identifier","HIDDEN_","COMMENT_","NEWLINE","SHORT_STRING","DIGIT","DIGITS","HEX_DIGIT","SPACES","COMMENT","EXP"]),k(Ne,"_serializedATN",[4,0,60,440,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,1,0,1,0,1,1,1,1,1,1,1,2,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,10,1,10,1,11,1,11,1,12,1,12,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,3,28,212,8,28,1,29,1,29,1,30,1,30,1,30,3,30,219,8,30,1,30,1,30,1,30,1,30,3,30,225,8,30,3,30,227,8,30,1,30,3,30,230,8,30,3,30,232,8,30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,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,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,41,1,41,1,41,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,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,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,355,8,52,1,53,1,53,1,54,1,54,5,54,361,8,54,10,54,12,54,364,9,54,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,57,1,57,1,57,3,57,377,8,57,1,57,1,57,3,57,381,8,57,1,57,3,57,384,8,57,3,57,386,8,57,1,57,1,57,1,58,1,58,1,58,1,58,5,58,394,8,58,10,58,12,58,397,9,58,1,58,1,58,1,58,1,58,1,58,5,58,404,8,58,10,58,12,58,407,9,58,1,58,3,58,410,8,58,1,59,1,59,1,60,4,60,415,8,60,11,60,12,60,416,1,61,1,61,1,62,4,62,422,8,62,11,62,12,62,423,1,63,1,63,1,63,1,63,5,63,430,8,63,10,63,12,63,433,9,63,1,64,1,64,3,64,437,8,64,1,64,1,64,0,0,65,1,3,3,4,5,5,7,6,9,7,11,8,13,9,15,10,17,11,19,12,21,13,23,14,25,15,27,16,29,17,31,18,33,19,35,20,37,21,39,22,41,23,43,24,45,25,47,26,49,27,51,28,53,29,55,30,57,31,59,32,61,33,63,34,65,35,67,36,69,37,71,38,73,39,75,40,77,41,79,42,81,43,83,44,85,45,87,46,89,47,91,48,93,49,95,50,97,51,99,52,101,53,103,54,105,55,107,56,109,57,111,58,113,59,115,60,117,0,119,0,121,0,123,0,125,0,127,0,129,0,1,0,10,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,1,0,39,39,1,0,34,34,1,0,48,57,3,0,48,57,65,70,97,102,2,0,9,9,32,32,2,0,10,10,12,13,2,0,69,69,101,101,2,0,43,43,45,45,453,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,1,131,1,0,0,0,3,133,1,0,0,0,5,136,1,0,0,0,7,139,1,0,0,0,9,142,1,0,0,0,11,145,1,0,0,0,13,147,1,0,0,0,15,149,1,0,0,0,17,151,1,0,0,0,19,153,1,0,0,0,21,155,1,0,0,0,23,157,1,0,0,0,25,159,1,0,0,0,27,161,1,0,0,0,29,163,1,0,0,0,31,165,1,0,0,0,33,167,1,0,0,0,35,169,1,0,0,0,37,172,1,0,0,0,39,175,1,0,0,0,41,178,1,0,0,0,43,181,1,0,0,0,45,184,1,0,0,0,47,187,1,0,0,0,49,190,1,0,0,0,51,193,1,0,0,0,53,196,1,0,0,0,55,199,1,0,0,0,57,211,1,0,0,0,59,213,1,0,0,0,61,231,1,0,0,0,63,233,1,0,0,0,65,239,1,0,0,0,67,243,1,0,0,0,69,250,1,0,0,0,71,254,1,0,0,0,73,258,1,0,0,0,75,267,1,0,0,0,77,273,1,0,0,0,79,280,1,0,0,0,81,286,1,0,0,0,83,289,1,0,0,0,85,292,1,0,0,0,87,295,1,0,0,0,89,299,1,0,0,0,91,306,1,0,0,0,93,311,1,0,0,0,95,314,1,0,0,0,97,317,1,0,0,0,99,322,1,0,0,0,101,329,1,0,0,0,103,332,1,0,0,0,105,354,1,0,0,0,107,356,1,0,0,0,109,358,1,0,0,0,111,365,1,0,0,0,113,369,1,0,0,0,115,385,1,0,0,0,117,409,1,0,0,0,119,411,1,0,0,0,121,414,1,0,0,0,123,418,1,0,0,0,125,421,1,0,0,0,127,425,1,0,0,0,129,434,1,0,0,0,131,132,5,46,0,0,132,2,1,0,0,0,133,134,5,91,0,0,134,135,6,1,0,0,135,4,1,0,0,0,136,137,5,93,0,0,137,138,6,2,1,0,138,6,1,0,0,0,139,140,5,40,0,0,140,141,6,3,2,0,141,8,1,0,0,0,142,143,5,41,0,0,143,144,6,4,3,0,144,10,1,0,0,0,145,146,5,44,0,0,146,12,1,0,0,0,147,148,5,61,0,0,148,14,1,0,0,0,149,150,5,63,0,0,150,16,1,0,0,0,151,152,5,58,0,0,152,18,1,0,0,0,153,154,5,43,0,0,154,20,1,0,0,0,155,156,5,45,0,0,156,22,1,0,0,0,157,158,5,42,0,0,158,24,1,0,0,0,159,160,5,47,0,0,160,26,1,0,0,0,161,162,5,37,0,0,162,28,1,0,0,0,163,164,5,35,0,0,164,30,1,0,0,0,165,166,5,60,0,0,166,32,1,0,0,0,167,168,5,62,0,0,168,34,1,0,0,0,169,170,5,60,0,0,170,171,5,61,0,0,171,36,1,0,0,0,172,173,5,62,0,0,173,174,5,61,0,0,174,38,1,0,0,0,175,176,5,61,0,0,176,177,5,61,0,0,177,40,1,0,0,0,178,179,5,33,0,0,179,180,5,61,0,0,180,42,1,0,0,0,181,182,5,42,0,0,182,183,5,61,0,0,183,44,1,0,0,0,184,185,5,47,0,0,185,186,5,61,0,0,186,46,1,0,0,0,187,188,5,37,0,0,188,189,5,61,0,0,189,48,1,0,0,0,190,191,5,43,0,0,191,192,5,61,0,0,192,50,1,0,0,0,193,194,5,45,0,0,194,195,5,61,0,0,195,52,1,0,0,0,196,197,5,61,0,0,197,198,5,62,0,0,198,54,1,0,0,0,199,200,5,58,0,0,200,201,5,61,0,0,201,56,1,0,0,0,202,203,5,116,0,0,203,204,5,114,0,0,204,205,5,117,0,0,205,212,5,101,0,0,206,207,5,102,0,0,207,208,5,97,0,0,208,209,5,108,0,0,209,210,5,115,0,0,210,212,5,101,0,0,211,202,1,0,0,0,211,206,1,0,0,0,212,58,1,0,0,0,213,214,3,121,60,0,214,60,1,0,0,0,215,216,5,46,0,0,216,218,3,121,60,0,217,219,3,129,64,0,218,217,1,0,0,0,218,219,1,0,0,0,219,232,1,0,0,0,220,229,3,121,60,0,221,226,5,46,0,0,222,224,3,121,60,0,223,225,3,129,64,0,224,223,1,0,0,0,224,225,1,0,0,0,225,227,1,0,0,0,226,222,1,0,0,0,226,227,1,0,0,0,227,230,1,0,0,0,228,230,3,129,64,0,229,221,1,0,0,0,229,228,1,0,0,0,230,232,1,0,0,0,231,215,1,0,0,0,231,220,1,0,0,0,232,62,1,0,0,0,233,234,5,98,0,0,234,235,5,114,0,0,235,236,5,101,0,0,236,237,5,97,0,0,237,238,5,107,0,0,238,64,1,0,0,0,239,240,5,97,0,0,240,241,5,110,0,0,241,242,5,100,0,0,242,66,1,0,0,0,243,244,5,101,0,0,244,245,5,120,0,0,245,246,5,112,0,0,246,247,5,111,0,0,247,248,5,114,0,0,248,249,5,116,0,0,249,68,1,0,0,0,250,251,5,102,0,0,251,252,5,111,0,0,252,253,5,114,0,0,253,70,1,0,0,0,254,255,5,118,0,0,255,256,5,97,0,0,256,257,5,114,0,0,257,72,1,0,0,0,258,259,5,99,0,0,259,260,5,111,0,0,260,261,5,110,0,0,261,262,5,116,0,0,262,263,5,105,0,0,263,264,5,110,0,0,264,265,5,117,0,0,265,266,5,101,0,0,266,74,1,0,0,0,267,268,5,118,0,0,268,269,5,97,0,0,269,270,5,114,0,0,270,271,5,105,0,0,271,272,5,112,0,0,272,76,1,0,0,0,273,274,5,115,0,0,274,275,5,119,0,0,275,276,5,105,0,0,276,277,5,116,0,0,277,278,5,99,0,0,278,279,5,104,0,0,279,78,1,0,0,0,280,281,5,119,0,0,281,282,5,104,0,0,282,283,5,105,0,0,283,284,5,108,0,0,284,285,5,101,0,0,285,80,1,0,0,0,286,287,5,105,0,0,287,288,5,102,0,0,288,82,1,0,0,0,289,290,5,105,0,0,290,291,5,110,0,0,291,84,1,0,0,0,292,293,5,111,0,0,293,294,5,114,0,0,294,86,1,0,0,0,295,296,5,110,0,0,296,297,5,111,0,0,297,298,5,116,0,0,298,88,1,0,0,0,299,300,5,109,0,0,300,301,5,101,0,0,301,302,5,116,0,0,302,303,5,104,0,0,303,304,5,111,0,0,304,305,5,100,0,0,305,90,1,0,0,0,306,307,5,101,0,0,307,308,5,108,0,0,308,309,5,115,0,0,309,310,5,101,0,0,310,92,1,0,0,0,311,312,5,116,0,0,312,313,5,111,0,0,313,94,1,0,0,0,314,315,5,98,0,0,315,316,5,121,0,0,316,96,1,0,0,0,317,318,5,116,0,0,318,319,5,121,0,0,319,320,5,112,0,0,320,321,5,101,0,0,321,98,1,0,0,0,322,323,5,105,0,0,323,324,5,109,0,0,324,325,5,112,0,0,325,326,5,111,0,0,326,327,5,114,0,0,327,328,5,116,0,0,328,100,1,0,0,0,329,330,5,97,0,0,330,331,5,115,0,0,331,102,1,0,0,0,332,333,5,109,0,0,333,334,5,97,0,0,334,335,5,112,0,0,335,104,1,0,0,0,336,337,5,35,0,0,337,338,3,123,61,0,338,339,3,123,61,0,339,340,3,123,61,0,340,341,3,123,61,0,341,342,3,123,61,0,342,343,3,123,61,0,343,355,1,0,0,0,344,345,5,35,0,0,345,346,3,123,61,0,346,347,3,123,61,0,347,348,3,123,61,0,348,349,3,123,61,0,349,350,3,123,61,0,350,351,3,123,61,0,351,352,3,123,61,0,352,353,3,123,61,0,353,355,1,0,0,0,354,336,1,0,0,0,354,344,1,0,0,0,355,106,1,0,0,0,356,357,3,117,58,0,357,108,1,0,0,0,358,362,7,0,0,0,359,361,7,1,0,0,360,359,1,0,0,0,361,364,1,0,0,0,362,360,1,0,0,0,362,363,1,0,0,0,363,110,1,0,0,0,364,362,1,0,0,0,365,366,3,125,62,0,366,367,1,0,0,0,367,368,6,55,4,0,368,112,1,0,0,0,369,370,3,127,63,0,370,371,1,0,0,0,371,372,6,56,5,0,372,114,1,0,0,0,373,374,4,57,0,0,374,386,3,125,62,0,375,377,5,13,0,0,376,375,1,0,0,0,376,377,1,0,0,0,377,378,1,0,0,0,378,381,5,10,0,0,379,381,2,12,13,0,380,376,1,0,0,0,380,379,1,0,0,0,381,383,1,0,0,0,382,384,3,125,62,0,383,382,1,0,0,0,383,384,1,0,0,0,384,386,1,0,0,0,385,373,1,0,0,0,385,380,1,0,0,0,386,387,1,0,0,0,387,388,6,57,6,0,388,116,1,0,0,0,389,395,5,39,0,0,390,394,8,2,0,0,391,392,5,92,0,0,392,394,5,39,0,0,393,390,1,0,0,0,393,391,1,0,0,0,394,397,1,0,0,0,395,393,1,0,0,0,395,396,1,0,0,0,396,398,1,0,0,0,397,395,1,0,0,0,398,410,5,39,0,0,399,405,5,34,0,0,400,404,8,3,0,0,401,402,5,92,0,0,402,404,5,34,0,0,403,400,1,0,0,0,403,401,1,0,0,0,404,407,1,0,0,0,405,403,1,0,0,0,405,406,1,0,0,0,406,408,1,0,0,0,407,405,1,0,0,0,408,410,5,34,0,0,409,389,1,0,0,0,409,399,1,0,0,0,410,118,1,0,0,0,411,412,7,4,0,0,412,120,1,0,0,0,413,415,3,119,59,0,414,413,1,0,0,0,415,416,1,0,0,0,416,414,1,0,0,0,416,417,1,0,0,0,417,122,1,0,0,0,418,419,7,5,0,0,419,124,1,0,0,0,420,422,7,6,0,0,421,420,1,0,0,0,422,423,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,126,1,0,0,0,425,426,5,47,0,0,426,427,5,47,0,0,427,431,1,0,0,0,428,430,8,7,0,0,429,428,1,0,0,0,430,433,1,0,0,0,431,429,1,0,0,0,431,432,1,0,0,0,432,128,1,0,0,0,433,431,1,0,0,0,434,436,7,8,0,0,435,437,7,9,0,0,436,435,1,0,0,0,436,437,1,0,0,0,437,438,1,0,0,0,438,439,3,121,60,0,439,130,1,0,0,0,22,0,211,218,224,226,229,231,354,362,376,380,383,385,393,395,403,405,409,416,423,431,436,7,1,1,0,1,2,1,1,3,2,1,4,3,0,1,0,0,2,0,1,57,4]),k(Ne,"__ATN"),k(Ne,"DecisionsToDFA",Ne._ATN.decisionToState.map((e,n)=>new cp(e,n)));let bl=Ne;var G=(t=>(t.BOOL="bool",t.INT="int",t.FLOAT="float",t.ARRAY="array",t.BOX="box",t.CHART_POINT="chart.point",t.COLOR="color",t.CONST="const",t.LABEL="label",t.LINE="line",t.LINEFILL="linefill",t.MAP="map",t.MATRIX="matrix",t.POLYLINE="polyline",t.SERIES="series",t.SIMPLE="simple",t.STRING="string",t.TABLE="table",t.UNDETERMINED="undetermined type",t.INPUT="input",t.NA="na",t.VOID="void",t))(G||{}),he=(t=>(t.FlowStmt="FlowStmt",t.DeclareAssign="DeclareAssign",t.VarBlockStmt="VarBlockStmt",t.VarSingle="VarSingle",t.VarMultiple="VarMultiple",t.ParenthesizedExpression="ParenthesizedExpression",t.AdditiveExpression="AdditiveExpression",t.RelationalExpression="RelationalExpression",t.EqualityExpression="EqualityExpression",t.TernaryExpression="TernaryExpression",t.UnaryExpression="UnaryExpression",t.NotExpression="NotExpression",t.MemberIndexExpression="MemberIndexExpression",t.MethodExpression="MethodExpression",t.LogicalAndExpression="LogicalAndExpression",t.LogicalOrExpression="LogicalOrExpression",t.MultiplicativeExpression="MultiplicativeExpression",t.Brackethesized="Brackethesized",t.IfStatement="IfStatement",t.ForToStatement="ForToStatement",t.ForInStatement="ForInStatement",t.SwitchStatement="SwitchStatement",t.CaseClause="CaseClause",t.DefaultCaluse="DefaultCaluse",t.WhileStatement="WhileStatement",t.ImportElement="ImportElement",t.Literal="Literal",t.ArrowFunction="ArrowFunction",t.ArrowMethod="ArrowMethod",t.TypeStatement="TypeStatement",t.Name="Name",t.AgainAssign="AgainAssign",t))(he||{}),On=(t=>(t.description="description",t.field="field",t.function="function",t.param="param",t.returns="returns",t.type="type",t.variable="variable",t))(On||{}),$o=(t=>(t.library="library",t.indicator="indicator",t.strategy="strategy",t))($o||{});const Ee={onlyInLoop:"'$text' is only allowed inside loops",invalidType:"Invalid argument 'expr$index' in 'operator SQBR' call",typeUseError:"Cannot specify a type form '$text' without also specifying the type.",notTypeKeyword:"'$text' is not a valid type keyword in variable declaration",undeclared:"Undeclared identifier '$name'",repeatVar:"'$name' is already defined",typeRepeatErr:"type '$name' is already defined.",typeMismatch:"Cannot call '$operator' with argument '$index'. An argument of '$typeE' type was used but a '$typeR' is expected.",assignTypeMismatch:"Cannot assign a value of the `$typeE` type to the '$name' variable. The variable is declared with the `$typeR` type.",voidNotVar:"Void expression cannot be assigned to a variable",declareTypeErr:"Declared type '$type' is not compatible with assigned type '$valueType'",mapKeyValErr:"Cannot put <$typeA, $typeB> pairs into a map containing `$typeC` keys and `$typeD` values. The maps passed into the `$name()` function must have the same key types and value types.",inputSourceErr:"Invalid value for the '$name' parameter of the '$funcName' function. Possible values: [open, high, low, close, hl2, hlc3, ohlc4, hlcc4, volume].",buildInUseErr:"Cannot use '$name' as the default value of a type's field. The default value cannot be a function, variable or calculation.",argsLenErr:"Too many arguments passed into the `$name()` function call. Passed $lenA arguments but expected $lenB.",requiredParamErr:"No value assigned to the `$argName` parameter in $name()",argsSyntaxErr:"Syntax error after the argument for `$argName`. Arguments without their parameter name cannot be used after arguments with parameter names.",requestArgsErr:"Type $type cannot be used in $name '$argName' argument",mapKeyErr:"Incorrect `key` type `$type` in the variable. The `key` type must be one of the following: int, float, string, bool, color.",templateErr:"Incorrect number of arguments for the template: $countA expected, $countB passed.",templateNoSupportErr:"The '$name()' function does not support templates",ifOrSwitchTypeErr:"Return type of one of the '$keyword' blocks is not compatible with return type of other block(s) ($types)",argsNameErr:"The '$name' function does not have an argument with the name '$argName'",noFiledErr:"Object has no field $name",methodNotExistErr:"Could not find method or method reference '$methodName' for '$name'",tupleVarErr:"Syntax error: The quantities of tuple elements on each side of the assignment operator do not match. The right side has $indexA but the left side has $indexB.",tupleLeftVarErr:"Invalid assignment. Cannot assign a tuple to a variable '$name'.",tupleRightVarErr:"Cannot assign a variable to a tuple. The right side must be a function call or structure ('if', 'switch', 'for', 'while') returning a tuple with the same number of elements.",tempateTypeErr:"Syntax error: Only templates for arrays and matrices consist of a single type identifier enclosed in angle brackets.",qualifierErr:"'$name' is not a valid type qualifier. Possible values: 'const', 'simple', 'series'",notFindFuncErr:"Could not find function or function reference '$name'",naVarErr:"Value with NA type cannot be assigned to a variable that was defined without type keyword",notHistoryErr:"Variable '$name' doesn't have history values",defaultValueErr:"The default value cannot be a function, variable or calculation.",defaultValueTypeErr:"Default value of type $typeE can not be assigned to an argument of type $typeR",typeFieldErr:"In a type declaration, all fields without a default value must be explicitly typified.",unaryErr:"Syntax error at input '$sign'",funcArgAssignErr:"Function arguments cannot be mutable ('$name')",declaredErr:"A variable declared with the '$prefix' keyword cannot accept values of the '$type' form. Assign a '$prefix' value to this variable or remove the '$prefix' keyword from its declaration.",globalFuncErr:"Cannot use '$name' in local scope",onlyStatementErr:"Scripts must contain one declaration statement: `indicator()`, `strategy()` or `library()`, Your script has $count.",modifyGlobalVarErr:"Cannot modify global variable '$name' in function",inputDefvalErr:"Arguments of input function must be of constant type, or 'source' builtin variables.",objectIsNaErr:"Cannot access the '$name' $type of an na object. The object is 'na'.",buidinAssignErr:"Cannot assign a new value to the built-in variable '$name'.",buidinVarErr:"Cannot shadow the built-in variable `$name` because it has already been used as a built-in.",useNaErr:"Cannot use an `na` value of an unspecified type in the `$name` function.",libraryTitleErr:"Invalid argument 'title' in 'library' call. It cannot contain spaces, special characters or begin with a digit.",exportFuncArgErr:"All exported functions args should be typified",indiRunErr:"An indicator must contain at least one of the following: any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, `alertcondition()`, or any drawing (line, label, box, table, polyline).",libraryExportErr:"A library must contain at least one exported function, method, or type.",strategyRunErr:"A strategy must contain at least one of the following: any `strategy.*()` function that creates orders, any `plot*()` function, `barcolor()`, `bgcolor()`, `hline()`, or any drawing (line, label, box, table, polyline).",exportUseErr:"Only libraries can contain exported $type.",funcRepeatErr:"The '$name' function has overloads with the same parameters. The type of parameters must be different in overloaded versions of functions.",importMultipleErr:"Cannot import a library more than once",importNotExitErr:"The user '$username' does not have a published library titled '$libraryName'",importNameRepeatErr:"More than one import uses the same alias: $name. Previous usage at line: $line",exportFuncHasInputErr:"The exported function '$func' depends on the '$name' input variable, which is not allowed.",libraryTitleIsKeywordErr:"Invalid argument 'title' in 'library' call. Token: '$name' can't be used as library title.",exportFuncUseGlobalVarErr:"Cannot use global variables in exported functions. Function: $func",loopRuntimeErr:"Loop takes too long to execute (> 500 ms)",paramsErr:"Invalid value '$value' for '$param' parameter of the '$func' function. Possible values: $targetVal",displayErr:"Invalid argument 'display' in '$func' call. Possible values: $values",exportFuncUseReqErr:"Cannot use `request.*()` call in exported function `$name()`",requestExprErr:"Type series $type cannot be used in $name 'expression' argument",argDefaultErr:"The default value assigned to a parameter must be either a literal value (e.g., `5`) or a built-in variable (e.g., `close`)",overloadFuncErr:"Cannot use global variables or any values qualified as 'input' in the local scopes of overloaded functions or methods. Remove any global variables or inputs from the scopes of all '$name()' overloads.",againAssignErr:"Unable to determine the object for the field assignment. Try putting the object into a separate variable before assigning values to its fields.",requestUserInLoopErr:"Cannot use `request.*()` call within loops or conditional structures."},Ni={repeatVar:"Shadowing variable '$name' which exists in parent scope. Did you want to use the ':=' operator instead of '=' ?",typeMismatch:"The `$index` parameter of the `$operator` function accepts a '$type' argument. To avoid potential unexpected results, pass a '$type' value or expression to this parameter.",moreSameArg:"More than one '$arg' arguments are supplied. Only the first one will be used.",localScopeGetHistory:"The variable '$name' is declared in local scope, which may not be executed at every update. So, obtaining its historical values may lead to unexpected results",localScopeWarning:"The function '$name' should be called on each calculation for consistency. It is recommended to extract the call from this scope"},Ii=[G.SERIES,G.SIMPLE,G.INPUT,G.CONST],Rp=[G.INT,G.FLOAT,G.BOOL,G.COLOR,G.STRING],vl=["indicator","strategy","library"],El=["plot","plotbar","plotchar","plotarrow","plotshape","plotcandle","hline","alertcondition","barcolor","bgcolor","fill"],w_=[...El,"indicator","library","strategy","strategy.risk.max_drawdown","strategy.risk.allow_entry_in","strategy.risk.max_cons_loss_days","max_intraday_filled_orders","strategy.risk.max_intraday_loss","strategy.risk.max_position_size"],N_=[...El,"table.new","label.new","line.new","box.new","polyline.new","linefill.new"],I_=["strategy.entry","strategy.order","strategy.exit","strategy.close","strategy.cancel","strategy.close_all","strategy.cancel_all"],wp=["strategy","input","table","color","line","linefill","label","box"],Sl=["close","open","high","low","hl2","hlc3","hlcc4","ohlc4","volume"],P_=/^\/\/\s*@(description|field|function|param|returns|type|variable)/,Ln=["case","catch","default","delete","do","finally","function","instanceof","new","return","this","throw","try","typeof","void","with"];var Np=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},F_={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Np,function(){var n=1e3,i=6e4,s=36e5,f="millisecond",h="second",y="minute",E="hour",T="day",O="week",A="month",I="quarter",U="year",L="date",b="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_e){var te=["th","st","nd","rd"],pe=_e%100;return"["+_e+(te[(pe-20)%10]||te[pe]||te[0])+"]"}},R=function(_e,te,pe){var le=String(_e);return!le||le.length>=te?_e:""+Array(te+1-le.length).join(pe)+_e},D={s:R,z:function(_e){var te=-_e.utcOffset(),pe=Math.abs(te),le=Math.floor(pe/60),Oe=pe%60;return(te<=0?"+":"-")+R(le,2,"0")+":"+R(Oe,2,"0")},m:function _e(te,pe){if(te.date()<pe.date())return-_e(pe,te);var le=12*(pe.year()-te.year())+(pe.month()-te.month()),Oe=te.clone().add(le,A),Ie=pe-Oe<0,ge=te.clone().add(le+(Ie?-1:1),A);return+(-(le+(pe-Oe)/(Ie?Oe-ge:ge-Oe))||0)},a:function(_e){return _e<0?Math.ceil(_e)||0:Math.floor(_e)},p:function(_e){return{M:A,y:U,w:O,d:T,D:L,h:E,m:y,s:h,ms:f,Q:I}[_e]||String(_e||"").toLowerCase().replace(/s$/,"")},u:function(_e){return _e===void 0}},B="en",X={};X[B]=C;var ne="$isDayjsObject",z=function(_e){return _e instanceof Q||!(!_e||!_e[ne])},Y=function _e(te,pe,le){var Oe;if(!te)return B;if(typeof te=="string"){var Ie=te.toLowerCase();X[Ie]&&(Oe=Ie),pe&&(X[Ie]=pe,Oe=Ie);var ge=te.split("-");if(!Oe&&ge.length>1)return _e(ge[0])}else{var Ue=te.name;X[Ue]=te,Oe=Ue}return!le&&Oe&&(B=Oe),Oe||!le&&B},K=function(_e,te){if(z(_e))return _e.clone();var pe=typeof te=="object"?te:{};return pe.date=_e,pe.args=arguments,new Q(pe)},ce=D;ce.l=Y,ce.i=z,ce.w=function(_e,te){return K(_e,{locale:te.$L,utc:te.$u,x:te.$x,$offset:te.$offset})};var Q=function(){function _e(pe){this.$L=Y(pe.locale,null,!0),this.parse(pe),this.$x=this.$x||pe.x||{},this[ne]=!0}var te=_e.prototype;return te.parse=function(pe){this.$d=function(le){var Oe=le.date,Ie=le.utc;if(Oe===null)return new Date(NaN);if(ce.u(Oe))return new Date;if(Oe instanceof Date)return new Date(Oe);if(typeof Oe=="string"&&!/Z$/i.test(Oe)){var ge=Oe.match(_);if(ge){var Ue=ge[2]-1||0,J=(ge[7]||"0").substring(0,3);return Ie?new Date(Date.UTC(ge[1],Ue,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,J)):new Date(ge[1],Ue,ge[3]||1,ge[4]||0,ge[5]||0,ge[6]||0,J)}}return new Date(Oe)}(pe),this.init()},te.init=function(){var pe=this.$d;this.$y=pe.getFullYear(),this.$M=pe.getMonth(),this.$D=pe.getDate(),this.$W=pe.getDay(),this.$H=pe.getHours(),this.$m=pe.getMinutes(),this.$s=pe.getSeconds(),this.$ms=pe.getMilliseconds()},te.$utils=function(){return ce},te.isValid=function(){return this.$d.toString()!==b},te.isSame=function(pe,le){var Oe=K(pe);return this.startOf(le)<=Oe&&Oe<=this.endOf(le)},te.isAfter=function(pe,le){return K(pe)<this.startOf(le)},te.isBefore=function(pe,le){return this.endOf(le)<K(pe)},te.$g=function(pe,le,Oe){return ce.u(pe)?this[le]:this.set(Oe,pe)},te.unix=function(){return Math.floor(this.valueOf()/1e3)},te.valueOf=function(){return this.$d.getTime()},te.startOf=function(pe,le){var Oe=this,Ie=!!ce.u(le)||le,ge=ce.p(pe),Ue=function(Et,Mt){var gt=ce.w(Oe.$u?Date.UTC(Oe.$y,Mt,Et):new Date(Oe.$y,Mt,Et),Oe);return Ie?gt:gt.endOf(T)},J=function(Et,Mt){return ce.w(Oe.toDate()[Et].apply(Oe.toDate("s"),(Ie?[0,0,0,0]:[23,59,59,999]).slice(Mt)),Oe)},re=this.$W,se=this.$M,Te=this.$D,ye="set"+(this.$u?"UTC":"");switch(ge){case U:return Ie?Ue(1,0):Ue(31,11);case A:return Ie?Ue(1,se):Ue(0,se+1);case O:var At=this.$locale().weekStart||0,jt=(re<At?re+7:re)-At;return Ue(Ie?Te-jt:Te+(6-jt),se);case T:case L:return J(ye+"Hours",0);case E:return J(ye+"Minutes",1);case y:return J(ye+"Seconds",2);case h:return J(ye+"Milliseconds",3);default:return this.clone()}},te.endOf=function(pe){return this.startOf(pe,!1)},te.$set=function(pe,le){var Oe,Ie=ce.p(pe),ge="set"+(this.$u?"UTC":""),Ue=(Oe={},Oe[T]=ge+"Date",Oe[L]=ge+"Date",Oe[A]=ge+"Month",Oe[U]=ge+"FullYear",Oe[E]=ge+"Hours",Oe[y]=ge+"Minutes",Oe[h]=ge+"Seconds",Oe[f]=ge+"Milliseconds",Oe)[Ie],J=Ie===T?this.$D+(le-this.$W):le;if(Ie===A||Ie===U){var re=this.clone().set(L,1);re.$d[Ue](J),re.init(),this.$d=re.set(L,Math.min(this.$D,re.daysInMonth())).$d}else Ue&&this.$d[Ue](J);return this.init(),this},te.set=function(pe,le){return this.clone().$set(pe,le)},te.get=function(pe){return this[ce.p(pe)]()},te.add=function(pe,le){var Oe,Ie=this;pe=Number(pe);var ge=ce.p(le),Ue=function(se){var Te=K(Ie);return ce.w(Te.date(Te.date()+Math.round(se*pe)),Ie)};if(ge===A)return this.set(A,this.$M+pe);if(ge===U)return this.set(U,this.$y+pe);if(ge===T)return Ue(1);if(ge===O)return Ue(7);var J=(Oe={},Oe[y]=i,Oe[E]=s,Oe[h]=n,Oe)[ge]||1,re=this.$d.getTime()+pe*J;return ce.w(re,this)},te.subtract=function(pe,le){return this.add(-1*pe,le)},te.format=function(pe){var le=this,Oe=this.$locale();if(!this.isValid())return Oe.invalidDate||b;var Ie=pe||"YYYY-MM-DDTHH:mm:ssZ",ge=ce.z(this),Ue=this.$H,J=this.$m,re=this.$M,se=Oe.weekdays,Te=Oe.months,ye=Oe.meridiem,At=function(Mt,gt,Ct,Jt){return Mt&&(Mt[gt]||Mt(le,Ie))||Ct[gt].slice(0,Jt)},jt=function(Mt){return ce.s(Ue%12||12,Mt,"0")},Et=ye||function(Mt,gt,Ct){var Jt=Mt<12?"AM":"PM";return Ct?Jt.toLowerCase():Jt};return Ie.replace(g,function(Mt,gt){return gt||function(Ct){switch(Ct){case"YY":return String(le.$y).slice(-2);case"YYYY":return ce.s(le.$y,4,"0");case"M":return re+1;case"MM":return ce.s(re+1,2,"0");case"MMM":return At(Oe.monthsShort,re,Te,3);case"MMMM":return At(Te,re);case"D":return le.$D;case"DD":return ce.s(le.$D,2,"0");case"d":return String(le.$W);case"dd":return At(Oe.weekdaysMin,le.$W,se,2);case"ddd":return At(Oe.weekdaysShort,le.$W,se,3);case"dddd":return se[le.$W];case"H":return String(Ue);case"HH":return ce.s(Ue,2,"0");case"h":return jt(1);case"hh":return jt(2);case"a":return Et(Ue,J,!0);case"A":return Et(Ue,J,!1);case"m":return String(J);case"mm":return ce.s(J,2,"0");case"s":return String(le.$s);case"ss":return ce.s(le.$s,2,"0");case"SSS":return ce.s(le.$ms,3,"0");case"Z":return ge}return null}(Mt)||ge.replace(":","")})},te.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},te.diff=function(pe,le,Oe){var Ie,ge=this,Ue=ce.p(le),J=K(pe),re=(J.utcOffset()-this.utcOffset())*i,se=this-J,Te=function(){return ce.m(ge,J)};switch(Ue){case U:Ie=Te()/12;break;case A:Ie=Te();break;case I:Ie=Te()/3;break;case O:Ie=(se-re)/6048e5;break;case T:Ie=(se-re)/864e5;break;case E:Ie=se/s;break;case y:Ie=se/i;break;case h:Ie=se/n;break;default:Ie=se}return Oe?Ie:ce.a(Ie)},te.daysInMonth=function(){return this.endOf(A).$D},te.$locale=function(){return X[this.$L]},te.locale=function(pe,le){if(!pe)return this.$L;var Oe=this.clone(),Ie=Y(pe,le,!0);return Ie&&(Oe.$L=Ie),Oe},te.clone=function(){return ce.w(this.$d,this)},te.toDate=function(){return new Date(this.valueOf())},te.toJSON=function(){return this.isValid()?this.toISOString():null},te.toISOString=function(){return this.$d.toISOString()},te.toString=function(){return this.$d.toUTCString()},_e}(),me=Q.prototype;return K.prototype=me,[["$ms",f],["$s",h],["$m",y],["$H",E],["$W",T],["$M",A],["$y",U],["$D",L]].forEach(function(_e){me[_e[1]]=function(te){return this.$g(te,_e[0],_e[1])}}),K.extend=function(_e,te){return _e.$i||(_e(te,Q,K),_e.$i=!0),K},K.locale=Y,K.isDayjs=z,K.unix=function(_e){return K(1e3*_e)},K.en=X[B],K.Ls=X,K.p={},K})})(F_);function De(t,e){return t.replace(/\$(\w+)/g,(n,i)=>String(e[i])||n)}class L_ extends o_{constructor(){super(...arguments);k(this,"visitProgram");k(this,"visitGlobalStmt");k(this,"visitBlockStmt");k(this,"visitStmt");k(this,"visitSimpleStmt");k(this,"visitFlowStmt");k(this,"visitBlock");k(this,"visitBlockLine");k(this,"visitVariableDeclarationStmt");k(this,"visitDeclareAssign");k(this,"visitAgainAssign");k(this,"visitVarModifier");k(this,"visitBlockSequence");k(this,"visitExpressionSequence");k(this,"visitExpressionBlockSequence");k(this,"visitVarBlockStmt");k(this,"visitVarSingle");k(this,"visitVarMultiple");k(this,"visitBlockExpression");k(this,"visitParenthesizedExpression");k(this,"visitAdditiveExpression");k(this,"visitRelationalExpression");k(this,"visitTernaryExpression");k(this,"visitLogicalAndExpression");k(this,"visitNameExpression");k(this,"visitLiteralExpression");k(this,"visitLogicalOrExpression");k(this,"visitUnaryExpression");k(this,"visitNotExpression");k(this,"visitMemberIndexExpression");k(this,"visitMethodExpression");k(this,"visitEqualityExpression");k(this,"visitMultiplicativeExpression");k(this,"visitBrackethesized");k(this,"visitArguments");k(this,"visitArgument");k(this,"visitIfStatement");k(this,"visitForToStatement");k(this,"visitForInStatement");k(this,"visitSwitchStatement");k(this,"visitCaseClause");k(this,"visitDefaultCaluse");k(this,"visitWhileStatement");k(this,"visitImportStmt");k(this,"visitImportElement");k(this,"visitLiteral");k(this,"visitMethodStmt");k(this,"visitMethodElement");k(this,"visitMethodName");k(this,"visitArrowFunction");k(this,"visitArrowFunctionParameters");k(this,"visitFormalParameterList");k(this,"visitFormalParameterArg");k(this,"visitArrowMethod");k(this,"visitArrowMethodParameters");k(this,"visitTypeStatement");k(this,"visitTypeElement");k(this,"visitAssignmentOperator");k(this,"visitTypeMap");k(this,"visitTypeSeries");k(this,"visitTypeArray");k(this,"visitTypeGather");k(this,"visitIdentifier");k(this,"visitTypeName");k(this,"visitName")}}class M_ extends L_{constructor(n){super();k(this,"_buildinVariables");k(this,"_buildinTypes");k(this,"_buildinConstants");k(this,"_buildinMethods");k(this,"_buildinFunctions");this._buildinVariables=new Map,this._buildinConstants=new Map,this._buildinFunctions=new Map,this._buildinTypes=new Map,this._buildinMethods=new Map,this._buildinHandle(n)}_buildinHandle(n){for(const i in n){const s=new Map(Object.entries(n[i]));switch(i){case"constants":this._buildinConstants=s;break;case"functions":this._buildinFunctions=s;break;case"methods":this._buildinMethods=s;break;case"types":this._buildinTypes=s;break;case"variables":this._buildinVariables=s;break}}}_typeHandle(n=[],i){if(!n.length)return G.UNDETERMINED;if(n=n.filter(h=>!h.endsWith(G.NA)),!n.length)return`${G.SIMPLE} ${G.NA}`;let s=100,f="";for(const h of n){if(h===G.UNDETERMINED)return G.UNDETERMINED;h.startsWith(G.SERIES)?s=0:h.startsWith(G.SIMPLE)&&s>0?s=1:h.startsWith(G.INPUT)&&s>1?s=2:h.startsWith(G.CONST)&&s>2&&(s=3);const y=this._removePrefix(h);(y!==G.INT||!f)&&(f=y)}return s===100?f:`${Ii[s]} ${i||f}`}_returnTypesOtherHandle(n,i,s,f){if(!s.length||s[0].includes("<>")){const h=n.type;let y=h;if(!h||h===G.UNDETERMINED)return[G.UNDETERMINED];switch(i){case"series <type>":y=this._getArrayType(h),y||(y=this._removePrefix(h)),s=[this._typeAddSeries(y)];break;case"array<type>":case"matrix<type>":case"type[]":if(this._isMapType(h)){const E=this._getMapType(h)||[];f.includes("keys")?y=E[0]:y=E[1]}else y=this._getArrayType(h),y||(y=this._removePrefix(h));s=[this._typeReplace(i,y)];break;case"<matrix_type>":y=this._getArrayType(h),s=[this._typeAddSeries(y)];break;case"map<keyType, valueType>":s=[y];break;case"<value_type>":y=this._getMapType(h),s=[y[1]];break}}return s}_checkMethodThisType(n,i){if(!n||!n.length||n[0].includes("<>"))return!0;const s=i.replace("int","float");return n.some(f=>f===i||s===f||f.endsWith(i))}_priorityComparison(n,i){if(!n)return!1;if(this._isArrayType(n)||this._isMatrixType(n))return this._getArrayType(i)!==G.INT;{const s=this._getPrefix(n),f=this._getPrefix(i);return s===f?!!n.endsWith(G.INT):!(Ii.indexOf(s)<Ii.indexOf(f))}}_compareType(n,i){if(n===G.UNDETERMINED||i===G.UNDETERMINED)return!0;const s=[G.FLOAT,G.INT];if(this._isArrayType(n)||this._isMatrixType(n)){const f=this._getArrayType(n)||"",h=this._getArrayType(i)||"";return f===h||s.includes(f)&&s.includes(h)}else if(this._isMapType(n)){const f=this._getMapType(n)||[],h=this._getMapType(i)||[];return(f[0]===h[0]||s.includes(f[0])&&s.includes(h[0]))&&(f[1]===h[1]||s.includes(f[1])&&s.includes(h[1]))}else{const f=this._removePrefix(n),h=this._removePrefix(i);return f===G.NA||h===G.NA||f===h||s.includes(f)&&s.includes(h)}}_typeAddSeries(n){return this._buildinTypes.get(n)&&n!==G.CHART_POINT?`${G.SERIES} ${n}`:n}_typeAddConst(n){return Rp.includes(n)?`${G.CONST} ${n}`:this._typeAddSeries(n)}_getOriginMethodName(n,i){let s="";return this._isArrayType(n)?s=`${G.ARRAY}.${i}`:this._isMatrixType(n)?s=`${G.MATRIX}.${i}`:this._isMapType(n)?s=`${G.MAP}.${i}`:s=`${this._removePrefix(n)}.${i}`,s}_returnedTypesParse(n){if(!n||!n.length)return[];const i=n[0];return/^\[.+\]$/.test(i)?i.replace(/[[\]]/g,"").split(",").map(s=>s.trim()):n}_removePrefix(n=""){return n.replace(/(series|simple|const|input)\s+([\w\d.]+)/,"$2")}_getPrefix(n){if(!n)return"";const i=n.replace(/(series|simple|const|input).+/,"$1");return Ii.includes(i)?i:""}_getArrayType(n){let i=/\w+<([\w\d.]+)>/.exec(n);return i||(i=/([\w\d.]+)\[\]/.exec(n)),i==null?void 0:i[1]}_getMapType(n){const i=/\w+<(\w+),\s*([\w\d.]+)>/.exec(n);return(i==null?void 0:i[1])&&(i==null?void 0:i[2])&&[i==null?void 0:i[1],i==null?void 0:i[2]]}_isMatrixType(n){return/^matrix<[\w\d.]+>$/.test(n)}_isArrayType(n){return/^array<[\w\d.]+>$/.test(n)||/^[\w\d.]+\[\]$/.test(n)}_isMapType(n){return/^map<\w+,\s*[\w\d.]+>$/.test(n)}_arrayTypeConvert(n){return!this._isArrayType(n)||!n.includes("<")?n:`${this._getArrayType(n)}[]`}_getMethodTypeName(n){return this._isArrayType(n)?G.ARRAY:this._isMapType(n)?G.MAP:this._isMatrixType(n)?G.MATRIX:this._removePrefix(n)}_typeReplace(n,i){return i===G.UNDETERMINED?i:(i=this._removePrefix(i),this._arrayTypeConvert(n.startsWith(G.SERIES)?n.replace("<type>",i):n.replace("type",i)))}}var Qn=(t=>(t[t.Hint=1]="Hint",t[t.Info=2]="Info",t[t.Warning=4]="Warning",t[t.Error=8]="Error",t))(Qn||{});class Ip extends M_{constructor(n,i,s){super(n);k(this,"_loopCount");k(this,"_errors");k(this,"_variables");k(this,"_functions");k(this,"_methods");k(this,"_types");k(this,"_currentBlockVars");k(this,"_currentFuncParams");k(this,"_isNeedCalc");k(this,"_blockCount");k(this,"_isInFunc");k(this,"_currentExportFunc");k(this,"_onlyStatementsCount");k(this,"_blockRanges");k(this,"_overloadsFuncs");k(this,"_hasMemberIndex");k(this,"_isInLocalScop");k(this,"_comments");k(this,"_currentLine",0);k(this,"_hasDrawFunc",!1);k(this,"_hasCreateOrderFunc",!1);k(this,"_scriptType");k(this,"_exportFunctions");k(this,"_exportMethods");k(this,"_exportTypes");k(this,"_exportPositions");k(this,"_description","");k(this,"_endExport");k(this,"_importLibs");k(this,"_getImportLibraryFunc");k(this,"_isEndExpr");k(this,"_inputVarName");k(this,"_hasRequest");k(this,"visitProgram",async n=>{const{children:i}=n;let s=0;const f=[];for(this._pushBlockRanges(n);s<i.length;s++){const h=i[s];h.ruleIndex===F.RULE_globalStmt&&f.push(await this.visit(h))}return this._onlyStatementsCount<=0&&this._errors.push({startColumn:0,endColumn:0,startLineNumber:0,endLineNumber:0,type:Qn.Error,message:De(Ee.onlyStatementErr,{count:this._onlyStatementsCount})}),f});k(this,"visitGlobalStmt",async n=>{const{children:i}=n;if(i&&i.length){const s=i[0],f=await this.visit(s);return s.ruleIndex===F.RULE_methodStmt&&vl.includes(f.exprs[0].name)&&(this._onlyStatementsCount++,this._onlyStatementsCount>1?this._errorHandle(De(Ee.onlyStatementErr,{count:this._onlyStatementsCount}),s):this._scriptType=f.exprs[0].name),f}return null});k(this,"visitBlockStmt",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_variableDeclarationStmt:f.push(...this.visit(h));break;case F.RULE_varBlockStmt:f.push(this.visit(h));break;case F.RULE_blockExpression:f.push(this.visit(h));break}}return f});k(this,"visitStmt",n=>{const{children:i}=n;if(i&&i.length){const s=i[0];return this.visit(s)}return null});k(this,"visitSimpleStmt",n=>{const{children:i}=n;if(i&&i.length){const s=i[0];return this.visit(s)}return null});k(this,"visitFlowStmt",n=>{const{children:i}=n,{column:s,line:f,text:h}=i[0].symbol;if(this._currentLine=f,this._loopCount<=0){const y=s+1;this._errors.push({startColumn:y,endColumn:parseInt(y+h.length),startLineNumber:f,endLineNumber:f,message:De(Ee.onlyInLoop,{text:h})})}return{ruleType:he.FlowStmt,value:h}});k(this,"visitBlock",n=>{const{children:i}=n;if(i&&i.length){const s=i[0];return s.ruleIndex===F.RULE_simpleStmt?this._inBlock(s):this.visit(s)}return null});k(this,"visitBlockLine",n=>{const{children:i}=n;if(!i)return null;let s=0;const f=[];this._blockCount++,this._pushBlockRanges(n);const h=this._isEndExpr;for(;s<i.length;s++){const y=i[s];y.ruleIndex===F.RULE_stmt&&(this._isInFunc&&(this._isEndExpr=i.length-2===s&&h),f.push(this.visit(y)))}return this._blockCount--,this._blockRanges.pop(),this._currentBlockVars.splice(this._blockCount+1),f});k(this,"visitDeclareAssign",n=>{var h;const{children:i}=n;let s=0;const f={ruleType:he.DeclareAssign};for(;s<i.length;s++){const y=i[s];switch(y.ruleIndex){case F.RULE_varArrayDeclaration:f.nameList=this.visit(y),this._inputVarName=(h=f.nameList)==null?void 0:h.name;break;case F.RULE_singleExpression:f.value=this.visit(y),this._inputVarName=void 0;break}}return this._variablesHandle(f,n),f});k(this,"visitAgainAssign",n=>{const{children:i,start:s}=n;if(this._currentLine=s.line,i.length>=3){const f=this.visit(i[0]);this._verifyGloablVar(f,i[0]);const h=this.visit(i[2]),y=this.visit(i[1]);return f.type?this._againAssignHandle([f,h],[i[0],i[2]],y):null}return null});k(this,"visitVarModifier",n=>{const{children:i}=n;return i[0].symbol.text});k(this,"visitExpressionSequence",n=>{const{children:i,start:s}=n;let f=0;const h=[];for(this._currentLine=s.line;f<i.length;f++){const y=i[f];if(y.ruleIndex===F.RULE_singleExpression){const E=this.visit(y);E&&(E.ctx=y,h.push(E))}}return h});k(this,"visitExpressionBlockSequence",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_singleExpression:f.push(this.visit(h));break;case F.RULE_variableDeclarationList:f.push(this.visit(h));break;case F.RULE_blockExpression:f.push(this.visit(h));break;case F.RULE_varBlockStmt:f.push(this.visit(h));break}}return f});k(this,"visitBlockSequence",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_variableDeclarationList:f.push(this.visit(h));break;case F.RULE_singleExpression:f.push(this.visit(h));break}}return f});k(this,"visitVariableDeclarationStmt",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_variableDeclarationList:f.push(this.visit(h));break;case F.RULE_methodStmt:const y=this.visit(h);vl.includes(y.exprs[0].name)&&(this._onlyStatementsCount++,this._onlyStatementsCount>1?this._errorHandle(De(Ee.onlyStatementErr,{count:this._onlyStatementsCount}),h):this._scriptType=y.exprs[0].name),f.push(y);break}}return f});k(this,"visitVarBlockStmt",n=>{const{children:i}=n;let s=0;const f={ruleType:he.VarBlockStmt,ctx:n},h=[];for(;s<i.length;s++){const y=i[s];switch(y.ruleIndex){case F.RULE_varArrayDeclaration:f.nameList=this.visit(y);break;case F.RULE_assignmentOperator:f.operator=this.visit(y);break;case F.RULE_name:h.push(y),f.name=this.visit(y);break;case F.RULE_blockExpression:this._isNeedCalc=!0,f.value=this.visit(y),h.push(y);const E=this._getBlockReturnTypes(f.value);E.length===1?f.value.type=E[0]:f.value.types=E,this._isNeedCalc=!1;break}}return f.name?this._againAssignHandle([f.name,f.value],h,f.operator):(this._variablesHandle(f,n),f)});k(this,"visitVarSingle",n=>{const{children:i,start:s}=n,f={ruleType:he.VarSingle};let h=0;const y=this._commentsParser(s.line,[On.variable]);f.desc=y==null?void 0:y[On.variable],this._currentLine=s.line;let E={lineNumber:0,column:0};for(;h<i.length;h++){const T=i[h];switch(T.ruleIndex){case F.RULE_varModifier:f.declare=this.visit(T);break;case F.RULE_typeGather:const O=this.visit(T);f.prefix=this._getPrefix(O),f.type=O&&this._typeAddConst(O);break;case F.RULE_identifier:const A=this.visit(T);this._repeatVarJudge(A,T),E={lineNumber:T.start.line,column:T.start.column},f.name=A,f.pos=E;break}}return f});k(this,"_commentsParser",(n,i,s=!1)=>{var T;const f=this._comments.filter(O=>O.line<n&&O.line>=this._currentLine),h={},y={line:0,key:"",secKey:""},E=[On.field,On.param];for(const O of f){const[A,I]=P_.exec(O.text)||[];if(I&&i.includes(I)){const U=O.text.replace(A,"").trim();if(Object.assign(y,{line:O.line,key:I}),E.includes(I)){const[L,...b]=U.split(" ");L&&(Object.assign(y,{secKey:L}),h[I]=Object.assign(h[I]||{},{[L]:b.join(" ").trim()}))}else h[I]=[U]}else if(s&&y.key){const U=O.text.replace("//","").trim();E.includes(y.key)?h[y.key][y.secKey]+=` ${U}`:(T=h[y.key])==null||T.push(U)}}return h});k(this,"visitVarMultiple",n=>{const{children:i,start:s}=n;let f=0;const h=[],y=[];for(this._currentLine=s.line;f<i.length;f++){const E=i[f];if(E.ruleIndex===F.RULE_identifier){const T=this.visit(E);this._repeatVarJudge(T,E),h.push(T),y.push({lineNumber:E.start.line,column:E.start.column})}}return{ruleType:he.VarMultiple,names:h,posList:y}});k(this,"visitBlockExpression",n=>{const{children:i,start:s}=n;if(this._currentLine=s.line,i&&i.length){const f=i[0];return this.visit(f)}return null});k(this,"visitParenthesizedExpression",n=>{const{children:i}=n,s=i[1],f=this.visit(s);return{ruleType:he.ParenthesizedExpression,type:f.type,ctx:n,exprs:f}});k(this,"visitAdditiveExpression",n=>{const{children:i}=n;let s=0,f="";const h=[];for(;s<i.length;s++){const E=i[s];E.ruleIndex===F.RULE_singleExpression?h.push(this.visit(E)):f=E.symbol.text}const y={ruleType:he.AdditiveExpression,operator:f,ctx:n,exprs:h};if(["+","-"].includes(f)){const E=[G.UNDETERMINED,G.INT,G.FLOAT];f==="+"&&E.push(G.STRING);const T=this._sameTypeJudge(h,[i[0],i[2]],f,E);y.type=this._typeHandle(T)}else{const E=this._calcTypeJudge(h[0],i[0],f),T=this._calcTypeJudge(h[1],i[2],f,1);y.type=this._typeHandle([E,T])}return y});k(this,"visitRelationalExpression",n=>{const{children:i}=n;let s=0,f="";const h=[];for(;s<i.length;s++){const T=i[s];T.ruleIndex===F.RULE_singleExpression?h.push(this.visit(T)):f=T.symbol.text}const y=this._calcTypeJudge(h[0],i[0],f),E=this._calcTypeJudge(h[1],i[2],f,1);return{ruleType:he.RelationalExpression,operator:f,ctx:n,type:this._typeHandle([y,E],G.BOOL),exprs:h}});k(this,"visitEqualityExpression",n=>{const{children:i}=n;let s=0,f="";const h=[];for(;s<i.length;s++){const E=i[s];E.ruleIndex===F.RULE_singleExpression?h.push(this.visit(E)):f=E.symbol.text}const y=this._sameTypeJudge(h,[i[0],i[2]],f,[G.UNDETERMINED,G.COLOR,G.STRING,G.BOOL,G.INT,G.FLOAT]);return{ruleType:he.EqualityExpression,operator:f,ctx:n,type:this._typeHandle(y,G.BOOL),exprs:h}});k(this,"visitTernaryExpression",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const y=i[s];y.ruleIndex===F.RULE_singleExpression&&f.push(this.visit(y))}let h=G.UNDETERMINED;if(f.length>=3){this._boolTypeJudge(f[0],i[0],"?:");const y=this._sameTypeJudge(f.slice(1),[i[2],i[4]],"?:",[]),E=this._getPrefix(f[0].type);h=this._typeHandle(y),E&&this._getPrefix(h)&&(h=this._typeHandle([h,`${E} ${this._removePrefix(h)}`]))}return{ruleType:he.TernaryExpression,type:h,ctx:n,exprs:f}});k(this,"visitNameExpression",n=>{const{children:i}=n;if(i&&i.length){const s=i[0];return this.visit(s)}return null});k(this,"visitLiteralExpression",n=>{const{children:i}=n;if(i&&i.length){const s=i[0];return this.visit(s)}return null});k(this,"visitUnaryExpression",n=>{var T;const{children:i}=n,[s,f]=i,h=[this.visit(f)],y=s.symbol.text,E=this._calcTypeJudge(h[0],f,y);return((T=h[0])==null?void 0:T.ruleType)===he.UnaryExpression&&this._errors.push({message:De(Ee.unaryErr,{sign:y}),startColumn:s.symbol.column+1,startLineNumber:s.symbol.line,endColumn:s.symbol.column+2,endLineNumber:s.symbol.line}),{ruleType:he.UnaryExpression,operator:y,type:E,ctx:n,exprs:h}});k(this,"visitNotExpression",n=>{const{children:i}=n,s=i[1],f=[this.visit(s)],h=this._boolTypeJudge(f[0],s,"not");return{ruleType:he.NotExpression,ctx:n,type:this._typeHandle([h],G.BOOL),exprs:f}});k(this,"visitMemberIndexExpression",n=>{var h,y;const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const E=i[s];E.ruleIndex===F.RULE_singleExpression&&f.push(this.visit(E))}if(this._memberIndexVerify(f[0],n),this._hasMemberIndex=!0,((h=f[0])==null?void 0:h.ruleType)===he.MemberIndexExpression){const E=i[1];this._errors.push({message:De(Ee.unaryErr,{sign:"["}),startColumn:E.symbol.column+1,startLineNumber:E.symbol.line,endColumn:E.symbol.column+2,endLineNumber:E.symbol.line}),this._hasMemberIndex=!1}return{ruleType:he.MemberIndexExpression,type:(y=f[0])==null?void 0:y.type,ctx:n,isInFunc:this._isInFunc,exprs:f}});k(this,"visitMethodStmt",n=>{var O;const{children:i,start:s}=n;let f=0;const h=[],y=[],E=this._commentsParser(s.line,[On.description],!0);this._currentLine=s.line;let T;for(;f<i.length;f++){const A=i[f];A.ruleIndex===F.RULE_methodElement&&(h.push(this.visit(A)),y.push(A))}return((O=h[0])==null?void 0:O.name)===$o.library&&E.description&&(this._description=E.description.join(`
|
12
|
-
`)),T=this._getMethodTypes(h,y)||[],this._inputFuncTitleVerify(h),{ruleType:he.MethodExpression,types:T.length>1||T.isBrackethesized||T.isUnknown?T:void 0,ctx:n,type:T.length===1?T[0]:void 0,exprs:h}});k(this,"visitMethodExpression",n=>{const{children:i}=n;if(i&&i.length){const s=i[0];return this.visit(s)}return null});k(this,"visitLogicalAndExpression",n=>{const{children:i}=n;let s=0,f="";const h=[];for(;s<i.length;s++){const T=i[s];T.ruleIndex===F.RULE_singleExpression?h.push(this.visit(T)):f=T.symbol.text}const y=this._boolTypeJudge(h[0],i[0],f),E=this._boolTypeJudge(h[1],i[2],f,1);return{ruleType:he.LogicalAndExpression,type:this._typeHandle([y,E],G.BOOL),operator:f,ctx:n,exprs:h}});k(this,"visitLogicalOrExpression",n=>{const{children:i}=n;let s=0,f="";const h=[];for(;s<i.length;s++){const T=i[s];T.ruleIndex===F.RULE_singleExpression?h.push(this.visit(T)):f=T.symbol.text}const y=this._boolTypeJudge(h[0],i[0],f),E=this._boolTypeJudge(h[1],i[2],f,1);return{ruleType:he.LogicalOrExpression,operator:f,ctx:n,type:this._typeHandle([y,E],G.BOOL),exprs:h}});k(this,"visitMultiplicativeExpression",n=>{const{children:i}=n;let s=0,f="";const h=[];for(;s<i.length;s++){const T=i[s];T.ruleIndex===F.RULE_singleExpression?h.push(this.visit(T)):f=T.symbol.text}const y=this._calcTypeJudge(h[0],i[0],f),E=this._calcTypeJudge(h[1],i[2],f,1);return{ruleType:he.MultiplicativeExpression,operator:f,ctx:n,type:this._typeHandle([y,E]),exprs:h}});k(this,"visitBrackethesized",n=>{const{children:i,start:s}=n,f=i[1];return this._currentLine=s.line,{ruleType:he.Brackethesized,ctx:n,exprs:this.visit(f)}});k(this,"visitArguments",n=>{const{children:i}=n;let s=0;const f={params:[]};let h="";for(;s<i.length;s++){const y=i[s];if(y.ruleIndex===F.RULE_argument){const E=this.visit(y),T=E.paramKey;T?(h=T,f[T]?this._errorHandle(De(Ni.moreSameArg,{arg:T}),n.parentCtx,Qn.Warning):(f[T]=E.param,f[T].ctx=y)):h?this._errorHandle(De(Ee.argsSyntaxErr,{argName:h}),y):(E.ctx=y,f.params.push(E))}}return f});k(this,"visitArgument",n=>{const{children:i}=n;return i.length===1?this.visit(i[0]):{paramKey:this.visit(i[0]),param:this.visit(i[2])}});k(this,"visitIfStatement",n=>{const{children:i}=n;let s=0;const f={ruleType:he.IfStatement,condition:[],block:[],ctx:n,typeList:[]};for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_singleExpression:f.condition.push(this.visit(h));break;case F.RULE_blockLine:const y=this._isInLocalScop;this._isInLocalScop=!0;const E=this.visit(h);f.typeList.push(this._getBlockReturnTypes(E)),f.block.push(E),this._isInLocalScop=y;break}}return f});k(this,"visitForToStatement",n=>{const{children:i}=n;let s=0;const f={ruleType:he.ForToStatement,numerical:[],ctx:n,block:[]};for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_varModifier:f.declare=this.visit(h);break;case F.RULE_typeGather:const y=this.visit(h);f.type=y&&this._typeAddSeries(y);break;case F.RULE_identifier:f.name=this.visit(h),this._repeatVarJudge(f.name,h);break;case F.RULE_singleExpression:f.numerical.push(this.visit(h));break;case F.RULE_blockLine:this._blockCount++,this._pushBlockRanges(n),f.name&&this._variablesHandle({nameList:{name:f.name,isForVar:!0,type:f.type},value:{type:f.type||`${G.SERIES} ${G.INT}`}},n),this._blockCount--,this._blockRanges.pop(),this._loopCount++;const E=this._isInLocalScop;this._isInLocalScop=!0,f.block=this.visit(h),this._loopCount--,this._isInLocalScop=E,f.returnedTypes=this._getBlockReturnTypes(f.block);break}}return f});k(this,"visitForInStatement",n=>{const{children:i}=n;let s=0;const f={ruleType:he.ForInStatement,ctx:n,names:[]};for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_identifier:const y=this.visit(h);this._repeatVarJudge(y,h),f.names.push(y);break;case F.RULE_singleExpression:f.array=this.visit(h);const E=f.array.type;this._isArrayType(E)||this._isMatrixType(E)||E===G.UNDETERMINED||this._errorHandle(De(Ee.typeMismatch,{operator:"foreach",index:"id",typeE:E,typeR:"array<fun_arg>"}),h);break;case F.RULE_blockLine:if(this._blockCount++,this._pushBlockRanges(n),f.names.length){let[O,A]=f.names;const I=f.array.type;A?this._variablesHandle({nameList:{name:O,isForVar:!0,type:`${G.SERIES} ${G.INT}`},value:{type:`${G.SERIES} ${G.INT}`}},n):A=O;const U=I===G.UNDETERMINED?I:this._isMatrixType(I)?`${this._getArrayType(I)}[]`:this._typeAddSeries(this._getArrayType(I));this._variablesHandle({nameList:{name:A,isForVar:!0,type:U},value:{type:U}},n)}this._blockCount--,this._blockRanges.pop(),this._loopCount++;const T=this._isInLocalScop;this._isInLocalScop=!0,f.block=this.visit(h),this._isInLocalScop=T,this._loopCount--,f.returnedTypes=this._getBlockReturnTypes(f.block);break}}return f});k(this,"visitSwitchStatement",n=>{const{children:i}=n;let s=0;const f={ruleType:he.SwitchStatement,condition:!0,ctx:n,cases:[],defaultCase:void 0};for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_singleExpression:f.condition=this.visit(h);break;case F.RULE_caseClause:f.cases.push(this.visit(h));break;case F.RULE_defaultCaluse:f.defaultCase=this.visit(h);break}}return f});k(this,"visitCaseClause",n=>{const{children:i}=n,s={ruleType:he.CaseClause},f=this._isInLocalScop;return this._isInLocalScop=!0,s.condition=this.visit(i[0]),s.block=this.visit(i[2]),this._isInLocalScop=f,s.returnedTypes=this._getBlockReturnTypes(s.block),s});k(this,"visitDefaultCaluse",n=>{const{children:i}=n,s={ruleType:he.DefaultCaluse},f=this._isInLocalScop;return this._isInLocalScop=!0,s.block=this.visit(i[1]),this._isInLocalScop=f,s.returnedTypes=this._getBlockReturnTypes(s.block),s});k(this,"visitWhileStatement",n=>{const{children:i}=n,s={ruleType:he.WhileStatement,ctx:n};s.condition=this.visit(i[1]),this._loopCount++;const f=this._isInLocalScop;return this._isInLocalScop=!0,s.block=this.visit(i[2]),this._isInLocalScop=f,this._loopCount--,s.returnedTypes=this._getBlockReturnTypes(s.block),s});k(this,"visitImportStmt",async n=>{const{children:i,start:s}=n;let f=0;const h=[];for(this._currentLine=s.line;f<i.length;f++){const y=i[f];if(y.ruleIndex===F.RULE_importElement){const E=await this.visit(y);E&&h.push(E)}}return h});k(this,"visitImportElement",async n=>{const{children:i}=n;if(!i||!i.length)return;let s=0;const f=[],h={ruleType:he.ImportElement,ctx:n};for(;s<i.length;s++){const y=i[s];y.ruleIndex===F.RULE_identifier?f.push(this.visit(y)):y.symbol&&y.symbol.type===F.IntegerLiteral&&(h.libraryVersion=y.symbol.text)}return h.username=f[0],h.libraryName=f[1],h.name=f[2],await this._importHandle(h,n),h});k(this,"visitLiteral",n=>{const{children:i}=n,s=i[0],{type:f,text:h}=s.symbol,y={ruleType:he.Literal,ctx:n,type:"",value:h};switch(f){case F.ColorLiteral:y.type=G.COLOR;break;case F.BooleanLiteral:y.type=G.BOOL;break;case F.StringLiteral:if(y.type=G.STRING,h.includes(`
|
13
|
-
`)){const E=h.replace(/\s*(\n|\r)\s*/g," ");y.value=`\`${E.substring(1,E.length-1)}\``}break;case F.IntegerLiteral:y.type=G.INT;break;case F.DecimalLiteral:y.type=G.FLOAT;break}return y.type&&(y.type=`${G.CONST} ${y.type}`),y});k(this,"visitMethodElement",n=>{const{children:i}=n,[s,f]=i,[h,y,E]=this.visit(s),T=this.visit(f);return h.startsWith("request.")&&this._isInFunc&&(this._currentExportFunc&&this._errorHandle(De(Ee.exportFuncUseReqErr,{name:h}),n),this._hasRequest=!0),{name:h,type:y,args:T,expr:E}});k(this,"visitMethodName",n=>{const{children:i}=n,s=[],f=[];let h=0,y=null;for(;h<i.length;h++){const T=i[h],O=T.ruleIndex,A=T.symbol;switch(O){case F.RULE_identifier:s.push(this.visit(T));break;case F.RULE_singleExpression:y=this.visit(T);break;case F.RULE_typeName:const I=this.visit(T);f.push(I),this._typeCheck(I,F.RULE_typeName,T);break;default:A&&A.text==="."&&s.push(".")}}const E=s.join("");return N_.includes(E)?this._hasDrawFunc=!0:I_.includes(E)&&(this._hasCreateOrderFunc=!0),[E,f,y]});k(this,"visitArrowFunction",n=>{const{children:i,start:s,stop:f}=n,h={ruleType:he.ArrowFunction,returnedTypes:[]};let y=0,E={lineNumber:0,column:0};const T=this._commentsParser(s.line,[On.function,On.param,On.returns],!0);Object.assign(h,{desc:T[On.function],paramsDesc:T[On.param],returnsDesc:T[On.returns]}),this._currentLine=s.line;let O=null;for(;y<i.length;y++){const A=i[y],I=A.ruleIndex,U=A.symbol;switch(I){case F.RULE_identifier:E={lineNumber:A.start.line,column:A.start.column},h.name=this.visit(A);break;case F.RULE_arrowFunctionParameters:h.params=this.visit(A),h.isExport&&this._exportArgsTypeVerify(h.params),this._setFuncParams(h,{endColumn:f.column,endLineNumber:f.line-1,startColumn:s.column,startLineNumber:s.line}),O=A;break;case F.RULE_block:this._isInFunc=!0,h.isExport&&(this._currentExportFunc=h.name),this._hasMemberIndex=!1,this._hasRequest=!1,h.block=this.visit(A),h.hasMemberIndex=this._hasMemberIndex,h.returnedTypes=this._getBlockReturnTypes(h.block),this._isInFunc=!1,this._currentExportFunc="";break;default:U&&U.type===F.Export&&(h.isExport=!0,this._addExportPos(U,"functions"))}}return h.hasRequest=this._hasRequest,this._setFunc(h,E,O,f.line-1),this._hasRequest=!1,this._currentFuncParams.clear(),h});k(this,"visitArrowFunctionParameters",n=>{const{children:i}=n;let s=0,f=[];for(;s<i.length;s++){const h=i[s];h.ruleIndex===F.RULE_formalParameterList&&(f=this.visit(h))}return f});k(this,"visitFormalParameterList",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const h=i[s];h.ruleIndex===F.RULE_formalParameterArg&&f.push(this.visit(h))}return f});k(this,"visitFormalParameterArg",n=>{const{children:i}=n;let s=0;const f={};for(;s<i.length;s++){const h=i[s];switch(h.ruleIndex){case F.RULE_typeGather:const y=this.visit(h);f.type=y&&this._typeAddSeries(y);break;case F.RULE_identifier:f.name=this.visit(h);break;case F.RULE_singleExpression:f.defaultValue=this.visit(h),delete f.defaultValue.ctx}}return f.ctx=n,this._verifyArgsDefaultValue(f,n),f.type=f.type||G.UNDETERMINED,f});k(this,"visitArrowMethod",n=>{const{children:i,start:s,stop:f}=n;let h=0;const y={ruleType:he.ArrowMethod,returnedTypes:[]};let E={lineNumber:0,column:0};const T=this._commentsParser(s.line,[On.function,On.param,On.returns],!0);Object.assign(y,{desc:T[On.function],paramsDesc:T[On.param],returnsDesc:T[On.returns]}),this._currentLine=s.line;let O=null;for(;h<i.length;h++){const A=i[h];switch(A.ruleIndex){case F.RULE_identifier:E={lineNumber:A.start.line,column:A.start.column},y.name=this.visit(A);break;case F.RULE_arrowMethodParameters:y.params=this.visit(A),y.isExport&&this._exportArgsTypeVerify(y.params),this._setFuncParams(y,{endColumn:f.column,endLineNumber:f.line-1,startColumn:s.column,startLineNumber:s.line}),O=A;break;case F.RULE_block:this._isInFunc=!0,y.isExport&&(this._currentExportFunc=y.name),this._hasMemberIndex=!1,this._hasRequest=!1,y.block=this.visit(A),y.hasMemberIndex=this._hasMemberIndex,y.returnedTypes=this._getBlockReturnTypes(y.block),this._isInFunc=!1,this._currentExportFunc="";break;default:A.symbol&&A.symbol.type===F.Export&&(y.isExport=!0,this._addExportPos(A.symbol,"methods"));break}}return y.hasRequest=this._hasRequest,this._setFunc(y,E,O,f.line-1),this._setMethod(y,E),this._hasRequest=!1,this._currentFuncParams.clear(),y});k(this,"visitArrowMethodParameters",n=>{const{children:i}=n;let s=0;const f={};let h=[];for(;s<i.length;s++){const y=i[s];switch(y.ruleIndex){case F.RULE_typeGather:const E=this.visit(y);f.type=E&&this._typeAddSeries(E);break;case F.RULE_identifier:f.ctx=y,f.name=this.visit(y);break;case F.RULE_formalParameterList:h=this.visit(y);break}}return[f,...h]});k(this,"visitTypeStatement",n=>{const{children:i,start:s,stop:f}=n;let h=0;const y={ruleType:he.TypeStatement,fields:[]},E=this._commentsParser(s.line,[On.type,On.field]);Object.assign(y,{desc:E[On.type],fieldsDesc:E[On.field]}),this._currentLine=s.line;let T={lineNumber:0,column:0},O=null;for(;h<i.length;h++){const A=i[h];switch(A.ruleIndex){case F.RULE_identifier:T={lineNumber:A.start.line,column:A.start.column},O=A,y.name=this.visit(A);break;case F.RULE_typeElement:y.fields.push(this.visit(A));break;default:A.symbol&&A.symbol.type===F.Export&&(y.isExport=!0,this._addExportPos(A.symbol,"types"));break}}if(y.isExport){const A=f.line-1,{line:I=0}=this._endExport;A>I&&(this._endExport={line:A,name:y.name})}return this._setUserType(y,T,O),this._setNewFunc(y,T),this._setCopyFunc(y,T),this._setCopyMethod(y,T),y});k(this,"visitTypeElement",n=>{const{children:i,start:s}=n;let f=0;const h={};let y=null,E=null;for(this._currentLine=s.line;f<i.length;f++){const T=i[f];switch(T.ruleIndex){case F.RULE_typeGather:const O=this.visit(T);if(T.children[0].ruleIndex===F.RULE_typeSeries){const{column:A,line:I,text:U}=T.start,L=A+1;this._errors.push({startColumn:L,endColumn:parseInt(L+U.length),startLineNumber:I,endLineNumber:I,message:De(this._buildinTypes.has(U)?Ee.typeUseError:Ee.notTypeKeyword,{text:U})}),h.type=G.UNDETERMINED}else h.type=O&&this._typeAddSeries(O);break;case F.RULE_identifier:h.name=this.visit(T),E=T;break;case F.RULE_singleExpression:y=T,h.value=this.visit(T);break;default:T.symbol&&T.symbol.type===F.Varip&&(h.isVarip=!0);break}}return this._typeElementVerify(h,y,E),h});k(this,"visitAssignmentOperator",n=>{const{children:i}=n;return i&&i[0].symbol.text});k(this,"visitTypeMap",n=>{const{children:i}=n;let s=0;const f=[];for(;s<i.length;s++){const h=i[s];if(h.ruleIndex===F.RULE_typeName){const y=this.visit(h);f.push(y),this._typeCheck(y,F.RULE_typeName,h)}}return`map<${f[0]},${f[1]}>`});k(this,"visitTypeSeries",n=>{const{children:i}=n,[s,f]=i,h=this.visit(s),y=this.visit(f);return this._typeCheck(h,F.RULE_typeSeries,s),this._typeCheck(y,F.RULE_typeName,f),`${h} ${y}`});k(this,"visitTypeArray",n=>{const{children:i}=n,s=i[0];let f=this.visit(s),h=f;if(i.length===3)f=G.ARRAY;else{this._typeCheck(f,F.RULE_typeArray,s);let y=1;for(;y<i.length;y++){const E=i[y];E.ruleIndex===F.RULE_typeName&&(h=this.visit(E),this._typeCheck(h,F.RULE_typeName,E))}}return this._arrayTypeConvert(`${f}<${h}>`)});k(this,"visitTypeGather",n=>{const{children:i}=n;if(i&&i.length){const s=i[0],f=this.visit(s);return s.ruleIndex===F.RULE_typeName&&this._typeCheck(f,F.RULE_typeName,s),f}return null});k(this,"visitIdentifier",n=>n.children&&n.children[0].symbol.text);k(this,"visitTypeName",n=>{const{children:i}=n;let s=0,f="";for(;s<i.length;s++){const h=i[s];h.ruleIndex===F.RULE_identifier?f=`${f}${this.visit(h)}`:f=`${f}.`}return f});k(this,"visitName",n=>{const{children:i}=n;let s=0,f=!1;const h=[];let y=null;for(;s<i.length;s++){const E=i[s];switch(E.ruleIndex){case F.RULE_identifier:h.push(this.visit(E));break;case F.RULE_singleExpression:y=this.visit(E);break;case F.RULE_methodElement:f=!0;const T=this.visit(E);T.ctx=E,h.push(T);break}}return this._nameHandle(f,h,y,n)});this._loopCount=0,this._errors=[],this._variables=new Map,this._functions=new Map,this._methods=new Map,this._currentFuncParams=new Map,this._types=new Map,this._currentBlockVars=[new Map],this._blockCount=0,this._isInFunc=!1,this._isNeedCalc=!1,this._blockRanges=[],this._overloadsFuncs=[],this._hasMemberIndex=!1,this._isInLocalScop=!1,this._onlyStatementsCount=0,this._comments=i,this._exportFunctions=[],this._exportMethods=[],this._exportTypes=[],this._exportPositions=[],this._endExport={},this._importLibs=new Map,this._getImportLibraryFunc=s}get overloadsFuncs(){return this._overloadsFuncs}get errors(){return this._errors}get userTypes(){return this._types}get userFunctions(){return this._functions}get userVariables(){return this._variables}get userMethods(){return this._methods}get hasUseDrawFunc(){return this._hasDrawFunc}get hasUseCreateOrderFunc(){return this._hasCreateOrderFunc}get scriptType(){return this._scriptType}get exportLibs(){return{functions:[...this._exportFunctions],methods:[...this._exportMethods],types:[...this._exportTypes]}}get description(){return this._description}get exportPositions(){return this._exportPositions}get endExport(){return this._endExport}get imports(){return this._importLibs}_verifyGloablVar(n,i){const{name:s,varPos:f,isBuiltIn:h}=n;if(h&&this._errorHandle(De(Ee.buidinAssignErr,{name:s}),i),!f)return;const y=this._currentBlockVars[0].get(s);if(!y)return;const{column:E,lineNumber:T}=y.pos||{};this._isInFunc&&E===f.column&&T===f.lineNumber&&this._errorHandle(De(Ee.modifyGlobalVarErr,{name:s}),i)}_inputFuncTitleVerify(n){if(!(n!=null&&n.length)||n.length>1)return;const{name:i,args:s}=n[0];i.startsWith(G.INPUT)&&this._inputVarName&&!(s.params.some(f=>f.originName==="title")||s.title)&&(s.title={value:`"${this._inputVarName}"`,ruleType:he.Literal,type:`${G.CONST} ${G.STRING}`})}async _importHandle(n,i){const{stop:s,start:f}=i,{username:h,libraryName:y,libraryVersion:E,name:T}=n,O=`${h}/${y}/${E}`;if(this._importLibs.has(O))return this._errorHandle(Ee.importMultipleErr,i),n;for(const[U,L]of this._importLibs)if(L.name&&L.name===T||!L.name&&!T&&L.libraryName===y)return this._errorHandle(De(Ee.importNameRepeatErr,{name:T,line:L.startLine}),i),n;let A=T||y;const I=await this._getImportLibraryFunc({...n,libraryId:O,ctx:void 0,startLine:f.line,endLine:s.line,startColumn:f.column,endColumn:s.column+s.text.length+1});if(I){const{codeStr:U,description:L}=I;this._importLibs.set(O,{...n,libraryId:O,startLine:f.line,endLine:s.line,ctx:void 0,desc:L}),this._importDataHandle(I,A),Ln.includes(A)&&(A=`$${A}`),n.code=U.replace("$name",A)}else this._errorHandle(De(Ee.importNotExitErr,{username:h,libraryName:y}),i)}_importDataHandle(n,i){const{functions:s,methods:f,types:h}=n;for(const y of s){const{name:E}=y,T=`${i}.${E}`,O=this._functions.get(T)||[];O.push({...this._importTypeUpdate(y,h,i),name:T,isUser:void 0,isImport:!0}),this._functions.set(T,O)}for(const y of f){const E=this._importTypeUpdate(y,h,i),T=E.originalName||E.name,O=this._methods.get(T)||[];O.push({...E,isImport:!0,isUser:void 0}),this._methods.set(T,O)}for(const y of h){const E=`${i}.${y.name}`,T=this._types.get(E)||[];T.push({...this._importTypeUpdate(y,h,i),name:E,isImport:!0}),this._types.set(E,T)}}_importTypeUpdate(n,i,s){var U;let{args:f,returnedTypes:h,thisType:y,fields:E,name:T,originalName:O}=n,A="";if(f&&f.length&&(f=f.map(L=>{const{allowedTypeIDs:b,displayType:_,name:g}=L,C=_&&this._replaceTypeName(_,i,s);return A=A?`${A}, ${C} ${g}`:`${C} ${g}`,{...L,allowedTypeIDs:b==null?void 0:b.map(R=>this._replaceTypeName(R,i,s)),displayType:C}})),h!=null&&h.length&&(h=[this._replaceTypeName(h[0],i,s)]),y!=null&&y.length){const L=this._replaceTypeName(y[0],i,s);L!==y[0]&&(O=`${s}.${O||T}`),y=[L]}E!=null&&E.length&&(E=E.map(L=>{const{type:b}=L;return{...L,type:b&&this._replaceTypeName(b,i,s)}}));const I={...n,args:f,returnedTypes:h,thisType:y,fields:E,originalName:O};return(U=I.syntax)!=null&&U.length&&(I.syntax=[`${O||`${s}.${T}`}(${A}) → ${(h==null?void 0:h[0])||"void"}`]),I}_replaceTypeName(n,i,s){const f=i.find(h=>n.includes(h.name));return f?n.replace(f.name,`${s}.${f.name}`):n}_verifyArgsDefaultValue(n,i){const{defaultValue:s,type:f}=n;if(!s)return;const{ruleType:h,isBuiltIn:y,type:E}=s,T=this._removePrefix(E);if(h!==he.Literal&&!y)delete n.defaultValue,this._errorHandle(Ee.argDefaultErr,i);else if(f&&f!==G.UNDETERMINED&&E!==G.UNDETERMINED){const O=this._removePrefix(f);if(O===G.FLOAT&&T===G.INT)return;T!==O&&this._errorHandle(De(Ee.defaultValueTypeErr,{typeE:E,typeR:f}),i)}else f||(n.type=this._typeAddSeries(T===G.INT?G.FLOAT:T))}_exportArgsTypeVerify(n){for(const i of n)(i.type===G.UNDETERMINED||!i.type)&&this._errorHandle(Ee.exportFuncArgErr,i.ctx)}_addExportPos(n,i){const{line:s,column:f,text:h}=n;this._exportPositions.push({startLineNumber:s,startColumn:f,endLineNumber:s,endColumn:f+h.length+1,type:i})}_nameHandle(n,i,s,f){var y,E;const h={ruleType:he.Name,hasMethod:n,exprs:i,expr:s};if(n){let T="";const O=[];for(const I of i)typeof I=="string"?T=T?`${T}.${I}`:I:(T&&(I.name=`${T}.${I.name}`),O.push(I),T="");h.exprs=[...O,T];const A=this._getMethodTypes(O,Array.from(O,()=>f));if(A&&A.length){const I=De(Ee.noFiledErr,{name:T});A.length>1&&this._errorHandle(I,f),h.type=((E=this._nameCheck(this._getOriginMethodName(A[0],T),f,I))==null?void 0:E.type)||G.UNDETERMINED}}else{let T=i.join(".");if(s&&s.type&&s.type===G.UNDETERMINED)h.type=G.UNDETERMINED,T=`expr0.${T}`;else{s&&s.type&&(T=`${this._getMethodTypeName(s.type)}.${T}`);const O=this._nameCheck(T,f)||{};(y=O.title)!=null&&y.startsWith("built-in")&&(h.isBuiltIn=!0,h.isConst=O.isConst),h.varPos=O.pos,h.varScope=O.scope,h.declare=O.declare,h.type=(O==null?void 0:O.type)||G.UNDETERMINED,O!=null&&O.isArg&&(h.arg=O),h.scope=this._blockCount,this._isInFunc&&this._currentExportFunc&&(h.type.startsWith(G.INPUT)?this._errorHandle(De(Ee.exportFuncHasInputErr,{name:T,func:this._currentExportFunc}),f):O.scope===0&&this._errorHandle(De(Ee.exportFuncUseGlobalVarErr,{func:this._currentExportFunc}),f))}h.name=T}return h}_typeElementVerify(n,i,s){var E,T;const{type:f,value:h}=n;if(!h){f||this._errorHandle(Ee.typeFieldErr,s);return}if(![he.Literal,he.UnaryExpression].includes(h.ruleType)&&!h.isBuiltIn){this._errorHandle(Ee.defaultValueErr,i);return}else if(h.ruleType===he.UnaryExpression){const{exprs:O}=h;if(![he.Literal,he.UnaryExpression].includes((E=O[0])==null?void 0:E.ruleType)&&!((T=O[0])!=null&&T.isBuiltIn)){this._errorHandle(Ee.defaultValueErr,i);return}}if(!f){const O=h.type,A=this._getPrefix(O);n.type=A?this._typeAddSeries(this._removePrefix(O)):O;return}(!this._compareType(f,h.type)||f.endsWith(G.INT)&&h.type.endsWith(G.FLOAT))&&this._errorHandle(De(Ee.defaultValueTypeErr,{typeE:h.type,typeR:f}),i)}_memberIndexVerify(n,i){if(n.ruleType===he.Name&&!n.hasMethod&&this._blockCount){const f=this._currentBlockVars[this._blockCount],h=f&&f.get(n.name);h&&(h.isForVar?this._errorHandle(De(Ee.notHistoryErr,{name:n.name}),i):!(this._blockCount===1&&this._isInFunc)&&this._errorHandle(De(Ni.localScopeGetHistory,{name:n.name}),i,Qn.Warning))}const s=n&&n.type;if(s){const f=this._removePrefix(s);!this._types.has(f)&&!this._buildinTypes.has(f)&&!this._isArrayType(f)&&!this._isMatrixType(f)&&!this._isMapType(f)&&f!==G.UNDETERMINED&&this._errorHandle(De(Ee.invalidType,{index:0}),i)}}_setFuncParams(n,i){var s;for(const f of n.params){const h=(s=this._types.get(f.type))==null?void 0:s[0];if(f.scope=this._blockCount+1,h&&h.fields)for(const y of h.fields){const E=`${f.name}.${y.name}`;this._currentFuncParams.set(E,{...y,originName:E,varScope:f.scope})}delete f.ctx,f.range=i,this._setVariablesMap(f,!0),this._currentFuncParams.set(f.name,f)}}_pushBlockRanges(n){!n||!n.start||!n.stop||this._blockRanges.push({startColumn:n.start.column,endColumn:n.stop.column,startLineNumber:n.start.line,endLineNumber:n.stop.line})}_setUserType(n,i,s){const{fields:f,name:h,desc:y,fieldsDesc:E}=n,T={fields:f.map(O=>({name:O.name,desc:E==null?void 0:E[O.name],type:O.type})),name:h,desc:y,pos:i};if(this._types.has(h)){this._errorHandle(De(Ee.typeRepeatErr,{name:h}),s);return}n.isExport&&this._exportTypes.push(T),this._types.set(h,[{...T}]),this._addVarToMap(h,h,i,!1,!1)}_againAssignHandle(n,i,s){const f=s!==":="?s.replace("=",""):s,h=s!==":="?[G.UNDETERMINED,G.INT,G.FLOAT]:[];f==="+"&&h.push(G.STRING);const[y,E]=n;y.arg&&!y.name.includes(".")&&this._errorHandle(De(Ee.funcArgAssignErr,{name:y.name}),i[0]);const T=this._sameTypeJudge(n,i,f,h),O=this._typeHandle(T);return this._updateUserVar(y.name,O,E.type),y.type=O,{ruleType:he.AgainAssign,name:y,operator:s,type:O,value:E}}_typeCheck(n,i,s){const f=[G.SERIES,G.SIMPLE,G.CONST];switch(i){case F.RULE_typeName:const h=this._buildinTypes.get(n);h&&![...f,G.ARRAY,G.MATRIX,G.MAP].includes(h[0].name)||this._types.get(n)||this._errorHandle(De(Ee.notTypeKeyword,{text:n}),s);break;case F.RULE_typeArray:[G.ARRAY,G.MATRIX].includes(n)||this._errorHandle(Ee.tempateTypeErr,s);break;case F.RULE_typeSeries:f.includes(n)||this._errorHandle(De(Ee.qualifierErr,{name:n}),s);break}}_getBuildVar(n){const i=this._buildinVariables.get(n);if(i&&i[0])return i[0];const s=this._buildinConstants.get(n);return s&&s[0]?Object.assign(s[0],{isConst:!0}):this._specialTreatmentChartPoint(n)}_specialTreatmentChartPoint(n){var i,s;if(n.startsWith("chart.point")){const f=n.split("."),h=f.pop(),y=f.join(".");return(((s=(i=this._buildinTypes.get(y))==null?void 0:i[0])==null?void 0:s.fields)||[]).find(T=>T.name===h)}}_verifyName(n,i){var f,h;const s=this._getBuildVar(n);if(s)return s;if(n.includes(".")){const y=n.split("."),E=y.pop(),T=y.join(".");let O=this._blockCount;for(;O>=0;){if(!this._currentBlockVars[O]){O--;continue}const I=this._currentBlockVars[O].get(T);if(i&&this._judgeGatherValue(E||"",i,I==null?void 0:I.valueType,!0),(I==null?void 0:I.type)==="chart.point"){const L=(((h=(f=this._buildinTypes.get(I.type))==null?void 0:f[0])==null?void 0:h.fields)||[]).find(b=>b.name===E);if(L)return Object.assign(L,{pos:I.pos})}O--}const A=this._specialTreatmentChartPoint(n);if(A)return A}return this._getUserVar(n)}_judgeGatherValue(n,i,s,f){return s!==`${G.SIMPLE} ${G.NA}`?!0:(f&&this._errorHandle(De(Ee.objectIsNaErr,{name:n,type:"field"}),i),!1)}_nameCheck(n,i,s=De(Ee.undeclared,{name:n})){const f=this._verifyName(n,i);return f||this._errorHandle(s,i),f}_inBlock(n){this._blockCount++,this._pushBlockRanges(n);const i=this.visit(n);return this._blockCount--,this._blockRanges.pop(),this._currentBlockVars.splice(this._blockCount+1),i}_errorHandle(n,i,s=Qn.Error){this._errors.push({message:n,startColumn:i.start.column+1,startLineNumber:i.start.line,endColumn:i.start.column+2+i.stop.stop-i.start.start,endLineNumber:i.stop.line,type:s})}_boolTypeJudge(n,i,s,f=0){return this._typeJudge(n,i,s,G.BOOL,[G.UNDETERMINED,G.INT,G.FLOAT,G.BOOL],f)}_calcTypeJudge(n,i,s,f=0){return this._typeJudge(n,i,s,"int/float",[G.UNDETERMINED,G.INT,G.FLOAT],f)}_typeJudge(n,i,s,f,h,y=0){const E=n&&n.type;if(E){const T=this._removePrefix(E);if(!h.includes(T)&&T!==G.NA)return this._errorHandle(De(Ee.typeMismatch,{operator:`operator ${s}`,index:`expr${y}`,typeE:T,typeR:f}),i),G.UNDETERMINED;f===G.BOOL&&[G.INT,G.FLOAT].includes(T)&&this._errorHandle(De(Ni.typeMismatch,{operator:`operator ${s}`,index:`expr${y}`,type:G.BOOL}),i,Qn.Warning)}return E||G.UNDETERMINED}_sameTypeJudge(n,i,s,f){let h="";const y=[],E=["plot_display","plot_simple_display"];["+","-","+=","-="].includes(s)&&(f=f.concat(E));for(const[T,O]of n.entries()){let A=O&&O.type||G.UNDETERMINED;const I=this._removePrefix(A);if(h||(h=I),!f.includes(I)&&f.length&&I!==G.NA){this._errorHandle(De(Ee.typeMismatch,{operator:`operator ${s}`,index:`expr${T}`,typeE:A,typeR:f.slice(1).join("/")}),i[T]),h=G.UNDETERMINED,y.push(h);continue}if(h===G.UNDETERMINED||I===G.UNDETERMINED)A=h=G.UNDETERMINED;else if(h!==I&&h!==G.NA&&I!==G.NA&&(![G.INT,G.FLOAT].includes(h)||![G.INT,G.FLOAT].includes(I)))if(s===":=")this._errorHandle(De(Ee.assignTypeMismatch,{typeE:I,name:n[0].name,typeR:h}),i[0]),A=h=G.UNDETERMINED;else if(["==","!=","?:"].includes(s)&&[G.INT,G.FLOAT,G.BOOL].includes(h)&&[G.INT,G.FLOAT,G.BOOL].includes(I))this._errorHandle(De(Ni.typeMismatch,{operator:`operator ${s}`,index:`expr${T}`,type:h}),i[T],Qn.Warning),A=h=G.UNDETERMINED;else if(E.includes(h)&&E.includes(I)){if(h!==I){const U=this._getPrefix(A);y[T-1]=`${this._getPrefix(y[T-1])} ${E[0]}`,A=h=`${U} ${E[0]}`}}else this._errorHandle(De(Ee.typeMismatch,{operator:`operator ${s}`,index:`expr${T}`,typeE:I,typeR:h}),i[T]),A=h=G.UNDETERMINED;y.push(A)}return y}_getUserVar(n,i=!1){for(let s=this._blockCount;s>=0;s--){const f=this._currentBlockVars[s];if(s<=0){const h=this._currentFuncParams.get(n);if(h)return h.isArg=!0,h}if(f){const h=f.get(n);if(h)return h}}if(n.includes(".")&&!i){let s=!1,f=null;if(n.split(".").reduce((h,y)=>{let E=h?`${h}.${y}`:y;const T=this._getUserVar(E,!0);return T!=null&&T.type?T.type===G.UNDETERMINED?s=!0:(E=T.type,f=T):f=null,E},""),s)return{name:n,type:G.UNDETERMINED};if(f)return f}return null}_repeatVarJudge(n,i){this._getBuildVar(n)&&this._errorHandle(De(Ee.buidinVarErr,{name:n}),i);for(let f=0;f<=this._blockCount;f++){const h=this._currentBlockVars[f];if(h&&h.get(n)){if(this._blockCount===f)return this._errorHandle(De(Ee.repeatVar,{name:n}),i),!0;this._errorHandle(De(Ni.repeatVar,{name:n}),i,Qn.Warning)}}}_judgeVarBuildIn(n){for(let i=0;i<=this._blockCount;i++){const s=this._currentBlockVars[i];if(s&&s.get(n))return!0}return!1}_updateUserVar(n,i,s){for(let f=0;f<=this._blockCount;f++){const h=this._currentBlockVars[f];if(h){const y=h.get(n);if(y){y.type=i,y.valueType=s;return}}}}_variablesHandle(n,i){var h,y,E,T;if(!(n&&n.nameList))return;const s=n.nameList;if(s.name==="_")return;const f=n.value;if(s.ruleType===he.VarMultiple){s.types=[],this._checkVarMultiple(s.names,f,i);for(const[O,A]of s.names.entries()){const I=this._varTypeJudge("",((h=f==null?void 0:f.types)==null?void 0:h[O])||G.UNDETERMINED,i);s.types.push(I),this._addVarToMap(A,I,s.posList[O],!0)}}else{const O=(f==null?void 0:f.type)||((y=f==null?void 0:f.returnedTypes)==null?void 0:y[0]);((E=f==null?void 0:f.types)!=null&&E.isBrackethesized||(T=f==null?void 0:f.returnedTypes)!=null&&T.isBrackethesized)&&this._errorHandle(De(Ee.tupleLeftVarErr,{name:s.name}),i),!s.type&&O===`${G.SIMPLE} ${G.NA}`&&this._errorHandle(Ee.naVarErr,i),s.prefix&&Ii.indexOf(s.prefix)>Ii.indexOf(this._getPrefix(O))&&this._errorHandle(De(Ee.declaredErr,{prefix:s.prefix,type:O}),i);const A=this._varTypeJudge(s.type,O||G.UNDETERMINED,i);s.type=A,this._addVarToMap(s.name,A,s.pos,!0,s.isForVar,s.declare,f.type,s.desc)}}_checkVarMultiple(n,i,s){var T,O,A,I;const f=n.length,h=(i.types||i.returnedTypes||[]).length,y=((T=i.types)==null?void 0:T.isBrackethesized)||((O=i.returnedTypes)==null?void 0:O.isBrackethesized);(A=i.types)!=null&&A.isUnknown||(I=i.returnedTypes)!=null&&I.isUnknown||(h===1&&!y||!h?this._errorHandle(Ee.tupleRightVarErr,s):f!==h&&this._errorHandle(De(Ee.tupleVarErr,{indexA:h,indexB:f}),s))}_addVarToMap(n,i,s,f=!0,h=!1,y,E,T){var U;const O=this._currentBlockVars[this._blockCount]||new Map,A=(U=this._types.get(i))==null?void 0:U[0];if(A&&A.fields)for(const L of A.fields)O.set(`${n}.${L.name}`,L);const I={name:n,type:i,pos:s,valueType:E,desc:T};f&&this._setVariablesMap(I),O.set(n,Object.assign(I,{isForVar:h,declare:y})),this._currentBlockVars[this._blockCount]=O}_setVariablesMap(n,i=!1){const s=this._blockRanges[this._blockCount];i||(n.range=s,n.scope=this._blockCount);const f=this._variables.get(n.name)||[];f.push(n),this._variables.set(n.name,f)}_varTypeJudge(n,i,s){if(i===G.VOID)return this._errorHandle(Ee.voidNotVar,s),G.UNDETERMINED;if(n&&i!==G.UNDETERMINED){const f=this._removePrefix(n),h=this._removePrefix(i);return h!==f&&h!==G.NA&&!(f===G.FLOAT&&h===G.INT)?(this._errorHandle(De(Ee.declareTypeErr,{type:n,valueType:i}),s),G.UNDETERMINED):this._typeHandle([n,i])}else if(i===G.UNDETERMINED)return G.UNDETERMINED;return n||i||G.UNDETERMINED}_getAllowTypes(n){const i=[];if(n===G.UNDETERMINED)return i;const s=this._getPrefix(n);if(s){const f=this._removePrefix(n);let h=-1;for(const[y,E]of Ii.entries())E===s&&(h=y),h>=0&&h<=y&&(f===G.FLOAT&&i.push(`${E} ${G.INT}`),i.push(`${E} ${f}`))}else n=this._arrayTypeConvert(n)||"",i.push(n),n.includes(G.FLOAT)&&i.push(n.replace(/float/,G.INT));return i}_setNewFunc(n,i){const s=`${n.name}.new`,f=[],h=[];for(const E of n.fields)f.push({name:E.name,required:!1,allowedTypeIDs:this._getAllowTypes(E.type),displayType:E.type}),h.push(`${E.type} ${E.name}`);const y={name:s,args:f,returnedTypes:[n.name],pos:i,syntax:[`${s}(${h.join(", ")}) → ${n.name}`]};n.isExport&&this._exportFunctions.push(y),this._functions.set(s,[{...y,isUser:!0}])}_setCopyFunc(n,i){const s=n.name,f=`${s}.copy`,h={name:f,args:[{name:"object",required:!0,allowedTypeIDs:[s],displayType:s}],returnedTypes:[s],pos:i,info:"The identifier of the object to be copied.",syntax:[`${f}(${s} object) → ${s}`]};n.isExport&&this._exportFunctions.push(h),this._functions.set(f,[{...h,isUser:!0}])}_setCopyMethod(n,i){const s=n.name,f=`${s}.copy`,h={name:f,originalName:f,args:[],returnedTypes:[s],thisType:[s],pos:i,syntax:[`${f}() → ${s}`]};n.isExport&&this._exportMethods.push(h),this._methods.set(f,[{...h,isUser:!0}])}_setFunc(n,i,s,f){const h=[],y=[],{desc:E,paramsDesc:T,returnsDesc:O,params:A,hasMemberIndex:I}=n;for(const C of A){const{type:R,name:D,defaultValue:B}=C;h.push({name:D,desc:T==null?void 0:T[D],required:!B,allowedTypeIDs:this._getAllowTypes(R),displayType:R}),y.push(`${R===G.UNDETERMINED?"":`${R} `}${D}`)}const{returnedTypes:U=[]}=n,L=n.name,b=U.length>1?`[${U.join(", ")}]`:U.toString(),_={name:L,desc:E,args:h,syntax:[`${L}(${y.join(", ")}) → ${b||"void"}`],hasMemberIndex:I,pos:i,isUser:!0,returnedTypes:U,returns:O,hasRequest:this._hasRequest};let g=this._functions.get(L);if(g){const C=g.length;_.index=C,n.index=C,this._verifyFuncRepeat(g,_,s),g.push(_),this._overloadsFuncs.push({name:L,index:C,line:i.lineNumber,startColumn:i.column+1,endColumn:i.column+L.length})}else g=[_];if(n.isExport){const{line:C=0}=this._endExport;f>C&&(this._endExport={line:f,name:L,index:_.index}),this._exportFunctions.push(_)}this._functions.set(L,g)}_setMethod(n,i){var R;const{name:s,returnedTypes:f,params:h,desc:y,paramsDesc:E,returnsDesc:T}=n,O=h[0].type,A=[],I=[];for(const D of h.slice(1)){const{type:B,name:X,defaultValue:ne}=D;A.push({name:X,desc:E==null?void 0:E[X],required:!ne,allowedTypeIDs:this._getAllowTypes(B),displayType:B}),I.push(`${B} ${X}`)}const U=f.length>1?`[${f.join(", ")}]`:f.toString(),L=this._getMethodTypeName(O),b=`${L}.${s}`;n.typeName=L;const _={name:s,args:A,desc:y,originalName:b,syntax:[`${s}(${I.join(", ")}) → ${U||"void"}`],returnedTypes:f,hasMemberIndex:n.hasMemberIndex,pos:i,thisType:[O],returns:T,hasRequest:this._hasRequest};let g=this._methods.get(b),C=this._functions.get(s);if(C){const D=C.filter(ne=>!ne.isImport).length,B=((R=g==null?void 0:g.filter(ne=>!ne.isImport))==null?void 0:R.length)||0;let X=D;D>B&&(X=D-1),_.index=X,n.index=X}g?g.push(_):g=[_],n.isExport&&this._exportMethods.push(_),this._methods.set(b,g)}_verifyFuncRepeat(n,i,s){const{args:f}=i;n.some(y=>{const{args:E}=y;return(E==null?void 0:E.length)!=(f==null?void 0:f.length)?!1:!(E!=null&&E.length)&&!(f!=null&&f.length)?!0:E==null?void 0:E.every((T,O)=>{var A;return T.displayType===((A=f==null?void 0:f[O])==null?void 0:A.displayType)})})&&this._errorHandle(De(Ee.funcRepeatErr,{name:i.name}),s)}_getMethodTypes(n,i){let s;for(const[f,h]of n.entries()){const{type:y,expr:E,args:T}=h;let{name:O}=h;const A=i[f];if(E){if(E.type===G.UNDETERMINED)return[G.UNDETERMINED];O=`${this._getMethodTypeName(E.type)}${O}`,T.params.unshift(E)}if(s&&s.length>=1)if(s.length===1){const I=s[0];if(I===G.UNDETERMINED)return[G.UNDETERMINED];const U=this._getOriginMethodName(I,O);O.includes(".")?s=this._getOtherNamesMethodType(U,s,A,T,h):s=this._expandMethodHandle(U,A,T,{type:I},I,h)}else this._errorHandle(De(Ee.noFiledErr,{name:O}),A);else{const[I,U]=this._tempFuncNameHandle(O,A,y);O=U;const L=this._buildinFunctions.get(I);if(L)this._globalFuncVerify(L[0],A),this._hasMemberIndexVerify(L[0],A,h),h.isBuiltIn=!0,s=this._getBuildInReturnTypes(L,T,O,A,void 0,y);else{const b=this._functions.get(O);if(b)if(b.length<=1){this._hasMemberIndexVerify(b[0],A,h),s=b[0].returnedTypes;const{hasErr:_}=this._checkArgs(T,b[0].args||[],O,A,s[0]);if(_)return[G.UNDETERMINED]}else{const _=this._overloadsFuncGetTypes(b,T,A,void 0,h);s=this._returnedTypesParse([_])}else s=this._getOtherNamesMethodType(O,s,A,T,h)}}h.returnTypes=s}return s===void 0&&this._errorHandle(De(Ee.notFindFuncErr,{name:n[0].name}),i[0]),s}_globalFuncVerify(n,i){this._blockCount!==0&&w_.includes(n.name)&&this._errorHandle(De(Ee.globalFuncErr,{name:n.name}),i)}_hasMemberIndexVerify(n,i,s){n.hasRequest&&(s.hasRequest=!0,this._hasRequest=!0),n.hasMemberIndex||n.name.startsWith("ta.")||n.name==="math.sum"?(this._hasMemberIndex=this._isInFunc,s.hasMemberIndex=!0,s.position=i.start.tokenIndex,this._isInLocalScop&&this._errorHandle(De(Ni.localScopeWarning,{name:s.name}),i,Qn.Warning)):n.name.startsWith("request.")&&this._isInLocalScop&&this._errorHandle(Ee.requestUserInLoopErr,i)}_tempFuncNameHandle(n,i,s){let f=n;if(s&&s.length>=1){const h=["array.new","matrix.new"].includes(n),y=n==="map.new";if(s.length===1)if(h)f=`${n}<type>`,n=`${n}<${s[0]}>`;else return y?this._errorHandle(De(Ee.templateErr,{countA:2,countB:1}),i):this._errorHandle(De(Ee.templateNoSupportErr,{name:n}),i),[G.UNDETERMINED];else{if(!y)return h?this._errorHandle(De(Ee.templateErr,{countA:1,countB:2}),i):this._errorHandle(De(Ee.templateNoSupportErr,{name:n}),i),[G.UNDETERMINED];if(!Rp.includes(s[0]))return this._errorHandle(De(Ee.mapKeyErr,{type:this._typeAddSeries(s[0])}),i),[G.UNDETERMINED];f=`${n}<type,type>`,n=`${n}<${s[0]},${s[1]}>`}}return[f,n]}_getOtherNamesMethodType(n,i,s,f,h){const y=n.split("."),E=y.length-1,T=y.slice(0,E).join("."),O=this._getUserVar(T);this._judgeGatherValue(y[E],s,O==null?void 0:O.valueType)||(h.name=`${T}?.${y[E]}`);const I=O==null?void 0:O.type;if(I){if(I===G.UNDETERMINED)return i=[G.UNDETERMINED],i.isUnknown=!0,i;const U=this._getOriginMethodName(I,y[E]);h.varScope=O.scope,i=this._expandMethodHandle(U,s,f,O,T,h)}else{let U="",L="",b="";for(const _ of y.slice(0,E)){U?L=this._getOriginMethodName(U,_):L=L?`${L}.${_}`:_;const g=this._verifyName(L);g!=null&&g.type?(U=g.type,b=""):this._buildinTypes.get(L)?b=De(Ee.methodNotExistErr,{name:L,methodName:y[E]}):b=De(Ee.noFiledErr,{name:_})}b&&this._errorHandle(b,s)}return i}_expandMethodHandle(n,i,s,f,h,y){var O,A;let E;const T=this._buildinMethods.get(n);if(T)E=this._getBuildInReturnTypes(T,s,n,i,f);else{const I=this._methods.get(n);if(I&&I.length)if(I.length<=1){const U=I[0],L=this._getMethodTypeName(((O=U.thisType)==null?void 0:O[0])||"");if(!this._types.get(L)){const g=this._functions.get(U.name);g&&(y.selfArg=(A=g[U.index||0].args)==null?void 0:A[0])}y.funcName=U.name,y.index=U.index,this._hasMemberIndexVerify(U,i,y),E=U.returnedTypes;const{hasErr:_}=this._checkArgs(s,U.args||[],n,i,(E==null?void 0:E[0])||"");if(_)return[G.UNDETERMINED]}else{const U=this._overloadsFuncGetTypes(I,s,i,f,y);E=this._returnedTypesParse([U])}else this._errorHandle(De(Ee.methodNotExistErr,{methodName:n.split(".").slice(-1)[0],name:h}),i)}return E}_getBuildInReturnTypes(n,i,s,f,h,y){var T;let E;if(n.length===1){const{returnedTypes:O,syntax:A,args:I=[],thisType:U}=n[0],L=A[0].split("→")[1].trim(),b=h||i.params[0]||((T=I[0])==null?void 0:T.name)&&i[I[0].name];b&&!this._checkMethodThisType(U,b.type)&&this._errorHandle(De(Ee.typeMismatch,{operator:s,index:b.name||"id",typeE:b.type,typeR:U[0]}),f);const{hasErr:_,types:g}=this._checkArgs(i,I,s,f,L,b);if(_)return[G.UNDETERMINED];if(E=g.length&&g||this._returnedTypesParse(O),E.length>1)return E;(y==null?void 0:y.length)===1?E=[this._typeReplace(L,y[0])]:(y==null?void 0:y.length)===2&&(E=[`${G.MAP}<${y[0]},${y[1]}>`]),E=this._returnTypesOtherHandle(b,L,E,s)}else{const O=this._overloadsFuncGetTypes(n,i,f,h);E=this._returnedTypesParse([O])}return E}_overloadsFuncGetTypes(n,i,s,f,h){var U,L,b;let y="",E=[],T=[],O=0;for(const[_,g]of n.entries()){const{args:C,returnedTypes:R,name:D,thisType:B}=g,X=f||i.params[0]||i[C[0].name],{errMsg:ne,warnMsg:z}=this._overloadsCheckArgs(i,C,D,s,X);X&&!this._checkMethodThisType(B,X.type)&&ne.unshift({msg:De(Ee.typeMismatch,{operator:D,index:X.name||"id",typeE:X.type,typeR:B[0]}),ctx:s}),_===0?(E=ne,T=z,!ne.length&&(y=R[0])):ne.length?((U=E[0])!=null&&U.isLenErr&&!((L=ne[0])!=null&&L.isLenErr)||E.length>ne.length)&&(E=ne,T=z,O=_):this._priorityComparison(y,R[0])||(R[0]===`${G.ARRAY}<>`?y=`${X.type}[]`:y=R[0],E=ne,T=z,O=_)}for(const _ of E)this._errorHandle(_.msg,_.ctx);for(const _ of T)this._errorHandle(_.msg,_.ctx,Qn.Warning);const A=s.children[0],I=n[0].name;if(A&&this._overloadsFuncs.push({name:I,index:O,line:A.start.line,startColumn:A.start.column+1,endColumn:A.start.column+I.length}),h){const _=n[O],{thisType:g,name:C,index:R}=_;if(this._hasMemberIndexVerify(_,s,h),h.index=R||O,g){const D=this._getMethodTypeName((g==null?void 0:g[0])||"");if(!this._types.get(D)){const X=this._functions.get(C);X&&(h.selfArg=(b=X[0].args)==null?void 0:b[0])}}}return this._funcArgsAddOriginName(i,n[O].args,I),y||G.UNDETERMINED}_funcArgsAddOriginName(n,i,s){const f=n.params||[];for(const[h,y]of i.entries())h<f.length&&(f[h].originName=y.name);if(s==="input"){const h=f[0]||n.defval;Object.assign(n,{inputType:{name:`'${h!=null&&h.isSourceType?"source":this._removePrefix(h==null?void 0:h.type)}'`}})}}_overloadsCheckArgs(n,i,s,f,h){const y={...n},E=y.params;delete y.params;const T=Object.keys(y).length+E.length,O=i.length,A=[],I=[];if(T>O&&!i.some(L=>["arg0, arg1, ...","number0, number1, ..."].includes(L.name)))return A.push({msg:De(Ee.argsLenErr,{name:s,lenA:T,lenB:O}),isLenErr:!0,ctx:f}),{errMsg:A,warnMsg:I};for(const[U,L]of i.entries()){let b=y[L.name];if(U<E.length&&(b&&I.push({msg:De(Ni.moreSameArg,{arg:L.name}),ctx:f}),b=E[U]),!b)L.required&&A.push({msg:De(Ee.requiredParamErr,{name:s,argName:L.name}),ctx:f});else{const _=b.type!==`${G.SIMPLE} na`?this._checkArg(b,L,s,h,b.ctx,!0):"";_&&A.push({msg:_,ctx:b.ctx}),delete y[L.name]}if(["arg0, arg1, ...","number0, number1, ..."].includes(L.name)&&E.length>U+1){const _=E.slice(U+1);let g=E[U];for(const C of _){g.type===`${G.SIMPLE} ${G.NA}`&&(g=C);const R=C.type!==`${G.SIMPLE} ${G.NA}`?this._checkArg(C,L,s,g,C.ctx,!0):"";R&&A.push({msg:R,ctx:C.ctx})}}}if(Object.keys(y).length)for(const U of Object.keys(y))A.push({msg:De(Ee.argsNameErr,{name:s,argName:U}),ctx:y[U].ctx});return{errMsg:A,warnMsg:I}}_checkArgs(n,i,s,f,h,y){var L;const E={...n},T=E.params;delete E.params;const O=Object.keys(E).length+T.length,A=i.length;let I=!1,U=[];if(O>A&&!i.some(_=>["arg0, arg1, ...","number0, number1, ..."].includes(_.name)))return this._errorHandle(De(Ee.argsLenErr,{name:s,lenA:O,lenB:A}),f),I=!0,{hasErr:I,types:U};for(const[b,_]of i.entries()){let g=E[_.name];if(b<T.length&&(g&&this._errorHandle(De(Ni.moreSameArg,{arg:_.name}),f,Qn.Warning),g=T[b],g.originName=_.name),!g)_.required&&(this._errorHandle(De(Ee.requiredParamErr,{name:s,argName:_.name}),f),I=!0);else{const C=g.type!==`${G.SIMPLE} ${G.NA}`?this._checkArg(g,_,s,y,g.ctx):"";if(C)this._errorHandle(C,g.ctx),I=!0;else if(C===!1)I=!0;else if(s.startsWith("request.")&&_.name==="expression")if(g.ruleType===he.Brackethesized)U=g.exprs.map(R=>this._typeReplace(h,R.type));else if((L=g.types||g.returnedTypes)!=null&&L.isBrackethesized)U=(g.types||g.returnedTypes).map(R=>this._typeReplace(h,R));else{const R=this._typeReplace(h,g.type);U.push(R)}delete E[_.name]}}if(Object.keys(E).length)for(const b of Object.keys(E))this._errorHandle(De(Ee.argsNameErr,{name:s,argName:b}),E[b].ctx),I=!0;return{hasErr:I,types:U}}_checkArg(n,i,s,f,h,y){const{ruleType:E,exprs:T,name:O}=n;let A=n.type;E===he.Brackethesized&&(A=`[${T.map(b=>b.type).join(", ")}]`);const{allowedTypeIDs:I=[],displayType:U,name:L}=i;if(!(!A||A===G.UNDETERMINED||U===G.UNDETERMINED)){if(s==="input"&&L==="defval"&&!A.startsWith(G.CONST))if(Sl.includes(O))n.isSourceType=!0;else return Ee.inputDefvalErr;if(!(this._checkMethodThisType(I,this._arrayTypeConvert(A))&&!(s==="input.source"&&L==="defval"))){if(L==="condition"&&(U!=null&&U.endsWith(G.BOOL))&&(A.endsWith(G.INT)||A.endsWith(G.FLOAT))){h&&this._errorHandle(De(Ni.typeMismatch,{index:L,operator:s,type:G.BOOL}),h,Qn.Warning);return}switch(U){case"tuple of const string values: [val1, val2, ...]":return this._tupleToCheck(n,i,[`${G.CONST} ${G.STRING}`],s,A);case"tuple of const int/float values: [val1, val2, ...]":return this._tupleToCheck(n,i,[`${G.CONST} ${G.FLOAT}`,`${G.CONST} ${G.INT}`],s,A);case"tuple of const int values: [val1, val2, ...]":return this._tupleToCheck(n,i,[`${G.CONST} ${G.INT}`],s,A);case"open/high/low/close/hl2/hlc3/ohlc4/hlcc4":if(!O||!Sl.includes(O))return De(Ee.inputSourceErr,{name:L,funcName:s});if(this._judgeVarBuildIn(O))return De(Ee.buildInUseErr,{name:O});n.isSourceType=!0;break;case"<matrix_type>":case"<array_type>":const b=this._getArrayType(s)||"";if(!A.endsWith(b)&&!(A.endsWith(G.INT)&&b===G.FLOAT))return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:this._typeAddSeries(b)});break;case"any matrix type":if(this._isMatrixType(A)){if(L==="id2"){const B=this._getArrayType(f==null?void 0:f.type);if(!B)return;const X=this._getArrayType(A)||"";if(B!==X)return De(Ee.typeMismatch,{operator:s,index:L,typeE:X,typeR:B})}}else return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:"matrix<fun_arg>"});break;case"any array type":if(this._isArrayType(A)){if(L==="id2"){const B=this._getArrayType(f==null?void 0:f.type);if(!B)return;const X=this._getArrayType(A)||"";if(B!==X)return De(Ee.typeMismatch,{operator:s,index:L,typeE:X,typeR:B})}}else return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:"array<fun_arg>"});break;case"series <type of the matrix's elements>":case"series <type of the array's elements>":const _=this._getArrayType(f==null?void 0:f.type)||"";if(!A.endsWith(_)&&!(A.endsWith(G.INT)&&_===G.FLOAT))return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:this._typeAddSeries(_)});break;case"any map type":if(this._isMapType(A)){if(L==="id2"){const B=this._getMapType(f==null?void 0:f.type);if(!B)return;const X=this._getMapType(A)||[];if(B[0]!==X[0]||B[1]!==X[1])return De(Ee.mapKeyValErr,{typeA:this._typeAddSeries(X[0]),typeB:this._typeAddSeries(X[1]),typeC:this._typeAddSeries(B[0]),typeD:this._typeAddSeries(B[1]),name:s})}}else return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:"map<type, type>"});break;case"series <type of the map's elements>":const g=this._getMapType(f==null?void 0:f.type);if(!g)return;const C=L==="key"?0:1;if(!A.endsWith(g[C])&&!(A.endsWith(G.INT)&&g[C]===G.FLOAT))return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:this._typeAddSeries(g[C])});break;case"<arg_expr_type>":if(E===he.Brackethesized)return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:U||""});break;case"<arg_type>":case"variable, function, object, array or matrix of series int/float/bool/string/color, or a tuple of these":const R=this._removePrefix(A);[G.BOX,G.LABEL,G.LINE,G.LINEFILL,G.POLYLINE,G.TABLE].includes(R)&&h&&this._errorHandle(De(Ee.requestExprErr,{type:R,name:s}),h);break;case"variable, object or function of series int/float/bool/string/color, or a tuple of these":if(E===he.Brackethesized){for(const B of T)if(!I.includes(B.type))return this._errorHandle(De(Ee.requestArgsErr,{name:s,argName:L,type:B.type}),B.ctx),!1}break;case"const int/float/bool/string/color or source-type built-ins":if(Sl.includes(n.name)&&I[0].endsWith(this._removePrefix(A)))n.isSourceType=!0;else return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:"const int/float/bool/string/color"});break;case"<arg..._type>":if(E===he.Brackethesized||this._isArrayType(A)||this._isMapType(A)||this._isMatrixType(A))return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:`${G.SERIES} ${G.INT}`});if(A!==(f==null?void 0:f.type))return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:f==null?void 0:f.type});break;default:const D=this._removePrefix(n.type);if(n.arg&&n.arg.isArg&&!y){const B=I.find(X=>X.endsWith(D));if(B){n.type=B,n.arg.type=B;return}}if(I.length===1&&I[0].endsWith(D)){const B=this._getPrefix(n.type),X=this._getPrefix(I[0]);if(Ii.indexOf(B)>=Ii.indexOf(X))return}if(U)return De(Ee.typeMismatch,{operator:s,index:L,typeE:A,typeR:U})}}}}_tupleToCheck(n,i,s,f,h){var y,E;if(s.push(`${G.SIMPLE} ${G.NA}`),n.ruleType===he.Brackethesized){const T=[];let O=!1;for(const A of n.exprs)T.push(A.type),s.includes(A.type)||(O=!0);if(O)return De(Ee.typeMismatch,{operator:f,index:i.name,typeE:`[${T.join(", ")}]`,typeR:((y=i.allowedTypeIDs)==null?void 0:y[0])||""})}else return De(Ee.typeMismatch,{operator:f,index:i.name,typeE:h,typeR:((E=i.allowedTypeIDs)==null?void 0:E[0])||""})}_getBlockReturnTypes(n){var I,U;let i=n;if(Array.isArray(n)&&(i=n.slice(-1)[0],Array.isArray(i)&&(i=i.slice(-1)[0])),!i)return[G.UNDETERMINED];const{ruleType:s,type:f,types:h,returnedTypes:y,exprs:E,nameList:T,typeList:O,block:A}=i;if(h&&h.length)return h;if(y&&y.length)return y;if(f)return[f];switch(s){case he.Brackethesized:const L=E.map(ne=>ne.type);return L.isBrackethesized=!0,L;case he.VarBlockStmt:case he.DeclareAssign:return T?T.ruleType===he.VarMultiple?T.types:[T.type]:[((I=i.name)==null?void 0:I.type)||G.UNDETERMINED];case he.SwitchStatement:if(!this._isNeedCalc&&this._isInFunc&&this._isEndExpr===!1)return[G.UNDETERMINED];const b=[...i.cases];i.defaultCase&&b.push(i.defaultCase);let _=((U=b[0])==null?void 0:U.returnedTypes)||[],g=_.length<=1?_[0]:`[${_.join(", ")}]`,C=null;for(const ne of b.slice(1)){const z=ne.returnedTypes||[G.UNDETERMINED];g+=z.length<=1?`; ${z[0]}`:`; [${z.join(", ")}]`;const Y=Array.isArray(ne.block)?ne.block.slice(-1)[0]:ne.block;if(z.length!==_.length)C=Y.ctx;else for(const[K,ce]of _.entries())if(this._compareType(z[K],ce))(z[K].includes(G.FLOAT)&&!ce.includes(G.FLOAT)||_[K]===`${G.SIMPLE} ${G.NA}`||_[K]===G.UNDETERMINED)&&(_[K]=z[K]);else{C=Y.ctx;break}}return C&&(this._errorHandle(De(Ee.ifOrSwitchTypeErr,{keyword:"switch",types:g}),C),_=_.map(()=>G.UNDETERMINED)),i.returnedTypes=_,_;case he.IfStatement:if(!this._isNeedCalc&&!this._isInFunc)return[G.UNDETERMINED];if(!O.filter(ne=>ne&&ne.length).length)return[G.UNDETERMINED];let R=O[0]||[],D=R.length<=1?R[0]:`[${R.join(", ")}]`,B=0,X=0;for(const ne of O.slice(1))if(ne)if(B++,D+=ne.length<=1?`; ${ne[0]}`:`; [${ne.join(", ")}]`,ne.length!==R.length)X=B;else for(const[z,Y]of R.entries())if(this._compareType(ne[z],Y))(ne[z].includes(G.FLOAT)&&!Y.includes(G.FLOAT)||R[z]===`${G.SIMPLE} ${G.NA}`)&&(R[z]=ne[z]);else{X=B;break}if(X){const ne=A[X].slice(-1)[0],z=Array.isArray(ne)?ne.slice(-1)[0]:ne;this._errorHandle(De(Ee.ifOrSwitchTypeErr,{keyword:"if",types:D}),z.ctx),R=R.map(()=>G.UNDETERMINED)}return i.returnedTypes=R,R}return[G.UNDETERMINED]}}class B_{constructor(e){k(this,"_nameMap");k(this,"_prefixNameVar");k(this,"_prefixNameFunc");k(this,"_prefixNameConst");k(this,"_userTypes");k(this,"_isInFunc");k(this,"_varlist");k(this,"_memberIndexList");k(this,"_blockCount");k(this,"_inputCount");k(this,"_count");k(this,"_codesCol");k(this,"_dependsObj");k(this,"_currentParams");this._nameMap=new Map,this._prefixNameVar=`${e}_var`,this._prefixNameFunc=`${e}_func`,this._prefixNameConst=`${e}_const`,this._userTypes=[],this._isInFunc=!1,this._varlist=[{}],this._memberIndexList=[{}],this._blockCount=0,this._inputCount=0,this._count=0,this._codesCol=[[]],this._dependsObj={},this._currentParams=[]}preParser(e){var i,s;const n=[];for(const f of e){if(!f)return;if(Array.isArray(f)){for(const h of f)if(n.push(this._parserStmt(h)),vl.includes((s=(i=h.exprs)==null?void 0:i[0])==null?void 0:s.name))return n.join(`;
|
14
|
-
`).replace(/;+/g,";")}else n.push(this._parserStmt(f))}return""}parser(e){const n=[];for(const s of e){if(!s)return;if(Array.isArray(s))for(const f of s)n.push(this._parserStmt(f));else n.push(this._parserStmt(s))}const i=this._memberIndexList[this._blockCount]||{};return n.push(...Object.values(i)),n.join(`;
|
15
|
-
`).replace(/;+/g,";")}_parserStmt(e,n=!1){switch(e==null?void 0:e.ruleType){case he.DeclareAssign:return this._parserDeclareAssign(e);case he.MethodExpression:return`${this._parserMethodExpression(e)}`;case he.ArrowFunction:return this._parserArrowFunction(e);case he.ArrowMethod:return this._parserArrowMethod(e);case he.IfStatement:return this._parserIfStatement(e,n);case he.WhileStatement:return this._parserWhileStatement(e,n);case he.SwitchStatement:return this._parserSwitchStatement(e,n);case he.ForInStatement:return this._parserForInStatement(e,n);case he.ForToStatement:return this._parserForToStatement(e,n);case he.AgainAssign:return this._parserAgainAssign(e);case he.ImportElement:return e.code||"";case he.TypeStatement:return this._parserTypeStatement(e);case he.VarBlockStmt:return this._parserVarBlockStmt(e);case he.FlowStmt:return`${e.value};`;case he.Brackethesized:return this._parserBrackethesized(e);default:return this._parserSingleExpression(e)}}_parserTypeStatement(e){const n=[],i=[];for(const h of e.fields){const{name:y,value:E}=h;h.isVarip&&i.push(`"${y}"`),n.push(`${y}: ${E?this._parserSingleExpression(E):"undefined"}`)}this._userTypes.push(e.name);let s=e.name;Ln.includes(s)&&(s=`$${s}`);const f=`const ${s} = ${this._prefixNameVar}.getTypeInstance({${n.join(", ")}}, [${i.join()}])`;return this._codesCol[this._blockCount].push({code:f,varNames:[s],depends:[]}),f}_parserVarBlockStmt(e){const{nameList:n,value:i}=e;this._addVarList(n);const s=this._parserDeclareAssignNames(n);this._dependsObj[s]=new Map;const f=this._parserStmt(i,!0),h=`let ${s} = ${f}`,y={code:h,varNames:s.replace(/[\[\]]/g,"").split(", "),depends:this._getDepends(s)};return this._codesCol[this._blockCount].push(y),h}_getDepends(e){const n=[];for(const[i,s]of this._dependsObj[e])(s.scope||0)>this._blockCount||n.push(s);return delete this._dependsObj[e],n}_parserForToStatement(e,n=!1){let{numerical:i,block:s,name:f}=e;const[h,y,E]=i,T=`$forTo${this._blockCount}`;n||(this._dependsObj[T]=new Map);const O=this._parserSingleExpression(h),A=this._parserSingleExpression(y),I=E?this._parserSingleExpression(E):"",U=this._parserBlockLine(s,n);Ln.includes(f)&&(f=`$${f}`);const L=`$start${this._count++}`,b=`const ${L} = Date.now()`,_=`for (let ${f}=${O}; ${f}>=(${A}); ${f}+=(${I||"-1"})){
|
16
|
-
${U}
|
17
|
-
if (Date.now() - ${L} > 500) {
|
18
|
-
throw new Error('${Ee.loopRuntimeErr}')
|
19
|
-
}
|
20
|
-
}`,g=`for (let ${f}=${O};${f}<=(${A}); ${f}+=(${I||"1"})){
|
21
|
-
${U}
|
22
|
-
if (Date.now() - ${L} > 500) {
|
23
|
-
throw new Error('${Ee.loopRuntimeErr}')
|
24
|
-
}
|
25
|
-
}`;let C="";return(h==null?void 0:h.ruleType)==="Literal"&&(y==null?void 0:y.ruleType)==="Literal"?C=Number(h.value)>Number(y.value)?_:g:C=`if ((${O})>(${A})) {
|
26
|
-
${_}
|
27
|
-
} else {
|
28
|
-
${g}
|
29
|
-
}`,C=`${b};
|
30
|
-
${C}`,n||this._codesCol[this._blockCount].push({code:C,depends:this._getDepends(T)}),n?this._functionalProcess(C):C}_parserForInStatement(e,n=!1){const{names:i,block:s,array:f}=e,h=this._parserBlockLine(s,n);let y="",[E,T]=i;Ln.includes(E)&&(E=`$${E}`);const O=`$start${this._count++}`,A=`const ${O} = Date.now()`;return i.length===1?y=`for (const ${E} of ${this._parserSingleExpression(f)}._value) {
|
31
|
-
${h}
|
32
|
-
if (Date.now() - ${O} > 500) {
|
33
|
-
throw new Error('${Ee.loopRuntimeErr}')
|
34
|
-
}
|
35
|
-
}`:(Ln.includes(T)&&(T=`$${T}`),y=`for (const [${E},${T}] of (${this._parserSingleExpression(f)})._value.entries()) {
|
36
|
-
${h}
|
37
|
-
if (Date.now() - ${O} > 500) {
|
38
|
-
throw new Error('${Ee.loopRuntimeErr}')
|
39
|
-
}
|
40
|
-
}`),y=`${A};
|
41
|
-
${y}`,n?this._functionalProcess(y):y}_parserAgainAssign(e){const{operator:n,name:i,value:s}=e,{varPos:f,declare:h}=i,y=`$againAssign${this._blockCount}`;this._dependsObj[y]=new Map;const E=this._parserName(i,!0);let T="";const O=this._parserStmt(s,!0);let A="";const I=`$_tmp_${E.split(".").pop()}`;n===":="&&(A=`var ${I} = ${O}`);let U=`${E} ${n===":="?`= ${I}`:`${n} ${O}`}`;const L=`${f==null?void 0:f.column}_${f==null?void 0:f.lineNumber}`;if(h){const _=this._isInFunc?`posStr + '_${L}'`:`"${L}"`;T=`;
|
42
|
-
${this._prefixNameVar}.setVarValue("${E}", ${_}, ${E}, "${h}")`}n==="-="?U=`${E} = ${this._prefixNameVar}.sub(${E}, ${O})`:n==="+="?U=`${E} = ${this._prefixNameVar}.add(${E}, ${O})`:n===":="&&(A=`${A};
|
43
|
-
${this._prefixNameVar}.againAssignParse(${E}, ${I});
|
44
|
-
`);const b=`${A}${U}${T}`;return this._codesCol[this._blockCount].push({code:b,depends:this._getDepends(y)}),b}_parserSwitchStatement(e,n=!1){const{condition:i,cases:s,defaultCase:f}=e;let h=`$switch${this._blockCount}`;n||(this._dependsObj[h]=new Map);const y=s.length?this._parserCases(s,n):"",E=f?this._parserDefaultCase(f,n):"",T=`switch (${i===!0?i:this._parserSingleExpression(i)}) {
|
45
|
-
${y}
|
46
|
-
${E}
|
47
|
-
}`;return n||this._codesCol[this._blockCount].push({code:T,depends:this._getDepends(h)}),n?this._functionalProcess(T):T}_parserCases(e,n=!1){const i=[];for(const s of e)i.push(this._parserCase(s,n));return i.join(`
|
48
|
-
`)}_parserDefaultCase(e,n=!1){return`default:
|
49
|
-
${this._parserBlock(e.block,n)};`}_parserCase(e,n=!1){const{condition:i,block:s}=e;return`case ${this._parserSingleExpression(i)}:
|
50
|
-
${this._parserBlock(s,n)}
|
51
|
-
break;`}_parserWhileStatement(e,n=!1){const{condition:i,block:s}=e;let f=`$while${this._blockCount}`;n||(this._dependsObj[f]=new Map);const h=`$start${this._count++}`,y=`const ${h} = Date.now()`;let E=`while (${this._parserSingleExpression(i)}) {
|
52
|
-
${this._parserBlockLine(s,n)}
|
53
|
-
if (Date.now() - ${h} > 500) {
|
54
|
-
throw new Error('${Ee.loopRuntimeErr}')
|
55
|
-
}
|
56
|
-
}`;return E=`${y};
|
57
|
-
${E}`,n||this._codesCol[this._blockCount].push({code:E,depends:this._getDepends(f)}),n?this._functionalProcess(E):E}_parserIfStatement(e,n=!1){const{condition:i,block:s}=e;let f="",h=`$if${this._blockCount}`;n||(this._dependsObj[h]=new Map);for(const[y,E]of s.entries()){const T=this._parserBlockLine(E,n),O=i[y]&&this._parserSingleExpression(i[y]);y===0?f=`if (${O}) {
|
58
|
-
${T}
|
59
|
-
}`:O?f+=`else if (${O}) {
|
60
|
-
${T}
|
61
|
-
}`:f+=`else {
|
62
|
-
${T}
|
63
|
-
}`}return n||this._codesCol[this._blockCount].push({code:f,depends:this._getDepends(h)}),n?this._functionalProcess(f):f}_parserBlockLine(e,n=!1,i=!1){const s=[],f=e.length;this._blockCount++,this._codesCol[this._blockCount]=[];let h=e.slice(-1)[0];for(const[y,E]of e.entries()){const T=n&&y===f-1;if(Array.isArray(E)){const O=[...E];T&&(h=O.pop());const A=O.map(I=>this._parserStmt(I)).join(`;
|
64
|
-
`);A&&s.push(A)}else T||s.push(this._parserStmt(E))}if(n&&h){const y=this._parserReturnBlock(h,i);s.push(y)}else s.push(this._getMembersCode());return this._varlist[this._blockCount]={},this._memberIndexList[this._blockCount]={},this._codesCol[this._blockCount]=[],this._blockCount--,`${s.join(`;
|
65
|
-
`)};`}_parserReturnBlock(e,n=!1){let i="",s="";switch(e.ruleType){case he.AgainAssign:return i=this._parserAgainAssign(e),s=this._getMembersCode(),n?`${i};
|
66
|
-
${s}
|
67
|
-
return ${this._parserName(e.name,!0)}`:`${i};
|
68
|
-
${s}
|
69
|
-
$$_result = ${this._parserName(e.name,!0)}`;case he.DeclareAssign:i=this._parserSingleExpression(e.value),s=this._getMembersCode();break;default:i=this._parserStmt(e,!0),s=this._getMembersCode()}return n?`${s}
|
70
|
-
|
71
|
-
return ${i}`:`${s}
|
72
|
-
|
73
|
-
$$_result = ${i}`}_getMembersCode(){const e=this._memberIndexList[this._blockCount]||{};return Object.values(e).join(`;
|
74
|
-
`)}_parserArrowMethod(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const i=[...e.params],s=e.index?`$${e.index}`:"";e.hasMemberIndex&&i.push({name:`${this._prefixNameVar}_position`}),n=`${n}${s}`,this._dependsObj[n]=new Map;const f=this._parserBlock(e.block,!0,!0);let h=`const ${n} = (${this._parserParameters(i)}posStr) => {
|
75
|
-
${f}
|
76
|
-
}`;if(this._userTypes.includes(e.typeName)){let y=e.typeName;Ln.includes(y)&&(y=`$${y}`),h=`${h}
|
77
|
-
${y}.addNewMethod("${e.name}${s}", function (${this._parserParameters(i.slice(1))}posStr) {
|
78
|
-
const ${i[0].name} = this;
|
79
|
-
${f}
|
80
|
-
})
|
81
|
-
`}return this._isInFunc=!1,this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:h,params:i}),h}_parserArrowFunction(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const i=[...e.params];e.hasMemberIndex&&i.push({name:`${this._prefixNameVar}_position`}),n=`${n}${e.index?`$${e.index}`:""}`,this._dependsObj[n]=new Map;const s=`const ${n} = (${this._parserParameters(i)}posStr) => {
|
82
|
-
${this._parserBlock(e.block,!0,!0)}
|
83
|
-
}`;return this._isInFunc=!1,this._codesCol[this._blockCount].push({funcName:n,depends:this._getDepends(n),hasRequest:e.hasRequest,code:s,params:i}),s}_parserParameters(e){return e.length?`{${e.map(n=>{const{name:i,defaultValue:s}=n;let f=i;if(s){const h=this._parserSingleExpression(s);f=`${f} = ${h}`}return f}).join(", ")}},`:""}_parserBlock(e,n=!1,i=!1){return i&&(this._isInFunc=!0),this._parserBlockLine(Array.isArray(e)?e:[e],n,i)}_addVarList(e){const n=this._varlist[this._blockCount]||{};if(e.names)for(const[i,s]of e.names.entries())n[s]=e.posList[i];else n[e.name]=e.pos;this._varlist[this._blockCount]=n}_parserDeclareAssign(e){var E;const{nameList:n,value:i}=e;if(n.name==="_")return"";const s=this._parserDeclareAssignNames(n);this._addVarList(n);const f={code:"",varNames:s.replace(/[\[\]]/g,"").split(", "),depends:[]};this._dependsObj[s]=new Map;const h=this._parserSingleExpression(i);let y=`let ${s} = ${h}`;if(n.declare){const T=`${n.pos.column}_${n.pos.lineNumber}`,O=this._isInFunc?`posStr + '_${T}'`:`"${T}"`;y=`let ${s} = ${this._prefixNameVar}.getVarValue("${s}", ${O}, "${n.declare}") || ${this._prefixNameVar}.setVarValue("${s}", ${O}, ${h}, "${n.declare}")`}return f.code=y,f.depends=this._getDepends(s),(E=this._codesCol[this._blockCount])==null||E.push(f),y}_parserDeclareAssignNames(e){switch(e==null?void 0:e.ruleType){case"VarMultiple":return`[${e.names.map(n=>Ln.includes(n)?`$${n}`:n).join(", ")}]`;case"VarSingle":return Ln.includes(e.name)?`$${e.name}`:e.name}return""}_parserSingleExpression(e){if(!e)return"";const{exprs:n,operator:i}=e;switch(e.ruleType){case he.MemberIndexExpression:return this._parserMemberIndexExpression(e);case he.MethodExpression:return this._parserMethodExpression(e);case he.UnaryExpression:return`${i}${this._parserSingleExpression(n[0])}`;case he.NotExpression:return`!${this._parserSingleExpression(n[0])}`;case he.AdditiveExpression:return this._parserAdditiveExpression(e);case he.MultiplicativeExpression:case he.RelationalExpression:case he.EqualityExpression:return`${this._parserSingleExpression(n[0])} ${i} ${this._parserSingleExpression(n[1])}`;case he.LogicalAndExpression:return`${this._parserSingleExpression(n[0])} && ${this._parserSingleExpression(n[1])}`;case he.LogicalOrExpression:return`${this._parserSingleExpression(n[0])} || ${this._parserSingleExpression(n[1])}`;case he.TernaryExpression:return`${this._parserSingleExpression(n[0])} ? ${this._parserSingleExpression(n[1])} : ${this._parserSingleExpression(n[2])}`;case he.Name:return this._parserName(e);case he.Literal:return this._parseLiteral(e);case he.ParenthesizedExpression:return`(${this._parserSingleExpression(e.exprs)})`;default:return e.name||""}}_parserAdditiveExpression(e){const{exprs:n,operator:i}=e,s=this._parserSingleExpression(n[0]),f=this._parserSingleExpression(n[1]);return i==="-"?`${this._prefixNameVar}.sub(${s}, ${f})`:`${this._prefixNameVar}.add(${s}, ${f})`}_parserMemberIndexExpression(e){const{exprs:n,isInFunc:i,ctx:s}=e,f=n[0],h=this._parserSingleExpression(n[1]);if(f.ruleType===he.Name&&!f.hasMethod){let O=this._blockCount;const A=f.name;for(f.isBuiltIn||this._setDepend({name:A,scope:f.varScope});O>=0;){const I=this._varlist[O]||{},U=I[A];if(U)return this._getUserVarMemberIndexs(U,A,O,h,i);if(f.isBuiltIn){const L=this._parserSingleExpression(f),b=this._memberIndexList[0]||{};return b[A]=`${this._prefixNameVar}.setCacheData('${A}', ${L})`,`${this._prefixNameVar}.getCacheData('${A}', ${h}, ${L})`}else if(A.includes(".")){const L=A.split(".")[0],b=I[L];if(b)return this._getUserVarMemberIndexs(b,A,O,h,i)}O--}}const y=s.start.tokenIndex,E=this._parserSingleExpression(f),T=i?`${this._prefixNameVar}_position`:y;return`${this._prefixNameVar}.getCacheData('m${y}_' + ${T}, ${h}, ${E})`}_getUserVarMemberIndexs(e,n,i,s,f){const h=this._memberIndexList[i]||{};let y=`${n}_${e.lineNumber}_${e.column}`;return y=f&&i!==0?`'${y}_' + posStr`:`'${y}'`,h[y]=`${this._prefixNameVar}.setCacheData(${y}, ${n})`,this._memberIndexList[i]=h,`${this._prefixNameVar}.getCacheData(${y}, ${s}, ${n})`}_parseLiteral(e){return e.type.endsWith(G.COLOR)?`"${this._colorToRgba(e.value)}"`:e.value}_colorToRgba(e){if(e.startsWith("#")){let n;const i=parseInt(e.substring(1,3),16),s=parseInt(e.substring(3,5),16),f=parseInt(e.substring(5,7),16),h=e.substring(7);return h?n=(255-parseInt(h,16))/255:n=1,`rgba(${Math.round(i)}, ${Math.round(s)}, ${Math.round(f)}, ${n.toFixed(2)})`}return e}_parserName(e,n=!1){const{exprs:i,varScope:s,hasMethod:f,arg:h}=e,y=i.map(E=>{var I;if(typeof E=="string")return E;const{column:T,line:O}=((I=E==null?void 0:E.ctx)==null?void 0:I.start)||{},A=`${O}_${T}`;return this._parserMethodElement(E,A)});if(e.expr&&y.unshift(`(${this._parserSingleExpression(e.expr)})`),e.isBuiltIn)y.join(".")==="strategy.opentrades"&&y.push("opentrades"),y.unshift(e.isConst?this._prefixNameConst:this._prefixNameVar);else if(Ln.includes(y[0])&&(y[0]=`$${y[0]}`),!f){const E={name:i[0],scope:s||(h==null?void 0:h.varScope)||0,isAgainAssign:n,isArg:h==null?void 0:h.isArg};this._setDepend(E)}return y.join(".")}_setDepend(e){const n=e.name;for(const i of Object.values(this._dependsObj)){const s=i.get(n),f={...e};s&&s.isAgainAssign&&(f.isAgainAssign=!0),i.set(n,f)}}_parserMethodExpression(e){const{exprs:n,ctx:i}=e,{column:s,line:f}=i.start,h=`${f}_${s}`,y=this._isInFunc?`posStr + "_${h}"`:`"${h}"`;return n.map(T=>this._parserMethodElement(T,y)).join(".")}_parserMethodElement(e,n){let i="",s="";const f={...e.args};e.hasMemberIndex&&(s=`${this._prefixNameVar}_position: ${e.position}`),e.expr&&(i=`(${this._parserSingleExpression(e.expr)})`),i=i?`${i}.${e.name}`:this._nameMap.get(e.name)||e.name;let h=e.hasRequest;if(e.isBuiltIn){if(wp.includes(i))i=`${i}.${i}`;else if(i==="max_bars_back"){const{name:T,varPos:O}=f.var||f.params[0];s=`var_name: '${O?`${T}_${O.lineNumber}_${O.column}`:T}'`}i.startsWith(G.INPUT)?(s=`index: ${this._inputCount}`,this._inputCount++):i.startsWith("request.")&&(h=!0),i=`${this._prefixNameFunc}.${i}`}else{const T=i.split(".");let O=T[0];Ln.includes(O)&&(O=`$${O}`,i=T.join("."))}if(e.selfArg){const T=i.split("."),O=T.length;Object.assign(f,{[e.selfArg.name]:{name:T.slice(0,O-1).join(".")}}),i=T[O-1],i=this._nameMap.get(i)||i,this._setDepend({name:T[0],scope:e.varScope||0})}i=`${i}${e.index?`$${e.index}`:""}`;const[y,E]=this._parserArguments(f,s,n,h);if(e.isBuiltIn)h&&console.log(y);else{const T=i.split(".");if(T.length>1?this._setDepend({name:T[0],scope:e.varScope||0}):this._setDepend({name:i,scope:0,hasRequest:e.hasRequest,isFunc:!0,params:y}),e.funcName){const O=this._nameMap.get(e.funcName)||e.funcName;this._setDepend({name:O,originName:i,scope:0,hasRequest:e.hasRequest,isFunc:!0,params:y})}}return i+E}_parserArguments(e,n,i,s=!1){const f=e.params||[];delete e.params;const h=[],y=[],E=[],T={};for(const O of f){s&&O.originName==="expression"&&(this._dependsObj[`$arg_${O.originName}`]=new Map);let A=O.ruleType===he.Brackethesized?this._parserBrackethesized(O):this._parserSingleExpression(O);if(O.originName&&!["arg0, arg1, ...","number0, number1, ..."].includes(O.originName)){if(O.isSourceType?h.push(`sourceTypeName: '${O.name}'`):O.type===`${G.SERIES} ${G.COLOR}`&&E.push(`'${O.originName}'`),s&&O.originName==="expression"){const I=this._getDepends(`$arg_${O.originName}`);A=this._getExpressionContext(I,A)}h.push(`${O.originName}: ${A}`),T[`${O.originName}`]=`${A}`}else y.push(A)}for(const O of Object.keys(e)){const A=e[O],I=A.ruleType===he.Brackethesized?this._parserBrackethesized(A):this._parserSingleExpression(A);h.push(`${O}: ${I}`),T[`${O}`]=`${I}`,A.type===`${G.SERIES} ${G.COLOR}`&&E.push(`'${O}'`)}return E.length&&h.push(`seriesColors: [${E.join(",")}]`),n&&h.push(n),[T,y.length?`({${h.join(", ")}}, [${y.join(", ")}], ${i})`:h.length?`({${h.join(", ")}}, ${i})`:`(${i})`]}_getExpressionContext(e,n){const i=[],s=[];return this._getDependsCode(e,i,s),console.log(i,s,this._isInFunc),n}_getDependsCode(e,n,i){for(const s of e)if(!s.isArg){const h=this._codesCol[s.scope||0].find(y=>{var E;return((E=y.varNames)==null?void 0:E.includes(s.name))||y.funcName===s.name});h&&(h.hasRequest?console.log(h,s,"=============------00000"):i.includes(h)||(i.push(h),h.depends.length&&this._getDependsCode(h.depends,n,i),n.push(h.code)))}}_parserBrackethesized(e){return`[${e.exprs.map(i=>this._parserSingleExpression(i)).join(", ")}]`}_functionalProcess(e){return`(function () {
|
84
|
-
let $$_result=undefined;
|
85
|
-
${e}
|
86
|
-
return $$_result
|
87
|
-
})()`}_parserRequestArrowMethod(e){let n=`$_${e.name}`;const i=[...e.params],s=e.index?`$${e.index}`:"";e.hasMemberIndex&&i.push({name:`${this._prefixNameVar}_position`}),n=`${n}${s}`;const f=this._parserBlock(e.block,!0,!0);let h=`const ${n} = (${this._parserParameters(i)}posStr) => {
|
88
|
-
${f}
|
89
|
-
}`;if(this._userTypes.includes(e.typeName)){let y=e.typeName;Ln.includes(y)&&(y=`$${y}`),h=`${h}
|
90
|
-
${y}.addNewMethod("${e.name}${s}", function (${this._parserParameters(i.slice(1))}posStr) {
|
91
|
-
const ${i[0].name} = this;
|
92
|
-
${f}
|
93
|
-
})
|
94
|
-
`}return this._isInFunc=!1,h}}class U_{constructor(e,n){k(this,"_nameMap");k(this,"_prefixNameVar");k(this,"_prefixNameFunc");k(this,"_prefixNameConst");k(this,"_userTypes");k(this,"_isInFunc");k(this,"_varlist");k(this,"_memberIndexList");k(this,"_blockCount");k(this,"_libTitle");k(this,"_exportEles");k(this,"_inputCount");this._nameMap=new Map,this._prefixNameVar=`${e}_var`,this._prefixNameFunc=`${e}_func`,this._prefixNameConst=`${e}_const`,this._userTypes=[],this._isInFunc=!1,this._varlist=[{}],this._memberIndexList=[{}],this._blockCount=0,this._libTitle=n,this._exportEles=[],this._inputCount=0}parser(e){const n=[];for(const f of e){if(!f)return;if(Array.isArray(f))for(const h of f)n.push(this._parserStmt(h));else n.push(this._parserStmt(f))}const i=this._memberIndexList[this._blockCount]||{};return n.push(...Object.values(i)),`const $name = (function () {
|
95
|
-
${n.join(`;
|
96
|
-
`).replace(/;+/g,";")}
|
97
|
-
return {
|
98
|
-
${this._exportEles.map(f=>`${f.key}: ${f.name}`).join(", ")}
|
99
|
-
}
|
100
|
-
})();`}_parserStmt(e,n=!1){switch(e==null?void 0:e.ruleType){case he.DeclareAssign:return this._parserDeclareAssign(e);case he.MethodExpression:return`${this._parserMethodExpression(e)}`;case he.ArrowFunction:return this._parserArrowFunction(e);case he.ArrowMethod:return this._parserArrowMethod(e);case he.IfStatement:return this._parserIfStatement(e,n);case he.WhileStatement:return this._parserWhileStatement(e,n);case he.SwitchStatement:return this._parserSwitchStatement(e,n);case he.ForInStatement:return this._parserForInStatement(e,n);case he.ForToStatement:return this._parserForToStatement(e,n);case he.AgainAssign:return this._parserAgainAssign(e);case he.ImportElement:return e.code||"";case he.TypeStatement:return this._parserTypeStatement(e);case he.VarBlockStmt:return this._parserVarBlockStmt(e);case he.FlowStmt:return`${e.value};`;case he.Brackethesized:return this._parserBrackethesized(e);default:return this._parserSingleExpression(e)}}_parserTypeStatement(e){const n=[],i=[];for(const f of e.fields){const{name:h,value:y}=f;f.isVarip&&i.push(`"${h}"`),n.push(`${h}: ${y?this._parserSingleExpression(y):"undefined"}`)}this._userTypes.push(e.name),e.isExport&&this._exportEles.push({key:e.name,name:e.name});let s=e.name;return Ln.includes(s)&&(s=`$${s}`),`const ${s} = ${this._prefixNameVar}.getTypeInstance({${n.join(", ")}}, [${i.join()}])`}_parserVarBlockStmt(e){const{nameList:n,operator:i,name:s,value:f}=e,h=this._parserStmt(f,!0);return s?`${this._parserName(s)} ${i===":="?"=":i} ${h}`:`let ${this._parserDeclareAssignNames(n)} = ${h}`}_parserForToStatement(e,n=!1){let{numerical:i,block:s,name:f}=e;const[h,y,E]=i,T=this._parserBlockLine(s,n),O=this._parserSingleExpression(h),A=this._parserSingleExpression(y),I=E?this._parserSingleExpression(E):"";Ln.includes(f)&&(f=`$${f}`);const U=`for (let ${f}=${O}; ${f}>=(${A}); ${f}+=(${I||"-1"})){
|
101
|
-
${T}
|
102
|
-
}`,L=`for (let ${f}=${O};${f}<=(${A}); ${f}+=(${I||"1"})){
|
103
|
-
${T}
|
104
|
-
}`;let b="";return(h==null?void 0:h.ruleType)==="Literal"&&(y==null?void 0:y.ruleType)==="Literal"?b=Number(h.value)>Number(y.value)?U:L:b=`if ((${O})>(${A})) {
|
105
|
-
${U}
|
106
|
-
} else {
|
107
|
-
${L}
|
108
|
-
}`,n?this._functionalProcess(b):b}_parserForInStatement(e,n=!1){const{names:i,block:s,array:f}=e,h=this._parserBlockLine(s,n);let y="",[E,T]=i;return Ln.includes(E)&&(E=`$${E}`),i.length===1?y=`for (const ${E} of ${this._parserSingleExpression(f)}._value) {
|
109
|
-
${h}
|
110
|
-
}`:(Ln.includes(T)&&(T=`$${T}`),y=`for (const [${E},${T}] of (${this._parserSingleExpression(f)})._value.entries()) {
|
111
|
-
${h}
|
112
|
-
}`),n?this._functionalProcess(y):y}_parserAgainAssign(e){const{operator:n,name:i,value:s}=e,{varPos:f,declare:h}=i,y=this._parserName(i);let E="";const T=this._parserStmt(s,!0);let O="";const A=`$_tmp_${y.split(".").pop()}`;n===":="&&(O=`var ${A} = ${T}`);let I=`${y} ${n===":="?`= ${A}`:`${n} ${T}`}`;const U=`${f==null?void 0:f.column}_${f==null?void 0:f.lineNumber}`;if(h){const L=this._isInFunc?`posStr + '_${U}'`:`"export_${this._libTitle}_${U}"`;E=`;
|
113
|
-
${this._prefixNameVar}.setVarValue("${y}", ${L}, ${y}, "${h}")`}return n==="-="?I=`${y} = ${this._prefixNameVar}.sub(${y}, ${T})`:n==="+="?I=`${y} = ${this._prefixNameVar}.add(${y}, ${T})`:n===":="&&(O=`${O};
|
114
|
-
${this._prefixNameVar}.againAssignParse(${y}, ${A});
|
115
|
-
`),`${O}${I}${E}`}_parserSwitchStatement(e,n=!1){const{condition:i,cases:s,defaultCase:f}=e,h=s.length?this._parserCases(s,n):"",y=f?this._parserDefaultCase(f,n):"",E=`switch (${i===!0?i:this._parserSingleExpression(i)}) {
|
116
|
-
${h}
|
117
|
-
${y}
|
118
|
-
}`;return n?this._functionalProcess(E):E}_parserCases(e,n=!1){const i=[];for(const s of e)i.push(this._parserCase(s,n));return i.join(`
|
119
|
-
`)}_parserDefaultCase(e,n=!1){return`default:
|
120
|
-
${this._parserBlock(e.block,n)};`}_parserCase(e,n=!1){const{condition:i,block:s}=e;return`case ${this._parserSingleExpression(i)}:
|
121
|
-
${this._parserBlock(s,n)}
|
122
|
-
break;`}_parserWhileStatement(e,n=!1){const{condition:i,block:s}=e,f=`while (${this._parserSingleExpression(i)}) {
|
123
|
-
${this._parserBlockLine(s,n)}
|
124
|
-
}`;return n?this._functionalProcess(f):f}_parserIfStatement(e,n=!1){const{condition:i,block:s}=e;let f="";for(const[h,y]of s.entries()){const E=this._parserBlockLine(y,n),T=i[h]&&this._parserSingleExpression(i[h]);h===0?f=`if (${T}) {
|
125
|
-
${E}
|
126
|
-
}`:T?f+=`else if (${T}) {
|
127
|
-
${E}
|
128
|
-
}`:f+=`else {
|
129
|
-
${E}
|
130
|
-
}`}return n?this._functionalProcess(f):f}_parserBlockLine(e,n=!1,i=!1){const s=[],f=e.length;this._blockCount++;let h=e.slice(-1)[0];for(const[y,E]of e.entries()){const T=n&&y===f-1;if(Array.isArray(E)){const O=[...E];T&&(h=O.pop());const A=O.map(I=>this._parserStmt(I)).join(`;
|
131
|
-
`);A&&s.push(A)}else T||s.push(this._parserStmt(E))}if(n&&h){const y=this._parserReturnBlock(h,i);s.push(y)}else s.push(this._getMembersCode());return this._varlist[this._blockCount]={},this._memberIndexList[this._blockCount]={},this._blockCount--,`${s.join(`;
|
132
|
-
`)};`}_parserReturnBlock(e,n=!1){let i="",s="";switch(e.ruleType){case he.AgainAssign:return i=this._parserAgainAssign(e),s=this._getMembersCode(),n?`${i};
|
133
|
-
${s}
|
134
|
-
return ${this._parserName(e.name)}`:`${i};
|
135
|
-
${s}
|
136
|
-
$_result = ${this._parserName(e.name)}`;case he.DeclareAssign:i=this._parserSingleExpression(e.value),s=this._getMembersCode();break;default:i=this._parserStmt(e,!0),s=this._getMembersCode()}return n?`${s}
|
137
|
-
|
138
|
-
return ${i}`:`${s}
|
139
|
-
|
140
|
-
$_result = ${i}`}_getMembersCode(){const e=this._memberIndexList[this._blockCount]||{};return Object.values(e).join(`;
|
141
|
-
`)}_parserArrowMethod(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const i=e.index?`$${e.index}`:"";n=`${n}${i}`,e.isExport&&this._exportEles.push({key:`${e.name}${i}`,name:n});const s=[...e.params];e.hasMemberIndex&&s.push({name:`${this._prefixNameVar}_position`});let f=`const ${n} = (${this._parserParameters(s)}posStr) => {
|
142
|
-
if (posStr.startsWith('export')) return;
|
143
|
-
${this._parserBlock(e.block,!0,!0)}
|
144
|
-
}`;if(this._userTypes.includes(e.typeName)){let h=e.typeName;Ln.includes(h)&&(h=`$${h}`),f=`${f}
|
145
|
-
${h}.addNewMethod("${e.name}${i}", function (${this._parserParameters(s.slice(1))}posStr) {
|
146
|
-
if (posStr.startsWith('export')) return;
|
147
|
-
const ${s[0].name} = this;
|
148
|
-
${this._parserBlock(e.block,!0,!0)}
|
149
|
-
})
|
150
|
-
`}return this._isInFunc=!1,f}_parserArrowFunction(e){let n=`$_${e.name}`;this._nameMap.set(e.name,n);const i=e.index?`$${e.index}`:"";n=`${n}${i}`,e.isExport&&this._exportEles.push({key:`${e.name}${i}`,name:n});const s=[...e.params];e.hasMemberIndex&&s.push({name:`${this._prefixNameVar}_position`});const f=`const ${n} = (${this._parserParameters(s)}posStr) => {
|
151
|
-
if (posStr.startsWith('export')) return;
|
152
|
-
${this._parserBlock(e.block,!0,!0)}
|
153
|
-
}`;return this._isInFunc=!1,f}_parserParameters(e){return e.length?`{${e.map(n=>{const{name:i,defaultValue:s}=n;let f=i;if(s){const h=this._parserSingleExpression(s);f=`${f} = ${h}`}return f}).join(", ")}},`:""}_parserBlock(e,n=!1,i=!1){return i&&(this._isInFunc=!0),this._parserBlockLine(Array.isArray(e)?e:[e],n,i)}_parserDeclareAssign(e){const{nameList:n,value:i}=e,s=this._parserDeclareAssignNames(n),f=this._varlist[this._blockCount]||{};if(n.name==="_")return"";if(n.names)for(const[y,E]of n.names.entries())f[E]=n.posList[y];else f[n.name]=n.pos;this._varlist[this._blockCount]=f;const h=this._parserSingleExpression(i);if(n.declare){const y=`${n.pos.column}_${n.pos.lineNumber}`,E=this._isInFunc?`posStr + '_' + '${y}'`:`"export_${this._libTitle}_${y}"`;return`let ${s} = ${this._prefixNameVar}.getVarValue("${s}", ${E}, "${n.declare}") || ${this._prefixNameVar}.setVarValue("${s}", ${E}, ${h}, "${n.declare}")`}return`let ${s} = ${h}`}_parserDeclareAssignNames(e){switch(e==null?void 0:e.ruleType){case"VarMultiple":return`[${e.names.map(n=>Ln.includes(n)?`$${n}`:n).join(", ")}]`;case"VarSingle":return Ln.includes(e.name)?`$${e.name}`:e.name}return""}_parserSingleExpression(e){if(!e)return"";const{exprs:n,operator:i}=e;switch(e.ruleType){case he.MemberIndexExpression:return this._parserMemberIndexExpression(e);case he.MethodExpression:return this._parserMethodExpression(e);case he.UnaryExpression:return`${i}${this._parserSingleExpression(n[0])}`;case he.NotExpression:return`!${this._parserSingleExpression(n[0])}`;case he.AdditiveExpression:return this._parserAdditiveExpression(e);case he.MultiplicativeExpression:case he.RelationalExpression:case he.EqualityExpression:return`${this._parserSingleExpression(n[0])} ${i} ${this._parserSingleExpression(n[1])}`;case he.LogicalAndExpression:return`${this._parserSingleExpression(n[0])} && ${this._parserSingleExpression(n[1])}`;case he.LogicalOrExpression:return`${this._parserSingleExpression(n[0])} || ${this._parserSingleExpression(n[1])}`;case he.TernaryExpression:return`${this._parserSingleExpression(n[0])} ? ${this._parserSingleExpression(n[1])} : ${this._parserSingleExpression(n[2])}`;case he.Name:return this._parserName(e);case he.Literal:return this._parseLiteral(e);case he.ParenthesizedExpression:return`(${this._parserSingleExpression(e.exprs)})`;default:return e.name||""}}_parserAdditiveExpression(e){const{exprs:n,operator:i}=e,s=this._parserSingleExpression(n[0]),f=this._parserSingleExpression(n[1]);return i==="-"?`${this._prefixNameVar}.sub(${s}, ${f})`:`${this._prefixNameVar}.add(${s}, ${f})`}_parserMemberIndexExpression(e){const{exprs:n,isInFunc:i,ctx:s}=e,f=n[0],h=this._parserSingleExpression(n[1]);if(f.ruleType===he.Name&&!f.hasMethod){let O=this._blockCount;const A=f.name;for(;O>=0;){const I=this._varlist[O]||{},U=I[A];if(U)return this._getUserVarMemberIndexs(U,A,O,h,i);if(f.isBuiltIn){const L=this._parserSingleExpression(f),b=this._memberIndexList[0]||{};return b[A]=`${this._prefixNameVar}.setCacheData('${A}', ${L})`,`${this._prefixNameVar}.getCacheData('${A}', ${h}, ${L})`}else if(A.includes(".")){const L=A.split(".")[0],b=I[L];if(b)return this._getUserVarMemberIndexs(b,A,O,h,i)}O--}}const y=s.start.tokenIndex,E=this._parserSingleExpression(f),T=i?`${this._prefixNameVar}_position`:y;return`${this._prefixNameVar}.getCacheData('m${y}_' + ${T}, ${h}, ${E})`}_getUserVarMemberIndexs(e,n,i,s,f){const h=this._memberIndexList[i]||{};let y=`${n}_${e.lineNumber}_${e.column}`;return y=f&&i!==0?`'${y}' + '_' + posStr`:`'${y}'`,h[y]=`${this._prefixNameVar}.setCacheData(${y}, ${n})`,this._memberIndexList[i]=h,`${this._prefixNameVar}.getCacheData(${y}, ${s}, ${n})`}_parseLiteral(e){return e.type.endsWith(G.COLOR)?`"${this._colorToRgba(e.value)}"`:e.value}_colorToRgba(e){if(e.startsWith("#")){let n;const i=parseInt(e.substring(1,3),16),s=parseInt(e.substring(3,5),16),f=parseInt(e.substring(5,7),16),h=e.substring(7);return h?n=(255-parseInt(h,16))/255:n=1,`rgba(${Math.round(i)}, ${Math.round(s)}, ${Math.round(f)}, ${n.toFixed(2)})`}return e}_parserName(e){const{exprs:n,ctx:i}=e,{column:s,line:f}=(i==null?void 0:i.start)||{},h=this._isInFunc?`${f}_${s}`:`export_${this._libTitle}_${f}_${s}`,y=n.map(E=>typeof E=="string"?E:this._parserMethodElement(E,h));return e.expr&&y.unshift(`(${this._parserSingleExpression(e.expr)})`),e.isBuiltIn?(y.join(".")==="strategy.opentrades"&&y.push("opentrades"),y.unshift(e.isConst?this._prefixNameConst:this._prefixNameVar)):Ln.includes(y[0])&&(y[0]=`$${y[0]}`),y.join(".")}_parserMethodExpression(e){const{exprs:n,ctx:i}=e,{column:s,line:f}=i.start,h=`${f}_${s}`,y=this._isInFunc?`posStr + "_${h}"`:`"export_${this._libTitle}_${h}"`,E=n.map(T=>this._parserMethodElement(T,y));return E.length===1&&[...El,$o.library].some(T=>E[0].startsWith(`${this._prefixNameFunc}.${T}`))?"":E.join(".")}_parserMethodElement(e,n){let i="",s="";const f={...e.args};if(e.hasMemberIndex&&(s=`${this._prefixNameVar}_position: ${e.position}`),e.expr&&(i=`(${this._parserSingleExpression(e.expr)})`),i=i?`${i}.${e.name}`:this._nameMap.get(e.name)||e.name,e.isBuiltIn){if(wp.includes(i))i=`${i}.${i}`;else if(i==="max_bars_back"){const{name:y,varPos:E}=f.var||f.params[0];s=`var_name: '${E?`${y}_${E.lineNumber}_${E.column}`:y}'`}i.startsWith(G.INPUT)&&(s=`index: ${this._inputCount}`,this._inputCount++),i=`${this._prefixNameFunc}.${i}`}else{const y=i.split(".");Ln.includes(y[0])&&(y[0]=`$${y[0]}`,i=y.join("."))}if(e.selfArg){const y=i.split("."),E=y.length;Object.assign(f,{[e.selfArg.name]:{name:y.slice(0,E-1).join(".")}}),i=y[E-1],i=this._nameMap.get(i)||i}i=`${i}${e.index?`$${e.index}`:""}`;const h=this._parserArguments(f,s,n);return i+h}_parserArguments(e,n,i){const s=e.params||[];delete e.params;const f=[],h=[],y=[];for(const E of s){const T=E.ruleType===he.Brackethesized?this._parserBrackethesized(E):this._parserSingleExpression(E);E.originName&&!["arg0, arg1, ...","number0, number1, ..."].includes(E.originName)?(f.push(`${E.originName}: ${T}`),E.isSourceType?f.push(`sourceTypeName: '${E.name}'`):E.type===`${G.SERIES} ${G.COLOR}`&&y.push(`'${E.originName}'`)):h.push(T)}for(const E of Object.keys(e)){const T=e[E],O=T.ruleType===he.Brackethesized?this._parserBrackethesized(T):this._parserSingleExpression(T);f.push(`${E}: ${O}`),T.type===`${G.SERIES} ${G.COLOR}`&&y.push(`'${E}'`)}return y.length&&f.push(`seriesColors: [${y.join(",")}]`),n&&f.push(n),h.length?`({${f.join(", ")}}, [${h.join(", ")}], ${i})`:f.length?`({${f.join(", ")}}, ${i})`:`(${i})`}_parserBrackethesized(e){return`[${e.exprs.map(i=>this._parserSingleExpression(i)).join(", ")}]`}_functionalProcess(e){return`(function () {
|
154
|
-
let $_result=undefined;
|
155
|
-
${e}
|
156
|
-
return $_result
|
157
|
-
})();`}}/**
|
158
|
-
* @license
|
159
|
-
* Copyright 2019 Google LLC
|
160
|
-
* SPDX-License-Identifier: Apache-2.0
|
161
|
-
*/const Pp=Symbol("Comlink.proxy"),V_=Symbol("Comlink.endpoint"),j_=Symbol("Comlink.releaseProxy"),Tl=Symbol("Comlink.finalizer"),lu=Symbol("Comlink.thrown"),Fp=t=>typeof t=="object"&&t!==null||typeof t=="function",$_={canHandle:t=>Fp(t)&&t[Pp],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Al(t,e),[n,[n]]},deserialize(t){return t.start(),z_(t)}},H_={canHandle:t=>Fp(t)&&lu in t,serialize({value:t}){let e;return t instanceof Error?e={isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:e={isError:!1,value:t},[e,[]]},deserialize(t){throw t.isError?Object.assign(new Error(t.value.message),t.value):t.value}},Lp=new Map([["proxy",$_],["throw",H_]]);function G_(t,e){for(const n of t)if(e===n||n==="*"||n instanceof RegExp&&n.test(e))return!0;return!1}function Al(t,e=globalThis,n=["*"]){e.addEventListener("message",function i(s){if(!s||!s.data)return;if(!G_(n,s.origin)){console.warn(`Invalid origin '${s.origin}' for comlink proxy`);return}const{id:f,type:h,path:y}=Object.assign({path:[]},s.data),E=(s.data.argumentList||[]).map(mo);let T;try{const O=y.slice(0,-1).reduce((I,U)=>I[U],t),A=y.reduce((I,U)=>I[U],t);switch(h){case"GET":T=A;break;case"SET":O[y.slice(-1)[0]]=mo(s.data.value),T=!0;break;case"APPLY":T=A.apply(O,E);break;case"CONSTRUCT":{const I=new A(...E);T=J_(I)}break;case"ENDPOINT":{const{port1:I,port2:U}=new MessageChannel;Al(t,U),T=Y_(I,[I])}break;case"RELEASE":T=void 0;break;default:return}}catch(O){T={value:O,[lu]:0}}Promise.resolve(T).catch(O=>({value:O,[lu]:0})).then(O=>{const[A,I]=du(O);e.postMessage(Object.assign(Object.assign({},A),{id:f}),I),h==="RELEASE"&&(e.removeEventListener("message",i),Mp(e),Tl in t&&typeof t[Tl]=="function"&&t[Tl]())}).catch(O=>{const[A,I]=du({value:new TypeError("Unserializable return value"),[lu]:0});e.postMessage(Object.assign(Object.assign({},A),{id:f}),I)})}),e.start&&e.start()}function K_(t){return t.constructor.name==="MessagePort"}function Mp(t){K_(t)&&t.close()}function z_(t,e){return xl(t,[],e)}function fu(t){if(t)throw new Error("Proxy has been released and is not useable")}function Bp(t){return Ho(t,{type:"RELEASE"}).then(()=>{Mp(t)})}const hu=new WeakMap,pu="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(hu.get(t)||0)-1;hu.set(t,e),e===0&&Bp(t)});function W_(t,e){const n=(hu.get(e)||0)+1;hu.set(e,n),pu&&pu.register(t,e,t)}function X_(t){pu&&pu.unregister(t)}function xl(t,e=[],n=function(){}){let i=!1;const s=new Proxy(n,{get(f,h){if(fu(i),h===j_)return()=>{X_(s),Bp(t),i=!0};if(h==="then"){if(e.length===0)return{then:()=>s};const y=Ho(t,{type:"GET",path:e.map(E=>E.toString())}).then(mo);return y.then.bind(y)}return xl(t,[...e,h])},set(f,h,y){fu(i);const[E,T]=du(y);return Ho(t,{type:"SET",path:[...e,h].map(O=>O.toString()),value:E},T).then(mo)},apply(f,h,y){fu(i);const E=e[e.length-1];if(E===V_)return Ho(t,{type:"ENDPOINT"}).then(mo);if(E==="bind")return xl(t,e.slice(0,-1));const[T,O]=Up(y);return Ho(t,{type:"APPLY",path:e.map(A=>A.toString()),argumentList:T},O).then(mo)},construct(f,h){fu(i);const[y,E]=Up(h);return Ho(t,{type:"CONSTRUCT",path:e.map(T=>T.toString()),argumentList:y},E).then(mo)}});return W_(s,t),s}function q_(t){return Array.prototype.concat.apply([],t)}function Up(t){const e=t.map(du);return[e.map(n=>n[0]),q_(e.map(n=>n[1]))]}const Vp=new WeakMap;function Y_(t,e){return Vp.set(t,e),t}function J_(t){return Object.assign(t,{[Pp]:!0})}function du(t){for(const[e,n]of Lp)if(n.canHandle(t)){const[i,s]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},s]}return[{type:"RAW",value:t},Vp.get(t)||[]]}function mo(t){switch(t.type){case"HANDLER":return Lp.get(t.name).deserialize(t.value);case"RAW":return t.value}}function Ho(t,e,n){return new Promise(i=>{const s=Z_();t.addEventListener("message",function f(h){!h.data||!h.data.id||h.data.id!==s||(t.removeEventListener("message",f),i(h.data))}),t.start&&t.start(),t.postMessage(Object.assign({id:s},e),n)})}function Z_(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function Go(t){return t.split("")}function Ol(t,e){return e.includes(t)}class Q_ extends Error{constructor(e,n){super(),this.name="DefaultsError",this.message=e,this.defs=n}}function mi(t,e,n){t===!0?t={}:t!=null&&typeof t=="object"&&(t={...t});const i=t||{};if(n){for(const s in i)if(tr(i,s)&&!tr(e,s))throw new Q_("`"+s+"` is not a supported option",e)}for(const s in e)if(tr(e,s))if(!t||!tr(t,s))i[s]=e[s];else if(s==="ecma"){let f=t[s]|0;f>5&&f<2015&&(f+=2009),i[s]=f}else i[s]=t&&tr(t,s)?t[s]:e[s];return i}function mr(){}function vt(){return!1}function er(){return!0}function _o(){return this}function eo(){return null}var Xt=function(){function t(n,i,s=!0){const f=[];for(let h=0;h<n.length;++h){let E=n[h].transform(i,s);E instanceof xe?f.push(E):E instanceof e&&f.push(...E.v)}return f}t.splice=function(n){return new e(n)},t.skip={};function e(n){this.v=n}return t}();function P(t,e,n){return n||(n={}),e&&(n.start||(n.start=e.start),n.end||(n.end=e.end)),new t(n)}function yo(t,e){t.includes(e)||t.push(e)}function mu(t,e){return t.replace(/{(.+?)}/g,function(n,i){return e&&e[i]})}function Ko(t,e){for(var n=t.length;--n>=0;)t[n]===e&&t.splice(n,1)}function jp(t,e){if(t.length<2)return t.slice();function n(s,f){for(var h=[],y=0,E=0,T=0;y<s.length&&E<f.length;)e(s[y],f[E])<=0?h[T++]=s[y++]:h[T++]=f[E++];return y<s.length&&h.push.apply(h,s.slice(y)),E<f.length&&h.push.apply(h,f.slice(E)),h}function i(s){if(s.length<=1)return s;var f=Math.floor(s.length/2),h=s.slice(0,f),y=s.slice(f);return h=i(h),y=i(y),n(h,y)}return i(t)}function Ot(t){return Array.isArray(t)||(t=t.split(" ")),new Set(t.sort())}function _u(t,e,n){t.has(e)?t.get(e).push(n):t.set(e,[n])}function ey(t){var e=new Map;for(var n in t)tr(t,n)&&n.charAt(0)==="$"&&e.set(n.substr(1),t[n]);return e}function ty(t){var e=Object.create(null);return t.forEach(function(n,i){e["$"+i]=n}),e}function tr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zo(t,e){return t===!0||t instanceof RegExp&&t.test(e)}var ny={"\0":"0","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function yu(t){return t.replace(/[\0\n\r\u2028\u2029]/g,function(e,n){var i=t[n-1]=="\\"&&(t[n-2]!="\\"||/(?:^|[^\\])(?:\\{2})*$/.test(t.slice(0,n-1)));return(i?"":"\\")+ny[e]})}const ry=/^[\\/|\0\s\w^$.[\]()]*$/,$p=t=>ry.test(t),iy="dgimsuyv";function oy(t){const e=new Set(t.split(""));let n="";for(const i of iy)e.has(i)&&(n+=i,e.delete(i));return e.size&&e.forEach(i=>{n+=i}),n}function sr(t,e){return t._annotations&e}function ss(t,e){t._annotations|=e}function Hp(t,e){t._annotations&=~e}var gu="",us=new Map,bu="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",vu="false null true",cs="enum import super this "+vu+" "+bu,to="implements interface package private protected public static "+cs,Cl="return new delete throw else case yield await";bu=Ot(bu),cs=Ot(cs),Cl=Ot(Cl),vu=Ot(vu),to=Ot(to);var ay=Ot(Go("+-*&%=<>!?|~^")),sy=/[0-9a-f]/i,Gp=/^0x[0-9a-f]+$/i,Kp=/^0[0-7]+$/,uy=/^0o[0-7]+$/i,cy=/^0b[01]+$/i,ly=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,fy=/^(0[xob])?[0-9a-f]+n$/i,zp=Ot(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","||=","&&=","??=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","??","||"]),hy=Ot(Go(`
|
162
|
-
\r \f\v \u2028\u2029 \uFEFF`)),Dl=Ot(Go(`
|
163
|
-
\r\u2028\u2029`)),py=Ot(Go(";]),:")),dy=Ot(Go("[{(,;:")),my=Ot(Go("[]{}(),;:")),Eu={ID_Start:/[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])+/};function Su(t,e){if(Tu(t.charCodeAt(e))){if(kl(t.charCodeAt(e+1)))return t.charAt(e)+t.charAt(e+1)}else if(kl(t.charCodeAt(e))&&Tu(t.charCodeAt(e-1)))return t.charAt(e-1)+t.charAt(e);return t.charAt(e)}function _y(t,e){return Tu(t.charCodeAt(e))?65536+(t.charCodeAt(e)-55296<<10)+t.charCodeAt(e+1)-56320:t.charCodeAt(e)}function yy(t){for(var e=0,n=0;n<t.length;n++)Tu(t.charCodeAt(n))&&kl(t.charCodeAt(n+1))&&(e++,n++);return t.length-e}function gy(t){return t>65535?(t-=65536,String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):String.fromCharCode(t)}function Tu(t){return t>=55296&&t<=56319}function kl(t){return t>=56320&&t<=57343}function Wp(t){return t>=48&&t<=57}function Rl(t){return Eu.ID_Start.test(t)}function Au(t){return Eu.ID_Continue.test(t)}const Xp=/^[a-z_$][a-z0-9_$]*$/i;function xu(t){return Xp.test(t)}function qp(t,e){if(Xp.test(t))return!0;if(!e&&/[\ud800-\udfff]/.test(t))return!1;var n=Eu.ID_Start.exec(t);return!n||n.index!==0?!1:(t=t.slice(n[0].length),t?(n=Eu.ID_Continue.exec(t),!!n&&n[0].length===t.length):!0)}function Yp(t,e=!0){if(!e&&t.includes("e"))return NaN;if(Gp.test(t))return parseInt(t.substr(2),16);if(Kp.test(t))return parseInt(t.substr(1),8);if(uy.test(t))return parseInt(t.substr(2),8);if(cy.test(t))return parseInt(t.substr(2),2);if(ly.test(t))return parseFloat(t);var n=parseFloat(t);if(n==t)return n}class Jp extends Error{constructor(e,n,i,s,f){super(),this.name="SyntaxError",this.message=e,this.filename=n,this.line=i,this.col=s,this.pos=f}}function Ou(t,e,n,i,s){throw new Jp(t,e,n,i,s)}function ur(t,e,n){return t.type==e&&(n==null||t.value==n)}var wl={};function by(t,e,n,i){var s={text:t,filename:e,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function f(){return Su(s.text,s.pos)}function h(){if(!(s.text.charCodeAt(s.pos+1)===46))return!1;const re=s.text.charCodeAt(s.pos+2);return re<48||re>57}function y(J,re){var se=Su(s.text,s.pos++);if(J&&!se)throw wl;return Dl.has(se)?(s.newline_before=s.newline_before||!re,++s.line,s.col=0,se=="\r"&&f()==`
|
164
|
-
`&&(++s.pos,se=`
|
165
|
-
`)):(se.length>1&&(++s.pos,++s.col),++s.col),se}function E(J){for(;J--;)y()}function T(J){return s.text.substr(s.pos,J.length)==J}function O(){for(var J=s.text,re=s.pos,se=s.text.length;re<se;++re){var Te=J[re];if(Dl.has(Te))return re}return-1}function A(J,re){var se=s.text.indexOf(J,s.pos);if(re&&se==-1)throw wl;return se}function I(){s.tokline=s.line,s.tokcol=s.col,s.tokpos=s.pos}var U=!1,L=null;function b(J,re,se){s.regex_allowed=J=="operator"&&!Zp.has(re)||J=="keyword"&&Cl.has(re)||J=="punc"&&dy.has(re)||J=="arrow",J=="punc"&&(re=="."||re=="?.")?U=!0:se||(U=!1);const Te=s.tokline,ye=s.tokcol,At=s.tokpos,jt=s.newline_before,Et=e;let Mt=[],gt=[];se||(Mt=s.comments_before,gt=s.comments_before=[]),s.newline_before=!1;const Ct=new Nl(J,re,Te,ye,At,jt,Mt,gt,Et);return se||(L=Ct),Ct}function _(){for(;hy.has(f());)y()}function g(J){for(var re="",se,Te=0;(se=f())&&J(se,Te++);)re+=y();return re}function C(J){Ou(J,e,s.tokline,s.tokcol,s.tokpos)}function R(J){var re=!1,se=!1,Te=!1,ye=J==".",At=!1,jt=!1,Et=g(function(gt,Ct){if(At)return!1;var Jt=gt.charCodeAt(0);switch(Jt){case 95:return jt=!0;case 98:case 66:return Te=!0;case 111:case 79:case 120:case 88:return Te?!1:Te=!0;case 101:case 69:return Te?!0:re?!1:re=se=!0;case 45:return se||Ct==0&&!J;case 43:return se;case(se=!1,46):return!ye&&!Te&&!re?ye=!0:!1}return gt==="n"?(At=!0,!0):sy.test(gt)});if(J&&(Et=J+Et),gu=Et,Kp.test(Et)&&Ue.has_directive("use strict")&&C("Legacy octal literals are not allowed in strict mode"),jt&&(Et.endsWith("_")?C("Numeric separators are not allowed at the end of numeric literals"):Et.includes("__")&&C("Only one underscore is allowed as numeric separator"),Et=Et.replace(/_/g,"")),Et.endsWith("n")){const gt=Et.slice(0,-1),Ct=Gp.test(gt),Jt=Yp(gt,Ct);if(!ye&&fy.test(Et)&&!isNaN(Jt))return b("big_int",gt);C("Invalid or unexpected token")}var Mt=Yp(Et);if(isNaN(Mt))C("Invalid syntax: "+Et);else return b("num",Mt)}function D(J){return J>="0"&&J<="7"}function B(J,re,se){var Te=y(!0,J);switch(Te.charCodeAt(0)){case 110:return`
|
166
|
-
`;case 114:return"\r";case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(ne(2,re));case 117:if(f()=="{"){for(y(!0),f()==="}"&&C("Expecting hex-character between {}");f()=="0";)y(!0);var ye,At=A("}",!0)-s.pos;return(At>6||(ye=ne(At,re))>1114111)&&C("Unicode reference out of bounds"),y(!0),gy(ye)}return String.fromCharCode(ne(4,re));case 10:return"";case 13:if(f()==`
|
167
|
-
`)return y(!0,J),""}return D(Te)?(se&&re&&(Te==="0"&&!D(f())||C("Octal escape sequences are not allowed in template strings")),X(Te,re)):Te}function X(J,re){var se=f();return se>="0"&&se<="7"&&(J+=y(!0),J[0]<="3"&&(se=f())>="0"&&se<="7"&&(J+=y(!0))),J==="0"?"\0":(J.length>0&&Ue.has_directive("use strict")&&re&&C("Legacy octal escape sequences are not allowed in strict mode"),String.fromCharCode(parseInt(J,8)))}function ne(J,re){for(var se=0;J>0;--J){if(!re&&isNaN(parseInt(f(),16)))return parseInt(se,16)||"";var Te=y(!0);isNaN(parseInt(Te,16))&&C("Invalid hex-character pattern in string"),se+=Te}return parseInt(se,16)}var z=ge("Unterminated string constant",function(){const J=s.pos;for(var re=y(),se=[];;){var Te=y(!0,!0);if(Te=="\\")Te=B(!0,!0);else if(Te=="\r"||Te==`
|
168
|
-
`)C("Unterminated string constant");else if(Te==re)break;se.push(Te)}var ye=b("string",se.join(""));return gu=s.text.slice(J,s.pos),ye.quote=re,ye}),Y=ge("Unterminated template",function(J){J&&s.template_braces.push(s.brace_counter);var re="",se="",Te,ye;for(y(!0,!0);(Te=y(!0,!0))!="`";){if(Te=="\r")f()==`
|
169
|
-
`&&++s.pos,Te=`
|
170
|
-
`;else if(Te=="$"&&f()=="{")return y(!0,!0),s.brace_counter++,ye=b(J?"template_head":"template_substitution",re),us.set(ye,se),ye.template_end=!1,ye;if(se+=Te,Te=="\\"){var At=s.pos,jt=L&&(L.type==="name"||L.type==="punc"&&(L.value===")"||L.value==="]"));Te=B(!0,!jt,!0),se+=s.text.substr(At,s.pos-At)}re+=Te}return s.template_braces.pop(),ye=b(J?"template_head":"template_substitution",re),us.set(ye,se),ye.template_end=!0,ye});function K(J){var re=s.regex_allowed,se=O(),Te;return se==-1?(Te=s.text.substr(s.pos),s.pos=s.text.length):(Te=s.text.substring(s.pos,se),s.pos=se),s.col=s.tokcol+(s.pos-s.tokpos),s.comments_before.push(b(J,Te,!0)),s.regex_allowed=re,Ue}var ce=ge("Unterminated multiline comment",function(){var J=s.regex_allowed,re=A("*/",!0),se=s.text.substring(s.pos,re).replace(/\r\n|\r|\u2028|\u2029/g,`
|
171
|
-
`);return E(yy(se)+2),s.comments_before.push(b("comment2",se,!0)),s.newline_before=s.newline_before||se.includes(`
|
172
|
-
`),s.regex_allowed=J,Ue}),Q=ge("Unterminated identifier name",function(){var J=[],re,se=!1,Te=function(){return se=!0,y(),f()!=="u"&&C("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),B(!1,!0)};if((re=f())==="\\")re=Te(),Rl(re)||C("First identifier char is an invalid identifier char");else if(Rl(re))y();else return"";for(J.push(re);(re=f())!=null;){if((re=f())==="\\")re=Te(),Au(re)||C("Invalid escaped identifier char");else{if(!Au(re))break;y()}J.push(re)}const ye=J.join("");return cs.has(ye)&&se&&C("Escaped characters are not allowed in keywords"),ye}),me=ge("Unterminated regular expression",function(J){for(var re=!1,se,Te=!1;se=y(!0);)if(Dl.has(se))C("Unexpected line terminator");else if(re)/^[\u0000-\u007F]$/.test(se)?J+="\\"+se:J+=se,re=!1;else if(se=="[")Te=!0,J+=se;else if(se=="]"&&Te)Te=!1,J+=se;else{if(se=="/"&&!Te)break;se=="\\"?re=!0:J+=se}const ye=Q();return b("regexp","/"+J+"/"+ye)});function _e(J){function re(se){if(!f())return se;var Te=se+f();return zp.has(Te)?(y(),re(Te)):se}return b("operator",re(J||y()))}function te(){switch(y(),f()){case"/":return y(),K("comment1");case"*":return y(),ce()}return s.regex_allowed?me(""):_e("/")}function pe(){return y(),f()===">"?(y(),b("arrow","=>")):_e("=")}function le(){return y(),Wp(f().charCodeAt(0))?R("."):f()==="."?(y(),y(),b("expand","...")):b("punc",".")}function Oe(){var J=Q();return U?b("name",J):vu.has(J)?b("atom",J):bu.has(J)?zp.has(J)?b("operator",J):b("keyword",J):b("name",J)}function Ie(){return y(),b("privatename",Q())}function ge(J,re){return function(se){try{return re(se)}catch(Te){if(Te===wl)C(J);else throw Te}}}function Ue(J){if(J!=null)return me(J);for(i&&s.pos==0&&T("#!")&&(I(),E(2),K("comment5"));;){if(_(),I(),n){if(T("<!--")){E(4),K("comment3");continue}if(T("-->")&&s.newline_before){E(3),K("comment4");continue}}var re=f();if(!re)return b("eof");var se=re.charCodeAt(0);switch(se){case 34:case 39:return z();case 46:return le();case 47:{var Te=te();if(Te===Ue)continue;return Te}case 61:return pe();case 63:{if(!h())break;return y(),y(),b("punc","?.")}case 96:return Y(!0);case 123:s.brace_counter++;break;case 125:if(s.brace_counter--,s.template_braces.length>0&&s.template_braces[s.template_braces.length-1]===s.brace_counter)return Y(!1);break}if(Wp(se))return R();if(my.has(re))return b("punc",y());if(ay.has(re))return _e();if(se==92||Rl(re))return Oe();if(se==35)return Ie();break}C("Unexpected character '"+re+"'")}return Ue.next=y,Ue.peek=f,Ue.context=function(J){return J&&(s=J),s},Ue.add_directive=function(J){s.directive_stack[s.directive_stack.length-1].push(J),s.directives[J]===void 0?s.directives[J]=1:s.directives[J]++},Ue.push_directives_stack=function(){s.directive_stack.push([])},Ue.pop_directives_stack=function(){for(var J=s.directive_stack[s.directive_stack.length-1],re=0;re<J.length;re++)s.directives[J[re]]--;s.directive_stack.pop()},Ue.has_directive=function(J){return s.directives[J]>0},Ue}var vy=Ot(["typeof","void","delete","--","++","!","~","-","+"]),Zp=Ot(["--","++"]),Ey=Ot(["=","+=","-=","??=","&&=","||=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),Sy=Ot(["??=","&&=","||="]),Dr=function(t,e){for(var n=0;n<t.length;++n)for(const i of t[n])e[i]=n+1;return e}([["||"],["??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),Ty=Ot(["atom","num","big_int","string","regexp","name"]);function ls(t,e){const n=new WeakMap;e=mi(e,{bare_returns:!1,ecma:null,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var i={input:typeof t=="string"?by(t,e.filename,e.html5_comments,e.shebang):t,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};i.token=h();function s(w,$){return ur(i.token,w,$)}function f(){return i.peeked||(i.peeked=i.input())}function h(){return i.prev=i.token,i.peeked||f(),i.token=i.peeked,i.peeked=null,i.in_directives=i.in_directives&&(i.token.type=="string"||s("punc",";")),i.token}function y(){return i.prev}function E(w,$,W,Z){var ie=i.input.context();Ou(w,ie.filename,$??ie.tokline,W??ie.tokcol,Z??ie.tokpos)}function T(w,$){E($,w.line,w.col)}function O(w){w==null&&(w=i.token),T(w,"Unexpected token: "+w.type+" ("+w.value+")")}function A(w,$){if(s(w,$))return h();T(i.token,"Unexpected token "+i.token.type+" «"+i.token.value+"», expected "+w+" «"+$+"»")}function I(w){return A("punc",w)}function U(w){return w.nlb||!w.comments_before.every($=>!$.nlb)}function L(){return!e.strict&&(s("eof")||s("punc","}")||U(i.token))}function b(){return i.in_generator===i.in_function}function _(){return i.in_async===i.in_function}function g(){return i.in_async===i.in_function||i.in_function===0&&i.input.has_directive("use strict")}function C(w){s("punc",";")?h():!w&&!L()&&O()}function R(){I("(");var w=_t(!0);return I(")"),w}function D(w){return function(...W){const Z=i.token,ie=w(...W);return ie.start=Z,ie.end=y(),ie}}function B(){(s("operator","/")||s("operator","/="))&&(i.peeked=null,i.token=i.input(i.token.value.substr(1)))}var X=D(function w($,W,Z){switch(B(),i.token.type){case"string":if(i.in_directives){var ie=f();!gu.includes("\\")&&(ur(ie,"punc",";")||ur(ie,"punc","}")||U(ie)||ur(ie,"eof"))?i.input.add_directive(i.token.value):i.in_directives=!1}var Fe=i.in_directives,Pe=z();return Fe&&Pe.body instanceof dt?new nr(Pe.body):Pe;case"template_head":case"num":case"big_int":case"regexp":case"operator":case"atom":return z();case"name":case"privatename":if(s("privatename")&&!i.in_class&&E("Private field must be used in an enclosing class"),i.token.value=="async"&&ur(f(),"keyword","function"))return h(),h(),W&&E("functions are not allowed as the body of a loop"),te(Qt,!1,!0,$);if(i.token.value=="import"&&!ur(f(),"punc","(")&&!ur(f(),"punc",".")){h();var rt=ln();return C(),rt}return ur(f(),"punc",":")?ne():z();case"punc":switch(i.token.value){case"{":return new Ye({start:i.token,body:Te(),end:y()});case"[":case"(":return z();case";":return i.in_directives=!1,h(),new Rt;default:O()}case"keyword":switch(i.token.value){case"break":return h(),Y(kr);case"continue":return h(),Y(no);case"debugger":return h(),C(),new Pi;case"do":h();var Ht=or(w);A("keyword","while");var on=R();return C(!0),new _i({body:Ht,condition:on});case"while":return h(),new Fi({condition:R(),body:or(function(){return w(!1,!0)})});case"for":return h(),K();case"class":return h(),W&&E("classes are not allowed as the body of a loop"),Z&&E("classes are not allowed as the body of an if"),Zt(Gr,$);case"function":return h(),W&&E("functions are not allowed as the body of a loop"),te(Qt,!1,!1,$);case"if":return h(),se();case"return":i.in_function==0&&!e.bare_returns&&E("'return' outside of function"),h();var bn=null;return s("punc",";")?h():L()||(bn=_t(!0),C()),new an({value:bn});case"switch":return h(),new Xn({expression:R(),body:or(ye)});case"throw":h(),U(i.token)&&E("Illegal newline after 'throw'");var bn=_t(!0);return C(),new hs({value:bn});case"try":return h(),At();case"var":h();var rt=Et();return C(),rt;case"let":h();var rt=Mt();return C(),rt;case"const":h();var rt=gt();return C(),rt;case"with":return i.input.has_directive("use strict")&&E("Strict mode may not include a with statement"),h(),new _r({expression:R(),body:w()});case"export":if(!ur(f(),"punc","(")){h();var rt=Me();return s("punc",";")&&C(),rt}}}O()});function ne(){var w=Tn(ps);w.name==="await"&&_()&&T(i.prev,"await cannot be used as label inside async function"),i.labels.some(W=>W.name===w.name)&&E("Label "+w.name+" defined twice"),I(":"),i.labels.push(w);var $=X();return i.labels.pop(),$ instanceof Vr||w.references.forEach(function(W){W instanceof no&&(W=W.label.start,E("Continue label `"+w.name+"` refers to non-IterationStatement.",W.line,W.col,W.pos))}),new Zn({body:$,label:w})}function z(w){return new $e({body:(w=_t(!0),C(),w)})}function Y(w){var $=null,W;L()||($=Tn(Pl,!0)),$!=null?(W=i.labels.find(ie=>ie.name===$.name),W||E("Undefined label "+$.name),$.thedef=W):i.in_loop==0&&E(w.TYPE+" not inside a loop or switch"),C();var Z=new w({label:$});return W&&W.references.push(Z),Z}function K(){var w="`for await` invalid in this context",$=i.token;$.type=="name"&&$.value=="await"?(g()||T($,w),h()):$=!1,I("(");var W=null;if(s("punc",";"))$&&T($,w);else{W=s("keyword","var")?(h(),Et(!0)):s("keyword","let")?(h(),Mt(!0)):s("keyword","const")?(h(),gt(!0)):_t(!0,!0);var Z=s("operator","in"),ie=s("name","of");if($&&!ie&&T($,w),Z||ie)return W instanceof sn?W.definitions.length>1&&T(W.start,"Only one variable declaration allowed in for..in loop"):Wi(W)||(W=Pr(W))instanceof Vt||T(W.start,"Invalid left-hand side in for..in loop"),h(),Z?me(W):Q(W,!!$)}return ce(W)}function ce(w){I(";");var $=s("punc",";")?null:_t(!0);I(";");var W=s("punc",")")?null:_t(!0);return I(")"),new En({init:w,condition:$,step:W,body:or(function(){return X(!1,!0)})})}function Q(w,$){var W=w instanceof sn?w.definitions[0].name:null,Z=_t(!0);return I(")"),new vo({await:$,init:w,name:W,object:Z,body:or(function(){return X(!1,!0)})})}function me(w){var $=_t(!0);return I(")"),new zn({init:w,object:$,body:or(function(){return X(!1,!0)})})}var _e=function(w,$,W){U(i.token)&&E("Unexpected newline before arrow (=>)"),A("arrow","=>");var Z=Ue(s("punc","{"),!1,W),ie=Z instanceof Array&&Z.length?Z[Z.length-1].end:Z instanceof Array?w:Z.end;return new qt({start:w,end:ie,async:W,argnames:$,body:Z})},te=function(w,$,W,Z){var ie=w===Qt,Fe=s("operator","*");Fe&&h();var Pe=s("name")?Tn(ie?Si:ii):null;ie&&!Pe&&(Z?w=Ft:O()),Pe&&w!==Li&&!(Pe instanceof wn)&&O(y());var rt=[],Ht=Ue(!0,Fe||$,W,Pe,rt);return new w({start:rt.start,end:Ht.end,is_generator:Fe,async:W,name:Pe,argnames:rt,body:Ht})};class pe{constructor($,W,Z=!1){this.is_parameter=$,this.duplicates_ok=Z,this.parameters=new Set,this.duplicate=null,this.default_assignment=!1,this.spread=!1,this.strict_mode=!!W}add_parameter($){if(this.parameters.has($.value))this.duplicate===null&&(this.duplicate=$),this.check_strict();else if(this.parameters.add($.value),this.is_parameter)switch($.value){case"arguments":case"eval":case"yield":this.strict_mode&&T($,"Unexpected "+$.value+" identifier as parameter inside strict mode");break;default:cs.has($.value)&&O()}}mark_default_assignment($){this.default_assignment===!1&&(this.default_assignment=$)}mark_spread($){this.spread===!1&&(this.spread=$)}mark_strict_mode(){this.strict_mode=!0}is_strict(){return this.default_assignment!==!1||this.spread!==!1||this.strict_mode}check_strict(){this.is_strict()&&this.duplicate!==null&&!this.duplicates_ok&&T(this.duplicate,"Parameter "+this.duplicate.value+" was used already")}}function le(w){var $=new pe(!0,i.input.has_directive("use strict"));for(I("(");!s("punc",")");){var W=Oe($);if(w.push(W),s("punc",")")||I(","),W instanceof ht)break}h()}function Oe(w,$){var W,Z=!1;return w===void 0&&(w=new pe(!0,i.input.has_directive("use strict"))),s("expand","...")&&(Z=i.token,w.mark_spread(i.token),h()),W=Ie(w,$),s("operator","=")&&Z===!1&&(w.mark_default_assignment(i.token),h(),W=new wr({start:W.start,left:W,operator:"=",right:_t(!1),end:i.token})),Z!==!1&&(s("punc",")")||O(),W=new ht({start:Z,expression:W,end:Z})),w.check_strict(),W}function Ie(w,$){var W=[],Z=!0,ie=!1,Fe,Pe=i.token;if(w===void 0){const Fr=i.input.has_directive("use strict"),Bt=$===Vi;w=new pe(!1,Fr,Bt)}if($=$===void 0?Nn:$,s("punc","[")){for(h();!s("punc","]");){if(Z?Z=!1:I(","),s("expand","...")&&(ie=!0,Fe=i.token,w.mark_spread(i.token),h()),s("punc"))switch(i.token.value){case",":W.push(new Nr({start:i.token,end:i.token}));continue;case"]":break;case"[":case"{":W.push(Ie(w,$));break;default:O()}else s("name")?(w.add_parameter(i.token),W.push(Tn($))):E("Invalid function parameter");s("operator","=")&&ie===!1&&(w.mark_default_assignment(i.token),h(),W[W.length-1]=new wr({start:W[W.length-1].start,left:W[W.length-1],operator:"=",right:_t(!1),end:i.token})),ie&&(s("punc","]")||E("Rest element must be last element"),W[W.length-1]=new ht({start:Fe,expression:W[W.length-1],end:Fe}))}return I("]"),w.check_strict(),new Vt({start:Pe,names:W,is_array:!0,end:y()})}else if(s("punc","{")){for(h();!s("punc","}");){if(Z?Z=!1:I(","),s("expand","...")&&(ie=!0,Fe=i.token,w.mark_spread(i.token),h()),s("name")&&(ur(f(),"punc")||ur(f(),"operator"))&&[",","}","="].includes(f().value)){w.add_parameter(i.token);var rt=y(),Ht=Tn($);ie?W.push(new ht({start:Fe,expression:Ht,end:Ht.end})):W.push(new Yt({start:rt,key:Ht.name,value:Ht,end:Ht.end}))}else{if(s("punc","}"))continue;var on=i.token,bn=ut();bn===null?O(y()):y().type==="name"&&!s("punc",":")?W.push(new Yt({start:y(),key:bn,value:new $({start:y(),name:bn,end:y()}),end:y()})):(I(":"),W.push(new Yt({start:on,quote:on.quote,key:bn,value:Ie(w,$),end:y()})))}ie?s("punc","}")||E("Rest element must be last element"):s("operator","=")&&(w.mark_default_assignment(i.token),h(),W[W.length-1].value=new wr({start:W[W.length-1].value.start,left:W[W.length-1].value,operator:"=",right:_t(!1),end:i.token}))}return I("}"),w.check_strict(),new Vt({start:Pe,names:W,is_array:!1,end:y()})}else{if(s("name"))return w.add_parameter(i.token),Tn($);E("Invalid function parameter")}}function ge(w,$){var W,Z,ie,Fe=[];for(I("(");!s("punc",")");)W&&O(W),s("expand","...")?(W=i.token,$&&(Z=i.token),h(),Fe.push(new ht({start:y(),expression:_t(),end:i.token}))):Fe.push(_t()),s("punc",")")||(I(","),s("punc",")")&&(ie=y(),$&&(Z=ie)));return I(")"),w&&s("arrow","=>")?W&&ie&&O(ie):Z&&O(Z),Fe}function Ue(w,$,W,Z,ie){var Fe=i.in_loop,Pe=i.labels,rt=i.in_generator,Ht=i.in_async;if(++i.in_function,$&&(i.in_generator=i.in_function),W&&(i.in_async=i.in_function),ie&&le(ie),w&&(i.in_directives=!0),i.in_loop=0,i.labels=[],w){i.input.push_directives_stack();var on=Te();Z&&gn(Z),ie&&ie.forEach(gn),i.input.pop_directives_stack()}else var on=[new an({start:i.token,value:_t(!1),end:i.token})];return--i.in_function,i.in_loop=Fe,i.labels=Pe,i.in_generator=rt,i.in_async=Ht,on}function J(){return g()||E("Unexpected await expression outside async function",i.prev.line,i.prev.col,i.prev.pos),new yr({start:y(),end:i.token,expression:xi(!0)})}function re(){b()||E("Unexpected yield expression outside generator function",i.prev.line,i.prev.col,i.prev.pos);var w=i.token,$=!1,W=!0;return L()||s("punc")&&py.has(i.token.value)?W=!1:s("operator","*")&&($=!0,h()),new gr({start:w,is_star:$,expression:W?_t():null,end:y()})}function se(){var w=R(),$=X(!1,!1,!0),W=null;return s("keyword","else")&&(h(),W=X(!1,!1,!0)),new wt({condition:w,body:$,alternative:W})}function Te(){I("{");for(var w=[];!s("punc","}");)s("eof")&&O(),w.push(X());return h(),w}function ye(){I("{");for(var w=[],$=null,W=null,Z;!s("punc","}");)s("eof")&&O(),s("keyword","case")?(W&&(W.end=y()),$=[],W=new Yr({start:(Z=i.token,h(),Z),expression:_t(!0),body:$}),w.push(W),I(":")):s("keyword","default")?(W&&(W.end=y()),$=[],W=new Eo({start:(Z=i.token,h(),I(":"),Z),body:$}),w.push(W)):($||O(),$.push(X()));return W&&(W.end=y()),h(),w}function At(){var w,$=null,W=null;if(w=new Ru({start:i.token,body:Te(),end:y()}),s("keyword","catch")){var Z=i.token;if(h(),s("punc","{"))var ie=null;else{I("(");var ie=Oe(void 0,Kr);I(")")}$=new Jr({start:Z,argname:ie,body:Te(),end:y()})}if(s("keyword","finally")){var Z=i.token;h(),W=new Wo({start:Z,body:Te(),end:y()})}return!$&&!W&&E("Missing catch/finally blocks"),new br({body:w,bcatch:$,bfinally:W})}function jt(w,$){for(var W=[],Z;;){var ie=$==="var"?Vi:$==="const"?ro:$==="let"?qo:null;if(s("punc","{")||s("punc","[")?Z=new Lt({start:i.token,name:Ie(void 0,ie),value:s("operator","=")?(A("operator","="),_t(!1,w)):null,end:y()}):(Z=new Lt({start:i.token,name:Tn(ie),value:s("operator","=")?(h(),_t(!1,w)):!w&&$==="const"?E("Missing initializer in const declaration"):null,end:y()}),Z.name.name=="import"&&E("Unexpected token: import")),W.push(Z),!s("punc",","))break;h()}return W}var Et=function(w){return new Rn({start:y(),definitions:jt(w,"var"),end:y()})},Mt=function(w){return new Zr({start:y(),definitions:jt(w,"let"),end:y()})},gt=function(w){return new Qr({start:y(),definitions:jt(w,"const"),end:y()})},Ct=function(w){var $=i.token;if(A("operator","new"),s("punc","."))return h(),A("name","target"),fn(new Xo({start:$,end:y()}),w);var W=ke(!1),Z;s("punc","(")?(h(),Z=bt(")",!0)):Z=[];var ie=new rr({start:$,expression:W,args:Z,end:y()});return Fn(ie),fn(ie,w)};function Jt(){var w=i.token,$;switch(w.type){case"name":$=ft(Ae);break;case"num":$=new Je({start:w,end:w,value:w.value,raw:gu});break;case"big_int":$=new oi({start:w,end:w,value:w.value});break;case"string":$=new dt({start:w,end:w,value:w.value,quote:w.quote}),Fn($);break;case"regexp":const[W,Z,ie]=w.value.match(/^\/(.*)\/(\w*)$/);$=new fr({start:w,end:w,value:{source:Z,flags:ie}});break;case"atom":switch(w.value){case"false":$=new Hi({start:w,end:w});break;case"true":$=new vr({start:w,end:w});break;case"null":$=new hr({start:w,end:w});break}break}return h(),$}function oe(w,$){var W=function(Z,ie){return ie?new wr({start:Z.start,left:Z,operator:"=",right:ie,end:ie.end}):Z};if(w instanceof Nt)return W(new Vt({start:w.start,end:w.end,is_array:!1,names:w.properties.map(Z=>oe(Z))}),$);if(w instanceof Yt)return w.value=oe(w.value),W(w,$);if(w instanceof Nr)return w;if(w instanceof Vt)return w.names=w.names.map(Z=>oe(Z)),W(w,$);if(w instanceof Ae)return W(new Nn({name:w.name,start:w.start,end:w.end}),$);if(w instanceof ht)return w.expression=oe(w.expression),W(w,$);if(w instanceof St)return W(new Vt({start:w.start,end:w.end,is_array:!0,names:w.elements.map(Z=>oe(Z))}),$);if(w instanceof st)return W(oe(w.left,w.right),$);if(w instanceof wr)return w.left=oe(w.left),w;E("Invalid function parameter",w.start.line,w.start.col)}var ke=function(w,$){if(s("operator","new"))return Ct(w);if(s("name","import")&&ur(f(),"punc","."))return Ai(w);var W=i.token,Z,ie=s("name","async")&&(Z=f()).value!="["&&Z.type!="arrow"&&Jt();if(s("punc")){switch(i.token.value){case"(":if(ie&&!w)break;var Fe=ge($,!ie);if($&&s("arrow","=>"))return _e(W,Fe.map(Bt=>oe(Bt)),!!ie);var Pe=ie?new je({expression:ie,args:Fe}):Po(W,Fe);if(Pe.start){const Bt=W.comments_before.length;if(n.set(W,Bt),Pe.start.comments_before.unshift(...W.comments_before),W.comments_before=Pe.start.comments_before,Bt==0&&W.comments_before.length>0){var rt=W.comments_before[0];rt.nlb||(rt.nlb=W.nlb,W.nlb=!1)}W.comments_after=Pe.start.comments_after}Pe.start=W;var Ht=y();return Pe.end&&(Ht.comments_before=Pe.end.comments_before,Pe.end.comments_after.push(...Ht.comments_after),Ht.comments_after=Pe.end.comments_after),Pe.end=Ht,Pe instanceof je&&Fn(Pe),fn(Pe,w);case"[":return fn(xt(),w);case"{":return fn(Bn(),w)}ie||O()}if($&&s("name")&&ur(f(),"arrow")){var on=new Nn({name:i.token.value,start:W,end:W});return h(),_e(W,[on],!!ie)}if(s("keyword","function")){h();var bn=te(Ft,!1,!!ie);return bn.start=W,bn.end=y(),fn(bn,w)}if(ie)return fn(ie,w);if(s("keyword","class")){h();var Fr=Zt(Ei);return Fr.start=W,Fr.end=y(),fn(Fr,w)}if(s("template_head"))return fn(de(),w);if(Ty.has(i.token.type))return fn(Jt(),w);O()};function de(){var w=[],$=i.token;for(w.push(new yi({start:i.token,raw:us.get(i.token),value:i.token.value,end:i.token}));!i.token.template_end;)h(),B(),w.push(_t(!0)),w.push(new yi({start:i.token,raw:us.get(i.token),value:i.token.value,end:i.token}));return h(),new Wn({start:$,segments:w,end:i.token})}function bt(w,$,W){for(var Z=!0,ie=[];!s("punc",w)&&(Z?Z=!1:I(","),!($&&s("punc",w)));)s("punc",",")&&W?ie.push(new Nr({start:i.token,end:i.token})):s("expand","...")?(h(),ie.push(new ht({start:y(),expression:_t(),end:i.token}))):ie.push(_t(!1));return h(),ie}var xt=D(function(){return I("["),new St({elements:bt("]",!e.strict,!0)})}),Dt=D((w,$)=>te(Li,w,$)),Bn=D(function(){var $=i.token,W=!0,Z=[];for(I("{");!s("punc","}")&&(W?W=!1:I(","),!(!e.strict&&s("punc","}")));){if($=i.token,$.type=="expand"){h(),Z.push(new ht({start:$,expression:_t(!1),end:y()}));continue}s("privatename")&&E("private fields are not allowed in an object");var ie=ut(),Fe;if(s("punc",":"))ie===null?O(y()):(h(),Fe=_t(!1));else{var Pe=pn(ie,$);if(Pe){Z.push(Pe);continue}Fe=new Ae({start:y(),name:ie,end:y()})}s("operator","=")&&(h(),Fe=new st({start:$,left:Fe,operator:"=",right:_t(!1),logical:!1,end:y()}));const rt=new Yt({start:$,quote:$.quote,key:ie instanceof xe?ie:""+ie,value:Fe,end:y()});Z.push(Fn(rt))}return h(),new Nt({properties:Z})});function Zt(w,$){var W,Z,ie,Fe,Pe=[];i.input.push_directives_stack(),i.input.add_directive("use strict"),i.token.type=="name"&&i.token.value!="extends"&&(ie=Tn(w===Gr?wu:Nu)),w===Gr&&!ie&&($?w=Ei:O()),i.token.value=="extends"&&(h(),Fe=_t(!0)),I("{");const rt=i.in_class;for(i.in_class=!0;s("punc",";");)h();for(;!s("punc","}");)for(W=i.token,Z=pn(ut(),W,!0),Z||O(),Pe.push(Z);s("punc",";");)h();return i.in_class=rt,i.input.pop_directives_stack(),h(),new w({start:W,name:ie,extends:Fe,properties:Pe,end:y()})}function pn(w,$,W){const Z=(Bt,Wr=Un)=>typeof Bt=="string"||typeof Bt=="number"?new Wr({start:$,name:""+Bt,end:y()}):(Bt===null&&O(),Bt),ie=()=>!s("punc","(")&&!s("punc",",")&&!s("punc","}")&&!s("punc",";")&&!s("operator","=");var Fe=!1,Pe=!1,rt=!1,Ht=!1,on=null;if(W&&w==="static"&&ie()){const Bt=$t();if(Bt!=null)return Bt;Pe=!0,w=ut()}w==="async"&&ie()&&(Fe=!0,w=ut()),y().type==="operator"&&y().value==="*"&&(rt=!0,w=ut()),(w==="get"||w==="set")&&ie()&&(on=w,w=ut()),y().type==="privatename"&&(Ht=!0);const bn=y();if(on!=null)if(Ht){const Bt=on==="get"?ti:gi;return Fn(new Bt({start:$,static:Pe,key:Z(w),value:Dt(),end:y()}))}else{const Bt=on==="get"?Hr:ni;return w=Z(w),Fn(new Bt({start:$,static:Pe,key:w,quote:w instanceof Un?bn.quote:void 0,value:Dt(),end:y()}))}if(s("punc","(")){w=Z(w);const Bt=Ht?bi:Mn;var Fr=new Bt({start:$,static:Pe,is_generator:rt,async:Fe,key:w,quote:w instanceof Un?bn.quote:void 0,value:Dt(rt,Fe),end:y()});return Fn(Fr)}if(W){const Bt=Z(w,$i),Wr=Bt instanceof $i?bn.quote:void 0,Ar=Ht?vi:lr;if(s("operator","="))return h(),Fn(new Ar({start:$,static:Pe,quote:Wr,key:Bt,value:_t(!1),end:y()}));if(s("name")||s("privatename")||s("operator","*")||s("punc",";")||s("punc","}"))return Fn(new Ar({start:$,static:Pe,quote:Wr,key:Bt,end:y()}))}}function $t(){if(!s("punc","{"))return null;const w=i.token,$=[];for(h();!s("punc","}");)$.push(X());return h(),new qn({start:w,body:$,end:y()})}function Pt(){return s("name","assert")&&!U(i.token)?(h(),Bn()):null}function ln(){var w=y(),$,W;s("name")&&($=Tn(Yo)),s("punc",",")&&h(),W=Be(!0),(W||$)&&A("name","from");var Z=i.token;Z.type!=="string"&&O(),h();const ie=Pt();return new Rr({start:w,imported_name:$,imported_names:W,module_name:new dt({start:Z,value:Z.value,quote:Z.quote,end:Z}),assert_clause:ie,end:i.token})}function Ai(w){var $=i.token;return A("name","import"),A("punc","."),A("name","meta"),fn(new Bi({start:$,end:y()}),w)}function V(w){function $(rt,Ht){return new rt({name:ut(),quote:Ht||void 0,start:y(),end:y()})}var W=w?So:Ti,Z=w?Yo:To,ie=i.token,Fe,Pe;return w?Fe=$(W,ie.quote):Pe=$(Z,ie.quote),s("name","as")?(h(),w?Pe=$(Z):Fe=$(W,i.token.quote)):w?Pe=new Z(Fe):Fe=new W(Pe),new ei({start:ie,foreign_name:Fe,name:Pe,end:y()})}function we(w,$){var W=w?So:Ti,Z=w?Yo:To,ie=i.token,Fe,Pe,rt=y();return w?Fe=$:Pe=$,Fe=Fe||new Z({start:ie,name:"*",end:rt}),Pe=Pe||new W({start:ie,name:"*",end:rt}),new ei({start:ie,foreign_name:Pe,name:Fe,end:rt})}function Be(w){var $;if(s("punc","{")){for(h(),$=[];!s("punc","}");)$.push(V(w)),s("punc",",")&&h();h()}else if(s("operator","*")){var W;h(),s("name","as")&&(h(),W=w?Tn(Yo):li(Ti)),$=[we(w,W)]}return $}function Me(){var w=i.token,$,W;if(s("keyword","default"))$=!0,h();else if(W=Be(!1))if(s("name","from")){h();var Z=i.token;Z.type!=="string"&&O(),h();const rt=Pt();return new Cn({start:w,is_default:$,exported_names:W,module_name:new dt({start:Z,value:Z.value,quote:Z.quote,end:Z}),end:y(),assert_clause:rt})}else return new Cn({start:w,is_default:$,exported_names:W,end:y()});var ie,Fe,Pe;return s("punc","{")||$&&(s("keyword","class")||s("keyword","function"))&&ur(f(),"punc")?(Fe=_t(!1),C()):(ie=X($))instanceof sn&&$?O(ie.start):ie instanceof sn||ie instanceof Qt||ie instanceof Gr?Pe=ie:ie instanceof Ei||ie instanceof Ft?Fe=ie:ie instanceof $e?Fe=ie.body:O(ie.start),new Cn({start:w,is_default:$,exported_value:Fe,exported_definition:Pe,end:y(),assert_clause:null})}function ut(){var w=i.token;switch(w.type){case"punc":if(w.value==="["){h();var $=_t(!1);return I("]"),$}else O(w);case"operator":if(w.value==="*")return h(),null;["delete","in","instanceof","new","typeof","void"].includes(w.value)||O(w);case"name":case"privatename":case"string":case"num":case"big_int":case"keyword":case"atom":return h(),w.value;default:O(w)}}function rn(){var w=i.token;return w.type!="name"&&w.type!="privatename"&&O(),h(),w.value}function ft(w){var $=i.token.value;return new($=="this"?Vn:$=="super"?Jo:w)({name:String($),start:i.token,end:i.token})}function gn(w){var $=w.name;b()&&$=="yield"&&T(w.start,"Yield cannot be used as identifier inside generators"),i.input.has_directive("use strict")&&($=="yield"&&T(w.start,"Unexpected yield identifier inside strict mode"),w instanceof wn&&($=="arguments"||$=="eval")&&T(w.start,"Unexpected "+$+" in strict mode"))}function Tn(w,$){if(!s("name"))return $||E("Name expected"),null;var W=ft(w);return gn(W),h(),W}function li(w){if(!s("name")){s("string")||E("Name or string expected");var $=i.token,W=new w({start:$,end:$,name:$.value,quote:$.quote});return h(),W}var Z=ft(w);return gn(Z),h(),Z}function Fn(w,$=w.start){var W=$.comments_before;const Z=n.get($);for(var ie=Z??W.length;--ie>=0;){var Fe=W[ie];if(/[@#]__/.test(Fe.value)){if(/[@#]__PURE__/.test(Fe.value)){ss(w,Fl);break}if(/[@#]__INLINE__/.test(Fe.value)){ss(w,Ll);break}if(/[@#]__NOINLINE__/.test(Fe.value)){ss(w,Ao);break}if(/[@#]__KEY__/.test(Fe.value)){ss(w,_s);break}if(/[@#]__MANGLE_PROP__/.test(Fe.value)){ss(w,ys);break}}}return w}var fn=function(w,$,W){var Z=w.start;if(s("punc",".")){h(),s("privatename")&&!i.in_class&&E("Private field must be used in an enclosing class");const Pe=s("privatename")?$r:zt;return Fn(fn(new Pe({start:Z,expression:w,optional:!1,property:rn(),end:y()}),$,W))}if(s("punc","[")){h();var ie=_t(!0);return I("]"),Fn(fn(new Sn({start:Z,expression:w,optional:!1,property:ie,end:y()}),$,W))}if($&&s("punc","(")){h();var Fe=new je({start:Z,expression:w,optional:!1,args:co(),end:y()});return Fn(Fe),fn(Fe,!0,W)}if(s("punc","?.")){h();let Pe;if($&&s("punc","(")){h();const rt=new je({start:Z,optional:!0,expression:w,args:co(),end:y()});Fn(rt),Pe=fn(rt,!0,!0)}else if(s("name")||s("privatename")){s("privatename")&&!i.in_class&&E("Private field must be used in an enclosing class");const rt=s("privatename")?$r:zt;Pe=Fn(fn(new rt({start:Z,expression:w,optional:!0,property:rn(),end:y()}),$,!0))}else if(s("punc","[")){h();const rt=_t(!0);I("]"),Pe=Fn(fn(new Sn({start:Z,expression:w,optional:!0,property:rt,end:y()}),$,!0))}return Pe||O(),Pe instanceof _n?Pe:new _n({start:Z,expression:Pe,end:y()})}return s("template_head")?(W&&O(),fn(new jr({start:Z,prefix:w,template_string:de(),end:y()}),$)):w};function co(){for(var w=[];!s("punc",")");)s("expand","...")?(h(),w.push(new ht({start:y(),expression:_t(!1),end:y()}))):w.push(_t(!1)),s("punc",")")||I(",");return h(),w}var xi=function(w,$){var W=i.token;if(W.type=="name"&&W.value=="await"&&g())return h(),J();if(s("operator")&&vy.has(W.value)){h(),B();var Z=lo(We,W,xi(w));return Z.start=W,Z.end=y(),Z}for(var ie=ke(w,$);s("operator")&&Zp.has(i.token.value)&&!U(i.token);)ie instanceof qt&&O(),ie=lo(Ui,i.token,ie),ie.start=W,ie.end=i.token,h();return ie};function lo(w,$,W){var Z=$.value;switch(Z){case"++":case"--":Wi(W)||E("Invalid use of "+Z+" operator",$.line,$.col,$.pos);break;case"delete":W instanceof Ae&&i.input.has_directive("use strict")&&E("Calling delete on expression not allowed in strict mode",W.start.line,W.start.col,W.start.pos);break}return new w({operator:Z,expression:W})}var Tr=function(w,$,W){var Z=s("operator")?i.token.value:null;Z=="in"&&W&&(Z=null),Z=="**"&&w instanceof We&&!ur(w.start,"punc","(")&&w.operator!=="--"&&w.operator!=="++"&&O(w.start);var ie=Z!=null?Dr[Z]:null;if(ie!=null&&(ie>$||Z==="**"&&$===ie)){h();var Fe=zr(W,ie,!0);return Tr(new ae({start:w.start,left:w,operator:Z,right:Fe,end:Fe.end}),$,W)}return w};function zr(w,$,W,Z){if(!w&&$<Dr.in&&s("privatename")){i.in_class||E("Private field must be used in an enclosing class");const ie=i.token,Fe=new ds({start:ie,name:ie.value,end:ie});h(),A("operator","in");const Pe=new ri({start:ie,key:Fe,value:zr(w,Dr.in,!0),end:y()});return Tr(Pe,0,w)}else return Tr(xi(W,Z),$,w)}var Io=function(w){var $=i.token,W=zr(w,0,!0,!0);if(s("operator","?")){h();var Z=_t(!1);return I(":"),new tt({start:$,condition:W,consequent:Z,alternative:_t(!1,w),end:y()})}return W};function Wi(w){return w instanceof Xe||w instanceof Ae}function Pr(w){if(w instanceof Nt)w=new Vt({start:w.start,names:w.properties.map(Pr),is_array:!1,end:w.end});else if(w instanceof St){for(var $=[],W=0;W<w.elements.length;W++)w.elements[W]instanceof ht&&(W+1!==w.elements.length&&T(w.elements[W].start,"Spread must the be last element in destructuring array"),w.elements[W].expression=Pr(w.elements[W].expression)),$.push(Pr(w.elements[W]));w=new Vt({start:w.start,names:$,is_array:!0,end:w.end})}else w instanceof un?w.value=Pr(w.value):w instanceof st&&(w=new wr({start:w.start,left:w.left,operator:"=",right:w.right,end:w.end}));return w}var fi=function(w){B();var $=i.token;if($.type=="name"&&$.value=="yield"){if(b())return h(),re();i.input.has_directive("use strict")&&T(i.token,"Unexpected yield identifier inside strict mode")}var W=Io(w),Z=i.token.value;if(s("operator")&&Ey.has(Z)){if(Wi(W)||(W=Pr(W))instanceof Vt)return h(),new st({start:$,left:W,operator:Z,right:fi(w),logical:Sy.has(Z),end:y()});E("Invalid assignment")}return W},Po=function(w,$){if($.length===1)return $[0];if($.length>1)return new lt({start:w,expressions:$,end:f()});E("Invalid parenthesized expression")},_t=function(w,$){for(var W=i.token,Z=[];Z.push(fi($)),!(!w||!s("punc",","));)h(),w=!0;return Po(W,Z)};function or(w){++i.in_loop;var $=w();return--i.in_loop,$}return e.expression?_t(!0):function(){var $=i.token,W=[];for(i.input.push_directives_stack(),e.module&&i.input.add_directive("use strict");!s("eof");)W.push(X());i.input.pop_directives_stack();var Z=y(),ie=e.toplevel;return ie?(ie.body=ie.body.concat(W),ie.end=Z):ie=new Kt({start:$,body:W,end:Z}),us=new Map,ie}()}function fe(t,e,n,i,s=xe){e?e=e.split(/\s+/):e=[];var f=e;s&&s.PROPS&&(e=e.concat(s.PROPS));const h=s&&Object.create(s.prototype);if(h&&(n.prototype=h,n.BASE=s),s&&s.SUBCLASSES.push(n),n.prototype.CTOR=n,n.prototype.constructor=n,n.PROPS=e||null,n.SELF_PROPS=f,n.SUBCLASSES=[],t&&(n.prototype.TYPE=n.TYPE=t),i)for(let y in i)tr(i,y)&&(y[0]==="$"?n[y.substr(1)]=i[y]:n.prototype[y]=i[y]);return n.DEFMETHOD=function(y,E){this.prototype[y]=E},n}const Cu=(t,e)=>!!(t.flags&e),Du=(t,e,n)=>{n?t.flags|=e:t.flags&=~e},Qp=1,ed=2,td=4,nd=8;class Nl{constructor(e,n,i,s,f,h,y,E,T){this.flags=h?1:0,this.type=e,this.value=n,this.line=i,this.col=s,this.pos=f,this.comments_before=y,this.comments_after=E,this.file=T,Object.seal(this)}[Symbol.for("nodejs.util.inspect.custom")](e,n){const i=h=>n.stylize(h,"special"),s=typeof this.value=="string"&&this.value.includes("`")?"'":"`",f=`${s}${this.value}${s}`;return`${i("[AST_Token")} ${f} at ${this.line}:${this.col}${i("]")}`}get nlb(){return Cu(this,Qp)}set nlb(e){Du(this,Qp,e)}get quote(){return Cu(this,td)?Cu(this,ed)?"'":'"':""}set quote(e){Du(this,ed,e==="'"),Du(this,td,!!e)}get template_end(){return Cu(this,nd)}set template_end(e){Du(this,nd,e)}}var xe=fe("Node","start end",function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{_clone:function(t){if(t){var e=this.clone();return e.transform(new dr(function(n){if(n!==e)return n.clone(!0)}))}return new this.CTOR(this)},clone:function(t){return this._clone(t)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(t){return t._visit(this)},walk:function(t){return this._walk(t)},_children_backwards:()=>{}},null),kn=fe("Statement",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class of all statements"}),Pi=fe("Debugger",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Represents a debugger statement"},kn),nr=fe("Directive","value quote",function(e){e&&(this.value=e.value,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},kn),$e=fe("SimpleStatement","body",function(e){e&&(this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(t){return t._visit(this,function(){this.body._walk(t)})},_children_backwards(t){t(this.body)}},kn);function go(t,e){const n=t.body;for(var i=0,s=n.length;i<s;i++)n[i]._walk(e)}function Il(t){var e=this._clone(t);return this.block_scope&&(e.block_scope=this.block_scope.clone()),e}var vn=fe("Block","body block_scope",function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A body of statements (usually braced)",$propdoc:{body:"[AST_Statement*] an array of statements",block_scope:"[AST_Scope] the block scope"},_walk:function(t){return t._visit(this,function(){go(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e])},clone:Il},kn),Ye=fe("BlockStatement",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A block statement"},vn),Rt=fe("EmptyStatement",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The empty statement (empty block or simply a semicolon)"},kn),bo=fe("StatementWithBody","body",function(e){e&&(this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},kn),Zn=fe("LabeledStatement","label",function(e){e&&(this.label=e.label,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(t){return t._visit(this,function(){this.label._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),t(this.label)},clone:function(t){var e=this._clone(t);if(t){var n=e.label,i=this.label;e.walk(new Pn(function(s){s instanceof qr&&s.label&&s.label.thedef===i&&(s.label.thedef=n,n.references.push(s))}))}return e}},bo),Vr=fe("IterationStatement","block_scope",function(e){e&&(this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Internal class. All loops inherit from it.",$propdoc:{block_scope:"[AST_Scope] the block scope for this iteration statement."},clone:Il},bo),ku=fe("DWLoop","condition",function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition. Should not be instanceof AST_Statement"}},Vr),_i=fe("Do",null,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `do` statement",_walk:function(t){return t._visit(this,function(){this.body._walk(t),this.condition._walk(t)})},_children_backwards(t){t(this.condition),t(this.body)}},ku),Fi=fe("While",null,function(e){e&&(this.condition=e.condition,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `while` statement",_walk:function(t){return t._visit(this,function(){this.condition._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),t(this.condition)}},ku),En=fe("For","init condition step",function(e){e&&(this.init=e.init,this.condition=e.condition,this.step=e.step,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(t){return t._visit(this,function(){this.init&&this.init._walk(t),this.condition&&this.condition._walk(t),this.step&&this.step._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),this.step&&t(this.step),this.condition&&t(this.condition),this.init&&t(this.init)}},Vr),zn=fe("ForIn","init object",function(e){e&&(this.init=e.init,this.object=e.object,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(t){return t._visit(this,function(){this.init._walk(t),this.object._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),this.object&&t(this.object),this.init&&t(this.init)}},Vr),vo=fe("ForOf","await",function(e){e&&(this.await=e.await,this.init=e.init,this.object=e.object,this.block_scope=e.block_scope,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `for ... of` statement"},zn),_r=fe("With","expression",function(e){e&&(this.expression=e.expression,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t),this.body._walk(t)})},_children_backwards(t){t(this.body),t(this.expression)}},bo),qe=fe("Scope","variables uses_with uses_eval parent_scope enclosed cname",function(e){e&&(this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Map/S] a map of name -> SymbolDef for all variables/functions defined in this scope",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"},get_defun_scope:function(){for(var t=this;t.is_block_scope();)t=t.parent_scope;return t},clone:function(t,e){var n=this._clone(t);return t&&this.variables&&e&&!this._block_scope?n.figure_out_scope({},{toplevel:e,parent_scope:this.parent_scope}):(this.variables&&(n.variables=new Map(this.variables)),this.enclosed&&(n.enclosed=this.enclosed.slice()),this._block_scope&&(n._block_scope=this._block_scope)),n},pinned:function(){return this.uses_eval||this.uses_with}},vn),Kt=fe("Toplevel","globals",function(e){e&&(this.globals=e.globals,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The toplevel scope",$propdoc:{globals:"[Map/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(t){var e=this.body,n="(function(exports){'$ORIG';})(typeof "+t+"=='undefined'?("+t+"={}):"+t+");";return n=ls(n),n=n.transform(new dr(function(i){if(i instanceof nr&&i.value=="$ORIG")return Xt.splice(e)})),n},wrap_enclose:function(t){typeof t!="string"&&(t="");var e=t.indexOf(":");e<0&&(e=t.length);var n=this.body;return ls(["(function(",t.slice(0,e),'){"$ORIG"})(',t.slice(e+1),")"].join("")).transform(new dr(function(i){if(i instanceof nr&&i.value=="$ORIG")return Xt.splice(n)}))}},qe),ht=fe("Expansion","expression",function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(t){return t._visit(this,function(){this.expression.walk(t)})},_children_backwards(t){t(this.expression)}}),Ge=fe("Lambda","name argnames uses_arguments is_generator async",function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var t=[],e=0;e<this.argnames.length;e++)this.argnames[e]instanceof Vt?t.push(...this.argnames[e].all_symbols()):t.push(this.argnames[e]);return t},_walk:function(t){return t._visit(this,function(){this.name&&this.name._walk(t);for(var e=this.argnames,n=0,i=e.length;n<i;n++)e[n]._walk(t);go(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);for(e=this.argnames.length;e--;)t(this.argnames[e]);this.name&&t(this.name)},is_braceless(){return this.body[0]instanceof an&&this.body[0].value},length_property(){let t=0;for(const e of this.argnames)(e instanceof Nn||e instanceof Vt)&&t++;return t}},qe),Li=fe("Accessor",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A setter/getter function. The `name` property is always null."},Ge),Ft=fe("Function",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A function expression"},Ge),qt=fe("Arrow",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An ES6 Arrow function ((a) => b)"},Ge),Qt=fe("Defun",null,function(e){e&&(this.name=e.name,this.argnames=e.argnames,this.uses_arguments=e.uses_arguments,this.is_generator=e.is_generator,this.async=e.async,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A function definition"},Ge),Vt=fe("Destructuring","names is_array",function(e){e&&(this.names=e.names,this.is_array=e.is_array,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(t){return t._visit(this,function(){this.names.forEach(function(e){e._walk(t)})})},_children_backwards(t){let e=this.names.length;for(;e--;)t(this.names[e])},all_symbols:function(){var t=[];return In(this,e=>{if(e instanceof wn&&t.push(e),e instanceof Ge)return!0}),t}}),jr=fe("PrefixedTemplateString","template_string prefix",function(e){e&&(this.template_string=e.template_string,this.prefix=e.prefix,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_Node] The prefix, which will get called."},_walk:function(t){return t._visit(this,function(){this.prefix._walk(t),this.template_string._walk(t)})},_children_backwards(t){t(this.template_string),t(this.prefix)}}),Wn=fe("TemplateString","segments",function(e){e&&(this.segments=e.segments,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(t){return t._visit(this,function(){this.segments.forEach(function(e){e._walk(t)})})},_children_backwards(t){let e=this.segments.length;for(;e--;)t(this.segments[e])}}),yi=fe("TemplateSegment","value raw",function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw source of the segment"}}),fs=fe("Jump",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},kn),cr=fe("Exit","value",function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(t){return t._visit(this,this.value&&function(){this.value._walk(t)})},_children_backwards(t){this.value&&t(this.value)}},fs),an=fe("Return",null,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `return` statement"},cr),hs=fe("Throw",null,function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `throw` statement"},cr),qr=fe("LoopControl","label",function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(t){return t._visit(this,this.label&&function(){this.label._walk(t)})},_children_backwards(t){this.label&&t(this.label)}},fs),kr=fe("Break",null,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `break` statement"},qr),no=fe("Continue",null,function(e){e&&(this.label=e.label,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `continue` statement"},qr),yr=fe("Await","expression",function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `await` statement",$propdoc:{expression:"[AST_Node] the mandatory expression being awaited"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}}),gr=fe("Yield","expression is_star",function(e){e&&(this.expression=e.expression,this.is_star=e.is_star,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `yield` statement",$propdoc:{expression:"[AST_Node?] the value returned or thrown by this statement; could be null (representing undefined) but only when is_star is set to false",is_star:"[Boolean] Whether this is a yield or yield* statement"},_walk:function(t){return t._visit(this,this.expression&&function(){this.expression._walk(t)})},_children_backwards(t){this.expression&&t(this.expression)}}),wt=fe("If","condition alternative",function(e){e&&(this.condition=e.condition,this.alternative=e.alternative,this.body=e.body,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(t){return t._visit(this,function(){this.condition._walk(t),this.body._walk(t),this.alternative&&this.alternative._walk(t)})},_children_backwards(t){this.alternative&&t(this.alternative),t(this.body),t(this.condition)}},bo),Xn=fe("Switch","expression",function(e){e&&(this.expression=e.expression,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t),go(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);t(this.expression)}},vn),Mi=fe("SwitchBranch",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for `switch` branches"},vn),Eo=fe("Default",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `default` switch branch"},Mi),Yr=fe("Case","expression",function(e){e&&(this.expression=e.expression,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t),go(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);t(this.expression)}},Mi),br=fe("Try","body bcatch bfinally",function(e){e&&(this.body=e.body,this.bcatch=e.bcatch,this.bfinally=e.bfinally,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `try` statement",$propdoc:{body:"[AST_TryBlock] the try block",bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(t){return t._visit(this,function(){this.body._walk(t),this.bcatch&&this.bcatch._walk(t),this.bfinally&&this.bfinally._walk(t)})},_children_backwards(t){this.bfinally&&t(this.bfinally),this.bcatch&&t(this.bcatch),t(this.body)}},kn),Ru=fe("TryBlock",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `try` block of a try statement"},vn),Jr=fe("Catch","argname",function(e){e&&(this.argname=e.argname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(t){return t._visit(this,function(){this.argname&&this.argname._walk(t),go(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e]);this.argname&&t(this.argname)}},vn),Wo=fe("Finally",null,function(e){e&&(this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},vn),sn=fe("Definitions","definitions",function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(t){return t._visit(this,function(){for(var e=this.definitions,n=0,i=e.length;n<i;n++)e[n]._walk(t)})},_children_backwards(t){let e=this.definitions.length;for(;e--;)t(this.definitions[e])}},kn),Rn=fe("Var",null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `var` statement"},sn),Zr=fe("Let",null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `let` statement"},sn),Qr=fe("Const",null,function(e){e&&(this.definitions=e.definitions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A `const` statement"},sn),Lt=fe("VarDef","name value",function(e){e&&(this.name=e.name,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_Destructuring|AST_SymbolConst|AST_SymbolLet|AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(t){return t._visit(this,function(){this.name._walk(t),this.value&&this.value._walk(t)})},_children_backwards(t){this.value&&t(this.value),t(this.name)},declarations_as_names(){return this.name instanceof wn?[this]:this.name.all_symbols()}}),ei=fe("NameMapping","foreign_name name",function(e){e&&(this.foreign_name=e.foreign_name,this.name=e.name,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The part of the export/import statement that declare names from a module.",$propdoc:{foreign_name:"[AST_SymbolExportForeign|AST_SymbolImportForeign] The name being exported/imported (as specified in the module)",name:"[AST_SymbolExport|AST_SymbolImport] The name as it is visible to this module."},_walk:function(t){return t._visit(this,function(){this.foreign_name._walk(t),this.name._walk(t)})},_children_backwards(t){t(this.name),t(this.foreign_name)}}),Rr=fe("Import","imported_name imported_names module_name assert_clause",function(e){e&&(this.imported_name=e.imported_name,this.imported_names=e.imported_names,this.module_name=e.module_name,this.assert_clause=e.assert_clause,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `import` statement",$propdoc:{imported_name:"[AST_SymbolImport] The name of the variable holding the module's default export.",imported_names:"[AST_NameMapping*] The names of non-default imported variables",module_name:"[AST_String] String literal describing where this module came from",assert_clause:"[AST_Object?] The import assertion"},_walk:function(t){return t._visit(this,function(){this.imported_name&&this.imported_name._walk(t),this.imported_names&&this.imported_names.forEach(function(e){e._walk(t)}),this.module_name._walk(t)})},_children_backwards(t){if(t(this.module_name),this.imported_names){let e=this.imported_names.length;for(;e--;)t(this.imported_names[e])}this.imported_name&&t(this.imported_name)}}),Bi=fe("ImportMeta",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A reference to import.meta"}),Cn=fe("Export","exported_definition exported_value is_default exported_names module_name assert_clause",function(e){e&&(this.exported_definition=e.exported_definition,this.exported_value=e.exported_value,this.is_default=e.is_default,this.exported_names=e.exported_names,this.module_name=e.module_name,this.assert_clause=e.assert_clause,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `export` statement",$propdoc:{exported_definition:"[AST_Defun|AST_Definitions|AST_DefClass?] An exported definition",exported_value:"[AST_Node?] An exported value",exported_names:"[AST_NameMapping*?] List of exported names",module_name:"[AST_String?] Name of the file to load exports from",is_default:"[Boolean] Whether this is the default exported value of this module",assert_clause:"[AST_Object?] The import assertion"},_walk:function(t){return t._visit(this,function(){this.exported_definition&&this.exported_definition._walk(t),this.exported_value&&this.exported_value._walk(t),this.exported_names&&this.exported_names.forEach(function(e){e._walk(t)}),this.module_name&&this.module_name._walk(t)})},_children_backwards(t){if(this.module_name&&t(this.module_name),this.exported_names){let e=this.exported_names.length;for(;e--;)t(this.exported_names[e])}this.exported_value&&t(this.exported_value),this.exported_definition&&t(this.exported_definition)}},kn),je=fe("Call","expression args optional _annotations",function(e){e&&(this.expression=e.expression,this.args=e.args,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments",optional:"[boolean] whether this is an optional call (IE ?.() )",_annotations:"[number] bitfield containing information about the call"},initialize(){this._annotations==null&&(this._annotations=0)},_walk(t){return t._visit(this,function(){for(var e=this.args,n=0,i=e.length;n<i;n++)e[n]._walk(t);this.expression._walk(t)})},_children_backwards(t){let e=this.args.length;for(;e--;)t(this.args[e]);t(this.expression)}}),rr=fe("New",null,function(e){e&&(this.expression=e.expression,this.args=e.args,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},je),lt=fe("Sequence","expressions",function(e){e&&(this.expressions=e.expressions,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(t){return t._visit(this,function(){this.expressions.forEach(function(e){e._walk(t)})})},_children_backwards(t){let e=this.expressions.length;for(;e--;)t(this.expressions[e])}}),Xe=fe("PropAccess","expression property optional",function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot & AST_DotHash this is always a plain string, while for AST_Sub it's an arbitrary AST_Node",optional:"[boolean] whether this is an optional property access (IE ?.)"}}),zt=fe("Dot","quote",function(e){e&&(this.quote=e.quote,this.expression=e.expression,this.property=e.property,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A dotted property access expression",$propdoc:{quote:"[string] the original quote character when transformed from AST_Sub"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}},Xe),$r=fe("DotHash","",function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A dotted property access to a private property",_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}},Xe),Sn=fe("Sub",null,function(e){e&&(this.expression=e.expression,this.property=e.property,this.optional=e.optional,this._annotations=e._annotations,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(t){return t._visit(this,function(){this.expression._walk(t),this.property._walk(t)})},_children_backwards(t){t(this.property),t(this.expression)}},Xe),_n=fe("Chain","expression",function(e){e&&(this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A chain expression like a?.b?.(c)?.[d]",$propdoc:{expression:"[AST_Call|AST_Dot|AST_DotHash|AST_Sub] chain element."},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}}),Wt=fe("Unary","operator expression",function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(t){return t._visit(this,function(){this.expression._walk(t)})},_children_backwards(t){t(this.expression)}}),We=fe("UnaryPrefix",null,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Wt),Ui=fe("UnaryPostfix",null,function(e){e&&(this.operator=e.operator,this.expression=e.expression,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Unary postfix expression, i.e. `i++`"},Wt),ae=fe("Binary","operator left right",function(e){e&&(this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(t){return t._visit(this,function(){this.left._walk(t),this.right._walk(t)})},_children_backwards(t){t(this.right),t(this.left)}}),tt=fe("Conditional","condition consequent alternative",function(e){e&&(this.condition=e.condition,this.consequent=e.consequent,this.alternative=e.alternative,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(t){return t._visit(this,function(){this.condition._walk(t),this.consequent._walk(t),this.alternative._walk(t)})},_children_backwards(t){t(this.alternative),t(this.consequent),t(this.condition)}}),st=fe("Assign","logical",function(e){e&&(this.logical=e.logical,this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An assignment expression — `a = b + 5`",$propdoc:{logical:"Whether it's a logical assignment"}},ae),wr=fe("DefaultAssign",null,function(e){e&&(this.operator=e.operator,this.left=e.left,this.right=e.right,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A default assignment expression like in `(a = 3) => a`"},ae),St=fe("Array","elements",function(e){e&&(this.elements=e.elements,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(t){return t._visit(this,function(){for(var e=this.elements,n=0,i=e.length;n<i;n++)e[n]._walk(t)})},_children_backwards(t){let e=this.elements.length;for(;e--;)t(this.elements[e])}}),Nt=fe("Object","properties",function(e){e&&(this.properties=e.properties,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(t){return t._visit(this,function(){for(var e=this.properties,n=0,i=e.length;n<i;n++)e[n]._walk(t)})},_children_backwards(t){let e=this.properties.length;for(;e--;)t(this.properties[e])}}),un=fe("ObjectProperty","key value",function(e){e&&(this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_Node] property name. For ObjectKeyVal this is a string. For getters, setters and computed property this is an AST_Node.",value:"[AST_Node] property value. For getters and setters this is an AST_Accessor."},_walk:function(t){return t._visit(this,function(){this.key instanceof xe&&this.key._walk(t),this.value._walk(t)})},_children_backwards(t){t(this.value),this.key instanceof xe&&t(this.key)}}),Yt=fe("ObjectKeyVal","quote",function(e){e&&(this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"},computed_key(){return this.key instanceof xe}},un),gi=fe("PrivateSetter","static",function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{static:"[boolean] whether this is a static private setter"},$documentation:"A private setter property",computed_key(){return!1}},un),ti=fe("PrivateGetter","static",function(e){e&&(this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{static:"[boolean] whether this is a static private getter"},$documentation:"A private getter property",computed_key(){return!1}},un),ni=fe("ObjectSetter","quote static",function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static setter (classes only)"},$documentation:"An object setter property",computed_key(){return!(this.key instanceof Un)}},un),Hr=fe("ObjectGetter","quote static",function(e){e&&(this.quote=e.quote,this.static=e.static,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] whether this is a static getter (classes only)"},$documentation:"An object getter property",computed_key(){return!(this.key instanceof Un)}},un),Mn=fe("ConciseMethod","quote static is_generator async",function(e){e&&(this.quote=e.quote,this.static=e.static,this.is_generator=e.is_generator,this.async=e.async,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$propdoc:{quote:"[string|undefined] the original quote character, if any",static:"[boolean] is this method static (classes only)",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},$documentation:"An ES6 concise method inside an object or class",computed_key(){return!(this.key instanceof Un)}},un),bi=fe("PrivateMethod","",function(e){e&&(this.quote=e.quote,this.static=e.static,this.is_generator=e.is_generator,this.async=e.async,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A private class method inside a class"},Mn),yt=fe("Class","name extends properties",function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{name:"[AST_SymbolClass|AST_SymbolDefClass?] optional class name.",extends:"[AST_Node]? optional parent class",properties:"[AST_ObjectProperty*] array of properties"},$documentation:"An ES6 class",_walk:function(t){return t._visit(this,function(){this.name&&this.name._walk(t),this.extends&&this.extends._walk(t),this.properties.forEach(e=>e._walk(t))})},_children_backwards(t){let e=this.properties.length;for(;e--;)t(this.properties[e]);this.extends&&t(this.extends),this.name&&t(this.name)},visit_nondeferred_class_parts(t){this.extends&&this.extends._walk(t),this.properties.forEach(e=>{if(e instanceof qn){e._walk(t);return}e.computed_key()&&(t.push(e),e.key._walk(t),t.pop()),(e instanceof vi||e instanceof lr)&&e.static&&e.value&&(t.push(e),e.value._walk(t),t.pop())})},visit_deferred_class_parts(t){this.properties.forEach(e=>{e instanceof Mn?e.walk(t):e instanceof lr&&!e.static&&e.value&&(t.push(e),e.value._walk(t),t.pop())})},is_self_referential:function(){const t=this.name&&this.name.definition().id;let e=!1,n=!0;return this.visit_nondeferred_class_parts(new Pn((i,s)=>{if(e)return!0;if(i instanceof Vn)return e=n;if(i instanceof Ae)return e=i.definition().id===t;if(i instanceof Ge&&!(i instanceof qt)){const f=n;return n=!1,s(),n=f,!0}})),e}},qe),lr=fe("ClassProperty","static quote",function(e){e&&(this.static=e.static,this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"A class property",$propdoc:{static:"[boolean] whether this is a static key",quote:"[string] which quote is being used"},_walk:function(t){return t._visit(this,function(){this.key instanceof xe&&this.key._walk(t),this.value instanceof xe&&this.value._walk(t)})},_children_backwards(t){this.value instanceof xe&&t(this.value),this.key instanceof xe&&t(this.key)},computed_key(){return!(this.key instanceof $i)}},un),vi=fe("ClassPrivateProperty","",function(e){e&&(this.static=e.static,this.quote=e.quote,this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A class property for a private property"},lr),ri=fe("PrivateIn","key value",function(e){e&&(this.key=e.key,this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"An `in` binop when the key is private, eg #x in this",_walk:function(t){return t._visit(this,function(){this.key._walk(t),this.value._walk(t)})},_children_backwards(t){t(this.value),t(this.key)}}),Gr=fe("DefClass",null,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A class definition"},yt),qn=fe("ClassStaticBlock","body block_scope",function(e){this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end},{$documentation:"A block containing statements to be executed in the context of the class",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(t){return t._visit(this,function(){go(this,t)})},_children_backwards(t){let e=this.body.length;for(;e--;)t(this.body[e])},clone:Il,computed_key:()=>!1},qe),Ei=fe("ClassExpression",null,function(e){e&&(this.name=e.name,this.extends=e.extends,this.properties=e.properties,this.variables=e.variables,this.uses_with=e.uses_with,this.uses_eval=e.uses_eval,this.parent_scope=e.parent_scope,this.enclosed=e.enclosed,this.cname=e.cname,this.body=e.body,this.block_scope=e.block_scope,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A class expression."},yt),pt=fe("Symbol","scope name thedef",function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Xo=fe("NewTarget",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A reference to new.target"}),wn=fe("SymbolDeclaration","init",function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)"},pt),Vi=fe("SymbolVar",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol defining a variable"},wn),ji=fe("SymbolBlockDeclaration",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for block-scoped declaration symbols"},wn),ro=fe("SymbolConst",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A constant declaration"},ji),qo=fe("SymbolLet",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A block-scoped `let` declaration"},ji),Nn=fe("SymbolFunarg",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a function argument"},Vi),Si=fe("SymbolDefun",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol defining a function"},wn),Un=fe("SymbolMethod",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol in an object defining a method"},pt),$i=fe("SymbolClassProperty",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol for a class property"},pt),ii=fe("SymbolLambda",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a function expression"},wn),wu=fe("SymbolDefClass",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a class's name in a class declaration. Lexically scoped to its containing scope, and accessible within the class."},ji),Nu=fe("SymbolClass",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming a class's name. Lexically scoped to the class."},wn),Kr=fe("SymbolCatch",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol naming the exception in catch"},ji),Yo=fe("SymbolImport",null,function(e){e&&(this.init=e.init,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol referring to an imported name"},ji),So=fe("SymbolImportForeign",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A symbol imported from a module, but it is defined in the other module, and its real name is irrelevant for this module's purposes"},pt),ps=fe("Label","references",function(e){e&&(this.references=e.references,this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end,this.initialize()),this.flags=0},{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},pt),Ae=fe("SymbolRef",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Reference to some symbol (not definition/declaration)"},pt),To=fe("SymbolExport",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Symbol referring to a name to export"},Ae),Ti=fe("SymbolExportForeign",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.quote=e.quote,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A symbol exported from this module, but it is used in the other module, and its real name is irrelevant for this module's purposes"},pt),Pl=fe("LabelRef",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Reference to a label symbol"},pt),ds=fe("SymbolPrivateProperty",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A symbol that refers to a private property"},pt),Vn=fe("This",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `this` symbol"},pt),Jo=fe("Super",null,function(e){e&&(this.scope=e.scope,this.name=e.name,this.thedef=e.thedef,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `super` symbol"},Vn),Tt=fe("Constant",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for all constants",getValue:function(){return this.value}}),dt=fe("String","value quote",function(e){e&&(this.value=e.value,this.quote=e.quote,this.start=e.start,this.end=e.end,this._annotations=e._annotations),this.flags=0},{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},Tt),Je=fe("Number","value raw",function(e){e&&(this.value=e.value,this.raw=e.raw,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",raw:"[string] numeric value as string"}},Tt),oi=fe("BigInt","value",function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A big int literal",$propdoc:{value:"[string] big int value"}},Tt),fr=fe("RegExp","value",function(e){e&&(this.value=e.value,this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},Tt),io=fe("Atom",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for atoms"},Tt),hr=fe("Null",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `null` atom",value:null},io),ms=fe("NaN",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The impossible value",value:NaN},io),en=fe("Undefined",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `undefined` value",value:function(){}()},io),Nr=fe("Hole",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"A hole in an array",value:function(){}()},io),oo=fe("Infinity",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `Infinity` value",value:1/0},io),Iu=fe("Boolean",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"Base class for booleans"},io),Hi=fe("False",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `false` atom",value:!1},Iu),vr=fe("True",null,function(e){e&&(this.start=e.start,this.end=e.end),this.flags=0},{$documentation:"The `true` atom",value:!0},Iu);function In(t,e,n=[t]){const i=n.push.bind(n);for(;n.length;){const s=n.pop(),f=e(s,n);if(f){if(f===pr)return!0;continue}s._children_backwards(i)}return!1}function rd(t,e,n){const i=[t],s=i.push.bind(i),f=n?n.slice():[],h=[];let y;const E={parent:(T=0)=>T===-1?y:n&&T>=f.length?(T-=f.length,n[n.length-(T+1)]):f[f.length-(1+T)]};for(;i.length;){for(y=i.pop();h.length&&i.length==h[h.length-1];)f.pop(),h.pop();const T=e(y,E);if(T){if(T===pr)return!0;continue}const O=i.length;y._children_backwards(s),i.length>O&&(f.push(y),h.push(O-1))}return!1}const pr=Symbol("abort walk");class Pn{constructor(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}_visit(e,n){this.push(e);var i=this.visit(e,n?function(){n.call(e)}:mr);return!i&&n&&n.call(e),this.pop(),i}parent(e){return this.stack[this.stack.length-2-(e||0)]}push(e){e instanceof Ge?this.directives=Object.create(this.directives):e instanceof nr&&!this.directives[e.value]?this.directives[e.value]=e:e instanceof yt&&(this.directives=Object.create(this.directives),this.directives["use strict"]||(this.directives["use strict"]=e)),this.stack.push(e)}pop(){var e=this.stack.pop();(e instanceof Ge||e instanceof yt)&&(this.directives=Object.getPrototypeOf(this.directives))}self(){return this.stack[this.stack.length-1]}find_parent(e){for(var n=this.stack,i=n.length;--i>=0;){var s=n[i];if(s instanceof e)return s}}find_scope(){for(var e=this.stack,n=e.length;--n>=0;){const i=e[n];if(i instanceof Kt||i instanceof Ge)return i;if(i.block_scope)return i.block_scope}}has_directive(e){var n=this.directives[e];if(n)return n;var i=this.stack[this.stack.length-1];if(i instanceof qe&&i.body)for(var s=0;s<i.body.length;++s){var f=i.body[s];if(!(f instanceof nr))break;if(f.value==e)return f}}loopcontrol_target(e){var n=this.stack;if(e.label)for(var i=n.length;--i>=0;){var s=n[i];if(s instanceof Zn&&s.label.name==e.label.name)return s.body}else for(var i=n.length;--i>=0;){var s=n[i];if(s instanceof Vr||e instanceof kr&&s instanceof Xn)return s}}}class dr extends Pn{constructor(e,n){super(),this.before=e,this.after=n}}const Fl=1,Ll=2,Ao=4,_s=8,ys=16;function mt(t,e){t.DEFMETHOD("transform",function(n,i){let s;if(n.push(this),n.before&&(s=n.before(this,e,i)),s===void 0&&(s=this,e(s,n),n.after)){const f=n.after(s,i);f!==void 0&&(s=f)}return n.pop(),s})}mt(xe,mr),mt(Zn,function(t,e){t.label=t.label.transform(e),t.body=t.body.transform(e)}),mt($e,function(t,e){t.body=t.body.transform(e)}),mt(vn,function(t,e){t.body=Xt(t.body,e)}),mt(_i,function(t,e){t.body=t.body.transform(e),t.condition=t.condition.transform(e)}),mt(Fi,function(t,e){t.condition=t.condition.transform(e),t.body=t.body.transform(e)}),mt(En,function(t,e){t.init&&(t.init=t.init.transform(e)),t.condition&&(t.condition=t.condition.transform(e)),t.step&&(t.step=t.step.transform(e)),t.body=t.body.transform(e)}),mt(zn,function(t,e){t.init=t.init.transform(e),t.object=t.object.transform(e),t.body=t.body.transform(e)}),mt(_r,function(t,e){t.expression=t.expression.transform(e),t.body=t.body.transform(e)}),mt(cr,function(t,e){t.value&&(t.value=t.value.transform(e))}),mt(qr,function(t,e){t.label&&(t.label=t.label.transform(e))}),mt(wt,function(t,e){t.condition=t.condition.transform(e),t.body=t.body.transform(e),t.alternative&&(t.alternative=t.alternative.transform(e))}),mt(Xn,function(t,e){t.expression=t.expression.transform(e),t.body=Xt(t.body,e)}),mt(Yr,function(t,e){t.expression=t.expression.transform(e),t.body=Xt(t.body,e)}),mt(br,function(t,e){t.body=t.body.transform(e),t.bcatch&&(t.bcatch=t.bcatch.transform(e)),t.bfinally&&(t.bfinally=t.bfinally.transform(e))}),mt(Jr,function(t,e){t.argname&&(t.argname=t.argname.transform(e)),t.body=Xt(t.body,e)}),mt(sn,function(t,e){t.definitions=Xt(t.definitions,e)}),mt(Lt,function(t,e){t.name=t.name.transform(e),t.value&&(t.value=t.value.transform(e))}),mt(Vt,function(t,e){t.names=Xt(t.names,e)}),mt(Ge,function(t,e){t.name&&(t.name=t.name.transform(e)),t.argnames=Xt(t.argnames,e,!1),t.body instanceof xe?t.body=t.body.transform(e):t.body=Xt(t.body,e)}),mt(je,function(t,e){t.expression=t.expression.transform(e),t.args=Xt(t.args,e,!1)}),mt(lt,function(t,e){const n=Xt(t.expressions,e);t.expressions=n.length?n:[new Je({value:0})]}),mt(Xe,function(t,e){t.expression=t.expression.transform(e)}),mt(Sn,function(t,e){t.expression=t.expression.transform(e),t.property=t.property.transform(e)}),mt(_n,function(t,e){t.expression=t.expression.transform(e)}),mt(gr,function(t,e){t.expression&&(t.expression=t.expression.transform(e))}),mt(yr,function(t,e){t.expression=t.expression.transform(e)}),mt(Wt,function(t,e){t.expression=t.expression.transform(e)}),mt(ae,function(t,e){t.left=t.left.transform(e),t.right=t.right.transform(e)}),mt(ri,function(t,e){t.key=t.key.transform(e),t.value=t.value.transform(e)}),mt(tt,function(t,e){t.condition=t.condition.transform(e),t.consequent=t.consequent.transform(e),t.alternative=t.alternative.transform(e)}),mt(St,function(t,e){t.elements=Xt(t.elements,e)}),mt(Nt,function(t,e){t.properties=Xt(t.properties,e)}),mt(un,function(t,e){t.key instanceof xe&&(t.key=t.key.transform(e)),t.value&&(t.value=t.value.transform(e))}),mt(yt,function(t,e){t.name&&(t.name=t.name.transform(e)),t.extends&&(t.extends=t.extends.transform(e)),t.properties=Xt(t.properties,e)}),mt(qn,function(t,e){t.body=Xt(t.body,e)}),mt(ht,function(t,e){t.expression=t.expression.transform(e)}),mt(ei,function(t,e){t.foreign_name=t.foreign_name.transform(e),t.name=t.name.transform(e)}),mt(Rr,function(t,e){t.imported_name&&(t.imported_name=t.imported_name.transform(e)),t.imported_names&&Xt(t.imported_names,e),t.module_name=t.module_name.transform(e)}),mt(Cn,function(t,e){t.exported_definition&&(t.exported_definition=t.exported_definition.transform(e)),t.exported_value&&(t.exported_value=t.exported_value.transform(e)),t.exported_names&&Xt(t.exported_names,e),t.module_name&&(t.module_name=t.module_name.transform(e))}),mt(Wn,function(t,e){t.segments=Xt(t.segments,e)}),mt(jr,function(t,e){t.prefix=t.prefix.transform(e),t.template_string=t.template_string.transform(e)}),function(){var t=function(b){for(var _=0;_<b.length;_++)if(b[_]instanceof kn&&b[_].body instanceof dt)b[_]=new nr({start:b[_].start,end:b[_].end,value:b[_].body.value});else return b;return b};const e=b=>b&&b.length>0?new Nt({start:s(b),end:f(b),properties:b.map(_=>new Yt({start:s(_),end:f(_),key:_.key.name||_.key.value,value:y(_.value)}))}):null;var n={Program:function(b){return new Kt({start:s(b),end:f(b),body:t(b.body.map(y))})},ArrayPattern:function(b){return new Vt({start:s(b),end:f(b),names:b.elements.map(function(_){return _===null?new Nr:y(_)}),is_array:!0})},ObjectPattern:function(b){return new Vt({start:s(b),end:f(b),names:b.properties.map(y),is_array:!1})},AssignmentPattern:function(b){return new wr({start:s(b),end:f(b),left:y(b.left),operator:"=",right:y(b.right)})},SpreadElement:function(b){return new ht({start:s(b),end:f(b),expression:y(b.argument)})},RestElement:function(b){return new ht({start:s(b),end:f(b),expression:y(b.argument)})},TemplateElement:function(b){return new yi({start:s(b),end:f(b),value:b.value.cooked,raw:b.value.raw})},TemplateLiteral:function(b){for(var _=[],g=0;g<b.quasis.length;g++)_.push(y(b.quasis[g])),b.expressions[g]&&_.push(y(b.expressions[g]));return new Wn({start:s(b),end:f(b),segments:_})},TaggedTemplateExpression:function(b){return new jr({start:s(b),end:f(b),template_string:y(b.quasi),prefix:y(b.tag)})},FunctionDeclaration:function(b){return new Qt({start:s(b),end:f(b),name:y(b.id),argnames:b.params.map(y),is_generator:b.generator,async:b.async,body:t(y(b.body).body)})},FunctionExpression:function(b){return new Ft({start:s(b),end:f(b),name:y(b.id),argnames:b.params.map(y),is_generator:b.generator,async:b.async,body:t(y(b.body).body)})},ArrowFunctionExpression:function(b){const _=b.body.type==="BlockStatement"?y(b.body).body:[P(an,{},{value:y(b.body)})];return new qt({start:s(b),end:f(b),argnames:b.params.map(y),body:_,async:b.async})},ExpressionStatement:function(b){return new $e({start:s(b),end:f(b),body:y(b.expression)})},TryStatement:function(b){var _=b.handlers||[b.handler];if(_.length>1||b.guardedHandlers&&b.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new br({start:s(b),end:f(b),body:new Ru(y(b.block)),bcatch:y(_[0]),bfinally:b.finalizer?new Wo(y(b.finalizer)):null})},Property:function(b){var _=b.key,g={start:s(_||b.value),end:f(b.value),key:_.type=="Identifier"?_.name:_.value,value:y(b.value)};if(b.computed&&(g.key=y(b.key)),b.method)return g.is_generator=b.value.generator,g.async=b.value.async,b.computed?g.key=y(b.key):g.key=new Un({name:g.key}),new Mn(g);if(b.kind=="init")return _.type!="Identifier"&&_.type!="Literal"&&(g.key=y(_)),new Yt(g);if((typeof g.key=="string"||typeof g.key=="number")&&(g.key=new Un({name:g.key})),g.value=new Li(g.value),b.kind=="get")return new Hr(g);if(b.kind=="set")return new ni(g);if(b.kind=="method")return g.async=b.value.async,g.is_generator=b.value.generator,g.quote=b.computed?'"':null,new Mn(g)},MethodDefinition:function(b){const _=b.key.type==="PrivateIdentifier",g=b.computed?y(b.key):new Un({name:b.key.name||b.key.value});var C={start:s(b),end:f(b),key:g,value:y(b.value),static:b.static};return b.kind=="get"?new(_?ti:Hr)(C):b.kind=="set"?new(_?gi:ni)(C):(C.is_generator=b.value.generator,C.async=b.value.async,new(_?bi:Mn)(C))},FieldDefinition:function(b){let _;if(b.computed)_=y(b.key);else{if(b.key.type!=="Identifier")throw new Error("Non-Identifier key in FieldDefinition");_=y(b.key)}return new lr({start:s(b),end:f(b),key:_,value:y(b.value),static:b.static})},PropertyDefinition:function(b){let _;if(b.computed)_=y(b.key);else{if(b.key.type==="PrivateIdentifier")return new vi({start:s(b),end:f(b),key:y(b.key),value:y(b.value),static:b.static});if(b.key.type!=="Identifier")throw new Error("Non-Identifier key in PropertyDefinition");_=y(b.key)}return new lr({start:s(b),end:f(b),key:_,value:y(b.value),static:b.static})},PrivateIdentifier:function(b){return new ds({start:s(b),end:f(b),name:b.name})},StaticBlock:function(b){return new qn({start:s(b),end:f(b),body:b.body.map(y)})},ArrayExpression:function(b){return new St({start:s(b),end:f(b),elements:b.elements.map(function(_){return _===null?new Nr:y(_)})})},ObjectExpression:function(b){return new Nt({start:s(b),end:f(b),properties:b.properties.map(function(_){return _.type==="SpreadElement"||(_.type="Property"),y(_)})})},SequenceExpression:function(b){return new lt({start:s(b),end:f(b),expressions:b.expressions.map(y)})},MemberExpression:function(b){return b.property.type==="PrivateIdentifier"?new $r({start:s(b),end:f(b),property:b.property.name,expression:y(b.object),optional:b.optional||!1}):new(b.computed?Sn:zt)({start:s(b),end:f(b),property:b.computed?y(b.property):b.property.name,expression:y(b.object),optional:b.optional||!1})},ChainExpression:function(b){return new _n({start:s(b),end:f(b),expression:y(b.expression)})},SwitchCase:function(b){return new(b.test?Yr:Eo)({start:s(b),end:f(b),expression:y(b.test),body:b.consequent.map(y)})},VariableDeclaration:function(b){return new(b.kind==="const"?Qr:b.kind==="let"?Zr:Rn)({start:s(b),end:f(b),definitions:b.declarations.map(y)})},ImportDeclaration:function(b){var _=null,g=null;return b.specifiers.forEach(function(C){C.type==="ImportSpecifier"||C.type==="ImportNamespaceSpecifier"?(g||(g=[]),g.push(y(C))):C.type==="ImportDefaultSpecifier"&&(_=y(C))}),new Rr({start:s(b),end:f(b),imported_name:_,imported_names:g,module_name:y(b.source),assert_clause:e(b.assertions)})},ImportSpecifier:function(b){return new ei({start:s(b),end:f(b),foreign_name:y(b.imported),name:y(b.local)})},ImportDefaultSpecifier:function(b){return y(b.local)},ImportNamespaceSpecifier:function(b){return new ei({start:s(b),end:f(b),foreign_name:new So({name:"*"}),name:y(b.local)})},ExportAllDeclaration:function(b){var _=b.exported==null?new Ti({name:"*"}):y(b.exported);return new Cn({start:s(b),end:f(b),exported_names:[new ei({name:new Ti({name:"*"}),foreign_name:_})],module_name:y(b.source),assert_clause:e(b.assertions)})},ExportNamedDeclaration:function(b){return new Cn({start:s(b),end:f(b),exported_definition:y(b.declaration),exported_names:b.specifiers&&b.specifiers.length?b.specifiers.map(y):null,module_name:y(b.source),assert_clause:e(b.assertions)})},ExportDefaultDeclaration:function(b){return new Cn({start:s(b),end:f(b),exported_value:y(b.declaration),is_default:!0})},ExportSpecifier:function(b){return new ei({foreign_name:y(b.exported),name:y(b.local)})},Literal:function(b){var _=b.value,g={start:s(b),end:f(b)},C=b.regex;if(C&&C.pattern)return g.value={source:C.pattern,flags:C.flags},new fr(g);if(C){const D=b.raw||_,B=D.match(/^\/(.*)\/(\w*)$/);if(!B)throw new Error("Invalid regex source "+D);const[X,ne,z]=B;return g.value={source:ne,flags:z},new fr(g)}if(_===null)return new hr(g);switch(typeof _){case"string":g.quote='"';var R=h[h.length-2];return R.type=="ImportSpecifier"?(g.name=_,new So(g)):R.type=="ExportSpecifier"?(g.name=_,b==R.exported?new Ti(g):new To(g)):R.type=="ExportAllDeclaration"&&b==R.exported?(g.name=_,new Ti(g)):(g.value=_,new dt(g));case"number":return g.value=_,g.raw=b.raw||_.toString(),new Je(g);case"boolean":return new(_?vr:Hi)(g)}},MetaProperty:function(b){if(b.meta.name==="new"&&b.property.name==="target")return new Xo({start:s(b),end:f(b)});if(b.meta.name==="import"&&b.property.name==="meta")return new Bi({start:s(b),end:f(b)})},Identifier:function(b){var _=h[h.length-2];return new(_.type=="LabeledStatement"?ps:_.type=="VariableDeclarator"&&_.id===b?_.kind=="const"?ro:_.kind=="let"?qo:Vi:/Import.*Specifier/.test(_.type)?_.local===b?Yo:So:_.type=="ExportSpecifier"?_.local===b?To:Ti:_.type=="FunctionExpression"?_.id===b?ii:Nn:_.type=="FunctionDeclaration"?_.id===b?Si:Nn:_.type=="ArrowFunctionExpression"?_.params.includes(b)?Nn:Ae:_.type=="ClassExpression"?_.id===b?Nu:Ae:_.type=="Property"?_.key===b&&_.computed||_.value===b?Ae:Un:_.type=="PropertyDefinition"||_.type==="FieldDefinition"?_.key===b&&_.computed||_.value===b?Ae:$i:_.type=="ClassDeclaration"?_.id===b?wu:Ae:_.type=="MethodDefinition"?_.computed?Ae:Un:_.type=="CatchClause"?Kr:_.type=="BreakStatement"||_.type=="ContinueStatement"?Pl:Ae)({start:s(b),end:f(b),name:b.name})},BigIntLiteral(b){return new oi({start:s(b),end:f(b),value:b.value})},EmptyStatement:function(b){return new Rt({start:s(b),end:f(b)})},BlockStatement:function(b){return new Ye({start:s(b),end:f(b),body:b.body.map(y)})},IfStatement:function(b){return new wt({start:s(b),end:f(b),condition:y(b.test),body:y(b.consequent),alternative:y(b.alternate)})},LabeledStatement:function(b){return new Zn({start:s(b),end:f(b),label:y(b.label),body:y(b.body)})},BreakStatement:function(b){return new kr({start:s(b),end:f(b),label:y(b.label)})},ContinueStatement:function(b){return new no({start:s(b),end:f(b),label:y(b.label)})},WithStatement:function(b){return new _r({start:s(b),end:f(b),expression:y(b.object),body:y(b.body)})},SwitchStatement:function(b){return new Xn({start:s(b),end:f(b),expression:y(b.discriminant),body:b.cases.map(y)})},ReturnStatement:function(b){return new an({start:s(b),end:f(b),value:y(b.argument)})},ThrowStatement:function(b){return new hs({start:s(b),end:f(b),value:y(b.argument)})},WhileStatement:function(b){return new Fi({start:s(b),end:f(b),condition:y(b.test),body:y(b.body)})},DoWhileStatement:function(b){return new _i({start:s(b),end:f(b),condition:y(b.test),body:y(b.body)})},ForStatement:function(b){return new En({start:s(b),end:f(b),init:y(b.init),condition:y(b.test),step:y(b.update),body:y(b.body)})},ForInStatement:function(b){return new zn({start:s(b),end:f(b),init:y(b.left),object:y(b.right),body:y(b.body)})},ForOfStatement:function(b){return new vo({start:s(b),end:f(b),init:y(b.left),object:y(b.right),body:y(b.body),await:b.await})},AwaitExpression:function(b){return new yr({start:s(b),end:f(b),expression:y(b.argument)})},YieldExpression:function(b){return new gr({start:s(b),end:f(b),expression:y(b.argument),is_star:b.delegate})},DebuggerStatement:function(b){return new Pi({start:s(b),end:f(b)})},VariableDeclarator:function(b){return new Lt({start:s(b),end:f(b),name:y(b.id),value:y(b.init)})},CatchClause:function(b){return new Jr({start:s(b),end:f(b),argname:y(b.param),body:y(b.body).body})},ThisExpression:function(b){return new Vn({start:s(b),end:f(b)})},Super:function(b){return new Jo({start:s(b),end:f(b)})},BinaryExpression:function(b){return b.left.type==="PrivateIdentifier"?new ri({start:s(b),end:f(b),key:new ds({start:s(b.left),end:f(b.left),name:b.left.name}),value:y(b.right)}):new ae({start:s(b),end:f(b),operator:b.operator,left:y(b.left),right:y(b.right)})},LogicalExpression:function(b){return new ae({start:s(b),end:f(b),operator:b.operator,left:y(b.left),right:y(b.right)})},AssignmentExpression:function(b){return new st({start:s(b),end:f(b),operator:b.operator,left:y(b.left),right:y(b.right)})},ConditionalExpression:function(b){return new tt({start:s(b),end:f(b),condition:y(b.test),consequent:y(b.consequent),alternative:y(b.alternate)})},NewExpression:function(b){return new rr({start:s(b),end:f(b),expression:y(b.callee),args:b.arguments.map(y)})},CallExpression:function(b){return new je({start:s(b),end:f(b),expression:y(b.callee),optional:b.optional,args:b.arguments.map(y)})}};n.UpdateExpression=n.UnaryExpression=function(_){var g="prefix"in _?_.prefix:_.type=="UnaryExpression";return new(g?We:Ui)({start:s(_),end:f(_),operator:_.operator,expression:y(_.argument)})},n.ClassDeclaration=n.ClassExpression=function(_){return new(_.type==="ClassDeclaration"?Gr:Ei)({start:s(_),end:f(_),name:y(_.id),extends:y(_.superClass),properties:_.body.body.map(y)})},T(Rt,function(){return{type:"EmptyStatement"}}),T(Ye,function(_){return{type:"BlockStatement",body:_.body.map(A)}}),T(wt,function(_){return{type:"IfStatement",test:A(_.condition),consequent:A(_.body),alternate:A(_.alternative)}}),T(Zn,function(_){return{type:"LabeledStatement",label:A(_.label),body:A(_.body)}}),T(kr,function(_){return{type:"BreakStatement",label:A(_.label)}}),T(no,function(_){return{type:"ContinueStatement",label:A(_.label)}}),T(_r,function(_){return{type:"WithStatement",object:A(_.expression),body:A(_.body)}}),T(Xn,function(_){return{type:"SwitchStatement",discriminant:A(_.expression),cases:_.body.map(A)}}),T(an,function(_){return{type:"ReturnStatement",argument:A(_.value)}}),T(hs,function(_){return{type:"ThrowStatement",argument:A(_.value)}}),T(Fi,function(_){return{type:"WhileStatement",test:A(_.condition),body:A(_.body)}}),T(_i,function(_){return{type:"DoWhileStatement",test:A(_.condition),body:A(_.body)}}),T(En,function(_){return{type:"ForStatement",init:A(_.init),test:A(_.condition),update:A(_.step),body:A(_.body)}}),T(zn,function(_){return{type:"ForInStatement",left:A(_.init),right:A(_.object),body:A(_.body)}}),T(vo,function(_){return{type:"ForOfStatement",left:A(_.init),right:A(_.object),body:A(_.body),await:_.await}}),T(yr,function(_){return{type:"AwaitExpression",argument:A(_.expression)}}),T(gr,function(_){return{type:"YieldExpression",argument:A(_.expression),delegate:_.is_star}}),T(Pi,function(){return{type:"DebuggerStatement"}}),T(Lt,function(_){return{type:"VariableDeclarator",id:A(_.name),init:A(_.value)}}),T(Jr,function(_){return{type:"CatchClause",param:A(_.argname),body:U(_)}}),T(Vn,function(){return{type:"ThisExpression"}}),T(Jo,function(){return{type:"Super"}}),T(ae,function(_){return{type:"BinaryExpression",operator:_.operator,left:A(_.left),right:A(_.right)}}),T(ae,function(_){return{type:"LogicalExpression",operator:_.operator,left:A(_.left),right:A(_.right)}}),T(st,function(_){return{type:"AssignmentExpression",operator:_.operator,left:A(_.left),right:A(_.right)}}),T(tt,function(_){return{type:"ConditionalExpression",test:A(_.condition),consequent:A(_.consequent),alternate:A(_.alternative)}}),T(rr,function(_){return{type:"NewExpression",callee:A(_.expression),arguments:_.args.map(A)}}),T(je,function(_){return{type:"CallExpression",callee:A(_.expression),optional:_.optional,arguments:_.args.map(A)}}),T(Kt,function(_){return L("Program",_)}),T(ht,function(_){return{type:I()?"RestElement":"SpreadElement",argument:A(_.expression)}}),T(jr,function(_){return{type:"TaggedTemplateExpression",tag:A(_.prefix),quasi:A(_.template_string)}}),T(Wn,function(_){for(var g=[],C=[],R=0;R<_.segments.length;R++)R%2!==0?C.push(A(_.segments[R])):g.push({type:"TemplateElement",value:{raw:_.segments[R].raw,cooked:_.segments[R].value},tail:R===_.segments.length-1});return{type:"TemplateLiteral",quasis:g,expressions:C}}),T(Qt,function(_){return{type:"FunctionDeclaration",id:A(_.name),params:_.argnames.map(A),generator:_.is_generator,async:_.async,body:L("BlockStatement",_)}}),T(Ft,function(_,g){var C=g.is_generator!==void 0?g.is_generator:_.is_generator;return{type:"FunctionExpression",id:A(_.name),params:_.argnames.map(A),generator:C,async:_.async,body:L("BlockStatement",_)}}),T(qt,function(_){var g={type:"BlockStatement",body:_.body.map(A)};return{type:"ArrowFunctionExpression",params:_.argnames.map(A),async:_.async,body:g}}),T(Vt,function(_){return _.is_array?{type:"ArrayPattern",elements:_.names.map(A)}:{type:"ObjectPattern",properties:_.names.map(A)}}),T(nr,function(_){return{type:"ExpressionStatement",expression:{type:"Literal",value:_.value,raw:_.print_to_string()},directive:_.value}}),T($e,function(_){return{type:"ExpressionStatement",expression:A(_.body)}}),T(Mi,function(_){return{type:"SwitchCase",test:A(_.expression),consequent:_.body.map(A)}}),T(br,function(_){return{type:"TryStatement",block:U(_.body),handler:A(_.bcatch),guardedHandlers:[],finalizer:A(_.bfinally)}}),T(Jr,function(_){return{type:"CatchClause",param:A(_.argname),guard:null,body:U(_)}}),T(sn,function(_){return{type:"VariableDeclaration",kind:_ instanceof Qr?"const":_ instanceof Zr?"let":"var",declarations:_.definitions.map(A)}});const i=b=>{const _=[];if(b)for(const{key:g,value:C}of b.properties){const R=xu(g)?{type:"Identifier",name:g}:{type:"Literal",value:g,raw:JSON.stringify(g)};_.push({type:"ImportAttribute",key:R,value:A(C)})}return _};T(Cn,function(_){if(_.exported_names){var g=_.exported_names[0],C=g.name;if(C.name==="*"&&!C.quote){var R=g.foreign_name,D=R.name==="*"&&!R.quote?null:A(R);return{type:"ExportAllDeclaration",source:A(_.module_name),exported:D,assertions:i(_.assert_clause)}}return{type:"ExportNamedDeclaration",specifiers:_.exported_names.map(function(B){return{type:"ExportSpecifier",exported:A(B.foreign_name),local:A(B.name)}}),declaration:A(_.exported_definition),source:A(_.module_name),assertions:i(_.assert_clause)}}return{type:_.is_default?"ExportDefaultDeclaration":"ExportNamedDeclaration",declaration:A(_.exported_value||_.exported_definition)}}),T(Rr,function(_){var g=[];if(_.imported_name&&g.push({type:"ImportDefaultSpecifier",local:A(_.imported_name)}),_.imported_names){var C=_.imported_names[0].foreign_name;C.name==="*"&&!C.quote?g.push({type:"ImportNamespaceSpecifier",local:A(_.imported_names[0].name)}):_.imported_names.forEach(function(R){g.push({type:"ImportSpecifier",local:A(R.name),imported:A(R.foreign_name)})})}return{type:"ImportDeclaration",specifiers:g,source:A(_.module_name),assertions:i(_.assert_clause)}}),T(Bi,function(){return{type:"MetaProperty",meta:{type:"Identifier",name:"import"},property:{type:"Identifier",name:"meta"}}}),T(lt,function(_){return{type:"SequenceExpression",expressions:_.expressions.map(A)}}),T($r,function(_){return{type:"MemberExpression",object:A(_.expression),computed:!1,property:{type:"PrivateIdentifier",name:_.property},optional:_.optional}}),T(Xe,function(_){var g=_ instanceof Sn;return{type:"MemberExpression",object:A(_.expression),computed:g,property:g?A(_.property):{type:"Identifier",name:_.property},optional:_.optional}}),T(_n,function(_){return{type:"ChainExpression",expression:A(_.expression)}}),T(Wt,function(_){return{type:_.operator=="++"||_.operator=="--"?"UpdateExpression":"UnaryExpression",operator:_.operator,prefix:_ instanceof We,argument:A(_.expression)}}),T(ae,function(_){return _.operator=="="&&I()?{type:"AssignmentPattern",left:A(_.left),right:A(_.right)}:{type:_.operator=="&&"||_.operator=="||"||_.operator==="??"?"LogicalExpression":"BinaryExpression",left:A(_.left),operator:_.operator,right:A(_.right)}}),T(ri,function(_){return{type:"BinaryExpression",left:{type:"PrivateIdentifier",name:_.key.name},operator:"in",right:A(_.value)}}),T(St,function(_){return{type:"ArrayExpression",elements:_.elements.map(A)}}),T(Nt,function(_){return{type:"ObjectExpression",properties:_.properties.map(A)}}),T(un,function(_,g){var C=_.key instanceof xe?A(_.key):{type:"Identifier",value:_.key};typeof _.key=="number"&&(C={type:"Literal",value:Number(_.key)}),typeof _.key=="string"&&(C={type:"Identifier",name:_.key});var R,D=typeof _.key=="string"||typeof _.key=="number",B=D?!1:!(_.key instanceof pt)||_.key instanceof Ae;return _ instanceof Yt?(R="init",B=!D):_ instanceof Hr?R="get":_ instanceof ni&&(R="set"),_ instanceof ti||_ instanceof gi?{type:"MethodDefinition",computed:!1,kind:_ instanceof ti?"get":"set",static:_.static,key:{type:"PrivateIdentifier",name:_.key.name},value:A(_.value)}:_ instanceof vi?{type:"PropertyDefinition",key:{type:"PrivateIdentifier",name:_.key.name},value:A(_.value),computed:!1,static:_.static}:_ instanceof lr?{type:"PropertyDefinition",key:C,value:A(_.value),computed:B,static:_.static}:g instanceof yt?{type:"MethodDefinition",computed:B,kind:R,static:_.static,key:A(_.key),value:A(_.value)}:{type:"Property",computed:B,kind:R,key:C,value:A(_.value)}}),T(Mn,function(_,g){if(g instanceof Nt)return{type:"Property",computed:!(_.key instanceof pt)||_.key instanceof Ae,kind:"init",method:!0,shorthand:!1,key:A(_.key),value:A(_.value)};const C=_ instanceof bi?{type:"PrivateIdentifier",name:_.key.name}:A(_.key);return{type:"MethodDefinition",kind:_.key==="constructor"?"constructor":"method",key:C,value:A(_.value),computed:!(_.key instanceof pt)||_.key instanceof Ae,static:_.static}}),T(yt,function(_){var g=_ instanceof Ei?"ClassExpression":"ClassDeclaration";return{type:g,superClass:A(_.extends),id:_.name?A(_.name):null,body:{type:"ClassBody",body:_.properties.map(A)}}}),T(qn,function(_){return{type:"StaticBlock",body:_.body.map(A)}}),T(Xo,function(){return{type:"MetaProperty",meta:{type:"Identifier",name:"new"},property:{type:"Identifier",name:"target"}}}),T(pt,function(_,g){if(_ instanceof Un&&g.quote||(_ instanceof So||_ instanceof Ti||_ instanceof To)&&_.quote)return{type:"Literal",value:_.name};var C=_.definition();return{type:"Identifier",name:C?C.mangled_name||C.name:_.name}}),T(fr,function(_){const g=_.value.source,C=_.value.flags;return{type:"Literal",value:null,raw:_.print_to_string(),regex:{pattern:g,flags:C}}}),T(Tt,function(_){var g=_.value;return{type:"Literal",value:g,raw:_.raw||_.print_to_string()}}),T(io,function(_){return{type:"Identifier",name:String(_.value)}}),T(oi,b=>({type:"BigIntLiteral",value:b.value})),Iu.DEFMETHOD("to_mozilla_ast",Tt.prototype.to_mozilla_ast),hr.DEFMETHOD("to_mozilla_ast",Tt.prototype.to_mozilla_ast),Nr.DEFMETHOD("to_mozilla_ast",function(){return null}),vn.DEFMETHOD("to_mozilla_ast",Ye.prototype.to_mozilla_ast),Ge.DEFMETHOD("to_mozilla_ast",Ft.prototype.to_mozilla_ast);function s(b){var _=b.loc,g=_&&_.start,C=b.range;return new Nl("","",g&&g.line||0,g&&g.column||0,C?C[0]:b.start,!1,[],[],_&&_.source)}function f(b){var _=b.loc,g=_&&_.end,C=b.range;return new Nl("","",g&&g.line||0,g&&g.column||0,C?C[0]:b.end,!1,[],[],_&&_.source)}var h=null;function y(b){h.push(b);var _=b!=null?n[b.type](b):null;return h.pop(),_}xe.from_mozilla_ast=function(b){var _=h;h=[];var g=y(b);return h=_,g};function E(b,_){var g=b.start,C=b.end;return g&&C&&(g.pos!=null&&C.endpos!=null&&(_.range=[g.pos,C.endpos]),g.line&&(_.loc={start:{line:g.line,column:g.col},end:C.endline?{line:C.endline,column:C.endcol}:null},g.file&&(_.loc.source=g.file))),_}function T(b,_){b.DEFMETHOD("to_mozilla_ast",function(g){return E(this,_(this,g))})}var O=null;function A(b){O===null&&(O=[]),O.push(b);var _=b!=null?b.to_mozilla_ast(O[O.length-2]):null;return O.pop(),O.length===0&&(O=null),_}function I(){for(var b=O.length;b--;)if(O[b]instanceof Vt)return!0;return!1}function U(b){return{type:"BlockStatement",body:b.body.map(A)}}function L(b,_){var g=_.body.map(A);return _.body[0]instanceof $e&&_.body[0].body instanceof dt&&g.unshift(A(new Rt(_.body[0]))),{type:b,body:g}}}();function ai(t){let e=t.parent(-1);for(let n=0,i;i=t.parent(n);n++){if(i instanceof kn&&i.body===e)return!0;if(i instanceof lt&&i.expressions[0]===e||i.TYPE==="Call"&&i.expression===e||i instanceof jr&&i.prefix===e||i instanceof zt&&i.expression===e||i instanceof Sn&&i.expression===e||i instanceof _n&&i.expression===e||i instanceof tt&&i.condition===e||i instanceof ae&&i.left===e||i instanceof Ui&&i.expression===e)e=i;else return!1}}function Gi(t){return t instanceof Nt?!0:t instanceof lt?Gi(t.expressions[0]):t.TYPE==="Call"?Gi(t.expression):t instanceof jr?Gi(t.prefix):t instanceof zt||t instanceof Sn||t instanceof _n?Gi(t.expression):t instanceof tt?Gi(t.condition):t instanceof ae?Gi(t.left):t instanceof Ui?Gi(t.expression):!1}const id=10,od=32,ad=/[@#]__(PURE|INLINE|NOINLINE)__/;function Ay(t){return(t.type==="comment2"||t.type==="comment1")&&/@preserve|@copyright|@lic|@cc_on|^\**!/i.test(t.value)}const xy=8*1e3;class Oy{constructor(){this.committed="",this.current=""}append(e){this.current.length>xy?(this.committed+=this.current+e,this.current=""):this.current+=e}insertAt(e,n){const{committed:i,current:s}=this;n<i.length?this.committed=i.slice(0,n)+e+i.slice(n):n===i.length?this.committed+=e:(n-=i.length,this.committed+=s.slice(0,n)+e,this.current=s.slice(n))}charAt(e){const{committed:n}=this;return e<n.length?n[e]:this.current[e-n.length]}charCodeAt(e){const{committed:n}=this;return e<n.length?n.charCodeAt(e):this.current.charCodeAt(e-n.length)}length(){return this.committed.length+this.current.length}expectDirective(){let e,n=this.length();if(n<=0)return!0;for(;(e=this.charCodeAt(--n))&&(e==od||e==id););return!e||e===59||e===123}hasNLB(){let e=this.length()-1;for(;e>=0;){const n=this.charCodeAt(e--);if(n===id)return!0;if(n!==od)return!1}return!0}toString(){return this.committed+this.current}}function Ml(t){var e=!t;t=mi(t,{ascii_only:!1,beautify:!1,braces:!1,comments:"some",ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_numbers:!1,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_annotations:!1,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1,wrap_func_args:!0,_destroy_ast:!1},!0),t.shorthand===void 0&&(t.shorthand=t.ecma>5);var n=vt;if(t.comments){let oe=t.comments;if(typeof t.comments=="string"&&/^\/.*\/[a-zA-Z]*$/.test(t.comments)){var i=t.comments.lastIndexOf("/");oe=new RegExp(t.comments.substr(1,i-1),t.comments.substr(i+1))}oe instanceof RegExp?n=function(ke){return ke.type!="comment5"&&oe.test(ke.value)}:typeof oe=="function"?n=function(ke){return ke.type!="comment5"&&oe(this,ke)}:oe==="some"?n=Ay:n=er}if(t.preserve_annotations){let oe=n;n=function(ke){return ad.test(ke.value)||oe.apply(this,arguments)}}var s=0,f=0,h=1,y=0,E=new Oy;let T=new Set;var O=t.ascii_only?function(oe,ke=!1,de=!1){return t.ecma>=2015&&!t.safari10&&!de&&(oe=oe.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(bt){var xt=_y(bt,0).toString(16);return"\\u{"+xt+"}"})),oe.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(bt){var xt=bt.charCodeAt(0).toString(16);if(xt.length<=2&&!ke){for(;xt.length<2;)xt="0"+xt;return"\\x"+xt}else{for(;xt.length<4;)xt="0"+xt;return"\\u"+xt}})}:function(oe){return oe.replace(/[\ud800-\udbff][\udc00-\udfff]|([\ud800-\udbff]|[\udc00-\udfff])/g,function(ke,de){return de?"\\u"+de.charCodeAt(0).toString(16):ke})};function A(oe,ke){var de=0,bt=0;oe=oe.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(Zt,pn){switch(Zt){case'"':return++de,'"';case"'":return++bt,"'";case"\\":return"\\\\";case`
|
173
|
-
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return t.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\uFEFF":return"\\ufeff";case"\0":return/[0-9]/.test(Su(oe,pn+1))?"\\x00":"\\0"}return Zt});function xt(){return"'"+oe.replace(/\x27/g,"\\'")+"'"}function Dt(){return'"'+oe.replace(/\x22/g,'\\"')+'"'}function Bn(){return"`"+oe.replace(/`/g,"\\`")+"`"}if(oe=O(oe),ke==="`")return Bn();switch(t.quote_style){case 1:return xt();case 2:return Dt();case 3:return ke=="'"?xt():Dt();default:return de>bt?xt():Dt()}}function I(oe,ke){var de=A(oe,ke);return t.inline_script&&(de=de.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2"),de=de.replace(/\x3c!--/g,"\\x3c!--"),de=de.replace(/--\x3e/g,"--\\x3e")),de}function U(oe){return oe=oe.toString(),oe=O(oe,!0),oe}function L(oe){return" ".repeat(t.indent_start+s-oe*t.indent_level)}var b=!1,_=!1,g=!1,C=0,R=!1,D=!1,B=-1,X="",ne,z,Y=t.source_map&&[],K=Y?function(){Y.forEach(function(oe){try{let{name:ke,token:de}=oe;ke!==!1&&(de.type=="name"||de.type==="privatename"?ke=de.value:ke instanceof pt&&(ke=de.type==="string"?de.value:ke.name)),t.source_map.add(oe.token.file,oe.line,oe.col,oe.token.line,oe.token.col,xu(ke)?ke:void 0)}catch{}}),Y=[]}:mr,ce=t.max_line_len?function(){if(f>t.max_line_len&&C){E.insertAt(`
|
174
|
-
`,C);const ke=E.length()-C-1;if(Y){var oe=ke-f;Y.forEach(function(de){de.line++,de.col+=oe})}h++,y++,f=ke}C&&(C=0,K())}:mr,Q=Ot("( [ + * / - , . `");function me(oe){oe=String(oe);var ke=Su(oe,0);R&&ke&&(R=!1,ke!==`
|
175
|
-
`&&(me(`
|
176
|
-
`),pe())),D&&ke&&(D=!1,/[\s;})]/.test(ke)||te()),B=-1;var de=X.charAt(X.length-1);g&&(g=!1,(de===":"&&ke==="}"||(!ke||!";}".includes(ke))&&de!==";")&&(t.semicolons||Q.has(ke)?(E.append(";"),f++,y++):(ce(),f>0&&(E.append(`
|
177
|
-
`),y++,h++,f=0),/^\s+$/.test(oe)&&(g=!0)),t.beautify||(_=!1))),_&&((Au(de)&&(Au(ke)||ke=="\\")||ke=="/"&&ke==de||(ke=="+"||ke=="-")&&ke==X)&&(E.append(" "),f++,y++),_=!1),ne&&(Y.push({token:ne,name:z,line:h,col:f}),ne=!1,C||K()),E.append(oe),b=oe[oe.length-1]=="(",y+=oe.length;var bt=oe.split(/\r?\n/),xt=bt.length-1;h+=xt,f+=bt[0].length,xt>0&&(ce(),f=bt[xt].length),X=oe}var _e=function(){me("*")},te=t.beautify?function(){me(" ")}:function(){_=!0},pe=t.beautify?function(oe){t.beautify&&me(L(oe?.5:0))}:mr,le=t.beautify?function(oe,ke){oe===!0&&(oe=Ue());var de=s;s=oe;var bt=ke();return s=de,bt}:function(oe,ke){return ke()},Oe=t.beautify?function(){if(B<0)return me(`
|
178
|
-
`);E.charAt(B)!=`
|
179
|
-
`&&(E.insertAt(`
|
180
|
-
`,B),y++,h++),B++}:t.max_line_len?function(){ce(),C=E.length()}:mr,Ie=t.beautify?function(){me(";")}:function(){g=!0};function ge(){g=!1,me(";")}function Ue(){return s+t.indent_level}function J(oe){var ke;return me("{"),Oe(),le(Ue(),function(){ke=oe()}),pe(),me("}"),ke}function re(oe){me("(");var ke=oe();return me(")"),ke}function se(oe){me("[");var ke=oe();return me("]"),ke}function Te(){me(","),te()}function ye(){me(":"),te()}var At=Y?function(oe,ke){ne=oe,z=ke}:mr;function jt(){return C&&ce(),E.toString()}function Et(oe){return t.preserve_annotations||(oe=oe.replace(ad," ")),/^\s*$/.test(oe)?"":oe.replace(/(<\s*\/\s*)(script)/i,"<\\/$2")}function Mt(oe){var ke=this,de=oe.start;if(!de)return;var bt=ke.printed_comments;const xt=oe instanceof cr&&oe.value||(oe instanceof yr||oe instanceof gr)&&oe.expression;if(de.comments_before&&bt.has(de.comments_before))if(xt)de.comments_before=[];else return;var Dt=de.comments_before;if(Dt||(Dt=de.comments_before=[]),bt.add(Dt),xt){var Bn=new Pn(function($t){var Pt=Bn.parent();if(Pt instanceof cr||Pt instanceof yr||Pt instanceof gr||Pt instanceof ae&&Pt.left===$t||Pt.TYPE=="Call"&&Pt.expression===$t||Pt instanceof tt&&Pt.condition===$t||Pt instanceof zt&&Pt.expression===$t||Pt instanceof lt&&Pt.expressions[0]===$t||Pt instanceof Sn&&Pt.expression===$t||Pt instanceof Ui){if(!$t.start)return;var ln=$t.start.comments_before;ln&&!bt.has(ln)&&(bt.add(ln),Dt=Dt.concat(ln))}else return!0});Bn.push(oe),xt.walk(Bn)}if(y==0){Dt.length>0&&t.shebang&&Dt[0].type==="comment5"&&!bt.has(Dt[0])&&(me("#!"+Dt.shift().value+`
|
181
|
-
`),pe());var Zt=t.preamble;Zt&&me(Zt.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,`
|
182
|
-
`))}if(Dt=Dt.filter(n,oe).filter($t=>!bt.has($t)),Dt.length!=0){var pn=E.hasNLB();Dt.forEach(function($t,Pt){if(bt.add($t),pn||($t.nlb?(me(`
|
183
|
-
`),pe(),pn=!0):Pt>0&&te()),/comment[134]/.test($t.type)){var ln=Et($t.value);ln&&(me("//"+ln+`
|
184
|
-
`),pe()),pn=!0}else if($t.type=="comment2"){var ln=Et($t.value);ln&&me("/*"+ln+"*/"),pn=!1}}),pn||(de.nlb?(me(`
|
185
|
-
`),pe()):te())}}function gt(oe,ke){var de=this,bt=oe.end;if(bt){var xt=de.printed_comments,Dt=bt[ke?"comments_before":"comments_after"];if(!(!Dt||xt.has(Dt))&&(oe instanceof kn||Dt.every(Zt=>!/comment[134]/.test(Zt.type)))){xt.add(Dt);var Bn=E.length();Dt.filter(n,oe).forEach(function(Zt,pn){if(!xt.has(Zt)){if(xt.add(Zt),D=!1,R?(me(`
|
186
|
-
`),pe(),R=!1):Zt.nlb&&(pn>0||!E.hasNLB())?(me(`
|
187
|
-
`),pe()):(pn>0||!ke)&&te(),/comment[134]/.test(Zt.type)){const $t=Et(Zt.value);$t&&me("//"+$t),R=!0}else if(Zt.type=="comment2"){const $t=Et(Zt.value);$t&&me("/*"+$t+"*/"),D=!0}}}),E.length()>Bn&&(B=Bn)}}}const Ct=t._destroy_ast?function(ke){ke.body.length=0,ke.argnames.length=0}:mr;var Jt=[];return{get:jt,toString:jt,indent:pe,in_directive:!1,use_asm:null,active_scope:null,indentation:function(){return s},current_width:function(){return f-s},should_break:function(){return t.width&&this.current_width()>=t.width},has_parens:function(){return b},newline:Oe,print:me,star:_e,space:te,comma:Te,colon:ye,last:function(){return X},semicolon:Ie,force_semicolon:ge,to_utf8:O,print_name:function(oe){me(U(oe))},print_string:function(oe,ke,de){var bt=I(oe,ke);de===!0&&!bt.includes("\\")&&(E.expectDirective()||ge(),ge()),me(bt)},print_template_string_chars:function(oe){var ke=I(oe,"`").replace(/\${/g,"\\${");return me(ke.substr(1,ke.length-2))},encode_string:I,next_indent:Ue,with_indent:le,with_block:J,with_parens:re,with_square:se,add_mapping:At,option:function(oe){return t[oe]},gc_scope:Ct,printed_comments:T,prepend_comments:e?mr:Mt,append_comments:e||n===vt?mr:gt,line:function(){return h},col:function(){return f},pos:function(){return y},push_node:function(oe){Jt.push(oe)},pop_node:function(){return Jt.pop()},parent:function(oe){return Jt[Jt.length-2-(oe||0)]}}}(function(){function t(_,g){_.DEFMETHOD("_codegen",g)}xe.DEFMETHOD("print",function(_,g){var C=this,R=C._codegen;C instanceof qe?_.active_scope=C:!_.use_asm&&C instanceof nr&&C.value=="use asm"&&(_.use_asm=_.active_scope);function D(){_.prepend_comments(C),C.add_source_map(_),R(C,_),_.append_comments(C)}_.push_node(C),g||C.needs_parens(_)?_.with_parens(D):D(),_.pop_node(),C===_.use_asm&&(_.use_asm=null)}),xe.DEFMETHOD("_print",xe.prototype.print),xe.DEFMETHOD("print_to_string",function(_){var g=Ml(_);return this.print(g),g.get()});function e(_,g){Array.isArray(_)?_.forEach(function(C){e(C,g)}):_.DEFMETHOD("needs_parens",g)}e(xe,vt),e(Ft,function(_){if(!_.has_parens()&&ai(_))return!0;if(_.option("webkit")){var g=_.parent();if(g instanceof Xe&&g.expression===this)return!0}if(_.option("wrap_iife")){var g=_.parent();if(g instanceof je&&g.expression===this)return!0}if(_.option("wrap_func_args")){var g=_.parent();if(g instanceof je&&g.args.includes(this))return!0}return!1}),e(qt,function(_){var g=_.parent();return _.option("wrap_func_args")&&g instanceof je&&g.args.includes(this)?!0:g instanceof Xe&&g.expression===this||g instanceof tt&&g.condition===this}),e(Nt,function(_){return!_.has_parens()&&ai(_)}),e(Ei,ai),e(Wt,function(_){var g=_.parent();return g instanceof Xe&&g.expression===this||g instanceof je&&g.expression===this||g instanceof ae&&g.operator==="**"&&this instanceof We&&g.left===this&&this.operator!=="++"&&this.operator!=="--"}),e(yr,function(_){var g=_.parent();return g instanceof Xe&&g.expression===this||g instanceof je&&g.expression===this||g instanceof ae&&g.operator==="**"&&g.left===this||_.option("safari10")&&g instanceof We}),e(lt,function(_){var g=_.parent();return g instanceof je||g instanceof Wt||g instanceof ae||g instanceof Lt||g instanceof Xe||g instanceof St||g instanceof un||g instanceof tt||g instanceof qt||g instanceof wr||g instanceof ht||g instanceof vo&&this===g.object||g instanceof gr||g instanceof Cn}),e(ae,function(_){var g=_.parent();if(g instanceof je&&g.expression===this||g instanceof Wt||g instanceof Xe&&g.expression===this)return!0;if(g instanceof ae){const C=g.operator,R=this.operator;if(R==="??"&&(C==="||"||C==="&&")||C==="??"&&(R==="||"||R==="&&"))return!0;const D=Dr[C],B=Dr[R];if(D>B||D==B&&(this===g.right||C=="**"))return!0}if(g instanceof ri){const C=this.operator,R=Dr.in,D=Dr[C];if(R>D||R==D&&this===g.value)return!0}}),e(ri,function(_){var g=_.parent();if(g instanceof je&&g.expression===this||g instanceof Wt||g instanceof Xe&&g.expression===this)return!0;if(g instanceof ae){const C=g.operator,R=Dr[C],D=Dr.in;if(R>D||R==D&&(this===g.right||C=="**"))return!0}if(g instanceof ri&&this===g.value)return!0}),e(gr,function(_){var g=_.parent();if(g instanceof ae&&g.operator!=="="||g instanceof je&&g.expression===this||g instanceof tt&&g.condition===this||g instanceof Wt||g instanceof Xe&&g.expression===this)return!0}),e(_n,function(_){var g=_.parent();return g instanceof je||g instanceof Xe?g.expression===this:!1}),e(Xe,function(_){var g=_.parent();if(g instanceof rr&&g.expression===this)return In(this,C=>{if(C instanceof qe)return!0;if(C instanceof je)return pr})}),e(je,function(_){var g=_.parent(),C;return g instanceof rr&&g.expression===this||g instanceof Cn&&g.is_default&&this.expression instanceof Ft?!0:this.expression instanceof Ft&&g instanceof Xe&&g.expression===this&&(C=_.parent(1))instanceof st&&C.left===g}),e(rr,function(_){var g=_.parent();if(this.args.length===0&&(g instanceof Xe||g instanceof je&&g.expression===this||g instanceof jr&&g.prefix===this))return!0}),e(Je,function(_){var g=_.parent();if(g instanceof Xe&&g.expression===this){var C=this.getValue();if(C<0||/^0/.test(U(C)))return!0}}),e(oi,function(_){var g=_.parent();if(g instanceof Xe&&g.expression===this){var C=this.getValue();if(C.startsWith("-"))return!0}}),e([st,tt],function(_){var g=_.parent();if(g instanceof Wt||g instanceof ae&&!(g instanceof st)||g instanceof je&&g.expression===this||g instanceof tt&&g.condition===this||g instanceof Xe&&g.expression===this||this instanceof st&&this.left instanceof Vt&&this.left.is_array===!1)return!0}),t(nr,function(_,g){g.print_string(_.value,_.quote),g.semicolon()}),t(ht,function(_,g){g.print("..."),_.expression.print(g)}),t(Vt,function(_,g){g.print(_.is_array?"[":"{");var C=_.names.length;_.names.forEach(function(R,D){D>0&&g.comma(),R.print(g),D==C-1&&R instanceof Nr&&g.comma()}),g.print(_.is_array?"]":"}")}),t(Pi,function(_,g){g.print("debugger"),g.semicolon()});function n(_,g,C,R){var D=_.length-1;C.in_directive=R,_.forEach(function(B,X){C.in_directive===!0&&!(B instanceof nr||B instanceof Rt||B instanceof $e&&B.body instanceof dt)&&(C.in_directive=!1),B instanceof Rt||(C.indent(),B.print(C),X==D&&g||(C.newline(),g&&C.newline())),C.in_directive===!0&&B instanceof $e&&B.body instanceof dt&&(C.in_directive=!1)}),C.in_directive=!1}bo.DEFMETHOD("_do_print_body",function(_){A(this.body,_)}),t(kn,function(_,g){_.body.print(g),g.semicolon()}),t(Kt,function(_,g){n(_.body,!0,g,!0),g.print("")}),t(Zn,function(_,g){_.label.print(g),g.colon(),_.body.print(g)}),t($e,function(_,g){_.body.print(g),g.semicolon()});function i(_,g){g.print("{"),g.with_indent(g.next_indent(),function(){g.append_comments(_,!0)}),g.add_mapping(_.end),g.print("}")}function s(_,g,C){_.body.length>0?g.with_block(function(){n(_.body,!1,g,C),g.add_mapping(_.end)}):i(_,g)}t(Ye,function(_,g){s(_,g)}),t(Rt,function(_,g){g.semicolon()}),t(_i,function(_,g){g.print("do"),g.space(),L(_.body,g),g.space(),g.print("while"),g.space(),g.with_parens(function(){_.condition.print(g)}),g.semicolon()}),t(Fi,function(_,g){g.print("while"),g.space(),g.with_parens(function(){_.condition.print(g)}),g.space(),_._do_print_body(g)}),t(En,function(_,g){g.print("for"),g.space(),g.with_parens(function(){_.init?(_.init instanceof sn?_.init.print(g):h(_.init,g,!0),g.print(";"),g.space()):g.print(";"),_.condition?(_.condition.print(g),g.print(";"),g.space()):g.print(";"),_.step&&_.step.print(g)}),g.space(),_._do_print_body(g)}),t(zn,function(_,g){g.print("for"),_.await&&(g.space(),g.print("await")),g.space(),g.with_parens(function(){_.init.print(g),g.space(),g.print(_ instanceof vo?"of":"in"),g.space(),_.object.print(g)}),g.space(),_._do_print_body(g)}),t(_r,function(_,g){g.print("with"),g.space(),g.with_parens(function(){_.expression.print(g)}),g.space(),_._do_print_body(g)}),Ge.DEFMETHOD("_do_print",function(_,g){var C=this;g||(C.async&&(_.print("async"),_.space()),_.print("function"),C.is_generator&&_.star(),C.name&&_.space()),C.name instanceof pt?C.name.print(_):g&&C.name instanceof xe&&_.with_square(function(){C.name.print(_)}),_.with_parens(function(){C.argnames.forEach(function(R,D){D&&_.comma(),R.print(_)})}),_.space(),s(C,_,!0)}),t(Ge,function(_,g){_._do_print(g),g.gc_scope(_)}),t(jr,function(_,g){var C=_.prefix,R=C instanceof Ge||C instanceof ae||C instanceof tt||C instanceof lt||C instanceof Wt||C instanceof zt&&C.expression instanceof Nt;R&&g.print("("),_.prefix.print(g),R&&g.print(")"),_.template_string.print(g)}),t(Wn,function(_,g){var C=g.parent()instanceof jr;g.print("`");for(var R=0;R<_.segments.length;R++)_.segments[R]instanceof yi?C?g.print(_.segments[R].raw):g.print_template_string_chars(_.segments[R].value):(g.print("${"),_.segments[R].print(g),g.print("}"));g.print("`")}),t(yi,function(_,g){g.print_template_string_chars(_.value)}),qt.DEFMETHOD("_do_print",function(_){var g=this,C=_.parent(),R=C instanceof ae&&!(C instanceof st)||C instanceof Wt||C instanceof je&&g===C.expression;R&&_.print("("),g.async&&(_.print("async"),_.space()),g.argnames.length===1&&g.argnames[0]instanceof pt?g.argnames[0].print(_):_.with_parens(function(){g.argnames.forEach(function(B,X){X&&_.comma(),B.print(_)})}),_.space(),_.print("=>"),_.space();const D=g.body[0];if(g.body.length===1&&D instanceof an){const B=D.value;B?Gi(B)?(_.print("("),B.print(_),_.print(")")):B.print(_):_.print("{}")}else s(g,_);R&&_.print(")"),_.gc_scope(g)}),cr.DEFMETHOD("_do_print",function(_,g){if(_.print(g),this.value){_.space();const C=this.value.start.comments_before;C&&C.length&&!_.printed_comments.has(C)?(_.print("("),this.value.print(_),_.print(")")):this.value.print(_)}_.semicolon()}),t(an,function(_,g){_._do_print(g,"return")}),t(hs,function(_,g){_._do_print(g,"throw")}),t(gr,function(_,g){var C=_.is_star?"*":"";g.print("yield"+C),_.expression&&(g.space(),_.expression.print(g))}),t(yr,function(_,g){g.print("await"),g.space();var C=_.expression,R=!(C instanceof je||C instanceof Ae||C instanceof Xe||C instanceof Wt||C instanceof Tt||C instanceof yr||C instanceof Nt);R&&g.print("("),_.expression.print(g),R&&g.print(")")}),qr.DEFMETHOD("_do_print",function(_,g){_.print(g),this.label&&(_.space(),this.label.print(_)),_.semicolon()}),t(kr,function(_,g){_._do_print(g,"break")}),t(no,function(_,g){_._do_print(g,"continue")});function f(_,g){var C=_.body;if(g.option("braces")||g.option("ie8")&&C instanceof _i)return L(C,g);if(!C)return g.force_semicolon();for(;;)if(C instanceof wt){if(!C.alternative){L(_.body,g);return}C=C.alternative}else if(C instanceof bo)C=C.body;else break;A(_.body,g)}t(wt,function(_,g){g.print("if"),g.space(),g.with_parens(function(){_.condition.print(g)}),g.space(),_.alternative?(f(_,g),g.space(),g.print("else"),g.space(),_.alternative instanceof wt?_.alternative.print(g):A(_.alternative,g)):_._do_print_body(g)}),t(Xn,function(_,g){g.print("switch"),g.space(),g.with_parens(function(){_.expression.print(g)}),g.space();var C=_.body.length-1;C<0?i(_,g):g.with_block(function(){_.body.forEach(function(R,D){g.indent(!0),R.print(g),D<C&&R.body.length>0&&g.newline()})})}),Mi.DEFMETHOD("_do_print_body",function(_){_.newline(),this.body.forEach(function(g){_.indent(),g.print(_),_.newline()})}),t(Eo,function(_,g){g.print("default:"),_._do_print_body(g)}),t(Yr,function(_,g){g.print("case"),g.space(),_.expression.print(g),g.print(":"),_._do_print_body(g)}),t(br,function(_,g){g.print("try"),g.space(),_.body.print(g),_.bcatch&&(g.space(),_.bcatch.print(g)),_.bfinally&&(g.space(),_.bfinally.print(g))}),t(Ru,function(_,g){s(_,g)}),t(Jr,function(_,g){g.print("catch"),_.argname&&(g.space(),g.with_parens(function(){_.argname.print(g)})),g.space(),s(_,g)}),t(Wo,function(_,g){g.print("finally"),g.space(),s(_,g)}),sn.DEFMETHOD("_do_print",function(_,g){_.print(g),_.space(),this.definitions.forEach(function(B,X){X&&_.comma(),B.print(_)});var C=_.parent(),R=C instanceof En||C instanceof zn,D=!R||C&&C.init!==this;D&&_.semicolon()}),t(Zr,function(_,g){_._do_print(g,"let")}),t(Rn,function(_,g){_._do_print(g,"var")}),t(Qr,function(_,g){_._do_print(g,"const")}),t(Rr,function(_,g){g.print("import"),g.space(),_.imported_name&&_.imported_name.print(g),_.imported_name&&_.imported_names&&(g.print(","),g.space()),_.imported_names&&(_.imported_names.length===1&&_.imported_names[0].foreign_name.name==="*"&&!_.imported_names[0].foreign_name.quote?_.imported_names[0].print(g):(g.print("{"),_.imported_names.forEach(function(C,R){g.space(),C.print(g),R<_.imported_names.length-1&&g.print(",")}),g.space(),g.print("}"))),(_.imported_name||_.imported_names)&&(g.space(),g.print("from"),g.space()),_.module_name.print(g),_.assert_clause&&(g.print("assert"),_.assert_clause.print(g)),g.semicolon()}),t(Bi,function(_,g){g.print("import.meta")}),t(ei,function(_,g){var C=g.parent()instanceof Rr,R=_.name.definition(),D=_.foreign_name,B=(R&&R.mangled_name||_.name.name)!==D.name;!B&&D.name==="*"&&D.quote!=_.name.quote&&(B=!0);var X=D.quote==null;B?(C?X?g.print(D.name):g.print_string(D.name,D.quote):_.name.quote==null?_.name.print(g):g.print_string(_.name.name,_.name.quote),g.space(),g.print("as"),g.space(),C?_.name.print(g):X?g.print(D.name):g.print_string(D.name,D.quote)):_.name.quote==null?_.name.print(g):g.print_string(_.name.name,_.name.quote)}),t(Cn,function(_,g){if(g.print("export"),g.space(),_.is_default&&(g.print("default"),g.space()),_.exported_names)_.exported_names.length===1&&_.exported_names[0].name.name==="*"&&!_.exported_names[0].name.quote?_.exported_names[0].print(g):(g.print("{"),_.exported_names.forEach(function(C,R){g.space(),C.print(g),R<_.exported_names.length-1&&g.print(",")}),g.space(),g.print("}"));else if(_.exported_value)_.exported_value.print(g);else if(_.exported_definition&&(_.exported_definition.print(g),_.exported_definition instanceof sn))return;_.module_name&&(g.space(),g.print("from"),g.space(),_.module_name.print(g)),_.assert_clause&&(g.print("assert"),_.assert_clause.print(g)),(_.exported_value&&!(_.exported_value instanceof Qt||_.exported_value instanceof Ft||_.exported_value instanceof yt)||_.module_name||_.exported_names)&&g.semicolon()});function h(_,g,C){var R=!1;C&&(R=In(_,D=>{if(D instanceof qe&&!(D instanceof qt))return!0;if(D instanceof ae&&D.operator=="in"||D instanceof ri)return pr})),_.print(g,R)}t(Lt,function(_,g){if(_.name.print(g),_.value){g.space(),g.print("="),g.space();var C=g.parent(1),R=C instanceof En||C instanceof zn;h(_.value,g,R)}}),t(je,function(_,g){_.expression.print(g),!(_ instanceof rr&&_.args.length===0)&&((_.expression instanceof je||_.expression instanceof Ge)&&g.add_mapping(_.start),_.optional&&g.print("?."),g.with_parens(function(){_.args.forEach(function(C,R){R&&g.comma(),C.print(g)})}))}),t(rr,function(_,g){g.print("new"),g.space(),je.prototype._codegen(_,g)}),lt.DEFMETHOD("_do_print",function(_){this.expressions.forEach(function(g,C){C>0&&(_.comma(),_.should_break()&&(_.newline(),_.indent())),g.print(_)})}),t(lt,function(_,g){_._do_print(g)}),t(zt,function(_,g){var C=_.expression;C.print(g);var R=_.property,D=to.has(R)?g.option("ie8"):!qp(R,g.option("ecma")>=2015&&!g.option("safari10"));_.optional&&g.print("?."),D?(g.print("["),g.add_mapping(_.end),g.print_string(R),g.print("]")):(C instanceof Je&&C.getValue()>=0&&(/[xa-f.)]/i.test(g.last())||g.print(".")),_.optional||g.print("."),g.add_mapping(_.end),g.print_name(R))}),t($r,function(_,g){var C=_.expression;C.print(g);var R=_.property;_.optional&&g.print("?"),g.print(".#"),g.add_mapping(_.end),g.print_name(R)}),t(Sn,function(_,g){_.expression.print(g),_.optional&&g.print("?."),g.print("["),_.property.print(g),g.print("]")}),t(_n,function(_,g){_.expression.print(g)}),t(We,function(_,g){var C=_.operator;C==="--"&&g.last().endsWith("!")&&g.print(" "),g.print(C),(/^[a-z]/i.test(C)||/[+-]$/.test(C)&&_.expression instanceof We&&/^[+-]/.test(_.expression.operator))&&g.space(),_.expression.print(g)}),t(Ui,function(_,g){_.expression.print(g),g.print(_.operator)}),t(ae,function(_,g){var C=_.operator;_.left.print(g),C[0]==">"&&g.last().endsWith("--")?g.print(" "):g.space(),g.print(C),g.space(),_.right.print(g)}),t(tt,function(_,g){_.condition.print(g),g.space(),g.print("?"),g.space(),_.consequent.print(g),g.space(),g.colon(),_.alternative.print(g)}),t(St,function(_,g){g.with_square(function(){var C=_.elements,R=C.length;R>0&&g.space(),C.forEach(function(D,B){B&&g.comma(),D.print(g),B===R-1&&D instanceof Nr&&g.comma()}),R>0&&g.space()})}),t(Nt,function(_,g){_.properties.length>0?g.with_block(function(){_.properties.forEach(function(C,R){R&&(g.print(","),g.newline()),g.indent(),C.print(g)}),g.newline()}):i(_,g)}),t(yt,function(_,g){if(g.print("class"),g.space(),_.name&&(_.name.print(g),g.space()),_.extends){var C=!(_.extends instanceof Ae)&&!(_.extends instanceof Xe)&&!(_.extends instanceof Ei)&&!(_.extends instanceof Ft);g.print("extends"),C?g.print("("):g.space(),_.extends.print(g),C?g.print(")"):g.space()}_.properties.length>0?g.with_block(function(){_.properties.forEach(function(R,D){D&&g.newline(),g.indent(),R.print(g)}),g.newline()}):g.print("{}")}),t(Xo,function(_,g){g.print("new.target")});function y(_,g,C){if(C.option("quote_keys"))return C.print_string(_),!1;if(""+ +_==_&&_>=0)return C.option("keep_numbers")?(C.print(_),!1):(C.print(U(_)),!1);var R=to.has(_)?C.option("ie8"):C.option("ecma")<2015||C.option("safari10")?!xu(_):!qp(_,!0);return R||g&&C.option("keep_quoted_props")?(C.print_string(_,g),!1):(C.print_name(_),!0)}t(Yt,function(_,g){function C(D){var B=D.definition();return B?B.mangled_name||B.name:D.name}const R=g.option("shorthand")&&!(_.key instanceof xe);R&&_.value instanceof pt&&C(_.value)===_.key&&!to.has(_.key)?y(_.key,_.quote,g)||(g.colon(),_.value.print(g)):R&&_.value instanceof wr&&_.value.left instanceof pt&&C(_.value.left)===_.key?(y(_.key,_.quote,g)||(g.colon(),_.value.left.print(g)),g.space(),g.print("="),g.space(),_.value.right.print(g)):(_.key instanceof xe?g.with_square(function(){_.key.print(g)}):y(_.key,_.quote,g),g.colon(),_.value.print(g))}),t(vi,(_,g)=>{_.static&&(g.print("static"),g.space()),g.print("#"),y(_.key.name,_.quote,g),_.value&&(g.print("="),_.value.print(g)),g.semicolon()}),t(lr,(_,g)=>{_.static&&(g.print("static"),g.space()),_.key instanceof $i?y(_.key.name,_.quote,g):(g.print("["),_.key.print(g),g.print("]")),_.value&&(g.print("="),_.value.print(g)),g.semicolon()}),un.DEFMETHOD("_print_getter_setter",function(_,g,C){var R=this;R.static&&(C.print("static"),C.space()),_&&(C.print(_),C.space()),R.key instanceof Un?(g&&C.print("#"),y(R.key.name,R.quote,C),R.key.add_source_map(C)):C.with_square(function(){R.key.print(C)}),R.value._do_print(C,!0)}),t(ni,function(_,g){_._print_getter_setter("set",!1,g)}),t(Hr,function(_,g){_._print_getter_setter("get",!1,g)}),t(gi,function(_,g){_._print_getter_setter("set",!0,g)}),t(ti,function(_,g){_._print_getter_setter("get",!0,g)}),t(bi,function(_,g){var C;_.is_generator&&_.async?C="async*":_.is_generator?C="*":_.async&&(C="async"),_._print_getter_setter(C,!0,g)}),t(ri,function(_,g){_.key.print(g),g.space(),g.print("in"),g.space(),_.value.print(g)}),t(ds,function(_,g){g.print("#"+_.name)}),t(Mn,function(_,g){var C;_.is_generator&&_.async?C="async*":_.is_generator?C="*":_.async&&(C="async"),_._print_getter_setter(C,!1,g)}),t(qn,function(_,g){g.print("static"),g.space(),s(_,g)}),pt.DEFMETHOD("_do_print",function(_){var g=this.definition();_.print_name(g?g.mangled_name||g.name:this.name)}),t(pt,function(_,g){_._do_print(g)}),t(Nr,mr),t(Vn,function(_,g){g.print("this")}),t(Jo,function(_,g){g.print("super")}),t(Tt,function(_,g){g.print(_.getValue())}),t(dt,function(_,g){g.print_string(_.getValue(),_.quote,g.in_directive)}),t(Je,function(_,g){(g.option("keep_numbers")||g.use_asm)&&_.raw?g.print(_.raw):g.print(U(_.getValue()))}),t(oi,function(_,g){g.print(_.getValue()+"n")});const E=/(<\s*\/\s*script)/i,T=/^\s*script/i,O=(_,g)=>g.replace("/","\\/");t(fr,function(_,g){let{source:C,flags:R}=_.getValue();C=yu(C),R=R?oy(R):"",C=C.replace(E,O),T.test(C)&&g.last().endsWith("<")&&g.print(" "),g.print(g.to_utf8(`/${C}/${R}`,!1,!0));const D=g.parent();D instanceof ae&&/^\w/.test(D.operator)&&D.left===_&&g.print(" ")});function A(_,g){g.option("braces")?L(_,g):!_||_ instanceof Rt?g.force_semicolon():_ instanceof Zr||_ instanceof Qr||_ instanceof yt?L(_,g):_.print(g)}function I(_){for(var g=_[0],C=g.length,R=1;R<_.length;++R)_[R].length<C&&(g=_[R],C=g.length);return g}function U(_){var g=_.toString(10).replace(/^0\./,".").replace("e+","e"),C=[g];Math.floor(_)===_&&(_<0?C.push("-0x"+(-_).toString(16).toLowerCase()):C.push("0x"+_.toString(16).toLowerCase()));var R,D,B;return(R=/^\.0+/.exec(g))?(D=R[0].length,B=g.slice(D),C.push(B+"e-"+(B.length+D-1))):(R=/0+$/.exec(g))?(D=R[0].length,C.push(g.slice(0,-D)+"e"+D)):(R=/^(\d)\.(\d+)e(-?\d+)$/.exec(g))&&C.push(R[1]+R[2]+"e"+(R[3]-R[2].length)),I(C)}function L(_,g){!_||_ instanceof Rt?g.print("{}"):_ instanceof Ye?_.print(g):g.with_block(function(){g.indent(),_.print(g),g.newline()})}function b(_,g){_.forEach(function(C){C.DEFMETHOD("add_source_map",g)})}b([xe,Zn,Kt],mr),b([St,Ye,Jr,yt,Tt,Pi,sn,nr,Wo,fs,Ge,rr,Nt,bo,pt,Xn,Mi,Wn,yi,br],function(_){_.add_mapping(this.start)}),b([Hr,ni,ti,gi,Mn,bi],function(_){_.add_mapping(this.start,!1)}),b([Un,ds],function(_){const g=this.end&&this.end.type;g==="name"||g==="privatename"?_.add_mapping(this.end,this.name):_.add_mapping(this.end)}),b([un],function(_){_.add_mapping(this.start,this.key)})})();const sd=(t,e)=>t===null&&e===null||t.TYPE===e.TYPE&&t.shallow_cmp(e),Cy=(t,e)=>{if(!sd(t,e))return!1;const n=[t],i=[e],s=n.push.bind(n),f=i.push.bind(i);for(;n.length&&i.length;){const h=n.pop(),y=i.pop();if(!sd(h,y)||(h._children_backwards(s),y._children_backwards(f),n.length!==i.length))return!1}return n.length==0&&i.length==0},It=()=>!0;xe.prototype.shallow_cmp=function(){throw new Error("did not find a shallow_cmp function for "+this.constructor.name)},Pi.prototype.shallow_cmp=It,nr.prototype.shallow_cmp=function(t){return this.value===t.value},$e.prototype.shallow_cmp=It,vn.prototype.shallow_cmp=It,Rt.prototype.shallow_cmp=It,Zn.prototype.shallow_cmp=function(t){return this.label.name===t.label.name},_i.prototype.shallow_cmp=It,Fi.prototype.shallow_cmp=It,En.prototype.shallow_cmp=function(t){return(this.init==null?t.init==null:this.init===t.init)&&(this.condition==null?t.condition==null:this.condition===t.condition)&&(this.step==null?t.step==null:this.step===t.step)},zn.prototype.shallow_cmp=It,vo.prototype.shallow_cmp=It,_r.prototype.shallow_cmp=It,Kt.prototype.shallow_cmp=It,ht.prototype.shallow_cmp=It,Ge.prototype.shallow_cmp=function(t){return this.is_generator===t.is_generator&&this.async===t.async},Vt.prototype.shallow_cmp=function(t){return this.is_array===t.is_array},jr.prototype.shallow_cmp=It,Wn.prototype.shallow_cmp=It,yi.prototype.shallow_cmp=function(t){return this.value===t.value},fs.prototype.shallow_cmp=It,qr.prototype.shallow_cmp=It,yr.prototype.shallow_cmp=It,gr.prototype.shallow_cmp=function(t){return this.is_star===t.is_star},wt.prototype.shallow_cmp=function(t){return this.alternative==null?t.alternative==null:this.alternative===t.alternative},Xn.prototype.shallow_cmp=It,Mi.prototype.shallow_cmp=It,br.prototype.shallow_cmp=function(t){return this.body===t.body&&(this.bcatch==null?t.bcatch==null:this.bcatch===t.bcatch)&&(this.bfinally==null?t.bfinally==null:this.bfinally===t.bfinally)},Jr.prototype.shallow_cmp=function(t){return this.argname==null?t.argname==null:this.argname===t.argname},Wo.prototype.shallow_cmp=It,sn.prototype.shallow_cmp=It,Lt.prototype.shallow_cmp=function(t){return this.value==null?t.value==null:this.value===t.value},ei.prototype.shallow_cmp=It,Rr.prototype.shallow_cmp=function(t){return(this.imported_name==null?t.imported_name==null:this.imported_name===t.imported_name)&&(this.imported_names==null?t.imported_names==null:this.imported_names===t.imported_names)},Bi.prototype.shallow_cmp=It,Cn.prototype.shallow_cmp=function(t){return(this.exported_definition==null?t.exported_definition==null:this.exported_definition===t.exported_definition)&&(this.exported_value==null?t.exported_value==null:this.exported_value===t.exported_value)&&(this.exported_names==null?t.exported_names==null:this.exported_names===t.exported_names)&&this.module_name===t.module_name&&this.is_default===t.is_default},je.prototype.shallow_cmp=It,lt.prototype.shallow_cmp=It,Xe.prototype.shallow_cmp=It,_n.prototype.shallow_cmp=It,zt.prototype.shallow_cmp=function(t){return this.property===t.property},$r.prototype.shallow_cmp=function(t){return this.property===t.property},Wt.prototype.shallow_cmp=function(t){return this.operator===t.operator},ae.prototype.shallow_cmp=function(t){return this.operator===t.operator},tt.prototype.shallow_cmp=It,St.prototype.shallow_cmp=It,Nt.prototype.shallow_cmp=It,un.prototype.shallow_cmp=It,Yt.prototype.shallow_cmp=function(t){return this.key===t.key},ni.prototype.shallow_cmp=function(t){return this.static===t.static},Hr.prototype.shallow_cmp=function(t){return this.static===t.static},Mn.prototype.shallow_cmp=function(t){return this.static===t.static&&this.is_generator===t.is_generator&&this.async===t.async},yt.prototype.shallow_cmp=function(t){return(this.name==null?t.name==null:this.name===t.name)&&(this.extends==null?t.extends==null:this.extends===t.extends)},lr.prototype.shallow_cmp=function(t){return this.static===t.static},pt.prototype.shallow_cmp=function(t){return this.name===t.name},Xo.prototype.shallow_cmp=It,Vn.prototype.shallow_cmp=It,Jo.prototype.shallow_cmp=It,dt.prototype.shallow_cmp=function(t){return this.value===t.value},Je.prototype.shallow_cmp=function(t){return this.value===t.value},oi.prototype.shallow_cmp=function(t){return this.value===t.value},fr.prototype.shallow_cmp=function(t){return this.value.flags===t.value.flags&&this.value.source===t.value.source},io.prototype.shallow_cmp=It;const Pu=1,Dy=2;let Zo=null,Qo=null,ea=null;class ta{constructor(e,n,i){this.name=n.name,this.orig=[n],this.init=i,this.eliminated=0,this.assignments=0,this.scope=e,this.replaced=0,this.global=!1,this.export=0,this.mangled_name=null,this.undeclared=!1,this.id=ta.next_id++,this.chained=!1,this.direct_access=!1,this.escaped=0,this.recursive_refs=0,this.references=[],this.should_replace=void 0,this.single_use=!1,this.fixed=!1,Object.seal(this)}fixed_value(){return!this.fixed||this.fixed instanceof xe?this.fixed:this.fixed()}unmangleable(e){return e||(e={}),Zo&&Zo.has(this.id)&&zo(e.keep_fnames,this.orig[0].name)?!0:this.global&&!e.toplevel||this.export&Pu||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof ii||this.orig[0]instanceof Si)&&zo(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof Un||(this.orig[0]instanceof Nu||this.orig[0]instanceof wu)&&zo(e.keep_classnames,this.orig[0].name)}mangle(e){const n=e.cache&&e.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var i=this.scope,s=this.orig[0];e.ie8&&s instanceof ii&&(i=i.parent_scope);const f=Bl(this);this.mangled_name=f?f.mangled_name||f.name:i.next_mangled(e,this),this.global&&n&&n.set(this.name,this.mangled_name)}}}ta.next_id=1;function Bl(t){if(t.orig[0]instanceof Kr&&t.scope.is_block_scope())return t.scope.get_defun_scope().variables.get(t.name)}qe.DEFMETHOD("figure_out_scope",function(t,{parent_scope:e=null,toplevel:n=this}={}){if(t=mi(t,{cache:null,ie8:!1,safari10:!1,module:!1}),!(n instanceof Kt))throw new Error("Invalid toplevel scope");var i=this.parent_scope=e,s=new Map,f=null,h=null,y=[],O=new Pn((A,I)=>{if(A.is_block_scope()){const D=i;if(A.block_scope=i=new qe(A),i._block_scope=!0,i.init_scope_vars(D),i.uses_with=D.uses_with,i.uses_eval=D.uses_eval,t.safari10&&(A instanceof En||A instanceof zn||A instanceof vo)&&y.push(i),A instanceof Xn){const B=i;i=D,A.expression.walk(O),i=B;for(let X=0;X<A.body.length;X++)A.body[X].walk(O)}else I();return i=D,!0}if(A instanceof Vt){const D=h;return h=A,I(),h=D,!0}if(A instanceof qe){A.init_scope_vars(i);var U=i,L=f,b=s;return f=i=A,s=new Map,I(),i=U,f=L,s=b,!0}if(A instanceof Zn){var _=A.label;if(s.has(_.name))throw new Error(mu("Label {name} defined twice",_));return s.set(_.name,_),I(),s.delete(_.name),!0}if(A instanceof _r){for(var g=i;g;g=g.parent_scope)g.uses_with=!0;return}if(A instanceof pt&&(A.scope=i),A instanceof ps&&(A.thedef=A,A.references=[]),A instanceof ii)f.def_function(A,A.name=="arguments"?void 0:f);else if(A instanceof Si){const D=f.parent_scope;A.scope=O.directives["use strict"]?D:D.get_defun_scope(),E(A.scope.def_function(A,f),1)}else if(A instanceof Nu)E(f.def_variable(A,f),1);else if(A instanceof Yo)i.def_variable(A);else if(A instanceof wu)E((A.scope=f.parent_scope).def_function(A,f),1);else if(A instanceof Vi||A instanceof qo||A instanceof ro||A instanceof Kr){var C;if(A instanceof ji?C=i.def_variable(A,null):C=f.def_variable(A,A.TYPE=="SymbolVar"?null:void 0),C.orig.every(D=>D===A?!0:A instanceof ji?D instanceof ii:!(D instanceof qo||D instanceof ro))||Ou(`"${A.name}" is redeclared`,A.start.file,A.start.line,A.start.col,A.start.pos),A instanceof Nn||E(C,2),f!==i){A.mark_enclosed();var C=i.find_variable(A);A.thedef!==C&&(A.thedef=C,A.reference())}}else if(A instanceof Pl){var R=s.get(A.name);if(!R)throw new Error(mu("Undefined label {name} [{line},{col}]",{name:A.name,line:A.start.line,col:A.start.col}));A.thedef=R}!(i instanceof Kt)&&(A instanceof Cn||A instanceof Rr)&&Ou(`"${A.TYPE}" statement may only appear at the top level`,A.start.file,A.start.line,A.start.col,A.start.pos)});t.module&&(O.directives["use strict"]=!0),this.walk(O);function E(A,I){if(h){var U=0;do I++;while(O.parent(U++)!==h)}var L=O.parent(I);if(A.export=L instanceof Cn?Pu:0){var b=L.exported_definition;(b instanceof Qt||b instanceof Gr)&&L.is_default&&(A.export=Dy)}}this instanceof Kt&&(this.globals=new Map);var O=new Pn(A=>{if(A instanceof qr&&A.label)return A.label.thedef.references.push(A),!0;if(A instanceof Ae){var I=A.name;if(I=="eval"&&O.parent()instanceof je)for(var U=A.scope;U&&!U.uses_eval;U=U.parent_scope)U.uses_eval=!0;var L;return O.parent()instanceof ei&&O.parent(1).module_name||!(L=A.scope.find_variable(I))?(L=n.def_global(A),A instanceof To&&(L.export=Pu)):L.scope instanceof Ge&&I=="arguments"&&(L.scope.get_defun_scope().uses_arguments=!0),A.thedef=L,A.reference(),A.scope.is_block_scope()&&!(L.orig[0]instanceof ji)&&(A.scope=A.scope.get_defun_scope()),!0}var b;if(A instanceof Kr&&(b=Bl(A.definition())))for(var U=A.scope;U&&(yo(U.enclosed,b),U!==b.scope);)U=U.parent_scope});if(this.walk(O),(t.ie8||t.safari10)&&In(this,A=>{if(A instanceof Kr){var I=A.name,U=A.thedef.references,L=A.scope.get_defun_scope(),b=L.find_variable(I)||n.globals.get(I)||L.def_variable(A);return U.forEach(function(_){_.thedef=b,_.reference()}),A.thedef=b,A.reference(),!0}}),t.safari10)for(const A of y)A.parent_scope.variables.forEach(function(I){yo(A.enclosed,I)})}),Kt.DEFMETHOD("def_global",function(t){var e=this.globals,n=t.name;if(e.has(n))return e.get(n);var i=new ta(this,t);return i.undeclared=!0,i.global=!0,e.set(n,i),i}),qe.DEFMETHOD("init_scope_vars",function(t){this.variables=new Map,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=t,this.enclosed=[],this.cname=-1}),qe.DEFMETHOD("conflicting_def",function(t){return this.enclosed.find(e=>e.name===t)||this.variables.has(t)||this.parent_scope&&this.parent_scope.conflicting_def(t)}),qe.DEFMETHOD("conflicting_def_shallow",function(t){return this.enclosed.find(e=>e.name===t)||this.variables.has(t)}),qe.DEFMETHOD("add_child_scope",function(t){if(t.parent_scope===this)return;t.parent_scope=this,t instanceof qt&&!this.uses_arguments&&(this.uses_arguments=In(t,s=>{if(s instanceof Ae&&s.scope instanceof Ge&&s.name==="arguments")return pr;if(s instanceof Ge&&!(s instanceof qt))return!0})),this.uses_with=this.uses_with||t.uses_with,this.uses_eval=this.uses_eval||t.uses_eval;const e=(()=>{const s=[];let f=this;do s.push(f);while(f=f.parent_scope);return s.reverse(),s})(),n=new Set(t.enclosed),i=[];for(const s of e){i.forEach(f=>yo(s.enclosed,f));for(const f of s.variables.values())n.has(f)&&(yo(i,f),yo(s.enclosed,f))}});function ky(t){const e=new Set;for(const n of new Set(t))(function i(s){s==null||e.has(s)||(e.add(s),i(s.parent_scope))})(n);return[...e]}qe.DEFMETHOD("create_symbol",function(t,{source:e,tentative_name:n,scope:i,conflict_scopes:s=[i],init:f=null}={}){let h;if(s=ky(s),n){n=h=n.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/ig,"_");let E=0;for(;s.find(T=>T.conflicting_def_shallow(h));)h=n+"$"+E++}if(!h)throw new Error("No symbol name could be generated in create_symbol()");const y=P(t,e,{name:h,scope:i});return this.def_variable(y,f||null),y.mark_enclosed(),y}),xe.DEFMETHOD("is_block_scope",vt),yt.DEFMETHOD("is_block_scope",vt),Ge.DEFMETHOD("is_block_scope",vt),Kt.DEFMETHOD("is_block_scope",vt),Mi.DEFMETHOD("is_block_scope",vt),vn.DEFMETHOD("is_block_scope",er),qe.DEFMETHOD("is_block_scope",function(){return this._block_scope||!1}),Vr.DEFMETHOD("is_block_scope",er),Ge.DEFMETHOD("init_scope_vars",function(){qe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new Nn({name:"arguments",start:this.start,end:this.end}))}),qt.DEFMETHOD("init_scope_vars",function(){qe.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1}),pt.DEFMETHOD("mark_enclosed",function(){for(var t=this.definition(),e=this.scope;e&&(yo(e.enclosed,t),e!==t.scope);)e=e.parent_scope}),pt.DEFMETHOD("reference",function(){this.definition().references.push(this),this.mark_enclosed()}),qe.DEFMETHOD("find_variable",function(t){return t instanceof pt&&(t=t.name),this.variables.get(t)||this.parent_scope&&this.parent_scope.find_variable(t)}),qe.DEFMETHOD("def_function",function(t,e){var n=this.def_variable(t,e);return(!n.init||n.init instanceof Qt)&&(n.init=e),n}),qe.DEFMETHOD("def_variable",function(t,e){var n=this.variables.get(t.name);return n?(n.orig.push(t),n.init&&(n.scope!==t.scope||n.init instanceof Ft)&&(n.init=e)):(n=new ta(this,t,e),this.variables.set(t.name,n),n.global=!this.parent_scope),t.thedef=n});function Ul(t,e){let n;ea&&(n=t.get_defun_scope())&&ea.has(n)&&(t=n);var i=t.enclosed,s=e.nth_identifier;e:for(;;){var f=s.get(++t.cname);if(!to.has(f)&&!e.reserved.has(f)){if(Qo&&Qo.has(f))continue e;for(let h=i.length;--h>=0;){const y=i[h],E=y.mangled_name||y.unmangleable(e)&&y.name;if(f==E)continue e}return f}}}qe.DEFMETHOD("next_mangled",function(t){return Ul(this,t)}),Kt.DEFMETHOD("next_mangled",function(t){let e;const n=this.mangled_names;do e=Ul(this,t);while(n.has(e));return e}),Ft.DEFMETHOD("next_mangled",function(t,e){for(var n=e.orig[0]instanceof Nn&&this.name&&this.name.definition(),i=n?n.mangled_name||n.name:null;;){var s=Ul(this,t);if(!i||i!=s)return s}}),pt.DEFMETHOD("unmangleable",function(t){var e=this.definition();return!e||e.unmangleable(t)}),ps.DEFMETHOD("unmangleable",vt),pt.DEFMETHOD("unreferenced",function(){return!this.definition().references.length&&!this.scope.pinned()}),pt.DEFMETHOD("definition",function(){return this.thedef}),pt.DEFMETHOD("global",function(){return this.thedef.global});function Fu(t){return t=mi(t,{eval:!1,nth_identifier:gs,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,reserved:[],toplevel:!1}),t.module&&(t.toplevel=!0),!Array.isArray(t.reserved)&&!(t.reserved instanceof Set)&&(t.reserved=[]),t.reserved=new Set(t.reserved),t.reserved.add("arguments"),t}Kt.DEFMETHOD("mangle_names",function(t){t=Fu(t);var e=t.nth_identifier,n=-1,i=[];t.keep_fnames&&(Zo=new Set);const s=this.mangled_names=new Set;Qo=new Set,t.cache&&(this.globals.forEach(h),t.cache.props&&t.cache.props.forEach(function(y){s.add(y)}));var f=new Pn(function(y,E){if(y instanceof Zn){var T=n;return E(),n=T,!0}if(y instanceof Qt&&!(f.parent()instanceof qe)&&(ea=ea||new Set,ea.add(y.parent_scope.get_defun_scope())),y instanceof qe){y.variables.forEach(h);return}if(y.is_block_scope()){y.block_scope.variables.forEach(h);return}if(Zo&&y instanceof Lt&&y.value instanceof Ge&&!y.value.name&&zo(t.keep_fnames,y.name.name)){Zo.add(y.name.definition().id);return}if(y instanceof ps){let O;do O=e.get(++n);while(to.has(O));return y.mangled_name=O,!0}if(!(t.ie8||t.safari10)&&y instanceof Kr){i.push(y.definition());return}});this.walk(f),(t.keep_fnames||t.keep_classnames)&&i.forEach(y=>{y.name.length<6&&y.unmangleable(t)&&Qo.add(y.name)}),i.forEach(y=>{y.mangle(t)}),Zo=null,Qo=null,ea=null;function h(y){y.export&Pu?Qo.add(y.name):t.reserved.has(y.name)||i.push(y)}}),Kt.DEFMETHOD("find_colliding_names",function(t){const e=t.cache&&t.cache.props,n=new Set;return t.reserved.forEach(i),this.globals.forEach(s),this.walk(new Pn(function(f){f instanceof qe&&f.variables.forEach(s),f instanceof Kr&&s(f.definition())})),n;function i(f){n.add(f)}function s(f){var h=f.name;if(f.global&&e&&e.has(h))h=e.get(h);else if(!f.unmangleable(t))return;i(h)}}),Kt.DEFMETHOD("expand_names",function(t){t=Fu(t);var e=t.nth_identifier;e.reset&&e.sort&&(e.reset(),e.sort());var n=this.find_colliding_names(t),i=0;this.globals.forEach(f),this.walk(new Pn(function(h){h instanceof qe&&h.variables.forEach(f),h instanceof Kr&&f(h.definition())}));function s(){var h;do h=e.get(i++);while(n.has(h)||to.has(h));return h}function f(h){if(h.global&&t.cache||h.unmangleable(t)||t.reserved.has(h.name))return;const y=Bl(h),E=h.name=y?y.name:s();h.orig.forEach(function(T){T.name=E}),h.references.forEach(function(T){T.name=E})}}),xe.DEFMETHOD("tail_node",_o),lt.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),Kt.DEFMETHOD("compute_char_frequency",function(t){t=Fu(t);var e=t.nth_identifier;if(!e.reset||!e.consider||!e.sort)return;e.reset();try{xe.prototype.print=function(i,s){this._print(i,s),this instanceof pt&&!this.unmangleable(t)?e.consider(this.name,-1):t.properties&&(this instanceof $r?e.consider("#"+this.property,-1):this instanceof zt?e.consider(this.property,-1):this instanceof Sn&&n(this.property))},e.consider(this.print_to_string(),1)}finally{xe.prototype.print=xe.prototype._print}e.sort();function n(i){i instanceof dt?e.consider(i.value,-1):i instanceof tt?(n(i.consequent),n(i.alternative)):i instanceof lt&&n(i.tail_node())}});const gs=(()=>{const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),e="0123456789".split("");let n,i;function s(){i=new Map,t.forEach(function(T){i.set(T,0)}),e.forEach(function(T){i.set(T,0)})}function f(T,O){for(var A=T.length;--A>=0;)i.set(T[A],i.get(T[A])+O)}function h(T,O){return i.get(O)-i.get(T)}function y(){n=jp(t,h).concat(jp(e,h))}s(),y();function E(T){var O="",A=54;T++;do T--,O+=n[T%A],T=Math.floor(T/A),A=64;while(T>0);return O}return{get:E,consider:f,reset:s,sort:y}})();let Lu;xe.prototype.size=function(t,e){Lu=t&&t._mangle_options;let n=0;return rd(this,(i,s)=>{if(n+=i._size(s),i instanceof qt&&i.is_braceless())return n+=i.body[0].value._size(s),!0},e||t&&t.stack),Lu=void 0,n},xe.prototype._size=()=>0,Pi.prototype._size=()=>8,nr.prototype._size=function(){return 2+this.value.length};const tn=t=>t.length&&t.length-1;vn.prototype._size=function(){return 2+tn(this.body)},Kt.prototype._size=function(){return tn(this.body)},Rt.prototype._size=()=>1,Zn.prototype._size=()=>2,_i.prototype._size=()=>9,Fi.prototype._size=()=>7,En.prototype._size=()=>8,zn.prototype._size=()=>8,_r.prototype._size=()=>6,ht.prototype._size=()=>3;const bs=t=>(t.is_generator?1:0)+(t.async?6:0);Li.prototype._size=function(){return bs(this)+4+tn(this.argnames)+tn(this.body)},Ft.prototype._size=function(t){return!!ai(t)*2+bs(this)+12+tn(this.argnames)+tn(this.body)},Qt.prototype._size=function(){return bs(this)+13+tn(this.argnames)+tn(this.body)},qt.prototype._size=function(){let t=2+tn(this.argnames);this.argnames.length===1&&this.argnames[0]instanceof pt||(t+=2);const e=this.is_braceless()?0:tn(this.body)+2;return bs(this)+t+e},Vt.prototype._size=()=>2,Wn.prototype._size=function(){return 2+Math.floor(this.segments.length/2)*3},yi.prototype._size=function(){return this.value.length},an.prototype._size=function(){return this.value?7:6},hs.prototype._size=()=>6,kr.prototype._size=function(){return this.label?6:5},no.prototype._size=function(){return this.label?9:8},wt.prototype._size=()=>4,Xn.prototype._size=function(){return 8+tn(this.body)},Yr.prototype._size=function(){return 5+tn(this.body)},Eo.prototype._size=function(){return 8+tn(this.body)},br.prototype._size=()=>3,Jr.prototype._size=function(){let t=7+tn(this.body);return this.argname&&(t+=2),t},Wo.prototype._size=function(){return 7+tn(this.body)},Rn.prototype._size=function(){return 4+tn(this.definitions)},Zr.prototype._size=function(){return 4+tn(this.definitions)},Qr.prototype._size=function(){return 6+tn(this.definitions)},Lt.prototype._size=function(){return this.value?1:0},ei.prototype._size=function(){return this.name?4:0},Rr.prototype._size=function(){let t=6;return this.imported_name&&(t+=1),(this.imported_name||this.imported_names)&&(t+=5),this.imported_names&&(t+=2+tn(this.imported_names)),t},Bi.prototype._size=()=>11,Cn.prototype._size=function(){let t=7+(this.is_default?8:0);return this.exported_value&&(t+=this.exported_value._size()),this.exported_names&&(t+=2+tn(this.exported_names)),this.module_name&&(t+=5),t},je.prototype._size=function(){return this.optional?4+tn(this.args):2+tn(this.args)},rr.prototype._size=function(){return 6+tn(this.args)},lt.prototype._size=function(){return tn(this.expressions)},zt.prototype._size=function(){return this.optional?this.property.length+2:this.property.length+1},$r.prototype._size=function(){return this.optional?this.property.length+3:this.property.length+2},Sn.prototype._size=function(){return this.optional?4:2},Wt.prototype._size=function(){return this.operator==="typeof"?7:this.operator==="void"?5:this.operator.length},ae.prototype._size=function(t){if(this.operator==="in")return 4;let e=this.operator.length;return(this.operator==="+"||this.operator==="-")&&this.right instanceof Wt&&this.right.operator===this.operator&&(e+=1),this.needs_parens(t)&&(e+=2),e},tt.prototype._size=()=>3,St.prototype._size=function(){return 2+tn(this.elements)},Nt.prototype._size=function(t){let e=2;return ai(t)&&(e+=2),e+tn(this.properties)};const Mu=t=>typeof t=="string"?t.length:0;Yt.prototype._size=function(){return Mu(this.key)+1};const Bu=t=>t?7:0;Hr.prototype._size=function(){return 5+Bu(this.static)+Mu(this.key)},ni.prototype._size=function(){return 5+Bu(this.static)+Mu(this.key)},Mn.prototype._size=function(){return Bu(this.static)+Mu(this.key)+bs(this)},bi.prototype._size=function(){return Mn.prototype._size.call(this)+1},ti.prototype._size=gi.prototype._size=function(){return Mn.prototype._size.call(this)+4},ri.prototype._size=function(){return 5},yt.prototype._size=function(){return(this.name?8:7)+(this.extends?8:0)},qn.prototype._size=function(){return 8+tn(this.body)},lr.prototype._size=function(){return Bu(this.static)+(typeof this.key=="string"?this.key.length+2:0)+(this.value?1:0)},vi.prototype._size=function(){return lr.prototype._size.call(this)+1},pt.prototype._size=function(){return Lu&&this.thedef&&!this.thedef.unmangleable(Lu)?1:this.name.length},$i.prototype._size=function(){return this.name.length},Ae.prototype._size=wn.prototype._size=function(){return this.name==="arguments"?9:pt.prototype._size.call(this)},Xo.prototype._size=()=>10,So.prototype._size=function(){return this.name.length},Ti.prototype._size=function(){return this.name.length},Vn.prototype._size=()=>4,Jo.prototype._size=()=>5,dt.prototype._size=function(){return this.value.length+2},Je.prototype._size=function(){const{value:t}=this;return t===0?1:t>0&&Math.floor(t)===t?Math.floor(Math.log10(t)+1):t.toString().length},oi.prototype._size=function(){return this.value.length},fr.prototype._size=function(){return this.value.toString().length},hr.prototype._size=()=>4,ms.prototype._size=()=>3,en.prototype._size=()=>6,Nr.prototype._size=()=>0,oo.prototype._size=()=>8,vr.prototype._size=()=>4,Hi.prototype._size=()=>5,yr.prototype._size=()=>6,gr.prototype._size=()=>6;const ao=1,Vl=2,jl=4,$l=8,vs=16,na=32,xo=256,Hl=512,Gl=1024,Ry=xo|Hl|Gl,jn=(t,e)=>t.flags&e,Er=(t,e)=>{t.flags|=e},ra=(t,e)=>{t.flags&=~e};function Kl(t,e){return e instanceof lt?t.push(...e.expressions):t.push(e),t}function nt(t,e){if(e.length==1)return e[0];if(e.length==0)throw new Error("trying to create a sequence with length zero!");return P(lt,t,{expressions:e.reduce(Kl,[])})}function ir(t,e){switch(typeof t){case"string":return P(dt,e,{value:t});case"number":return isNaN(t)?P(ms,e):isFinite(t)?1/t<0?P(We,e,{operator:"-",expression:P(Je,e,{value:-t})}):P(Je,e,{value:t}):t<0?P(We,e,{operator:"-",expression:P(oo,e)}):P(oo,e);case"bigint":return P(oi,e,{value:t.toString()});case"boolean":return P(t?vr:Hi,e);case"undefined":return P(en,e);default:if(t===null)return P(hr,e,{value:null});if(t instanceof RegExp)return P(fr,e,{value:{source:yu(t.source),flags:t.flags}});throw new Error(mu("Can't handle constant of type: {type}",{type:typeof t}))}}function Ki(t,e){return t.size()>e.size()?e:t}function wy(t,e){return Ki(P($e,t,{body:t}),P($e,e,{body:e})).body}function Sr(t,e,n){return ai(t)?wy(e,n):Ki(e,n)}function ud(t){if(t instanceof Tt)return t.getValue();if(!(t instanceof We&&t.operator=="void"&&t.expression instanceof Tt))return t}function cd(t,e){if(e=ud(e),!(e instanceof xe)){var n;if(t instanceof St){var i=t.elements;if(e=="length")return ir(i.length,t);typeof e=="number"&&e in i&&(n=i[e])}else if(t instanceof Nt){e=""+e;for(var s=t.properties,f=s.length;--f>=0;){var h=s[f];if(!(h instanceof Yt))return;!n&&s[f].key===e&&(n=s[f].value)}}return n instanceof Ae&&n.fixed_value()||n}}function zl(t,e){var n=!1,i=new Pn(function(s){if(n||s instanceof qe)return!0;if(s instanceof qr&&i.loopcontrol_target(s)===t)return n=!0});return e instanceof Zn&&i.push(e),i.push(t),t.body.walk(i),n}function Oo(t,e,n){if(t instanceof We&&t.operator=="delete"||t instanceof je&&t.expression===e&&(n instanceof _n||n instanceof Xe||n instanceof Ae&&n.name=="eval")){const i=P(Je,e,{value:0});return nt(e,[i,n])}else return n}function Uu(t){return t instanceof qt||t instanceof Ft}function Wl(t){return t.TYPE!="Call"?!1:t.expression instanceof Ft||Wl(t.expression)}function so(t){return t===null||t instanceof Rt?!0:t instanceof Ye?t.body.length==0:!1}const ld=Ot("Infinity NaN undefined");function fd(t){return t instanceof oo||t instanceof ms||t instanceof en}function Xl(t,e){if(!(t instanceof Ae))return!1;for(var n=t.definition().orig,i=n.length;--i>=0;)if(n[i]instanceof e)return!0}function ql(t){return!(t instanceof Gr||t instanceof Qt||t instanceof Zr||t instanceof Qr||t instanceof Cn||t instanceof Rr)}function Vu(t){if(t===null)return[];if(t instanceof Ye)return t.body;if(t instanceof Rt)return[];if(t instanceof kn)return[t];throw new Error("Can't convert thing to statement array")}function hd(t,e){const n=i=>{if(i instanceof Ae&&e.includes(i.definition()))return pr};return rd(t,(i,s)=>{if(i instanceof qe&&i!==t){var f=s.parent();return f instanceof je&&f.expression===i&&!(i.async||i.is_generator)?void 0:In(i,n)?pr:!0}})}function Yl(t,e){for(var n,i=0;n=t.parent(i);i++)if(n instanceof Ge||n instanceof yt){var s=n.name;if(s&&s.definition()===e)return!0}return!1}function pd(t,e){return e.top_retain&&t instanceof Qt&&jn(t,Gl)&&t.name&&e.top_retain(t.name.definition())}function Jl(t){const e=new Map;for(var n of Object.keys(t))e.set(n,Ot(t[n]));return(s,f)=>{const h=e.get(s);return h!=null&&h.has(f)}}const ju=new Set(["Number","String","Array","Object","Function","Promise"]),Co=["constructor","toString","valueOf"],dd=Jl({Array:["at","flat","includes","indexOf","join","lastIndexOf","slice",...Co],Boolean:Co,Function:Co,Number:["toExponential","toFixed","toPrecision",...Co],Object:Co,RegExp:["test",...Co],String:["at","charAt","charCodeAt","charPointAt","concat","endsWith","fromCharCode","fromCodePoint","includes","indexOf","italics","lastIndexOf","localeCompare","match","matchAll","normalize","padStart","padEnd","repeat","replace","replaceAll","search","slice","split","startsWith","substr","substring","repeat","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimEnd","trimStart",...Co]}),md=Jl({Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","hasOwn","keys"],String:["fromCharCode"]}),Ny=Jl({Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]}),si=t=>t instanceof Ae&&t.definition().undeclared,Zl=Ot("<<< >> << & | ^ ~"),Do=Ot("&& || ??"),$u=Ot("delete ++ --");(function(t){const e=Ot("! delete"),n=Ot("in instanceof == != === !== < <= >= >");t(xe,vt),t(We,function(){return e.has(this.operator)}),t(ae,function(){return n.has(this.operator)||Do.has(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),t(tt,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),t(st,function(){return this.operator=="="&&this.right.is_boolean()}),t(lt,function(){return this.tail_node().is_boolean()}),t(vr,er),t(Hi,er)})(function(t,e){t.DEFMETHOD("is_boolean",e)}),function(t){t(xe,vt),t(Je,er);const e=Ot("+ - ~ ++ --");t(Wt,function(){return e.has(this.operator)&&!(this.expression instanceof oi)});const n=Ot("- * / % & | ^ << >> >>>");t(ae,function(i){return n.has(this.operator)||this.operator=="+"&&this.left.is_number(i)&&this.right.is_number(i)}),t(st,function(i){return n.has(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(i)}),t(lt,function(i){return this.tail_node().is_number(i)}),t(tt,function(i){return this.consequent.is_number(i)&&this.alternative.is_number(i)})}(function(t,e){t.DEFMETHOD("is_number",e)}),function(t){t(xe,vt),t(Je,function(){return this.value===(this.value|0)}),t(We,function(){return this.operator=="~"?this.expression.is_number():this.operator==="+"?this.expression.is_32_bit_integer():!1}),t(ae,function(){return Zl.has(this.operator)})}(function(t,e){t.DEFMETHOD("is_32_bit_integer",e)}),function(t){t(xe,vt),t(dt,er),t(Wn,er),t(We,function(){return this.operator=="typeof"}),t(ae,function(e){return this.operator=="+"&&(this.left.is_string(e)||this.right.is_string(e))}),t(st,function(e){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(e)}),t(lt,function(e){return this.tail_node().is_string(e)}),t(tt,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(t,e){t.DEFMETHOD("is_string",e)});function ui(t,e){return jn(t,$l)||t instanceof en||t instanceof We&&t.operator=="void"&&!t.expression.has_side_effects(e)}function _d(t,e){let n;return t instanceof hr||ui(t,e)||t instanceof Ae&&(n=t.definition().fixed)instanceof xe&&ci(n,e)}function ia(t,e){return t instanceof Xe||t instanceof je?t.optional&&_d(t.expression,e)||ia(t.expression,e):t instanceof _n?ia(t.expression,e):!1}function ci(t,e){return _d(t,e)?!0:ia(t,e)}(function(t){t(xe,er),t(Rt,vt),t(Tt,vt),t(Vn,vt);function e(n,i){for(var s=n.length;--s>=0;)if(n[s].has_side_effects(i))return!0;return!1}t(vn,function(n){return e(this.body,n)}),t(je,function(n){return!this.is_callee_pure(n)&&(!this.expression.is_call_pure(n)||this.expression.has_side_effects(n))?!0:e(this.args,n)}),t(Xn,function(n){return this.expression.has_side_effects(n)||e(this.body,n)}),t(Yr,function(n){return this.expression.has_side_effects(n)||e(this.body,n)}),t(br,function(n){return this.body.has_side_effects(n)||this.bcatch&&this.bcatch.has_side_effects(n)||this.bfinally&&this.bfinally.has_side_effects(n)}),t(wt,function(n){return this.condition.has_side_effects(n)||this.body&&this.body.has_side_effects(n)||this.alternative&&this.alternative.has_side_effects(n)}),t(Bi,vt),t(Zn,function(n){return this.body.has_side_effects(n)}),t($e,function(n){return this.body.has_side_effects(n)}),t(Ge,vt),t(yt,function(n){return this.extends&&this.extends.has_side_effects(n)?!0:e(this.properties,n)}),t(qn,function(n){return e(this.body,n)}),t(ae,function(n){return this.left.has_side_effects(n)||this.right.has_side_effects(n)}),t(st,er),t(tt,function(n){return this.condition.has_side_effects(n)||this.consequent.has_side_effects(n)||this.alternative.has_side_effects(n)}),t(Wt,function(n){return $u.has(this.operator)||this.expression.has_side_effects(n)}),t(Ae,function(n){return!this.is_declared(n)&&!ju.has(this.name)}),t($i,vt),t(wn,vt),t(Nt,function(n){return e(this.properties,n)}),t(un,function(n){return this.computed_key()&&this.key.has_side_effects(n)||this.value&&this.value.has_side_effects(n)}),t(lr,function(n){return this.computed_key()&&this.key.has_side_effects(n)||this.static&&this.value&&this.value.has_side_effects(n)}),t(Mn,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),t(Hr,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),t(ni,function(n){return this.computed_key()&&this.key.has_side_effects(n)}),t(St,function(n){return e(this.elements,n)}),t(zt,function(n){return ci(this,n)?this.expression.has_side_effects(n):!this.optional&&this.expression.may_throw_on_access(n)?!0:this.expression.has_side_effects(n)}),t(Sn,function(n){if(ci(this,n))return this.expression.has_side_effects(n);if(!this.optional&&this.expression.may_throw_on_access(n))return!0;var i=this.property.has_side_effects(n);return i&&this.optional?!0:i||this.expression.has_side_effects(n)}),t(_n,function(n){return this.expression.has_side_effects(n)}),t(lt,function(n){return e(this.expressions,n)}),t(sn,function(n){return e(this.definitions,n)}),t(Lt,function(){return this.value}),t(yi,vt),t(Wn,function(n){return e(this.segments,n)})})(function(t,e){t.DEFMETHOD("has_side_effects",e)}),function(t){t(xe,er),t(Tt,vt),t(Rt,vt),t(Ge,vt),t(wn,vt),t(Vn,vt),t(Bi,vt);function e(n,i){for(var s=n.length;--s>=0;)if(n[s].may_throw(i))return!0;return!1}t(yt,function(n){return this.extends&&this.extends.may_throw(n)?!0:e(this.properties,n)}),t(qn,function(n){return e(this.body,n)}),t(St,function(n){return e(this.elements,n)}),t(st,function(n){return this.right.may_throw(n)?!0:!n.has_directive("use strict")&&this.operator=="="&&this.left instanceof Ae?!1:this.left.may_throw(n)}),t(ae,function(n){return this.left.may_throw(n)||this.right.may_throw(n)}),t(vn,function(n){return e(this.body,n)}),t(je,function(n){return ci(this,n)?!1:e(this.args,n)?!0:this.is_callee_pure(n)?!1:this.expression.may_throw(n)?!0:!(this.expression instanceof Ge)||e(this.expression.body,n)}),t(Yr,function(n){return this.expression.may_throw(n)||e(this.body,n)}),t(tt,function(n){return this.condition.may_throw(n)||this.consequent.may_throw(n)||this.alternative.may_throw(n)}),t(sn,function(n){return e(this.definitions,n)}),t(wt,function(n){return this.condition.may_throw(n)||this.body&&this.body.may_throw(n)||this.alternative&&this.alternative.may_throw(n)}),t(Zn,function(n){return this.body.may_throw(n)}),t(Nt,function(n){return e(this.properties,n)}),t(un,function(n){return this.value?this.value.may_throw(n):!1}),t(lr,function(n){return this.computed_key()&&this.key.may_throw(n)||this.static&&this.value&&this.value.may_throw(n)}),t(Mn,function(n){return this.computed_key()&&this.key.may_throw(n)}),t(Hr,function(n){return this.computed_key()&&this.key.may_throw(n)}),t(ni,function(n){return this.computed_key()&&this.key.may_throw(n)}),t(an,function(n){return this.value&&this.value.may_throw(n)}),t(lt,function(n){return e(this.expressions,n)}),t($e,function(n){return this.body.may_throw(n)}),t(zt,function(n){return ci(this,n)?!1:!this.optional&&this.expression.may_throw_on_access(n)||this.expression.may_throw(n)}),t(Sn,function(n){return ci(this,n)?!1:!this.optional&&this.expression.may_throw_on_access(n)||this.expression.may_throw(n)||this.property.may_throw(n)}),t(_n,function(n){return this.expression.may_throw(n)}),t(Xn,function(n){return this.expression.may_throw(n)||e(this.body,n)}),t(Ae,function(n){return!this.is_declared(n)&&!ju.has(this.name)}),t($i,vt),t(br,function(n){return this.bcatch?this.bcatch.may_throw(n):this.body.may_throw(n)||this.bfinally&&this.bfinally.may_throw(n)}),t(Wt,function(n){return this.operator=="typeof"&&this.expression instanceof Ae?!1:this.expression.may_throw(n)}),t(Lt,function(n){return this.value?this.value.may_throw(n):!1})}(function(t,e){t.DEFMETHOD("may_throw",e)}),function(t){function e(n){let i=!0;return In(this,s=>{if(s instanceof Ae){if(jn(this,vs))return i=!1,pr;var f=s.definition();if(Ol(f,this.enclosed)&&!this.variables.has(f.name)){if(n){var h=n.find_variable(s);if(f.undeclared?!h:h===f)return i="f",!0}return i=!1,pr}return!0}if(s instanceof Vn&&this instanceof qt)return i=!1,pr}),i}t(xe,vt),t(Tt,er),t(yt,function(n){if(this.extends&&!this.extends.is_constant_expression(n))return!1;for(const i of this.properties)if(i.computed_key()&&!i.key.is_constant_expression(n)||i.static&&i.value&&!i.value.is_constant_expression(n)||i instanceof qn)return!1;return e.call(this,n)}),t(Ge,e),t(Wt,function(){return this.expression.is_constant_expression()}),t(ae,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),t(St,function(){return this.elements.every(n=>n.is_constant_expression())}),t(Nt,function(){return this.properties.every(n=>n.is_constant_expression())}),t(un,function(){return!!(!(this.key instanceof xe)&&this.value&&this.value.is_constant_expression())})}(function(t,e){t.DEFMETHOD("is_constant_expression",e)}),function(t){xe.DEFMETHOD("may_throw_on_access",function(n){return!n.option("pure_getters")||this._dot_throw(n)});function e(n){return/strict/.test(n.option("pure_getters"))}t(xe,e),t(hr,er),t(en,er),t(Tt,vt),t(St,vt),t(Nt,function(n){if(!e(n))return!1;for(var i=this.properties.length;--i>=0;)if(this.properties[i]._dot_throw(n))return!0;return!1}),t(yt,vt),t(un,vt),t(Hr,er),t(ht,function(n){return this.expression._dot_throw(n)}),t(Ft,vt),t(qt,vt),t(Ui,vt),t(We,function(){return this.operator=="void"}),t(ae,function(n){return(this.operator=="&&"||this.operator=="||"||this.operator=="??")&&(this.left._dot_throw(n)||this.right._dot_throw(n))}),t(st,function(n){return this.logical?!0:this.operator=="="&&this.right._dot_throw(n)}),t(tt,function(n){return this.consequent._dot_throw(n)||this.alternative._dot_throw(n)}),t(zt,function(n){return e(n)?this.property=="prototype"?!(this.expression instanceof Ft||this.expression instanceof yt):!0:!1}),t(_n,function(n){return this.expression._dot_throw(n)}),t(lt,function(n){return this.tail_node()._dot_throw(n)}),t(Ae,function(n){if(this.name==="arguments"&&this.scope instanceof Ge)return!1;if(jn(this,$l))return!0;if(!e(n)||si(this)&&this.is_declared(n)||this.is_immutable())return!1;var i=this.fixed_value();return!i||i._dot_throw(n)})}(function(t,e){t.DEFMETHOD("_dot_throw",e)});function ko(t,e){if(e instanceof Wt&&$u.has(e.operator))return e.expression;if(e instanceof st&&e.left===t||e instanceof zn&&e.init===t)return t}(function(t){function e(i){return P(We,i,{operator:"!",expression:i})}function n(i,s,f){var h=e(i);if(f){var y=P($e,s,{body:s});return Ki(h,y)===y?s:h}return Ki(h,s)}t(xe,function(){return e(this)}),t(kn,function(){throw new Error("Cannot negate a statement")}),t(Ft,function(){return e(this)}),t(yt,function(){return e(this)}),t(qt,function(){return e(this)}),t(We,function(){return this.operator=="!"?this.expression:e(this)}),t(lt,function(i){var s=this.expressions.slice();return s.push(s.pop().negate(i)),nt(this,s)}),t(tt,function(i,s){var f=this.clone();return f.consequent=f.consequent.negate(i),f.alternative=f.alternative.negate(i),n(this,f,s)}),t(ae,function(i,s){var f=this.clone(),h=this.operator;if(i.option("unsafe_comps"))switch(h){case"<=":return f.operator=">",f;case"<":return f.operator=">=",f;case">=":return f.operator="<",f;case">":return f.operator="<=",f}switch(h){case"==":return f.operator="!=",f;case"!=":return f.operator="==",f;case"===":return f.operator="!==",f;case"!==":return f.operator="===",f;case"&&":return f.operator="||",f.left=f.left.negate(i,s),f.right=f.right.negate(i),n(this,f,s);case"||":return f.operator="&&",f.left=f.left.negate(i,s),f.right=f.right.negate(i),n(this,f,s)}return e(this)})})(function(t,e){t.DEFMETHOD("negate",function(n,i){return e.call(this,n,i)})}),function(t){function e(n){return P(We,n,{operator:"~",expression:n})}t(xe,function(){return e(this)}),t(Je,function(){const n=~this.value;return n.toString().length>this.value.toString().length?e(this):P(Je,this,{value:n})}),t(We,function(n){return this.operator=="~"&&(n||this.expression.is_32_bit_integer())?this.expression:e(this)})}(function(t,e){t.DEFMETHOD("bitwise_negate",e)});var Iy=Ot("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");je.DEFMETHOD("is_callee_pure",function(t){if(t.option("unsafe")){var e=this.expression,n=this.args&&this.args[0]&&this.args[0].evaluate(t);if(e.expression&&e.expression.name==="hasOwnProperty"&&(n==null||n.thedef&&n.thedef.undeclared))return!1;if(si(e)&&Iy.has(e.name)||e instanceof zt&&si(e.expression)&&md(e.expression.name,e.property))return!0}return this instanceof rr&&t.option("pure_new")||t.option("side_effects")&&sr(this,Fl)?!0:!t.pure_funcs(this)}),xe.DEFMETHOD("is_call_pure",vt),zt.DEFMETHOD("is_call_pure",function(t){if(!t.option("unsafe"))return;const e=this.expression;let n;return e instanceof St?n="Array":e.is_boolean()?n="Boolean":e.is_number(t)?n="Number":e instanceof fr?n="RegExp":e.is_string(t)?n="String":this.may_throw_on_access(t)||(n="Object"),n!=null&&dd(n,this.property)});const Ir=t=>t&&t.aborts();(function(t){t(kn,eo),t(fs,_o);function e(){for(var n=0;n<this.body.length;n++)if(Ir(this.body[n]))return this.body[n];return null}t(Rr,eo),t(Ye,e),t(Mi,e),t(Gr,function(){for(const n of this.properties)if(n instanceof qn&&n.aborts())return n;return null}),t(qn,e),t(wt,function(){return this.alternative&&Ir(this.body)&&Ir(this.alternative)&&this})})(function(t,e){t.DEFMETHOD("aborts",e)}),xe.DEFMETHOD("contains_this",function(){return In(this,t=>{if(t instanceof Vn)return pr;if(t!==this&&t instanceof qe&&!(t instanceof qt))return!0})});function oa(t,e,n,i,s,f){var h=e.parent(s),y=ko(n,h);if(y)return y;if(!f&&h instanceof je&&h.expression===n&&!(i instanceof qt)&&!(i instanceof yt)&&!h.is_callee_pure(t)&&(!(i instanceof Ft)||!(h instanceof rr)&&i.contains_this()))return!0;if(h instanceof St)return oa(t,e,h,h,s+1);if(h instanceof Yt&&n===h.value){var E=e.parent(s+1);return oa(t,e,E,E,s+2)}if(h instanceof Xe&&h.expression===n){var T=cd(i,h.property);return!f&&oa(t,e,h,T,s+1)}}function $n(t,e){t.DEFMETHOD("_eval",e)}const aa=Symbol("This AST_Chain is nullish");xe.DEFMETHOD("evaluate",function(t){if(!t.option("evaluate"))return this;var e=this._eval(t,1);if(!e||e instanceof RegExp)return e;if(typeof e=="function"||typeof e=="object"||e==aa)return this;if(typeof e=="string"){const n=this.size(t);if(e.length+2>n)return this}return e});var Py=Ot("! ~ - + void");xe.DEFMETHOD("is_constant",function(){return this instanceof Tt?!(this instanceof fr):this instanceof We&&this.expression instanceof Tt&&Py.has(this.operator)}),$n(kn,function(){throw new Error(mu("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),$n(Ge,_o),$n(yt,_o),$n(xe,_o),$n(Tt,function(){return this.getValue()});const Fy=typeof BigInt=="function";$n(oi,function(){return Fy?BigInt(this.value):this}),$n(fr,function(t){let e=t.evaluated_regexps.get(this.value);if(e===void 0&&$p(this.value.source)){try{const{source:n,flags:i}=this.value;e=new RegExp(n,i)}catch{e=null}t.evaluated_regexps.set(this.value,e)}return e||this}),$n(Wn,function(){return this.segments.length!==1?this:this.segments[0].value}),$n(Ft,function(t){if(t.option("unsafe")){var e=function(){};return e.node=this,e.toString=()=>this.print_to_string(),e}return this}),$n(St,function(t,e){if(t.option("unsafe")){for(var n=[],i=0,s=this.elements.length;i<s;i++){var f=this.elements[i],h=f._eval(t,e);if(f===h)return this;n.push(h)}return n}return this}),$n(Nt,function(t,e){if(t.option("unsafe")){for(var n={},i=0,s=this.properties.length;i<s;i++){var f=this.properties[i];if(f instanceof ht)return this;var h=f.key;if(h instanceof pt)h=h.name;else if(h instanceof xe&&(h=h._eval(t,e),h===f.key))return this;if(typeof Object.prototype[h]=="function")return this;if(!(f.value instanceof Ft)&&(n[h]=f.value._eval(t,e),n[h]===f.value))return this}return n}return this});var Ly=Ot("! typeof void");$n(We,function(t,e){var n=this.expression;if(t.option("typeofs")&&this.operator=="typeof"&&(n instanceof Ge||n instanceof Ae&&n.fixed_value()instanceof Ge))return"function";if(Ly.has(this.operator)||e++,n=n._eval(t,e),n===this.expression)return this;switch(this.operator){case"!":return!n;case"typeof":return n instanceof RegExp?this:typeof n;case"void":return;case"~":return~n;case"-":return-n;case"+":return+n}return this});var My=Ot("&& || ?? === !==");const By=Ot("== != === !=="),yd=t=>typeof t=="object"||typeof t=="function"||typeof t=="symbol";$n(ae,function(t,e){My.has(this.operator)||e++;var n=this.left._eval(t,e);if(n===this.left)return this;var i=this.right._eval(t,e);if(i===this.right)return this;if(n!=null&&i!=null&&By.has(this.operator)&&yd(n)&&yd(i)&&typeof n==typeof i)return this;if(typeof n=="bigint"!=(typeof i=="bigint")||typeof n=="bigint"&&(this.operator===">>>"||this.operator==="/"&&Number(i)===0))return this;var s;switch(this.operator){case"&&":s=n&&i;break;case"||":s=n||i;break;case"??":s=n??i;break;case"|":s=n|i;break;case"&":s=n&i;break;case"^":s=n^i;break;case"+":s=n+i;break;case"*":s=n*i;break;case"**":s=n**i;break;case"/":s=n/i;break;case"%":s=n%i;break;case"-":s=n-i;break;case"<<":s=n<<i;break;case">>":s=n>>i;break;case">>>":s=n>>>i;break;case"==":s=n==i;break;case"===":s=n===i;break;case"!=":s=n!=i;break;case"!==":s=n!==i;break;case"<":s=n<i;break;case"<=":s=n<=i;break;case">":s=n>i;break;case">=":s=n>=i;break;default:return this}return typeof s=="number"&&isNaN(s)&&t.find_parent(_r)?this:s}),$n(tt,function(t,e){var n=this.condition._eval(t,e);if(n===this.condition)return this;var i=n?this.consequent:this.alternative,s=i._eval(t,e);return s===i?this:s});const Ql=new Set;$n(Ae,function(t,e){if(Ql.has(this))return this;var n=this.fixed_value();if(!n)return this;Ql.add(this);const i=n._eval(t,e);if(Ql.delete(this),i===n)return this;if(i&&typeof i=="object"){var s=this.definition().escaped;if(s&&e>s)return this}return i});const gd={Array,Math,Number,Object,String},Uy=new Set(["dotAll","global","ignoreCase","multiline","sticky","unicode"]);$n(Xe,function(t,e){let n=this.expression._eval(t,e+1);if(n===aa||this.optional&&n==null)return aa;if(this.property==="length"){if(typeof n=="string")return n.length;if(n instanceof St&&n.elements.every(E=>!(E instanceof ht))&&n.elements.every(E=>!E.has_side_effects(t)))return n.elements.length}if(t.option("unsafe")){var i=this.property;if(i instanceof xe&&(i=i._eval(t,e),i===this.property))return this;var s=this.expression;if(si(s)){var f,h=s.name==="hasOwnProperty"&&i==="call"&&(f=t.parent()&&t.parent().args)&&f&&f[0]&&f[0].evaluate(t);if(h=h instanceof zt?h.expression:h,h==null||h.thedef&&h.thedef.undeclared)return this.clone();if(!Ny(s.name,i))return this;n=gd[s.name]}else{if(n instanceof RegExp){if(i=="source")return yu(n.source);if(i=="flags"||Uy.has(i))return n[i]}if(!n||n===s||!tr(n,i))return this;if(typeof n=="function")switch(i){case"name":return n.node.name?n.node.name.name:"";case"length":return n.node.length_property();default:return this}}return n[i]}return this}),$n(_n,function(t,e){const n=this.expression._eval(t,e);return n===aa?void 0:n===this.expression?this:n}),$n(je,function(t,e){var n=this.expression;const i=n._eval(t,e);if(i===aa||this.optional&&i==null)return aa;if(t.option("unsafe")&&n instanceof Xe){var s=n.property;if(s instanceof xe&&(s=s._eval(t,e),s===n.property))return this;var f,h=n.expression;if(si(h)){var y=h.name==="hasOwnProperty"&&s==="call"&&this.args[0]&&this.args[0].evaluate(t);if(y=y instanceof zt?y.expression:y,y==null||y.thedef&&y.thedef.undeclared)return this.clone();if(!md(h.name,s))return this;f=gd[h.name]}else{if(f=h._eval(t,e+1),f===h||!f)return this;if(!dd(f.constructor.name,s))return this}for(var E=[],T=0,O=this.args.length;T<O;T++){var A=this.args[T],I=A._eval(t,e);if(A===I)return this;if(A instanceof Ge)return this;E.push(I)}try{return f[s].apply(f,E)}catch{}}return this}),$n(rr,_o);function nn(t,e){t.DEFMETHOD("drop_side_effect_free",e)}function Es(t,e,n){var i=t.length;if(!i)return null;for(var s=[],f=!1,h=0;h<i;h++){var y=t[h].drop_side_effect_free(e,n);f|=y!==t[h],y&&(s.push(y),n=!1)}return f?s.length?s:null:t}nn(xe,_o),nn(Tt,eo),nn(Vn,eo),nn(je,function(t,e){if(ia(this,t))return this.expression.drop_side_effect_free(t,e);if(!this.is_callee_pure(t)){if(this.expression.is_call_pure(t)){var n=this.args.slice();return n.unshift(this.expression.expression),n=Es(n,t,e),n&&nt(this,n)}if(Uu(this.expression)&&(!this.expression.name||!this.expression.name.definition().references.length)){var i=this.clone();return i.expression.process_expression(!1,t),i}return this}var s=Es(this.args,t,e);return s&&nt(this,s)}),nn(Li,eo),nn(Ft,eo),nn(qt,eo),nn(yt,function(t){const e=[];if(this.is_self_referential()&&this.has_side_effects(t))return this;const n=this.extends&&this.extends.drop_side_effect_free(t);n&&e.push(n);for(const s of this.properties)if(s instanceof qn){if(s.has_side_effects(t))return this}else{const f=s.drop_side_effect_free(t);f&&e.push(f)}if(!e.length)return null;const i=nt(this,e);return this instanceof Gr?P($e,this,{body:i}):i}),nn(lr,function(t){const e=this.computed_key()&&this.key.drop_side_effect_free(t),n=this.static&&this.value&&this.value.drop_side_effect_free(t);return e&&n?nt(this,[e,n]):e||n||null}),nn(ae,function(t,e){var n=this.right.drop_side_effect_free(t);if(!n)return this.left.drop_side_effect_free(t,e);if(Do.has(this.operator)){if(n===this.right)return this;var i=this.clone();return i.right=n,i}else{var s=this.left.drop_side_effect_free(t,e);return s?nt(this,[s,n]):this.right.drop_side_effect_free(t,e)}}),nn(st,function(t){if(this.logical)return this;var e=this.left;if(e.has_side_effects(t)||t.has_directive("use strict")&&e instanceof Xe&&e.expression.is_constant())return this;for(Er(this,na);e instanceof Xe;)e=e.expression;return e.is_constant_expression(t.find_parent(qe))?this.right.drop_side_effect_free(t):this}),nn(tt,function(t){var e=this.consequent.drop_side_effect_free(t),n=this.alternative.drop_side_effect_free(t);if(e===this.consequent&&n===this.alternative)return this;if(!e)return n?P(ae,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(t);if(!n)return P(ae,this,{operator:"&&",left:this.condition,right:e});var i=this.clone();return i.consequent=e,i.alternative=n,i}),nn(Wt,function(t,e){if($u.has(this.operator))return this.expression.has_side_effects(t)?ra(this,na):Er(this,na),this;if(this.operator=="typeof"&&this.expression instanceof Ae)return null;var n=this.expression.drop_side_effect_free(t,e);return e&&n&&Wl(n)?n===this.expression&&this.operator=="!"?this:n.negate(t,e):n}),nn(Ae,function(t){return this.is_declared(t)||ju.has(this.name)?null:this}),nn(Nt,function(t,e){var n=Es(this.properties,t,e);return n&&nt(this,n)}),nn(un,function(t,e){const i=this instanceof Yt&&this.key instanceof xe&&this.key.drop_side_effect_free(t,e),s=this.value&&this.value.drop_side_effect_free(t,e);return i&&s?nt(this,[i,s]):i||s}),nn(Mn,function(){return this.computed_key()?this.key:null}),nn(Hr,function(){return this.computed_key()?this.key:null}),nn(ni,function(){return this.computed_key()?this.key:null}),nn(St,function(t,e){var n=Es(this.elements,t,e);return n&&nt(this,n)}),nn(zt,function(t,e){return ia(this,t)?this.expression.drop_side_effect_free(t,e):!this.optional&&this.expression.may_throw_on_access(t)?this:this.expression.drop_side_effect_free(t,e)}),nn(Sn,function(t,e){if(ia(this,t))return this.expression.drop_side_effect_free(t,e);if(!this.optional&&this.expression.may_throw_on_access(t))return this;var n=this.property.drop_side_effect_free(t);if(n&&this.optional)return this;var i=this.expression.drop_side_effect_free(t,e);return i&&n?nt(this,[i,n]):i||n}),nn(_n,function(t,e){return this.expression.drop_side_effect_free(t,e)}),nn(lt,function(t){var e=this.tail_node(),n=e.drop_side_effect_free(t);if(n===e)return this;var i=this.expressions.slice(0,-1);return n&&i.push(n),i.length?nt(this,i):P(Je,this,{value:0})}),nn(ht,function(t,e){return this.expression.drop_side_effect_free(t,e)}),nn(yi,eo),nn(Wn,function(t){var e=Es(this.segments,t,ai);return e&&nt(this,e)});const Vy=/keep_assign/;qe.DEFMETHOD("drop_unused",function(t){if(!t.option("unused")||t.has_directive("use asm")||!this.variables)return;var e=this;if(e.pinned())return;var n=!(e instanceof Kt)||t.toplevel.funcs,i=!(e instanceof Kt)||t.toplevel.vars;const s=Vy.test(t.option("unused"))?vt:function(L){if(L instanceof st&&!L.logical&&(jn(L,na)||L.operator=="="))return L.left;if(L instanceof Wt&&jn(L,na))return L.expression};var f=new Map,h=new Map;e instanceof Kt&&t.top_retain&&e.variables.forEach(function(L){t.top_retain(L)&&f.set(L.id,L)});var y=new Map,E=new Map,T=new Set,O=this,A=new Pn(function(L,b){if(L instanceof Ge&&L.uses_arguments&&!A.has_directive("use strict")&&L.argnames.forEach(function(C){if(C instanceof wn){var R=C.definition();f.set(R.id,R)}}),L===e)return;if(L instanceof yt&&L.has_side_effects(t)&&(L.is_self_referential()&&T.add(L),L.visit_nondeferred_class_parts(A)),L instanceof Qt||L instanceof Gr){var _=L.name.definition();return(A.parent()instanceof Cn||!n&&O===e)&&_.global&&f.set(_.id,_),_u(E,_.id,L),!0}const g=O===e;if(L instanceof Nn&&g&&_u(y,L.definition().id,L),L instanceof sn&&g){const C=A.parent()instanceof Cn;return L.definitions.forEach(function(R){if(R.name instanceof Vi&&_u(y,R.name.definition().id,R),(C||!i)&&In(R.name,B=>{if(B instanceof wn){const X=B.definition();X.global&&f.set(X.id,X)}}),R.name instanceof Vt&&R.walk(A),R.name instanceof wn&&R.value){var D=R.name.definition();_u(E,D.id,R.value),!D.chained&&R.name.fixed_value()===R.value&&h.set(D.id,R),R.value.has_side_effects(t)&&R.value.walk(A)}}),!0}return U(L,b)});e.walk(A),A=new Pn(U),f.forEach(function(L){var b=E.get(L.id);b&&b.forEach(function(_){_.walk(A)})}),T.forEach(function(L){L.walk(A)});var I=new dr(function(b,_,g){var C=I.parent();if(i){const te=s(b);if(te instanceof Ae){var D=te.definition(),R=f.has(D.id);if(b instanceof st){if(!R||h.has(D.id)&&h.get(D.id)!==b)return Oo(C,b,b.right.transform(I))}else if(!R)return g?Xt.skip:P(Je,b,{value:0})}}if(O===e){var D;if(b.name&&(b instanceof Ei&&!zo(t.option("keep_classnames"),(D=b.name.definition()).name)||b instanceof Ft&&!zo(t.option("keep_fnames"),(D=b.name.definition()).name))&&(!f.has(D.id)||D.orig.length>1)&&(b.name=null),b instanceof Ge&&!(b instanceof Li))for(var B=!t.option("keep_fargs"),X=b.argnames,ne=X.length;--ne>=0;){var z=X[ne];z instanceof ht&&(z=z.expression),z instanceof wr&&(z=z.left),!(z instanceof Vt)&&!f.has(z.definition().id)?(Er(z,ao),B&&X.pop()):B=!1}if(b instanceof Gr&&b!==e){const te=b.name.definition();if(_(b,this),!(te.global&&!n||f.has(te.id))){const le=b.drop_side_effect_free(t);return le??(te.eliminated++,g?Xt.skip:P(Rt,b))}return b}if(b instanceof Qt&&b!==e){const te=b.name.definition();if(!(te.global&&!n||f.has(te.id)))return te.eliminated++,g?Xt.skip:P(Rt,b)}if(b instanceof sn&&!(C instanceof zn&&C.init===b)){var Y=!(C instanceof Kt)&&!(b instanceof Rn),K=[],ce=[],Q=[],me=[];switch(b.definitions.forEach(function(te){te.value&&(te.value=te.value.transform(I));var pe=te.name instanceof Vt,le=pe?new ta(null,{name:"<destructure>"}):te.name.definition();if(Y&&le.global)return Q.push(te);if(!(i||Y)||pe&&(te.name.names.length||te.name.is_array||t.option("pure_getters")!=!0)||f.has(le.id)){if(te.value&&h.has(le.id)&&h.get(le.id)!==te&&(te.value=te.value.drop_side_effect_free(t)),te.name instanceof Vi){var Oe=y.get(le.id);if(Oe.length>1&&(!te.value||le.orig.indexOf(te.name)>le.eliminated)){if(te.value){var Ie=P(Ae,te.name,te.name);le.references.push(Ie);var ge=P(st,te,{operator:"=",logical:!1,left:Ie,right:te.value});h.get(le.id)===te&&h.set(le.id,ge),me.push(ge.transform(I))}Ko(Oe,te),le.eliminated++;return}}te.value?(me.length>0&&(Q.length>0?(me.push(te.value),te.value=nt(te.value,me)):K.push(P($e,b,{body:nt(b,me)})),me=[]),Q.push(te)):ce.push(te)}else if(le.orig[0]instanceof Kr){var Ue=te.value&&te.value.drop_side_effect_free(t);Ue&&me.push(Ue),te.value=null,ce.push(te)}else{var Ue=te.value&&te.value.drop_side_effect_free(t);Ue&&me.push(Ue),le.eliminated++}}),(ce.length>0||Q.length>0)&&(b.definitions=ce.concat(Q),K.push(b)),me.length>0&&K.push(P($e,b,{body:nt(b,me)})),K.length){case 0:return g?Xt.skip:P(Rt,b);case 1:return K[0];default:return g?Xt.splice(K):P(Ye,b,{body:K})}}if(b instanceof En){_(b,this);var _e;return b.init instanceof Ye&&(_e=b.init,b.init=_e.body.pop(),_e.body.push(b)),b.init instanceof $e?b.init=b.init.body:so(b.init)&&(b.init=null),_e?g?Xt.splice(_e.body):_e:b}if(b instanceof Zn&&b.body instanceof En){if(_(b,this),b.body instanceof Ye){var _e=b.body;return b.body=_e.body.pop(),_e.body.push(b),g?Xt.splice(_e.body):_e}return b}if(b instanceof Ye)return _(b,this),g&&b.body.every(ql)?Xt.splice(b.body):b;if(b instanceof qe&&!(b instanceof qn)){const te=O;return O=b,_(b,this),O=te,b}}});e.transform(I);function U(L,b){var _;const g=s(L);if(g instanceof Ae&&!Xl(L.left,ji)&&e.variables.get(g.name)===(_=g.definition()))return L instanceof st&&(L.right.walk(A),!_.chained&&L.left.fixed_value()===L.right&&h.set(_.id,L)),!0;if(L instanceof Ae){if(_=L.definition(),!f.has(_.id)&&(f.set(_.id,_),_.orig[0]instanceof Kr)){const R=_.scope.is_block_scope()&&_.scope.get_defun_scope().variables.get(_.name);R&&f.set(R.id,R)}return!0}if(L instanceof yt)return b(),!0;if(L instanceof qe&&!(L instanceof qn)){var C=O;return O=L,b(),O=C,!0}}});function cn(t,e){t.DEFMETHOD("reduce_vars",e)}cn(xe,mr);function ef(t,e){e.assignments=0,e.chained=!1,e.direct_access=!1,e.escaped=0,e.recursive_refs=0,e.references=[],e.single_use=void 0,e.scope.pinned()||e.orig[0]instanceof Nn&&e.scope.uses_arguments?e.fixed=!1:e.orig[0]instanceof ro||!t.exposed(e)?e.fixed=e.init:e.fixed=!1}function tf(t,e,n){n.variables.forEach(function(i){ef(e,i),i.fixed===null?(t.defs_to_safe_ids.set(i.id,t.safe_ids),zi(t,i,!0)):i.fixed&&(t.loop_ids.set(i.id,t.in_loop),zi(t,i,!0))})}function Ro(t,e){e.block_scope&&e.block_scope.variables.forEach(n=>{ef(t,n)})}function yn(t){t.safe_ids=Object.create(t.safe_ids)}function Dn(t){t.safe_ids=Object.getPrototypeOf(t.safe_ids)}function zi(t,e,n){t.safe_ids[e.id]=n}function bd(t,e){if(e.single_use=="m")return!1;if(t.safe_ids[e.id]){if(e.fixed==null){var n=e.orig[0];if(n instanceof Nn||n.name=="arguments")return!1;e.fixed=P(en,n)}return!0}return e.fixed instanceof Qt}function nf(t,e,n,i){if(e.fixed===void 0)return!0;let s;return e.fixed===null&&(s=t.defs_to_safe_ids.get(e.id))?(s[e.id]=!1,t.defs_to_safe_ids.delete(e.id),!0):!tr(t.safe_ids,e.id)||!bd(t,e)||e.fixed===!1||e.fixed!=null&&(!i||e.references.length>e.assignments)?!1:e.fixed instanceof Qt?i instanceof xe&&e.fixed.parent_scope===n:e.orig.every(f=>!(f instanceof ro||f instanceof Si||f instanceof ii))}function jy(t,e,n){return e.option("unused")&&!n.scope.pinned()&&n.references.length-n.recursive_refs==1&&t.loop_ids.get(n.id)===t.in_loop}function $y(t){return t?t.is_constant()||t instanceof Ge||t instanceof Vn:!1}function Ss(t,e,n,i,s,f=0,h=1){var y=t.parent(f);if(!(s&&(s.is_constant()||s instanceof Ei))){if(y instanceof st&&(y.operator==="="||y.logical)&&i===y.right||y instanceof je&&(i!==y.expression||y instanceof rr)||y instanceof cr&&i===y.value&&i.scope!==e.scope||y instanceof Lt&&i===y.value||y instanceof gr&&i===y.value&&i.scope!==e.scope){h>1&&!(s&&s.is_constant_expression(n))&&(h=1),(!e.escaped||e.escaped>h)&&(e.escaped=h);return}else if(y instanceof St||y instanceof yr||y instanceof ae&&Do.has(y.operator)||y instanceof tt&&i!==y.condition||y instanceof ht||y instanceof lt&&i===y.tail_node())Ss(t,e,n,y,y,f+1,h);else if(y instanceof Yt&&i===y.value){var E=t.parent(f+1);Ss(t,e,n,E,E,f+2,h)}else if(y instanceof Xe&&i===y.expression&&(s=cd(s,y.property),Ss(t,e,n,y,s,f+1,h+1),s))return;f>0||y instanceof lt&&i!==y.tail_node()||y instanceof $e||(e.direct_access=!0)}}const rf=t=>In(t,e=>{if(e instanceof pt){var n=e.definition();n&&(e instanceof Ae&&n.references.push(e),n.fixed=!1)}});cn(Li,function(t,e,n){return yn(t),tf(t,n,this),e(),Dn(t),!0}),cn(st,function(t,e,n){var i=this;if(i.left instanceof Vt){rf(i.left);return}const s=()=>{if(i.logical)return i.left.walk(t),yn(t),i.right.walk(t),Dn(t),!0};var f=i.left;if(!(f instanceof Ae))return s();var h=f.definition(),y=nf(t,h,f.scope,i.right);if(h.assignments++,!y)return s();var E=h.fixed;if(!E&&i.operator!="="&&!i.logical)return s();var T=i.operator=="=",O=T?i.right:i;return oa(n,t,i,O,0)?s():(h.references.push(f),i.logical||(T||(h.chained=!0),h.fixed=T?function(){return i.right}:function(){return P(ae,i,{operator:i.operator.slice(0,-1),left:E instanceof xe?E:E(),right:i.right})}),i.logical?(zi(t,h,!1),yn(t),i.right.walk(t),Dn(t),!0):(zi(t,h,!1),i.right.walk(t),zi(t,h,!0),Ss(t,h,f.scope,i,O,0,1),!0))}),cn(ae,function(t){if(Do.has(this.operator))return this.left.walk(t),yn(t),this.right.walk(t),Dn(t),!0}),cn(vn,function(t,e,n){Ro(n,this)}),cn(Yr,function(t){return yn(t),this.expression.walk(t),Dn(t),yn(t),go(this,t),Dn(t),!0}),cn(yt,function(t,e){return ra(this,vs),yn(t),e(),Dn(t),!0}),cn(qn,function(t,e,n){Ro(n,this)}),cn(tt,function(t){return this.condition.walk(t),yn(t),this.consequent.walk(t),Dn(t),yn(t),this.alternative.walk(t),Dn(t),!0}),cn(_n,function(t,e){const n=t.safe_ids;return e(),t.safe_ids=n,!0}),cn(je,function(t){this.expression.walk(t),this.optional&&yn(t);for(const e of this.args)e.walk(t);return!0}),cn(Xe,function(t){if(this.optional)return this.expression.walk(t),yn(t),this.property instanceof xe&&this.property.walk(t),!0}),cn(Eo,function(t,e){return yn(t),e(),Dn(t),!0});function Hy(t,e,n){ra(this,vs),yn(t),tf(t,n,this);var i;return!this.name&&!this.uses_arguments&&!this.pinned()&&(i=t.parent())instanceof je&&i.expression===this&&!i.args.some(s=>s instanceof ht)&&this.argnames.every(s=>s instanceof pt)&&this.argnames.forEach((s,f)=>{if(s.definition){var h=s.definition();h.orig.length>1||(h.fixed===void 0&&(!this.uses_arguments||t.has_directive("use strict"))?(h.fixed=function(){return i.args[f]||P(en,i)},t.loop_ids.set(h.id,t.in_loop),zi(t,h,!0)):h.fixed=!1)}}),e(),Dn(t),vd(this),!0}function vd(t){const e=[];In(t,f=>{if(f!==t&&(f instanceof Qt&&e.push(f),f instanceof qe||f instanceof $e))return!0});const n=new Set,i=new Set,s=[];for(const f of e){const h=f.name.definition(),y=e.some(E=>E!==f&&E.enclosed.indexOf(h)!==-1);for(const E of f.enclosed)if(!(E.fixed===!1||E===h||E.scope.get_defun_scope()!==t)&&!(E.assignments===0&&E.orig.length===1&&E.orig[0]instanceof Si)){if(y){E.fixed=!1;continue}s.push({defun:f,def:E,fname_def:h}),n.add(E.id),n.add(h.id),i.add(f)}}if(s.length){const f=[],h=new Set,y=new Map;let E;t.walk(E=new Pn((T,O)=>{if(T instanceof Qt&&i.has(T)){const A=f.length;O();const I=f.length;return y.set(T,{start:A,end:I}),!0}if(T instanceof pt&&T.thedef){const A=T.definition().id;n.has(A)&&((T instanceof wn||ko(T,E))&&h.add(f.length),f.push(A))}}));for(const{def:T,defun:O,fname_def:A}of s){const I=y.get(O),U=(g,C=0,R=!1)=>{let D=C;for(;D=f.indexOf(g,D),D!==-1;)if(D>=I.start&&D<I.end){D=I.end;continue}else if(R&&!h.has(D)){D++;continue}else break;return D},L=U(A.id),b=U(T.id,L+1,!0);L!=-1&&b!=-1&&b>L&&(T.fixed=!1)}}}cn(Ge,Hy),cn(_i,function(t,e,n){Ro(n,this);const i=t.in_loop;return t.in_loop=this,yn(t),this.body.walk(t),zl(this)&&(Dn(t),yn(t)),this.condition.walk(t),Dn(t),t.in_loop=i,!0}),cn(En,function(t,e,n){Ro(n,this),this.init&&this.init.walk(t);const i=t.in_loop;return t.in_loop=this,yn(t),this.condition&&this.condition.walk(t),this.body.walk(t),this.step&&(zl(this)&&(Dn(t),yn(t)),this.step.walk(t)),Dn(t),t.in_loop=i,!0}),cn(zn,function(t,e,n){Ro(n,this),rf(this.init),this.object.walk(t);const i=t.in_loop;return t.in_loop=this,yn(t),this.body.walk(t),Dn(t),t.in_loop=i,!0}),cn(wt,function(t){return this.condition.walk(t),yn(t),this.body.walk(t),Dn(t),this.alternative&&(yn(t),this.alternative.walk(t),Dn(t)),!0}),cn(Zn,function(t){return yn(t),this.body.walk(t),Dn(t),!0}),cn(Kr,function(){this.definition().fixed=!1}),cn(Ae,function(t,e,n){var i=this.definition();i.references.push(this),i.references.length==1&&!i.fixed&&i.orig[0]instanceof Si&&t.loop_ids.set(i.id,t.in_loop);var s;i.fixed===void 0||!bd(t,i)?i.fixed=!1:i.fixed&&(s=this.fixed_value(),s instanceof Ge&&Yl(t,i)?i.recursive_refs++:s&&!n.exposed(i)&&jy(t,n,i)?i.single_use=s instanceof Ge&&!s.pinned()||s instanceof yt||i.scope===this.scope&&s.is_constant_expression():i.single_use=!1,oa(n,t,this,s,0,$y(s))&&(i.single_use?i.single_use="m":i.fixed=!1)),Ss(t,i,this.scope,this,s,0,1)}),cn(Kt,function(t,e,n){return this.globals.forEach(function(i){ef(n,i)}),tf(t,n,this),e(),vd(this),!0}),cn(br,function(t,e,n){return Ro(n,this),yn(t),this.body.walk(t),Dn(t),this.bcatch&&(yn(t),this.bcatch.walk(t),Dn(t)),this.bfinally&&this.bfinally.walk(t),!0}),cn(Wt,function(t){var e=this;if(!(e.operator!=="++"&&e.operator!=="--")){var n=e.expression;if(n instanceof Ae){var i=n.definition(),s=nf(t,i,n.scope,!0);if(i.assignments++,!!s){var f=i.fixed;if(f)return i.references.push(n),i.chained=!0,i.fixed=function(){return P(ae,e,{operator:e.operator.slice(0,-1),left:P(We,e,{operator:"+",expression:f instanceof xe?f:f()}),right:P(Je,e,{value:1})})},zi(t,i,!0),!0}}}}),cn(Lt,function(t,e){var n=this;if(n.name instanceof Vt){rf(n.name);return}var i=n.name.definition();if(n.value){if(nf(t,i,n.name.scope,n.value))return i.fixed=function(){return n.value},t.loop_ids.set(i.id,t.in_loop),zi(t,i,!1),e(),zi(t,i,!0),!0;i.fixed=!1}}),cn(Fi,function(t,e,n){Ro(n,this);const i=t.in_loop;return t.in_loop=this,yn(t),e(),Dn(t),t.in_loop=i,!0});function of(t){return t instanceof Vr&&t.body instanceof Ye?t.body:t}function Ed(t){if(t instanceof Vn)return!0;if(t instanceof Ae)return t.definition().orig[0]instanceof ii;if(t instanceof Xe){if(t=t.expression,t instanceof Ae){if(t.is_immutable())return!1;t=t.fixed_value()}return t?t instanceof fr?!1:t instanceof Tt?!0:Ed(t):!0}return!1}function Gy(t){var e=[];return t.definitions.forEach(function(n){n.name instanceof wn?(n.value=null,e.push(n)):n.declarations_as_names().forEach(i=>{e.push(P(Lt,n,{name:i,value:null}))})}),e.length?P(Rn,t,{definitions:e}):null}function wo(t,e,n){In(e,i=>{if(i instanceof Rn){const s=Gy(i);return s&&n.push(s),!0}if(i instanceof Qt&&(i===e||!t.has_directive("use strict")))return n.push(i===e?i:P(Rn,i,{definitions:[P(Lt,i,{name:P(Vi,i.name,i.name),value:null})]})),!0;if(i instanceof Cn||i instanceof Rr)return n.push(i),!0;if(i instanceof qe)return!0})}function Hu(t,e){const n=e.find_scope(),i=n.get_defun_scope(),{in_loop:s,in_try:f}=E();var h,y=10;do h=!1,O(t),e.option("dead_code")&&I(t,e),e.option("if_return")&&A(t,e),e.sequences_limit>0&&(L(t,e),_(t,e)),e.option("join_vars")&&C(t),e.option("collapse_vars")&&T(t,e);while(h&&y-- >0);function E(){var R=e.self(),D=0,B=!1,X=!1;do if(R instanceof Vr)B=!0;else{if(R instanceof qe)break;R instanceof Ru&&(X=!0)}while(R=e.parent(D++));return{in_loop:B,in_try:X}}function T(R,D){if(n.pinned()||i.pinned())return R;for(var B,X=[],ne=R.length,z=new dr(function(V){if(se)return V;if(!re)return V!==K[ce]?V:(ce++,ce<K.length?Et(V):(re=!0,_e=ke(V,0),_e===V&&(se=!0),V));var we=z.parent();if(V instanceof st&&(V.logical||V.operator!="="&&pe.equivalent_to(V.left))||V instanceof yr||V instanceof je&&pe instanceof Xe&&pe.equivalent_to(V.expression)||(V instanceof je||V instanceof Xe)&&V.optional||V instanceof Pi||V instanceof Vt||V instanceof ht&&V.expression instanceof pt&&(V.expression instanceof Vn||V.expression.definition().references.length>1)||V instanceof Vr&&!(V instanceof En)||V instanceof qr||V instanceof br||V instanceof _r||V instanceof gr||V instanceof Cn||V instanceof yt||we instanceof En&&V!==we.init||!ge&&V instanceof Ae&&!V.is_declared(D)&&!ju.has(V)||V instanceof Ae&&we instanceof je&&sr(we,Ao)||V instanceof un&&V.key instanceof xe)return se=!0,V;if(!te&&(!Oe||!ge)&&(we instanceof ae&&Do.has(we.operator)&&we.left!==V||we instanceof tt&&we.condition!==V||we instanceof wt&&we.condition!==V)&&(te=we),ye&&!(V instanceof wn)&&pe.equivalent_to(V)&&!Ai(z.find_scope()||n,le)){if(te)return se=!0,V;if(ko(V,we))return me&&Te++,V;if(Te++,me&&Q instanceof Lt)return V;if(h=se=!0,Q instanceof Ui)return P(We,Q,Q);if(Q instanceof Lt){var Be=Q.name.definition(),Me=Q.value;return Be.references.length-Be.replaced==1&&!D.exposed(Be)?(Be.replaced++,J&&fd(Me)?Me.transform(D):Oo(we,V,Me)):P(st,Q,{operator:"=",logical:!1,left:P(Ae,Q.name,Q.name),right:Me})}return ra(Q,na),Q}var ut;return(V instanceof je||V instanceof cr&&(Ie||pe instanceof Xe||Pt(pe))||V instanceof Xe&&(Ie||V.expression.may_throw_on_access(D))||V instanceof Ae&&(le.has(V.name)&&le.get(V.name).modified||Ie&&Pt(V))||V instanceof Lt&&V.value&&(le.has(V.name.name)||Ie&&Pt(V.name))||(ut=ko(V.left,V))&&(ut instanceof Xe||le.has(ut.name))||Ue&&(f?V.has_side_effects(D):ln(V)))&&(_e=V,V instanceof qe&&(se=!0)),Et(V)},function(V){se||(_e===V&&(se=!0),te===V&&(te=null))}),Y=new dr(function(V){if(se)return V;if(!re)return V!==K[ce]?V:(ce++,ce<K.length?void 0:(re=!0,V));if(V instanceof Ae&&V.name==jt.name)return--Te||(se=!0),ko(V,Y.parent())?V:(jt.replaced++,me.replaced--,Q.value);if(V instanceof Eo||V instanceof qe)return V});--ne>=0;){ne==0&&D.option("unused")&&Jt();var K=[];for(oe(R[ne]);X.length>0;){K=X.pop();var ce=0,Q=K[K.length-1],me=null,_e=null,te=null,pe=bt(Q);if(!(!pe||Ed(pe)||pe.has_side_effects(D))){var le=Dt(Q),Oe=Zt(pe);pe instanceof Ae&&le.set(pe.name,{def:pe.definition(),modified:!1});var Ie=pn(Q),ge=$t(),Ue=Q.may_throw(D),J=Q.name instanceof Nn,re=J,se=!1,Te=0,ye=!B||!re;if(!ye){for(let V=D.self().argnames.lastIndexOf(Q.name)+1;!se&&V<B.length;V++)B[V].transform(z);ye=!0}for(var At=ne;!se&&At<R.length;At++)R[At].transform(z);if(me){var jt=Q.name.definition();if(se&&jt.references.length-jt.replaced>Te)Te=!1;else{se=!1,ce=0,re=J;for(var At=ne;!se&&At<R.length;At++)R[At].transform(Y);me.single_use=!1}}Te&&!Bn(Q)&&R.splice(ne,1)}}}function Et(V){if(V instanceof qe)return V;if(V instanceof Xn){V.expression=V.expression.transform(z);for(var we=0,Be=V.body.length;!se&&we<Be;we++){var Me=V.body[we];if(Me instanceof Yr){if(!re){if(Me!==K[ce])continue;ce++}if(Me.expression=Me.expression.transform(z),!ge)break}}return se=!0,V}}function Mt(V,we){if(V.global)return!1;let Be=V.scope;for(;Be&&Be!==we;){if(Be.variables.has(V.name))return!0;Be=Be.parent_scope}return!1}function gt(V,we,Be){var Me=!1,ut=!(V instanceof qt);return we.walk(new Pn(function(rn,ft){if(Me)return!0;if(rn instanceof Ae&&(V.variables.has(rn.name)||Mt(rn.definition(),V))){var gn=rn.definition().scope;if(gn!==i){for(;gn=gn.parent_scope;)if(gn===i)return!0}return Me=!0}if((Be||ut)&&rn instanceof Vn)return Me=!0;if(rn instanceof qe&&!(rn instanceof qt)){var Tn=ut;return ut=!1,ft(),ut=Tn,!0}})),Me}function Ct(V){return!(V instanceof ht||In(V,Be=>{if(Be instanceof yr)return pr}))}function Jt(){var V,we=D.self();if(Uu(we)&&!we.name&&!we.uses_arguments&&!we.pinned()&&(V=D.parent())instanceof je&&V.expression===we&&V.args.every(Ct)){var Be=D.has_directive("use strict");Be&&!Ol(Be,we.body)&&(Be=!1);var Me=we.argnames.length;B=V.args.slice(Me);for(var ut=new Set,rn=Me;--rn>=0;){var ft=we.argnames[rn],gn=V.args[rn];const li=ft.definition&&ft.definition();if(!(li&&li.orig.length>1)&&(B.unshift(P(Lt,ft,{name:ft,value:gn})),!ut.has(ft.name)))if(ut.add(ft.name),ft instanceof ht){var Tn=V.args.slice(rn);Tn.every(fn=>!gt(we,fn,Be))&&X.unshift([P(Lt,ft,{name:ft.expression,value:P(St,V,{elements:Tn})})])}else gn?(gn instanceof Ge&&gn.pinned()||gt(we,gn,Be))&&(gn=null):gn=P(en,ft).transform(D),gn&&X.unshift([P(Lt,ft,{name:ft,value:gn})])}}}function oe(V){if(K.push(V),V instanceof st)!V.left.has_side_effects(D)&&!(V.right instanceof _n)&&X.push(K.slice()),oe(V.right);else if(V instanceof ae)oe(V.left),oe(V.right);else if(V instanceof je&&!sr(V,Ao))oe(V.expression),V.args.forEach(oe);else if(V instanceof Yr)oe(V.expression);else if(V instanceof tt)oe(V.condition),oe(V.consequent),oe(V.alternative);else if(V instanceof sn){var we=V.definitions.length,Be=we-200;for(Be<0&&(Be=0);Be<we;Be++)oe(V.definitions[Be])}else V instanceof ku?(oe(V.condition),V.body instanceof vn||oe(V.body)):V instanceof cr?V.value&&oe(V.value):V instanceof En?(V.init&&oe(V.init),V.condition&&oe(V.condition),V.step&&oe(V.step),V.body instanceof vn||oe(V.body)):V instanceof zn?(oe(V.object),V.body instanceof vn||oe(V.body)):V instanceof wt?(oe(V.condition),V.body instanceof vn||oe(V.body),V.alternative&&!(V.alternative instanceof vn)&&oe(V.alternative)):V instanceof lt?V.expressions.forEach(oe):V instanceof $e?oe(V.body):V instanceof Xn?(oe(V.expression),V.body.forEach(oe)):V instanceof Wt?(V.operator=="++"||V.operator=="--")&&X.push(K.slice()):V instanceof Lt&&V.value&&!(V.value instanceof _n)&&(X.push(K.slice()),oe(V.value));K.pop()}function ke(V,we,Be){var Me=z.parent(we);return Me instanceof st?Be&&!Me.logical&&!(Me.left instanceof Xe||le.has(Me.left.name))?ke(Me,we+1,Be):V:Me instanceof ae?Be&&(!Do.has(Me.operator)||Me.left===V)?ke(Me,we+1,Be):V:Me instanceof je||Me instanceof Yr?V:Me instanceof tt?Be&&Me.condition===V?ke(Me,we+1,Be):V:Me instanceof sn?ke(Me,we+1,!0):Me instanceof cr?Be?ke(Me,we+1,Be):V:Me instanceof wt?Be&&Me.condition===V?ke(Me,we+1,Be):V:Me instanceof Vr?V:Me instanceof lt?ke(Me,we+1,Me.tail_node()!==V):Me instanceof $e?ke(Me,we+1,!0):Me instanceof Xn||Me instanceof Lt?V:null}function de(V){var we=V.value;if(we instanceof Ae&&we.name!="arguments"){var Be=we.definition();if(!Be.undeclared)return me=Be}}function bt(V){if(V instanceof st&&V.logical)return!1;if(V instanceof Lt&&V.name instanceof wn){var we=V.name.definition();if(!Ol(V.name,we.orig))return;var Be=we.references.length-we.replaced;if(!Be)return;var Me=we.orig.length-we.eliminated;if(Me>1&&!(V.name instanceof Nn)||(Be>1?de(V):!D.exposed(we)))return P(Ae,V.name,V.name)}else{const ut=V instanceof st?V.left:V.expression;return!Xl(ut,ro)&&!Xl(ut,qo)&&ut}}function xt(V){return V instanceof st?V.right:V.value}function Dt(V){var we=new Map;if(V instanceof Wt)return we;var Be=new Pn(function(Me){for(var ut=Me;ut instanceof Xe;)ut=ut.expression;if(ut instanceof Ae){const rn=we.get(ut.name);(!rn||!rn.modified)&&we.set(ut.name,{def:ut.definition(),modified:oa(D,Be,Me,Me,0)})}});return xt(V).walk(Be),we}function Bn(V){if(V.name instanceof Nn){var we=D.parent(),Be=D.self().argnames,Me=Be.indexOf(V.name);if(Me<0)we.args.length=Math.min(we.args.length,Be.length-1);else{var ut=we.args;ut[Me]&&(ut[Me]=P(Je,ut[Me],{value:0}))}return!0}var rn=!1;return R[ne].transform(new dr(function(ft,gn,Tn){if(rn)return ft;if(ft===V||ft.body===V)return rn=!0,ft instanceof Lt?(ft.value=ft.name instanceof ro?P(en,ft.value):null,ft):Tn?Xt.skip:null},function(ft){if(ft instanceof lt)switch(ft.expressions.length){case 0:return null;case 1:return ft.expressions[0]}}))}function Zt(V){for(;V instanceof Xe;)V=V.expression;return V instanceof Ae&&V.definition().scope.get_defun_scope()===i&&!(s&&(le.has(V.name)||Q instanceof Wt||Q instanceof st&&!Q.logical&&Q.operator!="="))}function pn(V){return V instanceof Wt?$u.has(V.operator):xt(V).has_side_effects(D)}function $t(){if(Ie)return!1;if(me)return!0;if(pe instanceof Ae){var V=pe.definition();if(V.references.length-V.replaced==(Q instanceof Lt?1:2))return!0}return!1}function Pt(V){if(!V.definition)return!0;var we=V.definition();return we.orig.length==1&&we.orig[0]instanceof Si?!1:we.scope.get_defun_scope()!==i?!0:we.references.some(Be=>Be.scope.get_defun_scope()!==i)}function ln(V,we){if(V instanceof st)return ln(V.left,!0);if(V instanceof Wt)return ln(V.expression,!0);if(V instanceof Lt)return V.value&&ln(V.value);if(we){if(V instanceof zt||V instanceof Sn)return ln(V.expression,!0);if(V instanceof Ae)return V.definition().scope.get_defun_scope()!==i}return!1}function Ai(V,we){for(const{def:Be}of we.values()){const Me=V.find_variable(Be.name);if(Me){if(Me===Be)continue;return!0}}return!1}}function O(R){for(var D=[],B=0;B<R.length;){var X=R[B];X instanceof Ye&&X.body.every(ql)?(h=!0,O(X.body),R.splice(B,1,...X.body),B+=X.body.length):X instanceof Rt?(h=!0,R.splice(B,1)):X instanceof nr?D.indexOf(X.value)<0?(B++,D.push(X.value)):(h=!0,R.splice(B,1)):B++}}function A(R,D){var B=D.self(),X=te(R),ne=B instanceof Ge;const z=Math.min(R.length,500);for(var Y=z;--Y>=0;){var K=R[Y],ce=ge(Y),Q=R[ce];if(ne&&!Q&&K instanceof an){if(!K.value){h=!0,R.splice(Y,1);continue}if(K.value instanceof We&&K.value.operator=="void"){h=!0,R[Y]=P($e,K,{body:K.value.expression});continue}}if(K instanceof wt){let J,re;if(J=Ir(K.body),le(J)&&(re=Ie(K.body,J))){J.label&&Ko(J.label.thedef.references,J),h=!0,K=K.clone(),K.condition=K.condition.negate(D),K.body=P(Ye,K,{body:Vu(K.alternative).concat(Oe())}),K.alternative=P(Ye,K,{body:re}),R[Y]=K.transform(D);continue}if(J=Ir(K.alternative),le(J)&&(re=Ie(K.alternative,J))){J.label&&Ko(J.label.thedef.references,J),h=!0,K=K.clone(),K.body=P(Ye,K.body,{body:Vu(K.body).concat(Oe())}),K.alternative=P(Ye,K.alternative,{body:re}),R[Y]=K.transform(D);continue}}if(K instanceof wt&&K.body instanceof an){var me=K.body.value;if(!me&&!K.alternative&&(ne&&!Q||Q instanceof an&&!Q.value)){h=!0,R[Y]=P($e,K.condition,{body:K.condition});continue}if(me&&!K.alternative&&Q instanceof an&&Q.value){h=!0,K=K.clone(),K.alternative=Q,R[Y]=K.transform(D),R.splice(ce,1);continue}if(me&&!K.alternative&&(!Q&&ne&&X||Q instanceof an)){h=!0,K=K.clone(),K.alternative=Q||P(an,K,{value:null}),R[Y]=K.transform(D),Q&&R.splice(ce,1);continue}var _e=R[Ue(Y)];if(D.option("sequences")&&ne&&!K.alternative&&_e instanceof wt&&_e.body instanceof an&&ge(ce)==R.length&&Q instanceof $e){h=!0,K=K.clone(),K.alternative=P(Ye,Q,{body:[Q,P(an,Q,{value:null})]}),R[Y]=K.transform(D),R.splice(ce,1);continue}}}function te(J){for(var re=0,se=J.length;--se>=0;){var Te=J[se];if(Te instanceof wt&&Te.body instanceof an&&++re>1)return!0}return!1}function pe(J){return!J||J instanceof We&&J.operator=="void"}function le(J){if(!J)return!1;for(var re=Y+1,se=R.length;re<se;re++){var Te=R[re];if(Te instanceof Qr||Te instanceof Zr)return!1}var ye=J instanceof qr?D.loopcontrol_target(J):null;return J instanceof an&&ne&&pe(J.value)||J instanceof no&&B===of(ye)||J instanceof kr&&ye instanceof Ye&&B===ye}function Oe(){var J=R.slice(Y+1);return R.length=Y+1,J.filter(function(re){return re instanceof Qt?(R.push(re),!1):!0})}function Ie(J,re){var se=Vu(J);if(re===se[se.length-1])return se=se.slice(0,-1),re.value&&se.push(P($e,re.value,{body:re.value.expression})),se}function ge(J){for(var re=J+1,se=R.length;re<se;re++){var Te=R[re];if(!(Te instanceof Rn&&U(Te)))break}return re}function Ue(J){for(var re=J;--re>=0;){var se=R[re];if(!(se instanceof Rn&&U(se)))break}return re}}function I(R,D){for(var B,X=D.self(),ne=0,z=0,Y=R.length;ne<Y;ne++){var K=R[ne];if(K instanceof qr){var ce=D.loopcontrol_target(K);K instanceof kr&&!(ce instanceof Vr)&&of(ce)===X||K instanceof no&&of(ce)===X?K.label&&Ko(K.label.thedef.references,K):R[z++]=K}else R[z++]=K;if(Ir(K)){B=R.slice(ne+1);break}}R.length=z,h=z!=Y,B&&B.forEach(function(Q){wo(D,Q,R)})}function U(R){return R.definitions.every(D=>!D.value)}function L(R,D){if(R.length<2)return;var B=[],X=0;function ne(){if(B.length){var Q=nt(B[0],B);R[X++]=P($e,Q,{body:Q}),B=[]}}for(var z=0,Y=R.length;z<Y;z++){var K=R[z];if(K instanceof $e){B.length>=D.sequences_limit&&ne();var ce=K.body;B.length>0&&(ce=ce.drop_side_effect_free(D)),ce&&Kl(B,ce)}else K instanceof sn&&U(K)||K instanceof Qt||ne(),R[X++]=K}ne(),R.length=X,X!=Y&&(h=!0)}function b(R,D){if(!(R instanceof Ye))return R;for(var B=null,X=0,ne=R.body.length;X<ne;X++){var z=R.body[X];if(z instanceof Rn&&U(z))D.push(z);else{if(B||z instanceof Qr||z instanceof Zr)return!1;B=z}}return B}function _(R,D){function B(_e){X--,h=!0;var te=ne.body;return nt(te,[te,_e]).transform(D)}for(var X=0,ne,z=0;z<R.length;z++){var Y=R[z];if(ne&&(Y instanceof cr?Y.value=B(Y.value||P(en,Y).transform(D)):Y instanceof En?Y.init instanceof sn||In(ne.body,te=>{if(te instanceof qe)return!0;if(te instanceof ae&&te.operator==="in")return pr})||(Y.init?Y.init=B(Y.init):(Y.init=ne.body,X--,h=!0)):Y instanceof zn?!(Y.init instanceof Qr)&&!(Y.init instanceof Zr)&&(Y.object=B(Y.object)):Y instanceof wt?Y.condition=B(Y.condition):(Y instanceof Xn||Y instanceof _r)&&(Y.expression=B(Y.expression))),D.option("conditionals")&&Y instanceof wt){var K=[],ce=b(Y.body,K),Q=b(Y.alternative,K);if(ce!==!1&&Q!==!1&&K.length>0){var me=K.length;K.push(P(wt,Y,{condition:Y.condition,body:ce||P(Rt,Y.body),alternative:Q})),K.unshift(X,1),[].splice.apply(R,K),z+=me,X+=me+1,ne=null,h=!0;continue}}R[X++]=Y,ne=Y instanceof $e?Y:null}R.length=X}function g(R,D){if(R instanceof sn){var B=R.definitions[R.definitions.length-1];if(B.value instanceof Nt){var X;if(D instanceof st&&!D.logical?X=[D]:D instanceof lt&&(X=D.expressions.slice()),!!X){var ne=!1;do{var z=X[0];if(!(z instanceof st)||z.operator!="="||!(z.left instanceof Xe))break;var Y=z.left.expression;if(!(Y instanceof Ae)||B.name.name!=Y.name||!z.right.is_constant_expression(n))break;var K=z.left.property;if(K instanceof xe&&(K=K.evaluate(e)),K instanceof xe)break;K=""+K;var ce=e.option("ecma")<2015&&e.has_directive("use strict")?function(me){return me.key!=K&&me.key&&me.key.name!=K}:function(me){return me.key&&me.key.name!=K};if(!B.value.properties.every(ce))break;var Q=B.value.properties.filter(function(me){return me.key===K})[0];Q?Q.value=new lt({start:Q.start,expressions:[Q.value.clone(),z.right.clone()],end:Q.end}):B.value.properties.push(P(Yt,z,{key:K,value:z.right})),X.shift(),ne=!0}while(X.length);return ne&&X}}}}function C(R){for(var D,B=0,X=-1,ne=R.length;B<ne;B++){var z=R[B],Y=R[X];if(z instanceof sn)Y&&Y.TYPE==z.TYPE?(Y.definitions=Y.definitions.concat(z.definitions),h=!0):D&&D.TYPE==z.TYPE&&U(z)?(D.definitions=D.definitions.concat(z.definitions),h=!0):(R[++X]=z,D=z);else if(z instanceof cr)z.value=ce(z.value);else if(z instanceof En){var K=g(Y,z.init);K?(h=!0,z.init=K.length?nt(z.init,K):null,R[++X]=z):Y instanceof Rn&&(!z.init||z.init.TYPE==Y.TYPE)?(z.init&&(Y.definitions=Y.definitions.concat(z.init.definitions)),z.init=Y,R[X]=z,h=!0):D instanceof Rn&&z.init instanceof Rn&&U(z.init)?(D.definitions=D.definitions.concat(z.init.definitions),z.init=null,R[++X]=z,h=!0):R[++X]=z}else if(z instanceof zn)z.object=ce(z.object);else if(z instanceof wt)z.condition=ce(z.condition);else if(z instanceof $e){var K=g(Y,z.body);if(K){if(h=!0,!K.length)continue;z.body=nt(z.body,K)}R[++X]=z}else z instanceof Xn||z instanceof _r?z.expression=ce(z.expression):R[++X]=z}R.length=X+1;function ce(Q){R[++X]=z;var me=g(Y,Q);return me?(h=!0,me.length?nt(Q,me):Q instanceof lt?Q.tail_node().left:Q.left):Q}}}function Ky(t){for(var e,n=0;e=t.parent(n++);){if(e instanceof kn)return!1;if(e instanceof St||e instanceof Yt||e instanceof Nt)return!0}return!1}function af(t,e){for(const n of e.enclosed){if(e.variables.has(n.name))continue;const i=t.find_variable(n.name);if(i){if(i===n)continue;return!0}}return!1}function zy(t,e){if(t.orig.length===1&&e){const n=e.size(),i=t.name.length;return n>i}return!0}function Wy(t,e){if(e.in_computed_key())return t;const n=e.parent(),i=t.definition(),s=e.find_scope();let f=t.fixed_value();if(e.top_retain&&i.global&&e.top_retain(i)&&zy(i,f))return i.fixed=!1,i.single_use=!1,t;let h=i.single_use&&!(n instanceof je&&n.is_callee_pure(e)||sr(n,Ao))&&!(n instanceof Cn&&f instanceof Ge&&f.name);if(h&&f instanceof xe&&(h=!f.has_side_effects(e)&&!f.may_throw(e)),f instanceof yt&&i.scope!==t.scope)return t;if(h&&(f instanceof Ge||f instanceof yt)){if(pd(f,e))h=!1;else if(i.scope!==t.scope&&(i.escaped==1||jn(f,vs)||Ky(e)||!e.option("reduce_funcs")))h=!1;else if(Yl(e,i))h=!1;else if((i.scope!==t.scope||i.orig[0]instanceof Nn)&&(h=f.is_constant_expression(t.scope),h=="f")){var y=t.scope;do(y instanceof Qt||Uu(y))&&Er(y,vs);while(y=y.parent_scope)}}if(h&&(f instanceof Ge||f instanceof yt)&&(h=i.scope===t.scope&&!af(s,f)||n instanceof je&&n.expression===t&&!af(s,f)&&!(f.name&&f.name.definition().recursive_refs>0)),h&&f){if(f instanceof Gr&&(Er(f,xo),f=P(Ei,f,f)),f instanceof Qt&&(Er(f,xo),f=P(Ft,f,f)),i.recursive_refs>0&&f.name instanceof Si){const T=f.name.definition();let O=f.variables.get(f.name.name),A=O&&O.orig[0];A instanceof ii||(A=P(ii,f.name,f.name),A.scope=f,f.name=A,O=f.def_function(A)),In(f,I=>{I instanceof Ae&&I.definition()===T&&(I.thedef=O,O.references.push(I))})}return(f instanceof Ge||f instanceof yt)&&f.parent_scope!==s&&(f=f.clone(!0,e.get_toplevel()),s.add_child_scope(f)),f.optimize(e)}if(f){let T;if(f instanceof Vn)!(i.orig[0]instanceof Nn)&&i.references.every(O=>i.scope===O.scope)&&(T=f);else{var E=f.evaluate(e);E!==f&&(e.option("unsafe_regexp")||!(E instanceof RegExp))&&(T=ir(E,f))}if(T){const O=t.size(e),A=T.size(e);let I=0;if(e.option("unused")&&!e.exposed(i)&&(I=(O+2+f.size(e))/(i.references.length-i.assignments)),A<=O+I)return T}}return t}function Xy(t,e){if(e.in_computed_key())return t;var n=t.expression,i=n,s=t.args.every(z=>!(z instanceof ht));if(e.option("reduce_vars")&&i instanceof Ae&&!sr(t,Ao)){const z=i.fixed_value();if(pd(z,e)||!e.toplevel.funcs&&n.definition().global)return t;i=z}var f=i instanceof Ge,h=f&&i.body[0],y=f&&!i.is_generator&&!i.async,E=y&&e.option("inline")&&!t.is_callee_pure(e);if(E&&h instanceof an){let z=h.value;if(!z||z.is_constant_expression()){z?z=z.clone(!0):z=P(en,t);const Y=t.args.concat(z);return nt(t,Y).optimize(e)}if(i.argnames.length===1&&i.argnames[0]instanceof Nn&&t.args.length<2&&!(t.args[0]instanceof ht)&&z instanceof Ae&&z.name===i.argnames[0].name){const Y=(t.args[0]||P(en)).optimize(e);let K;return Y instanceof Xe&&(K=e.parent())instanceof je&&K.expression===t?nt(t,[P(Je,t,{value:0}),Y]):Y}}if(E){var T,O,A=-1;let z,Y,K;if(s&&!i.uses_arguments&&!(e.parent()instanceof yt)&&!(i.name&&i instanceof Ft)&&(Y=_(h))&&(n===i||sr(t,Ll)||e.option("unused")&&(z=n.definition()).references.length==1&&!Yl(e,z)&&i.is_constant_expression(n.scope))&&!sr(t,Fl|Ao)&&!i.contains_this()&&R()&&(K=e.find_scope())&&!af(K,i)&&!function(){let Q=0,me;for(;me=e.parent(Q++);){if(me instanceof wr)return!0;if(me instanceof vn)break}return!1}()&&!(T instanceof yt))return Er(i,xo),K.add_child_scope(i),nt(t,ne(Y)).optimize(e)}if(E&&sr(t,Ll))return Er(i,xo),i=P(i.CTOR===Qt?Ft:i.CTOR,i,i),i=i.clone(!0),i.figure_out_scope({},{parent_scope:e.find_scope(),toplevel:e.get_toplevel()}),P(je,t,{expression:i,args:t.args}).optimize(e);if(y&&e.option("side_effects")&&i.body.every(so)){var U=t.args.concat(P(en,t));return nt(t,U).optimize(e)}if(e.option("negate_iife")&&e.parent()instanceof $e&&Wl(t))return t.negate(e,!0);var L=t.evaluate(e);if(L!==t)return L=ir(L,t).optimize(e),Sr(e,L,t);return t;function b(z){if(!z)return P(en,t);if(z instanceof an)return z.value?z.value.clone(!0):P(en,t);if(z instanceof $e)return P(We,z,{operator:"void",expression:z.body.clone(!0)})}function _(z){var Y=i.body,K=Y.length;if(e.option("inline")<3)return K==1&&b(z);z=null;for(var ce=0;ce<K;ce++){var Q=Y[ce];if(Q instanceof Rn){if(z&&!Q.definitions.every(me=>!me.value))return!1}else{if(z)return!1;Q instanceof Rt||(z=Q)}}return b(z)}function g(z,Y){for(var K=0,ce=i.argnames.length;K<ce;K++){var Q=i.argnames[K];if(Q instanceof wr){if(jn(Q.left,ao))continue;return!1}if(Q instanceof Vt)return!1;if(Q instanceof ht){if(jn(Q.expression,ao))continue;return!1}if(!jn(Q,ao)){if(!Y||z.has(Q.name)||ld.has(Q.name)||T.conflicting_def(Q.name))return!1;O&&O.push(Q.definition())}}return!0}function C(z,Y){for(var K=i.body.length,ce=0;ce<K;ce++){var Q=i.body[ce];if(Q instanceof Rn){if(!Y)return!1;for(var me=Q.definitions.length;--me>=0;){var _e=Q.definitions[me].name;if(_e instanceof Vt||z.has(_e.name)||ld.has(_e.name)||T.conflicting_def(_e.name))return!1;O&&O.push(_e.definition())}}}return!0}function R(){var z=new Set;do if(T=e.parent(++A),T.is_block_scope()&&T.block_scope&&T.block_scope.variables.forEach(function(ce){z.add(ce.name)}),T instanceof Jr)T.argname&&z.add(T.argname.name);else if(T instanceof Vr)O=[];else if(T instanceof Ae&&T.fixed_value()instanceof qe)return!1;while(!(T instanceof qe));var Y=!(T instanceof Kt)||e.toplevel.vars,K=e.option("inline");return!C(z,K>=3&&Y)||!g(z,K>=2&&Y)?!1:!O||O.length==0||!hd(i,O)}function D(z,Y,K,ce){var Q=K.definition();T.variables.has(K.name)||(T.variables.set(K.name,Q),T.enclosed.push(Q),z.push(P(Lt,K,{name:K,value:null})));var _e=P(Ae,K,K);Q.references.push(_e),ce&&Y.push(P(st,t,{operator:"=",logical:!1,left:_e,right:ce.clone()}))}function B(z,Y){for(var K=i.argnames.length,ce=t.args.length;--ce>=K;)Y.push(t.args[ce]);for(ce=K;--ce>=0;){var Q=i.argnames[ce],me=t.args[ce];if(jn(Q,ao)||!Q.name||T.conflicting_def(Q.name))me&&Y.push(me);else{var _e=P(Vi,Q,Q);Q.definition().orig.push(_e),!me&&O&&(me=P(en,t)),D(z,Y,_e,me)}}z.reverse(),Y.reverse()}function X(z,Y){for(var K=Y.length,ce=0,Q=i.body.length;ce<Q;ce++){var me=i.body[ce];if(me instanceof Rn)for(var _e=0,te=me.definitions.length;_e<te;_e++){var pe=me.definitions[_e],le=pe.name;if(D(z,Y,le,pe.value),O&&i.argnames.every(ge=>ge.name!=le.name)){var Oe=i.variables.get(le.name),Ie=P(Ae,le,le);Oe.references.push(Ie),Y.splice(K++,0,P(st,pe,{operator:"=",logical:!1,left:Ie,right:P(en,le)}))}}}}function ne(z){var Y=[],K=[];if(B(Y,K),X(Y,K),K.push(z),Y.length){const ce=T.body.indexOf(e.parent(A-1))+1;T.body.splice(ce,0,P(Rn,i,{definitions:Y}))}return K.map(ce=>ce.clone(!0))}}(function(t){function e(n,i){if(n instanceof xe)return n instanceof Tt||(n=n.clone(!0)),P(n.CTOR,i,n);if(Array.isArray(n))return P(St,i,{elements:n.map(function(h){return e(h,i)})});if(n&&typeof n=="object"){var s=[];for(var f in n)tr(n,f)&&s.push(P(Yt,i,{key:f,value:e(n[f],i)}));return P(Nt,i,{properties:s})}return ir(n,i)}Kt.DEFMETHOD("resolve_defines",function(n){return n.option("global_defs")?(this.figure_out_scope({ie8:n.option("ie8")}),this.transform(new dr(function(i){var s=i._find_defs(n,"");if(s){for(var f=0,h=i,y;(y=this.parent(f++))&&!(!(y instanceof Xe)||y.expression!==h);)h=y;if(!ko(h,y))return s}}))):this}),t(xe,mr),t(_n,function(n,i){return this.expression._find_defs(n,i)}),t(zt,function(n,i){return this.expression._find_defs(n,"."+this.property+i)}),t(wn,function(){this.global()}),t(Ae,function(n,i){if(this.global()){var s=n.option("global_defs"),f=this.name+i;if(tr(s,f))return e(s[f],this)}}),t(Bi,function(n,i){var s=n.option("global_defs"),f="import.meta"+i;if(tr(s,f))return e(s[f],this)})})(function(t,e){t.DEFMETHOD("_find_defs",e)});class Sd extends Pn{constructor(e,{false_by_default:n=!1,mangle_options:i=!1}){super(),e.defaults!==void 0&&!e.defaults&&(n=!0),this.options=mi(e,{arguments:!1,arrows:!n,booleans:!n,booleans_as_integers:!1,collapse_vars:!n,comparisons:!n,computed_props:!n,conditionals:!n,dead_code:!n,defaults:!0,directives:!n,drop_console:!1,drop_debugger:!n,ecma:5,evaluate:!n,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!n,hoist_vars:!1,ie8:!1,if_return:!n,inline:!n,join_vars:!n,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,lhs_constants:!n,loops:!n,module:!1,negate_iife:!n,passes:1,properties:!n,pure_getters:!n&&"strict",pure_funcs:null,pure_new:!1,reduce_funcs:!n,reduce_vars:!n,sequences:!n,side_effects:!n,switches:!n,top_retain:null,toplevel:!!(e&&e.top_retain),typeofs:!n,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_symbols:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!n,warnings:!1},!0);var s=this.options.global_defs;if(typeof s=="object")for(var f in s)f[0]==="@"&&tr(s,f)&&(s[f.slice(1)]=ls(s[f],{expression:!0}));this.options.inline===!0&&(this.options.inline=3);var h=this.options.pure_funcs;typeof h=="function"?this.pure_funcs=h:this.pure_funcs=h?function(O){return!h.includes(O.expression.print_to_string())}:er;var y=this.options.top_retain;y instanceof RegExp?this.top_retain=function(O){return y.test(O.name)}:typeof y=="function"?this.top_retain=y:y&&(typeof y=="string"&&(y=y.split(/,/)),this.top_retain=function(O){return y.includes(O.name)}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var E=this.options.toplevel;this.toplevel=typeof E=="string"?{funcs:/funcs/.test(E),vars:/vars/.test(E)}:{funcs:E,vars:E};var T=this.options.sequences;this.sequences_limit=T==1?800:T|0,this.evaluated_regexps=new Map,this._toplevel=void 0,this._mangle_options=i&&Fu(i)}mangle_options(){var e=this._mangle_options&&this._mangle_options.nth_identifier||gs,n=this._mangle_options&&this._mangle_options.module||this.option("module");return{ie8:this.option("ie8"),nth_identifier:e,module:n}}option(e){return this.options[e]}exposed(e){if(e.export)return!0;if(e.global){for(var n=0,i=e.orig.length;n<i;n++)if(!this.toplevel[e.orig[n]instanceof Si?"funcs":"vars"])return!0}return!1}in_boolean_context(){if(!this.option("booleans"))return!1;for(var e=this.self(),n=0,i;i=this.parent(n);n++){if(i instanceof $e||i instanceof tt&&i.condition===e||i instanceof ku&&i.condition===e||i instanceof En&&i.condition===e||i instanceof wt&&i.condition===e||i instanceof We&&i.operator=="!"&&i.expression===e)return!0;if(i instanceof ae&&(i.operator=="&&"||i.operator=="||"||i.operator=="??")||i instanceof tt||i.tail_node()===e)e=i;else return!1}}in_32_bit_context(){if(!this.option("evaluate"))return!1;for(var e=this.self(),n=0,i;i=this.parent(n);n++){if(i instanceof ae&&Zl.has(i.operator))return!0;if(i instanceof We)return i.operator==="~";if(i instanceof ae&&(i.operator=="&&"||i.operator=="||"||i.operator=="??")||i instanceof tt&&i.condition!==e||i.tail_node()===e)e=i;else return!1}}in_computed_key(){if(!this.option("evaluate"))return!1;for(var e=this.self(),n=0,i;i=this.parent(n);n++)if(i instanceof un&&i.key===e)return!0;return!1}get_toplevel(){return this._toplevel}compress(e){e=e.resolve_defines(this),this._toplevel=e,this.option("expression")&&this._toplevel.process_expression(!0);for(var n=+this.options.passes||1,i=1/0,s=!1,f=this.mangle_options(),h=0;h<n;h++)if(this._toplevel.figure_out_scope(f),h===0&&this.option("drop_console")&&(this._toplevel=this._toplevel.drop_console(this.option("drop_console"))),(h>0||this.option("reduce_vars"))&&this._toplevel.reset_opt_flags(this),this._toplevel=this._toplevel.transform(this),n>1){let y=0;if(In(this._toplevel,()=>{y++}),y<i)i=y,s=!1;else{if(s)break;s=!0}}return this.option("expression")&&this._toplevel.process_expression(!1),e=this._toplevel,this._toplevel=void 0,e}before(e,n){if(jn(e,xo))return e;var i=!1;e instanceof qe&&(e=e.hoist_properties(this),e=e.hoist_declarations(this),i=!0),n(e,this),n(e,this);var s=e.optimize(this);return i&&s instanceof qe&&(s.drop_unused(this),n(s,this)),s===e&&Er(s,xo),s}is_lhs(){const e=this.stack[this.stack.length-1],n=this.stack[this.stack.length-2];return ko(e,n)}}function Ze(t,e){t.DEFMETHOD("optimize",function(n){var i=this;if(jn(i,Hl)||n.has_directive("use asm"))return i;var s=e(i,n);return Er(s,Hl),s})}Ze(xe,function(t){return t}),Kt.DEFMETHOD("drop_console",function(t){var e=Array.isArray(t);return this.transform(new dr(function(n){if(n.TYPE==="Call"){var i=n.expression;if(i instanceof Xe&&!(e&&t.indexOf(i.property)===-1)){for(var s=i.expression;s.expression;)s=s.expression;if(si(s)&&s.name=="console")return P(en,n)}}}))}),xe.DEFMETHOD("equivalent_to",function(t){return Cy(this,t)}),qe.DEFMETHOD("process_expression",function(t,e){var n=this,i=new dr(function(s){if(t&&s instanceof $e)return P(an,s,{value:s.body});if(!t&&s instanceof an){if(e){var f=s.value&&s.value.drop_side_effect_free(e,!0);return f?P($e,s,{body:f}):P(Rt,s)}return P($e,s,{body:s.value||P(We,s,{operator:"void",expression:P(Je,s,{value:0})})})}if(s instanceof yt||s instanceof Ge&&s!==n)return s;if(s instanceof vn){var h=s.body.length-1;h>=0&&(s.body[h]=s.body[h].transform(i))}else s instanceof wt?(s.body=s.body.transform(i),s.alternative&&(s.alternative=s.alternative.transform(i))):s instanceof _r&&(s.body=s.body.transform(i));return s});n.transform(i)}),Kt.DEFMETHOD("reset_opt_flags",function(t){const e=this,n=t.option("reduce_vars"),i=new Pn(function(s,f){if(ra(s,Ry),n)return t.top_retain&&s instanceof Qt&&i.parent()===e&&Er(s,Gl),s.reduce_vars(i,f,t)});i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=new Map,i.defs_to_safe_ids=new Map,e.walk(i)}),pt.DEFMETHOD("fixed_value",function(){var t=this.thedef.fixed;return!t||t instanceof xe?t:t()}),Ae.DEFMETHOD("is_immutable",function(){var t=this.definition().orig;return t.length==1&&t[0]instanceof ii});function sf(t,e){for(var n,i=0;(n=t.parent(i++))&&!(n instanceof qe);)if(n instanceof Jr&&n.argname){n=n.argname.definition().scope;break}return n.find_variable(e)}var qy=Ot("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");Ae.DEFMETHOD("is_declared",function(t){return!this.definition().undeclared||t.option("unsafe")&&qy.has(this.name)});var Yy=new Set(["use asm","use strict"]);Ze(nr,function(t,e){return e.option("directives")&&(!Yy.has(t.value)||e.has_directive(t.value)!==t)?P(Rt,t):t}),Ze(Pi,function(t,e){return e.option("drop_debugger")?P(Rt,t):t}),Ze(Zn,function(t,e){return t.body instanceof kr&&e.loopcontrol_target(t.body)===t.body?P(Rt,t):t.label.references.length==0?t.body:t}),Ze(vn,function(t,e){return Hu(t.body,e),t});function Jy(t){return!(t instanceof Qr||t instanceof Zr||t instanceof yt)}Ze(Ye,function(t,e){switch(Hu(t.body,e),t.body.length){case 1:if(!e.has_directive("use strict")&&e.parent()instanceof wt&&Jy(t.body[0])||ql(t.body[0]))return t.body[0];break;case 0:return P(Rt,t)}return t});function uf(t,e){return Hu(t.body,e),e.option("side_effects")&&t.body.length==1&&t.body[0]===e.has_directive("use strict")&&(t.body.length=0),t}Ze(Ge,uf),qe.DEFMETHOD("hoist_declarations",function(t){var e=this;if(t.has_directive("use asm"))return e;var n=t.option("hoist_funs"),i=t.option("hoist_vars");if(n||i){var s=[],f=[],h=new Map,y=0,E=0;In(e,_=>{if(_ instanceof qe&&_!==e)return!0;if(_ instanceof Rn)return++E,!0}),i=i&&E>1;var T=new dr(function(g){if(g!==e){if(g instanceof nr)return s.push(g),P(Rt,g);if(n&&g instanceof Qt&&!(T.parent()instanceof Cn)&&T.parent()===e)return f.push(g),P(Rt,g);if(i&&g instanceof Rn&&!g.definitions.some(B=>B.name instanceof Vt)){g.definitions.forEach(function(B){h.set(B.name.name,B),++y});var C=g.to_assignments(t),R=T.parent();if(R instanceof zn&&R.init===g){if(C==null){var D=g.definitions[0].name;return P(Ae,D,D)}return C}return R instanceof En&&R.init===g?C:C?P($e,g,{body:C}):P(Rt,g)}if(g instanceof qe)return g}});if(e=e.transform(T),y>0){var O=[];const _=e instanceof Ge,g=_?e.args_as_names():null;if(h.forEach((C,R)=>{_&&g.some(D=>D.name===C.name.name)?h.delete(R):(C=C.clone(),C.value=null,O.push(C),h.set(R,C))}),O.length>0){for(var A=0;A<e.body.length;){if(e.body[A]instanceof $e){var I=e.body[A].body,U,L;if(I instanceof st&&I.operator=="="&&(U=I.left)instanceof pt&&h.has(U.name)){var b=h.get(U.name);if(b.value)break;b.value=I.right,Ko(O,b),O.push(b),e.body.splice(A,1);continue}if(I instanceof lt&&(L=I.expressions[0])instanceof st&&L.operator=="="&&(U=L.left)instanceof pt&&h.has(U.name)){var b=h.get(U.name);if(b.value)break;b.value=L.right,Ko(O,b),O.push(b),e.body[A].body=nt(I,I.expressions.slice(1));continue}}if(e.body[A]instanceof Rt){e.body.splice(A,1);continue}if(e.body[A]instanceof Ye){e.body.splice(A,1,...e.body[A].body);continue}break}O=P(Rn,e,{definitions:O}),f.push(O)}}e.body=s.concat(f,e.body)}return e}),qe.DEFMETHOD("hoist_properties",function(t){var e=this;if(!t.option("hoist_props")||t.has_directive("use asm"))return e;var n=e instanceof Kt&&t.top_retain||vt,i=new Map,s=new dr(function(f,h){if(f instanceof Lt){const y=f.name;let E,T;if(y.scope===e&&(E=y.definition()).escaped!=1&&!E.assignments&&!E.direct_access&&!E.single_use&&!t.exposed(E)&&!n(E)&&(T=y.fixed_value())===f.value&&T instanceof Nt&&!T.properties.some(O=>O instanceof ht||O.computed_key())){h(f,this);const O=new Map,A=[];return T.properties.forEach(({key:I,value:U})=>{const L=s.find_scope(),b=e.create_symbol(y.CTOR,{source:y,scope:L,conflict_scopes:new Set([L,...y.definition().references.map(_=>_.scope)]),tentative_name:y.name+"_"+I});O.set(String(I),b.definition()),A.push(P(Lt,f,{name:b,value:U}))}),i.set(E.id,O),Xt.splice(A)}}else if(f instanceof Xe&&f.expression instanceof Ae){const y=i.get(f.expression.definition().id);if(y){const E=y.get(String(ud(f.property))),T=P(Ae,f,{name:E.name,scope:f.expression.scope,thedef:E});return T.reference({}),T}}});return e.transform(s)}),Ze($e,function(t,e){if(e.option("side_effects")){var n=t.body,i=n.drop_side_effect_free(e,!0);if(!i)return P(Rt,t);if(i!==n)return P($e,t,{body:i})}return t}),Ze(Fi,function(t,e){return e.option("loops")?P(En,t,t).optimize(e):t}),Ze(_i,function(t,e){if(!e.option("loops"))return t;var n=t.condition.tail_node().evaluate(e);if(!(n instanceof xe)){if(n)return P(En,t,{body:P(Ye,t.body,{body:[t.body,P($e,t.condition,{body:t.condition})]})}).optimize(e);if(!zl(t,e.parent()))return P(Ye,t.body,{body:[t.body,P($e,t.condition,{body:t.condition})]}).optimize(e)}return t});function Td(t,e){var n=t.body instanceof Ye?t.body.body[0]:t.body;if(e.option("dead_code")&&s(n)){var i=[];return t.init instanceof kn?i.push(t.init):t.init&&i.push(P($e,t.init,{body:t.init})),t.condition&&i.push(P($e,t.condition,{body:t.condition})),wo(e,t.body,i),P(Ye,t,{body:i})}return n instanceof wt&&(s(n.body)?(t.condition?t.condition=P(ae,t.condition,{left:t.condition,operator:"&&",right:n.condition.negate(e)}):t.condition=n.condition.negate(e),f(n.alternative)):s(n.alternative)&&(t.condition?t.condition=P(ae,t.condition,{left:t.condition,operator:"&&",right:n.condition}):t.condition=n.condition,f(n.body))),t;function s(h){return h instanceof kr&&e.loopcontrol_target(h)===e.self()}function f(h){h=Vu(h),t.body instanceof Ye?(t.body=t.body.clone(),t.body.body=h.concat(t.body.body.slice(1)),t.body=t.body.transform(e)):t.body=P(Ye,t.body,{body:h}).transform(e),t=Td(t,e)}}Ze(En,function(t,e){if(!e.option("loops"))return t;if(e.option("side_effects")&&t.init&&(t.init=t.init.drop_side_effect_free(e)),t.condition){var n=t.condition.evaluate(e);if(!(n instanceof xe)){if(n)t.condition=null;else if(!e.option("dead_code")){var i=t.condition;t.condition=ir(n,t.condition),t.condition=Ki(t.condition.transform(e),i)}}if(e.option("dead_code")&&(n instanceof xe&&(n=t.condition.tail_node().evaluate(e)),!n)){var s=[];return wo(e,t.body,s),t.init instanceof kn?s.push(t.init):t.init&&s.push(P($e,t.init,{body:t.init})),s.push(P($e,t.condition,{body:t.condition})),P(Ye,t,{body:s}).optimize(e)}}return Td(t,e)}),Ze(wt,function(t,e){if(so(t.alternative)&&(t.alternative=null),!e.option("conditionals"))return t;var n=t.condition.evaluate(e);if(!e.option("dead_code")&&!(n instanceof xe)){var i=t.condition;t.condition=ir(n,i),t.condition=Ki(t.condition.transform(e),i)}if(e.option("dead_code"))if(n instanceof xe&&(n=t.condition.tail_node().evaluate(e)),n){if(!(n instanceof xe)){var s=[];return s.push(P($e,t.condition,{body:t.condition})),s.push(t.body),t.alternative&&wo(e,t.alternative,s),P(Ye,t,{body:s}).optimize(e)}}else{var s=[];return wo(e,t.body,s),s.push(P($e,t.condition,{body:t.condition})),t.alternative&&s.push(t.alternative),P(Ye,t,{body:s}).optimize(e)}var f=t.condition.negate(e),h=t.condition.size(),y=f.size(),E=y<h;if(t.alternative&&E){E=!1,t.condition=f;var T=t.body;t.body=t.alternative||P(Rt,t),t.alternative=T}if(so(t.body)&&so(t.alternative))return P($e,t.condition,{body:t.condition.clone()}).optimize(e);if(t.body instanceof $e&&t.alternative instanceof $e)return P($e,t,{body:P(tt,t,{condition:t.condition,consequent:t.body.body,alternative:t.alternative.body})}).optimize(e);if(so(t.alternative)&&t.body instanceof $e)return h===y&&!E&&t.condition instanceof ae&&t.condition.operator=="||"&&(E=!0),E?P($e,t,{body:P(ae,t,{operator:"||",left:f,right:t.body.body})}).optimize(e):P($e,t,{body:P(ae,t,{operator:"&&",left:t.condition,right:t.body.body})}).optimize(e);if(t.body instanceof Rt&&t.alternative instanceof $e)return P($e,t,{body:P(ae,t,{operator:"||",left:t.condition,right:t.alternative.body})}).optimize(e);if(t.body instanceof cr&&t.alternative instanceof cr&&t.body.TYPE==t.alternative.TYPE)return P(t.body.CTOR,t,{value:P(tt,t,{condition:t.condition,consequent:t.body.value||P(en,t.body),alternative:t.alternative.value||P(en,t.alternative)}).transform(e)}).optimize(e);if(t.body instanceof wt&&!t.body.alternative&&!t.alternative&&(t=P(wt,t,{condition:P(ae,t.condition,{operator:"&&",left:t.condition,right:t.body.condition}),body:t.body.body,alternative:null})),Ir(t.body)&&t.alternative){var O=t.alternative;return t.alternative=null,P(Ye,t,{body:[t,O]}).optimize(e)}if(Ir(t.alternative)){var s=t.body;return t.body=t.alternative,t.condition=E?f:t.condition.negate(e),t.alternative=null,P(Ye,t,{body:[t,s]}).optimize(e)}return t}),Ze(Xn,function(t,e){if(!e.option("switches"))return t;var n,i=t.expression.evaluate(e);if(!(i instanceof xe)){var s=t.expression;t.expression=ir(i,s),t.expression=Ki(t.expression.transform(e),s)}if(!e.option("dead_code"))return t;i instanceof xe&&(i=t.expression.tail_node().evaluate(e));for(var f=[],h=[],y,E,T=0,O=t.body.length;T<O&&!E;T++){if(n=t.body[T],n instanceof Eo)y?L(n,h[h.length-1]):y=n;else if(!(i instanceof xe)){var A=n.expression.evaluate(e);if(!(A instanceof xe)&&A!==i){L(n,h[h.length-1]);continue}if(A instanceof xe&&(A=n.expression.tail_node().evaluate(e)),A===i&&(E=n,y)){var I=h.indexOf(y);h.splice(I,1),L(y,h[I-1]),y=null}}h.push(n)}for(;T<O;)L(t.body[T++],h[h.length-1]);t.body=h;let U=y||E;if(y=null,E=null,h.every((D,B)=>(D===U||D.expression instanceof Tt)&&(D.body.length===0||Ir(D)||h.length-1===B)))for(let D=0;D<h.length;D++){const B=h[D];for(let X=D+1;X<h.length;X++){const ne=h[X];if(ne.body.length===0)continue;const z=X===h.length-1,Y=b(ne,B,!1);if(Y||z&&b(ne,B,!0)){!Y&&z&&ne.body.push(P(kr));let K=X-1,ce=0;for(;K>D&&R(h[K--]);)ce++;const Q=h.splice(X-ce,1+ce);h.splice(D+1,0,...Q),D+=Q.length}}}for(let D=0;D<h.length;D++){let B=h[D];if(B.body.length!==0&&Ir(B))for(let X=D+1;X<h.length;D++,X++){let ne=h[X];if(ne.body.length!==0){if(b(ne,B,!1)||X===h.length-1&&b(ne,B,!0)){B.body=[],B=ne;continue}break}}}{let D=h.length-1;for(;D>=0;D--){let B=h[D].body;if(C(B[B.length-1],e)&&B.pop(),!R(h[D]))break}if(D++,!U||h.indexOf(U)>=D)for(let B=h.length-1;B>=D;B--){let X=h[B];if(X===U)U=null,h.pop();else if(!X.expression.has_side_effects(e))h.pop();else break}}e:if(U){let D=h.indexOf(U),B=D;for(;B<h.length-1&&R(h[B]);B++);if(B<h.length-1)break e;let X=h.length-1;for(;X>=0;X--){let ne=h[X];if(ne!==U&&ne.expression.has_side_effects(e))break}if(B>X){let ne=D-1;for(;ne>=0&&R(h[ne]);ne--);let z=Math.max(X,ne)+1,Y=D;X>D?(Y=X,h[X].body=h[B].body):U.body=h[B].body,h.splice(Y+1,B-Y),h.splice(z,D-z)}}e:if(U){let D=h.findIndex(z=>!R(z)),B;if(D===h.length-1){let z=h[D];if(g(t))break e;B=P(Ye,z,{body:z.body}),z.body=[]}else if(D!==-1)break e;if(!h.find(z=>z!==U&&z.expression.has_side_effects(e)))return P(Ye,t,{body:f.concat(_(t.expression),U.expression?_(U.expression):[],B||[])}).optimize(e);const ne=h.indexOf(U);if(h.splice(ne,1),U=null,B)return P(Ye,t,{body:f.concat(t,B)}).optimize(e)}if(h.length>0&&(h[0].body=f.concat(h[0].body)),h.length==0)return P(Ye,t,{body:f.concat(_(t.expression))}).optimize(e);if(h.length==1&&!g(t)){let D=h[0];return P(wt,t,{condition:P(ae,t,{operator:"===",left:t.expression,right:D.expression}),body:P(Ye,D,{body:D.body}),alternative:null}).optimize(e)}if(h.length===2&&U&&!g(t)){let D=h[0]===U?h[1]:h[0],B=U.expression&&_(U.expression);if(Ir(h[0])){let Y=h[0];return C(Y.body[Y.body.length-1],e)&&Y.body.pop(),P(wt,t,{condition:P(ae,t,{operator:"===",left:t.expression,right:D.expression}),body:P(Ye,D,{body:D.body}),alternative:P(Ye,U,{body:[].concat(B||[],U.body)})}).optimize(e)}let X="===",ne=P(Ye,D,{body:D.body}),z=P(Ye,U,{body:[].concat(B||[],U.body)});if(h[0]===U){X="!==";let Y=z;z=ne,ne=Y}return P(Ye,t,{body:[P(wt,t,{condition:P(ae,t,{operator:X,left:t.expression,right:D.expression}),body:ne,alternative:null})].concat(z)}).optimize(e)}return t;function L(D,B){B&&!Ir(B)?B.body=B.body.concat(D.body):wo(e,D,f)}function b(D,B,X){let ne=D.body,z=B.body;if(X&&(ne=ne.concat(P(kr))),ne.length!==z.length)return!1;let Y=P(Ye,D,{body:ne}),K=P(Ye,B,{body:z});return Y.equivalent_to(K)}function _(D){return P($e,D,{body:D})}function g(D){let B=!1,X=new Pn(ne=>{if(B||ne instanceof Ge||ne instanceof $e)return!0;if(!C(ne,X))return;let z=X.parent();z instanceof Mi&&z.body[z.body.length-1]===ne||(B=!0)});return D.walk(X),B}function C(D,B){return D instanceof kr&&B.loopcontrol_target(D)===t}function R(D){return!Ir(D)&&!P(Ye,D,{body:D.body}).has_side_effects(e)}}),Ze(br,function(t,e){if(t.bcatch&&t.bfinally&&t.bfinally.body.every(so)&&(t.bfinally=null),e.option("dead_code")&&t.body.body.every(so)){var n=[];return t.bcatch&&wo(e,t.bcatch,n),t.bfinally&&n.push(...t.bfinally.body),P(Ye,t,{body:n}).optimize(e)}return t}),sn.DEFMETHOD("to_assignments",function(t){var e=t.option("reduce_vars"),n=[];for(const s of this.definitions){if(s.value){var i=P(Ae,s.name,s.name);n.push(P(st,s,{operator:"=",logical:!1,left:i,right:s.value})),e&&(i.definition().fixed=!1)}const f=s.name.definition();f.eliminated++,f.replaced--}return n.length==0?null:nt(this,n)}),Ze(sn,function(t){return t.definitions.length==0?P(Rt,t):t}),Ze(Lt,function(t,e){return t.name instanceof qo&&t.value!=null&&ui(t.value,e)&&(t.value=null),t}),Ze(Rr,function(t){return t}),Ze(je,function(t,e){var n=t.expression,i=n;xd(t.args);var s=t.args.every(Q=>!(Q instanceof ht));e.option("reduce_vars")&&i instanceof Ae&&(i=i.fixed_value());var f=i instanceof Ge;if(f&&i.pinned())return t;if(e.option("unused")&&s&&f&&!i.uses_arguments){for(var h=0,y=0,E=0,T=t.args.length;E<T;E++){if(i.argnames[E]instanceof ht){if(jn(i.argnames[E].expression,ao))for(;E<T;){var O=t.args[E++].drop_side_effect_free(e);O&&(t.args[h++]=O)}else for(;E<T;)t.args[h++]=t.args[E++];y=h;break}var A=E>=i.argnames.length;if(A||jn(i.argnames[E],ao)){var O=t.args[E].drop_side_effect_free(e);if(O)t.args[h++]=O;else if(!A){t.args[h++]=P(Je,t.args[E],{value:0});continue}}else t.args[h++]=t.args[E];y=h}t.args.length=y}if(e.option("unsafe")&&!n.contains_optional()){if(n instanceof zt&&n.start.value==="Array"&&n.property==="from"&&t.args.length===1){const[Q]=t.args;if(Q instanceof St)return P(St,Q,{elements:Q.elements}).optimize(e)}if(si(n))switch(n.name){case"Array":if(t.args.length!=1)return P(St,t,{elements:t.args}).optimize(e);if(t.args[0]instanceof Je&&t.args[0].value<=11){const Q=[];for(let me=0;me<t.args[0].value;me++)Q.push(new Nr);return new St({elements:Q})}break;case"Object":if(t.args.length==0)return P(Nt,t,{properties:[]});break;case"String":if(t.args.length==0)return P(dt,t,{value:""});if(t.args.length<=1)return P(ae,t,{left:t.args[0],operator:"+",right:P(dt,t,{value:""})}).optimize(e);break;case"Number":if(t.args.length==0)return P(Je,t,{value:0});if(t.args.length==1&&e.option("unsafe_math"))return P(We,t,{expression:t.args[0],operator:"+"}).optimize(e);break;case"Symbol":t.args.length==1&&t.args[0]instanceof dt&&e.option("unsafe_symbols")&&(t.args.length=0);break;case"Boolean":if(t.args.length==0)return P(Hi,t);if(t.args.length==1)return P(We,t,{expression:P(We,t,{expression:t.args[0],operator:"!"}),operator:"!"}).optimize(e);break;case"RegExp":var I=[];if(t.args.length>=1&&t.args.length<=2&&t.args.every(Q=>{var me=Q.evaluate(e);return I.push(me),Q!==me})&&$p(I[0])){let[Q,me]=I;Q=yu(new RegExp(Q).source);const _e=P(fr,t,{value:{source:Q,flags:me}});if(_e._eval(e)!==_e)return _e}break}else if(n instanceof zt)switch(n.property){case"toString":if(t.args.length==0&&!n.expression.may_throw_on_access(e))return P(ae,t,{left:P(dt,t,{value:""}),operator:"+",right:n.expression}).optimize(e);break;case"join":if(n.expression instanceof St)e:{var U;if(t.args.length>0&&(U=t.args[0].evaluate(e),U===t.args[0]))break e;for(var L=[],b=[],E=0,T=n.expression.elements.length;E<T;E++){var _=n.expression.elements[E];if(_ instanceof ht)break e;var g=_.evaluate(e);g!==_?b.push(g):(b.length>0&&(L.push(P(dt,t,{value:b.join(U)})),b.length=0),L.push(_))}if(b.length>0&&L.push(P(dt,t,{value:b.join(U)})),L.length==0)return P(dt,t,{value:""});if(L.length==1)return L[0].is_string(e)?L[0]:P(ae,L[0],{operator:"+",left:P(dt,t,{value:""}),right:L[0]});if(U==""){var C;return L[0].is_string(e)||L[1].is_string(e)?C=L.shift():C=P(dt,t,{value:""}),L.reduce(function(me,_e){return P(ae,_e,{operator:"+",left:me,right:_e})},C).optimize(e)}var O=t.clone();return O.expression=O.expression.clone(),O.expression.expression=O.expression.expression.clone(),O.expression.expression.elements=L,Sr(e,t,O)}break;case"charAt":if(n.expression.is_string(e)){var R=t.args[0],D=R?R.evaluate(e):0;if(D!==R)return P(Sn,n,{expression:n.expression,property:ir(D|0,R||n)}).optimize(e)}break;case"apply":if(t.args.length==2&&t.args[1]instanceof St){var B=t.args[1].elements.slice();return B.unshift(t.args[0]),P(je,t,{expression:P(zt,n,{expression:n.expression,optional:!1,property:"call"}),args:B}).optimize(e)}break;case"call":var X=n.expression;if(X instanceof Ae&&(X=X.fixed_value()),X instanceof Ge&&!X.contains_this())return(t.args.length?nt(this,[t.args[0],P(je,t,{expression:n.expression,args:t.args.slice(1)})]):P(je,t,{expression:n.expression,args:[]})).optimize(e);break}}if(e.option("unsafe_Function")&&si(n)&&n.name=="Function"){if(t.args.length==0)return P(Ft,t,{argnames:[],body:[]}).optimize(e);if(t.args.every(Q=>Q instanceof dt))try{var ce="n(function("+t.args.slice(0,-1).map(function(Q){return Q.value}).join(",")+"){"+t.args[t.args.length-1].value+"})",ne=ls(ce),z=e.mangle_options();ne.figure_out_scope(z);var Y=new Sd(e.options,{mangle_options:e._mangle_options});ne=ne.transform(Y),ne.figure_out_scope(z),ne.compute_char_frequency(z),ne.mangle_names(z);var K;In(ne,Q=>{if(Uu(Q))return K=Q,pr});var ce=Ml();return Ye.prototype._codegen.call(K,K,ce),t.args=[P(dt,t,{value:K.argnames.map(function(Q){return Q.print_to_string()}).join(",")}),P(dt,t.args[t.args.length-1],{value:ce.get().replace(/^{|}$/g,"")})],t}catch(Q){if(!(Q instanceof Jp))throw Q}}return Xy(t,e)}),xe.DEFMETHOD("contains_optional",function(){return this instanceof Xe||this instanceof je||this instanceof _n?this.optional?!0:this.expression.contains_optional():!1}),Ze(rr,function(t,e){return e.option("unsafe")&&si(t.expression)&&["Object","RegExp","Function","Error","Array"].includes(t.expression.name)?P(je,t,t).transform(e):t}),Ze(lt,function(t,e){if(!e.option("side_effects"))return t;var n=[];s();var i=n.length-1;if(f(),i==0)return t=Oo(e.parent(),e.self(),n[0]),t instanceof lt||(t=t.optimize(e)),t;return t.expressions=n,t;function s(){var h=ai(e),y=t.expressions.length-1;t.expressions.forEach(function(E,T){T<y&&(E=E.drop_side_effect_free(e,h)),E&&(Kl(n,E),h=!1)})}function f(){for(;i>0&&ui(n[i],e);)i--;i<n.length-1&&(n[i]=P(We,t,{operator:"void",expression:n[i]}),n.length=i+1)}}),Wt.DEFMETHOD("lift_sequences",function(t){if(t.option("sequences")&&this.expression instanceof lt){var e=this.expression.expressions.slice(),n=this.clone();return n.expression=e.pop(),e.push(n),nt(this,e).optimize(t)}return this}),Ze(Ui,function(t,e){return t.lift_sequences(e)}),Ze(We,function(t,e){var n=t.expression;if(t.operator=="delete"&&!(n instanceof Ae||n instanceof Xe||n instanceof _n||fd(n)))return nt(t,[n,P(vr,t)]).optimize(e);var i=t.lift_sequences(e);if(i!==t)return i;if(e.option("side_effects")&&t.operator=="void")return n=n.drop_side_effect_free(e),n?(t.expression=n,t):P(en,t).optimize(e);if(e.in_boolean_context())switch(t.operator){case"!":if(n instanceof We&&n.operator=="!")return n.expression;n instanceof ae&&(t=Sr(e,t,n.negate(e,ai(e))));break;case"typeof":return(n instanceof Ae?P(vr,t):nt(t,[n,P(vr,t)])).optimize(e)}if(t.operator=="-"&&n instanceof oo&&(n=n.transform(e)),n instanceof ae&&(t.operator=="+"||t.operator=="-")&&(n.operator=="*"||n.operator=="/"||n.operator=="%"))return P(ae,t,{operator:n.operator,left:P(We,n.left,{operator:t.operator,expression:n.left}),right:n.right});if(e.option("evaluate")){if(t.operator==="~"&&t.expression instanceof We&&t.expression.operator==="~"&&(e.in_32_bit_context()||t.expression.expression.is_32_bit_integer()))return t.expression.expression;if(t.operator==="~"&&n instanceof ae&&n.operator==="^")return n.left instanceof We&&n.left.operator==="~"?n.left=n.left.bitwise_negate(!0):n.right=n.right.bitwise_negate(!0),n}if(t.operator!="-"||!(n instanceof Je||n instanceof oo||n instanceof oi)){var s=t.evaluate(e);if(s!==t)return s=ir(s,t).optimize(e),Sr(e,s,t)}return t}),ae.DEFMETHOD("lift_sequences",function(t){if(t.option("sequences")){if(this.left instanceof lt){var e=this.left.expressions.slice(),n=this.clone();return n.left=e.pop(),e.push(n),nt(this,e).optimize(t)}if(this.right instanceof lt&&!this.left.has_side_effects(t)){for(var i=this.operator=="="&&this.left instanceof Ae,e=this.right.expressions,s=e.length-1,f=0;f<s&&!(!i&&e[f].has_side_effects(t));f++);if(f==s){e=e.slice();var n=this.clone();return n.right=e.pop(),e.push(n),nt(this,e).optimize(t)}else if(f>0){var n=this.clone();return n.right=nt(this.right,e.slice(f)),e=e.slice(0,f),e.push(n),nt(this,e).optimize(t)}}}return this});var Zy=Ot("== === != !== * & | ^");function Qy(t){return t instanceof St||t instanceof Ge||t instanceof Nt||t instanceof yt}Ze(ae,function(t,e){function n(){return t.left.is_constant()||t.right.is_constant()||!t.left.has_side_effects(e)&&!t.right.has_side_effects(e)}function i(X){if(n()){X&&(t.operator=X);var ne=t.left;t.left=t.right,t.right=ne}}if(e.option("lhs_constants")&&Zy.has(t.operator)&&t.right.is_constant()&&!t.left.is_constant()&&(t.left instanceof ae&&Dr[t.left.operator]>=Dr[t.operator]||i()),t=t.lift_sequences(e),e.option("comparisons"))switch(t.operator){case"===":case"!==":var s=!0;(t.left.is_string(e)&&t.right.is_string(e)||t.left.is_number(e)&&t.right.is_number(e)||t.left.is_boolean()&&t.right.is_boolean()||t.left.equivalent_to(t.right))&&(t.operator=t.operator.substr(0,2));case"==":case"!=":if(!s&&ui(t.left,e))t.left=P(hr,t.left);else if(!s&&ui(t.right,e))t.right=P(hr,t.right);else if(e.option("typeofs")&&t.left instanceof dt&&t.left.value=="undefined"&&t.right instanceof We&&t.right.operator=="typeof"){var f=t.right.expression;(f instanceof Ae?f.is_declared(e):!(f instanceof Xe&&e.option("ie8")))&&(t.right=f,t.left=P(en,t.left).optimize(e),t.operator.length==2&&(t.operator+="="))}else if(e.option("typeofs")&&t.left instanceof We&&t.left.operator=="typeof"&&t.right instanceof dt&&t.right.value=="undefined"){var f=t.left.expression;(f instanceof Ae?f.is_declared(e):!(f instanceof Xe&&e.option("ie8")))&&(t.left=f,t.right=P(en,t.right).optimize(e),t.operator.length==2&&(t.operator+="="))}else{if(t.left instanceof Ae&&t.right instanceof Ae&&t.left.definition()===t.right.definition()&&Qy(t.left.fixed_value()))return P(t.operator[0]=="="?vr:Hi,t);if(t.left.is_32_bit_integer()&&t.right.is_32_bit_integer()){const X=ce=>P(We,ce,{operator:"!",expression:ce}),ne=(ce,Q)=>Q?e.in_boolean_context()?ce:X(X(ce)):X(ce);if(t.left instanceof Je&&t.left.value===0)return ne(t.right,t.operator[0]==="!");if(t.right instanceof Je&&t.right.value===0)return ne(t.left,t.operator[0]==="!");let z,Y,K;if((z=t.left instanceof ae?t.left:t.right instanceof ae?t.right:null)&&(K=z===t.left?t.right:t.left)&&z.operator==="&"&&K instanceof Je&&K.is_32_bit_integer()&&(Y=z.left.equivalent_to(K)?z.right:z.right.equivalent_to(K)?z.left:null)){let ce=ne(P(ae,t,{operator:"&",left:K,right:P(We,t,{operator:"~",expression:Y})}),t.operator[0]==="!");return Sr(e,ce,t)}}}break;case"&&":case"||":var h=t.left;if(h.operator==t.operator&&(h=h.right),h instanceof ae&&h.operator==(t.operator=="&&"?"!==":"===")&&t.right instanceof ae&&h.operator==t.right.operator&&(ui(h.left,e)&&t.right.left instanceof hr||h.left instanceof hr&&ui(t.right.left,e))&&!h.right.has_side_effects(e)&&h.right.equivalent_to(t.right.right)){var y=P(ae,t,{operator:h.operator.slice(0,-1),left:P(hr,t),right:h.right});return h!==t.left&&(y=P(ae,t,{operator:t.operator,left:t.left.left,right:y})),y}break}if(t.operator=="+"&&e.in_boolean_context()){var E=t.left.evaluate(e),T=t.right.evaluate(e);if(E&&typeof E=="string")return nt(t,[t.right,P(vr,t)]).optimize(e);if(T&&typeof T=="string")return nt(t,[t.left,P(vr,t)]).optimize(e)}if(e.option("comparisons")&&t.is_boolean()){if(!(e.parent()instanceof ae)||e.parent()instanceof st){var O=P(We,t,{operator:"!",expression:t.negate(e,ai(e))});t=Sr(e,t,O)}if(e.option("unsafe_comps"))switch(t.operator){case"<":i(">");break;case"<=":i(">=");break}}if(t.operator=="+"){if(t.right instanceof dt&&t.right.getValue()==""&&t.left.is_string(e))return t.left;if(t.left instanceof dt&&t.left.getValue()==""&&t.right.is_string(e))return t.right;if(t.left instanceof ae&&t.left.operator=="+"&&t.left.left instanceof dt&&t.left.left.getValue()==""&&t.right.is_string(e))return t.left=t.left.right,t}if(e.option("evaluate")){switch(t.operator){case"&&":var E=jn(t.left,Vl)?!0:jn(t.left,jl)?!1:t.left.evaluate(e);if(E){if(!(E instanceof xe))return nt(t,[t.left,t.right]).optimize(e)}else return Oo(e.parent(),e.self(),t.left).optimize(e);var T=t.right.evaluate(e);if(T){if(!(T instanceof xe)){var A=e.parent();if(A.operator=="&&"&&A.left===e.self()||e.in_boolean_context())return t.left.optimize(e)}}else{if(e.in_boolean_context())return nt(t,[t.left,P(Hi,t)]).optimize(e);Er(t,jl)}if(t.left.operator=="||"){var I=t.left.right.evaluate(e);if(!I)return P(tt,t,{condition:t.left.left,consequent:t.right,alternative:t.left.right}).optimize(e)}break;case"||":var E=jn(t.left,Vl)?!0:jn(t.left,jl)?!1:t.left.evaluate(e);if(E){if(!(E instanceof xe))return Oo(e.parent(),e.self(),t.left).optimize(e)}else return nt(t,[t.left,t.right]).optimize(e);var T=t.right.evaluate(e);if(T){if(!(T instanceof xe)){if(e.in_boolean_context())return nt(t,[t.left,P(vr,t)]).optimize(e);Er(t,Vl)}}else{var A=e.parent();if(A.operator=="||"&&A.left===e.self()||e.in_boolean_context())return t.left.optimize(e)}if(t.left.operator=="&&"){var I=t.left.right.evaluate(e);if(I&&!(I instanceof xe))return P(tt,t,{condition:t.left.left,consequent:t.left.right,alternative:t.right}).optimize(e)}break;case"??":if(ci(t.left,e))return t.right;var E=t.left.evaluate(e);if(!(E instanceof xe))return E==null?t.right:t.left;if(e.in_boolean_context()){const z=t.right.evaluate(e);if(!(z instanceof xe)&&!z)return t.left}}var U=!0;switch(t.operator){case"+":if(t.right instanceof Tt&&t.left instanceof ae&&t.left.operator=="+"&&t.left.is_string(e)){var L=P(ae,t,{operator:"+",left:t.left.right,right:t.right}),b=L.optimize(e);L!==b&&(t=P(ae,t,{operator:"+",left:t.left.left,right:b}))}if(t.left instanceof ae&&t.left.operator=="+"&&t.left.is_string(e)&&t.right instanceof ae&&t.right.operator=="+"&&t.right.is_string(e)){var L=P(ae,t,{operator:"+",left:t.left.right,right:t.right.left}),_=L.optimize(e);L!==_&&(t=P(ae,t,{operator:"+",left:P(ae,t.left,{operator:"+",left:t.left.left,right:_}),right:t.right.right}))}if(t.right instanceof We&&t.right.operator=="-"&&t.left.is_number(e)){t=P(ae,t,{operator:"-",left:t.left,right:t.right.expression});break}if(t.left instanceof We&&t.left.operator=="-"&&n()&&t.right.is_number(e)){t=P(ae,t,{operator:"-",left:t.right,right:t.left.expression});break}if(t.left instanceof Wn){var g=t.left,b=t.right.evaluate(e);if(b!=t.right)return g.segments[g.segments.length-1].value+=String(b),g}if(t.right instanceof Wn){var b=t.right,g=t.left.evaluate(e);if(g!=t.left)return b.segments[0].value=String(g)+b.segments[0].value,b}if(t.left instanceof Wn&&t.right instanceof Wn){var g=t.left,C=g.segments,b=t.right;C[C.length-1].value+=b.segments[0].value;for(var R=1;R<b.segments.length;R++)C.push(b.segments[R]);return g}case"*":U=e.option("unsafe_math");case"&":case"|":case"^":if(t.left.is_number(e)&&t.right.is_number(e)&&n()&&!(t.left instanceof ae&&t.left.operator!=t.operator&&Dr[t.left.operator]>=Dr[t.operator])){var D=P(ae,t,{operator:t.operator,left:t.right,right:t.left});t.right instanceof Tt&&!(t.left instanceof Tt)?t=Sr(e,D,t):t=Sr(e,t,D)}U&&t.is_number(e)&&(t.right instanceof ae&&t.right.operator==t.operator&&(t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:t.left,right:t.right.left,start:t.left.start,end:t.right.left.end}),right:t.right.right})),t.right instanceof Tt&&t.left instanceof ae&&t.left.operator==t.operator&&(t.left.left instanceof Tt?t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:t.left.left,right:t.right,start:t.left.left.start,end:t.right.end}),right:t.left.right}):t.left.right instanceof Tt&&(t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:t.left.right,right:t.right,start:t.left.right.start,end:t.right.end}),right:t.left.left}))),t.left instanceof ae&&t.left.operator==t.operator&&t.left.right instanceof Tt&&t.right instanceof ae&&t.right.operator==t.operator&&t.right.left instanceof Tt&&(t=P(ae,t,{operator:t.operator,left:P(ae,t.left,{operator:t.operator,left:P(ae,t.left.left,{operator:t.operator,left:t.left.right,right:t.right.left,start:t.left.right.start,end:t.right.left.end}),right:t.left.left}),right:t.right.right})))}if(Zl.has(t.operator)){let X,ne,z,Y,K=t.left;if(t.operator==="&"&&t.right instanceof ae&&t.right.operator==="|"&&typeof(ne=t.left.evaluate(e))=="number"&&(typeof(X=t.right.right.evaluate(e))=="number"?(z=t.right.left,Y=t.right.right):typeof(X=t.right.left.evaluate(e))=="number"&&(z=t.right.right,Y=t.right.left),z&&Y))if(!(X&ne))t=P(ae,t,{operator:t.operator,left:K,right:z});else{const le=P(ae,t,{operator:"|",left:P(ae,t,{operator:"&",left:z,right:K}),right:ir(X&ne,Y)});t=Sr(e,t,le)}if(t.left.equivalent_to(t.right)&&!t.left.has_side_effects(e)){if(t.operator==="^")return P(Je,t,{value:0});(t.operator==="|"||t.operator==="&")&&(t.left=P(Je,t,{value:0}),t.operator="|")}(t.operator==="<<"||t.operator===">>")&&t.right instanceof Je&&t.right.value===0&&(t.operator="|");const Q=t.right instanceof Je&&t.right.value===0?t.right:t.left instanceof Je&&t.left.value===0?t.left:null,me=Q&&(Q===t.right?t.left:t.right);if(Q&&(t.operator==="|"||t.operator==="^")&&(me.is_32_bit_integer()||e.in_32_bit_context()))return me;if(Q&&t.operator==="&"&&!me.has_side_effects(e))return Q;const _e=le=>le instanceof Je&&le.value===-1||le instanceof We&&(le.operator==="-"&&le.expression instanceof Je&&le.expression.value===1||le.operator==="~"&&le.expression instanceof Je&&le.expression.value===0),te=_e(t.right)?t.right:_e(t.left)?t.left:null,pe=te&&(te===t.right?t.left:t.right);switch(t.operator){case"|":if(te&&!pe.has_side_effects(e))return te;break;case"&":if(te&&(pe.is_32_bit_integer()||e.in_32_bit_context()))return pe;break;case"^":if(te)return pe.bitwise_negate(e.in_32_bit_context());t.left instanceof We&&t.left.operator==="~"&&t.right instanceof We&&t.right.operator==="~"&&(t=P(ae,t,{operator:"^",left:t.left.expression,right:t.right.expression}));break}}}if(t.right instanceof ae&&t.right.operator==t.operator&&(Do.has(t.operator)||t.operator=="+"&&(t.right.left.is_string(e)||t.left.is_string(e)&&t.right.right.is_string(e))))return t.left=P(ae,t.left,{operator:t.operator,left:t.left.transform(e),right:t.right.left.transform(e)}),t.right=t.right.right.transform(e),t.transform(e);var B=t.evaluate(e);return B!==t?(B=ir(B,t).optimize(e),Sr(e,B,t)):t}),Ze(To,function(t){return t}),Ze(Ae,function(t,e){if(!e.option("ie8")&&si(t)&&!e.find_parent(_r))switch(t.name){case"undefined":return P(en,t).optimize(e);case"NaN":return P(ms,t).optimize(e);case"Infinity":return P(oo,t).optimize(e)}return e.option("reduce_vars")&&!e.is_lhs()?Wy(t,e):t});function Gu(t,e){return t instanceof Ae||t.TYPE===e.TYPE}Ze(en,function(t,e){if(e.option("unsafe_undefined")){var n=sf(e,"undefined");if(n){var i=P(Ae,t,{name:"undefined",scope:n.scope,thedef:n});return Er(i,$l),i}}var s=e.is_lhs();return s&&Gu(s,t)?t:P(We,t,{operator:"void",expression:P(Je,t,{value:0})})}),Ze(oo,function(t,e){var n=e.is_lhs();return n&&Gu(n,t)||e.option("keep_infinity")&&!(n&&!Gu(n,t))&&!sf(e,"Infinity")?t:P(ae,t,{operator:"/",left:P(Je,t,{value:1}),right:P(Je,t,{value:0})})}),Ze(ms,function(t,e){var n=e.is_lhs();return n&&!Gu(n,t)||sf(e,"NaN")?P(ae,t,{operator:"/",left:P(Je,t,{value:0}),right:P(Je,t,{value:0})}):t});const eg=Ot("+ - / * % >> << >>> | ^ &"),tg=Ot("* | ^ &");Ze(st,function(t,e){if(t.logical)return t.lift_sequences(e);var n;if(t.operator==="="&&t.left instanceof Ae&&t.left.name!=="arguments"&&!(n=t.left.definition()).undeclared&&t.right.equivalent_to(t.left))return t.right;if(e.option("dead_code")&&t.left instanceof Ae&&(n=t.left.definition()).scope===e.find_parent(Ge)){var i=0,s,f=t;do if(s=f,f=e.parent(i++),f instanceof cr){if(h(i,f)||hd(n.scope,[n]))break;return t.operator=="="?t.right:(n.fixed=!1,P(ae,t,{operator:t.operator.slice(0,-1),left:t.left,right:t.right}).optimize(e))}while(f instanceof ae&&f.right===s||f instanceof lt&&f.tail_node()===s)}return t=t.lift_sequences(e),t.operator=="="&&t.left instanceof Ae&&t.right instanceof ae&&(t.right.left instanceof Ae&&t.right.left.name==t.left.name&&eg.has(t.right.operator)?(t.operator=t.right.operator+"=",t.right=t.right.right):t.right.right instanceof Ae&&t.right.right.name==t.left.name&&tg.has(t.right.operator)&&!t.right.left.has_side_effects(e)&&(t.operator=t.right.operator+"=",t.right=t.right.left)),t;function h(y,E){function T(){const I=t.right;t.right=P(hr,I);const U=E.may_throw(e);return t.right=I,U}for(var O=t.left.definition().scope.get_defun_scope(),A;(A=e.parent(y++))!==O;)if(A instanceof br&&(A.bfinally||A.bcatch&&T()))return!0}}),Ze(wr,function(t,e){if(!e.option("evaluate"))return t;var n=t.right.evaluate(e);let i,s;return n===void 0?(!((i=e.parent())instanceof Ge)||e.option("keep_fargs")===!1||(s=e.parent(1)).TYPE==="Call"&&s.expression===i)&&(t=t.left):n!==t.right&&(n=ir(n,t.right),t.right=Ki(n,t.right)),t});function ng(t,e,n){if(e.may_throw(n))return!1;let i;if(t instanceof ae&&t.operator==="=="&&((i=ci(t.left,n)&&t.left)||(i=ci(t.right,n)&&t.right))&&(i===t.left?t.right:t.left).equivalent_to(e))return!0;if(t instanceof ae&&t.operator==="||"){let s,f;const h=y=>{if(!(y instanceof ae&&(y.operator==="==="||y.operator==="==")))return!1;let E=0,T;return y.left instanceof hr&&(E++,s=y,T=y.right),y.right instanceof hr&&(E++,s=y,T=y.left),ui(y.left,n)&&(E++,f=y,T=y.right),ui(y.right,n)&&(E++,f=y,T=y.left),!(E!==1||!T.equivalent_to(e))};if(!h(t.left)||!h(t.right))return!1;if(s&&f&&s!==f)return!0}return!1}Ze(tt,function(t,e){if(!e.option("conditionals"))return t;if(t.condition instanceof lt){var n=t.condition.expressions.slice();return t.condition=n.pop(),n.push(t),nt(t,n)}var i=t.condition.evaluate(e);if(i!==t.condition)return i?Oo(e.parent(),e.self(),t.consequent):Oo(e.parent(),e.self(),t.alternative);var s=i.negate(e,ai(e));Sr(e,i,s)===s&&(t=P(tt,t,{condition:s,consequent:t.alternative,alternative:t.consequent}));var f=t.condition,h=t.consequent,y=t.alternative;if(f instanceof Ae&&h instanceof Ae&&f.definition()===h.definition())return P(ae,t,{operator:"||",left:f,right:y});if(h instanceof st&&y instanceof st&&h.operator===y.operator&&h.logical===y.logical&&h.left.equivalent_to(y.left)&&(!t.condition.has_side_effects(e)||h.operator=="="&&!h.left.has_side_effects(e)))return P(st,t,{operator:h.operator,left:h.left,logical:h.logical,right:P(tt,t,{condition:t.condition,consequent:h.right,alternative:y.right})});var E;if(h instanceof je&&y.TYPE===h.TYPE&&h.args.length>0&&h.args.length==y.args.length&&h.expression.equivalent_to(y.expression)&&!t.condition.has_side_effects(e)&&!h.expression.has_side_effects(e)&&typeof(E=L())=="number"){var T=h.clone();return T.args[E]=P(tt,t,{condition:t.condition,consequent:h.args[E],alternative:y.args[E]}),T}if(y instanceof tt&&h.equivalent_to(y.consequent))return P(tt,t,{condition:P(ae,t,{operator:"||",left:f,right:y.condition}),consequent:h,alternative:y.alternative}).optimize(e);if(e.option("ecma")>=2020&&ng(f,y,e))return P(ae,t,{operator:"??",left:y,right:h}).optimize(e);if(y instanceof lt&&h.equivalent_to(y.expressions[y.expressions.length-1]))return nt(t,[P(ae,t,{operator:"||",left:f,right:nt(t,y.expressions.slice(0,-1))}),h]).optimize(e);if(y instanceof ae&&y.operator=="&&"&&h.equivalent_to(y.right))return P(ae,t,{operator:"&&",left:P(ae,t,{operator:"||",left:f,right:y.left}),right:h}).optimize(e);if(h instanceof tt&&h.alternative.equivalent_to(y))return P(tt,t,{condition:P(ae,t,{left:t.condition,operator:"&&",right:h.condition}),consequent:h.consequent,alternative:y});if(h.equivalent_to(y))return nt(t,[t.condition,h]).optimize(e);if(h instanceof ae&&h.operator=="||"&&h.right.equivalent_to(y))return P(ae,t,{operator:"||",left:P(ae,t,{operator:"&&",left:t.condition,right:h.left}),right:y}).optimize(e);const O=e.in_boolean_context();if(I(t.consequent))return U(t.alternative)?A(t.condition):P(ae,t,{operator:"||",left:A(t.condition),right:t.alternative});if(U(t.consequent))return I(t.alternative)?A(t.condition.negate(e)):P(ae,t,{operator:"&&",left:A(t.condition.negate(e)),right:t.alternative});if(I(t.alternative))return P(ae,t,{operator:"||",left:A(t.condition.negate(e)),right:t.consequent});if(U(t.alternative))return P(ae,t,{operator:"&&",left:A(t.condition),right:t.consequent});return t;function A(b){return b.is_boolean()?b:P(We,b,{operator:"!",expression:b.negate(e)})}function I(b){return b instanceof vr||O&&b instanceof Tt&&b.getValue()||b instanceof We&&b.operator=="!"&&b.expression instanceof Tt&&!b.expression.getValue()}function U(b){return b instanceof Hi||O&&b instanceof Tt&&!b.getValue()||b instanceof We&&b.operator=="!"&&b.expression instanceof Tt&&b.expression.getValue()}function L(){for(var b=h.args,_=y.args,g=0,C=b.length;g<C;g++){if(b[g]instanceof ht)return;if(!b[g].equivalent_to(_[g])){if(_[g]instanceof ht)return;for(var R=g+1;R<C;R++)if(b[R]instanceof ht||!b[R].equivalent_to(_[R]))return;return g}}}}),Ze(Iu,function(t,e){if(e.in_boolean_context())return P(Je,t,{value:+t.value});var n=e.parent();return e.option("booleans_as_integers")?(n instanceof ae&&(n.operator=="==="||n.operator=="!==")&&(n.operator=n.operator.replace(/=$/,"")),P(Je,t,{value:+t.value})):e.option("booleans")?n instanceof ae&&(n.operator=="=="||n.operator=="!=")?P(Je,t,{value:+t.value}):P(We,t,{operator:"!",expression:P(Je,t,{value:1-t.value})}):t});function Ad(t,e){return t instanceof Ae&&(t=t.fixed_value()),t?!(t instanceof Ge||t instanceof yt)||!(t instanceof Ge&&t.contains_this())?!0:e.parent()instanceof rr:!1}Xe.DEFMETHOD("flatten_object",function(t,e){if(e.option("properties")&&t!=="__proto__"){var n=e.option("unsafe_arrows")&&e.option("ecma")>=2015,i=this.expression;if(i instanceof Nt)for(var s=i.properties,f=s.length;--f>=0;){var h=s[f];if(""+(h instanceof Mn?h.key.name:h.key)==t)return!s.every(E=>(E instanceof Yt||n&&E instanceof Mn&&!E.is_generator)&&!E.computed_key())||!Ad(h.value,e)?void 0:P(Sn,this,{expression:P(St,i,{elements:s.map(function(E){var T=E.value;T instanceof Li&&(T=P(Ft,T,T));var O=E.key;return O instanceof xe&&!(O instanceof Un)?nt(E,[O,T]):T})}),property:P(Je,this,{value:f})})}}}),Ze(Sn,function(t,e){var n=t.expression,i=t.property;if(e.option("properties")){var s=i.evaluate(e);if(s!==i){if(typeof s=="string")if(s=="undefined")s=void 0;else{var f=parseFloat(s);f.toString()==s&&(s=f)}i=t.property=Ki(i,ir(s,i).transform(e));var h=""+s;if(xu(h)&&h.length<=i.size()+1)return P(zt,t,{expression:n,optional:t.optional,property:h,quote:i.quote}).optimize(e)}}var y;e:if(e.option("arguments")&&n instanceof Ae&&n.name=="arguments"&&n.definition().orig.length==1&&(y=n.scope)instanceof Ge&&y.uses_arguments&&!(y instanceof qt)&&i instanceof Je){for(var E=i.getValue(),T=new Set,O=y.argnames,A=0;A<O.length;A++){if(!(O[A]instanceof Nn))break e;var I=O[A].name;if(T.has(I))break e;T.add(I)}var U=y.argnames[E];if(U&&e.has_directive("use strict")){var L=U.definition();(!e.option("reduce_vars")||L.assignments||L.orig.length>1)&&(U=null)}else if(!U&&!e.option("keep_fargs")&&E<y.argnames.length+5)for(;E>=y.argnames.length;)U=y.create_symbol(Nn,{source:y,scope:y,tentative_name:"argument_"+y.argnames.length}),y.argnames.push(U);if(U){var b=P(Ae,t,U);return b.reference({}),ra(U,ao),b}}if(e.is_lhs())return t;if(s!==i){var _=t.flatten_object(h,e);_&&(n=t.expression=_.expression,i=t.property=_.property)}if(e.option("properties")&&e.option("side_effects")&&i instanceof Je&&n instanceof St){var E=i.getValue(),g=n.elements,C=g[E];e:if(Ad(C,e)){for(var R=!0,D=[],B=g.length;--B>E;){var f=g[B].drop_side_effect_free(e);f&&(D.unshift(f),R&&f.has_side_effects(e)&&(R=!1))}if(C instanceof ht)break e;for(C=C instanceof Nr?P(en,C):C,R||D.unshift(C);--B>=0;){var f=g[B];if(f instanceof ht)break e;f=f.drop_side_effect_free(e),f?D.unshift(f):E--}return R?(D.push(C),nt(t,D).optimize(e)):P(Sn,t,{expression:P(St,n,{elements:D}),property:P(Je,i,{value:E})})}}var X=t.evaluate(e);return X!==t?(X=ir(X,t).optimize(e),Sr(e,X,t)):t}),Ze(_n,function(t,e){if(ci(t.expression,e)){let n=e.parent();return n instanceof We&&n.operator==="delete"?ir(0,t):P(en,t)}return t}),Ze(zt,function(t,e){const n=e.parent();if(e.is_lhs())return t;if(e.option("unsafe_proto")&&t.expression instanceof zt&&t.expression.property=="prototype"){var i=t.expression.expression;if(si(i))switch(i.name){case"Array":t.expression=P(St,t.expression,{elements:[]});break;case"Function":t.expression=P(Ft,t.expression,{argnames:[],body:[]});break;case"Number":t.expression=P(Je,t.expression,{value:0});break;case"Object":t.expression=P(Nt,t.expression,{properties:[]});break;case"RegExp":t.expression=P(fr,t.expression,{value:{source:"t",flags:""}});break;case"String":t.expression=P(dt,t.expression,{value:""});break}}if(!(n instanceof je)||!sr(n,Ao)){const f=t.flatten_object(t.property,e);if(f)return f.optimize(e)}if(t.expression instanceof Xe&&n instanceof Xe)return t;let s=t.evaluate(e);return s!==t?(s=ir(s,t).optimize(e),Sr(e,s,t)):t});function cf(t,e){return e.in_boolean_context()?Sr(e,t,nt(t,[t,P(vr,t)]).optimize(e)):t}function xd(t){for(var e=0;e<t.length;e++){var n=t[e];if(n instanceof ht){var i=n.expression;i instanceof St&&!i.elements.some(s=>s instanceof Nr)&&(t.splice(e,1,...i.elements),e--)}}}Ze(St,function(t,e){var n=cf(t,e);return n!==t?n:(xd(t.elements),t)});function rg(t){for(var e=0;e<t.length;e++){var n=t[e];if(n instanceof ht){const i=n.expression;i instanceof Nt&&i.properties.every(s=>s instanceof Yt)?(t.splice(e,1,...i.properties),e--):(i instanceof Tt||i.is_constant())&&!(i instanceof dt)&&(t.splice(e,1),e--)}}}Ze(Nt,function(t,e){var n=cf(t,e);return n!==t?n:(rg(t.properties),t)}),Ze(fr,cf),Ze(an,function(t,e){return t.value&&ui(t.value,e)&&(t.value=null),t}),Ze(qt,uf),Ze(Ft,function(t,e){return t=uf(t,e),e.option("unsafe_arrows")&&e.option("ecma")>=2015&&!t.name&&!t.is_generator&&!t.uses_arguments&&!t.pinned()&&!In(t,i=>{if(i instanceof Vn)return pr})?P(qt,t,t).optimize(e):t}),Ze(yt,function(t){for(let e=0;e<t.properties.length;e++){const n=t.properties[e];n instanceof qn&&n.body.length==0&&(t.properties.splice(e,1),e--)}return t}),Ze(qn,function(t,e){return Hu(t.body,e),t}),Ze(gr,function(t,e){return t.expression&&!t.is_star&&ui(t.expression,e)&&(t.expression=null),t}),Ze(Wn,function(t,e){if(!e.option("evaluate")||e.parent()instanceof jr)return t;for(var n=[],i=0;i<t.segments.length;i++){var s=t.segments[i];if(s instanceof xe){var f=s.evaluate(e);if(f!==s&&(f+"").length<=s.size()+3){n[n.length-1].value=n[n.length-1].value+f+t.segments[++i].value;continue}if(s instanceof Wn){var h=s.segments;n[n.length-1].value+=h[0].value;for(var y=1;y<h.length;y++)s=h[y],n.push(s);continue}}n.push(s)}if(t.segments=n,n.length==1)return P(dt,t,n[0]);if(n.length===3&&n[1]instanceof xe&&(n[1].is_string(e)||n[1].is_number(e)||ci(n[1],e)||e.option("unsafe"))){if(n[2].value==="")return P(ae,t,{operator:"+",left:P(dt,t,{value:n[0].value}),right:n[1]});if(n[0].value==="")return P(ae,t,{operator:"+",left:n[1],right:P(dt,t,{value:n[2].value})})}return t}),Ze(jr,function(t){return t});function lf(t,e){if(!e.option("computed_props")||!(t.key instanceof Tt))return t;if(t.key instanceof dt||t.key instanceof Je){const n=t.key.value.toString();if(n==="__proto__"||n=="constructor"&&e.parent()instanceof yt)return t;t instanceof Yt?(t.quote=t.key.quote,t.key=n):t instanceof lr?(t.quote=t.key.quote,t.key=P($i,t.key,{name:n})):(t.quote=t.key.quote,t.key=P(Un,t.key,{name:n}))}return t}Ze(un,lf),Ze(Mn,function(t,e){if(lf(t,e),e.option("arrows")&&e.parent()instanceof Nt&&!t.is_generator&&!t.value.uses_arguments&&!t.value.pinned()&&t.value.body.length==1&&t.value.body[0]instanceof an&&t.value.body[0].value&&!t.value.contains_this()){var n=P(qt,t.value,t.value);return n.async=t.async,n.is_generator=t.is_generator,P(Yt,t,{key:t.key instanceof Un?t.key.name:t.key,value:n,quote:t.quote})}return t}),Ze(Yt,function(t,e){lf(t,e);var n=e.option("unsafe_methods");if(n&&e.option("ecma")>=2015&&(!(n instanceof RegExp)||n.test(t.key+""))){var i=t.key,s=t.value,f=s instanceof qt&&Array.isArray(s.body)&&!s.contains_this();if((f||s instanceof Ft)&&!s.name)return P(Mn,t,{async:s.async,is_generator:s.is_generator,key:i instanceof xe?i:P(Un,t,{name:i}),value:P(Li,s,s),quote:t.quote})}return t}),Ze(Vt,function(t,e){if(e.option("pure_getters")==!0&&e.option("unused")&&!t.is_array&&Array.isArray(t.names)&&!f(e)&&!(t.names[t.names.length-1]instanceof ht)){for(var n=[],i=0;i<t.names.length;i++){var s=t.names[i];s instanceof Yt&&typeof s.key=="string"&&s.value instanceof wn&&!h(e,s.value.definition())||n.push(s)}n.length!=t.names.length&&(t.names=n)}return t;function f(y){for(var E=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],T=0,O=0,A=E.length;T<A;O++){var I=y.parent(O);if(!I)return!1;if(!(T===0&&I.TYPE=="Destructuring")){if(!E[T].test(I.TYPE))return!1;T++}}return!0}function h(y,E){return E.references.length?!0:E.global?y.toplevel.vars?y.top_retain?y.top_retain(E):!1:!0:!1}});var ff={exports:{}};(function(t,e){(function(n,i){i(e)})(Np,function(n){const f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=new Uint8Array(64),y=new Uint8Array(128);for(let j=0;j<f.length;j++){const H=f.charCodeAt(j);h[j]=H,y[H]=j}const E=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(j){return Buffer.from(j.buffer,j.byteOffset,j.byteLength).toString()}}:{decode(j){let H="";for(let q=0;q<j.length;q++)H+=String.fromCharCode(j[q]);return H}};function T(j){const H=new Int32Array(5),q=[];let ue=0;do{const ve=O(j,ue),be=[];let Se=!0,Ke=0;H[0]=0;for(let Le=ue;Le<ve;Le++){let ot;Le=A(j,Le,H,0);const Ut=H[0];Ut<Ke&&(Se=!1),Ke=Ut,I(j,Le,ve)?(Le=A(j,Le,H,1),Le=A(j,Le,H,2),Le=A(j,Le,H,3),I(j,Le,ve)?(Le=A(j,Le,H,4),ot=[Ut,H[1],H[2],H[3],H[4]]):ot=[Ut,H[1],H[2],H[3]]):ot=[Ut],be.push(ot)}Se||U(be),q.push(be),ue=ve+1}while(ue<=j.length);return q}function O(j,H){const q=j.indexOf(";",H);return q===-1?j.length:q}function A(j,H,q,ue){let ve=0,be=0,Se=0;do{const Le=j.charCodeAt(H++);Se=y[Le],ve|=(Se&31)<<be,be+=5}while(Se&32);const Ke=ve&1;return ve>>>=1,Ke&&(ve=-2147483648|-ve),q[ue]+=ve,H}function I(j,H,q){return H>=q?!1:j.charCodeAt(H)!==44}function U(j){j.sort(L)}function L(j,H){return j[0]-H[0]}function b(j){const H=new Int32Array(5),q=1024*16,ue=q-36,ve=new Uint8Array(q),be=ve.subarray(0,ue);let Se=0,Ke="";for(let Le=0;Le<j.length;Le++){const ot=j[Le];if(Le>0&&(Se===q&&(Ke+=E.decode(ve),Se=0),ve[Se++]=59),ot.length!==0){H[0]=0;for(let Ut=0;Ut<ot.length;Ut++){const ct=ot[Ut];Se>ue&&(Ke+=E.decode(be),ve.copyWithin(0,ue,Se),Se-=ue),Ut>0&&(ve[Se++]=44),Se=_(ve,Se,H,ct,0),ct.length!==1&&(Se=_(ve,Se,H,ct,1),Se=_(ve,Se,H,ct,2),Se=_(ve,Se,H,ct,3),ct.length!==4&&(Se=_(ve,Se,H,ct,4)))}}}return Ke+E.decode(ve.subarray(0,Se))}function _(j,H,q,ue,ve){const be=ue[ve];let Se=be-q[ve];q[ve]=be,Se=Se<0?-Se<<1|1:Se<<1;do{let Ke=Se&31;Se>>>=5,Se>0&&(Ke|=32),j[H++]=h[Ke]}while(Se>0);return H}const g=/^[\w+.-]+:\/\//,C=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,R=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function D(j){return g.test(j)}function B(j){return j.startsWith("//")}function X(j){return j.startsWith("/")}function ne(j){return j.startsWith("file:")}function z(j){return/^[.?#]/.test(j)}function Y(j){const H=C.exec(j);return ce(H[1],H[2]||"",H[3],H[4]||"",H[5]||"/",H[6]||"",H[7]||"")}function K(j){const H=R.exec(j),q=H[2];return ce("file:","",H[1]||"","",X(q)?q:"/"+q,H[3]||"",H[4]||"")}function ce(j,H,q,ue,ve,be,Se){return{scheme:j,user:H,host:q,port:ue,path:ve,query:be,hash:Se,type:7}}function Q(j){if(B(j)){const q=Y("http:"+j);return q.scheme="",q.type=6,q}if(X(j)){const q=Y("http://foo.com"+j);return q.scheme="",q.host="",q.type=5,q}if(ne(j))return K(j);if(D(j))return Y(j);const H=Y("http://foo.com/"+j);return H.scheme="",H.host="",H.type=j?j.startsWith("?")?3:j.startsWith("#")?2:4:1,H}function me(j){if(j.endsWith("/.."))return j;const H=j.lastIndexOf("/");return j.slice(0,H+1)}function _e(j,H){te(H,H.type),j.path==="/"?j.path=H.path:j.path=me(H.path)+j.path}function te(j,H){const q=H<=4,ue=j.path.split("/");let ve=1,be=0,Se=!1;for(let Le=1;Le<ue.length;Le++){const ot=ue[Le];if(!ot){Se=!0;continue}if(Se=!1,ot!=="."){if(ot===".."){be?(Se=!0,be--,ve--):q&&(ue[ve++]=ot);continue}ue[ve++]=ot,be++}}let Ke="";for(let Le=1;Le<ve;Le++)Ke+="/"+ue[Le];(!Ke||Se&&!Ke.endsWith("/.."))&&(Ke+="/"),j.path=Ke}function pe(j,H){if(!j&&!H)return"";const q=Q(j);let ue=q.type;if(H&&ue!==7){const be=Q(H),Se=be.type;switch(ue){case 1:q.hash=be.hash;case 2:q.query=be.query;case 3:case 4:_e(q,be);case 5:q.user=be.user,q.host=be.host,q.port=be.port;case 6:q.scheme=be.scheme}Se>ue&&(ue=Se)}te(q,ue);const ve=q.query+q.hash;switch(ue){case 2:case 3:return ve;case 4:{const be=q.path.slice(1);return be?z(H||j)&&!z(be)?"./"+be+ve:be+ve:ve||"."}case 5:return q.path+ve;default:return q.scheme+"//"+q.user+q.host+q.port+q.path+ve}}function le(j,H){return H&&!H.endsWith("/")&&(H+="/"),pe(j,H)}function Oe(j){if(!j)return"";const H=j.lastIndexOf("/");return j.slice(0,H+1)}const Ie=0,ge=1,Ue=2,J=3,re=4,se=1,Te=2;function ye(j,H){const q=At(j,0);if(q===j.length)return j;H||(j=j.slice());for(let ue=q;ue<j.length;ue=At(j,ue+1))j[ue]=Et(j[ue],H);return j}function At(j,H){for(let q=H;q<j.length;q++)if(!jt(j[q]))return q;return j.length}function jt(j){for(let H=1;H<j.length;H++)if(j[H][Ie]<j[H-1][Ie])return!1;return!0}function Et(j,H){return H||(j=j.slice()),j.sort(Mt)}function Mt(j,H){return j[Ie]-H[Ie]}let gt=!1;function Ct(j,H,q,ue){for(;q<=ue;){const ve=q+(ue-q>>1),be=j[ve][Ie]-H;if(be===0)return gt=!0,ve;be<0?q=ve+1:ue=ve-1}return gt=!1,q-1}function Jt(j,H,q){for(let ue=q+1;ue<j.length&&j[ue][Ie]===H;q=ue++);return q}function oe(j,H,q){for(let ue=q-1;ue>=0&&j[ue][Ie]===H;q=ue--);return q}function ke(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function de(j,H,q,ue){const{lastKey:ve,lastNeedle:be,lastIndex:Se}=q;let Ke=0,Le=j.length-1;if(ue===ve){if(H===be)return gt=Se!==-1&&j[Se][Ie]===H,Se;H>=be?Ke=Se===-1?0:Se:Le=Se}return q.lastKey=ue,q.lastNeedle=H,q.lastIndex=Ct(j,H,Ke,Le)}function bt(j,H){const q=H.map(Dt);for(let ue=0;ue<j.length;ue++){const ve=j[ue];for(let be=0;be<ve.length;be++){const Se=ve[be];if(Se.length===1)continue;const Ke=Se[ge],Le=Se[Ue],ot=Se[J],Ut=q[Ke],ct=Ut[Le]||(Ut[Le]=[]),Gt=H[Ke];let An=Jt(ct,ot,de(ct,ot,Gt,Le));Gt.lastIndex=++An,xt(ct,An,[ot,ue,Se[Ie]])}}return q}function xt(j,H,q){for(let ue=j.length;ue>H;ue--)j[ue]=j[ue-1];j[H]=q}function Dt(){return{__proto__:null}}const Bn=function(j,H){const q=Zt(j);if(!("sections"in q))return new Me(q,H);const ue=[],ve=[],be=[],Se=[],Ke=[];pn(q,H,ue,ve,be,Se,Ke,0,0,1/0,1/0);const Le={version:3,file:q.file,names:Se,sources:ve,sourcesContent:be,mappings:ue,ignoreList:Ke};return xi(Le)};function Zt(j){return typeof j=="string"?JSON.parse(j):j}function pn(j,H,q,ue,ve,be,Se,Ke,Le,ot,Ut){const{sections:ct}=j;for(let Gt=0;Gt<ct.length;Gt++){const{map:An,offset:Hn}=ct[Gt];let Yn=ot,Lr=Ut;if(Gt+1<ct.length){const Xr=ct[Gt+1].offset;Yn=Math.min(ot,Ke+Xr.line),Yn===ot?Lr=Math.min(Ut,Le+Xr.column):Yn<ot&&(Lr=Le+Xr.column)}$t(An,H,q,ue,ve,be,Se,Ke+Hn.line,Le+Hn.column,Yn,Lr)}}function $t(j,H,q,ue,ve,be,Se,Ke,Le,ot,Ut){const ct=Zt(j);if("sections"in ct)return pn(...arguments);const Gt=new Me(ct,H),An=ue.length,Hn=be.length,Yn=ft(Gt),{resolvedSources:Lr,sourcesContent:Xr,ignoreList:Ts}=Gt;if(Pt(ue,Lr),Pt(be,Gt.names),Xr)Pt(ve,Xr);else for(let Jn=0;Jn<Lr.length;Jn++)ve.push(null);if(Ts)for(let Jn=0;Jn<Ts.length;Jn++)Se.push(Ts[Jn]+An);for(let Jn=0;Jn<Yn.length;Jn++){const Yi=Ke+Jn;if(Yi>ot)return;const ca=ln(q,Yi),zu=Jn===0?Le:0,la=Yn[Jn];for(let Ji=0;Ji<la.length;Ji++){const Zi=la[Ji],Mr=zu+Zi[Ie];if(Yi===ot&&Mr>=Ut)return;if(Zi.length===1){ca.push([Mr]);continue}const fo=An+Zi[ge],Wu=Zi[Ue],Mo=Zi[J];ca.push(Zi.length===4?[Mr,fo,Wu,Mo]:[Mr,fo,Wu,Mo,Hn+Zi[re]])}}}function Pt(j,H){for(let q=0;q<H.length;q++)j.push(H[q])}function ln(j,H){for(let q=j.length;q<=H;q++)j[q]=[];return j[H]}const Ai="`line` must be greater than 0 (lines start at line 1)",V="`column` must be greater than or equal to 0 (columns start at column 0)",we=-1,Be=1;class Me{constructor(H,q){const ue=typeof H=="string";if(!ue&&H._decodedMemo)return H;const ve=ue?JSON.parse(H):H,{version:be,file:Se,names:Ke,sourceRoot:Le,sources:ot,sourcesContent:Ut}=ve;this.version=be,this.file=Se,this.names=Ke||[],this.sourceRoot=Le,this.sources=ot,this.sourcesContent=Ut,this.ignoreList=ve.ignoreList||ve.x_google_ignoreList||void 0;const ct=le(Le||"",Oe(q));this.resolvedSources=ot.map(An=>le(An||"",ct));const{mappings:Gt}=ve;typeof Gt=="string"?(this._encoded=Gt,this._decoded=void 0):(this._encoded=void 0,this._decoded=ye(Gt,ue)),this._decodedMemo=ke(),this._bySources=void 0,this._bySourceMemos=void 0}}function ut(j){return j}function rn(j){var H,q;return(H=(q=j)._encoded)!==null&&H!==void 0?H:q._encoded=b(j._decoded)}function ft(j){var H;return(H=j)._decoded||(H._decoded=T(j._encoded))}function gn(j,H){let{line:q,column:ue,bias:ve}=H;if(q--,q<0)throw new Error(Ai);if(ue<0)throw new Error(V);const be=ft(j);if(q>=be.length)return Tr(null,null,null,null);const Se=be[q],Ke=Io(Se,j._decodedMemo,q,ue,ve||Be);if(Ke===-1)return Tr(null,null,null,null);const Le=Se[Ke];if(Le.length===1)return Tr(null,null,null,null);const{names:ot,resolvedSources:Ut}=j;return Tr(Ut[Le[ge]],Le[Ue]+1,Le[J],Le.length===5?ot[Le[re]]:null)}function Tn(j,H){const{source:q,line:ue,column:ve,bias:be}=H;return Pr(j,q,ue,ve,be||Be,!1)}function li(j,H){const{source:q,line:ue,column:ve,bias:be}=H;return Pr(j,q,ue,ve,be||we,!0)}function Fn(j,H){const q=ft(j),{names:ue,resolvedSources:ve}=j;for(let be=0;be<q.length;be++){const Se=q[be];for(let Ke=0;Ke<Se.length;Ke++){const Le=Se[Ke],ot=be+1,Ut=Le[0];let ct=null,Gt=null,An=null,Hn=null;Le.length!==1&&(ct=ve[Le[1]],Gt=Le[2]+1,An=Le[3]),Le.length===5&&(Hn=ue[Le[4]]),H({generatedLine:ot,generatedColumn:Ut,source:ct,originalLine:Gt,originalColumn:An,name:Hn})}}}function fn(j,H){const{sources:q,resolvedSources:ue}=j;let ve=q.indexOf(H);return ve===-1&&(ve=ue.indexOf(H)),ve}function co(j,H){const{sourcesContent:q}=j;if(q==null)return null;const ue=fn(j,H);return ue===-1?null:q[ue]}function xi(j,H){const q=new Me(lo(j,[]),H);return q._decoded=j.mappings,q}function lo(j,H){return{version:j.version,file:j.file,names:j.names,sourceRoot:j.sourceRoot,sources:j.sources,sourcesContent:j.sourcesContent,mappings:H,ignoreList:j.ignoreList||j.x_google_ignoreList}}function Tr(j,H,q,ue){return{source:j,line:H,column:q,name:ue}}function zr(j,H){return{line:j,column:H}}function Io(j,H,q,ue,ve){let be=de(j,ue,H,q);return gt?be=(ve===we?Jt:oe)(j,ue,be):ve===we&&be++,be===-1||be===j.length?-1:be}function Wi(j,H,q,ue,ve){let be=Io(j,H,q,ue,Be);if(!gt&&ve===we&&be++,be===-1||be===j.length)return[];const Se=gt?ue:j[be][Ie];gt||(be=oe(j,Se,be));const Ke=Jt(j,Se,be),Le=[];for(;be<=Ke;be++){const ot=j[be];Le.push(zr(ot[se]+1,ot[Te]))}return Le}function Pr(j,H,q,ue,ve,be){var Se;if(q--,q<0)throw new Error(Ai);if(ue<0)throw new Error(V);const{sources:Ke,resolvedSources:Le}=j;let ot=Ke.indexOf(H);if(ot===-1&&(ot=Le.indexOf(H)),ot===-1)return be?[]:zr(null,null);const ct=((Se=j)._bySources||(Se._bySources=bt(ft(j),j._bySourceMemos=Ke.map(ke))))[ot][q];if(ct==null)return be?[]:zr(null,null);const Gt=j._bySourceMemos[ot];if(be)return Wi(ct,Gt,q,ue,ve);const An=Io(ct,Gt,q,ue,ve);if(An===-1)return zr(null,null);const Hn=ct[An];return zr(Hn[se]+1,Hn[Te])}class fi{constructor(){this._indexes={__proto__:null},this.array=[]}}function Po(j){return j}function _t(j,H){return j._indexes[H]}function or(j,H){const q=_t(j,H);if(q!==void 0)return q;const{array:ue,_indexes:ve}=j,be=ue.push(H);return ve[H]=be-1}const w=0,$=1,W=2,Z=3,ie=4,Fe=-1;class Pe{constructor({file:H,sourceRoot:q}={}){this._names=new fi,this._sources=new fi,this._sourcesContent=[],this._mappings=[],this.file=H,this.sourceRoot=q,this._ignoreList=new fi}}function rt(j){return j}const Ht=(j,H)=>Lo(!0,j,H);function on(j,H,q){const{_sources:ue,_sourcesContent:ve}=j,be=or(ue,H);ve[be]=q}function bn(j){const{_mappings:H,_sources:q,_sourcesContent:ue,_names:ve,_ignoreList:be}=j;return hf(H),{version:3,file:j.file||void 0,names:ve.array,sourceRoot:j.sourceRoot||void 0,sources:q.array,sourcesContent:ue,mappings:H,ignoreList:be.array}}function Fr(j){const H=bn(j);return Object.assign(Object.assign({},H),{mappings:b(H.mappings)})}function Bt(j){const H=new Me(j),q=new Pe({file:H.file,sourceRoot:H.sourceRoot});return Fo(q._names,H.names),Fo(q._sources,H.sources),q._sourcesContent=H.sourcesContent||H.sources.map(()=>null),q._mappings=ft(H),H.ignoreList&&Fo(q._ignoreList,H.ignoreList),q}function Wr(j,H,q,ue,ve,be,Se,Ke,Le){const{_mappings:ot,_sources:Ut,_sourcesContent:ct,_names:Gt}=H,An=Ar(ot,q),Hn=Ku(An,ue);if(!ve)return j&&sa(An,Hn)?void 0:Xi(An,Hn,[ue]);const Yn=or(Ut,ve),Lr=Ke?or(Gt,Ke):Fe;if(Yn===ct.length&&(ct[Yn]=Le??null),!(j&&qi(An,Hn,Yn,be,Se,Lr)))return Xi(An,Hn,Ke?[ue,Yn,be,Se,Lr]:[ue,Yn,be,Se])}function Ar(j,H){for(let q=j.length;q<=H;q++)j[q]=[];return j[H]}function Ku(j,H){let q=j.length;for(let ue=q-1;ue>=0;q=ue--){const ve=j[ue];if(H>=ve[w])break}return q}function Xi(j,H,q){for(let ue=j.length;ue>H;ue--)j[ue]=j[ue-1];j[H]=q}function hf(j){const{length:H}=j;let q=H;for(let ue=q-1;ue>=0&&!(j[ue].length>0);q=ue,ue--);q<H&&(j.length=q)}function Fo(j,H){for(let q=0;q<H.length;q++)or(j,H[q])}function sa(j,H){return H===0?!0:j[H-1].length===1}function qi(j,H,q,ue,ve,be){if(H===0)return!1;const Se=j[H-1];return Se.length===1?!1:q===Se[$]&&ue===Se[W]&&ve===Se[Z]&&be===(Se.length===5?Se[ie]:Fe)}function Lo(j,H,q){const{generated:ue,source:ve,original:be,name:Se,content:Ke}=q;return ve?Wr(j,H,ue.line-1,ue.column,ve,be.line-1,be.column,Se,Ke):Wr(j,H,ue.line-1,ue.column,null,null,null,null,null)}class ua{constructor(H,q){const ue=this._map=new Bn(H,q);this.file=ue.file,this.names=ue.names,this.sourceRoot=ue.sourceRoot,this.sources=ue.resolvedSources,this.sourcesContent=ue.sourcesContent,this.version=ue.version}static fromSourceMap(H,q){return H.toDecodedMap?new ua(H.toDecodedMap(),q):new ua(H.toJSON(),q)}get mappings(){return rn(this._map)}originalPositionFor(H){return gn(this._map,H)}generatedPositionFor(H){return Tn(this._map,H)}allGeneratedPositionsFor(H){return li(this._map,H)}hasContentsOfAllSources(){if(!this.sourcesContent||this.sourcesContent.length!==this.sources.length)return!1;for(const H of this.sourcesContent)if(H==null)return!1;return!0}sourceContentFor(H,q){const ue=co(this._map,H);if(ue!=null)return ue;if(q)return null;throw new Error(`"${H}" is not in the SourceMap.`)}eachMapping(H,q){Fn(this._map,q?H.bind(q):H)}destroy(){}}class it{constructor(H){this._map=H instanceof Pe?H:new Pe(H)}static fromSourceMap(H){return new it(Bt(H))}addMapping(H){Ht(this._map,H)}setSourceContent(H,q){on(this._map,H,q)}toJSON(){return Fr(this._map)}toString(){return JSON.stringify(this.toJSON())}toDecodedMap(){return bn(this._map)}}n.SourceMapConsumer=ua,n.SourceMapGenerator=it,Object.defineProperty(n,"__esModule",{value:!0})})})(ff,ff.exports);var Od=ff.exports;function*ig(t){t=mi(t,{file:null,root:null,orig:null,files:{}});var e,n=new Od.SourceMapGenerator({file:t.file,sourceRoot:t.root});let i={__proto__:null},s=t.files;for(var f in s)tr(s,f)&&(i[f]=s[f]);t.orig&&(e=yield new Od.SourceMapConsumer(t.orig),e.sourcesContent&&e.sources.forEach(function(A,I){var U=e.sourcesContent[I];U&&(i[A]=U)}));function h(A,I,U,L,b,_){let g={line:I,column:U};if(e){var C=e.originalPositionFor({line:L,column:b});if(C.source===null){n.addMapping({generated:g,original:null,source:null,name:null});return}A=C.source,L=C.line,b=C.column,_=C.name||_}n.addMapping({generated:g,original:{line:L,column:b},source:A,name:_}),n.setSourceContent(A,i[A])}function y(A){return A.sourcesContent&&A.sourcesContent.every(U=>U==null)&&delete A.sourcesContent,A.file===void 0&&delete A.file,A.sourceRoot===void 0&&delete A.sourceRoot,A}function E(){return n.toDecodedMap?y(n.toDecodedMap()):null}function T(){return y(n.toJSON())}function O(){e&&e.destroy&&e.destroy()}return{add:h,getDecoded:E,getEncoded:T,destroy:O}}var og=["$&","$'","$*","$+","$1","$2","$3","$4","$5","$6","$7","$8","$9","$_","$`","$input","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-fill-mode","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-border-end","-moz-border-end-color","-moz-border-end-style","-moz-border-end-width","-moz-border-image","-moz-border-start","-moz-border-start-color","-moz-border-start-style","-moz-border-start-width","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-float-edge","-moz-font-feature-settings","-moz-font-language-override","-moz-force-broken-image-icon","-moz-hyphens","-moz-image-region","-moz-margin-end","-moz-margin-start","-moz-orient","-moz-osx-font-smoothing","-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-padding-end","-moz-padding-start","-moz-perspective","-moz-perspective-origin","-moz-tab-size","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transform-style","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-input","-moz-user-modify","-moz-user-select","-moz-window-dragging","-webkit-align-content","-webkit-align-items","-webkit-align-self","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-origin","-webkit-background-size","-webkit-border-bottom-left-radius","-webkit-border-bottom-right-radius","-webkit-border-image","-webkit-border-radius","-webkit-border-top-left-radius","-webkit-border-top-right-radius","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-shadow","-webkit-box-sizing","-webkit-clip-path","-webkit-filter","-webkit-flex","-webkit-flex-basis","-webkit-flex-direction","-webkit-flex-flow","-webkit-flex-grow","-webkit-flex-shrink","-webkit-flex-wrap","-webkit-justify-content","-webkit-line-clamp","-webkit-mask","-webkit-mask-clip","-webkit-mask-composite","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-position","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-mask-repeat","-webkit-mask-size","-webkit-order","-webkit-perspective","-webkit-perspective-origin","-webkit-text-fill-color","-webkit-text-security","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-transform","-webkit-transform-origin","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-select","0","1","10","11","12","13","14","15","16","17","18","19","2","20","3","4","5","6","7","8","9","@@iterator","ABORT_ERR","ACTIVE","ACTIVE_ATTRIBUTES","ACTIVE_TEXTURE","ACTIVE_UNIFORMS","ACTIVE_UNIFORM_BLOCKS","ADDITION","ALIASED_LINE_WIDTH_RANGE","ALIASED_POINT_SIZE_RANGE","ALL","ALLOW_KEYBOARD_INPUT","ALLPASS","ALPHA","ALPHA_BITS","ALREADY_SIGNALED","ALT_MASK","ALWAYS","ANY_SAMPLES_PASSED","ANY_SAMPLES_PASSED_CONSERVATIVE","ANY_TYPE","ANY_UNORDERED_NODE_TYPE","ARRAY_BUFFER","ARRAY_BUFFER_BINDING","ATTACHED_SHADERS","ATTRIBUTE_NODE","AT_TARGET","AbortController","AbortSignal","AbsoluteOrientationSensor","AbstractRange","Accelerometer","AddSearchProvider","AggregateError","AnalyserNode","Animation","AnimationEffect","AnimationEvent","AnimationPlaybackEvent","AnimationTimeline","AnonXMLHttpRequest","Any","ApplicationCache","ApplicationCacheErrorEvent","Array","ArrayBuffer","ArrayType","Atomics","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioData","AudioDecoder","AudioDestinationNode","AudioEncoder","AudioListener","AudioNode","AudioParam","AudioParamMap","AudioProcessingEvent","AudioScheduledSourceNode","AudioSinkInfo","AudioStreamTrack","AudioWorklet","AudioWorkletNode","AuthenticatorAssertionResponse","AuthenticatorAttestationResponse","AuthenticatorResponse","AutocompleteErrorEvent","BACK","BAD_BOUNDARYPOINTS_ERR","BAD_REQUEST","BANDPASS","BLEND","BLEND_COLOR","BLEND_DST_ALPHA","BLEND_DST_RGB","BLEND_EQUATION","BLEND_EQUATION_ALPHA","BLEND_EQUATION_RGB","BLEND_SRC_ALPHA","BLEND_SRC_RGB","BLUE","BLUE_BITS","BLUR","BOOL","BOOLEAN_TYPE","BOOL_VEC2","BOOL_VEC3","BOOL_VEC4","BOTH","BROWSER_DEFAULT_WEBGL","BUBBLING_PHASE","BUFFER_SIZE","BUFFER_USAGE","BYTE","BYTES_PER_ELEMENT","BackgroundFetchManager","BackgroundFetchRecord","BackgroundFetchRegistration","BarProp","BarcodeDetector","BaseAudioContext","BaseHref","BatteryManager","BeforeInstallPromptEvent","BeforeLoadEvent","BeforeUnloadEvent","BigInt","BigInt64Array","BigUint64Array","BiquadFilterNode","Blob","BlobEvent","Bluetooth","BluetoothCharacteristicProperties","BluetoothDevice","BluetoothRemoteGATTCharacteristic","BluetoothRemoteGATTDescriptor","BluetoothRemoteGATTServer","BluetoothRemoteGATTService","BluetoothUUID","Boolean","BroadcastChannel","BrowserCaptureMediaStreamTrack","ByteLengthQueuingStrategy","CAPTURING_PHASE","CCW","CDATASection","CDATA_SECTION_NODE","CHANGE","CHARSET_RULE","CHECKING","CLAMP_TO_EDGE","CLICK","CLOSED","CLOSING","COLOR","COLOR_ATTACHMENT0","COLOR_ATTACHMENT1","COLOR_ATTACHMENT10","COLOR_ATTACHMENT11","COLOR_ATTACHMENT12","COLOR_ATTACHMENT13","COLOR_ATTACHMENT14","COLOR_ATTACHMENT15","COLOR_ATTACHMENT2","COLOR_ATTACHMENT3","COLOR_ATTACHMENT4","COLOR_ATTACHMENT5","COLOR_ATTACHMENT6","COLOR_ATTACHMENT7","COLOR_ATTACHMENT8","COLOR_ATTACHMENT9","COLOR_BUFFER_BIT","COLOR_CLEAR_VALUE","COLOR_WRITEMASK","COMMENT_NODE","COMPARE_REF_TO_TEXTURE","COMPILE_STATUS","COMPLETION_STATUS_KHR","COMPRESSED_RGBA_S3TC_DXT1_EXT","COMPRESSED_RGBA_S3TC_DXT3_EXT","COMPRESSED_RGBA_S3TC_DXT5_EXT","COMPRESSED_RGB_S3TC_DXT1_EXT","COMPRESSED_TEXTURE_FORMATS","COMPUTE","CONDITION_SATISFIED","CONFIGURATION_UNSUPPORTED","CONNECTING","CONSTANT_ALPHA","CONSTANT_COLOR","CONSTRAINT_ERR","CONTEXT_LOST_WEBGL","CONTROL_MASK","COPY_DST","COPY_READ_BUFFER","COPY_READ_BUFFER_BINDING","COPY_SRC","COPY_WRITE_BUFFER","COPY_WRITE_BUFFER_BINDING","COUNTER_STYLE_RULE","CSS","CSS2Properties","CSSAnimation","CSSCharsetRule","CSSConditionRule","CSSContainerRule","CSSCounterStyleRule","CSSFontFaceRule","CSSFontFeatureValuesRule","CSSFontPaletteValuesRule","CSSGroupingRule","CSSImageValue","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSKeywordValue","CSSLayerBlockRule","CSSLayerStatementRule","CSSMathClamp","CSSMathInvert","CSSMathMax","CSSMathMin","CSSMathNegate","CSSMathProduct","CSSMathSum","CSSMathValue","CSSMatrixComponent","CSSMediaRule","CSSMozDocumentRule","CSSNameSpaceRule","CSSNamespaceRule","CSSNumericArray","CSSNumericValue","CSSPageRule","CSSPerspective","CSSPositionValue","CSSPrimitiveValue","CSSPropertyRule","CSSRotate","CSSRule","CSSRuleList","CSSScale","CSSScopeRule","CSSSkew","CSSSkewX","CSSSkewY","CSSStartingStyleRule","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSStyleValue","CSSSupportsRule","CSSTransformComponent","CSSTransformValue","CSSTransition","CSSTranslate","CSSUnitValue","CSSUnknownRule","CSSUnparsedValue","CSSValue","CSSValueList","CSSVariableReferenceValue","CSSVariablesDeclaration","CSSVariablesRule","CSSViewportRule","CSS_ATTR","CSS_CM","CSS_COUNTER","CSS_CUSTOM","CSS_DEG","CSS_DIMENSION","CSS_EMS","CSS_EXS","CSS_FILTER_BLUR","CSS_FILTER_BRIGHTNESS","CSS_FILTER_CONTRAST","CSS_FILTER_CUSTOM","CSS_FILTER_DROP_SHADOW","CSS_FILTER_GRAYSCALE","CSS_FILTER_HUE_ROTATE","CSS_FILTER_INVERT","CSS_FILTER_OPACITY","CSS_FILTER_REFERENCE","CSS_FILTER_SATURATE","CSS_FILTER_SEPIA","CSS_GRAD","CSS_HZ","CSS_IDENT","CSS_IN","CSS_INHERIT","CSS_KHZ","CSS_MATRIX","CSS_MATRIX3D","CSS_MM","CSS_MS","CSS_NUMBER","CSS_PC","CSS_PERCENTAGE","CSS_PERSPECTIVE","CSS_PRIMITIVE_VALUE","CSS_PT","CSS_PX","CSS_RAD","CSS_RECT","CSS_RGBCOLOR","CSS_ROTATE","CSS_ROTATE3D","CSS_ROTATEX","CSS_ROTATEY","CSS_ROTATEZ","CSS_S","CSS_SCALE","CSS_SCALE3D","CSS_SCALEX","CSS_SCALEY","CSS_SCALEZ","CSS_SKEW","CSS_SKEWX","CSS_SKEWY","CSS_STRING","CSS_TRANSLATE","CSS_TRANSLATE3D","CSS_TRANSLATEX","CSS_TRANSLATEY","CSS_TRANSLATEZ","CSS_UNKNOWN","CSS_URI","CSS_VALUE_LIST","CSS_VH","CSS_VMAX","CSS_VMIN","CSS_VW","CULL_FACE","CULL_FACE_MODE","CURRENT_PROGRAM","CURRENT_QUERY","CURRENT_VERTEX_ATTRIB","CUSTOM","CW","Cache","CacheStorage","CanvasCaptureMediaStream","CanvasCaptureMediaStreamTrack","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","CaptureController","CaretPosition","ChannelMergerNode","ChannelSplitterNode","CharacterBoundsUpdateEvent","CharacterData","ClientRect","ClientRectList","Clipboard","ClipboardEvent","ClipboardItem","CloseEvent","Collator","CommandEvent","Comment","CompileError","CompositionEvent","CompressionStream","Console","ConstantSourceNode","ContentVisibilityAutoStateChangeEvent","Controllers","ConvolverNode","CookieChangeEvent","CookieStore","CookieStoreManager","CountQueuingStrategy","Counter","Credential","CredentialsContainer","CropTarget","Crypto","CryptoKey","CustomElementRegistry","CustomEvent","CustomStateSet","DATABASE_ERR","DATA_CLONE_ERR","DATA_ERR","DBLCLICK","DECR","DECR_WRAP","DELETE_STATUS","DEPTH","DEPTH24_STENCIL8","DEPTH32F_STENCIL8","DEPTH_ATTACHMENT","DEPTH_BITS","DEPTH_BUFFER_BIT","DEPTH_CLEAR_VALUE","DEPTH_COMPONENT","DEPTH_COMPONENT16","DEPTH_COMPONENT24","DEPTH_COMPONENT32F","DEPTH_FUNC","DEPTH_RANGE","DEPTH_STENCIL","DEPTH_STENCIL_ATTACHMENT","DEPTH_TEST","DEPTH_WRITEMASK","DEVICE_INELIGIBLE","DIRECTION_DOWN","DIRECTION_LEFT","DIRECTION_RIGHT","DIRECTION_UP","DISABLED","DISPATCH_REQUEST_ERR","DITHER","DOCUMENT_FRAGMENT_NODE","DOCUMENT_NODE","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","DOCUMENT_POSITION_PRECEDING","DOCUMENT_TYPE_NODE","DOMCursor","DOMError","DOMException","DOMImplementation","DOMImplementationLS","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMRequest","DOMSTRING_SIZE_ERR","DOMSettableTokenList","DOMStringList","DOMStringMap","DOMTokenList","DOMTransactionEvent","DOM_DELTA_LINE","DOM_DELTA_PAGE","DOM_DELTA_PIXEL","DOM_INPUT_METHOD_DROP","DOM_INPUT_METHOD_HANDWRITING","DOM_INPUT_METHOD_IME","DOM_INPUT_METHOD_KEYBOARD","DOM_INPUT_METHOD_MULTIMODAL","DOM_INPUT_METHOD_OPTION","DOM_INPUT_METHOD_PASTE","DOM_INPUT_METHOD_SCRIPT","DOM_INPUT_METHOD_UNKNOWN","DOM_INPUT_METHOD_VOICE","DOM_KEY_LOCATION_JOYSTICK","DOM_KEY_LOCATION_LEFT","DOM_KEY_LOCATION_MOBILE","DOM_KEY_LOCATION_NUMPAD","DOM_KEY_LOCATION_RIGHT","DOM_KEY_LOCATION_STANDARD","DOM_VK_0","DOM_VK_1","DOM_VK_2","DOM_VK_3","DOM_VK_4","DOM_VK_5","DOM_VK_6","DOM_VK_7","DOM_VK_8","DOM_VK_9","DOM_VK_A","DOM_VK_ACCEPT","DOM_VK_ADD","DOM_VK_ALT","DOM_VK_ALTGR","DOM_VK_AMPERSAND","DOM_VK_ASTERISK","DOM_VK_AT","DOM_VK_ATTN","DOM_VK_B","DOM_VK_BACKSPACE","DOM_VK_BACK_QUOTE","DOM_VK_BACK_SLASH","DOM_VK_BACK_SPACE","DOM_VK_C","DOM_VK_CANCEL","DOM_VK_CAPS_LOCK","DOM_VK_CIRCUMFLEX","DOM_VK_CLEAR","DOM_VK_CLOSE_BRACKET","DOM_VK_CLOSE_CURLY_BRACKET","DOM_VK_CLOSE_PAREN","DOM_VK_COLON","DOM_VK_COMMA","DOM_VK_CONTEXT_MENU","DOM_VK_CONTROL","DOM_VK_CONVERT","DOM_VK_CRSEL","DOM_VK_CTRL","DOM_VK_D","DOM_VK_DECIMAL","DOM_VK_DELETE","DOM_VK_DIVIDE","DOM_VK_DOLLAR","DOM_VK_DOUBLE_QUOTE","DOM_VK_DOWN","DOM_VK_E","DOM_VK_EISU","DOM_VK_END","DOM_VK_ENTER","DOM_VK_EQUALS","DOM_VK_EREOF","DOM_VK_ESCAPE","DOM_VK_EXCLAMATION","DOM_VK_EXECUTE","DOM_VK_EXSEL","DOM_VK_F","DOM_VK_F1","DOM_VK_F10","DOM_VK_F11","DOM_VK_F12","DOM_VK_F13","DOM_VK_F14","DOM_VK_F15","DOM_VK_F16","DOM_VK_F17","DOM_VK_F18","DOM_VK_F19","DOM_VK_F2","DOM_VK_F20","DOM_VK_F21","DOM_VK_F22","DOM_VK_F23","DOM_VK_F24","DOM_VK_F25","DOM_VK_F26","DOM_VK_F27","DOM_VK_F28","DOM_VK_F29","DOM_VK_F3","DOM_VK_F30","DOM_VK_F31","DOM_VK_F32","DOM_VK_F33","DOM_VK_F34","DOM_VK_F35","DOM_VK_F36","DOM_VK_F4","DOM_VK_F5","DOM_VK_F6","DOM_VK_F7","DOM_VK_F8","DOM_VK_F9","DOM_VK_FINAL","DOM_VK_FRONT","DOM_VK_G","DOM_VK_GREATER_THAN","DOM_VK_H","DOM_VK_HANGUL","DOM_VK_HANJA","DOM_VK_HASH","DOM_VK_HELP","DOM_VK_HK_TOGGLE","DOM_VK_HOME","DOM_VK_HYPHEN_MINUS","DOM_VK_I","DOM_VK_INSERT","DOM_VK_J","DOM_VK_JUNJA","DOM_VK_K","DOM_VK_KANA","DOM_VK_KANJI","DOM_VK_L","DOM_VK_LEFT","DOM_VK_LEFT_TAB","DOM_VK_LESS_THAN","DOM_VK_M","DOM_VK_META","DOM_VK_MODECHANGE","DOM_VK_MULTIPLY","DOM_VK_N","DOM_VK_NONCONVERT","DOM_VK_NUMPAD0","DOM_VK_NUMPAD1","DOM_VK_NUMPAD2","DOM_VK_NUMPAD3","DOM_VK_NUMPAD4","DOM_VK_NUMPAD5","DOM_VK_NUMPAD6","DOM_VK_NUMPAD7","DOM_VK_NUMPAD8","DOM_VK_NUMPAD9","DOM_VK_NUM_LOCK","DOM_VK_O","DOM_VK_OEM_1","DOM_VK_OEM_102","DOM_VK_OEM_2","DOM_VK_OEM_3","DOM_VK_OEM_4","DOM_VK_OEM_5","DOM_VK_OEM_6","DOM_VK_OEM_7","DOM_VK_OEM_8","DOM_VK_OEM_COMMA","DOM_VK_OEM_MINUS","DOM_VK_OEM_PERIOD","DOM_VK_OEM_PLUS","DOM_VK_OPEN_BRACKET","DOM_VK_OPEN_CURLY_BRACKET","DOM_VK_OPEN_PAREN","DOM_VK_P","DOM_VK_PA1","DOM_VK_PAGEDOWN","DOM_VK_PAGEUP","DOM_VK_PAGE_DOWN","DOM_VK_PAGE_UP","DOM_VK_PAUSE","DOM_VK_PERCENT","DOM_VK_PERIOD","DOM_VK_PIPE","DOM_VK_PLAY","DOM_VK_PLUS","DOM_VK_PRINT","DOM_VK_PRINTSCREEN","DOM_VK_PROCESSKEY","DOM_VK_PROPERITES","DOM_VK_Q","DOM_VK_QUESTION_MARK","DOM_VK_QUOTE","DOM_VK_R","DOM_VK_REDO","DOM_VK_RETURN","DOM_VK_RIGHT","DOM_VK_S","DOM_VK_SCROLL_LOCK","DOM_VK_SELECT","DOM_VK_SEMICOLON","DOM_VK_SEPARATOR","DOM_VK_SHIFT","DOM_VK_SLASH","DOM_VK_SLEEP","DOM_VK_SPACE","DOM_VK_SUBTRACT","DOM_VK_T","DOM_VK_TAB","DOM_VK_TILDE","DOM_VK_U","DOM_VK_UNDERSCORE","DOM_VK_UNDO","DOM_VK_UNICODE","DOM_VK_UP","DOM_VK_V","DOM_VK_VOLUME_DOWN","DOM_VK_VOLUME_MUTE","DOM_VK_VOLUME_UP","DOM_VK_W","DOM_VK_WIN","DOM_VK_WINDOW","DOM_VK_WIN_ICO_00","DOM_VK_WIN_ICO_CLEAR","DOM_VK_WIN_ICO_HELP","DOM_VK_WIN_OEM_ATTN","DOM_VK_WIN_OEM_AUTO","DOM_VK_WIN_OEM_BACKTAB","DOM_VK_WIN_OEM_CLEAR","DOM_VK_WIN_OEM_COPY","DOM_VK_WIN_OEM_CUSEL","DOM_VK_WIN_OEM_ENLW","DOM_VK_WIN_OEM_FINISH","DOM_VK_WIN_OEM_FJ_JISHO","DOM_VK_WIN_OEM_FJ_LOYA","DOM_VK_WIN_OEM_FJ_MASSHOU","DOM_VK_WIN_OEM_FJ_ROYA","DOM_VK_WIN_OEM_FJ_TOUROKU","DOM_VK_WIN_OEM_JUMP","DOM_VK_WIN_OEM_PA1","DOM_VK_WIN_OEM_PA2","DOM_VK_WIN_OEM_PA3","DOM_VK_WIN_OEM_RESET","DOM_VK_WIN_OEM_WSCTRL","DOM_VK_X","DOM_VK_XF86XK_ADD_FAVORITE","DOM_VK_XF86XK_APPLICATION_LEFT","DOM_VK_XF86XK_APPLICATION_RIGHT","DOM_VK_XF86XK_AUDIO_CYCLE_TRACK","DOM_VK_XF86XK_AUDIO_FORWARD","DOM_VK_XF86XK_AUDIO_LOWER_VOLUME","DOM_VK_XF86XK_AUDIO_MEDIA","DOM_VK_XF86XK_AUDIO_MUTE","DOM_VK_XF86XK_AUDIO_NEXT","DOM_VK_XF86XK_AUDIO_PAUSE","DOM_VK_XF86XK_AUDIO_PLAY","DOM_VK_XF86XK_AUDIO_PREV","DOM_VK_XF86XK_AUDIO_RAISE_VOLUME","DOM_VK_XF86XK_AUDIO_RANDOM_PLAY","DOM_VK_XF86XK_AUDIO_RECORD","DOM_VK_XF86XK_AUDIO_REPEAT","DOM_VK_XF86XK_AUDIO_REWIND","DOM_VK_XF86XK_AUDIO_STOP","DOM_VK_XF86XK_AWAY","DOM_VK_XF86XK_BACK","DOM_VK_XF86XK_BACK_FORWARD","DOM_VK_XF86XK_BATTERY","DOM_VK_XF86XK_BLUE","DOM_VK_XF86XK_BLUETOOTH","DOM_VK_XF86XK_BOOK","DOM_VK_XF86XK_BRIGHTNESS_ADJUST","DOM_VK_XF86XK_CALCULATOR","DOM_VK_XF86XK_CALENDAR","DOM_VK_XF86XK_CD","DOM_VK_XF86XK_CLOSE","DOM_VK_XF86XK_COMMUNITY","DOM_VK_XF86XK_CONTRAST_ADJUST","DOM_VK_XF86XK_COPY","DOM_VK_XF86XK_CUT","DOM_VK_XF86XK_CYCLE_ANGLE","DOM_VK_XF86XK_DISPLAY","DOM_VK_XF86XK_DOCUMENTS","DOM_VK_XF86XK_DOS","DOM_VK_XF86XK_EJECT","DOM_VK_XF86XK_EXCEL","DOM_VK_XF86XK_EXPLORER","DOM_VK_XF86XK_FAVORITES","DOM_VK_XF86XK_FINANCE","DOM_VK_XF86XK_FORWARD","DOM_VK_XF86XK_FRAME_BACK","DOM_VK_XF86XK_FRAME_FORWARD","DOM_VK_XF86XK_GAME","DOM_VK_XF86XK_GO","DOM_VK_XF86XK_GREEN","DOM_VK_XF86XK_HIBERNATE","DOM_VK_XF86XK_HISTORY","DOM_VK_XF86XK_HOME_PAGE","DOM_VK_XF86XK_HOT_LINKS","DOM_VK_XF86XK_I_TOUCH","DOM_VK_XF86XK_KBD_BRIGHTNESS_DOWN","DOM_VK_XF86XK_KBD_BRIGHTNESS_UP","DOM_VK_XF86XK_KBD_LIGHT_ON_OFF","DOM_VK_XF86XK_LAUNCH0","DOM_VK_XF86XK_LAUNCH1","DOM_VK_XF86XK_LAUNCH2","DOM_VK_XF86XK_LAUNCH3","DOM_VK_XF86XK_LAUNCH4","DOM_VK_XF86XK_LAUNCH5","DOM_VK_XF86XK_LAUNCH6","DOM_VK_XF86XK_LAUNCH7","DOM_VK_XF86XK_LAUNCH8","DOM_VK_XF86XK_LAUNCH9","DOM_VK_XF86XK_LAUNCH_A","DOM_VK_XF86XK_LAUNCH_B","DOM_VK_XF86XK_LAUNCH_C","DOM_VK_XF86XK_LAUNCH_D","DOM_VK_XF86XK_LAUNCH_E","DOM_VK_XF86XK_LAUNCH_F","DOM_VK_XF86XK_LIGHT_BULB","DOM_VK_XF86XK_LOG_OFF","DOM_VK_XF86XK_MAIL","DOM_VK_XF86XK_MAIL_FORWARD","DOM_VK_XF86XK_MARKET","DOM_VK_XF86XK_MEETING","DOM_VK_XF86XK_MEMO","DOM_VK_XF86XK_MENU_KB","DOM_VK_XF86XK_MENU_PB","DOM_VK_XF86XK_MESSENGER","DOM_VK_XF86XK_MON_BRIGHTNESS_DOWN","DOM_VK_XF86XK_MON_BRIGHTNESS_UP","DOM_VK_XF86XK_MUSIC","DOM_VK_XF86XK_MY_COMPUTER","DOM_VK_XF86XK_MY_SITES","DOM_VK_XF86XK_NEW","DOM_VK_XF86XK_NEWS","DOM_VK_XF86XK_OFFICE_HOME","DOM_VK_XF86XK_OPEN","DOM_VK_XF86XK_OPEN_URL","DOM_VK_XF86XK_OPTION","DOM_VK_XF86XK_PASTE","DOM_VK_XF86XK_PHONE","DOM_VK_XF86XK_PICTURES","DOM_VK_XF86XK_POWER_DOWN","DOM_VK_XF86XK_POWER_OFF","DOM_VK_XF86XK_RED","DOM_VK_XF86XK_REFRESH","DOM_VK_XF86XK_RELOAD","DOM_VK_XF86XK_REPLY","DOM_VK_XF86XK_ROCKER_DOWN","DOM_VK_XF86XK_ROCKER_ENTER","DOM_VK_XF86XK_ROCKER_UP","DOM_VK_XF86XK_ROTATE_WINDOWS","DOM_VK_XF86XK_ROTATION_KB","DOM_VK_XF86XK_ROTATION_PB","DOM_VK_XF86XK_SAVE","DOM_VK_XF86XK_SCREEN_SAVER","DOM_VK_XF86XK_SCROLL_CLICK","DOM_VK_XF86XK_SCROLL_DOWN","DOM_VK_XF86XK_SCROLL_UP","DOM_VK_XF86XK_SEARCH","DOM_VK_XF86XK_SEND","DOM_VK_XF86XK_SHOP","DOM_VK_XF86XK_SPELL","DOM_VK_XF86XK_SPLIT_SCREEN","DOM_VK_XF86XK_STANDBY","DOM_VK_XF86XK_START","DOM_VK_XF86XK_STOP","DOM_VK_XF86XK_SUBTITLE","DOM_VK_XF86XK_SUPPORT","DOM_VK_XF86XK_SUSPEND","DOM_VK_XF86XK_TASK_PANE","DOM_VK_XF86XK_TERMINAL","DOM_VK_XF86XK_TIME","DOM_VK_XF86XK_TOOLS","DOM_VK_XF86XK_TOP_MENU","DOM_VK_XF86XK_TO_DO_LIST","DOM_VK_XF86XK_TRAVEL","DOM_VK_XF86XK_USER1KB","DOM_VK_XF86XK_USER2KB","DOM_VK_XF86XK_USER_PB","DOM_VK_XF86XK_UWB","DOM_VK_XF86XK_VENDOR_HOME","DOM_VK_XF86XK_VIDEO","DOM_VK_XF86XK_VIEW","DOM_VK_XF86XK_WAKE_UP","DOM_VK_XF86XK_WEB_CAM","DOM_VK_XF86XK_WHEEL_BUTTON","DOM_VK_XF86XK_WLAN","DOM_VK_XF86XK_WORD","DOM_VK_XF86XK_WWW","DOM_VK_XF86XK_XFER","DOM_VK_XF86XK_YELLOW","DOM_VK_XF86XK_ZOOM_IN","DOM_VK_XF86XK_ZOOM_OUT","DOM_VK_Y","DOM_VK_Z","DOM_VK_ZOOM","DONE","DONT_CARE","DOWNLOADING","DRAGDROP","DRAW_BUFFER0","DRAW_BUFFER1","DRAW_BUFFER10","DRAW_BUFFER11","DRAW_BUFFER12","DRAW_BUFFER13","DRAW_BUFFER14","DRAW_BUFFER15","DRAW_BUFFER2","DRAW_BUFFER3","DRAW_BUFFER4","DRAW_BUFFER5","DRAW_BUFFER6","DRAW_BUFFER7","DRAW_BUFFER8","DRAW_BUFFER9","DRAW_FRAMEBUFFER","DRAW_FRAMEBUFFER_BINDING","DST_ALPHA","DST_COLOR","DYNAMIC_COPY","DYNAMIC_DRAW","DYNAMIC_READ","DataChannel","DataTransfer","DataTransferItem","DataTransferItemList","DataView","Date","DateTimeFormat","DecompressionStream","DelayNode","DelegatedInkTrailPresenter","DeprecationReportBody","DesktopNotification","DesktopNotificationCenter","DeviceLightEvent","DeviceMotionEvent","DeviceMotionEventAcceleration","DeviceMotionEventRotationRate","DeviceOrientationEvent","DeviceProximityEvent","DeviceStorage","DeviceStorageChangeEvent","Directory","DisplayNames","Document","DocumentFragment","DocumentPictureInPicture","DocumentPictureInPictureEvent","DocumentTimeline","DocumentType","DragEvent","DynamicsCompressorNode","E","ELEMENT_ARRAY_BUFFER","ELEMENT_ARRAY_BUFFER_BINDING","ELEMENT_NODE","EMPTY","ENCODING_ERR","ENDED","END_TO_END","END_TO_START","ENTITY_NODE","ENTITY_REFERENCE_NODE","EPSILON","EQUAL","EQUALPOWER","ERROR","EXPONENTIAL_DISTANCE","EditContext","Element","ElementInternals","ElementQuery","EncodedAudioChunk","EncodedVideoChunk","EnterPictureInPictureEvent","Entity","EntityReference","Error","ErrorEvent","EvalError","Event","EventCounts","EventException","EventSource","EventTarget","Exception","External","EyeDropper","FASTEST","FIDOSDK","FILTER_ACCEPT","FILTER_INTERRUPT","FILTER_REJECT","FILTER_SKIP","FINISHED_STATE","FIRST_ORDERED_NODE_TYPE","FLOAT","FLOAT_32_UNSIGNED_INT_24_8_REV","FLOAT_MAT2","FLOAT_MAT2x3","FLOAT_MAT2x4","FLOAT_MAT3","FLOAT_MAT3x2","FLOAT_MAT3x4","FLOAT_MAT4","FLOAT_MAT4x2","FLOAT_MAT4x3","FLOAT_VEC2","FLOAT_VEC3","FLOAT_VEC4","FOCUS","FONT_FACE_RULE","FONT_FEATURE_VALUES_RULE","FRAGMENT","FRAGMENT_SHADER","FRAGMENT_SHADER_DERIVATIVE_HINT","FRAGMENT_SHADER_DERIVATIVE_HINT_OES","FRAMEBUFFER","FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE","FRAMEBUFFER_ATTACHMENT_BLUE_SIZE","FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING","FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE","FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE","FRAMEBUFFER_ATTACHMENT_GREEN_SIZE","FRAMEBUFFER_ATTACHMENT_OBJECT_NAME","FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE","FRAMEBUFFER_ATTACHMENT_RED_SIZE","FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE","FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE","FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER","FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL","FRAMEBUFFER_BINDING","FRAMEBUFFER_COMPLETE","FRAMEBUFFER_DEFAULT","FRAMEBUFFER_INCOMPLETE_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_DIMENSIONS","FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT","FRAMEBUFFER_INCOMPLETE_MULTISAMPLE","FRAMEBUFFER_UNSUPPORTED","FRONT","FRONT_AND_BACK","FRONT_FACE","FUNC_ADD","FUNC_REVERSE_SUBTRACT","FUNC_SUBTRACT","FeaturePolicy","FeaturePolicyViolationReportBody","FederatedCredential","Feed","FeedEntry","Fence","FencedFrameConfig","File","FileError","FileList","FileReader","FileSystem","FileSystemDirectoryEntry","FileSystemDirectoryHandle","FileSystemDirectoryReader","FileSystemEntry","FileSystemFileEntry","FileSystemFileHandle","FileSystemHandle","FileSystemWritableFileStream","FinalizationRegistry","FindInPage","Float32Array","Float64Array","FocusEvent","FontData","FontFace","FontFaceSet","FontFaceSetLoadEvent","FormData","FormDataEvent","FragmentDirective","Function","GENERATE_MIPMAP_HINT","GEQUAL","GPU","GPUAdapter","GPUAdapterInfo","GPUBindGroup","GPUBindGroupLayout","GPUBuffer","GPUBufferUsage","GPUCanvasContext","GPUColorWrite","GPUCommandBuffer","GPUCommandEncoder","GPUCompilationInfo","GPUCompilationMessage","GPUComputePassEncoder","GPUComputePipeline","GPUDevice","GPUDeviceLostInfo","GPUError","GPUExternalTexture","GPUInternalError","GPUMapMode","GPUOutOfMemoryError","GPUPipelineError","GPUPipelineLayout","GPUQuerySet","GPUQueue","GPURenderBundle","GPURenderBundleEncoder","GPURenderPassEncoder","GPURenderPipeline","GPUSampler","GPUShaderModule","GPUShaderStage","GPUSupportedFeatures","GPUSupportedLimits","GPUTexture","GPUTextureUsage","GPUTextureView","GPUUncapturedErrorEvent","GPUValidationError","GREATER","GREEN","GREEN_BITS","GainNode","Gamepad","GamepadAxisMoveEvent","GamepadButton","GamepadButtonEvent","GamepadEvent","GamepadHapticActuator","GamepadPose","Geolocation","GeolocationCoordinates","GeolocationPosition","GeolocationPositionError","GestureEvent","Global","GravitySensor","Gyroscope","HALF_FLOAT","HAVE_CURRENT_DATA","HAVE_ENOUGH_DATA","HAVE_FUTURE_DATA","HAVE_METADATA","HAVE_NOTHING","HEADERS_RECEIVED","HID","HIDConnectionEvent","HIDDEN","HIDDevice","HIDInputReportEvent","HIERARCHY_REQUEST_ERR","HIGHPASS","HIGHSHELF","HIGH_FLOAT","HIGH_INT","HORIZONTAL","HORIZONTAL_AXIS","HRTF","HTMLAllCollection","HTMLAnchorElement","HTMLAppletElement","HTMLAreaElement","HTMLAudioElement","HTMLBRElement","HTMLBaseElement","HTMLBaseFontElement","HTMLBlockquoteElement","HTMLBodyElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLCommandElement","HTMLContentElement","HTMLDListElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFencedFrameElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHRElement","HTMLHeadElement","HTMLHeadingElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLIsIndexElement","HTMLKeygenElement","HTMLLIElement","HTMLLabelElement","HTMLLegendElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMenuItemElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLOListElement","HTMLObjectElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLPropertiesCollection","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSlotElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","HashChangeEvent","Headers","Highlight","HighlightRegistry","History","Hz","ICE_CHECKING","ICE_CLOSED","ICE_COMPLETED","ICE_CONNECTED","ICE_FAILED","ICE_GATHERING","ICE_WAITING","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBDatabaseException","IDBFactory","IDBFileHandle","IDBFileRequest","IDBIndex","IDBKeyRange","IDBMutableFile","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IDLE","IIRFilterNode","IMPLEMENTATION_COLOR_READ_FORMAT","IMPLEMENTATION_COLOR_READ_TYPE","IMPORT_RULE","INCR","INCR_WRAP","INDEX","INDEX_SIZE_ERR","INDIRECT","INT","INTERLEAVED_ATTRIBS","INT_2_10_10_10_REV","INT_SAMPLER_2D","INT_SAMPLER_2D_ARRAY","INT_SAMPLER_3D","INT_SAMPLER_CUBE","INT_VEC2","INT_VEC3","INT_VEC4","INUSE_ATTRIBUTE_ERR","INVALID_ACCESS_ERR","INVALID_CHARACTER_ERR","INVALID_ENUM","INVALID_EXPRESSION_ERR","INVALID_FRAMEBUFFER_OPERATION","INVALID_INDEX","INVALID_MODIFICATION_ERR","INVALID_NODE_TYPE_ERR","INVALID_OPERATION","INVALID_STATE_ERR","INVALID_VALUE","INVERSE_DISTANCE","INVERT","IceCandidate","IdentityCredential","IdentityCredentialError","IdentityProvider","IdleDeadline","IdleDetector","Image","ImageBitmap","ImageBitmapRenderingContext","ImageCapture","ImageData","ImageDecoder","ImageTrack","ImageTrackList","Infinity","Ink","InputDeviceCapabilities","InputDeviceInfo","InputEvent","InputMethodContext","InstallTrigger","InstallTriggerImpl","Instance","Int16Array","Int32Array","Int8Array","Intent","InternalError","IntersectionObserver","IntersectionObserverEntry","Intl","IsSearchProviderInstalled","Iterator","JSON","JSTag","KEEP","KEYDOWN","KEYFRAMES_RULE","KEYFRAME_RULE","KEYPRESS","KEYUP","KeyEvent","Keyboard","KeyboardEvent","KeyboardLayoutMap","KeyframeEffect","LENGTHADJUST_SPACING","LENGTHADJUST_SPACINGANDGLYPHS","LENGTHADJUST_UNKNOWN","LEQUAL","LESS","LINEAR","LINEAR_DISTANCE","LINEAR_MIPMAP_LINEAR","LINEAR_MIPMAP_NEAREST","LINES","LINE_LOOP","LINE_STRIP","LINE_WIDTH","LINK_STATUS","LIVE","LN10","LN2","LOADED","LOADING","LOG10E","LOG2E","LOWPASS","LOWSHELF","LOW_FLOAT","LOW_INT","LSException","LSParserFilter","LUMINANCE","LUMINANCE_ALPHA","LargestContentfulPaint","LaunchParams","LaunchQueue","LayoutShift","LayoutShiftAttribution","LinearAccelerationSensor","LinkError","ListFormat","LocalMediaStream","Locale","Location","Lock","LockManager","MAP_READ","MAP_WRITE","MAX","MAX_3D_TEXTURE_SIZE","MAX_ARRAY_TEXTURE_LAYERS","MAX_CLIENT_WAIT_TIMEOUT_WEBGL","MAX_COLOR_ATTACHMENTS","MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS","MAX_COMBINED_TEXTURE_IMAGE_UNITS","MAX_COMBINED_UNIFORM_BLOCKS","MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS","MAX_CUBE_MAP_TEXTURE_SIZE","MAX_DRAW_BUFFERS","MAX_ELEMENTS_INDICES","MAX_ELEMENTS_VERTICES","MAX_ELEMENT_INDEX","MAX_FRAGMENT_INPUT_COMPONENTS","MAX_FRAGMENT_UNIFORM_BLOCKS","MAX_FRAGMENT_UNIFORM_COMPONENTS","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_PROGRAM_TEXEL_OFFSET","MAX_RENDERBUFFER_SIZE","MAX_SAFE_INTEGER","MAX_SAMPLES","MAX_SERVER_WAIT_TIMEOUT","MAX_TEXTURE_IMAGE_UNITS","MAX_TEXTURE_LOD_BIAS","MAX_TEXTURE_MAX_ANISOTROPY_EXT","MAX_TEXTURE_SIZE","MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS","MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS","MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS","MAX_UNIFORM_BLOCK_SIZE","MAX_UNIFORM_BUFFER_BINDINGS","MAX_VALUE","MAX_VARYING_COMPONENTS","MAX_VARYING_VECTORS","MAX_VERTEX_ATTRIBS","MAX_VERTEX_OUTPUT_COMPONENTS","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_BLOCKS","MAX_VERTEX_UNIFORM_COMPONENTS","MAX_VERTEX_UNIFORM_VECTORS","MAX_VIEWPORT_DIMS","MEDIA_ERR_ABORTED","MEDIA_ERR_DECODE","MEDIA_ERR_ENCRYPTED","MEDIA_ERR_NETWORK","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_KEYERR_CLIENT","MEDIA_KEYERR_DOMAIN","MEDIA_KEYERR_HARDWARECHANGE","MEDIA_KEYERR_OUTPUT","MEDIA_KEYERR_SERVICE","MEDIA_KEYERR_UNKNOWN","MEDIA_RULE","MEDIUM_FLOAT","MEDIUM_INT","META_MASK","MIDIAccess","MIDIConnectionEvent","MIDIInput","MIDIInputMap","MIDIMessageEvent","MIDIOutput","MIDIOutputMap","MIDIPort","MIN","MIN_PROGRAM_TEXEL_OFFSET","MIN_SAFE_INTEGER","MIN_VALUE","MIRRORED_REPEAT","MODE_ASYNCHRONOUS","MODE_SYNCHRONOUS","MODIFICATION","MOUSEDOWN","MOUSEDRAG","MOUSEMOVE","MOUSEOUT","MOUSEOVER","MOUSEUP","MOZ_KEYFRAMES_RULE","MOZ_KEYFRAME_RULE","MOZ_SOURCE_CURSOR","MOZ_SOURCE_ERASER","MOZ_SOURCE_KEYBOARD","MOZ_SOURCE_MOUSE","MOZ_SOURCE_PEN","MOZ_SOURCE_TOUCH","MOZ_SOURCE_UNKNOWN","MSGESTURE_FLAG_BEGIN","MSGESTURE_FLAG_CANCEL","MSGESTURE_FLAG_END","MSGESTURE_FLAG_INERTIA","MSGESTURE_FLAG_NONE","MSPOINTER_TYPE_MOUSE","MSPOINTER_TYPE_PEN","MSPOINTER_TYPE_TOUCH","MS_ASYNC_CALLBACK_STATUS_ASSIGN_DELEGATE","MS_ASYNC_CALLBACK_STATUS_CANCEL","MS_ASYNC_CALLBACK_STATUS_CHOOSEANY","MS_ASYNC_CALLBACK_STATUS_ERROR","MS_ASYNC_CALLBACK_STATUS_JOIN","MS_ASYNC_OP_STATUS_CANCELED","MS_ASYNC_OP_STATUS_ERROR","MS_ASYNC_OP_STATUS_SUCCESS","MS_MANIPULATION_STATE_ACTIVE","MS_MANIPULATION_STATE_CANCELLED","MS_MANIPULATION_STATE_COMMITTED","MS_MANIPULATION_STATE_DRAGGING","MS_MANIPULATION_STATE_INERTIA","MS_MANIPULATION_STATE_PRESELECT","MS_MANIPULATION_STATE_SELECTING","MS_MANIPULATION_STATE_STOPPED","MS_MEDIA_ERR_ENCRYPTED","MS_MEDIA_KEYERR_CLIENT","MS_MEDIA_KEYERR_DOMAIN","MS_MEDIA_KEYERR_HARDWARECHANGE","MS_MEDIA_KEYERR_OUTPUT","MS_MEDIA_KEYERR_SERVICE","MS_MEDIA_KEYERR_UNKNOWN","Map","Math","MathMLElement","MediaCapabilities","MediaCapabilitiesInfo","MediaController","MediaDeviceInfo","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyError","MediaKeyEvent","MediaKeyMessageEvent","MediaKeyNeededEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaKeys","MediaList","MediaMetadata","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaRecorderErrorEvent","MediaSession","MediaSettingsRange","MediaSource","MediaSourceHandle","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackAudioSourceNode","MediaStreamTrackEvent","MediaStreamTrackGenerator","MediaStreamTrackProcessor","MediaStreamTrackVideoStats","Memory","MessageChannel","MessageEvent","MessagePort","Methods","MimeType","MimeTypeArray","Module","MouseEvent","MouseScrollEvent","MozAnimation","MozAnimationDelay","MozAnimationDirection","MozAnimationDuration","MozAnimationFillMode","MozAnimationIterationCount","MozAnimationName","MozAnimationPlayState","MozAnimationTimingFunction","MozAppearance","MozBackfaceVisibility","MozBinding","MozBorderBottomColors","MozBorderEnd","MozBorderEndColor","MozBorderEndStyle","MozBorderEndWidth","MozBorderImage","MozBorderLeftColors","MozBorderRightColors","MozBorderStart","MozBorderStartColor","MozBorderStartStyle","MozBorderStartWidth","MozBorderTopColors","MozBoxAlign","MozBoxDirection","MozBoxFlex","MozBoxOrdinalGroup","MozBoxOrient","MozBoxPack","MozBoxSizing","MozCSSKeyframeRule","MozCSSKeyframesRule","MozColumnCount","MozColumnFill","MozColumnGap","MozColumnRule","MozColumnRuleColor","MozColumnRuleStyle","MozColumnRuleWidth","MozColumnWidth","MozColumns","MozContactChangeEvent","MozFloatEdge","MozFontFeatureSettings","MozFontLanguageOverride","MozForceBrokenImageIcon","MozHyphens","MozImageRegion","MozMarginEnd","MozMarginStart","MozMmsEvent","MozMmsMessage","MozMobileMessageThread","MozOSXFontSmoothing","MozOrient","MozOsxFontSmoothing","MozOutlineRadius","MozOutlineRadiusBottomleft","MozOutlineRadiusBottomright","MozOutlineRadiusTopleft","MozOutlineRadiusTopright","MozPaddingEnd","MozPaddingStart","MozPerspective","MozPerspectiveOrigin","MozPowerManager","MozSettingsEvent","MozSmsEvent","MozSmsMessage","MozStackSizing","MozTabSize","MozTextAlignLast","MozTextDecorationColor","MozTextDecorationLine","MozTextDecorationStyle","MozTextSizeAdjust","MozTransform","MozTransformOrigin","MozTransformStyle","MozTransition","MozTransitionDelay","MozTransitionDuration","MozTransitionProperty","MozTransitionTimingFunction","MozUserFocus","MozUserInput","MozUserModify","MozUserSelect","MozWindowDragging","MozWindowShadow","MutationEvent","MutationObserver","MutationRecord","NAMESPACE_ERR","NAMESPACE_RULE","NEAREST","NEAREST_MIPMAP_LINEAR","NEAREST_MIPMAP_NEAREST","NEGATIVE_INFINITY","NETWORK_EMPTY","NETWORK_ERR","NETWORK_IDLE","NETWORK_LOADED","NETWORK_LOADING","NETWORK_NO_SOURCE","NEVER","NEW","NEXT","NEXT_NO_DUPLICATE","NICEST","NODE_AFTER","NODE_BEFORE","NODE_BEFORE_AND_AFTER","NODE_INSIDE","NONE","NON_TRANSIENT_ERR","NOTATION_NODE","NOTCH","NOTEQUAL","NOT_ALLOWED_ERR","NOT_FOUND_ERR","NOT_READABLE_ERR","NOT_SUPPORTED_ERR","NO_DATA_ALLOWED_ERR","NO_ERR","NO_ERROR","NO_MODIFICATION_ALLOWED_ERR","NUMBER_TYPE","NUM_COMPRESSED_TEXTURE_FORMATS","NaN","NamedNodeMap","NavigateEvent","Navigation","NavigationActivation","NavigationCurrentEntryChangeEvent","NavigationDestination","NavigationHistoryEntry","NavigationPreloadManager","NavigationTransition","Navigator","NavigatorLogin","NavigatorManagedData","NavigatorUAData","NearbyLinks","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","NotRestoredReasonDetails","NotRestoredReasons","Notation","Notification","NotifyPaintEvent","Number","NumberFormat","OBJECT_TYPE","OBSOLETE","OK","ONE","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","OPEN","OPENED","OPENING","ORDERED_NODE_ITERATOR_TYPE","ORDERED_NODE_SNAPSHOT_TYPE","OTHER_ERROR","OTPCredential","OUT_OF_MEMORY","Object","OfflineAudioCompletionEvent","OfflineAudioContext","OfflineResourceList","OffscreenCanvas","OffscreenCanvasRenderingContext2D","Option","OrientationSensor","OscillatorNode","OverconstrainedError","OverflowEvent","PACK_ALIGNMENT","PACK_ROW_LENGTH","PACK_SKIP_PIXELS","PACK_SKIP_ROWS","PAGE_RULE","PARSE_ERR","PATHSEG_ARC_ABS","PATHSEG_ARC_REL","PATHSEG_CLOSEPATH","PATHSEG_CURVETO_CUBIC_ABS","PATHSEG_CURVETO_CUBIC_REL","PATHSEG_CURVETO_CUBIC_SMOOTH_ABS","PATHSEG_CURVETO_CUBIC_SMOOTH_REL","PATHSEG_CURVETO_QUADRATIC_ABS","PATHSEG_CURVETO_QUADRATIC_REL","PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS","PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL","PATHSEG_LINETO_ABS","PATHSEG_LINETO_HORIZONTAL_ABS","PATHSEG_LINETO_HORIZONTAL_REL","PATHSEG_LINETO_REL","PATHSEG_LINETO_VERTICAL_ABS","PATHSEG_LINETO_VERTICAL_REL","PATHSEG_MOVETO_ABS","PATHSEG_MOVETO_REL","PATHSEG_UNKNOWN","PATH_EXISTS_ERR","PEAKING","PERMISSION_DENIED","PERSISTENT","PI","PIXEL_PACK_BUFFER","PIXEL_PACK_BUFFER_BINDING","PIXEL_UNPACK_BUFFER","PIXEL_UNPACK_BUFFER_BINDING","PLAYING_STATE","POINTS","POLYGON_OFFSET_FACTOR","POLYGON_OFFSET_FILL","POLYGON_OFFSET_UNITS","POSITION_UNAVAILABLE","POSITIVE_INFINITY","PREV","PREV_NO_DUPLICATE","PROCESSING_INSTRUCTION_NODE","PageChangeEvent","PageRevealEvent","PageSwapEvent","PageTransitionEvent","PaintRequest","PaintRequestList","PannerNode","PasswordCredential","Path2D","PaymentAddress","PaymentInstruments","PaymentManager","PaymentMethodChangeEvent","PaymentRequest","PaymentRequestUpdateEvent","PaymentResponse","Performance","PerformanceElementTiming","PerformanceEntry","PerformanceEventTiming","PerformanceLongAnimationFrameTiming","PerformanceLongTaskTiming","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceNavigationTiming","PerformanceObserver","PerformanceObserverEntryList","PerformancePaintTiming","PerformanceResourceTiming","PerformanceScriptTiming","PerformanceServerTiming","PerformanceTiming","PeriodicSyncManager","PeriodicWave","PermissionStatus","Permissions","PhotoCapabilities","PictureInPictureEvent","PictureInPictureWindow","Plugin","PluginArray","PluralRules","PointerEvent","PopStateEvent","PopupBlockedEvent","Presentation","PresentationAvailability","PresentationConnection","PresentationConnectionAvailableEvent","PresentationConnectionCloseEvent","PresentationConnectionList","PresentationReceiver","PresentationRequest","ProcessingInstruction","Profiler","ProgressEvent","Promise","PromiseRejectionEvent","PropertyNodeList","Proxy","PublicKeyCredential","PushManager","PushSubscription","PushSubscriptionOptions","Q","QUERY_RESOLVE","QUERY_RESULT","QUERY_RESULT_AVAILABLE","QUOTA_ERR","QUOTA_EXCEEDED_ERR","QueryInterface","R11F_G11F_B10F","R16F","R16I","R16UI","R32F","R32I","R32UI","R8","R8I","R8UI","R8_SNORM","RASTERIZER_DISCARD","READ","READ_BUFFER","READ_FRAMEBUFFER","READ_FRAMEBUFFER_BINDING","READ_ONLY","READ_ONLY_ERR","READ_WRITE","RED","RED_BITS","RED_INTEGER","REMOVAL","RENDERBUFFER","RENDERBUFFER_ALPHA_SIZE","RENDERBUFFER_BINDING","RENDERBUFFER_BLUE_SIZE","RENDERBUFFER_DEPTH_SIZE","RENDERBUFFER_GREEN_SIZE","RENDERBUFFER_HEIGHT","RENDERBUFFER_INTERNAL_FORMAT","RENDERBUFFER_RED_SIZE","RENDERBUFFER_SAMPLES","RENDERBUFFER_STENCIL_SIZE","RENDERBUFFER_WIDTH","RENDERER","RENDERING_INTENT_ABSOLUTE_COLORIMETRIC","RENDERING_INTENT_AUTO","RENDERING_INTENT_PERCEPTUAL","RENDERING_INTENT_RELATIVE_COLORIMETRIC","RENDERING_INTENT_SATURATION","RENDERING_INTENT_UNKNOWN","RENDER_ATTACHMENT","REPEAT","REPLACE","RG","RG16F","RG16I","RG16UI","RG32F","RG32I","RG32UI","RG8","RG8I","RG8UI","RG8_SNORM","RGB","RGB10_A2","RGB10_A2UI","RGB16F","RGB16I","RGB16UI","RGB32F","RGB32I","RGB32UI","RGB565","RGB5_A1","RGB8","RGB8I","RGB8UI","RGB8_SNORM","RGB9_E5","RGBA","RGBA16F","RGBA16I","RGBA16UI","RGBA32F","RGBA32I","RGBA32UI","RGBA4","RGBA8","RGBA8I","RGBA8UI","RGBA8_SNORM","RGBA_INTEGER","RGBColor","RGB_INTEGER","RG_INTEGER","ROTATION_CLOCKWISE","ROTATION_COUNTERCLOCKWISE","RTCCertificate","RTCDTMFSender","RTCDTMFToneChangeEvent","RTCDataChannel","RTCDataChannelEvent","RTCDtlsTransport","RTCEncodedAudioFrame","RTCEncodedVideoFrame","RTCError","RTCErrorEvent","RTCIceCandidate","RTCIceTransport","RTCPeerConnection","RTCPeerConnectionIceErrorEvent","RTCPeerConnectionIceEvent","RTCRtpReceiver","RTCRtpScriptTransform","RTCRtpSender","RTCRtpTransceiver","RTCSctpTransport","RTCSessionDescription","RTCStatsReport","RTCTrackEvent","RadioNodeList","Range","RangeError","RangeException","ReadableByteStreamController","ReadableStream","ReadableStreamBYOBReader","ReadableStreamBYOBRequest","ReadableStreamDefaultController","ReadableStreamDefaultReader","RecordErrorEvent","Rect","ReferenceError","Reflect","RegExp","RelativeOrientationSensor","RelativeTimeFormat","RemotePlayback","Report","ReportBody","ReportingObserver","Request","ResizeObserver","ResizeObserverEntry","ResizeObserverSize","Response","RuntimeError","SAMPLER_2D","SAMPLER_2D_ARRAY","SAMPLER_2D_ARRAY_SHADOW","SAMPLER_2D_SHADOW","SAMPLER_3D","SAMPLER_BINDING","SAMPLER_CUBE","SAMPLER_CUBE_SHADOW","SAMPLES","SAMPLE_ALPHA_TO_COVERAGE","SAMPLE_BUFFERS","SAMPLE_COVERAGE","SAMPLE_COVERAGE_INVERT","SAMPLE_COVERAGE_VALUE","SAWTOOTH","SCHEDULED_STATE","SCISSOR_BOX","SCISSOR_TEST","SCROLL_PAGE_DOWN","SCROLL_PAGE_UP","SDP_ANSWER","SDP_OFFER","SDP_PRANSWER","SECURITY_ERR","SELECT","SEPARATE_ATTRIBS","SERIALIZE_ERR","SEVERITY_ERROR","SEVERITY_FATAL_ERROR","SEVERITY_WARNING","SHADER_COMPILER","SHADER_TYPE","SHADING_LANGUAGE_VERSION","SHIFT_MASK","SHORT","SHOWING","SHOW_ALL","SHOW_ATTRIBUTE","SHOW_CDATA_SECTION","SHOW_COMMENT","SHOW_DOCUMENT","SHOW_DOCUMENT_FRAGMENT","SHOW_DOCUMENT_TYPE","SHOW_ELEMENT","SHOW_ENTITY","SHOW_ENTITY_REFERENCE","SHOW_NOTATION","SHOW_PROCESSING_INSTRUCTION","SHOW_TEXT","SIGNALED","SIGNED_NORMALIZED","SINE","SOUNDFIELD","SQLException","SQRT1_2","SQRT2","SQUARE","SRC_ALPHA","SRC_ALPHA_SATURATE","SRC_COLOR","SRGB","SRGB8","SRGB8_ALPHA8","START_TO_END","START_TO_START","STATIC_COPY","STATIC_DRAW","STATIC_READ","STENCIL","STENCIL_ATTACHMENT","STENCIL_BACK_FAIL","STENCIL_BACK_FUNC","STENCIL_BACK_PASS_DEPTH_FAIL","STENCIL_BACK_PASS_DEPTH_PASS","STENCIL_BACK_REF","STENCIL_BACK_VALUE_MASK","STENCIL_BACK_WRITEMASK","STENCIL_BITS","STENCIL_BUFFER_BIT","STENCIL_CLEAR_VALUE","STENCIL_FAIL","STENCIL_FUNC","STENCIL_INDEX","STENCIL_INDEX8","STENCIL_PASS_DEPTH_FAIL","STENCIL_PASS_DEPTH_PASS","STENCIL_REF","STENCIL_TEST","STENCIL_VALUE_MASK","STENCIL_WRITEMASK","STORAGE","STORAGE_BINDING","STREAM_COPY","STREAM_DRAW","STREAM_READ","STRING_TYPE","STYLE_RULE","SUBPIXEL_BITS","SUPPORTS_RULE","SVGAElement","SVGAltGlyphDefElement","SVGAltGlyphElement","SVGAltGlyphItemElement","SVGAngle","SVGAnimateColorElement","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGColor","SVGComponentTransferFunctionElement","SVGCursorElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGDocument","SVGElement","SVGElementInstance","SVGElementInstanceList","SVGEllipseElement","SVGException","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGFontElement","SVGFontFaceElement","SVGFontFaceFormatElement","SVGFontFaceNameElement","SVGFontFaceSrcElement","SVGFontFaceUriElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGlyphElement","SVGGlyphRefElement","SVGGradientElement","SVGGraphicsElement","SVGHKernElement","SVGImageElement","SVGLength","SVGLengthList","SVGLineElement","SVGLinearGradientElement","SVGMPathElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMissingGlyphElement","SVGNumber","SVGNumberList","SVGPaint","SVGPathElement","SVGPathSeg","SVGPathSegArcAbs","SVGPathSegArcRel","SVGPathSegClosePath","SVGPathSegCurvetoCubicAbs","SVGPathSegCurvetoCubicRel","SVGPathSegCurvetoCubicSmoothAbs","SVGPathSegCurvetoCubicSmoothRel","SVGPathSegCurvetoQuadraticAbs","SVGPathSegCurvetoQuadraticRel","SVGPathSegCurvetoQuadraticSmoothAbs","SVGPathSegCurvetoQuadraticSmoothRel","SVGPathSegLinetoAbs","SVGPathSegLinetoHorizontalAbs","SVGPathSegLinetoHorizontalRel","SVGPathSegLinetoRel","SVGPathSegLinetoVerticalAbs","SVGPathSegLinetoVerticalRel","SVGPathSegList","SVGPathSegMovetoAbs","SVGPathSegMovetoRel","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGRenderingIntent","SVGSVGElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSwitchElement","SVGSymbolElement","SVGTRefElement","SVGTSpanElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGUnitTypes","SVGUseElement","SVGVKernElement","SVGViewElement","SVGViewSpec","SVGZoomAndPan","SVGZoomEvent","SVG_ANGLETYPE_DEG","SVG_ANGLETYPE_GRAD","SVG_ANGLETYPE_RAD","SVG_ANGLETYPE_UNKNOWN","SVG_ANGLETYPE_UNSPECIFIED","SVG_CHANNEL_A","SVG_CHANNEL_B","SVG_CHANNEL_G","SVG_CHANNEL_R","SVG_CHANNEL_UNKNOWN","SVG_COLORTYPE_CURRENTCOLOR","SVG_COLORTYPE_RGBCOLOR","SVG_COLORTYPE_RGBCOLOR_ICCCOLOR","SVG_COLORTYPE_UNKNOWN","SVG_EDGEMODE_DUPLICATE","SVG_EDGEMODE_NONE","SVG_EDGEMODE_UNKNOWN","SVG_EDGEMODE_WRAP","SVG_FEBLEND_MODE_COLOR","SVG_FEBLEND_MODE_COLOR_BURN","SVG_FEBLEND_MODE_COLOR_DODGE","SVG_FEBLEND_MODE_DARKEN","SVG_FEBLEND_MODE_DIFFERENCE","SVG_FEBLEND_MODE_EXCLUSION","SVG_FEBLEND_MODE_HARD_LIGHT","SVG_FEBLEND_MODE_HUE","SVG_FEBLEND_MODE_LIGHTEN","SVG_FEBLEND_MODE_LUMINOSITY","SVG_FEBLEND_MODE_MULTIPLY","SVG_FEBLEND_MODE_NORMAL","SVG_FEBLEND_MODE_OVERLAY","SVG_FEBLEND_MODE_SATURATION","SVG_FEBLEND_MODE_SCREEN","SVG_FEBLEND_MODE_SOFT_LIGHT","SVG_FEBLEND_MODE_UNKNOWN","SVG_FECOLORMATRIX_TYPE_HUEROTATE","SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA","SVG_FECOLORMATRIX_TYPE_MATRIX","SVG_FECOLORMATRIX_TYPE_SATURATE","SVG_FECOLORMATRIX_TYPE_UNKNOWN","SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE","SVG_FECOMPONENTTRANSFER_TYPE_GAMMA","SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY","SVG_FECOMPONENTTRANSFER_TYPE_LINEAR","SVG_FECOMPONENTTRANSFER_TYPE_TABLE","SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_ARITHMETIC","SVG_FECOMPOSITE_OPERATOR_ATOP","SVG_FECOMPOSITE_OPERATOR_IN","SVG_FECOMPOSITE_OPERATOR_LIGHTER","SVG_FECOMPOSITE_OPERATOR_OUT","SVG_FECOMPOSITE_OPERATOR_OVER","SVG_FECOMPOSITE_OPERATOR_UNKNOWN","SVG_FECOMPOSITE_OPERATOR_XOR","SVG_INVALID_VALUE_ERR","SVG_LENGTHTYPE_CM","SVG_LENGTHTYPE_EMS","SVG_LENGTHTYPE_EXS","SVG_LENGTHTYPE_IN","SVG_LENGTHTYPE_MM","SVG_LENGTHTYPE_NUMBER","SVG_LENGTHTYPE_PC","SVG_LENGTHTYPE_PERCENTAGE","SVG_LENGTHTYPE_PT","SVG_LENGTHTYPE_PX","SVG_LENGTHTYPE_UNKNOWN","SVG_MARKERUNITS_STROKEWIDTH","SVG_MARKERUNITS_UNKNOWN","SVG_MARKERUNITS_USERSPACEONUSE","SVG_MARKER_ORIENT_ANGLE","SVG_MARKER_ORIENT_AUTO","SVG_MARKER_ORIENT_AUTO_START_REVERSE","SVG_MARKER_ORIENT_UNKNOWN","SVG_MASKTYPE_ALPHA","SVG_MASKTYPE_LUMINANCE","SVG_MATRIX_NOT_INVERTABLE","SVG_MEETORSLICE_MEET","SVG_MEETORSLICE_SLICE","SVG_MEETORSLICE_UNKNOWN","SVG_MORPHOLOGY_OPERATOR_DILATE","SVG_MORPHOLOGY_OPERATOR_ERODE","SVG_MORPHOLOGY_OPERATOR_UNKNOWN","SVG_PAINTTYPE_CURRENTCOLOR","SVG_PAINTTYPE_NONE","SVG_PAINTTYPE_RGBCOLOR","SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR","SVG_PAINTTYPE_UNKNOWN","SVG_PAINTTYPE_URI","SVG_PAINTTYPE_URI_CURRENTCOLOR","SVG_PAINTTYPE_URI_NONE","SVG_PAINTTYPE_URI_RGBCOLOR","SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR","SVG_PRESERVEASPECTRATIO_NONE","SVG_PRESERVEASPECTRATIO_UNKNOWN","SVG_PRESERVEASPECTRATIO_XMAXYMAX","SVG_PRESERVEASPECTRATIO_XMAXYMID","SVG_PRESERVEASPECTRATIO_XMAXYMIN","SVG_PRESERVEASPECTRATIO_XMIDYMAX","SVG_PRESERVEASPECTRATIO_XMIDYMID","SVG_PRESERVEASPECTRATIO_XMIDYMIN","SVG_PRESERVEASPECTRATIO_XMINYMAX","SVG_PRESERVEASPECTRATIO_XMINYMID","SVG_PRESERVEASPECTRATIO_XMINYMIN","SVG_SPREADMETHOD_PAD","SVG_SPREADMETHOD_REFLECT","SVG_SPREADMETHOD_REPEAT","SVG_SPREADMETHOD_UNKNOWN","SVG_STITCHTYPE_NOSTITCH","SVG_STITCHTYPE_STITCH","SVG_STITCHTYPE_UNKNOWN","SVG_TRANSFORM_MATRIX","SVG_TRANSFORM_ROTATE","SVG_TRANSFORM_SCALE","SVG_TRANSFORM_SKEWX","SVG_TRANSFORM_SKEWY","SVG_TRANSFORM_TRANSLATE","SVG_TRANSFORM_UNKNOWN","SVG_TURBULENCE_TYPE_FRACTALNOISE","SVG_TURBULENCE_TYPE_TURBULENCE","SVG_TURBULENCE_TYPE_UNKNOWN","SVG_UNIT_TYPE_OBJECTBOUNDINGBOX","SVG_UNIT_TYPE_UNKNOWN","SVG_UNIT_TYPE_USERSPACEONUSE","SVG_WRONG_TYPE_ERR","SVG_ZOOMANDPAN_DISABLE","SVG_ZOOMANDPAN_MAGNIFY","SVG_ZOOMANDPAN_UNKNOWN","SYNC_CONDITION","SYNC_FENCE","SYNC_FLAGS","SYNC_FLUSH_COMMANDS_BIT","SYNC_GPU_COMMANDS_COMPLETE","SYNC_STATUS","SYNTAX_ERR","SavedPages","Scheduler","Scheduling","Screen","ScreenDetailed","ScreenDetails","ScreenOrientation","Script","ScriptProcessorNode","ScrollAreaEvent","ScrollTimeline","SecurityPolicyViolationEvent","Segmenter","Selection","Sensor","SensorErrorEvent","Serial","SerialPort","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","SessionDescription","Set","ShadowRoot","SharedArrayBuffer","SharedStorage","SharedStorageWorklet","SharedWorker","SimpleGestureEvent","SourceBuffer","SourceBufferList","SpeechSynthesis","SpeechSynthesisErrorEvent","SpeechSynthesisEvent","SpeechSynthesisUtterance","SpeechSynthesisVoice","StaticRange","StereoPannerNode","StopIteration","Storage","StorageBucket","StorageBucketManager","StorageEvent","StorageManager","String","StructType","StylePropertyMap","StylePropertyMapReadOnly","StyleSheet","StyleSheetList","SubmitEvent","SubtleCrypto","Symbol","SyncManager","SyntaxError","TEMPORARY","TEXTPATH_METHODTYPE_ALIGN","TEXTPATH_METHODTYPE_STRETCH","TEXTPATH_METHODTYPE_UNKNOWN","TEXTPATH_SPACINGTYPE_AUTO","TEXTPATH_SPACINGTYPE_EXACT","TEXTPATH_SPACINGTYPE_UNKNOWN","TEXTURE","TEXTURE0","TEXTURE1","TEXTURE10","TEXTURE11","TEXTURE12","TEXTURE13","TEXTURE14","TEXTURE15","TEXTURE16","TEXTURE17","TEXTURE18","TEXTURE19","TEXTURE2","TEXTURE20","TEXTURE21","TEXTURE22","TEXTURE23","TEXTURE24","TEXTURE25","TEXTURE26","TEXTURE27","TEXTURE28","TEXTURE29","TEXTURE3","TEXTURE30","TEXTURE31","TEXTURE4","TEXTURE5","TEXTURE6","TEXTURE7","TEXTURE8","TEXTURE9","TEXTURE_2D","TEXTURE_2D_ARRAY","TEXTURE_3D","TEXTURE_BASE_LEVEL","TEXTURE_BINDING","TEXTURE_BINDING_2D","TEXTURE_BINDING_2D_ARRAY","TEXTURE_BINDING_3D","TEXTURE_BINDING_CUBE_MAP","TEXTURE_COMPARE_FUNC","TEXTURE_COMPARE_MODE","TEXTURE_CUBE_MAP","TEXTURE_CUBE_MAP_NEGATIVE_X","TEXTURE_CUBE_MAP_NEGATIVE_Y","TEXTURE_CUBE_MAP_NEGATIVE_Z","TEXTURE_CUBE_MAP_POSITIVE_X","TEXTURE_CUBE_MAP_POSITIVE_Y","TEXTURE_CUBE_MAP_POSITIVE_Z","TEXTURE_IMMUTABLE_FORMAT","TEXTURE_IMMUTABLE_LEVELS","TEXTURE_MAG_FILTER","TEXTURE_MAX_ANISOTROPY_EXT","TEXTURE_MAX_LEVEL","TEXTURE_MAX_LOD","TEXTURE_MIN_FILTER","TEXTURE_MIN_LOD","TEXTURE_WRAP_R","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXT_NODE","TIMEOUT","TIMEOUT_ERR","TIMEOUT_EXPIRED","TIMEOUT_IGNORED","TOO_LARGE_ERR","TRANSACTION_INACTIVE_ERR","TRANSFORM_FEEDBACK","TRANSFORM_FEEDBACK_ACTIVE","TRANSFORM_FEEDBACK_BINDING","TRANSFORM_FEEDBACK_BUFFER","TRANSFORM_FEEDBACK_BUFFER_BINDING","TRANSFORM_FEEDBACK_BUFFER_MODE","TRANSFORM_FEEDBACK_BUFFER_SIZE","TRANSFORM_FEEDBACK_BUFFER_START","TRANSFORM_FEEDBACK_PAUSED","TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN","TRANSFORM_FEEDBACK_VARYINGS","TRIANGLE","TRIANGLES","TRIANGLE_FAN","TRIANGLE_STRIP","TYPE_BACK_FORWARD","TYPE_ERR","TYPE_MISMATCH_ERR","TYPE_NAVIGATE","TYPE_RELOAD","TYPE_RESERVED","Table","Tag","TaskAttributionTiming","TaskController","TaskPriorityChangeEvent","TaskSignal","Text","TextDecoder","TextDecoderStream","TextEncoder","TextEncoderStream","TextEvent","TextFormat","TextFormatUpdateEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TextUpdateEvent","TimeEvent","TimeRanges","ToggleEvent","Touch","TouchEvent","TouchList","TrackEvent","TransformStream","TransformStreamDefaultController","TransitionEvent","TreeWalker","TrustedHTML","TrustedScript","TrustedScriptURL","TrustedTypePolicy","TrustedTypePolicyFactory","TypeError","TypedObject","U2F","UIEvent","UNCACHED","UNIFORM","UNIFORM_ARRAY_STRIDE","UNIFORM_BLOCK_ACTIVE_UNIFORMS","UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES","UNIFORM_BLOCK_BINDING","UNIFORM_BLOCK_DATA_SIZE","UNIFORM_BLOCK_INDEX","UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER","UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER","UNIFORM_BUFFER","UNIFORM_BUFFER_BINDING","UNIFORM_BUFFER_OFFSET_ALIGNMENT","UNIFORM_BUFFER_SIZE","UNIFORM_BUFFER_START","UNIFORM_IS_ROW_MAJOR","UNIFORM_MATRIX_STRIDE","UNIFORM_OFFSET","UNIFORM_SIZE","UNIFORM_TYPE","UNKNOWN_ERR","UNKNOWN_RULE","UNMASKED_RENDERER_WEBGL","UNMASKED_VENDOR_WEBGL","UNORDERED_NODE_ITERATOR_TYPE","UNORDERED_NODE_SNAPSHOT_TYPE","UNPACK_ALIGNMENT","UNPACK_COLORSPACE_CONVERSION_WEBGL","UNPACK_FLIP_Y_WEBGL","UNPACK_IMAGE_HEIGHT","UNPACK_PREMULTIPLY_ALPHA_WEBGL","UNPACK_ROW_LENGTH","UNPACK_SKIP_IMAGES","UNPACK_SKIP_PIXELS","UNPACK_SKIP_ROWS","UNSCHEDULED_STATE","UNSENT","UNSIGNALED","UNSIGNED_BYTE","UNSIGNED_INT","UNSIGNED_INT_10F_11F_11F_REV","UNSIGNED_INT_24_8","UNSIGNED_INT_2_10_10_10_REV","UNSIGNED_INT_5_9_9_9_REV","UNSIGNED_INT_SAMPLER_2D","UNSIGNED_INT_SAMPLER_2D_ARRAY","UNSIGNED_INT_SAMPLER_3D","UNSIGNED_INT_SAMPLER_CUBE","UNSIGNED_INT_VEC2","UNSIGNED_INT_VEC3","UNSIGNED_INT_VEC4","UNSIGNED_NORMALIZED","UNSIGNED_SHORT","UNSIGNED_SHORT_4_4_4_4","UNSIGNED_SHORT_5_5_5_1","UNSIGNED_SHORT_5_6_5","UNSPECIFIED_EVENT_TYPE_ERR","UPDATEREADY","URIError","URL","URLPattern","URLSearchParams","URLUnencoded","URL_MISMATCH_ERR","USB","USBAlternateInterface","USBConfiguration","USBConnectionEvent","USBDevice","USBEndpoint","USBInTransferResult","USBInterface","USBIsochronousInTransferPacket","USBIsochronousInTransferResult","USBIsochronousOutTransferPacket","USBIsochronousOutTransferResult","USBOutTransferResult","UTC","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","UserActivation","UserMessageHandler","UserMessageHandlersNamespace","UserProximityEvent","VALIDATE_STATUS","VALIDATION_ERR","VARIABLES_RULE","VENDOR","VERSION","VERSION_CHANGE","VERSION_ERR","VERTEX","VERTEX_ARRAY_BINDING","VERTEX_ATTRIB_ARRAY_BUFFER_BINDING","VERTEX_ATTRIB_ARRAY_DIVISOR","VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE","VERTEX_ATTRIB_ARRAY_ENABLED","VERTEX_ATTRIB_ARRAY_INTEGER","VERTEX_ATTRIB_ARRAY_NORMALIZED","VERTEX_ATTRIB_ARRAY_POINTER","VERTEX_ATTRIB_ARRAY_SIZE","VERTEX_ATTRIB_ARRAY_STRIDE","VERTEX_ATTRIB_ARRAY_TYPE","VERTEX_SHADER","VERTICAL","VERTICAL_AXIS","VER_ERR","VIEWPORT","VIEWPORT_RULE","VRDisplay","VRDisplayCapabilities","VRDisplayEvent","VREyeParameters","VRFieldOfView","VRFrameData","VRPose","VRStageParameters","VTTCue","VTTRegion","ValidityState","VideoColorSpace","VideoDecoder","VideoEncoder","VideoFrame","VideoPlaybackQuality","VideoStreamTrack","ViewTimeline","ViewTransition","VirtualKeyboard","VirtualKeyboardGeometryChangeEvent","VisibilityStateEntry","VisualViewport","WAIT_FAILED","WEBKIT_FILTER_RULE","WEBKIT_KEYFRAMES_RULE","WEBKIT_KEYFRAME_RULE","WEBKIT_REGION_RULE","WGSLLanguageFeatures","WRITE","WRONG_DOCUMENT_ERR","WakeLock","WakeLockSentinel","WasmAnyRef","WaveShaperNode","WeakMap","WeakRef","WeakSet","WebAssembly","WebGL2RenderingContext","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLQuery","WebGLRenderbuffer","WebGLRenderingContext","WebGLSampler","WebGLShader","WebGLShaderPrecisionFormat","WebGLSync","WebGLTexture","WebGLTransformFeedback","WebGLUniformLocation","WebGLVertexArray","WebGLVertexArrayObject","WebKitAnimationEvent","WebKitBlobBuilder","WebKitCSSFilterRule","WebKitCSSFilterValue","WebKitCSSKeyframeRule","WebKitCSSKeyframesRule","WebKitCSSMatrix","WebKitCSSRegionRule","WebKitCSSTransformValue","WebKitDataCue","WebKitGamepad","WebKitMediaKeyError","WebKitMediaKeyMessageEvent","WebKitMediaKeySession","WebKitMediaKeys","WebKitMediaSource","WebKitMutationObserver","WebKitNamespace","WebKitPlaybackTargetAvailabilityEvent","WebKitPoint","WebKitShadowRoot","WebKitSourceBuffer","WebKitSourceBufferList","WebKitTransitionEvent","WebSocket","WebSocketError","WebSocketStream","WebTransport","WebTransportBidirectionalStream","WebTransportDatagramDuplexStream","WebTransportError","WebTransportReceiveStream","WebTransportSendStream","WebkitAlignContent","WebkitAlignItems","WebkitAlignSelf","WebkitAnimation","WebkitAnimationDelay","WebkitAnimationDirection","WebkitAnimationDuration","WebkitAnimationFillMode","WebkitAnimationIterationCount","WebkitAnimationName","WebkitAnimationPlayState","WebkitAnimationTimingFunction","WebkitAppearance","WebkitBackfaceVisibility","WebkitBackgroundClip","WebkitBackgroundOrigin","WebkitBackgroundSize","WebkitBorderBottomLeftRadius","WebkitBorderBottomRightRadius","WebkitBorderImage","WebkitBorderRadius","WebkitBorderTopLeftRadius","WebkitBorderTopRightRadius","WebkitBoxAlign","WebkitBoxDirection","WebkitBoxFlex","WebkitBoxOrdinalGroup","WebkitBoxOrient","WebkitBoxPack","WebkitBoxShadow","WebkitBoxSizing","WebkitClipPath","WebkitFilter","WebkitFlex","WebkitFlexBasis","WebkitFlexDirection","WebkitFlexFlow","WebkitFlexGrow","WebkitFlexShrink","WebkitFlexWrap","WebkitJustifyContent","WebkitLineClamp","WebkitMask","WebkitMaskClip","WebkitMaskComposite","WebkitMaskImage","WebkitMaskOrigin","WebkitMaskPosition","WebkitMaskPositionX","WebkitMaskPositionY","WebkitMaskRepeat","WebkitMaskSize","WebkitOrder","WebkitPerspective","WebkitPerspectiveOrigin","WebkitTextFillColor","WebkitTextSecurity","WebkitTextSizeAdjust","WebkitTextStroke","WebkitTextStrokeColor","WebkitTextStrokeWidth","WebkitTransform","WebkitTransformOrigin","WebkitTransformStyle","WebkitTransition","WebkitTransitionDelay","WebkitTransitionDuration","WebkitTransitionProperty","WebkitTransitionTimingFunction","WebkitUserSelect","WheelEvent","Window","WindowControlsOverlay","WindowControlsOverlayGeometryChangeEvent","Worker","Worklet","WritableStream","WritableStreamDefaultController","WritableStreamDefaultWriter","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestException","XMLHttpRequestProgressEvent","XMLHttpRequestUpload","XMLSerializer","XMLStylesheetProcessingInstruction","XPathEvaluator","XPathException","XPathExpression","XPathNSResolver","XPathResult","XRAnchor","XRAnchorSet","XRBoundedReferenceSpace","XRCPUDepthInformation","XRCamera","XRDOMOverlayState","XRDepthInformation","XRFrame","XRHitTestResult","XRHitTestSource","XRInputSource","XRInputSourceArray","XRInputSourceEvent","XRInputSourcesChangeEvent","XRLayer","XRLightEstimate","XRLightProbe","XRPose","XRRay","XRReferenceSpace","XRReferenceSpaceEvent","XRRenderState","XRRigidTransform","XRSession","XRSessionEvent","XRSpace","XRSystem","XRTransientInputHitTestResult","XRTransientInputHitTestSource","XRView","XRViewerPose","XRViewport","XRWebGLBinding","XRWebGLDepthInformation","XRWebGLLayer","XSLTProcessor","ZERO","_XD0M_","_YD0M_","__REACT_DEVTOOLS_GLOBAL_HOOK__","__brand","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","__opera","__proto__","_browserjsran","a","aLink","abbr","abort","aborted","abs","absolute","acceleration","accelerationIncludingGravity","accelerator","accent-color","accentColor","accept","acceptCharset","acceptNode","access","accessKey","accessKeyLabel","accuracy","acos","acosh","action","actionURL","actions","activated","activation","activationStart","active","activeCues","activeElement","activeSourceBuffers","activeSourceCount","activeTexture","activeVRDisplays","actualBoundingBoxAscent","actualBoundingBoxDescent","actualBoundingBoxLeft","actualBoundingBoxRight","adAuctionComponents","adAuctionHeaders","add","addAll","addBehavior","addCandidate","addColorStop","addCue","addElement","addEventListener","addFilter","addFromString","addFromUri","addIceCandidate","addImport","addListener","addModule","addNamed","addPageRule","addPath","addPointer","addRange","addRegion","addRule","addSearchEngine","addSourceBuffer","addStream","addTextTrack","addTrack","addTransceiver","addWakeLockListener","added","addedNodes","additionalName","additiveSymbols","addons","address","addressLine","addressModeU","addressModeV","addressModeW","adoptNode","adoptedCallback","adoptedStyleSheets","adr","advance","after","album","alert","algorithm","align","align-content","align-items","align-self","alignContent","alignItems","alignSelf","alignmentBaseline","alinkColor","all","allSettled","allocationSize","allow","allowFullscreen","allowPaymentRequest","allowedDirections","allowedFeatures","allowedToPlay","allowsFeature","alpha","alphaMode","alphaToCoverageEnabled","alphabeticBaseline","alt","altGraphKey","altHtml","altKey","altLeft","alternate","alternateSetting","alternates","altitude","altitudeAccuracy","altitudeAngle","amplitude","ancestorOrigins","anchor","anchorNode","anchorOffset","anchorSpace","anchors","and","angle","angularAcceleration","angularVelocity","animVal","animate","animated","animatedInstanceRoot","animatedNormalizedPathSegList","animatedPathSegList","animatedPoints","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","animationComposition","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationStartTime","animationTimingFunction","animationsPaused","anniversary","antialias","anticipatedRemoval","any","app","appCodeName","appMinorVersion","appName","appNotifications","appVersion","appearance","append","appendBuffer","appendChild","appendData","appendItem","appendMedium","appendNamed","appendRule","appendStream","appendWindowEnd","appendWindowStart","applets","applicationCache","applicationServerKey","apply","applyConstraints","applyElement","arc","arcTo","architecture","archive","areas","arguments","ariaAtomic","ariaAutoComplete","ariaBrailleLabel","ariaBrailleRoleDescription","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRelevant","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","arrayBuffer","arrayLayerCount","arrayStride","artist","artwork","as","asIntN","asUintN","ascentOverride","asin","asinh","aspect","aspect-ratio","aspectRatio","assert","assign","assignedElements","assignedNodes","assignedSlot","async","asyncIterator","at","atEnd","atan","atan2","atanh","atob","attachEvent","attachInternals","attachShader","attachShadow","attachedElements","attachments","attack","attestationObject","attrChange","attrName","attributeChangedCallback","attributeFilter","attributeName","attributeNamespace","attributeOldValue","attributeStyleMap","attributes","attribution","attributionSrc","audioBitrateMode","audioBitsPerSecond","audioTracks","audioWorklet","authenticatedSignedWrites","authenticatorAttachment","authenticatorData","autoIncrement","autobuffer","autocapitalize","autocomplete","autocorrect","autofocus","automationRate","autoplay","availHeight","availLeft","availTop","availWidth","availability","available","aversion","ax","axes","axis","ay","azimuth","azimuthAngle","b","back","backdrop-filter","backdropFilter","backends","backface-visibility","backfaceVisibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundFetch","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize","badInput","badge","balance","baseArrayLayer","baseFrequencyX","baseFrequencyY","baseLatency","baseLayer","baseMipLevel","baseNode","baseOffset","basePalette","baseURI","baseVal","baseline-source","baselineShift","baselineSource","battery","bday","before","beginComputePass","beginElement","beginElementAt","beginOcclusionQuery","beginPath","beginQuery","beginRenderPass","beginTransformFeedback","beginningOfPassWriteIndex","behavior","behaviorCookie","behaviorPart","behaviorUrns","beta","bezierCurveTo","bgColor","bgProperties","bias","big","bigint64","biguint64","binaryType","bind","bindAttribLocation","bindBuffer","bindBufferBase","bindBufferRange","bindFramebuffer","bindGroupLayouts","bindRenderbuffer","bindSampler","bindTexture","bindTransformFeedback","bindVertexArray","binding","bitness","blend","blendColor","blendEquation","blendEquationSeparate","blendFunc","blendFuncSeparate","blink","blitFramebuffer","blob","block-size","blockDirection","blockSize","blockedURI","blocking","blockingDuration","blue","bluetooth","blur","body","bodyUsed","bold","bookmarks","booleanValue","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderBoxSize","borderCollapse","borderColor","borderColorDark","borderColorLight","borderEndEndRadius","borderEndStartRadius","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderInline","borderInlineColor","borderInlineEnd","borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth","borderInlineStart","borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth","borderInlineStyle","borderInlineWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStartEndRadius","borderStartStartRadius","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","bottomMargin","bound","boundElements","boundingClientRect","boundingHeight","boundingLeft","boundingRect","boundingTop","boundingWidth","bounds","boundsGeometry","box-decoration-break","box-shadow","box-sizing","boxDecorationBreak","boxShadow","boxSizing","brand","brands","break-after","break-before","break-inside","breakAfter","breakBefore","breakInside","broadcast","browserLanguage","browsingTopics","btoa","bubbles","buffer","bufferData","bufferDepth","bufferSize","bufferSubData","buffered","bufferedAmount","bufferedAmountLowThreshold","buffers","buildID","buildNumber","button","buttonID","buttons","byobRequest","byteLength","byteOffset","bytesPerRow","bytesWritten","c","cache","caches","call","caller","camera","canBeFormatted","canBeMounted","canBeShared","canConstructInDedicatedWorker","canGoBack","canGoForward","canHaveChildren","canHaveHTML","canInsertDTMF","canIntercept","canLoadAdAuctionFencedFrame","canLoadOpaqueURL","canMakePayment","canParse","canPlayType","canPresent","canShare","canTransition","canTrickleIceCandidates","cancel","cancelAndHoldAtTime","cancelAnimationFrame","cancelBubble","cancelIdleCallback","cancelScheduledValues","cancelVideoFrameCallback","cancelWatchAvailability","cancelable","candidate","canonicalUUID","canvas","cap","capabilities","caption","caption-side","captionSide","capture","captureEvents","captureStackTrace","captureStream","caret-color","caretBidiLevel","caretColor","caretPositionFromPoint","caretRangeFromPoint","cast","catch","category","cbrt","cd","ceil","cellIndex","cellPadding","cellSpacing","cells","ch","chOff","chain","challenge","changeType","changed","changedTouches","channel","channelCount","channelCountMode","channelInterpretation","char","charAt","charCode","charCodeAt","charIndex","charLength","characterBounds","characterBoundsRangeStart","characterData","characterDataOldValue","characterSet","characteristic","charging","chargingTime","charset","check","checkDCE","checkEnclosure","checkFramebufferStatus","checkIntersection","checkValidity","checkVisibility","checked","childElementCount","childList","childNodes","children","chrome","ciphertext","cite","city","claimInterface","claimed","classList","className","classid","clear","clearAppBadge","clearAttributes","clearBuffer","clearBufferfi","clearBufferfv","clearBufferiv","clearBufferuiv","clearColor","clearData","clearDepth","clearHalt","clearImmediate","clearInterval","clearLiveSeekableRange","clearMarks","clearMaxGCPauseAccumulator","clearMeasures","clearOriginJoinedAdInterestGroups","clearParameters","clearRect","clearResourceTimings","clearShadow","clearStencil","clearTimeout","clearValue","clearWatch","click","clickCount","clientDataJSON","clientHeight","clientInformation","clientLeft","clientRect","clientRects","clientTop","clientWaitSync","clientWidth","clientX","clientY","clip","clip-path","clip-rule","clipBottom","clipLeft","clipPath","clipPathUnits","clipRight","clipRule","clipTop","clipboard","clipboardData","clonable","clone","cloneContents","cloneNode","cloneRange","close","closeCode","closePath","closed","closest","clz","clz32","cm","cmp","code","codeBase","codePointAt","codeType","codedHeight","codedRect","codedWidth","colSpan","collapse","collapseToEnd","collapseToStart","collapsed","collect","collections","colno","color","color-adjust","color-interpolation","color-interpolation-filters","color-scheme","colorAdjust","colorAttachments","colorDepth","colorFormats","colorInterpolation","colorInterpolationFilters","colorMask","colorScheme","colorSpace","colorType","cols","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columnCount","columnFill","columnGap","columnNumber","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","command","commit","commitPreferences","commitStyles","commonAncestorContainer","compact","compare","compareBoundaryPoints","compareDocumentPosition","compareEndPoints","compareExchange","compareNode","comparePoint","compatMode","compatible","compile","compileShader","compileStreaming","complete","completed","component","componentFromPoint","composed","composedPath","composite","compositionEndOffset","compositionStartOffset","compressedTexImage2D","compressedTexImage3D","compressedTexSubImage2D","compressedTexSubImage3D","compute","computedStyleMap","concat","conditionText","coneInnerAngle","coneOuterAngle","coneOuterGain","config","configurable","configuration","configurationName","configurationValue","configurations","configure","confirm","confirmComposition","confirmSiteSpecificTrackingException","confirmWebWideTrackingException","congestionControl","connect","connectEnd","connectShark","connectStart","connected","connectedCallback","connection","connectionList","connectionSpeed","connectionState","connections","console","consolidate","constants","constraint","constrictionActive","construct","constructor","contactID","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","container-name","container-type","containerId","containerName","containerQuery","containerSrc","containerType","contains","containsNode","content","content-visibility","contentBoxSize","contentDocument","contentEditable","contentHint","contentOverflow","contentRect","contentScriptType","contentStyleType","contentType","contentVisibility","contentWindow","context","contextMenu","contextmenu","continue","continuePrimaryKey","continuous","control","controlTransferIn","controlTransferOut","controller","controls","controlsList","convertPointFromNode","convertQuadFromNode","convertRectFromNode","convertToBlob","convertToSpecifiedUnits","cookie","cookieEnabled","cookieStore","cookies","coords","copyBufferSubData","copyBufferToBuffer","copyBufferToTexture","copyExternalImageToTexture","copyFromChannel","copyTexImage2D","copyTexSubImage2D","copyTexSubImage3D","copyTextureToBuffer","copyTextureToTexture","copyTo","copyToChannel","copyWithin","correspondingElement","correspondingUseElement","corruptedVideoFrames","cos","cosh","count","countReset","counter-increment","counter-reset","counter-set","counterIncrement","counterReset","counterSet","country","cpuClass","cpuSleepAllowed","cqb","cqh","cqi","cqmax","cqmin","cqw","create","createAnalyser","createAnchor","createAnswer","createAttribute","createAttributeNS","createAuctionNonce","createBidirectionalStream","createBindGroup","createBindGroupLayout","createBiquadFilter","createBuffer","createBufferSource","createCDATASection","createCSSStyleSheet","createCaption","createChannelMerger","createChannelSplitter","createCommandEncoder","createComment","createComputePipeline","createComputePipelineAsync","createConicGradient","createConstantSource","createContextualFragment","createControlRange","createConvolver","createDTMFSender","createDataChannel","createDelay","createDelayNode","createDocument","createDocumentFragment","createDocumentType","createDynamicsCompressor","createElement","createElementNS","createEncodedStreams","createEntityReference","createEvent","createEventObject","createExpression","createFramebuffer","createFunction","createGain","createGainNode","createHTML","createHTMLDocument","createIIRFilter","createImageBitmap","createImageData","createIndex","createJavaScriptNode","createLinearGradient","createMediaElementSource","createMediaKeys","createMediaStreamDestination","createMediaStreamSource","createMediaStreamTrackSource","createMutableFile","createNSResolver","createNodeIterator","createNotification","createObjectStore","createObjectURL","createOffer","createOscillator","createPanner","createPattern","createPeriodicWave","createPipelineLayout","createPolicy","createPopup","createProcessingInstruction","createProgram","createQuery","createQuerySet","createRadialGradient","createRange","createRangeCollection","createReader","createRenderBundleEncoder","createRenderPipeline","createRenderPipelineAsync","createRenderbuffer","createSVGAngle","createSVGLength","createSVGMatrix","createSVGNumber","createSVGPathSegArcAbs","createSVGPathSegArcRel","createSVGPathSegClosePath","createSVGPathSegCurvetoCubicAbs","createSVGPathSegCurvetoCubicRel","createSVGPathSegCurvetoCubicSmoothAbs","createSVGPathSegCurvetoCubicSmoothRel","createSVGPathSegCurvetoQuadraticAbs","createSVGPathSegCurvetoQuadraticRel","createSVGPathSegCurvetoQuadraticSmoothAbs","createSVGPathSegCurvetoQuadraticSmoothRel","createSVGPathSegLinetoAbs","createSVGPathSegLinetoHorizontalAbs","createSVGPathSegLinetoHorizontalRel","createSVGPathSegLinetoRel","createSVGPathSegLinetoVerticalAbs","createSVGPathSegLinetoVerticalRel","createSVGPathSegMovetoAbs","createSVGPathSegMovetoRel","createSVGPoint","createSVGRect","createSVGTransform","createSVGTransformFromMatrix","createSampler","createScript","createScriptProcessor","createScriptURL","createSession","createShader","createShaderModule","createShadowRoot","createStereoPanner","createStyleSheet","createTBody","createTFoot","createTHead","createTask","createTextNode","createTextRange","createTexture","createTouch","createTouchList","createTransformFeedback","createTreeWalker","createUnidirectionalStream","createVertexArray","createView","createWaveShaper","createWritable","creationTime","credentialless","credentials","criticalCHRestart","cropTo","crossOrigin","crossOriginIsolated","crypto","csi","csp","cssFloat","cssRules","cssText","cssValueType","ctrlKey","ctrlLeft","cues","cullFace","cullMode","currentDirection","currentEntry","currentLocalDescription","currentNode","currentPage","currentRect","currentRemoteDescription","currentScale","currentScreen","currentScript","currentSrc","currentState","currentStyle","currentTarget","currentTime","currentTranslate","currentView","cursor","curve","customElements","customError","cx","cy","d","data","dataFld","dataFormatAs","dataLoss","dataLossMessage","dataPageSize","dataSrc","dataTransfer","database","databases","datagrams","dataset","dateTime","db","debug","debuggerEnabled","declare","decode","decodeAudioData","decodeQueueSize","decodeURI","decodeURIComponent","decodedBodySize","decoding","decodingInfo","decrypt","default","defaultCharset","defaultChecked","defaultMuted","defaultPlaybackRate","defaultPolicy","defaultPrevented","defaultQueue","defaultRequest","defaultSelected","defaultStatus","defaultURL","defaultValue","defaultView","defaultstatus","defer","define","defineMagicFunction","defineMagicVariable","defineProperties","defineProperty","deg","delay","delayTime","delegatesFocus","delete","deleteBuffer","deleteCaption","deleteCell","deleteContents","deleteData","deleteDatabase","deleteFramebuffer","deleteFromDocument","deleteIndex","deleteMedium","deleteObjectStore","deleteProgram","deleteProperty","deleteQuery","deleteRenderbuffer","deleteRow","deleteRule","deleteSampler","deleteShader","deleteSync","deleteTFoot","deleteTHead","deleteTexture","deleteTransformFeedback","deleteVertexArray","deleted","deliverChangeRecords","deliveredFrames","delivery","deliveryInfo","deliveryStatus","deliveryTimestamp","deliveryType","delta","deltaMode","deltaX","deltaY","deltaZ","dependentLocality","deprecatedReplaceInURN","deprecatedRunAdAuctionEnforcesKAnonymity","deprecatedURNToURL","depthBias","depthBiasClamp","depthBiasSlopeScale","depthClearValue","depthCompare","depthDataFormat","depthFailOp","depthFar","depthFunc","depthLoadOp","depthMask","depthNear","depthOrArrayLayers","depthRange","depthReadOnly","depthStencil","depthStencilAttachment","depthStencilFormat","depthStoreOp","depthUsage","depthWriteEnabled","deref","deriveBits","deriveKey","descentOverride","description","deselectAll","designMode","desiredSize","destination","destinationURL","destroy","detach","detachEvent","detachShader","detached","detail","details","detect","detune","device","deviceClass","deviceId","deviceMemory","devicePixelContentBoxSize","devicePixelRatio","deviceProtocol","deviceSubclass","deviceVersionMajor","deviceVersionMinor","deviceVersionSubminor","deviceXDPI","deviceYDPI","didTimeout","difference","diffuseConstant","digest","dimension","dimensions","dir","dirName","direction","dirxml","disable","disablePictureInPicture","disableRemotePlayback","disableVertexAttribArray","disabled","discardedFrames","dischargingTime","disconnect","disconnectShark","disconnectedCallback","dispatchEvent","dispatchWorkgroups","dispatchWorkgroupsIndirect","display","displayHeight","displayId","displayName","displayWidth","disposition","distanceModel","div","divisor","djsapi","djsproxy","doImport","doNotTrack","doScroll","doctype","document","documentElement","documentMode","documentPictureInPicture","documentURI","dolphin","dolphinGameCenter","dolphininfo","dolphinmeta","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domOverlayState","domain","domainLookupEnd","domainLookupStart","dominant-baseline","dominantBaseline","done","dopplerFactor","dotAll","downDegrees","downlink","download","downloadRequest","downloadTotal","downloaded","dpcm","dpi","dppx","dragDrop","draggable","draw","drawArrays","drawArraysInstanced","drawArraysInstancedANGLE","drawBuffers","drawCustomFocusRing","drawElements","drawElementsInstanced","drawElementsInstancedANGLE","drawFocusIfNeeded","drawImage","drawImageFromRect","drawIndexed","drawIndexedIndirect","drawIndirect","drawRangeElements","drawSystemFocusRing","drawingBufferColorSpace","drawingBufferFormat","drawingBufferHeight","drawingBufferStorage","drawingBufferWidth","drop","dropEffect","droppedVideoFrames","dropzone","dstFactor","dtmf","dump","dumpProfile","duplicate","durability","duration","dvb","dvh","dvi","dvmax","dvmin","dvname","dvnum","dvw","dx","dy","dynsrc","e","edgeMode","editContext","effect","effectAllowed","effectiveDirective","effectiveType","elapsedTime","element","elementFromPoint","elementTiming","elements","elementsFromPoint","elevation","ellipse","em","emHeightAscent","emHeightDescent","email","embeds","emit","emma","empty","empty-cells","emptyCells","emptyHTML","emptyScript","emulatedPosition","enable","enableBackground","enableDelegations","enableStyleSheetsForSet","enableVertexAttribArray","enabled","enabledFeatures","enabledPlugin","encode","encodeInto","encodeQueueSize","encodeURI","encodeURIComponent","encodedBodySize","encoding","encodingInfo","encrypt","enctype","end","endContainer","endElement","endElementAt","endOcclusionQuery","endOfPassWriteIndex","endOfStream","endOffset","endQuery","endTime","endTransformFeedback","ended","endpoint","endpointNumber","endpoints","endsWith","enqueue","enterKeyHint","entities","entries","entry","entryPoint","entryType","enumerable","enumerate","enumerateDevices","enumerateEditable","environmentBlendMode","equals","error","errorCode","errorDetail","errorText","escape","estimate","eval","evaluate","event","eventCounts","eventPhase","every","ex","exception","exchange","exec","execCommand","execCommandShowHelp","execScript","executeBundles","executionStart","exitFullscreen","exitPictureInPicture","exitPointerLock","exitPresent","exp","expand","expandEntityReferences","expando","expansion","expectedImprovement","expiration","expirationTime","expires","expiryDate","explicitOriginalTarget","expm1","exponent","exponentialRampToValueAtTime","exportKey","exports","extend","extensions","extentNode","extentOffset","external","externalResourcesRequired","externalTexture","extractContents","extractable","eye","f","face","factoryReset","failOp","failureReason","fallback","family","familyName","farthestViewportElement","fastSeek","fatal","featureId","featurePolicy","featureSettings","features","fence","fenceSync","fetch","fetchPriority","fetchStart","fftSize","fgColor","fieldOfView","file","fileCreatedDate","fileHandle","fileModifiedDate","fileName","fileSize","fileUpdatedDate","filename","files","filesystem","fill","fill-opacity","fill-rule","fillLightMode","fillOpacity","fillRect","fillRule","fillStyle","fillText","filter","filterResX","filterResY","filterUnits","filters","finally","find","findIndex","findLast","findLastIndex","findRule","findText","finish","finished","fireEvent","firesTouchEvents","firstChild","firstElementChild","firstInterimResponseStart","firstPage","firstUIEventTimestamp","fixed","flags","flat","flatMap","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","flipX","flipY","float","float32","float64","flood-color","flood-opacity","floodColor","floodOpacity","floor","flush","focus","focusNode","focusOffset","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","fontBoundingBoxAscent","fontBoundingBoxDescent","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontPalette","fontSize","fontSizeAdjust","fontSmoothingEnabled","fontStretch","fontStyle","fontSynthesis","fontSynthesisPosition","fontSynthesisSmallCaps","fontSynthesisStyle","fontSynthesisWeight","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","fontcolor","fontfaces","fonts","fontsize","for","forEach","force","forceFallbackAdapter","forceRedraw","forced-color-adjust","forcedColorAdjust","forcedStyleAndLayoutDuration","forget","form","formAction","formData","formEnctype","formMethod","formNoValidate","formTarget","format","formatToParts","forms","forward","forwardX","forwardY","forwardZ","foundation","fr","fragment","fragmentDirective","frame","frameBorder","frameCount","frameElement","frameSpacing","framebuffer","framebufferHeight","framebufferRenderbuffer","framebufferTexture2D","framebufferTextureLayer","framebufferWidth","frames","freeSpace","freeze","frequency","frequencyBinCount","from","fromAsync","fromCharCode","fromCodePoint","fromElement","fromEntries","fromFloat32Array","fromFloat64Array","fromMatrix","fromPoint","fromQuad","fromRect","frontFace","fround","fullName","fullPath","fullRange","fullScreen","fullVersionList","fullscreen","fullscreenElement","fullscreenEnabled","fx","fy","g","gain","gamepad","gamma","gap","gatheringState","gatt","genderIdentity","generateCertificate","generateKey","generateMipmap","generateRequest","geolocation","gestureObject","get","getActiveAttrib","getActiveUniform","getActiveUniformBlockName","getActiveUniformBlockParameter","getActiveUniforms","getAdjacentText","getAll","getAllKeys","getAllResponseHeaders","getAllowlistForFeature","getAnimations","getAsFile","getAsFileSystemHandle","getAsString","getAttachedShaders","getAttribLocation","getAttribute","getAttributeNS","getAttributeNames","getAttributeNode","getAttributeNodeNS","getAttributeType","getAudioTracks","getAuthenticatorData","getAutoplayPolicy","getAvailability","getBBox","getBattery","getBigInt64","getBigUint64","getBindGroupLayout","getBlob","getBookmark","getBoundingClientRect","getBounds","getBoxQuads","getBufferParameter","getBufferSubData","getByteFrequencyData","getByteTimeDomainData","getCSSCanvasContext","getCTM","getCameraImage","getCandidateWindowClientRect","getCanonicalLocales","getCapabilities","getCaptureHandle","getChannelData","getCharNumAtPosition","getCharacteristic","getCharacteristics","getClientExtensionResults","getClientRect","getClientRects","getCoalescedEvents","getCompilationInfo","getCompositionAlternatives","getComputedStyle","getComputedTextLength","getComputedTiming","getConfiguration","getConstraints","getContext","getContextAttributes","getContributingSources","getCounterValue","getCueAsHTML","getCueById","getCurrentPosition","getCurrentTexture","getCurrentTime","getData","getDatabaseNames","getDate","getDay","getDefaultComputedStyle","getDepthInMeters","getDepthInformation","getDescriptor","getDescriptors","getDestinationInsertionPoints","getDevices","getDirectory","getDirectoryHandle","getDisplayMedia","getDistributedNodes","getEditable","getElementById","getElementsByClassName","getElementsByName","getElementsByTagName","getElementsByTagNameNS","getEnclosureList","getEndPositionOfChar","getEntries","getEntriesByName","getEntriesByType","getError","getExtension","getExtentOfChar","getEyeParameters","getFeature","getFiberRoots","getFile","getFileHandle","getFiles","getFilesAndDirectories","getFingerprints","getFloat32","getFloat64","getFloatFrequencyData","getFloatTimeDomainData","getFloatValue","getFragDataLocation","getFrameData","getFramebufferAttachmentParameter","getFrequencyResponse","getFullYear","getGamepads","getHeaderExtensionsToNegotiate","getHighEntropyValues","getHitTestResults","getHitTestResultsForTransientInput","getHours","getIdentityAssertion","getIds","getImageData","getIndexedParameter","getInfo","getInnerHTML","getInstalledRelatedApps","getInt16","getInt32","getInt8","getInternalModuleRanges","getInternalformatParameter","getIntersectionList","getItem","getItems","getKey","getKeyframes","getLayers","getLayoutMap","getLightEstimate","getLineDash","getLocalCandidates","getLocalParameters","getLocalStreams","getManagedConfiguration","getMappedRange","getMarks","getMatchedCSSRules","getMaxGCPauseSinceClear","getMeasures","getMetadata","getMilliseconds","getMinutes","getModifierState","getMonth","getName","getNamedItem","getNamedItemNS","getNativeFramebufferScaleFactor","getNegotiatedHeaderExtensions","getNestedConfigs","getNotifications","getNotifier","getNumberOfChars","getOffsetReferenceSpace","getOutputTimestamp","getOverrideHistoryNavigationMode","getOverrideStyle","getOwnPropertyDescriptor","getOwnPropertyDescriptors","getOwnPropertyNames","getOwnPropertySymbols","getParameter","getParameters","getParent","getPathSegAtLength","getPhotoCapabilities","getPhotoSettings","getPointAtLength","getPorts","getPose","getPredictedEvents","getPreference","getPreferenceDefault","getPreferredCanvasFormat","getPresentationAttribute","getPreventDefault","getPrimaryService","getPrimaryServices","getProgramInfoLog","getProgramParameter","getPropertyCSSValue","getPropertyPriority","getPropertyShorthand","getPropertyType","getPropertyValue","getPrototypeOf","getPublicKey","getPublicKeyAlgorithm","getQuery","getQueryParameter","getRGBColorValue","getRandomValues","getRangeAt","getReader","getReceivers","getRectValue","getReflectionCubeMap","getRegistration","getRegistrations","getRemoteCandidates","getRemoteCertificates","getRemoteParameters","getRemoteStreams","getRenderbufferParameter","getResponseHeader","getRoot","getRootNode","getRotationOfChar","getSVGDocument","getSamplerParameter","getScreenCTM","getScreenDetails","getSeconds","getSelectedCandidatePair","getSelection","getSenders","getService","getSetCookie","getSettings","getShaderInfoLog","getShaderParameter","getShaderPrecisionFormat","getShaderSource","getSignals","getSimpleDuration","getSiteIcons","getSources","getSpeculativeParserUrls","getStartPositionOfChar","getStartTime","getState","getStats","getStatusForPolicy","getStorageUpdates","getStreamById","getStringValue","getSubStringLength","getSubscription","getSubscriptions","getSupportedConstraints","getSupportedExtensions","getSupportedFormats","getSyncParameter","getSynchronizationSources","getTags","getTargetRanges","getTexParameter","getTextFormats","getTime","getTimezoneOffset","getTiming","getTitlebarAreaRect","getTotalLength","getTrackById","getTracks","getTransceivers","getTransform","getTransformFeedbackVarying","getTransformToElement","getTransports","getType","getTypeMapping","getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","getUint16","getUint32","getUint8","getUniform","getUniformBlockIndex","getUniformIndices","getUniformLocation","getUserInfo","getUserMedia","getVRDisplays","getValues","getVarDate","getVariableValue","getVertexAttrib","getVertexAttribOffset","getVideoPlaybackQuality","getVideoTracks","getViewerPose","getViewport","getVoices","getWakeLockState","getWriter","getYear","givenName","global","globalAlpha","globalCompositeOperation","globalPrivacyControl","globalThis","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","go","gpu","grabFrame","grad","gradientTransform","gradientUnits","grammars","green","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","gripSpace","group","groupBy","groupCollapsed","groupEnd","groupId","groups","hadRecentInput","hand","handedness","hangingBaseline","hapticActuators","hardwareConcurrency","has","hasAttribute","hasAttributeNS","hasAttributes","hasBeenActive","hasChildNodes","hasComposition","hasDynamicOffset","hasEnrolledInstrument","hasExtension","hasExternalDisplay","hasFeature","hasFocus","hasIndices","hasInstance","hasLayout","hasOrientation","hasOwn","hasOwnProperty","hasPointerCapture","hasPosition","hasPrivateToken","hasReading","hasRedemptionRecord","hasRegExpGroups","hasStorageAccess","hasUAVisualTransition","hash","hashChange","head","headers","heading","height","hid","hidden","hide","hideFocus","hidePopover","high","highWaterMark","highlights","hint","hints","history","honorificPrefix","honorificSuffix","horizontalOverflow","host","hostCandidate","hostname","href","hrefTranslate","hreflang","hspace","html5TagCheckInerface","htmlFor","htmlText","httpEquiv","httpRequestStatusCode","hwTimestamp","hyphenate-character","hyphenateCharacter","hyphens","hypot","ic","iccId","iceConnectionState","iceGatheringState","iceTransport","icon","iconURL","id","identifier","identity","ideographicBaseline","idpLoginUrl","ignoreBOM","ignoreCase","ignoreDepthValues","image","image-orientation","image-rendering","imageHeight","imageOrientation","imageRendering","imageSizes","imageSmoothingEnabled","imageSmoothingQuality","imageSrcset","imageWidth","images","ime-mode","imeMode","implementation","importExternalTexture","importKey","importNode","importStylesheet","imports","impp","imul","in","in1","in2","inBandMetadataTrackDispatchType","inRange","includes","incomingBidirectionalStreams","incomingHighWaterMark","incomingMaxAge","incomingUnidirectionalStreams","incremental","indeterminate","index","indexNames","indexOf","indexedDB","indicate","indices","inert","inertiaDestinationX","inertiaDestinationY","info","inherits","init","initAnimationEvent","initBeforeLoadEvent","initClipboardEvent","initCloseEvent","initCommandEvent","initCompositionEvent","initCustomEvent","initData","initDataType","initDeviceMotionEvent","initDeviceOrientationEvent","initDragEvent","initErrorEvent","initEvent","initFocusEvent","initGestureEvent","initHashChangeEvent","initKeyEvent","initKeyboardEvent","initMSManipulationEvent","initMessageEvent","initMouseEvent","initMouseScrollEvent","initMouseWheelEvent","initMutationEvent","initNSMouseEvent","initOverflowEvent","initPageEvent","initPageTransitionEvent","initPointerEvent","initPopStateEvent","initProgressEvent","initScrollAreaEvent","initSimpleGestureEvent","initStorageEvent","initTextEvent","initTimeEvent","initTouchEvent","initTransitionEvent","initUIEvent","initWebKitAnimationEvent","initWebKitTransitionEvent","initWebKitWheelEvent","initWheelEvent","initialTime","initialValue","initialize","initiatorType","inject","ink","inline-size","inlineSize","inlineVerticalFieldOfView","inner","innerHTML","innerHeight","innerText","innerWidth","input","inputBuffer","inputEncoding","inputMethod","inputMode","inputSource","inputSources","inputType","inputs","insertAdjacentElement","insertAdjacentHTML","insertAdjacentText","insertBefore","insertCell","insertDTMF","insertData","insertDebugMarker","insertItemBefore","insertNode","insertRow","insertRule","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","installing","instanceRoot","instantiate","instantiateStreaming","instruments","int16","int32","int8","integrity","interactionId","interactionMode","intercept","interfaceClass","interfaceName","interfaceNumber","interfaceProtocol","interfaceSubclass","interfaces","interimResults","internalSubset","interpretation","intersection","intersectionRatio","intersectionRect","intersectsNode","interval","invalidIteratorState","invalidateFramebuffer","invalidateSubFramebuffer","inverse","invertSelf","invoker","invokerType","is","is2D","isActive","isAlternate","isArray","isAutoSelected","isBingCurrentSearchDefault","isBuffer","isCandidateWindowVisible","isChar","isCollapsed","isComposing","isConcatSpreadable","isConditionalMediationAvailable","isConfigSupported","isConnected","isContentEditable","isContentHandlerRegistered","isContextLost","isDefaultNamespace","isDirectory","isDisabled","isDisjointFrom","isEnabled","isEqual","isEqualNode","isExtended","isExtensible","isExternalCTAP2SecurityKeySupported","isFallbackAdapter","isFile","isFinite","isFirstPersonObserver","isFramebuffer","isFrozen","isGenerator","isHTML","isHistoryNavigation","isId","isIdentity","isInjected","isInputPending","isInteger","isInternal","isIntersecting","isLockFree","isMap","isMultiLine","isNaN","isOpen","isPointInFill","isPointInPath","isPointInRange","isPointInStroke","isPrefAlternate","isPresenting","isPrimary","isProgram","isPropertyImplicit","isProtocolHandlerRegistered","isPrototypeOf","isQuery","isRawJSON","isRenderbuffer","isSafeInteger","isSameEntry","isSameNode","isSampler","isScript","isScriptURL","isSealed","isSecureContext","isSessionSupported","isShader","isSubsetOf","isSupersetOf","isSupported","isSync","isTextEdit","isTexture","isTransformFeedback","isTrusted","isTypeSupported","isUserVerifyingPlatformAuthenticatorAvailable","isVertexArray","isView","isVisible","isWellFormed","isochronousTransferIn","isochronousTransferOut","isolation","italics","item","itemId","itemProp","itemRef","itemScope","itemType","itemValue","items","iterateNext","iterationComposite","iterator","javaEnabled","jitterBufferTarget","jobTitle","join","joinAdInterestGroup","json","justify-content","justify-items","justify-self","justifyContent","justifyItems","justifySelf","k1","k2","k3","k4","kHz","keepalive","kernelMatrix","kernelUnitLengthX","kernelUnitLengthY","kerning","key","keyCode","keyFor","keyIdentifier","keyLightEnabled","keyLocation","keyPath","keyStatuses","keySystem","keyText","keyUsage","keyboard","keys","keytype","kind","knee","label","labels","lang","language","languages","largeArcFlag","lastChild","lastElementChild","lastEventId","lastIndex","lastIndexOf","lastInputTime","lastMatch","lastMessageSubject","lastMessageType","lastModified","lastModifiedDate","lastPage","lastParen","lastState","lastStyleSheetSet","latitude","launchQueue","layerName","layerX","layerY","layout","layoutFlow","layoutGrid","layoutGridChar","layoutGridLine","layoutGridMode","layoutGridType","lbound","leaveAdInterestGroup","left","leftContext","leftDegrees","leftMargin","leftProjectionMatrix","leftViewMatrix","length","lengthAdjust","lengthComputable","letter-spacing","letterSpacing","level","lh","lighting-color","lightingColor","limitingConeAngle","limits","line","line-break","line-height","lineAlign","lineBreak","lineCap","lineDashOffset","lineGapOverride","lineHeight","lineJoin","lineNum","lineNumber","linePos","lineTo","lineWidth","linearAcceleration","linearRampToValueAtTime","linearVelocity","lineno","lines","link","linkColor","linkProgram","links","list","list-style","list-style-image","list-style-position","list-style-type","listStyle","listStyleImage","listStylePosition","listStyleType","listener","listeners","load","loadEventEnd","loadEventStart","loadOp","loadTime","loadTimes","loaded","loading","localDescription","localName","localService","localStorage","locale","localeCompare","location","locationbar","lock","locked","lockedFile","locks","lodMaxClamp","lodMinClamp","log","log10","log1p","log2","logicalXDPI","logicalYDPI","login","loglevel","longDesc","longitude","lookupNamespaceURI","lookupPrefix","loop","loopEnd","loopStart","looping","lost","low","lower","lowerBound","lowerOpen","lowsrc","lvb","lvh","lvi","lvmax","lvmin","lvw","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","magFilter","makeXRCompatible","managed","manifest","manufacturer","manufacturerName","map","mapAsync","mapState","mappedAtCreation","mapping","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marginBlock","marginBlockEnd","marginBlockStart","marginBottom","marginHeight","marginInline","marginInlineEnd","marginInlineStart","marginLeft","marginRight","marginTop","marginWidth","mark","marker","marker-end","marker-mid","marker-offset","marker-start","markerEnd","markerHeight","markerMid","markerOffset","markerStart","markerUnits","markerWidth","marks","mask","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-position-x","mask-position-y","mask-repeat","mask-size","mask-type","maskClip","maskComposite","maskContentUnits","maskImage","maskMode","maskOrigin","maskPosition","maskPositionX","maskPositionY","maskRepeat","maskSize","maskType","maskUnits","match","matchAll","matchMedia","matchMedium","matches","math-depth","math-style","mathDepth","mathStyle","matrix","matrixTransform","max","max-block-size","max-height","max-inline-size","max-width","maxActions","maxAlternatives","maxAnisotropy","maxBindGroups","maxBindGroupsPlusVertexBuffers","maxBindingsPerBindGroup","maxBlockSize","maxBufferSize","maxByteLength","maxChannelCount","maxChannels","maxColorAttachmentBytesPerSample","maxColorAttachments","maxComputeInvocationsPerWorkgroup","maxComputeWorkgroupSizeX","maxComputeWorkgroupSizeY","maxComputeWorkgroupSizeZ","maxComputeWorkgroupStorageSize","maxComputeWorkgroupsPerDimension","maxConnectionsPerServer","maxDatagramSize","maxDecibels","maxDistance","maxDrawCount","maxDynamicStorageBuffersPerPipelineLayout","maxDynamicUniformBuffersPerPipelineLayout","maxHeight","maxInlineSize","maxInterStageShaderComponents","maxInterStageShaderVariables","maxLayers","maxLength","maxMessageSize","maxPacketLifeTime","maxRetransmits","maxSampledTexturesPerShaderStage","maxSamplersPerShaderStage","maxStorageBufferBindingSize","maxStorageBuffersPerShaderStage","maxStorageTexturesPerShaderStage","maxTextureArrayLayers","maxTextureDimension1D","maxTextureDimension2D","maxTextureDimension3D","maxTouchPoints","maxUniformBufferBindingSize","maxUniformBuffersPerShaderStage","maxValue","maxVertexAttributes","maxVertexBufferArrayStride","maxVertexBuffers","maxWidth","measure","measureText","media","mediaCapabilities","mediaDevices","mediaElement","mediaGroup","mediaKeys","mediaSession","mediaStream","mediaText","meetOrSlice","memory","menubar","mergeAttributes","message","messageClass","messageHandlers","messageType","messages","metaKey","metadata","method","methodDetails","methodName","mid","mimeType","mimeTypes","min","min-block-size","min-height","min-inline-size","min-width","minBindingSize","minBlockSize","minDecibels","minFilter","minHeight","minInlineSize","minLength","minStorageBufferOffsetAlignment","minUniformBufferOffsetAlignment","minValue","minWidth","mipLevel","mipLevelCount","mipmapFilter","miterLimit","mix-blend-mode","mixBlendMode","mm","mobile","mode","model","modify","module","mount","move","moveBy","moveEnd","moveFirst","moveFocusDown","moveFocusLeft","moveFocusRight","moveFocusUp","moveNext","moveRow","moveStart","moveTo","moveToBookmark","moveToElementText","moveToPoint","movementX","movementY","mozAdd","mozAnimationStartTime","mozAnon","mozApps","mozAudioCaptured","mozAudioChannelType","mozAutoplayEnabled","mozCancelAnimationFrame","mozCancelFullScreen","mozCancelRequestAnimationFrame","mozCaptureStream","mozCaptureStreamUntilEnded","mozClearDataAt","mozContact","mozContacts","mozCreateFileHandle","mozCurrentTransform","mozCurrentTransformInverse","mozCursor","mozDash","mozDashOffset","mozDecodedFrames","mozExitPointerLock","mozFillRule","mozFragmentEnd","mozFrameDelay","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozGetAll","mozGetAllKeys","mozGetAsFile","mozGetDataAt","mozGetMetadata","mozGetUserMedia","mozHasAudio","mozHasItem","mozHidden","mozImageSmoothingEnabled","mozIndexedDB","mozInnerScreenX","mozInnerScreenY","mozInputSource","mozIsTextField","mozItem","mozItemCount","mozItems","mozLength","mozLockOrientation","mozMatchesSelector","mozMovementX","mozMovementY","mozOpaque","mozOrientation","mozPaintCount","mozPaintedFrames","mozParsedFrames","mozPay","mozPointerLockElement","mozPresentedFrames","mozPreservesPitch","mozPressure","mozPrintCallback","mozRTCIceCandidate","mozRTCPeerConnection","mozRTCSessionDescription","mozRemove","mozRequestAnimationFrame","mozRequestFullScreen","mozRequestPointerLock","mozSetDataAt","mozSetImageElement","mozSourceNode","mozSrcObject","mozSystem","mozTCPSocket","mozTextStyle","mozTypesAt","mozUnlockOrientation","mozUserCancelled","mozVisibilityState","ms","msAnimation","msAnimationDelay","msAnimationDirection","msAnimationDuration","msAnimationFillMode","msAnimationIterationCount","msAnimationName","msAnimationPlayState","msAnimationStartTime","msAnimationTimingFunction","msBackfaceVisibility","msBlockProgression","msCSSOMElementFloatMetrics","msCaching","msCachingEnabled","msCancelRequestAnimationFrame","msCapsLockWarningOff","msClearImmediate","msClose","msContentZoomChaining","msContentZoomFactor","msContentZoomLimit","msContentZoomLimitMax","msContentZoomLimitMin","msContentZoomSnap","msContentZoomSnapPoints","msContentZoomSnapType","msContentZooming","msConvertURL","msCrypto","msDoNotTrack","msElementsFromPoint","msElementsFromRect","msExitFullscreen","msExtendedCode","msFillRule","msFirstPaint","msFlex","msFlexAlign","msFlexDirection","msFlexFlow","msFlexItemAlign","msFlexLinePack","msFlexNegative","msFlexOrder","msFlexPack","msFlexPositive","msFlexPreferredSize","msFlexWrap","msFlowFrom","msFlowInto","msFontFeatureSettings","msFullscreenElement","msFullscreenEnabled","msGetInputContext","msGetRegionContent","msGetUntransformedBounds","msGraphicsTrustStatus","msGridColumn","msGridColumnAlign","msGridColumnSpan","msGridColumns","msGridRow","msGridRowAlign","msGridRowSpan","msGridRows","msHidden","msHighContrastAdjust","msHyphenateLimitChars","msHyphenateLimitLines","msHyphenateLimitZone","msHyphens","msImageSmoothingEnabled","msImeAlign","msIndexedDB","msInterpolationMode","msIsStaticHTML","msKeySystem","msKeys","msLaunchUri","msLockOrientation","msManipulationViewsEnabled","msMatchMedia","msMatchesSelector","msMaxTouchPoints","msOrientation","msOverflowStyle","msPerspective","msPerspectiveOrigin","msPlayToDisabled","msPlayToPreferredSourceUri","msPlayToPrimary","msPointerEnabled","msRegionOverflow","msReleasePointerCapture","msRequestAnimationFrame","msRequestFullscreen","msSaveBlob","msSaveOrOpenBlob","msScrollChaining","msScrollLimit","msScrollLimitXMax","msScrollLimitXMin","msScrollLimitYMax","msScrollLimitYMin","msScrollRails","msScrollSnapPointsX","msScrollSnapPointsY","msScrollSnapType","msScrollSnapX","msScrollSnapY","msScrollTranslation","msSetImmediate","msSetMediaKeys","msSetPointerCapture","msTextCombineHorizontal","msTextSizeAdjust","msToBlob","msTouchAction","msTouchSelect","msTraceAsyncCallbackCompleted","msTraceAsyncCallbackStarting","msTraceAsyncOperationCompleted","msTraceAsyncOperationStarting","msTransform","msTransformOrigin","msTransformStyle","msTransition","msTransitionDelay","msTransitionDuration","msTransitionProperty","msTransitionTimingFunction","msUnlockOrientation","msUpdateAsyncCallbackRelation","msUserSelect","msVisibilityState","msWrapFlow","msWrapMargin","msWrapThrough","msWriteProfilerMark","msZoom","msZoomTo","mt","mul","multiEntry","multiSelectionObj","multiline","multiple","multiply","multiplySelf","multisample","multisampled","mutableFile","muted","n","name","nameList","nameProp","namedItem","namedRecordset","names","namespaceURI","namespaces","nativeMap","nativeObjectCreate","nativeSet","nativeWeakMap","naturalHeight","naturalWidth","navigate","navigation","navigationMode","navigationPreload","navigationStart","navigationType","navigator","near","nearestViewportElement","negative","negotiated","netscape","networkState","newScale","newState","newTranslate","newURL","newValue","newValueSpecifiedUnits","newVersion","newhome","next","nextElementSibling","nextHopProtocol","nextNode","nextPage","nextSibling","nickname","noHref","noModule","noResize","noShade","noValidate","noWrap","node","nodeName","nodeType","nodeValue","nonce","normDepthBufferFromNormView","normalize","normalizedPathSegList","notRestoredReasons","notationName","notations","note","noteGrainOn","noteOff","noteOn","notify","now","numOctaves","number","numberOfChannels","numberOfFrames","numberOfInputs","numberOfItems","numberOfOutputs","numberValue","oMatchesSelector","object","object-fit","object-position","objectFit","objectPosition","objectStore","objectStoreNames","objectType","observe","occlusionQuerySet","of","off","offscreenBuffering","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","offsetAnchor","offsetDistance","offsetHeight","offsetLeft","offsetNode","offsetParent","offsetPath","offsetPosition","offsetRotate","offsetTop","offsetWidth","offsetX","offsetY","ok","oldState","oldURL","oldValue","oldVersion","olderShadowRoot","on","onCommitFiberRoot","onCommitFiberUnmount","onLine","onPostCommitFiberRoot","onSubmittedWorkDone","onabort","onabsolutedeviceorientation","onactivate","onactive","onaddsourcebuffer","onaddstream","onaddtrack","onafterprint","onafterscriptexecute","onafterupdate","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onappinstalled","onaudioend","onaudioprocess","onaudiostart","onautocomplete","onautocompleteerror","onauxclick","onbeforeactivate","onbeforecopy","onbeforecut","onbeforedeactivate","onbeforeeditfocus","onbeforeinput","onbeforeinstallprompt","onbeforematch","onbeforepaste","onbeforeprint","onbeforescriptexecute","onbeforetoggle","onbeforeunload","onbeforeupdate","onbeforexrselect","onbegin","onblocked","onblur","onbounce","onboundary","onbufferedamountlow","oncached","oncancel","oncandidatewindowhide","oncandidatewindowshow","oncandidatewindowupdate","oncanplay","oncanplaythrough","oncapturehandlechange","once","oncellchange","onchange","oncharacterboundsupdate","oncharacteristicvaluechanged","onchargingchange","onchargingtimechange","onchecking","onclick","onclose","onclosing","oncompassneedscalibration","oncomplete","oncompositionend","oncompositionstart","onconnect","onconnecting","onconnectionavailable","onconnectionstatechange","oncontentvisibilityautostatechange","oncontextlost","oncontextmenu","oncontextrestored","oncontrollerchange","oncontrolselect","oncopy","oncuechange","oncurrententrychange","oncurrentscreenchange","oncut","ondataavailable","ondatachannel","ondatasetchanged","ondatasetcomplete","ondblclick","ondeactivate","ondequeue","ondevicechange","ondevicelight","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","ondeviceproximity","ondischargingtimechange","ondisconnect","ondisplay","ondispose","ondownloading","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onencrypted","onend","onended","onenter","onenterpictureinpicture","onerror","onerrorupdate","onexit","onfencedtreeclick","onfilterchange","onfinish","onfocus","onfocusin","onfocusout","onformdata","onfreeze","onfullscreenchange","onfullscreenerror","ongamepadconnected","ongamepaddisconnected","ongatheringstatechange","ongattserverdisconnected","ongeometrychange","ongesturechange","ongestureend","ongesturestart","ongotpointercapture","onhashchange","onhelp","onicecandidate","onicecandidateerror","oniceconnectionstatechange","onicegatheringstatechange","oninactive","oninput","oninputreport","oninputsourceschange","oninvalid","onkeydown","onkeypress","onkeystatuseschange","onkeyup","onlanguagechange","onlayoutcomplete","onleavepictureinpicture","onlevelchange","onload","onloadeddata","onloadedmetadata","onloadend","onloading","onloadingdone","onloadingerror","onloadstart","onlosecapture","onlostpointercapture","only","onmanagedconfigurationchange","onmark","onmessage","onmessageerror","onmidimessage","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onmove","onmoveend","onmovestart","onmozfullscreenchange","onmozfullscreenerror","onmozorientationchange","onmozpointerlockchange","onmozpointerlockerror","onmscontentzoom","onmsfullscreenchange","onmsfullscreenerror","onmsgesturechange","onmsgesturedoubletap","onmsgestureend","onmsgesturehold","onmsgesturestart","onmsgesturetap","onmsgotpointercapture","onmsinertiastart","onmslostpointercapture","onmsmanipulationstatechanged","onmsneedkey","onmsorientationchange","onmspointercancel","onmspointerdown","onmspointerenter","onmspointerhover","onmspointerleave","onmspointermove","onmspointerout","onmspointerover","onmspointerup","onmssitemodejumplistitemremoved","onmsthumbnailclick","onmute","onnavigate","onnavigateerror","onnavigatesuccess","onnegotiationneeded","onnomatch","onnoupdate","onobsolete","onoffline","ononline","onopen","onorientationchange","onpagechange","onpagehide","onpagereveal","onpageshow","onpageswap","onpaste","onpause","onpayerdetailchange","onpaymentmethodchange","onplay","onplaying","onpluginstreamstart","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointerlockchange","onpointerlockerror","onpointermove","onpointerout","onpointerover","onpointerrawupdate","onpointerup","onpopstate","onprerenderingchange","onprioritychange","onprocessorerror","onprogress","onpropertychange","onratechange","onreading","onreadystatechange","onreflectionchange","onrejectionhandled","onrelease","onremove","onremovesourcebuffer","onremovestream","onremovetrack","onrepeat","onreset","onresize","onresizeend","onresizestart","onresourcetimingbufferfull","onresult","onresume","onrowenter","onrowexit","onrowsdelete","onrowsinserted","onscreenschange","onscroll","onscrollend","onsearch","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectedcandidatepairchange","onselectend","onselectionchange","onselectstart","onshippingaddresschange","onshippingoptionchange","onshow","onsignalingstatechange","onsinkchange","onslotchange","onsoundend","onsoundstart","onsourceclose","onsourceclosed","onsourceended","onsourceopen","onspeechend","onspeechstart","onsqueeze","onsqueezeend","onsqueezestart","onstalled","onstart","onstatechange","onstop","onstorage","onstoragecommit","onsubmit","onsuccess","onsuspend","onterminate","ontextformatupdate","ontextinput","ontextupdate","ontimeout","ontimeupdate","ontoggle","ontonechange","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontrack","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onuncapturederror","onunhandledrejection","onunload","onunmute","onupdate","onupdateend","onupdatefound","onupdateready","onupdatestart","onupgradeneeded","onuserproximity","onversionchange","onvisibilitychange","onvoiceschanged","onvolumechange","onvrdisplayactivate","onvrdisplayconnect","onvrdisplaydeactivate","onvrdisplaydisconnect","onvrdisplaypresentchange","onwaiting","onwaitingforkey","onwarning","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkitcurrentplaybacktargetiswirelesschanged","onwebkitfullscreenchange","onwebkitfullscreenerror","onwebkitkeyadded","onwebkitkeyerror","onwebkitkeymessage","onwebkitneedkey","onwebkitorientationchange","onwebkitplaybacktargetavailabilitychanged","onwebkitpointerlockchange","onwebkitpointerlockerror","onwebkitresourcetimingbufferfull","onwebkittransitionend","onwheel","onzoom","opacity","open","openCursor","openDatabase","openKeyCursor","opened","opener","opera","operation","operationType","operator","opr","optimum","options","or","order","orderX","orderY","ordered","org","organization","orient","orientAngle","orientType","orientation","orientationX","orientationY","orientationZ","origin","originAgentCluster","originalPolicy","originalTarget","orphans","oscpu","outerHTML","outerHeight","outerText","outerWidth","outgoingHighWaterMark","outgoingMaxAge","outline","outline-color","outline-offset","outline-style","outline-width","outlineColor","outlineOffset","outlineStyle","outlineWidth","outputBuffer","outputChannelCount","outputLatency","outputs","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overflowAnchor","overflowBlock","overflowClipMargin","overflowInline","overflowWrap","overflowX","overflowY","overlaysContent","overrideColors","overrideMimeType","oversample","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","ownKeys","ownerDocument","ownerElement","ownerNode","ownerRule","ownerSVGElement","owningElement","p1","p2","p3","p4","packetSize","packets","pad","padEnd","padStart","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","paddingBlock","paddingBlockEnd","paddingBlockStart","paddingBottom","paddingInline","paddingInlineEnd","paddingInlineStart","paddingLeft","paddingRight","paddingTop","page","page-break-after","page-break-before","page-break-inside","pageBreakAfter","pageBreakBefore","pageBreakInside","pageCount","pageLeft","pageTop","pageX","pageXOffset","pageY","pageYOffset","pages","paint-order","paintOrder","paintRequests","paintType","paintWorklet","palette","pan","panningModel","parameterData","parameters","parent","parentElement","parentNode","parentRule","parentStyleSheet","parentTextEdit","parentWindow","parse","parseAll","parseCreationOptionsFromJSON","parseFloat","parseFromString","parseHTMLUnsafe","parseInt","parseRequestOptionsFromJSON","part","participants","passOp","passive","password","pasteHTML","path","pathLength","pathSegList","pathSegType","pathSegTypeAsLetter","pathname","pattern","patternContentUnits","patternMismatch","patternTransform","patternUnits","pause","pauseAnimations","pauseDuration","pauseOnExit","pauseProfilers","pauseTransformFeedback","paused","payerEmail","payerName","payerPhone","paymentManager","pc","pdfViewerEnabled","peerIdentity","pending","pendingLocalDescription","pendingRemoteDescription","percent","performance","periodicSync","permission","permissionState","permissions","persist","persisted","personalbar","perspective","perspective-origin","perspectiveOrigin","phone","phoneticFamilyName","phoneticGivenName","photo","pictureInPictureElement","pictureInPictureEnabled","pictureInPictureWindow","ping","pipeThrough","pipeTo","pitch","pixelBottom","pixelDepth","pixelHeight","pixelLeft","pixelRight","pixelStorei","pixelTop","pixelUnitToMillimeterX","pixelUnitToMillimeterY","pixelWidth","place-content","place-items","place-self","placeContent","placeItems","placeSelf","placeholder","platform","platformVersion","platforms","play","playEffect","playState","playbackRate","playbackState","playbackTime","played","playoutDelayHint","playsInline","plugins","pluginspage","pname","pointer-events","pointerBeforeReferenceNode","pointerEnabled","pointerEvents","pointerId","pointerLockElement","pointerType","points","pointsAtX","pointsAtY","pointsAtZ","polygonOffset","pop","popDebugGroup","popErrorScope","popover","popoverTargetAction","popoverTargetElement","populateMatrix","popupWindowFeatures","popupWindowName","popupWindowURI","port","port1","port2","ports","posBottom","posHeight","posLeft","posRight","posTop","posWidth","pose","position","positionAlign","positionX","positionY","positionZ","postError","postMessage","postTask","postalCode","poster","postscriptName","pow","powerEfficient","powerOff","powerPreference","preMultiplySelf","precision","preferredReflectionFormat","preferredStyleSheetSet","preferredStylesheetSet","prefix","preload","premultipliedAlpha","prepend","prerendering","presentation","presentationArea","preserveAlpha","preserveAspectRatio","preserveAspectRatioString","preservesPitch","pressed","pressure","prevValue","preventDefault","preventExtensions","preventSilentAccess","previousElementSibling","previousNode","previousPage","previousPriority","previousRect","previousScale","previousSibling","previousTranslate","primaries","primaryKey","primaryLightDirection","primaryLightIntensity","primitive","primitiveType","primitiveUnits","principals","print","print-color-adjust","printColorAdjust","priority","privateKey","privateToken","probablySupportsContext","probeSpace","process","processIceMessage","processingEnd","processingStart","processorOptions","product","productId","productName","productSub","profile","profileEnd","profiles","projectionMatrix","promise","prompt","properties","propertyIsEnumerable","propertyName","protocol","protocolLong","prototype","provider","pseudoClass","pseudoElement","pt","publicId","publicKey","published","pulse","push","pushDebugGroup","pushErrorScope","pushManager","pushNotification","pushState","put","putImageData","px","quadraticCurveTo","qualifier","quaternion","query","queryCommandEnabled","queryCommandIndeterm","queryCommandState","queryCommandSupported","queryCommandText","queryCommandValue","queryLocalFonts","queryPermission","querySelector","querySelectorAll","querySet","queue","queueMicrotask","quote","quotes","r","r1","r2","race","rad","radiogroup","radiusX","radiusY","random","randomUUID","range","rangeCount","rangeEnd","rangeMax","rangeMin","rangeOffset","rangeOverflow","rangeParent","rangeStart","rangeUnderflow","rate","ratio","raw","rawId","rawJSON","rawValueToMeters","rcap","rch","read","readAsArrayBuffer","readAsBinaryString","readAsBlob","readAsDataURL","readAsText","readBuffer","readEntries","readOnly","readPixels","readReportRequested","readText","readValue","readable","ready","readyState","reason","reasons","reboot","receiveFeatureReport","receivedAlert","receiver","receivers","recipient","recommendedViewportScale","reconnect","recordNumber","recordsAvailable","recordset","rect","red","redEyeReduction","redirect","redirectCount","redirectEnd","redirectStart","redirected","reduce","reduceRight","reduction","refDistance","refX","refY","referenceNode","referenceSpace","referrer","referrerPolicy","refresh","region","regionAnchorX","regionAnchorY","regionId","regions","register","registerContentHandler","registerElement","registerInternalModuleStart","registerInternalModuleStop","registerProperty","registerProtocolHandler","reject","rel","relList","relatedAddress","relatedNode","relatedPort","relatedTarget","relayProtocol","release","releaseCapture","releaseEvents","releaseInterface","releaseLock","releasePointerCapture","releaseShaderCompiler","released","reliability","reliable","reliableWrite","reload","rem","remainingSpace","remote","remoteDescription","remove","removeAllRanges","removeAttribute","removeAttributeNS","removeAttributeNode","removeBehavior","removeChild","removeCue","removeEntry","removeEventListener","removeFilter","removeImport","removeItem","removeListener","removeNamedItem","removeNamedItemNS","removeNode","removeParameter","removeProperty","removeRange","removeRegion","removeRule","removeSiteSpecificTrackingException","removeSourceBuffer","removeStream","removeTrack","removeVariable","removeWakeLockListener","removeWebWideTrackingException","removed","removedNodes","renderBlockingStatus","renderHeight","renderStart","renderState","renderTime","renderWidth","renderbufferStorage","renderbufferStorageMultisample","renderedBuffer","rendererInterfaces","renderers","renderingMode","renotify","repeat","repetitionCount","replace","replaceAdjacentText","replaceAll","replaceChild","replaceChildren","replaceData","replaceId","replaceItem","replaceNode","replaceState","replaceSync","replaceTrack","replaceWholeText","replaceWith","reportError","reportEvent","reportId","reportValidity","request","requestAdapter","requestAdapterInfo","requestAnimationFrame","requestAutocomplete","requestData","requestDevice","requestFrame","requestFullscreen","requestHitTestSource","requestHitTestSourceForTransientInput","requestId","requestIdleCallback","requestLightProbe","requestMIDIAccess","requestMediaKeySystemAccess","requestPermission","requestPictureInPicture","requestPointerLock","requestPort","requestPresent","requestPresenter","requestReferenceSpace","requestSession","requestStart","requestStorageAccess","requestStorageAccessFor","requestSubmit","requestVideoFrameCallback","requestViewportScale","requestWindow","requestingWindow","requireInteraction","required","requiredExtensions","requiredFeatures","requiredLimits","reset","resetPose","resetTransform","resizable","resize","resizeBy","resizeTo","resolve","resolveQuerySet","resolveTarget","resource","respond","respondWithNewView","response","responseBody","responseEnd","responseReady","responseStart","responseStatus","responseText","responseType","responseURL","responseXML","restartIce","restore","result","resultIndex","resultType","results","resume","resumeProfilers","resumeTransformFeedback","retry","returnValue","rev","reverse","reversed","revocable","revokeObjectURL","rex","rgbColor","ric","right","rightContext","rightDegrees","rightMargin","rightProjectionMatrix","rightViewMatrix","rlh","role","rolloffFactor","root","rootBounds","rootElement","rootMargin","rotate","rotateAxisAngle","rotateAxisAngleSelf","rotateFromVector","rotateFromVectorSelf","rotateSelf","rotation","rotationAngle","rotationRate","round","roundRect","row-gap","rowGap","rowIndex","rowSpan","rows","rowsPerImage","rtcpTransport","rtt","ruby-align","ruby-position","rubyAlign","rubyOverhang","rubyPosition","rules","run","runAdAuction","runtime","runtimeStyle","rx","ry","s","safari","sameDocument","sample","sampleCount","sampleCoverage","sampleInterval","sampleRate","sampleType","sampler","samplerParameterf","samplerParameteri","sandbox","save","saveData","scale","scale3d","scale3dSelf","scaleNonUniform","scaleNonUniformSelf","scaleSelf","scheduler","scheduling","scheme","scissor","scope","scopeName","scoped","screen","screenBrightness","screenEnabled","screenLeft","screenPixelToMillimeterX","screenPixelToMillimeterY","screenState","screenTop","screenX","screenY","screens","scriptURL","scripts","scroll","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollAmount","scrollBehavior","scrollBy","scrollByLines","scrollByPages","scrollDelay","scrollHeight","scrollIntoView","scrollIntoViewIfNeeded","scrollLeft","scrollLeftMax","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollMaxX","scrollMaxY","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollRestoration","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTo","scrollTop","scrollTopMax","scrollWidth","scrollX","scrollY","scrollbar-color","scrollbar-gutter","scrollbar-width","scrollbar3dLightColor","scrollbarArrowColor","scrollbarBaseColor","scrollbarColor","scrollbarDarkShadowColor","scrollbarFaceColor","scrollbarGutter","scrollbarHighlightColor","scrollbarShadowColor","scrollbarTrackColor","scrollbarWidth","scrollbars","scrolling","scrollingElement","sctp","sctpCauseCode","sdp","sdpLineNumber","sdpMLineIndex","sdpMid","seal","search","searchBox","searchBoxJavaBridge_","searchParams","sectionRowIndex","secureConnectionStart","security","seed","seek","seekToNextFrame","seekable","seeking","select","selectAllChildren","selectAlternateInterface","selectAudioOutput","selectConfiguration","selectNode","selectNodeContents","selectNodes","selectSingleNode","selectSubString","selectURL","selected","selectedIndex","selectedOptions","selectedStyleSheetSet","selectedStylesheetSet","selectedTrack","selection","selectionDirection","selectionEnd","selectionStart","selector","selectorText","self","send","sendAsBinary","sendBeacon","sendFeatureReport","sendOrder","sendReport","sender","sentAlert","sentTimestamp","separator","serial","serialNumber","serializeToString","serverTiming","service","serviceWorker","session","sessionId","sessionStorage","set","setActionHandler","setActive","setAlpha","setAppBadge","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS","setAttributionReporting","setBaseAndExtent","setBigInt64","setBigUint64","setBindGroup","setBingCurrentSearchDefault","setBlendConstant","setCameraActive","setCapture","setCaptureHandleConfig","setCodecPreferences","setColor","setCompositeOperation","setConfiguration","setConsumer","setCurrentTime","setCustomValidity","setData","setDate","setDragImage","setEnd","setEndAfter","setEndBefore","setEndPoint","setExpires","setFillColor","setFilterRes","setFloat32","setFloat64","setFloatValue","setFocusBehavior","setFormValue","setFullYear","setHTMLUnsafe","setHeaderExtensionsToNegotiate","setHeaderValue","setHours","setIdentityProvider","setImmediate","setIndexBuffer","setInt16","setInt32","setInt8","setInterval","setItem","setKeyframes","setLineCap","setLineDash","setLineJoin","setLineWidth","setLiveSeekableRange","setLocalDescription","setMatrix","setMatrixValue","setMediaKeys","setMicrophoneActive","setMilliseconds","setMinutes","setMiterLimit","setMonth","setNamedItem","setNamedItemNS","setNonUserCodeExceptions","setOrientToAngle","setOrientToAuto","setOrientation","setOverrideHistoryNavigationMode","setPaint","setParameter","setParameters","setPeriodicWave","setPipeline","setPointerCapture","setPosition","setPositionState","setPreference","setPriority","setPrivateToken","setProperty","setPrototypeOf","setRGBColor","setRGBColorICCColor","setRadius","setRangeText","setRemoteDescription","setReportEventDataForAutomaticBeacons","setRequestHeader","setResizable","setResourceTimingBufferSize","setRotate","setScale","setScissorRect","setSeconds","setSelectionRange","setServerCertificate","setShadow","setSharedStorageContext","setSignals","setSinkId","setSkewX","setSkewY","setStart","setStartAfter","setStartBefore","setStatus","setStdDeviation","setStencilReference","setStreams","setStrictMode","setStringValue","setStrokeColor","setSuggestResult","setTargetAtTime","setTargetValueAtTime","setTime","setTimeout","setTransform","setTranslate","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setUint16","setUint32","setUint8","setUri","setValidity","setValueAtTime","setValueCurveAtTime","setVariable","setVelocity","setVersion","setVertexBuffer","setViewport","setYear","settingName","settingValue","sex","shaderLocation","shaderSource","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","shadowRoot","shadowRootClonable","shadowRootDelegatesFocus","shadowRootMode","shape","shape-image-threshold","shape-margin","shape-outside","shape-rendering","shapeImageThreshold","shapeMargin","shapeOutside","shapeRendering","share","sharedStorage","sharedStorageWritable","sheet","shift","shiftKey","shiftLeft","shippingAddress","shippingOption","shippingType","show","showDirectoryPicker","showHelp","showModal","showModalDialog","showModelessDialog","showNotification","showOpenFilePicker","showPicker","showPopover","showSaveFilePicker","sidebar","sign","signal","signalingState","signature","silent","sin","singleNodeValue","sinh","sinkId","sittingToStandingTransform","size","sizeAdjust","sizeToContent","sizeX","sizeZ","sizes","skewX","skewXSelf","skewY","skewYSelf","skipTransition","skipped","slice","slope","slot","slotAssignment","small","smil","smooth","smoothingTimeConstant","snapToLines","snapshotItem","snapshotLength","some","sort","sortingCode","source","sourceBuffer","sourceBuffers","sourceCapabilities","sourceCharPosition","sourceFile","sourceFunctionName","sourceIndex","sourceMap","sourceURL","sources","spacing","span","speak","speakAs","speaking","species","specified","specularConstant","specularExponent","speechSynthesis","speed","speedOfSound","spellcheck","sphericalHarmonicsCoefficients","splice","split","splitText","spreadMethod","sqrt","src","srcElement","srcFactor","srcFilter","srcObject","srcUrn","srcdoc","srclang","srcset","stack","stackTraceLimit","stacktrace","stageParameters","standalone","standby","start","startContainer","startIce","startMessages","startNotifications","startOffset","startProfiling","startRendering","startShark","startTime","startViewTransition","startsWith","state","states","stats","status","statusCode","statusMessage","statusText","statusbar","stdDeviationX","stdDeviationY","stencilBack","stencilClearValue","stencilFront","stencilFunc","stencilFuncSeparate","stencilLoadOp","stencilMask","stencilMaskSeparate","stencilOp","stencilOpSeparate","stencilReadMask","stencilReadOnly","stencilStoreOp","stencilWriteMask","step","stepDown","stepMismatch","stepMode","stepUp","sticky","stitchTiles","stop","stop-color","stop-opacity","stopColor","stopImmediatePropagation","stopNotifications","stopOpacity","stopProfiling","stopPropagation","stopShark","stopped","storage","storageArea","storageBuckets","storageName","storageStatus","storageTexture","store","storeOp","storeSiteSpecificTrackingException","storeWebWideTrackingException","stpVersion","stream","streamErrorCode","streams","stretch","strike","string","stringValue","stringify","stripIndexFormat","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeRect","strokeStyle","strokeText","strokeWidth","structuredClone","style","styleAndLayoutStart","styleFloat","styleMap","styleMedia","styleSheet","styleSheetSets","styleSheets","sub","subarray","subject","submit","submitFrame","submitter","subscribe","substr","substring","substringData","subtle","subtree","suffix","suffixes","summary","sup","supported","supportedContentEncodings","supportedEntryTypes","supportedValuesOf","supports","supportsFiber","supportsSession","supportsText","surfaceScale","surroundContents","suspend","suspendRedraw","svb","svh","svi","svmax","svmin","svw","swapCache","swapNode","sweepFlag","symbols","symmetricDifference","sync","syntax","sysexEnabled","system","systemCode","systemId","systemLanguage","systemXDPI","systemYDPI","tBodies","tFoot","tHead","tab-size","tabIndex","tabSize","table","table-layout","tableLayout","tableValues","tag","tagName","tagUrn","tags","taintEnabled","take","takePhoto","takeRecords","tan","tangentialPressure","tanh","target","targetAddressSpace","targetElement","targetRayMode","targetRaySpace","targetTouches","targetURL","targetX","targetY","targets","tcpType","tee","tel","terminate","test","texImage2D","texImage3D","texParameterf","texParameteri","texStorage2D","texStorage3D","texSubImage2D","texSubImage3D","text","text-align","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","textAlign","textAlignLast","textAnchor","textAutospace","textBaseline","textCombineUpright","textContent","textDecoration","textDecorationBlink","textDecorationColor","textDecorationLine","textDecorationLineThrough","textDecorationNone","textDecorationOverline","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textDecorationUnderline","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIndent","textJustify","textJustifyTrim","textKashida","textKashidaSpace","textLength","textOrientation","textOverflow","textRendering","textShadow","textTracks","textTransform","textUnderlineOffset","textUnderlinePosition","textWrap","textWrapMode","textWrapStyle","texture","then","threadId","threshold","thresholds","throwIfAborted","tiltX","tiltY","time","timeEnd","timeLog","timeOrigin","timeRemaining","timeStamp","timecode","timeline","timelineTime","timeout","timestamp","timestampOffset","timestampWrites","timing","title","titlebarAreaRect","to","toArray","toBlob","toDataURL","toDateString","toElement","toExponential","toFixed","toFloat32Array","toFloat64Array","toGMTString","toISOString","toJSON","toLocaleDateString","toLocaleFormat","toLocaleLowerCase","toLocaleString","toLocaleTimeString","toLocaleUpperCase","toLowerCase","toMatrix","toMethod","toPrecision","toPrimitive","toReversed","toSdp","toSorted","toSource","toSpliced","toStaticHTML","toString","toStringTag","toSum","toTimeString","toUTCString","toUpperCase","toWellFormed","toggle","toggleAttribute","toggleLongPressEnabled","togglePopover","token","tone","toneBuffer","tooLong","tooShort","toolbar","top","topMargin","topology","total","totalFrameDelay","totalFrames","totalVideoFrames","touch-action","touchAction","touched","touches","trace","track","trackVisibility","trackedAnchors","tracks","transaction","transactions","transceiver","transfer","transferControlToOffscreen","transferFromImageBitmap","transferImageBitmap","transferIn","transferOut","transferSize","transferToFixedLength","transferToImageBitmap","transform","transform-box","transform-origin","transform-style","transformBox","transformFeedbackVaryings","transformOrigin","transformPoint","transformString","transformStyle","transformToDocument","transformToFragment","transition","transition-delay","transition-duration","transition-property","transition-timing-function","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateSelf","translationX","translationY","transport","traverseTo","trim","trimEnd","trimLeft","trimRight","trimStart","trueSpeed","trunc","truncate","trustedTypes","turn","twist","type","typeDetail","typeMismatch","typeMustMatch","types","u2f","ubound","uint16","uint32","uint8","uint8Clamped","unclippedDepth","unconfigure","undefined","underlineStyle","underlineThickness","unescape","uneval","unicode","unicode-bidi","unicodeBidi","unicodeRange","unicodeSets","uniform1f","uniform1fv","uniform1i","uniform1iv","uniform1ui","uniform1uiv","uniform2f","uniform2fv","uniform2i","uniform2iv","uniform2ui","uniform2uiv","uniform3f","uniform3fv","uniform3i","uniform3iv","uniform3ui","uniform3uiv","uniform4f","uniform4fv","uniform4i","uniform4iv","uniform4ui","uniform4uiv","uniformBlockBinding","uniformMatrix2fv","uniformMatrix2x3fv","uniformMatrix2x4fv","uniformMatrix3fv","uniformMatrix3x2fv","uniformMatrix3x4fv","uniformMatrix4fv","uniformMatrix4x2fv","uniformMatrix4x3fv","union","unique","uniqueID","uniqueNumber","unit","unitType","units","unloadEventEnd","unloadEventStart","unlock","unmap","unmount","unobserve","unpackColorSpace","unpause","unpauseAnimations","unreadCount","unregister","unregisterContentHandler","unregisterProtocolHandler","unscopables","unselectable","unshift","unsubscribe","unsuspendRedraw","unsuspendRedrawAll","unwatch","unwrapKey","upDegrees","upX","upY","upZ","update","updateAdInterestGroups","updateCallbackDone","updateCharacterBounds","updateCommands","updateControlBounds","updateCurrentEntry","updateIce","updateInkTrailStartPoint","updateInterval","updatePlaybackRate","updateRangeEnd","updateRangeStart","updateRenderState","updateSelection","updateSelectionBounds","updateSettings","updateText","updateTiming","updateViaCache","updateWith","updated","updating","upgrade","upload","uploadTotal","uploaded","upper","upperBound","upperOpen","uri","url","urn","urns","usage","usages","usb","usbVersionMajor","usbVersionMinor","usbVersionSubminor","useCurrentView","useMap","useProgram","usedSpace","user-select","userActivation","userAgent","userAgentData","userChoice","userHandle","userHint","userInitiated","userLanguage","userSelect","userState","userVisibleOnly","username","usernameFragment","utterance","uuid","v8BreakIterator","vAlign","vLink","valid","validate","validateProgram","validationMessage","validity","value","valueAsDate","valueAsNumber","valueAsString","valueInSpecifiedUnits","valueMissing","valueOf","valueText","valueType","values","variable","variant","variationSettings","vb","vector-effect","vectorEffect","velocityAngular","velocityExpansion","velocityX","velocityY","vendor","vendorId","vendorSub","verify","version","vertex","vertexAttrib1f","vertexAttrib1fv","vertexAttrib2f","vertexAttrib2fv","vertexAttrib3f","vertexAttrib3fv","vertexAttrib4f","vertexAttrib4fv","vertexAttribDivisor","vertexAttribDivisorANGLE","vertexAttribI4i","vertexAttribI4iv","vertexAttribI4ui","vertexAttribI4uiv","vertexAttribIPointer","vertexAttribPointer","vertical","vertical-align","verticalAlign","verticalOverflow","vh","vi","vibrate","vibrationActuator","videoBitsPerSecond","videoHeight","videoTracks","videoWidth","view","viewBox","viewBoxString","viewDimension","viewFormats","viewTarget","viewTargetString","viewport","viewportAnchorX","viewportAnchorY","viewportElement","views","violatedDirective","virtualKeyboard","virtualKeyboardPolicy","visibility","visibilityState","visible","visibleRect","visualViewport","vlinkColor","vmax","vmin","voice","voiceURI","volume","vrml","vspace","vw","w","wait","waitAsync","waitSync","waiting","wake","wakeLock","wand","warn","wasClean","wasDiscarded","watch","watchAvailability","watchPosition","webdriver","webkitAddKey","webkitAlignContent","webkitAlignItems","webkitAlignSelf","webkitAnimation","webkitAnimationDelay","webkitAnimationDirection","webkitAnimationDuration","webkitAnimationFillMode","webkitAnimationIterationCount","webkitAnimationName","webkitAnimationPlayState","webkitAnimationTimingFunction","webkitAppearance","webkitAudioContext","webkitAudioDecodedByteCount","webkitAudioPannerNode","webkitBackfaceVisibility","webkitBackground","webkitBackgroundAttachment","webkitBackgroundClip","webkitBackgroundColor","webkitBackgroundImage","webkitBackgroundOrigin","webkitBackgroundPosition","webkitBackgroundPositionX","webkitBackgroundPositionY","webkitBackgroundRepeat","webkitBackgroundSize","webkitBackingStorePixelRatio","webkitBorderBottomLeftRadius","webkitBorderBottomRightRadius","webkitBorderImage","webkitBorderImageOutset","webkitBorderImageRepeat","webkitBorderImageSlice","webkitBorderImageSource","webkitBorderImageWidth","webkitBorderRadius","webkitBorderTopLeftRadius","webkitBorderTopRightRadius","webkitBoxAlign","webkitBoxDirection","webkitBoxFlex","webkitBoxOrdinalGroup","webkitBoxOrient","webkitBoxPack","webkitBoxShadow","webkitBoxSizing","webkitCancelAnimationFrame","webkitCancelFullScreen","webkitCancelKeyRequest","webkitCancelRequestAnimationFrame","webkitClearResourceTimings","webkitClipPath","webkitClosedCaptionsVisible","webkitConvertPointFromNodeToPage","webkitConvertPointFromPageToNode","webkitCreateShadowRoot","webkitCurrentFullScreenElement","webkitCurrentPlaybackTargetIsWireless","webkitDecodedFrameCount","webkitDirectionInvertedFromDevice","webkitDisplayingFullscreen","webkitDroppedFrameCount","webkitEnterFullScreen","webkitEnterFullscreen","webkitEntries","webkitExitFullScreen","webkitExitFullscreen","webkitExitPointerLock","webkitFilter","webkitFlex","webkitFlexBasis","webkitFlexDirection","webkitFlexFlow","webkitFlexGrow","webkitFlexShrink","webkitFlexWrap","webkitFullScreenKeyboardInputAllowed","webkitFullscreenElement","webkitFullscreenEnabled","webkitGenerateKeyRequest","webkitGetAsEntry","webkitGetDatabaseNames","webkitGetEntries","webkitGetEntriesByName","webkitGetEntriesByType","webkitGetFlowByName","webkitGetGamepads","webkitGetImageDataHD","webkitGetNamedFlows","webkitGetRegionFlowRanges","webkitGetUserMedia","webkitHasClosedCaptions","webkitHidden","webkitIDBCursor","webkitIDBDatabase","webkitIDBDatabaseError","webkitIDBDatabaseException","webkitIDBFactory","webkitIDBIndex","webkitIDBKeyRange","webkitIDBObjectStore","webkitIDBRequest","webkitIDBTransaction","webkitImageSmoothingEnabled","webkitIndexedDB","webkitInitMessageEvent","webkitIsFullScreen","webkitJustifyContent","webkitKeys","webkitLineClamp","webkitLineDashOffset","webkitLockOrientation","webkitMask","webkitMaskClip","webkitMaskComposite","webkitMaskImage","webkitMaskOrigin","webkitMaskPosition","webkitMaskPositionX","webkitMaskPositionY","webkitMaskRepeat","webkitMaskSize","webkitMatchesSelector","webkitMediaStream","webkitNotifications","webkitOfflineAudioContext","webkitOrder","webkitOrientation","webkitPeerConnection00","webkitPersistentStorage","webkitPerspective","webkitPerspectiveOrigin","webkitPointerLockElement","webkitPostMessage","webkitPreservesPitch","webkitPutImageDataHD","webkitRTCPeerConnection","webkitRegionOverset","webkitRelativePath","webkitRequestAnimationFrame","webkitRequestFileSystem","webkitRequestFullScreen","webkitRequestFullscreen","webkitRequestPointerLock","webkitResolveLocalFileSystemURL","webkitSetMediaKeys","webkitSetResourceTimingBufferSize","webkitShadowRoot","webkitShowPlaybackTargetPicker","webkitSlice","webkitSpeechGrammar","webkitSpeechGrammarList","webkitSpeechRecognition","webkitSpeechRecognitionError","webkitSpeechRecognitionEvent","webkitStorageInfo","webkitSupportsFullscreen","webkitTemporaryStorage","webkitTextFillColor","webkitTextSecurity","webkitTextSizeAdjust","webkitTextStroke","webkitTextStrokeColor","webkitTextStrokeWidth","webkitTransform","webkitTransformOrigin","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitURL","webkitUnlockOrientation","webkitUserSelect","webkitVideoDecodedByteCount","webkitVisibilityState","webkitWirelessVideoPlaybackDisabled","webkitdirectory","webkitdropzone","webstore","weight","wgslLanguageFeatures","whatToShow","wheelDelta","wheelDeltaX","wheelDeltaY","whenDefined","which","white-space","white-space-collapse","whiteSpace","whiteSpaceCollapse","wholeText","widows","width","will-change","willChange","willValidate","window","windowAttribution","windowControlsOverlay","with","withCredentials","withResolvers","word-break","word-spacing","word-wrap","wordBreak","wordSpacing","wordWrap","workerStart","worklet","wow64","wrap","wrapKey","writable","writableAuxiliaries","write","writeBuffer","writeMask","writeText","writeTexture","writeTimestamp","writeValue","writeValueWithResponse","writeValueWithoutResponse","writeWithoutResponse","writeln","writing-mode","writingMode","writingSuggestions","x","x1","x2","xChannelSelector","xmlEncoding","xmlStandalone","xmlVersion","xmlbase","xmllang","xmlspace","xor","xr","y","y1","y2","yChannelSelector","yandex","z","z-index","zIndex","zoom","zoomAndPan","zoomRectScreen"];function ag(t){og.forEach(s);var e=["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"],n={},i=typeof global=="object"?global:self;e.forEach(function(f){n[f]=i[f]||function(){}}),["null","true","false","NaN","Infinity","-Infinity","undefined"].forEach(s),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(f){Object.getOwnPropertyNames(f).map(s),f.prototype&&Object.getOwnPropertyNames(f.prototype).map(s)});function s(f){t.add(f)}}function sg(t,e){function n(i){yo(e,i)}t.walk(new Pn(function(i){i instanceof Yt&&i.quote?n(i.key):i instanceof un&&i.quote?n(i.key.name):i instanceof Sn&&No(i.property,n)}))}function No(t,e){t.walk(new Pn(function(n){return n instanceof lt?No(n.tail_node(),e):n instanceof dt?e(n.value):n instanceof tt&&(No(n.consequent,e),No(n.alternative,e)),!0}))}function ug(t,e){var n=-1,i=new Map,s=e.nth_identifier||gs;return t=t.transform(new dr(function(h){h instanceof vi||h instanceof bi||h instanceof ti||h instanceof gi||h instanceof ri?h.key.name=f(h.key.name):h instanceof $r&&(h.property=f(h.property))})),t;function f(h){let y=i.get(h);return y||(y=s.get(++n),i.set(h,y)),y}}function Cd(t){var e=new Set;return In(t,n=>{n instanceof vi||n instanceof bi||n instanceof ti||n instanceof gi||n instanceof $r||(n instanceof Yt?typeof n.key=="string"&&sr(n,ys)&&e.add(n.key):n instanceof un?sr(n,ys)&&e.add(n.key.name):n instanceof zt?sr(n,ys)&&e.add(n.property):n instanceof Sn&&n.property instanceof dt&&sr(n,ys)&&e.add(n.property.value))}),e}function cg(t,e,n=Cd(t)){e=mi(e,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,nth_identifier:gs,only_cache:!1,regex:null,reserved:null,undeclared:!1,only_annotated:!1},!0);var i=e.nth_identifier,s=e.reserved;Array.isArray(s)||(s=[s]);var f=new Set(s);e.builtins||ag(f);var h=-1,y;e.cache?y=e.cache.props:y=new Map;var E=e.only_annotated,T=e.regex&&new RegExp(e.regex),O=e.debug!==!1,A;O&&(A=e.debug===!0?"":e.debug);var I=new Set,U=new Set;y.forEach(D=>U.add(D));var L=!!e.keep_quoted;return t.walk(new Pn(function(D){if(!(D instanceof vi||D instanceof bi||D instanceof ti||D instanceof gi||D instanceof $r))if(D instanceof Yt)typeof D.key=="string"&&(!L||!D.quote)&&g(D.key);else if(D instanceof un)(!L||!D.quote)&&g(D.key.name);else if(D instanceof zt){var B=!!e.undeclared;if(!B){for(var X=D;X.expression;)X=X.expression;B=!(X.thedef&&X.thedef.undeclared)}B&&(!L||!D.quote)&&g(D.property)}else D instanceof Sn?L||No(D.property,g):D instanceof je&&D.expression.print_to_string()=="Object.defineProperty"?No(D.args[1],g):D instanceof ae&&D.operator==="in"?No(D.left,g):D instanceof dt&&sr(D,_s)&&g(D.value)})),t.transform(new dr(function(D){D instanceof vi||D instanceof bi||D instanceof ti||D instanceof gi||D instanceof $r||(D instanceof Yt?typeof D.key=="string"&&(!L||!D.quote)&&(D.key=C(D.key)):D instanceof un?(!L||!D.quote)&&(D.key.name=C(D.key.name)):D instanceof zt?(!L||!D.quote)&&(D.property=C(D.property)):!L&&D instanceof Sn?D.property=R(D.property):D instanceof je&&D.expression.print_to_string()=="Object.defineProperty"?D.args[1]=R(D.args[1]):D instanceof ae&&D.operator==="in"?D.left=R(D.left):D instanceof dt&&sr(D,_s)&&(Hp(D,_s),D.value=C(D.value)))}));function b(D){return U.has(D)||f.has(D)?!1:e.only_cache?y.has(D):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(D)}function _(D){return E&&!n.has(D)?!1:T&&!T.test(D)?n.has(D):f.has(D)?!1:y.has(D)||I.has(D)}function g(D){b(D)&&I.add(D),_(D)||U.add(D)}function C(D){if(!_(D))return D;var B=y.get(D);if(!B){if(O){var X="_$"+D+"$"+A+"_";b(X)&&(B=X)}if(!B)do B=i.get(++h);while(!b(B));y.set(D,B)}return B}function R(D){return D.transform(new dr(function(B){if(B instanceof lt){var X=B.expressions.length-1;B.expressions[X]=R(B.expressions[X])}else B instanceof dt?(Hp(B,_s),B.value=C(B.value)):B instanceof tt&&(B.consequent=R(B.consequent),B.alternative=R(B.alternative));return B}))}}var lg=typeof Buffer<"u"?t=>Buffer.from(t,"base64").toString():t=>decodeURIComponent(escape(atob(t))),fg=typeof Buffer<"u"?t=>Buffer.from(t).toString("base64"):t=>btoa(unescape(encodeURIComponent(t)));function hg(t){var e=/(?:^|[^.])\/\/# sourceMappingURL=data:application\/json(;[\w=-]*)?;base64,([+/0-9A-Za-z]*=*)\s*$/.exec(t);return e?lg(e[2]):(console.warn("inline source map not found"),null)}function uo(t,e,n){e[t]&&n.forEach(function(i){e[i]&&(typeof e[i]!="object"&&(e[i]={}),t in e[i]||(e[i][t]=e[t]))})}function Dd(t){t&&("props"in t?t.props instanceof Map||(t.props=ey(t.props)):t.props=new Map)}function kd(t){return{props:ty(t.props)}}function pg(t,e,n,i){if(!(n&&n.writeFileSync&&n.mkdirSync))return;try{n.mkdirSync(i)}catch(y){if(y.code!=="EEXIST")throw y}const s=`${i}/terser-debug-${Math.random()*9999999|0}.log`;e=e||{};const f=JSON.stringify(e,(y,E)=>typeof E=="function"?"[Function "+E.toString()+"]":E instanceof RegExp?"[RegExp "+E.toString()+"]":E,4),h=y=>typeof y=="object"&&e.parse&&e.parse.spidermonkey?JSON.stringify(y,null,2):typeof y=="object"?Object.keys(y).map(E=>E+": "+h(y[E])).join(`
|
188
|
-
|
189
|
-
`):typeof y=="string"?"```\n"+y+"\n```":y;n.writeFileSync(s,`Options:
|
190
|
-
`+f+`
|
191
|
-
|
192
|
-
Input files:
|
193
|
-
|
194
|
-
`+h(t)+`
|
195
|
-
`)}function*dg(t,e,n){n&&typeof process=="object"&&process.env&&typeof process.env.TERSER_DEBUG_DIR=="string"&&pg(t,e,n,process.env.TERSER_DEBUG_DIR),e=mi(e,{compress:{},ecma:void 0,enclose:!1,ie8:!1,keep_classnames:void 0,keep_fnames:!1,mangle:{},module:!1,nameCache:null,output:null,format:null,parse:{},rename:void 0,safari10:!1,sourceMap:!1,spidermonkey:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0);var i=e.timings&&{start:Date.now()};if(e.keep_classnames===void 0&&(e.keep_classnames=e.keep_fnames),e.rename===void 0&&(e.rename=e.compress&&e.mangle),e.output&&e.format)throw new Error("Please only specify either output or format option, preferrably format.");e.format=e.format||e.output||{},uo("ecma",e,["parse","compress","format"]),uo("ie8",e,["compress","mangle","format"]),uo("keep_classnames",e,["compress","mangle"]),uo("keep_fnames",e,["compress","mangle"]),uo("module",e,["parse","compress","mangle"]),uo("safari10",e,["mangle","format"]),uo("toplevel",e,["compress","mangle"]),uo("warnings",e,["compress"]);var s;e.mangle&&(e.mangle=mi(e.mangle,{cache:e.nameCache&&(e.nameCache.vars||{}),eval:!1,ie8:!1,keep_classnames:!1,keep_fnames:!1,module:!1,nth_identifier:gs,properties:!1,reserved:[],safari10:!1,toplevel:!1},!0),e.mangle.properties&&(typeof e.mangle.properties!="object"&&(e.mangle.properties={}),e.mangle.properties.keep_quoted&&(s=e.mangle.properties.reserved,Array.isArray(s)||(s=[]),e.mangle.properties.reserved=s),e.nameCache&&!("cache"in e.mangle.properties)&&(e.mangle.properties.cache=e.nameCache.props||{})),Dd(e.mangle.cache),Dd(e.mangle.properties.cache)),e.sourceMap&&(e.sourceMap=mi(e.sourceMap,{asObject:!1,content:null,filename:null,includeSources:!1,root:null,url:null},!0)),i&&(i.parse=Date.now());var f;if(t instanceof Kt)f=t;else{if((typeof t=="string"||e.parse.spidermonkey&&!Array.isArray(t))&&(t=[t]),e.parse=e.parse||{},e.parse.toplevel=null,e.parse.spidermonkey)e.parse.toplevel=xe.from_mozilla_ast(Object.keys(t).reduce(function(I,U){return I?(I.body=I.body.concat(t[U].body),I):t[U]},null));else{delete e.parse.spidermonkey;for(var h in t)if(tr(t,h)&&(e.parse.filename=h,e.parse.toplevel=ls(t[h],e.parse),e.sourceMap&&e.sourceMap.content=="inline")){if(Object.keys(t).length>1)throw new Error("inline source map only works with singular input");e.sourceMap.content=hg(t[h])}}if(e.parse.toplevel===null)throw new Error("no source file given");f=e.parse.toplevel}s&&e.mangle.properties.keep_quoted!=="strict"&&sg(f,s);var y;e.mangle&&e.mangle.properties&&(y=Cd(f)),e.wrap&&(f=f.wrap_commonjs(e.wrap)),e.enclose&&(f=f.wrap_enclose(e.enclose)),i&&(i.rename=Date.now()),i&&(i.compress=Date.now()),e.compress&&(f=new Sd(e.compress,{mangle_options:e.mangle}).compress(f)),i&&(i.scope=Date.now()),e.mangle&&f.figure_out_scope(e.mangle),i&&(i.mangle=Date.now()),e.mangle&&(f.compute_char_frequency(e.mangle),f.mangle_names(e.mangle),f=ug(f,e.mangle)),i&&(i.properties=Date.now()),e.mangle&&e.mangle.properties&&(f=cg(f,e.mangle.properties,y)),i&&(i.format=Date.now());var E={};e.format.ast&&(E.ast=f),e.format.spidermonkey&&(E.ast=f.to_mozilla_ast());let T;if(!tr(e.format,"code")||e.format.code){if(T={...e.format},T.ast||(T._destroy_ast=!0,In(f,I=>{I instanceof qe&&(I.variables=void 0,I.enclosed=void 0,I.parent_scope=void 0),I.block_scope&&(I.block_scope.variables=void 0,I.block_scope.enclosed=void 0,I.parent_scope=void 0)})),e.sourceMap){if(e.sourceMap.includeSources&&t instanceof Kt)throw new Error("original source content unavailable");T.source_map=yield*ig({file:e.sourceMap.filename,orig:e.sourceMap.content,root:e.sourceMap.root,files:e.sourceMap.includeSources?t:null})}delete T.ast,delete T.code,delete T.spidermonkey;var O=Ml(T);if(f.print(O),E.code=O.get(),e.sourceMap)if(Object.defineProperty(E,"map",{configurable:!0,enumerable:!0,get(){const I=T.source_map.getEncoded();return E.map=e.sourceMap.asObject?I:JSON.stringify(I)},set(I){Object.defineProperty(E,"map",{value:I,writable:!0})}}),E.decoded_map=T.source_map.getDecoded(),e.sourceMap.url=="inline"){var A=typeof E.map=="object"?JSON.stringify(E.map):E.map;E.code+=`
|
196
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,`+fg(A)}else e.sourceMap.url&&(E.code+=`
|
197
|
-
//# sourceMappingURL=`+e.sourceMap.url)}return e.nameCache&&e.mangle&&(e.mangle.cache&&(e.nameCache.vars=kd(e.mangle.cache)),e.mangle.properties&&e.mangle.properties.cache&&(e.nameCache.props=kd(e.mangle.properties.cache))),T&&T.source_map&&T.source_map.destroy(),i&&(i.end=Date.now(),E.timings={parse:.001*(i.rename-i.parse),rename:.001*(i.compress-i.rename),compress:.001*(i.scope-i.compress),scope:.001*(i.mangle-i.scope),mangle:.001*(i.properties-i.mangle),properties:.001*(i.format-i.properties),format:.001*(i.end-i.format),total:.001*(i.end-i.start)}),E}async function Rd(t,e,n){const i=dg(t,e,n);let s,f;do f=i.next(await s),s=f.value;while(!f.done);return f.value}function wd(t){const e=new n_(t),n=new bl(e);n.removeErrorListeners();const i=new Qm(n),s=new F(i);s._interp.predictionMode=u_.SLL,s.removeErrorListeners();const f=new yg;n.addErrorListener(f),s.addErrorListener(f),s.buildParseTrees=!0;const h=s.program(),y=i.tokens.filter(E=>E.channel===2);return{errors:f.errors,ast:h,comments:y}}async function mg(t,e,n,i){const{errors:s,ast:f,comments:h}=wd(t+`
|
198
|
-
|
199
|
-
`),y=new Ip(i,h,n),E=await y.visit(f);let T=s.splice(0,1);T.length||(T=y.errors);let O="";const A=new B_("$"),I=e?"":A.preParser(E);if(e&&!T.some(U=>U.type===Qn.Error)){const U=A.parser(E)||"";O=(await Rd(U,{compress:!0,mangle:!0})).code||"";const b={message:Ee.indiRunErr,type:Qn.Error,startColumn:0,startLineNumber:0,endColumn:0,endLineNumber:0};if(y.hasUseDrawFunc){if(y.scriptType===$o.library)y.exportPositions.length||(b.message=Ee.libraryExportErr,T.push(b));else if(y.exportPositions.length){const _=y.exportPositions.map(g=>{const{type:C,...R}=g;return{message:De(Ee.exportUseErr,{type:C}),type:Qn.Error,...R}});T.push(..._)}}else switch(y.scriptType){case $o.indicator:T.push(b);break;case $o.strategy:y.hasUseCreateOrderFunc||(b.message=Ee.strategyRunErr,T.push(b));break}}return{errors:T,functions:Object.fromEntries(y.userFunctions),variables:Object.fromEntries(y.userVariables),types:Object.fromEntries(y.userTypes),methods:Object.fromEntries(y.userMethods),overloadsFuncs:y.overloadsFuncs,imports:Object.fromEntries(y.imports),codeStr:O,preParserCode:I}}async function _g(t,e,n,i){const{ast:s,comments:f}=wd(t+`
|
200
|
-
|
201
|
-
`),h=new Ip(i,f,n),y=await h.visit(s),{name:E,index:T}=h.endExport,O=y.findIndex(b=>b.name===E&&b.index===T),A=y.slice(0,O+1),U=new U_("$",e).parser(A)||"",L=await Rd(U,{compress:!0,mangle:!0});return{...h.exportLibs,description:h.description,codeStr:L.code||""}}class yg extends e_{constructor(){super(...arguments);k(this,"errors",[])}syntaxError(n,i,s,f,h){this.errors.push({message:`syntax error: ${h.replace(/expecting.+/,"")}`,type:Qn.Error,startColumn:f,startLineNumber:s,endColumn:f,endLineNumber:s})}}Al({parseTcc:mg,parseLibraryCode:_g})})();
|