@live-codes/browser-compilers 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";var pug=(()=>{var ox=Object.create;var qs=Object.defineProperty;var ux=Object.getOwnPropertyDescriptor;var lx=Object.getOwnPropertyNames;var cx=Object.getPrototypeOf,px=Object.prototype.hasOwnProperty;var Pa=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Ct=(t,e)=>()=>(t&&(e=t(t=0)),e);var L=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Wi=(t,e)=>{for(var r in e)qs(t,r,{get:e[r],enumerable:!0})},hp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of lx(e))!px.call(t,s)&&s!==r&&qs(t,s,{get:()=>e[s],enumerable:!(i=ux(e,s))||i.enumerable});return t};var fx=(t,e,r)=>(r=t!=null?ox(cx(t)):{},hp(e||!t||!t.__esModule?qs(r,"default",{value:t,enumerable:!0}):r,t)),Ji=t=>hp(qs({},"__esModule",{value:!0}),t);function yp(){throw new Error("setTimeout has not been defined")}function mp(){throw new Error("clearTimeout has not been defined")}function Tp(t){if(dr===setTimeout)return setTimeout(t,0);if((dr===yp||!dr)&&setTimeout)return dr=setTimeout,setTimeout(t,0);try{return dr(t,0)}catch{try{return dr.call(null,t,0)}catch{return dr.call(this,t,0)}}}function hx(t){if(yr===clearTimeout)return clearTimeout(t);if((yr===mp||!yr)&&clearTimeout)return yr=clearTimeout,clearTimeout(t);try{return yr(t)}catch{try{return yr.call(null,t)}catch{return yr.call(this,t)}}}function dx(){!di||!kr||(di=!1,kr.length?Gt=kr.concat(Gt):Ks=-1,Gt.length&&xp())}function xp(){if(!di){var t=Tp(dx);di=!0;for(var e=Gt.length;e;){for(kr=Gt,Gt=[];++Ks<e;)kr&&kr[Ks].run();Ks=-1,e=Gt.length}kr=null,di=!1,hx(t)}}function yx(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];Gt.push(new bp(t,e)),Gt.length===1&&!di&&Tp(xp)}function bp(t,e){this.fun=t,this.array=e}function Dr(){}function kx(t){throw new Error("process.binding is not supported")}function Dx(){return"/"}function Lx(t){throw new Error("process.chdir is not supported")}function Mx(){return 0}function Bx(t){var e=Fx.call(hi)*.001,r=Math.floor(e),i=Math.floor(e%1*1e9);return t&&(r=r-t[0],i=i-t[1],i<0&&(r--,i+=1e9)),[r,i]}function jx(){var t=new Date,e=t-Rx;return e/1e3}var dr,yr,Gt,di,kr,Ks,mx,Tx,xx,bx,gx,Sx,Ex,vx,Px,Ax,wx,Ix,Cx,Nx,_x,Ox,hi,Fx,Rx,N,dp,y=Ct(()=>{dr=yp,yr=mp;typeof window.setTimeout=="function"&&(dr=setTimeout);typeof window.clearTimeout=="function"&&(yr=clearTimeout);Gt=[],di=!1,Ks=-1;bp.prototype.run=function(){this.fun.apply(null,this.array)};mx="browser",Tx="browser",xx=!0,bx={},gx=[],Sx="",Ex={},vx={},Px={};Ax=Dr,wx=Dr,Ix=Dr,Cx=Dr,Nx=Dr,_x=Dr,Ox=Dr;hi=window.performance||{},Fx=hi.now||hi.mozNow||hi.msNow||hi.oNow||hi.webkitNow||function(){return new Date().getTime()};Rx=new Date;N={nextTick:yx,title:mx,browser:xx,env:bx,argv:gx,version:Sx,versions:Ex,on:Ax,addListener:wx,once:Ix,off:Cx,removeListener:Nx,removeAllListeners:_x,emit:Ox,binding:kx,cwd:Dx,chdir:Lx,umask:Mx,hrtime:Bx,platform:Tx,release:vx,config:Px,uptime:jx},dp={};Object.keys(dp).forEach(t=>{let e=t.split("."),r=N;for(let i=0;i<e.length;i++){let s=e[i];i===e.length-1?r[s]=dp[t]:r=r[s]||(r[s]={})}})});function vp(){wa=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Dt[e]=t[e],St[t.charCodeAt(e)]=e;St[45]=62,St[95]=63}function Vx(t){wa||vp();var e,r,i,s,n,o,u=t.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");n=t[u-2]==="="?2:t[u-1]==="="?1:0,o=new Ux(u*3/4-n),i=n>0?u-4:u;var c=0;for(e=0,r=0;e<i;e+=4,r+=3)s=St[t.charCodeAt(e)]<<18|St[t.charCodeAt(e+1)]<<12|St[t.charCodeAt(e+2)]<<6|St[t.charCodeAt(e+3)],o[c++]=s>>16&255,o[c++]=s>>8&255,o[c++]=s&255;return n===2?(s=St[t.charCodeAt(e)]<<2|St[t.charCodeAt(e+1)]>>4,o[c++]=s&255):n===1&&(s=St[t.charCodeAt(e)]<<10|St[t.charCodeAt(e+1)]<<4|St[t.charCodeAt(e+2)]>>2,o[c++]=s>>8&255,o[c++]=s&255),o}function qx(t){return Dt[t>>18&63]+Dt[t>>12&63]+Dt[t>>6&63]+Dt[t&63]}function Kx(t,e,r){for(var i,s=[],n=e;n<r;n+=3)i=(t[n]<<16)+(t[n+1]<<8)+t[n+2],s.push(qx(i));return s.join("")}function gp(t){wa||vp();for(var e,r=t.length,i=r%3,s="",n=[],o=16383,u=0,c=r-i;u<c;u+=o)n.push(Kx(t,u,u+o>c?c:u+o));return i===1?(e=t[r-1],s+=Dt[e>>2],s+=Dt[e<<4&63],s+="=="):i===2&&(e=(t[r-2]<<8)+t[r-1],s+=Dt[e>>10],s+=Dt[e>>4&63],s+=Dt[e<<2&63],s+="="),n.push(s),n.join("")}function Ys(){return A.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Qt(t,e){if(Ys()<e)throw new RangeError("Invalid typed array length");return A.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=A.prototype):(t===null&&(t=new A(e)),t.length=e),t}function A(t,e,r){if(!A.TYPED_ARRAY_SUPPORT&&!(this instanceof A))return new A(t,e,r);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return Ia(this,t)}return Pp(this,t,e,r)}function Pp(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Wx(t,e,r,i):typeof e=="string"?Xx(t,e,r):Jx(t,e)}function Ap(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Yx(t,e,r,i){return Ap(e),e<=0?Qt(t,e):r!==void 0?typeof i=="string"?Qt(t,e).fill(r,i):Qt(t,e).fill(r):Qt(t,e)}function Ia(t,e){if(Ap(e),t=Qt(t,e<0?0:Ca(e)|0),!A.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function Xx(t,e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!A.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=wp(e,r)|0;t=Qt(t,i);var s=t.write(e,r);return s!==i&&(t=t.slice(0,s)),t}function Aa(t,e){var r=e.length<0?0:Ca(e.length)|0;t=Qt(t,r);for(var i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Wx(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");return r===void 0&&i===void 0?e=new Uint8Array(e):i===void 0?e=new Uint8Array(e,r):e=new Uint8Array(e,r,i),A.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=A.prototype):t=Aa(t,e),t}function Jx(t,e){if(Lt(e)){var r=Ca(e.length)|0;return t=Qt(t,r),t.length===0||e.copy(t,0,0,r),t}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||fb(e.length)?Qt(t,0):Aa(t,e);if(e.type==="Buffer"&&Array.isArray(e.data))return Aa(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Ca(t){if(t>=Ys())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ys().toString(16)+" bytes");return t|0}function Lt(t){return!!(t!=null&&t._isBuffer)}function wp(t,e){if(Lt(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Xs(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Dp(t).length;default:if(i)return Xs(t).length;e=(""+e).toLowerCase(),i=!0}}function zx(t,e,r){var i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return sb(this,e,r);case"utf8":case"utf-8":return Np(this,e,r);case"ascii":return rb(this,e,r);case"latin1":case"binary":return ib(this,e,r);case"base64":return eb(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nb(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function Lr(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function Ip(t,e,r,i,s){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0)if(s)r=0;else return-1;if(typeof e=="string"&&(e=A.from(e,i)),Lt(e))return e.length===0?-1:Sp(t,e,r,i,s);if(typeof e=="number")return e=e&255,A.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Sp(t,[e],r,i,s);throw new TypeError("val must be string, number or Buffer")}function Sp(t,e,r,i,s){var n=1,o=t.length,u=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;n=2,o/=2,u/=2,r/=2}function c(D,F){return n===1?D[F]:D.readUInt16BE(F*n)}var p;if(s){var f=-1;for(p=r;p<o;p++)if(c(t,p)===c(e,f===-1?0:p-f)){if(f===-1&&(f=p),p-f+1===u)return f*n}else f!==-1&&(p-=p-f),f=-1}else for(r+u>o&&(r=o-u),p=r;p>=0;p--){for(var P=!0,k=0;k<u;k++)if(c(t,p+k)!==c(e,k)){P=!1;break}if(P)return p}return-1}function $x(t,e,r,i){r=Number(r)||0;var s=t.length-r;i?(i=Number(i),i>s&&(i=s)):i=s;var n=e.length;if(n%2!==0)throw new TypeError("Invalid hex string");i>n/2&&(i=n/2);for(var o=0;o<i;++o){var u=parseInt(e.substr(o*2,2),16);if(isNaN(u))return o;t[r+o]=u}return o}function Hx(t,e,r,i){return zs(Xs(e,t.length-r),t,r,i)}function Cp(t,e,r,i){return zs(cb(e),t,r,i)}function Gx(t,e,r,i){return Cp(t,e,r,i)}function Qx(t,e,r,i){return zs(Dp(e),t,r,i)}function Zx(t,e,r,i){return zs(pb(e,t.length-r),t,r,i)}function eb(t,e,r){return e===0&&r===t.length?gp(t):gp(t.slice(e,r))}function Np(t,e,r){r=Math.min(t.length,r);for(var i=[],s=e;s<r;){var n=t[s],o=null,u=n>239?4:n>223?3:n>191?2:1;if(s+u<=r){var c,p,f,P;switch(u){case 1:n<128&&(o=n);break;case 2:c=t[s+1],(c&192)===128&&(P=(n&31)<<6|c&63,P>127&&(o=P));break;case 3:c=t[s+1],p=t[s+2],(c&192)===128&&(p&192)===128&&(P=(n&15)<<12|(c&63)<<6|p&63,P>2047&&(P<55296||P>57343)&&(o=P));break;case 4:c=t[s+1],p=t[s+2],f=t[s+3],(c&192)===128&&(p&192)===128&&(f&192)===128&&(P=(n&15)<<18|(c&63)<<12|(p&63)<<6|f&63,P>65535&&P<1114112&&(o=P))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),s+=u}return tb(i)}function tb(t){var e=t.length;if(e<=Ep)return String.fromCharCode.apply(String,t);for(var r="",i=0;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=Ep));return r}function rb(t,e,r){var i="";r=Math.min(t.length,r);for(var s=e;s<r;++s)i+=String.fromCharCode(t[s]&127);return i}function ib(t,e,r){var i="";r=Math.min(t.length,r);for(var s=e;s<r;++s)i+=String.fromCharCode(t[s]);return i}function sb(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var s="",n=e;n<r;++n)s+=lb(t[n]);return s}function nb(t,e,r){for(var i=t.slice(e,r),s="",n=0;n<i.length;n+=2)s+=String.fromCharCode(i[n]+i[n+1]*256);return s}function Ke(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function pt(t,e,r,i,s,n){if(!Lt(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<n)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function Ws(t,e,r,i){e<0&&(e=65535+e+1);for(var s=0,n=Math.min(t.length-r,2);s<n;++s)t[r+s]=(e&255<<8*(i?s:1-s))>>>(i?s:1-s)*8}function Js(t,e,r,i){e<0&&(e=4294967295+e+1);for(var s=0,n=Math.min(t.length-r,4);s<n;++s)t[r+s]=e>>>(i?s:3-s)*8&255}function _p(t,e,r,i,s,n){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Op(t,e,r,i,s){return s||_p(t,e,r,4,34028234663852886e22,-34028234663852886e22),Mp(t,e,r,i,23,4),r+4}function kp(t,e,r,i,s){return s||_p(t,e,r,8,17976931348623157e292,-17976931348623157e292),Mp(t,e,r,i,52,8),r+8}function ob(t){if(t=ub(t).replace(ab,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function ub(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function lb(t){return t<16?"0"+t.toString(16):t.toString(16)}function Xs(t,e){e=e||1/0;for(var r,i=t.length,s=null,n=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&n.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&n.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&n.push(239,191,189),s=r;continue}r=(s-55296<<10|r-56320)+65536}else s&&(e-=3)>-1&&n.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;n.push(r)}else if(r<2048){if((e-=2)<0)break;n.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;n.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return n}function cb(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function pb(t,e){for(var r,i,s,n=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),i=r>>8,s=r%256,n.push(s),n.push(i);return n}function Dp(t){return Vx(ob(t))}function zs(t,e,r,i){for(var s=0;s<i&&!(s+r>=e.length||s>=t.length);++s)e[s+r]=t[s];return s}function fb(t){return t!==t}function hb(t){return t!=null&&(!!t._isBuffer||Lp(t)||db(t))}function Lp(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function db(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&Lp(t.slice(0,0))}function $s(t,e,r,i,s){var n,o,u=s*8-i-1,c=(1<<u)-1,p=c>>1,f=-7,P=r?s-1:0,k=r?-1:1,D=t[e+P];for(P+=k,n=D&(1<<-f)-1,D>>=-f,f+=u;f>0;n=n*256+t[e+P],P+=k,f-=8);for(o=n&(1<<-f)-1,n>>=-f,f+=i;f>0;o=o*256+t[e+P],P+=k,f-=8);if(n===0)n=1-p;else{if(n===c)return o?NaN:(D?-1:1)*(1/0);o=o+Math.pow(2,i),n=n-p}return(D?-1:1)*o*Math.pow(2,n-i)}function Mp(t,e,r,i,s,n){var o,u,c,p=n*8-s-1,f=(1<<p)-1,P=f>>1,k=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=i?0:n-1,F=i?1:-1,q=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+P>=1?e+=k/c:e+=k*Math.pow(2,1-P),e*c>=2&&(o++,c/=2),o+P>=f?(u=0,o=f):o+P>=1?(u=(e*c-1)*Math.pow(2,s),o=o+P):(u=e*Math.pow(2,P-1)*Math.pow(2,s),o=0));s>=8;t[r+D]=u&255,D+=F,u/=256,s-=8);for(o=o<<s|u,p+=s;p>0;t[r+D]=o&255,D+=F,o/=256,p-=8);t[r+D-F]|=q*128}var Dt,St,Ux,wa,Ep,ab,Fp=Ct(()=>{y();m();Dt=[],St=[],Ux=typeof Uint8Array<"u"?Uint8Array:Array,wa=!1;A.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;A.poolSize=8192;A._augment=function(t){return t.__proto__=A.prototype,t};A.from=function(t,e,r){return Pp(null,t,e,r)};A.kMaxLength=Ys();A.TYPED_ARRAY_SUPPORT&&(A.prototype.__proto__=Uint8Array.prototype,A.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&A[Symbol.species]);A.alloc=function(t,e,r){return Yx(null,t,e,r)};A.allocUnsafe=function(t){return Ia(null,t)};A.allocUnsafeSlow=function(t){return Ia(null,t)};A.isBuffer=hb;A.compare=function(e,r){if(!Lt(e)||!Lt(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var i=e.length,s=r.length,n=0,o=Math.min(i,s);n<o;++n)if(e[n]!==r[n]){i=e[n],s=r[n];break}return i<s?-1:s<i?1:0};A.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};A.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return A.alloc(0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var s=A.allocUnsafe(r),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!Lt(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(s,n),n+=o.length}return s};A.byteLength=wp;A.prototype._isBuffer=!0;A.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)Lr(this,r,r+1);return this};A.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)Lr(this,r,r+3),Lr(this,r+1,r+2);return this};A.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)Lr(this,r,r+7),Lr(this,r+1,r+6),Lr(this,r+2,r+5),Lr(this,r+3,r+4);return this};A.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?Np(this,0,e):zx.apply(this,arguments)};A.prototype.equals=function(e){if(!Lt(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:A.compare(this,e)===0};A.prototype.compare=function(e,r,i,s,n){if(!Lt(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),s===void 0&&(s=0),n===void 0&&(n=this.length),r<0||i>e.length||s<0||n>this.length)throw new RangeError("out of range index");if(s>=n&&r>=i)return 0;if(s>=n)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,s>>>=0,n>>>=0,this===e)return 0;for(var o=n-s,u=i-r,c=Math.min(o,u),p=this.slice(s,n),f=e.slice(r,i),P=0;P<c;++P)if(p[P]!==f[P]){o=p[P],u=f[P];break}return o<u?-1:u<o?1:0};A.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1};A.prototype.indexOf=function(e,r,i){return Ip(this,e,r,i,!0)};A.prototype.lastIndexOf=function(e,r,i){return Ip(this,e,r,i,!1)};A.prototype.write=function(e,r,i,s){if(r===void 0)s="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")s=r,i=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(i)?(i=i|0,s===void 0&&(s="utf8")):(s=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var o=!1;;)switch(s){case"hex":return $x(this,e,r,i);case"utf8":case"utf-8":return Hx(this,e,r,i);case"ascii":return Cp(this,e,r,i);case"latin1":case"binary":return Gx(this,e,r,i);case"base64":return Qx(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zx(this,e,r,i);default:if(o)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),o=!0}};A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Ep=4096;A.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var s;if(A.TYPED_ARRAY_SUPPORT)s=this.subarray(e,r),s.__proto__=A.prototype;else{var n=r-e;s=new A(n,void 0);for(var o=0;o<n;++o)s[o]=this[o+e]}return s};A.prototype.readUIntLE=function(e,r,i){e=e|0,r=r|0,i||Ke(e,r,this.length);for(var s=this[e],n=1,o=0;++o<r&&(n*=256);)s+=this[e+o]*n;return s};A.prototype.readUIntBE=function(e,r,i){e=e|0,r=r|0,i||Ke(e,r,this.length);for(var s=this[e+--r],n=1;r>0&&(n*=256);)s+=this[e+--r]*n;return s};A.prototype.readUInt8=function(e,r){return r||Ke(e,1,this.length),this[e]};A.prototype.readUInt16LE=function(e,r){return r||Ke(e,2,this.length),this[e]|this[e+1]<<8};A.prototype.readUInt16BE=function(e,r){return r||Ke(e,2,this.length),this[e]<<8|this[e+1]};A.prototype.readUInt32LE=function(e,r){return r||Ke(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};A.prototype.readUInt32BE=function(e,r){return r||Ke(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};A.prototype.readIntLE=function(e,r,i){e=e|0,r=r|0,i||Ke(e,r,this.length);for(var s=this[e],n=1,o=0;++o<r&&(n*=256);)s+=this[e+o]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*r)),s};A.prototype.readIntBE=function(e,r,i){e=e|0,r=r|0,i||Ke(e,r,this.length);for(var s=r,n=1,o=this[e+--s];s>0&&(n*=256);)o+=this[e+--s]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*r)),o};A.prototype.readInt8=function(e,r){return r||Ke(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};A.prototype.readInt16LE=function(e,r){r||Ke(e,2,this.length);var i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};A.prototype.readInt16BE=function(e,r){r||Ke(e,2,this.length);var i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};A.prototype.readInt32LE=function(e,r){return r||Ke(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};A.prototype.readInt32BE=function(e,r){return r||Ke(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};A.prototype.readFloatLE=function(e,r){return r||Ke(e,4,this.length),$s(this,e,!0,23,4)};A.prototype.readFloatBE=function(e,r){return r||Ke(e,4,this.length),$s(this,e,!1,23,4)};A.prototype.readDoubleLE=function(e,r){return r||Ke(e,8,this.length),$s(this,e,!0,52,8)};A.prototype.readDoubleBE=function(e,r){return r||Ke(e,8,this.length),$s(this,e,!1,52,8)};A.prototype.writeUIntLE=function(e,r,i,s){if(e=+e,r=r|0,i=i|0,!s){var n=Math.pow(2,8*i)-1;pt(this,e,r,i,n,0)}var o=1,u=0;for(this[r]=e&255;++u<i&&(o*=256);)this[r+u]=e/o&255;return r+i};A.prototype.writeUIntBE=function(e,r,i,s){if(e=+e,r=r|0,i=i|0,!s){var n=Math.pow(2,8*i)-1;pt(this,e,r,i,n,0)}var o=i-1,u=1;for(this[r+o]=e&255;--o>=0&&(u*=256);)this[r+o]=e/u&255;return r+i};A.prototype.writeUInt8=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,1,255,0),A.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};A.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Ws(this,e,r,!0),r+2};A.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,2,65535,0),A.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Ws(this,e,r,!1),r+2};A.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):Js(this,e,r,!0),r+4};A.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,4,4294967295,0),A.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Js(this,e,r,!1),r+4};A.prototype.writeIntLE=function(e,r,i,s){if(e=+e,r=r|0,!s){var n=Math.pow(2,8*i-1);pt(this,e,r,i,n-1,-n)}var o=0,u=1,c=0;for(this[r]=e&255;++o<i&&(u*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/u>>0)-c&255;return r+i};A.prototype.writeIntBE=function(e,r,i,s){if(e=+e,r=r|0,!s){var n=Math.pow(2,8*i-1);pt(this,e,r,i,n-1,-n)}var o=i-1,u=1,c=0;for(this[r+o]=e&255;--o>=0&&(u*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/u>>0)-c&255;return r+i};A.prototype.writeInt8=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,1,127,-128),A.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};A.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Ws(this,e,r,!0),r+2};A.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,2,32767,-32768),A.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Ws(this,e,r,!1),r+2};A.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,4,2147483647,-2147483648),A.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):Js(this,e,r,!0),r+4};A.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r|0,i||pt(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),A.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Js(this,e,r,!1),r+4};A.prototype.writeFloatLE=function(e,r,i){return Op(this,e,r,!0,i)};A.prototype.writeFloatBE=function(e,r,i){return Op(this,e,r,!1,i)};A.prototype.writeDoubleLE=function(e,r,i){return kp(this,e,r,!0,i)};A.prototype.writeDoubleBE=function(e,r,i){return kp(this,e,r,!1,i)};A.prototype.copy=function(e,r,i,s){if(i||(i=0),!s&&s!==0&&(s=this.length),r>=e.length&&(r=e.length),r||(r=0),s>0&&s<i&&(s=i),s===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-r<s-i&&(s=e.length-r+i);var n=s-i,o;if(this===e&&i<r&&r<s)for(o=n-1;o>=0;--o)e[o+r]=this[o+i];else if(n<1e3||!A.TYPED_ARRAY_SUPPORT)for(o=0;o<n;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+n),r);return n};A.prototype.fill=function(e,r,i,s){if(typeof e=="string"){if(typeof r=="string"?(s=r,r=0,i=this.length):typeof i=="string"&&(s=i,i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!A.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<i;++o)this[o]=e;else{var u=Lt(e)?e:Xs(new A(e,s).toString()),c=u.length;for(o=0;o<i-r;++o)this[o+r]=u[o%c]}return this};ab=/[^+\/0-9A-Za-z-_]/g});var m=Ct(()=>{Fp()});var Bp={};Wi(Bp,{default:()=>yb});var yb,Rp=Ct(()=>{y();m();yb={}});var mr=L((B5,Hs)=>{y();m();var Mr=(Rp(),Ji(Bp));if(Mr&&Mr.default){Hs.exports=Mr.default;for(let t in Mr)Hs.exports[t]=Mr[t]}else Mr&&(Hs.exports=Mr)});var Jp={};Wi(Jp,{basename:()=>Xp,default:()=>Tb,delimiter:()=>Kp,dirname:()=>Yp,extname:()=>Wp,isAbsolute:()=>Oa,join:()=>Up,normalize:()=>_a,relative:()=>Vp,resolve:()=>Gs,sep:()=>qp});function jp(t,e){for(var r=0,i=t.length-1;i>=0;i--){var s=t[i];s==="."?t.splice(i,1):s===".."?(t.splice(i,1),r++):r&&(t.splice(i,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function Gs(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var i=r>=0?arguments[r]:"/";if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)continue;t=i+"/"+t,e=i.charAt(0)==="/"}return t=jp(ka(t.split("/"),function(s){return!!s}),!e).join("/"),(e?"/":"")+t||"."}function _a(t){var e=Oa(t),r=xb(t,-1)==="/";return t=jp(ka(t.split("/"),function(i){return!!i}),!e).join("/"),!t&&!e&&(t="."),t&&r&&(t+="/"),(e?"/":"")+t}function Oa(t){return t.charAt(0)==="/"}function Up(){var t=Array.prototype.slice.call(arguments,0);return _a(ka(t,function(e,r){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function Vp(t,e){t=Gs(t).substr(1),e=Gs(e).substr(1);function r(p){for(var f=0;f<p.length&&p[f]==="";f++);for(var P=p.length-1;P>=0&&p[P]==="";P--);return f>P?[]:p.slice(f,P-f+1)}for(var i=r(t.split("/")),s=r(e.split("/")),n=Math.min(i.length,s.length),o=n,u=0;u<n;u++)if(i[u]!==s[u]){o=u;break}for(var c=[],u=o;u<i.length;u++)c.push("..");return c=c.concat(s.slice(o)),c.join("/")}function Yp(t){var e=Na(t),r=e[0],i=e[1];return!r&&!i?".":(i&&(i=i.substr(0,i.length-1)),r+i)}function Xp(t,e){var r=Na(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}function Wp(t){return Na(t)[3]}function ka(t,e){if(t.filter)return t.filter(e);for(var r=[],i=0;i<t.length;i++)e(t[i],i,t)&&r.push(t[i]);return r}var mb,Na,qp,Kp,Tb,xb,zp=Ct(()=>{y();m();mb=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Na=function(t){return mb.exec(t).slice(1)};qp="/",Kp=":";Tb={extname:Wp,basename:Xp,dirname:Yp,sep:qp,delimiter:Kp,relative:Vp,join:Up,isAbsolute:Oa,normalize:_a,resolve:Gs};xb="ab".substr(-1)==="b"?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}});var Br=L((q5,Qs)=>{y();m();var Fr=(zp(),Ji(Jp));if(Fr&&Fr.default){Qs.exports=Fr.default;for(let t in Fr)Qs.exports[t]=Fr[t]}else Fr&&(Qs.exports=Fr)});function Qp(){La=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)Mt[e]=t[e],Et[t.charCodeAt(e)]=e;Et[45]=62,Et[95]=63}function gb(t){La||Qp();var e,r,i,s,n,o,u=t.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");n=t[u-2]==="="?2:t[u-1]==="="?1:0,o=new bb(u*3/4-n),i=n>0?u-4:u;var c=0;for(e=0,r=0;e<i;e+=4,r+=3)s=Et[t.charCodeAt(e)]<<18|Et[t.charCodeAt(e+1)]<<12|Et[t.charCodeAt(e+2)]<<6|Et[t.charCodeAt(e+3)],o[c++]=s>>16&255,o[c++]=s>>8&255,o[c++]=s&255;return n===2?(s=Et[t.charCodeAt(e)]<<2|Et[t.charCodeAt(e+1)]>>4,o[c++]=s&255):n===1&&(s=Et[t.charCodeAt(e)]<<10|Et[t.charCodeAt(e+1)]<<4|Et[t.charCodeAt(e+2)]>>2,o[c++]=s>>8&255,o[c++]=s&255),o}function Sb(t){return Mt[t>>18&63]+Mt[t>>12&63]+Mt[t>>6&63]+Mt[t&63]}function Eb(t,e,r){for(var i,s=[],n=e;n<r;n+=3)i=(t[n]<<16)+(t[n+1]<<8)+t[n+2],s.push(Sb(i));return s.join("")}function $p(t){La||Qp();for(var e,r=t.length,i=r%3,s="",n=[],o=16383,u=0,c=r-i;u<c;u+=o)n.push(Eb(t,u,u+o>c?c:u+o));return i===1?(e=t[r-1],s+=Mt[e>>2],s+=Mt[e<<4&63],s+="=="):i===2&&(e=(t[r-2]<<8)+t[r-1],s+=Mt[e>>10],s+=Mt[e>>4&63],s+=Mt[e<<2&63],s+="="),n.push(s),n.join("")}function tn(t,e,r,i,s){var n,o,u=s*8-i-1,c=(1<<u)-1,p=c>>1,f=-7,P=r?s-1:0,k=r?-1:1,D=t[e+P];for(P+=k,n=D&(1<<-f)-1,D>>=-f,f+=u;f>0;n=n*256+t[e+P],P+=k,f-=8);for(o=n&(1<<-f)-1,n>>=-f,f+=i;f>0;o=o*256+t[e+P],P+=k,f-=8);if(n===0)n=1-p;else{if(n===c)return o?NaN:(D?-1:1)*(1/0);o=o+Math.pow(2,i),n=n-p}return(D?-1:1)*o*Math.pow(2,n-i)}function Zp(t,e,r,i,s,n){var o,u,c,p=n*8-s-1,f=(1<<p)-1,P=f>>1,k=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=i?0:n-1,F=i?1:-1,q=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+P>=1?e+=k/c:e+=k*Math.pow(2,1-P),e*c>=2&&(o++,c/=2),o+P>=f?(u=0,o=f):o+P>=1?(u=(e*c-1)*Math.pow(2,s),o=o+P):(u=e*Math.pow(2,P-1)*Math.pow(2,s),o=0));s>=8;t[r+D]=u&255,D+=F,u/=256,s-=8);for(o=o<<s|u,p+=s;p>0;t[r+D]=o&255,D+=F,o/=256,p-=8);t[r+D-F]|=q*128}function Zs(){return V.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Zt(t,e){if(Zs()<e)throw new RangeError("Invalid typed array length");return V.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=V.prototype):(t===null&&(t=new V(e)),t.length=e),t}function V(t,e,r){if(!V.TYPED_ARRAY_SUPPORT&&!(this instanceof V))return new V(t,e,r);if(typeof t=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return Ma(this,t)}return tf(this,t,e,r)}function tf(t,e,r,i){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?Ib(t,e,r,i):typeof e=="string"?wb(t,e,r):Cb(t,e)}function rf(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function Ab(t,e,r,i){return rf(e),e<=0?Zt(t,e):r!==void 0?typeof i=="string"?Zt(t,e).fill(r,i):Zt(t,e).fill(r):Zt(t,e)}function Ma(t,e){if(rf(e),t=Zt(t,e<0?0:Fa(e)|0),!V.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function wb(t,e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!V.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=sf(e,r)|0;t=Zt(t,i);var s=t.write(e,r);return s!==i&&(t=t.slice(0,s)),t}function Da(t,e){var r=e.length<0?0:Fa(e.length)|0;t=Zt(t,r);for(var i=0;i<r;i+=1)t[i]=e[i]&255;return t}function Ib(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");return r===void 0&&i===void 0?e=new Uint8Array(e):i===void 0?e=new Uint8Array(e,r):e=new Uint8Array(e,r,i),V.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=V.prototype):t=Da(t,e),t}function Cb(t,e){if(Ft(e)){var r=Fa(e.length)|0;return t=Zt(t,r),t.length===0||e.copy(t,0,0,r),t}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||Jb(e.length)?Zt(t,0):Da(t,e);if(e.type==="Buffer"&&ef(e.data))return Da(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Fa(t){if(t>=Zs())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zs().toString(16)+" bytes");return t|0}function Ft(t){return!!(t!=null&&t._isBuffer)}function sf(t,e){if(Ft(t))return t.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var r=t.length;if(r===0)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return en(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return pf(t).length;default:if(i)return en(t).length;e=(""+e).toLowerCase(),i=!0}}function Nb(t,e,r){var i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return jb(this,e,r);case"utf8":case"utf-8":return of(this,e,r);case"ascii":return Bb(this,e,r);case"latin1":case"binary":return Rb(this,e,r);case"base64":return Mb(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ub(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function Rr(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function nf(t,e,r,i,s){if(t.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=s?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(s)return-1;r=t.length-1}else if(r<0)if(s)r=0;else return-1;if(typeof e=="string"&&(e=V.from(e,i)),Ft(e))return e.length===0?-1:Hp(t,e,r,i,s);if(typeof e=="number")return e=e&255,V.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Hp(t,[e],r,i,s);throw new TypeError("val must be string, number or Buffer")}function Hp(t,e,r,i,s){var n=1,o=t.length,u=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(t.length<2||e.length<2)return-1;n=2,o/=2,u/=2,r/=2}function c(D,F){return n===1?D[F]:D.readUInt16BE(F*n)}var p;if(s){var f=-1;for(p=r;p<o;p++)if(c(t,p)===c(e,f===-1?0:p-f)){if(f===-1&&(f=p),p-f+1===u)return f*n}else f!==-1&&(p-=p-f),f=-1}else for(r+u>o&&(r=o-u),p=r;p>=0;p--){for(var P=!0,k=0;k<u;k++)if(c(t,p+k)!==c(e,k)){P=!1;break}if(P)return p}return-1}function _b(t,e,r,i){r=Number(r)||0;var s=t.length-r;i?(i=Number(i),i>s&&(i=s)):i=s;var n=e.length;if(n%2!==0)throw new TypeError("Invalid hex string");i>n/2&&(i=n/2);for(var o=0;o<i;++o){var u=parseInt(e.substr(o*2,2),16);if(isNaN(u))return o;t[r+o]=u}return o}function Ob(t,e,r,i){return nn(en(e,t.length-r),t,r,i)}function af(t,e,r,i){return nn(Xb(e),t,r,i)}function kb(t,e,r,i){return af(t,e,r,i)}function Db(t,e,r,i){return nn(pf(e),t,r,i)}function Lb(t,e,r,i){return nn(Wb(e,t.length-r),t,r,i)}function Mb(t,e,r){return e===0&&r===t.length?$p(t):$p(t.slice(e,r))}function of(t,e,r){r=Math.min(t.length,r);for(var i=[],s=e;s<r;){var n=t[s],o=null,u=n>239?4:n>223?3:n>191?2:1;if(s+u<=r){var c,p,f,P;switch(u){case 1:n<128&&(o=n);break;case 2:c=t[s+1],(c&192)===128&&(P=(n&31)<<6|c&63,P>127&&(o=P));break;case 3:c=t[s+1],p=t[s+2],(c&192)===128&&(p&192)===128&&(P=(n&15)<<12|(c&63)<<6|p&63,P>2047&&(P<55296||P>57343)&&(o=P));break;case 4:c=t[s+1],p=t[s+2],f=t[s+3],(c&192)===128&&(p&192)===128&&(f&192)===128&&(P=(n&15)<<18|(c&63)<<12|(p&63)<<6|f&63,P>65535&&P<1114112&&(o=P))}}o===null?(o=65533,u=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),s+=u}return Fb(i)}function Fb(t){var e=t.length;if(e<=Gp)return String.fromCharCode.apply(String,t);for(var r="",i=0;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=Gp));return r}function Bb(t,e,r){var i="";r=Math.min(t.length,r);for(var s=e;s<r;++s)i+=String.fromCharCode(t[s]&127);return i}function Rb(t,e,r){var i="";r=Math.min(t.length,r);for(var s=e;s<r;++s)i+=String.fromCharCode(t[s]);return i}function jb(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var s="",n=e;n<r;++n)s+=Yb(t[n]);return s}function Ub(t,e,r){for(var i=t.slice(e,r),s="",n=0;n<i.length;n+=2)s+=String.fromCharCode(i[n]+i[n+1]*256);return s}function Ye(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function ft(t,e,r,i,s,n){if(!Ft(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>s||e<n)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function rn(t,e,r,i){e<0&&(e=65535+e+1);for(var s=0,n=Math.min(t.length-r,2);s<n;++s)t[r+s]=(e&255<<8*(i?s:1-s))>>>(i?s:1-s)*8}function sn(t,e,r,i){e<0&&(e=4294967295+e+1);for(var s=0,n=Math.min(t.length-r,4);s<n;++s)t[r+s]=e>>>(i?s:3-s)*8&255}function uf(t,e,r,i,s,n){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function lf(t,e,r,i,s){return s||uf(t,e,r,4),Zp(t,e,r,i,23,4),r+4}function cf(t,e,r,i,s){return s||uf(t,e,r,8),Zp(t,e,r,i,52,8),r+8}function qb(t){if(t=Kb(t).replace(Vb,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Kb(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Yb(t){return t<16?"0"+t.toString(16):t.toString(16)}function en(t,e){e=e||1/0;for(var r,i=t.length,s=null,n=[],o=0;o<i;++o){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!s){if(r>56319){(e-=3)>-1&&n.push(239,191,189);continue}else if(o+1===i){(e-=3)>-1&&n.push(239,191,189);continue}s=r;continue}if(r<56320){(e-=3)>-1&&n.push(239,191,189),s=r;continue}r=(s-55296<<10|r-56320)+65536}else s&&(e-=3)>-1&&n.push(239,191,189);if(s=null,r<128){if((e-=1)<0)break;n.push(r)}else if(r<2048){if((e-=2)<0)break;n.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;n.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return n}function Xb(t){for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Wb(t,e){for(var r,i,s,n=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),i=r>>8,s=r%256,n.push(s),n.push(i);return n}function pf(t){return gb(qb(t))}function nn(t,e,r,i){for(var s=0;s<i&&!(s+r>=e.length||s>=t.length);++s)e[s+r]=t[s];return s}function Jb(t){return t!==t}function jr(t){return t!=null&&(!!t._isBuffer||ff(t)||zb(t))}function ff(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function zb(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&ff(t.slice(0,0))}var Mt,Et,bb,La,vb,ef,Pb,X5,Gp,Vb,hf=Ct(()=>{y();m();Mt=[],Et=[],bb=typeof Uint8Array<"u"?Uint8Array:Array,La=!1;vb={}.toString,ef=Array.isArray||function(t){return vb.call(t)=="[object Array]"};Pb=50;V.TYPED_ARRAY_SUPPORT=window.TYPED_ARRAY_SUPPORT!==void 0?window.TYPED_ARRAY_SUPPORT:!0;X5=Zs();V.poolSize=8192;V._augment=function(t){return t.__proto__=V.prototype,t};V.from=function(t,e,r){return tf(null,t,e,r)};V.TYPED_ARRAY_SUPPORT&&(V.prototype.__proto__=Uint8Array.prototype,V.__proto__=Uint8Array);V.alloc=function(t,e,r){return Ab(null,t,e,r)};V.allocUnsafe=function(t){return Ma(null,t)};V.allocUnsafeSlow=function(t){return Ma(null,t)};V.isBuffer=jr;V.compare=function(e,r){if(!Ft(e)||!Ft(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var i=e.length,s=r.length,n=0,o=Math.min(i,s);n<o;++n)if(e[n]!==r[n]){i=e[n],s=r[n];break}return i<s?-1:s<i?1:0};V.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};V.concat=function(e,r){if(!ef(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return V.alloc(0);var i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;var s=V.allocUnsafe(r),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!Ft(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(s,n),n+=o.length}return s};V.byteLength=sf;V.prototype._isBuffer=!0;V.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)Rr(this,r,r+1);return this};V.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)Rr(this,r,r+3),Rr(this,r+1,r+2);return this};V.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)Rr(this,r,r+7),Rr(this,r+1,r+6),Rr(this,r+2,r+5),Rr(this,r+3,r+4);return this};V.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?of(this,0,e):Nb.apply(this,arguments)};V.prototype.equals=function(e){if(!Ft(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:V.compare(this,e)===0};V.prototype.inspect=function(){var e="",r=Pb;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"};V.prototype.compare=function(e,r,i,s,n){if(!Ft(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),s===void 0&&(s=0),n===void 0&&(n=this.length),r<0||i>e.length||s<0||n>this.length)throw new RangeError("out of range index");if(s>=n&&r>=i)return 0;if(s>=n)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,s>>>=0,n>>>=0,this===e)return 0;for(var o=n-s,u=i-r,c=Math.min(o,u),p=this.slice(s,n),f=e.slice(r,i),P=0;P<c;++P)if(p[P]!==f[P]){o=p[P],u=f[P];break}return o<u?-1:u<o?1:0};V.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1};V.prototype.indexOf=function(e,r,i){return nf(this,e,r,i,!0)};V.prototype.lastIndexOf=function(e,r,i){return nf(this,e,r,i,!1)};V.prototype.write=function(e,r,i,s){if(r===void 0)s="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")s=r,i=this.length,r=0;else if(isFinite(r))r=r|0,isFinite(i)?(i=i|0,s===void 0&&(s="utf8")):(s=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-r;if((i===void 0||i>n)&&(i=n),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var o=!1;;)switch(s){case"hex":return _b(this,e,r,i);case"utf8":case"utf-8":return Ob(this,e,r,i);case"ascii":return af(this,e,r,i);case"latin1":case"binary":return kb(this,e,r,i);case"base64":return Db(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Lb(this,e,r,i);default:if(o)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),o=!0}};V.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Gp=4096;V.prototype.slice=function(e,r){var i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);var s;if(V.TYPED_ARRAY_SUPPORT)s=this.subarray(e,r),s.__proto__=V.prototype;else{var n=r-e;s=new V(n,void 0);for(var o=0;o<n;++o)s[o]=this[o+e]}return s};V.prototype.readUIntLE=function(e,r,i){e=e|0,r=r|0,i||Ye(e,r,this.length);for(var s=this[e],n=1,o=0;++o<r&&(n*=256);)s+=this[e+o]*n;return s};V.prototype.readUIntBE=function(e,r,i){e=e|0,r=r|0,i||Ye(e,r,this.length);for(var s=this[e+--r],n=1;r>0&&(n*=256);)s+=this[e+--r]*n;return s};V.prototype.readUInt8=function(e,r){return r||Ye(e,1,this.length),this[e]};V.prototype.readUInt16LE=function(e,r){return r||Ye(e,2,this.length),this[e]|this[e+1]<<8};V.prototype.readUInt16BE=function(e,r){return r||Ye(e,2,this.length),this[e]<<8|this[e+1]};V.prototype.readUInt32LE=function(e,r){return r||Ye(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};V.prototype.readUInt32BE=function(e,r){return r||Ye(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};V.prototype.readIntLE=function(e,r,i){e=e|0,r=r|0,i||Ye(e,r,this.length);for(var s=this[e],n=1,o=0;++o<r&&(n*=256);)s+=this[e+o]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*r)),s};V.prototype.readIntBE=function(e,r,i){e=e|0,r=r|0,i||Ye(e,r,this.length);for(var s=r,n=1,o=this[e+--s];s>0&&(n*=256);)o+=this[e+--s]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*r)),o};V.prototype.readInt8=function(e,r){return r||Ye(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};V.prototype.readInt16LE=function(e,r){r||Ye(e,2,this.length);var i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i};V.prototype.readInt16BE=function(e,r){r||Ye(e,2,this.length);var i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i};V.prototype.readInt32LE=function(e,r){return r||Ye(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};V.prototype.readInt32BE=function(e,r){return r||Ye(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};V.prototype.readFloatLE=function(e,r){return r||Ye(e,4,this.length),tn(this,e,!0,23,4)};V.prototype.readFloatBE=function(e,r){return r||Ye(e,4,this.length),tn(this,e,!1,23,4)};V.prototype.readDoubleLE=function(e,r){return r||Ye(e,8,this.length),tn(this,e,!0,52,8)};V.prototype.readDoubleBE=function(e,r){return r||Ye(e,8,this.length),tn(this,e,!1,52,8)};V.prototype.writeUIntLE=function(e,r,i,s){if(e=+e,r=r|0,i=i|0,!s){var n=Math.pow(2,8*i)-1;ft(this,e,r,i,n,0)}var o=1,u=0;for(this[r]=e&255;++u<i&&(o*=256);)this[r+u]=e/o&255;return r+i};V.prototype.writeUIntBE=function(e,r,i,s){if(e=+e,r=r|0,i=i|0,!s){var n=Math.pow(2,8*i)-1;ft(this,e,r,i,n,0)}var o=i-1,u=1;for(this[r+o]=e&255;--o>=0&&(u*=256);)this[r+o]=e/u&255;return r+i};V.prototype.writeUInt8=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,1,255,0),V.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};V.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,2,65535,0),V.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):rn(this,e,r,!0),r+2};V.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,2,65535,0),V.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):rn(this,e,r,!1),r+2};V.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,4,4294967295,0),V.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):sn(this,e,r,!0),r+4};V.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,4,4294967295,0),V.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):sn(this,e,r,!1),r+4};V.prototype.writeIntLE=function(e,r,i,s){if(e=+e,r=r|0,!s){var n=Math.pow(2,8*i-1);ft(this,e,r,i,n-1,-n)}var o=0,u=1,c=0;for(this[r]=e&255;++o<i&&(u*=256);)e<0&&c===0&&this[r+o-1]!==0&&(c=1),this[r+o]=(e/u>>0)-c&255;return r+i};V.prototype.writeIntBE=function(e,r,i,s){if(e=+e,r=r|0,!s){var n=Math.pow(2,8*i-1);ft(this,e,r,i,n-1,-n)}var o=i-1,u=1,c=0;for(this[r+o]=e&255;--o>=0&&(u*=256);)e<0&&c===0&&this[r+o+1]!==0&&(c=1),this[r+o]=(e/u>>0)-c&255;return r+i};V.prototype.writeInt8=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,1,127,-128),V.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};V.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,2,32767,-32768),V.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):rn(this,e,r,!0),r+2};V.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,2,32767,-32768),V.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):rn(this,e,r,!1),r+2};V.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,4,2147483647,-2147483648),V.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):sn(this,e,r,!0),r+4};V.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r|0,i||ft(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),V.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):sn(this,e,r,!1),r+4};V.prototype.writeFloatLE=function(e,r,i){return lf(this,e,r,!0,i)};V.prototype.writeFloatBE=function(e,r,i){return lf(this,e,r,!1,i)};V.prototype.writeDoubleLE=function(e,r,i){return cf(this,e,r,!0,i)};V.prototype.writeDoubleBE=function(e,r,i){return cf(this,e,r,!1,i)};V.prototype.copy=function(e,r,i,s){if(i||(i=0),!s&&s!==0&&(s=this.length),r>=e.length&&(r=e.length),r||(r=0),s>0&&s<i&&(s=i),s===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-r<s-i&&(s=e.length-r+i);var n=s-i,o;if(this===e&&i<r&&r<s)for(o=n-1;o>=0;--o)e[o+r]=this[o+i];else if(n<1e3||!V.TYPED_ARRAY_SUPPORT)for(o=0;o<n;++o)e[o+r]=this[o+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+n),r);return n};V.prototype.fill=function(e,r,i,s){if(typeof e=="string"){if(typeof r=="string"?(s=r,r=0,i=this.length):typeof i=="string"&&(s=i,i=this.length),e.length===1){var n=e.charCodeAt(0);n<256&&(e=n)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!V.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof e=="number"&&(e=e&255);if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o<i;++o)this[o]=e;else{var u=Ft(e)?e:en(new V(e,s).toString()),c=u.length;for(o=0;o<i-r;++o)this[o+r]=u[o%c]}return this};Vb=/[^+\/0-9A-Za-z-_]/g});function $b(){throw new Error("setTimeout has not been defined")}function Hb(){throw new Error("clearTimeout has not been defined")}function Zb(t,e){this.fun=t,this.array=e}var Gb,Qb,zi,$5,df=Ct(()=>{y();m();Gb=$b,Qb=Hb;typeof window.setTimeout=="function"&&(Gb=setTimeout);typeof window.clearTimeout=="function"&&(Qb=clearTimeout);Zb.prototype.run=function(){this.fun.apply(null,this.array)};zi=window.performance||{},$5=zi.now||zi.mozNow||zi.msNow||zi.oNow||zi.webkitNow||function(){return new Date().getTime()}});var Ba,Ra,yf=Ct(()=>{y();m();typeof Object.create=="function"?Ba=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Ba=function(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e};Ra=Ba});function Tr(t,e){var r={seen:[],stylize:tg};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),mf(e)?r.showHidden=e:e&&ug(r,e),yi(r.showHidden)&&(r.showHidden=!1),yi(r.depth)&&(r.depth=2),yi(r.colors)&&(r.colors=!1),yi(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=eg),an(r,t,r.depth)}function eg(t,e){var r=Tr.styles[e];return r?"\x1B["+Tr.colors[r][0]+"m"+t+"\x1B["+Tr.colors[r][1]+"m":t}function tg(t,e){return t}function rg(t){var e={};return t.forEach(function(r,i){e[r]=!0}),e}function an(t,e,r){if(t.customInspect&&e&&Ti(e.inspect)&&e.inspect!==Tr&&!(e.constructor&&e.constructor.prototype===e)){var i=e.inspect(r,t);return xf(i)||(i=an(t,i,r)),i}var s=ig(t,e);if(s)return s;var n=Object.keys(e),o=rg(n);if(t.showHidden&&(n=Object.getOwnPropertyNames(e)),$i(e)&&(n.indexOf("message")>=0||n.indexOf("description")>=0))return ja(e);if(n.length===0){if(Ti(e)){var u=e.name?": "+e.name:"";return t.stylize("[Function"+u+"]","special")}if(mi(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Hi(e))return t.stylize(Date.prototype.toString.call(e),"date");if($i(e))return ja(e)}var c="",p=!1,f=["{","}"];if(ag(e)&&(p=!0,f=["[","]"]),Ti(e)){var P=e.name?": "+e.name:"";c=" [Function"+P+"]"}if(mi(e)&&(c=" "+RegExp.prototype.toString.call(e)),Hi(e)&&(c=" "+Date.prototype.toUTCString.call(e)),$i(e)&&(c=" "+ja(e)),n.length===0&&(!p||e.length==0))return f[0]+c+f[1];if(r<0)return mi(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var k;return p?k=sg(t,e,r,o,n):k=n.map(function(D){return Ua(t,e,r,o,D,p)}),t.seen.pop(),ng(k,c,f)}function ig(t,e){if(yi(e))return t.stylize("undefined","undefined");if(xf(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(og(e))return t.stylize(""+e,"number");if(mf(e))return t.stylize(""+e,"boolean");if(Tf(e))return t.stylize("null","null")}function ja(t){return"["+Error.prototype.toString.call(t)+"]"}function sg(t,e,r,i,s){for(var n=[],o=0,u=e.length;o<u;++o)bf(e,String(o))?n.push(Ua(t,e,r,i,String(o),!0)):n.push("");return s.forEach(function(c){c.match(/^\d+$/)||n.push(Ua(t,e,r,i,c,!0))}),n}function Ua(t,e,r,i,s,n){var o,u,c;if(c=Object.getOwnPropertyDescriptor(e,s)||{value:e[s]},c.get?c.set?u=t.stylize("[Getter/Setter]","special"):u=t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),bf(i,s)||(o="["+s+"]"),u||(t.seen.indexOf(c.value)<0?(Tf(r)?u=an(t,c.value,null):u=an(t,c.value,r-1),u.indexOf(`
|
|
2
|
+
`)>-1&&(n?u=u.split(`
|
|
3
|
+
`).map(function(p){return" "+p}).join(`
|
|
4
|
+
`).substr(2):u=`
|
|
5
|
+
`+u.split(`
|
|
6
|
+
`).map(function(p){return" "+p}).join(`
|
|
7
|
+
`))):u=t.stylize("[Circular]","special")),yi(o)){if(n&&s.match(/^\d+$/))return u;o=JSON.stringify(""+s),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+u}function ng(t,e,r){var i=0,s=t.reduce(function(n,o){return i++,o.indexOf(`
|
|
8
|
+
`)>=0&&i++,n+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?r[0]+(e===""?"":e+`
|
|
9
|
+
`)+" "+t.join(`,
|
|
10
|
+
`)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function ag(t){return Array.isArray(t)}function mf(t){return typeof t=="boolean"}function Tf(t){return t===null}function og(t){return typeof t=="number"}function xf(t){return typeof t=="string"}function yi(t){return t===void 0}function mi(t){return on(t)&&qa(t)==="[object RegExp]"}function on(t){return typeof t=="object"&&t!==null}function Hi(t){return on(t)&&qa(t)==="[object Date]"}function $i(t){return on(t)&&(qa(t)==="[object Error]"||t instanceof Error)}function Ti(t){return typeof t=="function"}function Va(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}function qa(t){return Object.prototype.toString.call(t)}function ug(t,e){if(!e||!on(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t}function bf(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var gf=Ct(()=>{y();m();df();yf();Tr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Tr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"}});var Ff={};Wi(Ff,{AssertionError:()=>un,assert:()=>ln,deepEqual:()=>Wa,deepStrictEqual:()=>Ja,default:()=>cg,doesNotThrow:()=>Lf,equal:()=>Ya,fail:()=>rt,ifError:()=>Mf,notDeepEqual:()=>za,notDeepStrictEqual:()=>$a,notEqual:()=>Xa,notStrictEqual:()=>Ga,ok:()=>ln,strictEqual:()=>Ha,throws:()=>Df});function Sf(t,e){if(t===e)return 0;for(var r=t.length,i=e.length,s=0,n=Math.min(r,i);s<n;++s)if(t[s]!==e[s]){r=t[s],i=e[s];break}return r<i?-1:i<r?1:0}function _f(){return typeof Ka<"u"?Ka:Ka=function(){return function(){}.name==="foo"}()}function Pf(t){return Object.prototype.toString.call(t)}function Af(t){return jr(t)||typeof window.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}function it(t,e){t||rt(t,!0,e,"==",ln)}function Of(t){if(Ti(t)){if(_f())return t.name;var e=t.toString(),r=e.match(pg);return r&&r[1]}}function un(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=fg(this),this.generatedMessage=!0);var e=t.stackStartFunction||rt;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var i=r.stack,s=Of(e),n=i.indexOf(`
|
|
11
|
+
`+s);if(n>=0){var o=i.indexOf(`
|
|
12
|
+
`,n+1);i=i.substring(o+1)}this.stack=i}}}function wf(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function If(t){if(_f()||!Ti(t))return Tr(t);var e=Of(t),r=e?": "+e:"";return"[Function"+r+"]"}function fg(t){return wf(If(t.actual),128)+" "+t.operator+" "+wf(If(t.expected),128)}function rt(t,e,r,i,s){throw new un({message:r,actual:t,expected:e,operator:i,stackStartFunction:s})}function ln(t,e){t||rt(t,!0,e,"==",ln)}function Ya(t,e,r){t!=e&&rt(t,e,r,"==",Ya)}function Xa(t,e,r){t==e&&rt(t,e,r,"!=",Xa)}function Wa(t,e,r){xi(t,e,!1)||rt(t,e,r,"deepEqual",Wa)}function Ja(t,e,r){xi(t,e,!0)||rt(t,e,r,"deepStrictEqual",Ja)}function xi(t,e,r,i){if(t===e)return!0;if(jr(t)&&jr(e))return Sf(t,e)===0;if(Hi(t)&&Hi(e))return t.getTime()===e.getTime();if(mi(t)&&mi(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return r?t===e:t==e;if(Af(t)&&Af(e)&&Pf(t)===Pf(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return Sf(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(jr(t)!==jr(e))return!1;i=i||{actual:[],expected:[]};var s=i.actual.indexOf(t);return s!==-1&&s===i.expected.indexOf(e)?!0:(i.actual.push(t),i.expected.push(e),hg(t,e,r,i))}function Cf(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function hg(t,e,r,i){if(t==null||e===null||e===void 0)return!1;if(Va(t)||Va(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var s=Cf(t),n=Cf(e);if(s&&!n||!s&&n)return!1;if(s)return t=vf.call(t),e=vf.call(e),xi(t,e,r);var o=Ef(t),u=Ef(e),c,p;if(o.length!==u.length)return!1;for(o.sort(),u.sort(),p=o.length-1;p>=0;p--)if(o[p]!==u[p])return!1;for(p=o.length-1;p>=0;p--)if(c=o[p],!xi(t[c],e[c],r,i))return!1;return!0}function za(t,e,r){xi(t,e,!1)&&rt(t,e,r,"notDeepEqual",za)}function $a(t,e,r){xi(t,e,!0)&&rt(t,e,r,"notDeepStrictEqual",$a)}function Ha(t,e,r){t!==e&&rt(t,e,r,"===",Ha)}function Ga(t,e,r){t===e&&rt(t,e,r,"!==",Ga)}function Nf(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function dg(t){var e;try{t()}catch(r){e=r}return e}function kf(t,e,r,i){var s;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(i=r,r=null),s=dg(e),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),t&&!s&&rt(s,r,"Missing expected exception"+i);var n=typeof i=="string",o=!t&&$i(s),u=!t&&s&&!r;if((o&&n&&Nf(s,r)||u)&&rt(s,r,"Got unwanted exception"+i),t&&s&&r&&!Nf(s,r)||!t&&s)throw s}function Df(t,e,r){kf(!0,t,e,r)}function Lf(t,e,r){kf(!1,t,e,r)}function Mf(t){if(t)throw t}var lg,Ef,vf,Ka,cg,pg,Bf=Ct(()=>{y();m();hf();gf();lg=Object.prototype.hasOwnProperty,Ef=Object.keys||function(t){var e=[];for(var r in t)lg.call(t,r)&&e.push(r);return e},vf=Array.prototype.slice;cg=it,pg=/\s*function\s+([^\(\s]*)\s*/;it.AssertionError=un;Ra(un,Error);it.fail=rt;it.ok=ln;it.equal=Ya;it.notEqual=Xa;it.deepEqual=Wa;it.deepStrictEqual=Ja;it.notDeepEqual=za;it.notDeepStrictEqual=$a;it.strictEqual=Ha;it.notStrictEqual=Ga;it.throws=Df;it.doesNotThrow=Lf;it.ifError=Mf});var bi=L((fj,cn)=>{y();m();var Ur=(Bf(),Ji(Ff));if(Ur&&Ur.default){cn.exports=Ur.default;for(let t in Ur)cn.exports[t]=Ur[t]}else Ur&&(cn.exports=Ur)});var jf=L((pn,Rf)=>{y();m();(function(t,e){typeof pn=="object"&&typeof Rf<"u"?e(pn):typeof define=="function"&&define.amd?define(["exports"],e):(t=t||self,e(t.acorn={}))})(pn,function(t){"use strict";var e={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",i={5:r,"5module":r+" export import",6:r+" const class extends export import super"},s=/^in(stanceof)?$/,n="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\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\u09FC\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1878\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\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",o="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF\u1AC0\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F",u=new RegExp("["+n+"]"),c=new RegExp("["+n+o+"]");n=o=null;var p=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],f=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function P(a,l){for(var h=65536,b=0;b<l.length;b+=2){if(h+=l[b],h>a)return!1;if(h+=l[b+1],h>=a)return!0}}function k(a,l){return a<65?a===36:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&u.test(String.fromCharCode(a)):l===!1?!1:P(a,p)}function D(a,l){return a<48?a===36:a<58?!0:a<65?!1:a<91?!0:a<97?a===95:a<123?!0:a<=65535?a>=170&&c.test(String.fromCharCode(a)):l===!1?!1:P(a,p)||P(a,f)}var F=function(l,h){h===void 0&&(h={}),this.label=l,this.keyword=h.keyword,this.beforeExpr=!!h.beforeExpr,this.startsExpr=!!h.startsExpr,this.isLoop=!!h.isLoop,this.isAssign=!!h.isAssign,this.prefix=!!h.prefix,this.postfix=!!h.postfix,this.binop=h.binop||null,this.updateContext=null};function q(a,l){return new F(a,{beforeExpr:!0,binop:l})}var ae={beforeExpr:!0},J={startsExpr:!0},G={};function z(a,l){return l===void 0&&(l={}),l.keyword=a,G[a]=new F(a,l)}var T={num:new F("num",J),regexp:new F("regexp",J),string:new F("string",J),name:new F("name",J),eof:new F("eof"),bracketL:new F("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new F("]"),braceL:new F("{",{beforeExpr:!0,startsExpr:!0}),braceR:new F("}"),parenL:new F("(",{beforeExpr:!0,startsExpr:!0}),parenR:new F(")"),comma:new F(",",ae),semi:new F(";",ae),colon:new F(":",ae),dot:new F("."),question:new F("?",ae),questionDot:new F("?."),arrow:new F("=>",ae),template:new F("template"),invalidTemplate:new F("invalidTemplate"),ellipsis:new F("...",ae),backQuote:new F("`",J),dollarBraceL:new F("${",{beforeExpr:!0,startsExpr:!0}),eq:new F("=",{beforeExpr:!0,isAssign:!0}),assign:new F("_=",{beforeExpr:!0,isAssign:!0}),incDec:new F("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new F("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:q("||",1),logicalAND:q("&&",2),bitwiseOR:q("|",3),bitwiseXOR:q("^",4),bitwiseAND:q("&",5),equality:q("==/!=/===/!==",6),relational:q("</>/<=/>=",7),bitShift:q("<</>>/>>>",8),plusMin:new F("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:q("%",10),star:q("*",10),slash:q("/",10),starstar:new F("**",{beforeExpr:!0}),coalesce:q("??",1),_break:z("break"),_case:z("case",ae),_catch:z("catch"),_continue:z("continue"),_debugger:z("debugger"),_default:z("default",ae),_do:z("do",{isLoop:!0,beforeExpr:!0}),_else:z("else",ae),_finally:z("finally"),_for:z("for",{isLoop:!0}),_function:z("function",J),_if:z("if"),_return:z("return",ae),_switch:z("switch"),_throw:z("throw",ae),_try:z("try"),_var:z("var"),_const:z("const"),_while:z("while",{isLoop:!0}),_with:z("with"),_new:z("new",{beforeExpr:!0,startsExpr:!0}),_this:z("this",J),_super:z("super",J),_class:z("class",J),_extends:z("extends",ae),_export:z("export"),_import:z("import",J),_null:z("null",J),_true:z("true",J),_false:z("false",J),_in:z("in",{beforeExpr:!0,binop:7}),_instanceof:z("instanceof",{beforeExpr:!0,binop:7}),_typeof:z("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:z("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:z("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Me=/\r\n?|\n|\u2028|\u2029/,Ne=new RegExp(Me.source,"g");function le(a,l){return a===10||a===13||!l&&(a===8232||a===8233)}var _e=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ce=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,yt=Object.prototype,te=yt.hasOwnProperty,pe=yt.toString;function Oe(a,l){return te.call(a,l)}var ye=Array.isArray||function(a){return pe.call(a)==="[object Array]"};function Ae(a){return new RegExp("^(?:"+a.replace(/ /g,"|")+")$")}var Ve=function(l,h){this.line=l,this.column=h};Ve.prototype.offset=function(l){return new Ve(this.line,this.column+l)};var Ie=function(l,h,b){this.start=h,this.end=b,l.sourceFile!==null&&(this.source=l.sourceFile)};function ke(a,l){for(var h=1,b=0;;){Ne.lastIndex=b;var C=Ne.exec(a);if(C&&C.index<l)++h,b=C.index+C[0].length;else return new Ve(h,l-b)}}var qe={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function wt(a){var l={};for(var h in qe)l[h]=a&&Oe(a,h)?a[h]:qe[h];if(l.ecmaVersion>=2015&&(l.ecmaVersion-=2009),l.allowReserved==null&&(l.allowReserved=l.ecmaVersion<5),ye(l.onToken)){var b=l.onToken;l.onToken=function(C){return b.push(C)}}return ye(l.onComment)&&(l.onComment=Wt(l,l.onComment)),l}function Wt(a,l){return function(h,b,C,B,R,W){var Z={type:h?"Block":"Line",value:b,start:C,end:B};a.locations&&(Z.loc=new Ie(this,R,W)),a.ranges&&(Z.range=[C,B]),l.push(Z)}}var $e=1,Fe=2,pr=$e|Fe,It=4,Jt=8,bt=16,Cr=32,Nr=64,fr=128;function li(a,l){return Fe|(a?It:0)|(l?Jt:0)}var Wc=0,ba=1,zt=2,Jc=3,zc=4,$c=5,Le=function(l,h,b){this.options=l=wt(l),this.sourceFile=l.sourceFile,this.keywords=Ae(i[l.ecmaVersion>=6?6:l.sourceType==="module"?"5module":5]);var C="";if(l.allowReserved!==!0){for(var B=l.ecmaVersion;!(C=e[B]);B--);l.sourceType==="module"&&(C+=" await")}this.reservedWords=Ae(C);var R=(C?C+" ":"")+e.strict;this.reservedWordsStrict=Ae(R),this.reservedWordsStrictBind=Ae(R+" "+e.strictBind),this.input=String(h),this.containsEsc=!1,b?(this.pos=b,this.lineStart=this.input.lastIndexOf(`
|
|
13
|
+
`,b-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Me).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=T.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=l.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&l.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope($e),this.regexpState=null},_r={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Le.prototype.parse=function(){var l=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(l)},_r.inFunction.get=function(){return(this.currentVarScope().flags&Fe)>0},_r.inGenerator.get=function(){return(this.currentVarScope().flags&Jt)>0},_r.inAsync.get=function(){return(this.currentVarScope().flags&It)>0},_r.allowSuper.get=function(){return(this.currentThisScope().flags&Nr)>0},_r.allowDirectSuper.get=function(){return(this.currentThisScope().flags&fr)>0},_r.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Le.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&Fe)>0},Le.extend=function(){for(var l=[],h=arguments.length;h--;)l[h]=arguments[h];for(var b=this,C=0;C<l.length;C++)b=l[C](b);return b},Le.parse=function(l,h){return new this(h,l).parse()},Le.parseExpressionAt=function(l,h,b){var C=new this(b,l,h);return C.nextToken(),C.parseExpression()},Le.tokenizer=function(l,h){return new this(h,l)},Object.defineProperties(Le.prototype,_r);var tt=Le.prototype,KT=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;tt.strictDirective=function(a){for(;;){ce.lastIndex=a,a+=ce.exec(this.input)[0].length;var l=KT.exec(this.input.slice(a));if(!l)return!1;if((l[1]||l[2])==="use strict"){ce.lastIndex=a+l[0].length;var h=ce.exec(this.input),b=h.index+h[0].length,C=this.input.charAt(b);return C===";"||C==="}"||Me.test(h[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(C)||C==="!"&&this.input.charAt(b+1)==="=")}a+=l[0].length,ce.lastIndex=a,a+=ce.exec(this.input)[0].length,this.input[a]===";"&&a++}},tt.eat=function(a){return this.type===a?(this.next(),!0):!1},tt.isContextual=function(a){return this.type===T.name&&this.value===a&&!this.containsEsc},tt.eatContextual=function(a){return this.isContextual(a)?(this.next(),!0):!1},tt.expectContextual=function(a){this.eatContextual(a)||this.unexpected()},tt.canInsertSemicolon=function(){return this.type===T.eof||this.type===T.braceR||Me.test(this.input.slice(this.lastTokEnd,this.start))},tt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},tt.semicolon=function(){!this.eat(T.semi)&&!this.insertSemicolon()&&this.unexpected()},tt.afterTrailingComma=function(a,l){if(this.type===a)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),l||this.next(),!0},tt.expect=function(a){this.eat(a)||this.unexpected()},tt.unexpected=function(a){this.raise(a??this.start,"Unexpected token")};function Ds(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}tt.checkPatternErrors=function(a,l){if(a){a.trailingComma>-1&&this.raiseRecoverable(a.trailingComma,"Comma is not permitted after the rest element");var h=l?a.parenthesizedAssign:a.parenthesizedBind;h>-1&&this.raiseRecoverable(h,"Parenthesized pattern")}},tt.checkExpressionErrors=function(a,l){if(!a)return!1;var h=a.shorthandAssign,b=a.doubleProto;if(!l)return h>=0||b>=0;h>=0&&this.raise(h,"Shorthand property assignments are valid only in destructuring patterns"),b>=0&&this.raiseRecoverable(b,"Redefinition of __proto__ property")},tt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},tt.isSimpleAssignTarget=function(a){return a.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(a.expression):a.type==="Identifier"||a.type==="MemberExpression"};var oe=Le.prototype;oe.parseTopLevel=function(a){var l={};for(a.body||(a.body=[]);this.type!==T.eof;){var h=this.parseStatement(null,!0,l);a.body.push(h)}if(this.inModule)for(var b=0,C=Object.keys(this.undefinedExports);b<C.length;b+=1){var B=C[b];this.raiseRecoverable(this.undefinedExports[B].start,"Export '"+B+"' is not defined")}return this.adaptDirectivePrologue(a.body),this.next(),a.sourceType=this.options.sourceType,this.finishNode(a,"Program")};var ga={kind:"loop"},YT={kind:"switch"};oe.isLet=function(a){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ce.lastIndex=this.pos;var l=ce.exec(this.input),h=this.pos+l[0].length,b=this.input.charCodeAt(h);if(b===91)return!0;if(a)return!1;if(b===123)return!0;if(k(b,!0)){for(var C=h+1;D(this.input.charCodeAt(C),!0);)++C;var B=this.input.slice(h,C);if(!s.test(B))return!0}return!1},oe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ce.lastIndex=this.pos;var a=ce.exec(this.input),l=this.pos+a[0].length;return!Me.test(this.input.slice(this.pos,l))&&this.input.slice(l,l+8)==="function"&&(l+8===this.input.length||!D(this.input.charAt(l+8)))},oe.parseStatement=function(a,l,h){var b=this.type,C=this.startNode(),B;switch(this.isLet(a)&&(b=T._var,B="let"),b){case T._break:case T._continue:return this.parseBreakContinueStatement(C,b.keyword);case T._debugger:return this.parseDebuggerStatement(C);case T._do:return this.parseDoStatement(C);case T._for:return this.parseForStatement(C);case T._function:return a&&(this.strict||a!=="if"&&a!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(C,!1,!a);case T._class:return a&&this.unexpected(),this.parseClass(C,!0);case T._if:return this.parseIfStatement(C);case T._return:return this.parseReturnStatement(C);case T._switch:return this.parseSwitchStatement(C);case T._throw:return this.parseThrowStatement(C);case T._try:return this.parseTryStatement(C);case T._const:case T._var:return B=B||this.value,a&&B!=="var"&&this.unexpected(),this.parseVarStatement(C,B);case T._while:return this.parseWhileStatement(C);case T._with:return this.parseWithStatement(C);case T.braceL:return this.parseBlock(!0,C);case T.semi:return this.parseEmptyStatement(C);case T._export:case T._import:if(this.options.ecmaVersion>10&&b===T._import){ce.lastIndex=this.pos;var R=ce.exec(this.input),W=this.pos+R[0].length,Z=this.input.charCodeAt(W);if(Z===40||Z===46)return this.parseExpressionStatement(C,this.parseExpression())}return this.options.allowImportExportEverywhere||(l||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),b===T._import?this.parseImport(C):this.parseExport(C,h);default:if(this.isAsyncFunction())return a&&this.unexpected(),this.next(),this.parseFunctionStatement(C,!0,!a);var xe=this.value,De=this.parseExpression();return b===T.name&&De.type==="Identifier"&&this.eat(T.colon)?this.parseLabeledStatement(C,xe,De,a):this.parseExpressionStatement(C,De)}},oe.parseBreakContinueStatement=function(a,l){var h=l==="break";this.next(),this.eat(T.semi)||this.insertSemicolon()?a.label=null:this.type!==T.name?this.unexpected():(a.label=this.parseIdent(),this.semicolon());for(var b=0;b<this.labels.length;++b){var C=this.labels[b];if((a.label==null||C.name===a.label.name)&&(C.kind!=null&&(h||C.kind==="loop")||a.label&&h))break}return b===this.labels.length&&this.raise(a.start,"Unsyntactic "+l),this.finishNode(a,h?"BreakStatement":"ContinueStatement")},oe.parseDebuggerStatement=function(a){return this.next(),this.semicolon(),this.finishNode(a,"DebuggerStatement")},oe.parseDoStatement=function(a){return this.next(),this.labels.push(ga),a.body=this.parseStatement("do"),this.labels.pop(),this.expect(T._while),a.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(T.semi):this.semicolon(),this.finishNode(a,"DoWhileStatement")},oe.parseForStatement=function(a){this.next();var l=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ga),this.enterScope(0),this.expect(T.parenL),this.type===T.semi)return l>-1&&this.unexpected(l),this.parseFor(a,null);var h=this.isLet();if(this.type===T._var||this.type===T._const||h){var b=this.startNode(),C=h?"let":this.value;return this.next(),this.parseVar(b,!0,C),this.finishNode(b,"VariableDeclaration"),(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&b.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===T._in?l>-1&&this.unexpected(l):a.await=l>-1),this.parseForIn(a,b)):(l>-1&&this.unexpected(l),this.parseFor(a,b))}var B=new Ds,R=this.parseExpression(!0,B);return this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===T._in?l>-1&&this.unexpected(l):a.await=l>-1),this.toAssignable(R,!1,B),this.checkLVal(R),this.parseForIn(a,R)):(this.checkExpressionErrors(B,!0),l>-1&&this.unexpected(l),this.parseFor(a,R))},oe.parseFunctionStatement=function(a,l,h){return this.next(),this.parseFunction(a,Xi|(h?0:Sa),!1,l)},oe.parseIfStatement=function(a){return this.next(),a.test=this.parseParenExpression(),a.consequent=this.parseStatement("if"),a.alternate=this.eat(T._else)?this.parseStatement("if"):null,this.finishNode(a,"IfStatement")},oe.parseReturnStatement=function(a){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(T.semi)||this.insertSemicolon()?a.argument=null:(a.argument=this.parseExpression(),this.semicolon()),this.finishNode(a,"ReturnStatement")},oe.parseSwitchStatement=function(a){this.next(),a.discriminant=this.parseParenExpression(),a.cases=[],this.expect(T.braceL),this.labels.push(YT),this.enterScope(0);for(var l,h=!1;this.type!==T.braceR;)if(this.type===T._case||this.type===T._default){var b=this.type===T._case;l&&this.finishNode(l,"SwitchCase"),a.cases.push(l=this.startNode()),l.consequent=[],this.next(),b?l.test=this.parseExpression():(h&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),h=!0,l.test=null),this.expect(T.colon)}else l||this.unexpected(),l.consequent.push(this.parseStatement(null));return this.exitScope(),l&&this.finishNode(l,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(a,"SwitchStatement")},oe.parseThrowStatement=function(a){return this.next(),Me.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),a.argument=this.parseExpression(),this.semicolon(),this.finishNode(a,"ThrowStatement")};var XT=[];oe.parseTryStatement=function(a){if(this.next(),a.block=this.parseBlock(),a.handler=null,this.type===T._catch){var l=this.startNode();if(this.next(),this.eat(T.parenL)){l.param=this.parseBindingAtom();var h=l.param.type==="Identifier";this.enterScope(h?Cr:0),this.checkLVal(l.param,h?zc:zt),this.expect(T.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),l.param=null,this.enterScope(0);l.body=this.parseBlock(!1),this.exitScope(),a.handler=this.finishNode(l,"CatchClause")}return a.finalizer=this.eat(T._finally)?this.parseBlock():null,!a.handler&&!a.finalizer&&this.raise(a.start,"Missing catch or finally clause"),this.finishNode(a,"TryStatement")},oe.parseVarStatement=function(a,l){return this.next(),this.parseVar(a,!1,l),this.semicolon(),this.finishNode(a,"VariableDeclaration")},oe.parseWhileStatement=function(a){return this.next(),a.test=this.parseParenExpression(),this.labels.push(ga),a.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(a,"WhileStatement")},oe.parseWithStatement=function(a){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),a.object=this.parseParenExpression(),a.body=this.parseStatement("with"),this.finishNode(a,"WithStatement")},oe.parseEmptyStatement=function(a){return this.next(),this.finishNode(a,"EmptyStatement")},oe.parseLabeledStatement=function(a,l,h,b){for(var C=0,B=this.labels;C<B.length;C+=1){var R=B[C];R.name===l&&this.raise(h.start,"Label '"+l+"' is already declared")}for(var W=this.type.isLoop?"loop":this.type===T._switch?"switch":null,Z=this.labels.length-1;Z>=0;Z--){var xe=this.labels[Z];if(xe.statementStart===a.start)xe.statementStart=this.start,xe.kind=W;else break}return this.labels.push({name:l,kind:W,statementStart:this.start}),a.body=this.parseStatement(b?b.indexOf("label")===-1?b+"label":b:"label"),this.labels.pop(),a.label=h,this.finishNode(a,"LabeledStatement")},oe.parseExpressionStatement=function(a,l){return a.expression=l,this.semicolon(),this.finishNode(a,"ExpressionStatement")},oe.parseBlock=function(a,l,h){for(a===void 0&&(a=!0),l===void 0&&(l=this.startNode()),l.body=[],this.expect(T.braceL),a&&this.enterScope(0);this.type!==T.braceR;){var b=this.parseStatement(null);l.body.push(b)}return h&&(this.strict=!1),this.next(),a&&this.exitScope(),this.finishNode(l,"BlockStatement")},oe.parseFor=function(a,l){return a.init=l,this.expect(T.semi),a.test=this.type===T.semi?null:this.parseExpression(),this.expect(T.semi),a.update=this.type===T.parenR?null:this.parseExpression(),this.expect(T.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,"ForStatement")},oe.parseForIn=function(a,l){var h=this.type===T._in;return this.next(),l.type==="VariableDeclaration"&&l.declarations[0].init!=null&&(!h||this.options.ecmaVersion<8||this.strict||l.kind!=="var"||l.declarations[0].id.type!=="Identifier")?this.raise(l.start,(h?"for-in":"for-of")+" loop variable declaration may not have an initializer"):l.type==="AssignmentPattern"&&this.raise(l.start,"Invalid left-hand side in for-loop"),a.left=l,a.right=h?this.parseExpression():this.parseMaybeAssign(),this.expect(T.parenR),a.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(a,h?"ForInStatement":"ForOfStatement")},oe.parseVar=function(a,l,h){for(a.declarations=[],a.kind=h;;){var b=this.startNode();if(this.parseVarId(b,h),this.eat(T.eq)?b.init=this.parseMaybeAssign(l):h==="const"&&!(this.type===T._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():b.id.type!=="Identifier"&&!(l&&(this.type===T._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):b.init=null,a.declarations.push(this.finishNode(b,"VariableDeclarator")),!this.eat(T.comma))break}return a},oe.parseVarId=function(a,l){a.id=this.parseBindingAtom(),this.checkLVal(a.id,l==="var"?ba:zt,!1)};var Xi=1,Sa=2,Hc=4;oe.parseFunction=function(a,l,h,b){this.initFunction(a),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!b)&&(this.type===T.star&&l&Sa&&this.unexpected(),a.generator=this.eat(T.star)),this.options.ecmaVersion>=8&&(a.async=!!b),l&Xi&&(a.id=l&Hc&&this.type!==T.name?null:this.parseIdent(),a.id&&!(l&Sa)&&this.checkLVal(a.id,this.strict||a.generator||a.async?this.treatFunctionsAsVar?ba:zt:Jc));var C=this.yieldPos,B=this.awaitPos,R=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(li(a.async,a.generator)),l&Xi||(a.id=this.type===T.name?this.parseIdent():null),this.parseFunctionParams(a),this.parseFunctionBody(a,h,!1),this.yieldPos=C,this.awaitPos=B,this.awaitIdentPos=R,this.finishNode(a,l&Xi?"FunctionDeclaration":"FunctionExpression")},oe.parseFunctionParams=function(a){this.expect(T.parenL),a.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},oe.parseClass=function(a,l){this.next();var h=this.strict;this.strict=!0,this.parseClassId(a,l),this.parseClassSuper(a);var b=this.startNode(),C=!1;for(b.body=[],this.expect(T.braceL);this.type!==T.braceR;){var B=this.parseClassElement(a.superClass!==null);B&&(b.body.push(B),B.type==="MethodDefinition"&&B.kind==="constructor"&&(C&&this.raise(B.start,"Duplicate constructor in the same class"),C=!0))}return this.strict=h,this.next(),a.body=this.finishNode(b,"ClassBody"),this.finishNode(a,l?"ClassDeclaration":"ClassExpression")},oe.parseClassElement=function(a){var l=this;if(this.eat(T.semi))return null;var h=this.startNode(),b=function(Z,xe){xe===void 0&&(xe=!1);var De=l.start,He=l.startLoc;return l.eatContextual(Z)?l.type!==T.parenL&&(!xe||!l.canInsertSemicolon())?!0:(h.key&&l.unexpected(),h.computed=!1,h.key=l.startNodeAt(De,He),h.key.name=Z,l.finishNode(h.key,"Identifier"),!1):!1};h.kind="method",h.static=b("static");var C=this.eat(T.star),B=!1;C||(this.options.ecmaVersion>=8&&b("async",!0)?(B=!0,C=this.options.ecmaVersion>=9&&this.eat(T.star)):b("get")?h.kind="get":b("set")&&(h.kind="set")),h.key||this.parsePropertyName(h);var R=h.key,W=!1;return!h.computed&&!h.static&&(R.type==="Identifier"&&R.name==="constructor"||R.type==="Literal"&&R.value==="constructor")?(h.kind!=="method"&&this.raise(R.start,"Constructor can't have get/set modifier"),C&&this.raise(R.start,"Constructor can't be a generator"),B&&this.raise(R.start,"Constructor can't be an async method"),h.kind="constructor",W=a):h.static&&R.type==="Identifier"&&R.name==="prototype"&&this.raise(R.start,"Classes may not have a static property named prototype"),this.parseClassMethod(h,C,B,W),h.kind==="get"&&h.value.params.length!==0&&this.raiseRecoverable(h.value.start,"getter should have no params"),h.kind==="set"&&h.value.params.length!==1&&this.raiseRecoverable(h.value.start,"setter should have exactly one param"),h.kind==="set"&&h.value.params[0].type==="RestElement"&&this.raiseRecoverable(h.value.params[0].start,"Setter cannot use rest params"),h},oe.parseClassMethod=function(a,l,h,b){return a.value=this.parseMethod(l,h,b),this.finishNode(a,"MethodDefinition")},oe.parseClassId=function(a,l){this.type===T.name?(a.id=this.parseIdent(),l&&this.checkLVal(a.id,zt,!1)):(l===!0&&this.unexpected(),a.id=null)},oe.parseClassSuper=function(a){a.superClass=this.eat(T._extends)?this.parseExprSubscripts():null},oe.parseExport=function(a,l){if(this.next(),this.eat(T.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(a.exported=this.parseIdent(!0),this.checkExport(l,a.exported.name,this.lastTokStart)):a.exported=null),this.expectContextual("from"),this.type!==T.string&&this.unexpected(),a.source=this.parseExprAtom(),this.semicolon(),this.finishNode(a,"ExportAllDeclaration");if(this.eat(T._default)){this.checkExport(l,"default",this.lastTokStart);var h;if(this.type===T._function||(h=this.isAsyncFunction())){var b=this.startNode();this.next(),h&&this.next(),a.declaration=this.parseFunction(b,Xi|Hc,!1,h)}else if(this.type===T._class){var C=this.startNode();a.declaration=this.parseClass(C,"nullableID")}else a.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(a,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())a.declaration=this.parseStatement(null),a.declaration.type==="VariableDeclaration"?this.checkVariableExport(l,a.declaration.declarations):this.checkExport(l,a.declaration.id.name,a.declaration.id.start),a.specifiers=[],a.source=null;else{if(a.declaration=null,a.specifiers=this.parseExportSpecifiers(l),this.eatContextual("from"))this.type!==T.string&&this.unexpected(),a.source=this.parseExprAtom();else{for(var B=0,R=a.specifiers;B<R.length;B+=1){var W=R[B];this.checkUnreserved(W.local),this.checkLocalExport(W.local)}a.source=null}this.semicolon()}return this.finishNode(a,"ExportNamedDeclaration")},oe.checkExport=function(a,l,h){a&&(Oe(a,l)&&this.raiseRecoverable(h,"Duplicate export '"+l+"'"),a[l]=!0)},oe.checkPatternExport=function(a,l){var h=l.type;if(h==="Identifier")this.checkExport(a,l.name,l.start);else if(h==="ObjectPattern")for(var b=0,C=l.properties;b<C.length;b+=1){var B=C[b];this.checkPatternExport(a,B)}else if(h==="ArrayPattern")for(var R=0,W=l.elements;R<W.length;R+=1){var Z=W[R];Z&&this.checkPatternExport(a,Z)}else h==="Property"?this.checkPatternExport(a,l.value):h==="AssignmentPattern"?this.checkPatternExport(a,l.left):h==="RestElement"?this.checkPatternExport(a,l.argument):h==="ParenthesizedExpression"&&this.checkPatternExport(a,l.expression)},oe.checkVariableExport=function(a,l){if(a)for(var h=0,b=l;h<b.length;h+=1){var C=b[h];this.checkPatternExport(a,C.id)}},oe.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},oe.parseExportSpecifiers=function(a){var l=[],h=!0;for(this.expect(T.braceL);!this.eat(T.braceR);){if(h)h=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var b=this.startNode();b.local=this.parseIdent(!0),b.exported=this.eatContextual("as")?this.parseIdent(!0):b.local,this.checkExport(a,b.exported.name,b.exported.start),l.push(this.finishNode(b,"ExportSpecifier"))}return l},oe.parseImport=function(a){return this.next(),this.type===T.string?(a.specifiers=XT,a.source=this.parseExprAtom()):(a.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),a.source=this.type===T.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(a,"ImportDeclaration")},oe.parseImportSpecifiers=function(){var a=[],l=!0;if(this.type===T.name){var h=this.startNode();if(h.local=this.parseIdent(),this.checkLVal(h.local,zt),a.push(this.finishNode(h,"ImportDefaultSpecifier")),!this.eat(T.comma))return a}if(this.type===T.star){var b=this.startNode();return this.next(),this.expectContextual("as"),b.local=this.parseIdent(),this.checkLVal(b.local,zt),a.push(this.finishNode(b,"ImportNamespaceSpecifier")),a}for(this.expect(T.braceL);!this.eat(T.braceR);){if(l)l=!1;else if(this.expect(T.comma),this.afterTrailingComma(T.braceR))break;var C=this.startNode();C.imported=this.parseIdent(!0),this.eatContextual("as")?C.local=this.parseIdent():(this.checkUnreserved(C.imported),C.local=C.imported),this.checkLVal(C.local,zt),a.push(this.finishNode(C,"ImportSpecifier"))}return a},oe.adaptDirectivePrologue=function(a){for(var l=0;l<a.length&&this.isDirectiveCandidate(a[l]);++l)a[l].directive=a[l].expression.raw.slice(1,-1)},oe.isDirectiveCandidate=function(a){return a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"&&(this.input[a.start]==='"'||this.input[a.start]==="'")};var $t=Le.prototype;$t.toAssignable=function(a,l,h){if(this.options.ecmaVersion>=6&&a)switch(a.type){case"Identifier":this.inAsync&&a.name==="await"&&this.raise(a.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":a.type="ObjectPattern",h&&this.checkPatternErrors(h,!0);for(var b=0,C=a.properties;b<C.length;b+=1){var B=C[b];this.toAssignable(B,l),B.type==="RestElement"&&(B.argument.type==="ArrayPattern"||B.argument.type==="ObjectPattern")&&this.raise(B.argument.start,"Unexpected token")}break;case"Property":a.kind!=="init"&&this.raise(a.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(a.value,l);break;case"ArrayExpression":a.type="ArrayPattern",h&&this.checkPatternErrors(h,!0),this.toAssignableList(a.elements,l);break;case"SpreadElement":a.type="RestElement",this.toAssignable(a.argument,l),a.argument.type==="AssignmentPattern"&&this.raise(a.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":a.operator!=="="&&this.raise(a.left.end,"Only '=' operator can be used for specifying default value."),a.type="AssignmentPattern",delete a.operator,this.toAssignable(a.left,l);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(a.expression,l,h);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!l)break;default:this.raise(a.start,"Assigning to rvalue")}else h&&this.checkPatternErrors(h,!0);return a},$t.toAssignableList=function(a,l){for(var h=a.length,b=0;b<h;b++){var C=a[b];C&&this.toAssignable(C,l)}if(h){var B=a[h-1];this.options.ecmaVersion===6&&l&&B&&B.type==="RestElement"&&B.argument.type!=="Identifier"&&this.unexpected(B.argument.start)}return a},$t.parseSpread=function(a){var l=this.startNode();return this.next(),l.argument=this.parseMaybeAssign(!1,a),this.finishNode(l,"SpreadElement")},$t.parseRestBinding=function(){var a=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==T.name&&this.unexpected(),a.argument=this.parseBindingAtom(),this.finishNode(a,"RestElement")},$t.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case T.bracketL:var a=this.startNode();return this.next(),a.elements=this.parseBindingList(T.bracketR,!0,!0),this.finishNode(a,"ArrayPattern");case T.braceL:return this.parseObj(!0)}return this.parseIdent()},$t.parseBindingList=function(a,l,h){for(var b=[],C=!0;!this.eat(a);)if(C?C=!1:this.expect(T.comma),l&&this.type===T.comma)b.push(null);else{if(h&&this.afterTrailingComma(a))break;if(this.type===T.ellipsis){var B=this.parseRestBinding();this.parseBindingListItem(B),b.push(B),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(a);break}else{var R=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(R),b.push(R)}}return b},$t.parseBindingListItem=function(a){return a},$t.parseMaybeDefault=function(a,l,h){if(h=h||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(T.eq))return h;var b=this.startNodeAt(a,l);return b.left=h,b.right=this.parseMaybeAssign(),this.finishNode(b,"AssignmentPattern")},$t.checkLVal=function(a,l,h){switch(l===void 0&&(l=Wc),a.type){case"Identifier":l===zt&&a.name==="let"&&this.raiseRecoverable(a.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(a.name)&&this.raiseRecoverable(a.start,(l?"Binding ":"Assigning to ")+a.name+" in strict mode"),h&&(Oe(h,a.name)&&this.raiseRecoverable(a.start,"Argument name clash"),h[a.name]=!0),l!==Wc&&l!==$c&&this.declareName(a.name,l,a.start);break;case"ChainExpression":this.raiseRecoverable(a.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":l&&this.raiseRecoverable(a.start,"Binding member expression");break;case"ObjectPattern":for(var b=0,C=a.properties;b<C.length;b+=1){var B=C[b];this.checkLVal(B,l,h)}break;case"Property":this.checkLVal(a.value,l,h);break;case"ArrayPattern":for(var R=0,W=a.elements;R<W.length;R+=1){var Z=W[R];Z&&this.checkLVal(Z,l,h)}break;case"AssignmentPattern":this.checkLVal(a.left,l,h);break;case"RestElement":this.checkLVal(a.argument,l,h);break;case"ParenthesizedExpression":this.checkLVal(a.expression,l,h);break;default:this.raise(a.start,(l?"Binding":"Assigning to")+" rvalue")}};var fe=Le.prototype;fe.checkPropClash=function(a,l,h){if(!(this.options.ecmaVersion>=9&&a.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(a.computed||a.method||a.shorthand))){var b=a.key,C;switch(b.type){case"Identifier":C=b.name;break;case"Literal":C=String(b.value);break;default:return}var B=a.kind;if(this.options.ecmaVersion>=6){C==="__proto__"&&B==="init"&&(l.proto&&(h?h.doubleProto<0&&(h.doubleProto=b.start):this.raiseRecoverable(b.start,"Redefinition of __proto__ property")),l.proto=!0);return}C="$"+C;var R=l[C];if(R){var W;B==="init"?W=this.strict&&R.init||R.get||R.set:W=R.init||R[B],W&&this.raiseRecoverable(b.start,"Redefinition of property")}else R=l[C]={init:!1,get:!1,set:!1};R[B]=!0}},fe.parseExpression=function(a,l){var h=this.start,b=this.startLoc,C=this.parseMaybeAssign(a,l);if(this.type===T.comma){var B=this.startNodeAt(h,b);for(B.expressions=[C];this.eat(T.comma);)B.expressions.push(this.parseMaybeAssign(a,l));return this.finishNode(B,"SequenceExpression")}return C},fe.parseMaybeAssign=function(a,l,h){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(a);this.exprAllowed=!1}var b=!1,C=-1,B=-1;l?(C=l.parenthesizedAssign,B=l.trailingComma,l.parenthesizedAssign=l.trailingComma=-1):(l=new Ds,b=!0);var R=this.start,W=this.startLoc;(this.type===T.parenL||this.type===T.name)&&(this.potentialArrowAt=this.start);var Z=this.parseMaybeConditional(a,l);if(h&&(Z=h.call(this,Z,R,W)),this.type.isAssign){var xe=this.startNodeAt(R,W);return xe.operator=this.value,xe.left=this.type===T.eq?this.toAssignable(Z,!1,l):Z,b||(l.parenthesizedAssign=l.trailingComma=l.doubleProto=-1),l.shorthandAssign>=xe.left.start&&(l.shorthandAssign=-1),this.checkLVal(Z),this.next(),xe.right=this.parseMaybeAssign(a),this.finishNode(xe,"AssignmentExpression")}else b&&this.checkExpressionErrors(l,!0);return C>-1&&(l.parenthesizedAssign=C),B>-1&&(l.trailingComma=B),Z},fe.parseMaybeConditional=function(a,l){var h=this.start,b=this.startLoc,C=this.parseExprOps(a,l);if(this.checkExpressionErrors(l))return C;if(this.eat(T.question)){var B=this.startNodeAt(h,b);return B.test=C,B.consequent=this.parseMaybeAssign(),this.expect(T.colon),B.alternate=this.parseMaybeAssign(a),this.finishNode(B,"ConditionalExpression")}return C},fe.parseExprOps=function(a,l){var h=this.start,b=this.startLoc,C=this.parseMaybeUnary(l,!1);return this.checkExpressionErrors(l)||C.start===h&&C.type==="ArrowFunctionExpression"?C:this.parseExprOp(C,h,b,-1,a)},fe.parseExprOp=function(a,l,h,b,C){var B=this.type.binop;if(B!=null&&(!C||this.type!==T._in)&&B>b){var R=this.type===T.logicalOR||this.type===T.logicalAND,W=this.type===T.coalesce;W&&(B=T.logicalAND.binop);var Z=this.value;this.next();var xe=this.start,De=this.startLoc,He=this.parseExprOp(this.parseMaybeUnary(null,!1),xe,De,B,C),Or=this.buildBinary(l,h,a,He,Z,R||W);return(R&&this.type===T.coalesce||W&&(this.type===T.logicalOR||this.type===T.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Or,l,h,b,C)}return a},fe.buildBinary=function(a,l,h,b,C,B){var R=this.startNodeAt(a,l);return R.left=h,R.operator=C,R.right=b,this.finishNode(R,B?"LogicalExpression":"BinaryExpression")},fe.parseMaybeUnary=function(a,l){var h=this.start,b=this.startLoc,C;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))C=this.parseAwait(),l=!0;else if(this.type.prefix){var B=this.startNode(),R=this.type===T.incDec;B.operator=this.value,B.prefix=!0,this.next(),B.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(a,!0),R?this.checkLVal(B.argument):this.strict&&B.operator==="delete"&&B.argument.type==="Identifier"?this.raiseRecoverable(B.start,"Deleting local variable in strict mode"):l=!0,C=this.finishNode(B,R?"UpdateExpression":"UnaryExpression")}else{if(C=this.parseExprSubscripts(a),this.checkExpressionErrors(a))return C;for(;this.type.postfix&&!this.canInsertSemicolon();){var W=this.startNodeAt(h,b);W.operator=this.value,W.prefix=!1,W.argument=C,this.checkLVal(C),this.next(),C=this.finishNode(W,"UpdateExpression")}}return!l&&this.eat(T.starstar)?this.buildBinary(h,b,C,this.parseMaybeUnary(null,!1),"**",!1):C},fe.parseExprSubscripts=function(a){var l=this.start,h=this.startLoc,b=this.parseExprAtom(a);if(b.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return b;var C=this.parseSubscripts(b,l,h);return a&&C.type==="MemberExpression"&&(a.parenthesizedAssign>=C.start&&(a.parenthesizedAssign=-1),a.parenthesizedBind>=C.start&&(a.parenthesizedBind=-1)),C},fe.parseSubscripts=function(a,l,h,b){for(var C=this.options.ecmaVersion>=8&&a.type==="Identifier"&&a.name==="async"&&this.lastTokEnd===a.end&&!this.canInsertSemicolon()&&a.end-a.start===5&&this.potentialArrowAt===a.start,B=!1;;){var R=this.parseSubscript(a,l,h,b,C,B);if(R.optional&&(B=!0),R===a||R.type==="ArrowFunctionExpression"){if(B){var W=this.startNodeAt(l,h);W.expression=R,R=this.finishNode(W,"ChainExpression")}return R}a=R}},fe.parseSubscript=function(a,l,h,b,C,B){var R=this.options.ecmaVersion>=11,W=R&&this.eat(T.questionDot);b&&W&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Z=this.eat(T.bracketL);if(Z||W&&this.type!==T.parenL&&this.type!==T.backQuote||this.eat(T.dot)){var xe=this.startNodeAt(l,h);xe.object=a,xe.property=Z?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),xe.computed=!!Z,Z&&this.expect(T.bracketR),R&&(xe.optional=W),a=this.finishNode(xe,"MemberExpression")}else if(!b&&this.eat(T.parenL)){var De=new Ds,He=this.yieldPos,Or=this.awaitPos,ci=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Vs=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1,De);if(C&&!W&&!this.canInsertSemicolon()&&this.eat(T.arrow))return this.checkPatternErrors(De,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=He,this.awaitPos=Or,this.awaitIdentPos=ci,this.parseArrowExpression(this.startNodeAt(l,h),Vs,!0);this.checkExpressionErrors(De,!0),this.yieldPos=He||this.yieldPos,this.awaitPos=Or||this.awaitPos,this.awaitIdentPos=ci||this.awaitIdentPos;var pi=this.startNodeAt(l,h);pi.callee=a,pi.arguments=Vs,R&&(pi.optional=W),a=this.finishNode(pi,"CallExpression")}else if(this.type===T.backQuote){(W||B)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var fi=this.startNodeAt(l,h);fi.tag=a,fi.quasi=this.parseTemplate({isTagged:!0}),a=this.finishNode(fi,"TaggedTemplateExpression")}return a},fe.parseExprAtom=function(a){this.type===T.slash&&this.readRegexp();var l,h=this.potentialArrowAt===this.start;switch(this.type){case T._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),l=this.startNode(),this.next(),this.type===T.parenL&&!this.allowDirectSuper&&this.raise(l.start,"super() call outside constructor of a subclass"),this.type!==T.dot&&this.type!==T.bracketL&&this.type!==T.parenL&&this.unexpected(),this.finishNode(l,"Super");case T._this:return l=this.startNode(),this.next(),this.finishNode(l,"ThisExpression");case T.name:var b=this.start,C=this.startLoc,B=this.containsEsc,R=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!B&&R.name==="async"&&!this.canInsertSemicolon()&&this.eat(T._function))return this.parseFunction(this.startNodeAt(b,C),0,!1,!0);if(h&&!this.canInsertSemicolon()){if(this.eat(T.arrow))return this.parseArrowExpression(this.startNodeAt(b,C),[R],!1);if(this.options.ecmaVersion>=8&&R.name==="async"&&this.type===T.name&&!B)return R=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(T.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(b,C),[R],!0)}return R;case T.regexp:var W=this.value;return l=this.parseLiteral(W.value),l.regex={pattern:W.pattern,flags:W.flags},l;case T.num:case T.string:return this.parseLiteral(this.value);case T._null:case T._true:case T._false:return l=this.startNode(),l.value=this.type===T._null?null:this.type===T._true,l.raw=this.type.keyword,this.next(),this.finishNode(l,"Literal");case T.parenL:var Z=this.start,xe=this.parseParenAndDistinguishExpression(h);return a&&(a.parenthesizedAssign<0&&!this.isSimpleAssignTarget(xe)&&(a.parenthesizedAssign=Z),a.parenthesizedBind<0&&(a.parenthesizedBind=Z)),xe;case T.bracketL:return l=this.startNode(),this.next(),l.elements=this.parseExprList(T.bracketR,!0,!0,a),this.finishNode(l,"ArrayExpression");case T.braceL:return this.parseObj(!1,a);case T._function:return l=this.startNode(),this.next(),this.parseFunction(l,0);case T._class:return this.parseClass(this.startNode(),!1);case T._new:return this.parseNew();case T.backQuote:return this.parseTemplate();case T._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},fe.parseExprImport=function(){var a=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var l=this.parseIdent(!0);switch(this.type){case T.parenL:return this.parseDynamicImport(a);case T.dot:return a.meta=l,this.parseImportMeta(a);default:this.unexpected()}},fe.parseDynamicImport=function(a){if(this.next(),a.source=this.parseMaybeAssign(),!this.eat(T.parenR)){var l=this.start;this.eat(T.comma)&&this.eat(T.parenR)?this.raiseRecoverable(l,"Trailing comma is not allowed in import()"):this.unexpected(l)}return this.finishNode(a,"ImportExpression")},fe.parseImportMeta=function(a){this.next();var l=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="meta"&&this.raiseRecoverable(a.property.start,"The only valid meta property for import is 'import.meta'"),l&&this.raiseRecoverable(a.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(a.start,"Cannot use 'import.meta' outside a module"),this.finishNode(a,"MetaProperty")},fe.parseLiteral=function(a){var l=this.startNode();return l.value=a,l.raw=this.input.slice(this.start,this.end),l.raw.charCodeAt(l.raw.length-1)===110&&(l.bigint=l.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(l,"Literal")},fe.parseParenExpression=function(){this.expect(T.parenL);var a=this.parseExpression();return this.expect(T.parenR),a},fe.parseParenAndDistinguishExpression=function(a){var l=this.start,h=this.startLoc,b,C=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var B=this.start,R=this.startLoc,W=[],Z=!0,xe=!1,De=new Ds,He=this.yieldPos,Or=this.awaitPos,ci;for(this.yieldPos=0,this.awaitPos=0;this.type!==T.parenR;)if(Z?Z=!1:this.expect(T.comma),C&&this.afterTrailingComma(T.parenR,!0)){xe=!0;break}else if(this.type===T.ellipsis){ci=this.start,W.push(this.parseParenItem(this.parseRestBinding())),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else W.push(this.parseMaybeAssign(!1,De,this.parseParenItem));var Vs=this.start,pi=this.startLoc;if(this.expect(T.parenR),a&&!this.canInsertSemicolon()&&this.eat(T.arrow))return this.checkPatternErrors(De,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=He,this.awaitPos=Or,this.parseParenArrowList(l,h,W);(!W.length||xe)&&this.unexpected(this.lastTokStart),ci&&this.unexpected(ci),this.checkExpressionErrors(De,!0),this.yieldPos=He||this.yieldPos,this.awaitPos=Or||this.awaitPos,W.length>1?(b=this.startNodeAt(B,R),b.expressions=W,this.finishNodeAt(b,"SequenceExpression",Vs,pi)):b=W[0]}else b=this.parseParenExpression();if(this.options.preserveParens){var fi=this.startNodeAt(l,h);return fi.expression=b,this.finishNode(fi,"ParenthesizedExpression")}else return b},fe.parseParenItem=function(a){return a},fe.parseParenArrowList=function(a,l,h){return this.parseArrowExpression(this.startNodeAt(a,l),h)};var WT=[];fe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var a=this.startNode(),l=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(T.dot)){a.meta=l;var h=this.containsEsc;return a.property=this.parseIdent(!0),a.property.name!=="target"&&this.raiseRecoverable(a.property.start,"The only valid meta property for new is 'new.target'"),h&&this.raiseRecoverable(a.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(a.start,"'new.target' can only be used in functions"),this.finishNode(a,"MetaProperty")}var b=this.start,C=this.startLoc,B=this.type===T._import;return a.callee=this.parseSubscripts(this.parseExprAtom(),b,C,!0),B&&a.callee.type==="ImportExpression"&&this.raise(b,"Cannot use new with import()"),this.eat(T.parenL)?a.arguments=this.parseExprList(T.parenR,this.options.ecmaVersion>=8,!1):a.arguments=WT,this.finishNode(a,"NewExpression")},fe.parseTemplateElement=function(a){var l=a.isTagged,h=this.startNode();return this.type===T.invalidTemplate?(l||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),h.value={raw:this.value,cooked:null}):h.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
14
|
+
`),cooked:this.value},this.next(),h.tail=this.type===T.backQuote,this.finishNode(h,"TemplateElement")},fe.parseTemplate=function(a){a===void 0&&(a={});var l=a.isTagged;l===void 0&&(l=!1);var h=this.startNode();this.next(),h.expressions=[];var b=this.parseTemplateElement({isTagged:l});for(h.quasis=[b];!b.tail;)this.type===T.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(T.dollarBraceL),h.expressions.push(this.parseExpression()),this.expect(T.braceR),h.quasis.push(b=this.parseTemplateElement({isTagged:l}));return this.next(),this.finishNode(h,"TemplateLiteral")},fe.isAsyncProp=function(a){return!a.computed&&a.key.type==="Identifier"&&a.key.name==="async"&&(this.type===T.name||this.type===T.num||this.type===T.string||this.type===T.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===T.star)&&!Me.test(this.input.slice(this.lastTokEnd,this.start))},fe.parseObj=function(a,l){var h=this.startNode(),b=!0,C={};for(h.properties=[],this.next();!this.eat(T.braceR);){if(b)b=!1;else if(this.expect(T.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(T.braceR))break;var B=this.parseProperty(a,l);a||this.checkPropClash(B,C,l),h.properties.push(B)}return this.finishNode(h,a?"ObjectPattern":"ObjectExpression")},fe.parseProperty=function(a,l){var h=this.startNode(),b,C,B,R;if(this.options.ecmaVersion>=9&&this.eat(T.ellipsis))return a?(h.argument=this.parseIdent(!1),this.type===T.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(h,"RestElement")):(this.type===T.parenL&&l&&(l.parenthesizedAssign<0&&(l.parenthesizedAssign=this.start),l.parenthesizedBind<0&&(l.parenthesizedBind=this.start)),h.argument=this.parseMaybeAssign(!1,l),this.type===T.comma&&l&&l.trailingComma<0&&(l.trailingComma=this.start),this.finishNode(h,"SpreadElement"));this.options.ecmaVersion>=6&&(h.method=!1,h.shorthand=!1,(a||l)&&(B=this.start,R=this.startLoc),a||(b=this.eat(T.star)));var W=this.containsEsc;return this.parsePropertyName(h),!a&&!W&&this.options.ecmaVersion>=8&&!b&&this.isAsyncProp(h)?(C=!0,b=this.options.ecmaVersion>=9&&this.eat(T.star),this.parsePropertyName(h,l)):C=!1,this.parsePropertyValue(h,a,b,C,B,R,l,W),this.finishNode(h,"Property")},fe.parsePropertyValue=function(a,l,h,b,C,B,R,W){if((h||b)&&this.type===T.colon&&this.unexpected(),this.eat(T.colon))a.value=l?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,R),a.kind="init";else if(this.options.ecmaVersion>=6&&this.type===T.parenL)l&&this.unexpected(),a.kind="init",a.method=!0,a.value=this.parseMethod(h,b);else if(!l&&!W&&this.options.ecmaVersion>=5&&!a.computed&&a.key.type==="Identifier"&&(a.key.name==="get"||a.key.name==="set")&&this.type!==T.comma&&this.type!==T.braceR&&this.type!==T.eq){(h||b)&&this.unexpected(),a.kind=a.key.name,this.parsePropertyName(a),a.value=this.parseMethod(!1);var Z=a.kind==="get"?0:1;if(a.value.params.length!==Z){var xe=a.value.start;a.kind==="get"?this.raiseRecoverable(xe,"getter should have no params"):this.raiseRecoverable(xe,"setter should have exactly one param")}else a.kind==="set"&&a.value.params[0].type==="RestElement"&&this.raiseRecoverable(a.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!a.computed&&a.key.type==="Identifier"?((h||b)&&this.unexpected(),this.checkUnreserved(a.key),a.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=C),a.kind="init",l?a.value=this.parseMaybeDefault(C,B,a.key):this.type===T.eq&&R?(R.shorthandAssign<0&&(R.shorthandAssign=this.start),a.value=this.parseMaybeDefault(C,B,a.key)):a.value=a.key,a.shorthand=!0):this.unexpected()},fe.parsePropertyName=function(a){if(this.options.ecmaVersion>=6){if(this.eat(T.bracketL))return a.computed=!0,a.key=this.parseMaybeAssign(),this.expect(T.bracketR),a.key;a.computed=!1}return a.key=this.type===T.num||this.type===T.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},fe.initFunction=function(a){a.id=null,this.options.ecmaVersion>=6&&(a.generator=a.expression=!1),this.options.ecmaVersion>=8&&(a.async=!1)},fe.parseMethod=function(a,l,h){var b=this.startNode(),C=this.yieldPos,B=this.awaitPos,R=this.awaitIdentPos;return this.initFunction(b),this.options.ecmaVersion>=6&&(b.generator=a),this.options.ecmaVersion>=8&&(b.async=!!l),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(li(l,b.generator)|Nr|(h?fr:0)),this.expect(T.parenL),b.params=this.parseBindingList(T.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(b,!1,!0),this.yieldPos=C,this.awaitPos=B,this.awaitIdentPos=R,this.finishNode(b,"FunctionExpression")},fe.parseArrowExpression=function(a,l,h){var b=this.yieldPos,C=this.awaitPos,B=this.awaitIdentPos;return this.enterScope(li(h,!1)|bt),this.initFunction(a),this.options.ecmaVersion>=8&&(a.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,a.params=this.toAssignableList(l,!0),this.parseFunctionBody(a,!0,!1),this.yieldPos=b,this.awaitPos=C,this.awaitIdentPos=B,this.finishNode(a,"ArrowFunctionExpression")},fe.parseFunctionBody=function(a,l,h){var b=l&&this.type!==T.braceL,C=this.strict,B=!1;if(b)a.body=this.parseMaybeAssign(),a.expression=!0,this.checkParams(a,!1);else{var R=this.options.ecmaVersion>=7&&!this.isSimpleParamList(a.params);(!C||R)&&(B=this.strictDirective(this.end),B&&R&&this.raiseRecoverable(a.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var W=this.labels;this.labels=[],B&&(this.strict=!0),this.checkParams(a,!C&&!B&&!l&&!h&&this.isSimpleParamList(a.params)),this.strict&&a.id&&this.checkLVal(a.id,$c),a.body=this.parseBlock(!1,void 0,B&&!C),a.expression=!1,this.adaptDirectivePrologue(a.body.body),this.labels=W}this.exitScope()},fe.isSimpleParamList=function(a){for(var l=0,h=a;l<h.length;l+=1){var b=h[l];if(b.type!=="Identifier")return!1}return!0},fe.checkParams=function(a,l){for(var h={},b=0,C=a.params;b<C.length;b+=1){var B=C[b];this.checkLVal(B,ba,l?null:h)}},fe.parseExprList=function(a,l,h,b){for(var C=[],B=!0;!this.eat(a);){if(B)B=!1;else if(this.expect(T.comma),l&&this.afterTrailingComma(a))break;var R=void 0;h&&this.type===T.comma?R=null:this.type===T.ellipsis?(R=this.parseSpread(b),b&&this.type===T.comma&&b.trailingComma<0&&(b.trailingComma=this.start)):R=this.parseMaybeAssign(!1,b),C.push(R)}return C},fe.checkUnreserved=function(a){var l=a.start,h=a.end,b=a.name;if(this.inGenerator&&b==="yield"&&this.raiseRecoverable(l,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&b==="await"&&this.raiseRecoverable(l,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(b)&&this.raise(l,"Unexpected keyword '"+b+"'"),!(this.options.ecmaVersion<6&&this.input.slice(l,h).indexOf("\\")!==-1)){var C=this.strict?this.reservedWordsStrict:this.reservedWords;C.test(b)&&(!this.inAsync&&b==="await"&&this.raiseRecoverable(l,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(l,"The keyword '"+b+"' is reserved"))}},fe.parseIdent=function(a,l){var h=this.startNode();return this.type===T.name?h.name=this.value:this.type.keyword?(h.name=this.type.keyword,(h.name==="class"||h.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!a),this.finishNode(h,"Identifier"),a||(this.checkUnreserved(h),h.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=h.start)),h},fe.parseYield=function(a){this.yieldPos||(this.yieldPos=this.start);var l=this.startNode();return this.next(),this.type===T.semi||this.canInsertSemicolon()||this.type!==T.star&&!this.type.startsExpr?(l.delegate=!1,l.argument=null):(l.delegate=this.eat(T.star),l.argument=this.parseMaybeAssign(a)),this.finishNode(l,"YieldExpression")},fe.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var a=this.startNode();return this.next(),a.argument=this.parseMaybeUnary(null,!1),this.finishNode(a,"AwaitExpression")};var Ls=Le.prototype;Ls.raise=function(a,l){var h=ke(this.input,a);l+=" ("+h.line+":"+h.column+")";var b=new SyntaxError(l);throw b.pos=a,b.loc=h,b.raisedAt=this.pos,b},Ls.raiseRecoverable=Ls.raise,Ls.curPosition=function(){if(this.options.locations)return new Ve(this.curLine,this.pos-this.lineStart)};var hr=Le.prototype,JT=function(l){this.flags=l,this.var=[],this.lexical=[],this.functions=[]};hr.enterScope=function(a){this.scopeStack.push(new JT(a))},hr.exitScope=function(){this.scopeStack.pop()},hr.treatFunctionsAsVarInScope=function(a){return a.flags&Fe||!this.inModule&&a.flags&$e},hr.declareName=function(a,l,h){var b=!1;if(l===zt){var C=this.currentScope();b=C.lexical.indexOf(a)>-1||C.functions.indexOf(a)>-1||C.var.indexOf(a)>-1,C.lexical.push(a),this.inModule&&C.flags&$e&&delete this.undefinedExports[a]}else if(l===zc){var B=this.currentScope();B.lexical.push(a)}else if(l===Jc){var R=this.currentScope();this.treatFunctionsAsVar?b=R.lexical.indexOf(a)>-1:b=R.lexical.indexOf(a)>-1||R.var.indexOf(a)>-1,R.functions.push(a)}else for(var W=this.scopeStack.length-1;W>=0;--W){var Z=this.scopeStack[W];if(Z.lexical.indexOf(a)>-1&&!(Z.flags&Cr&&Z.lexical[0]===a)||!this.treatFunctionsAsVarInScope(Z)&&Z.functions.indexOf(a)>-1){b=!0;break}if(Z.var.push(a),this.inModule&&Z.flags&$e&&delete this.undefinedExports[a],Z.flags&pr)break}b&&this.raiseRecoverable(h,"Identifier '"+a+"' has already been declared")},hr.checkLocalExport=function(a){this.scopeStack[0].lexical.indexOf(a.name)===-1&&this.scopeStack[0].var.indexOf(a.name)===-1&&(this.undefinedExports[a.name]=a)},hr.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},hr.currentVarScope=function(){for(var a=this.scopeStack.length-1;;a--){var l=this.scopeStack[a];if(l.flags&pr)return l}},hr.currentThisScope=function(){for(var a=this.scopeStack.length-1;;a--){var l=this.scopeStack[a];if(l.flags&pr&&!(l.flags&bt))return l}};var Ms=function(l,h,b){this.type="",this.start=h,this.end=0,l.options.locations&&(this.loc=new Ie(l,b)),l.options.directSourceFile&&(this.sourceFile=l.options.directSourceFile),l.options.ranges&&(this.range=[h,0])},Fs=Le.prototype;Fs.startNode=function(){return new Ms(this,this.start,this.startLoc)},Fs.startNodeAt=function(a,l){return new Ms(this,a,l)};function Gc(a,l,h,b){return a.type=l,a.end=h,this.options.locations&&(a.loc.end=b),this.options.ranges&&(a.range[1]=h),a}Fs.finishNode=function(a,l){return Gc.call(this,a,l,this.lastTokEnd,this.lastTokEndLoc)},Fs.finishNodeAt=function(a,l,h,b){return Gc.call(this,a,l,h,b)};var gt=function(l,h,b,C,B){this.token=l,this.isExpr=!!h,this.preserveSpace=!!b,this.override=C,this.generator=!!B},Be={b_stat:new gt("{",!1),b_expr:new gt("{",!0),b_tmpl:new gt("${",!1),p_stat:new gt("(",!1),p_expr:new gt("(",!0),q_tmpl:new gt("`",!0,!0,function(a){return a.tryReadTemplateToken()}),f_stat:new gt("function",!1),f_expr:new gt("function",!0),f_expr_gen:new gt("function",!0,!1,null,!0),f_gen:new gt("function",!1,!1,null,!0)},Bs=Le.prototype;Bs.initialContext=function(){return[Be.b_stat]},Bs.braceIsBlock=function(a){var l=this.curContext();return l===Be.f_expr||l===Be.f_stat?!0:a===T.colon&&(l===Be.b_stat||l===Be.b_expr)?!l.isExpr:a===T._return||a===T.name&&this.exprAllowed?Me.test(this.input.slice(this.lastTokEnd,this.start)):a===T._else||a===T.semi||a===T.eof||a===T.parenR||a===T.arrow?!0:a===T.braceL?l===Be.b_stat:a===T._var||a===T._const||a===T.name?!1:!this.exprAllowed},Bs.inGeneratorContext=function(){for(var a=this.context.length-1;a>=1;a--){var l=this.context[a];if(l.token==="function")return l.generator}return!1},Bs.updateContext=function(a){var l,h=this.type;h.keyword&&a===T.dot?this.exprAllowed=!1:(l=h.updateContext)?l.call(this,a):this.exprAllowed=h.beforeExpr},T.parenR.updateContext=T.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var a=this.context.pop();a===Be.b_stat&&this.curContext().token==="function"&&(a=this.context.pop()),this.exprAllowed=!a.isExpr},T.braceL.updateContext=function(a){this.context.push(this.braceIsBlock(a)?Be.b_stat:Be.b_expr),this.exprAllowed=!0},T.dollarBraceL.updateContext=function(){this.context.push(Be.b_tmpl),this.exprAllowed=!0},T.parenL.updateContext=function(a){var l=a===T._if||a===T._for||a===T._with||a===T._while;this.context.push(l?Be.p_stat:Be.p_expr),this.exprAllowed=!0},T.incDec.updateContext=function(){},T._function.updateContext=T._class.updateContext=function(a){a.beforeExpr&&a!==T.semi&&a!==T._else&&!(a===T._return&&Me.test(this.input.slice(this.lastTokEnd,this.start)))&&!((a===T.colon||a===T.braceL)&&this.curContext()===Be.b_stat)?this.context.push(Be.f_expr):this.context.push(Be.f_stat),this.exprAllowed=!1},T.backQuote.updateContext=function(){this.curContext()===Be.q_tmpl?this.context.pop():this.context.push(Be.q_tmpl),this.exprAllowed=!1},T.star.updateContext=function(a){if(a===T._function){var l=this.context.length-1;this.context[l]===Be.f_expr?this.context[l]=Be.f_expr_gen:this.context[l]=Be.f_gen}this.exprAllowed=!0},T.name.updateContext=function(a){var l=!1;this.options.ecmaVersion>=6&&a!==T.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(l=!0),this.exprAllowed=l};var Qc="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Zc=Qc+" Extended_Pictographic",zT=Zc,$T={9:Qc,10:Zc,11:zT},ep="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",tp="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",rp=tp+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",HT=rp+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",GT={9:tp,10:rp,11:HT},ip={};function Ea(a){var l=ip[a]={binary:Ae($T[a]+" "+ep),nonBinary:{General_Category:Ae(ep),Script:Ae(GT[a])}};l.nonBinary.Script_Extensions=l.nonBinary.Script,l.nonBinary.gc=l.nonBinary.General_Category,l.nonBinary.sc=l.nonBinary.Script,l.nonBinary.scx=l.nonBinary.Script_Extensions}Ea(9),Ea(10),Ea(11);var re=Le.prototype,Ht=function(l){this.parser=l,this.validFlags="gim"+(l.options.ecmaVersion>=6?"uy":"")+(l.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ip[l.options.ecmaVersion>=11?11:l.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ht.prototype.reset=function(l,h,b){var C=b.indexOf("u")!==-1;this.start=l|0,this.source=h+"",this.flags=b,this.switchU=C&&this.parser.options.ecmaVersion>=6,this.switchN=C&&this.parser.options.ecmaVersion>=9},Ht.prototype.raise=function(l){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+l)},Ht.prototype.at=function(l,h){h===void 0&&(h=!1);var b=this.source,C=b.length;if(l>=C)return-1;var B=b.charCodeAt(l);if(!(h||this.switchU)||B<=55295||B>=57344||l+1>=C)return B;var R=b.charCodeAt(l+1);return R>=56320&&R<=57343?(B<<10)+R-56613888:B},Ht.prototype.nextIndex=function(l,h){h===void 0&&(h=!1);var b=this.source,C=b.length;if(l>=C)return C;var B=b.charCodeAt(l),R;return!(h||this.switchU)||B<=55295||B>=57344||l+1>=C||(R=b.charCodeAt(l+1))<56320||R>57343?l+1:l+2},Ht.prototype.current=function(l){return l===void 0&&(l=!1),this.at(this.pos,l)},Ht.prototype.lookahead=function(l){return l===void 0&&(l=!1),this.at(this.nextIndex(this.pos,l),l)},Ht.prototype.advance=function(l){l===void 0&&(l=!1),this.pos=this.nextIndex(this.pos,l)},Ht.prototype.eat=function(l,h){return h===void 0&&(h=!1),this.current(h)===l?(this.advance(h),!0):!1};function Rs(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}re.validateRegExpFlags=function(a){for(var l=a.validFlags,h=a.flags,b=0;b<h.length;b++){var C=h.charAt(b);l.indexOf(C)===-1&&this.raise(a.start,"Invalid regular expression flag"),h.indexOf(C,b+1)>-1&&this.raise(a.start,"Duplicate regular expression flag")}},re.validateRegExpPattern=function(a){this.regexp_pattern(a),!a.switchN&&this.options.ecmaVersion>=9&&a.groupNames.length>0&&(a.switchN=!0,this.regexp_pattern(a))},re.regexp_pattern=function(a){a.pos=0,a.lastIntValue=0,a.lastStringValue="",a.lastAssertionIsQuantifiable=!1,a.numCapturingParens=0,a.maxBackReference=0,a.groupNames.length=0,a.backReferenceNames.length=0,this.regexp_disjunction(a),a.pos!==a.source.length&&(a.eat(41)&&a.raise("Unmatched ')'"),(a.eat(93)||a.eat(125))&&a.raise("Lone quantifier brackets")),a.maxBackReference>a.numCapturingParens&&a.raise("Invalid escape");for(var l=0,h=a.backReferenceNames;l<h.length;l+=1){var b=h[l];a.groupNames.indexOf(b)===-1&&a.raise("Invalid named capture referenced")}},re.regexp_disjunction=function(a){for(this.regexp_alternative(a);a.eat(124);)this.regexp_alternative(a);this.regexp_eatQuantifier(a,!0)&&a.raise("Nothing to repeat"),a.eat(123)&&a.raise("Lone quantifier brackets")},re.regexp_alternative=function(a){for(;a.pos<a.source.length&&this.regexp_eatTerm(a););},re.regexp_eatTerm=function(a){return this.regexp_eatAssertion(a)?(a.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(a)&&a.switchU&&a.raise("Invalid quantifier"),!0):(a.switchU?this.regexp_eatAtom(a):this.regexp_eatExtendedAtom(a))?(this.regexp_eatQuantifier(a),!0):!1},re.regexp_eatAssertion=function(a){var l=a.pos;if(a.lastAssertionIsQuantifiable=!1,a.eat(94)||a.eat(36))return!0;if(a.eat(92)){if(a.eat(66)||a.eat(98))return!0;a.pos=l}if(a.eat(40)&&a.eat(63)){var h=!1;if(this.options.ecmaVersion>=9&&(h=a.eat(60)),a.eat(61)||a.eat(33))return this.regexp_disjunction(a),a.eat(41)||a.raise("Unterminated group"),a.lastAssertionIsQuantifiable=!h,!0}return a.pos=l,!1},re.regexp_eatQuantifier=function(a,l){return l===void 0&&(l=!1),this.regexp_eatQuantifierPrefix(a,l)?(a.eat(63),!0):!1},re.regexp_eatQuantifierPrefix=function(a,l){return a.eat(42)||a.eat(43)||a.eat(63)||this.regexp_eatBracedQuantifier(a,l)},re.regexp_eatBracedQuantifier=function(a,l){var h=a.pos;if(a.eat(123)){var b=0,C=-1;if(this.regexp_eatDecimalDigits(a)&&(b=a.lastIntValue,a.eat(44)&&this.regexp_eatDecimalDigits(a)&&(C=a.lastIntValue),a.eat(125)))return C!==-1&&C<b&&!l&&a.raise("numbers out of order in {} quantifier"),!0;a.switchU&&!l&&a.raise("Incomplete quantifier"),a.pos=h}return!1},re.regexp_eatAtom=function(a){return this.regexp_eatPatternCharacters(a)||a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)},re.regexp_eatReverseSolidusAtomEscape=function(a){var l=a.pos;if(a.eat(92)){if(this.regexp_eatAtomEscape(a))return!0;a.pos=l}return!1},re.regexp_eatUncapturingGroup=function(a){var l=a.pos;if(a.eat(40)){if(a.eat(63)&&a.eat(58)){if(this.regexp_disjunction(a),a.eat(41))return!0;a.raise("Unterminated group")}a.pos=l}return!1},re.regexp_eatCapturingGroup=function(a){if(a.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(a):a.current()===63&&a.raise("Invalid group"),this.regexp_disjunction(a),a.eat(41))return a.numCapturingParens+=1,!0;a.raise("Unterminated group")}return!1},re.regexp_eatExtendedAtom=function(a){return a.eat(46)||this.regexp_eatReverseSolidusAtomEscape(a)||this.regexp_eatCharacterClass(a)||this.regexp_eatUncapturingGroup(a)||this.regexp_eatCapturingGroup(a)||this.regexp_eatInvalidBracedQuantifier(a)||this.regexp_eatExtendedPatternCharacter(a)},re.regexp_eatInvalidBracedQuantifier=function(a){return this.regexp_eatBracedQuantifier(a,!0)&&a.raise("Nothing to repeat"),!1},re.regexp_eatSyntaxCharacter=function(a){var l=a.current();return sp(l)?(a.lastIntValue=l,a.advance(),!0):!1};function sp(a){return a===36||a>=40&&a<=43||a===46||a===63||a>=91&&a<=94||a>=123&&a<=125}re.regexp_eatPatternCharacters=function(a){for(var l=a.pos,h=0;(h=a.current())!==-1&&!sp(h);)a.advance();return a.pos!==l},re.regexp_eatExtendedPatternCharacter=function(a){var l=a.current();return l!==-1&&l!==36&&!(l>=40&&l<=43)&&l!==46&&l!==63&&l!==91&&l!==94&&l!==124?(a.advance(),!0):!1},re.regexp_groupSpecifier=function(a){if(a.eat(63)){if(this.regexp_eatGroupName(a)){a.groupNames.indexOf(a.lastStringValue)!==-1&&a.raise("Duplicate capture group name"),a.groupNames.push(a.lastStringValue);return}a.raise("Invalid group")}},re.regexp_eatGroupName=function(a){if(a.lastStringValue="",a.eat(60)){if(this.regexp_eatRegExpIdentifierName(a)&&a.eat(62))return!0;a.raise("Invalid capture group name")}return!1},re.regexp_eatRegExpIdentifierName=function(a){if(a.lastStringValue="",this.regexp_eatRegExpIdentifierStart(a)){for(a.lastStringValue+=Rs(a.lastIntValue);this.regexp_eatRegExpIdentifierPart(a);)a.lastStringValue+=Rs(a.lastIntValue);return!0}return!1},re.regexp_eatRegExpIdentifierStart=function(a){var l=a.pos,h=this.options.ecmaVersion>=11,b=a.current(h);return a.advance(h),b===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,h)&&(b=a.lastIntValue),QT(b)?(a.lastIntValue=b,!0):(a.pos=l,!1)};function QT(a){return k(a,!0)||a===36||a===95}re.regexp_eatRegExpIdentifierPart=function(a){var l=a.pos,h=this.options.ecmaVersion>=11,b=a.current(h);return a.advance(h),b===92&&this.regexp_eatRegExpUnicodeEscapeSequence(a,h)&&(b=a.lastIntValue),ZT(b)?(a.lastIntValue=b,!0):(a.pos=l,!1)};function ZT(a){return D(a,!0)||a===36||a===95||a===8204||a===8205}re.regexp_eatAtomEscape=function(a){return this.regexp_eatBackReference(a)||this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)||a.switchN&&this.regexp_eatKGroupName(a)?!0:(a.switchU&&(a.current()===99&&a.raise("Invalid unicode escape"),a.raise("Invalid escape")),!1)},re.regexp_eatBackReference=function(a){var l=a.pos;if(this.regexp_eatDecimalEscape(a)){var h=a.lastIntValue;if(a.switchU)return h>a.maxBackReference&&(a.maxBackReference=h),!0;if(h<=a.numCapturingParens)return!0;a.pos=l}return!1},re.regexp_eatKGroupName=function(a){if(a.eat(107)){if(this.regexp_eatGroupName(a))return a.backReferenceNames.push(a.lastStringValue),!0;a.raise("Invalid named reference")}return!1},re.regexp_eatCharacterEscape=function(a){return this.regexp_eatControlEscape(a)||this.regexp_eatCControlLetter(a)||this.regexp_eatZero(a)||this.regexp_eatHexEscapeSequence(a)||this.regexp_eatRegExpUnicodeEscapeSequence(a,!1)||!a.switchU&&this.regexp_eatLegacyOctalEscapeSequence(a)||this.regexp_eatIdentityEscape(a)},re.regexp_eatCControlLetter=function(a){var l=a.pos;if(a.eat(99)){if(this.regexp_eatControlLetter(a))return!0;a.pos=l}return!1},re.regexp_eatZero=function(a){return a.current()===48&&!js(a.lookahead())?(a.lastIntValue=0,a.advance(),!0):!1},re.regexp_eatControlEscape=function(a){var l=a.current();return l===116?(a.lastIntValue=9,a.advance(),!0):l===110?(a.lastIntValue=10,a.advance(),!0):l===118?(a.lastIntValue=11,a.advance(),!0):l===102?(a.lastIntValue=12,a.advance(),!0):l===114?(a.lastIntValue=13,a.advance(),!0):!1},re.regexp_eatControlLetter=function(a){var l=a.current();return np(l)?(a.lastIntValue=l%32,a.advance(),!0):!1};function np(a){return a>=65&&a<=90||a>=97&&a<=122}re.regexp_eatRegExpUnicodeEscapeSequence=function(a,l){l===void 0&&(l=!1);var h=a.pos,b=l||a.switchU;if(a.eat(117)){if(this.regexp_eatFixedHexDigits(a,4)){var C=a.lastIntValue;if(b&&C>=55296&&C<=56319){var B=a.pos;if(a.eat(92)&&a.eat(117)&&this.regexp_eatFixedHexDigits(a,4)){var R=a.lastIntValue;if(R>=56320&&R<=57343)return a.lastIntValue=(C-55296)*1024+(R-56320)+65536,!0}a.pos=B,a.lastIntValue=C}return!0}if(b&&a.eat(123)&&this.regexp_eatHexDigits(a)&&a.eat(125)&&ex(a.lastIntValue))return!0;b&&a.raise("Invalid unicode escape"),a.pos=h}return!1};function ex(a){return a>=0&&a<=1114111}re.regexp_eatIdentityEscape=function(a){if(a.switchU)return this.regexp_eatSyntaxCharacter(a)?!0:a.eat(47)?(a.lastIntValue=47,!0):!1;var l=a.current();return l!==99&&(!a.switchN||l!==107)?(a.lastIntValue=l,a.advance(),!0):!1},re.regexp_eatDecimalEscape=function(a){a.lastIntValue=0;var l=a.current();if(l>=49&&l<=57){do a.lastIntValue=10*a.lastIntValue+(l-48),a.advance();while((l=a.current())>=48&&l<=57);return!0}return!1},re.regexp_eatCharacterClassEscape=function(a){var l=a.current();if(tx(l))return a.lastIntValue=-1,a.advance(),!0;if(a.switchU&&this.options.ecmaVersion>=9&&(l===80||l===112)){if(a.lastIntValue=-1,a.advance(),a.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(a)&&a.eat(125))return!0;a.raise("Invalid property name")}return!1};function tx(a){return a===100||a===68||a===115||a===83||a===119||a===87}re.regexp_eatUnicodePropertyValueExpression=function(a){var l=a.pos;if(this.regexp_eatUnicodePropertyName(a)&&a.eat(61)){var h=a.lastStringValue;if(this.regexp_eatUnicodePropertyValue(a)){var b=a.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(a,h,b),!0}}if(a.pos=l,this.regexp_eatLoneUnicodePropertyNameOrValue(a)){var C=a.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(a,C),!0}return!1},re.regexp_validateUnicodePropertyNameAndValue=function(a,l,h){Oe(a.unicodeProperties.nonBinary,l)||a.raise("Invalid property name"),a.unicodeProperties.nonBinary[l].test(h)||a.raise("Invalid property value")},re.regexp_validateUnicodePropertyNameOrValue=function(a,l){a.unicodeProperties.binary.test(l)||a.raise("Invalid property name")},re.regexp_eatUnicodePropertyName=function(a){var l=0;for(a.lastStringValue="";ap(l=a.current());)a.lastStringValue+=Rs(l),a.advance();return a.lastStringValue!==""};function ap(a){return np(a)||a===95}re.regexp_eatUnicodePropertyValue=function(a){var l=0;for(a.lastStringValue="";rx(l=a.current());)a.lastStringValue+=Rs(l),a.advance();return a.lastStringValue!==""};function rx(a){return ap(a)||js(a)}re.regexp_eatLoneUnicodePropertyNameOrValue=function(a){return this.regexp_eatUnicodePropertyValue(a)},re.regexp_eatCharacterClass=function(a){if(a.eat(91)){if(a.eat(94),this.regexp_classRanges(a),a.eat(93))return!0;a.raise("Unterminated character class")}return!1},re.regexp_classRanges=function(a){for(;this.regexp_eatClassAtom(a);){var l=a.lastIntValue;if(a.eat(45)&&this.regexp_eatClassAtom(a)){var h=a.lastIntValue;a.switchU&&(l===-1||h===-1)&&a.raise("Invalid character class"),l!==-1&&h!==-1&&l>h&&a.raise("Range out of order in character class")}}},re.regexp_eatClassAtom=function(a){var l=a.pos;if(a.eat(92)){if(this.regexp_eatClassEscape(a))return!0;if(a.switchU){var h=a.current();(h===99||lp(h))&&a.raise("Invalid class escape"),a.raise("Invalid escape")}a.pos=l}var b=a.current();return b!==93?(a.lastIntValue=b,a.advance(),!0):!1},re.regexp_eatClassEscape=function(a){var l=a.pos;if(a.eat(98))return a.lastIntValue=8,!0;if(a.switchU&&a.eat(45))return a.lastIntValue=45,!0;if(!a.switchU&&a.eat(99)){if(this.regexp_eatClassControlLetter(a))return!0;a.pos=l}return this.regexp_eatCharacterClassEscape(a)||this.regexp_eatCharacterEscape(a)},re.regexp_eatClassControlLetter=function(a){var l=a.current();return js(l)||l===95?(a.lastIntValue=l%32,a.advance(),!0):!1},re.regexp_eatHexEscapeSequence=function(a){var l=a.pos;if(a.eat(120)){if(this.regexp_eatFixedHexDigits(a,2))return!0;a.switchU&&a.raise("Invalid escape"),a.pos=l}return!1},re.regexp_eatDecimalDigits=function(a){var l=a.pos,h=0;for(a.lastIntValue=0;js(h=a.current());)a.lastIntValue=10*a.lastIntValue+(h-48),a.advance();return a.pos!==l};function js(a){return a>=48&&a<=57}re.regexp_eatHexDigits=function(a){var l=a.pos,h=0;for(a.lastIntValue=0;op(h=a.current());)a.lastIntValue=16*a.lastIntValue+up(h),a.advance();return a.pos!==l};function op(a){return a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102}function up(a){return a>=65&&a<=70?10+(a-65):a>=97&&a<=102?10+(a-97):a-48}re.regexp_eatLegacyOctalEscapeSequence=function(a){if(this.regexp_eatOctalDigit(a)){var l=a.lastIntValue;if(this.regexp_eatOctalDigit(a)){var h=a.lastIntValue;l<=3&&this.regexp_eatOctalDigit(a)?a.lastIntValue=l*64+h*8+a.lastIntValue:a.lastIntValue=l*8+h}else a.lastIntValue=l;return!0}return!1},re.regexp_eatOctalDigit=function(a){var l=a.current();return lp(l)?(a.lastIntValue=l-48,a.advance(),!0):(a.lastIntValue=0,!1)};function lp(a){return a>=48&&a<=55}re.regexp_eatFixedHexDigits=function(a,l){var h=a.pos;a.lastIntValue=0;for(var b=0;b<l;++b){var C=a.current();if(!op(C))return a.pos=h,!1;a.lastIntValue=16*a.lastIntValue+up(C),a.advance()}return!0};var Us=function(l){this.type=l.type,this.value=l.value,this.start=l.start,this.end=l.end,l.options.locations&&(this.loc=new Ie(l,l.startLoc,l.endLoc)),l.options.ranges&&(this.range=[l.start,l.end])},me=Le.prototype;me.next=function(a){!a&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Us(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},me.getToken=function(){return this.next(),new Us(this)},typeof Symbol<"u"&&(me[Symbol.iterator]=function(){var a=this;return{next:function(){var l=a.getToken();return{done:l.type===T.eof,value:l}}}}),me.curContext=function(){return this.context[this.context.length-1]},me.nextToken=function(){var a=this.curContext();if((!a||!a.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(T.eof);if(a.override)return a.override(this);this.readToken(this.fullCharCodeAtPos())},me.readToken=function(a){return k(a,this.options.ecmaVersion>=6)||a===92?this.readWord():this.getTokenFromCode(a)},me.fullCharCodeAtPos=function(){var a=this.input.charCodeAt(this.pos);if(a<=55295||a>=57344)return a;var l=this.input.charCodeAt(this.pos+1);return(a<<10)+l-56613888},me.skipBlockComment=function(){var a=this.options.onComment&&this.curPosition(),l=this.pos,h=this.input.indexOf("*/",this.pos+=2);if(h===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=h+2,this.options.locations){Ne.lastIndex=l;for(var b;(b=Ne.exec(this.input))&&b.index<this.pos;)++this.curLine,this.lineStart=b.index+b[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(l+2,h),l,this.pos,a,this.curPosition())},me.skipLineComment=function(a){for(var l=this.pos,h=this.options.onComment&&this.curPosition(),b=this.input.charCodeAt(this.pos+=a);this.pos<this.input.length&&!le(b);)b=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(l+a,this.pos),l,this.pos,h,this.curPosition())},me.skipSpace=function(){e:for(;this.pos<this.input.length;){var a=this.input.charCodeAt(this.pos);switch(a){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(a>8&&a<14||a>=5760&&_e.test(String.fromCharCode(a)))++this.pos;else break e}}},me.finishToken=function(a,l){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var h=this.type;this.type=a,this.value=l,this.updateContext(h)},me.readToken_dot=function(){var a=this.input.charCodeAt(this.pos+1);if(a>=48&&a<=57)return this.readNumber(!0);var l=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&a===46&&l===46?(this.pos+=3,this.finishToken(T.ellipsis)):(++this.pos,this.finishToken(T.dot))},me.readToken_slash=function(){var a=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):a===61?this.finishOp(T.assign,2):this.finishOp(T.slash,1)},me.readToken_mult_modulo_exp=function(a){var l=this.input.charCodeAt(this.pos+1),h=1,b=a===42?T.star:T.modulo;return this.options.ecmaVersion>=7&&a===42&&l===42&&(++h,b=T.starstar,l=this.input.charCodeAt(this.pos+2)),l===61?this.finishOp(T.assign,h+1):this.finishOp(b,h)},me.readToken_pipe_amp=function(a){var l=this.input.charCodeAt(this.pos+1);if(l===a){if(this.options.ecmaVersion>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(T.assign,3)}return this.finishOp(a===124?T.logicalOR:T.logicalAND,2)}return l===61?this.finishOp(T.assign,2):this.finishOp(a===124?T.bitwiseOR:T.bitwiseAND,1)},me.readToken_caret=function(){var a=this.input.charCodeAt(this.pos+1);return a===61?this.finishOp(T.assign,2):this.finishOp(T.bitwiseXOR,1)},me.readToken_plus_min=function(a){var l=this.input.charCodeAt(this.pos+1);return l===a?l===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Me.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(T.incDec,2):l===61?this.finishOp(T.assign,2):this.finishOp(T.plusMin,1)},me.readToken_lt_gt=function(a){var l=this.input.charCodeAt(this.pos+1),h=1;return l===a?(h=a===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+h)===61?this.finishOp(T.assign,h+1):this.finishOp(T.bitShift,h)):l===33&&a===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(l===61&&(h=2),this.finishOp(T.relational,h))},me.readToken_eq_excl=function(a){var l=this.input.charCodeAt(this.pos+1);return l===61?this.finishOp(T.equality,this.input.charCodeAt(this.pos+2)===61?3:2):a===61&&l===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(T.arrow)):this.finishOp(a===61?T.eq:T.prefix,1)},me.readToken_question=function(){var a=this.options.ecmaVersion;if(a>=11){var l=this.input.charCodeAt(this.pos+1);if(l===46){var h=this.input.charCodeAt(this.pos+2);if(h<48||h>57)return this.finishOp(T.questionDot,2)}if(l===63){if(a>=12){var b=this.input.charCodeAt(this.pos+2);if(b===61)return this.finishOp(T.assign,3)}return this.finishOp(T.coalesce,2)}}return this.finishOp(T.question,1)},me.getTokenFromCode=function(a){switch(a){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(T.parenL);case 41:return++this.pos,this.finishToken(T.parenR);case 59:return++this.pos,this.finishToken(T.semi);case 44:return++this.pos,this.finishToken(T.comma);case 91:return++this.pos,this.finishToken(T.bracketL);case 93:return++this.pos,this.finishToken(T.bracketR);case 123:return++this.pos,this.finishToken(T.braceL);case 125:return++this.pos,this.finishToken(T.braceR);case 58:return++this.pos,this.finishToken(T.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(T.backQuote);case 48:var l=this.input.charCodeAt(this.pos+1);if(l===120||l===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(l===111||l===79)return this.readRadixNumber(8);if(l===98||l===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(a);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(a);case 124:case 38:return this.readToken_pipe_amp(a);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(a);case 60:case 62:return this.readToken_lt_gt(a);case 61:case 33:return this.readToken_eq_excl(a);case 63:return this.readToken_question();case 126:return this.finishOp(T.prefix,1)}this.raise(this.pos,"Unexpected character '"+va(a)+"'")},me.finishOp=function(a,l){var h=this.input.slice(this.pos,this.pos+l);return this.pos+=l,this.finishToken(a,h)},me.readRegexp=function(){for(var a,l,h=this.pos;;){this.pos>=this.input.length&&this.raise(h,"Unterminated regular expression");var b=this.input.charAt(this.pos);if(Me.test(b)&&this.raise(h,"Unterminated regular expression"),a)a=!1;else{if(b==="[")l=!0;else if(b==="]"&&l)l=!1;else if(b==="/"&&!l)break;a=b==="\\"}++this.pos}var C=this.input.slice(h,this.pos);++this.pos;var B=this.pos,R=this.readWord1();this.containsEsc&&this.unexpected(B);var W=this.regexpState||(this.regexpState=new Ht(this));W.reset(h,C,R),this.validateRegExpFlags(W),this.validateRegExpPattern(W);var Z=null;try{Z=new RegExp(C,R)}catch{}return this.finishToken(T.regexp,{pattern:C,flags:R,value:Z})},me.readInt=function(a,l,h){for(var b=this.options.ecmaVersion>=12&&l===void 0,C=h&&this.input.charCodeAt(this.pos)===48,B=this.pos,R=0,W=0,Z=0,xe=l??1/0;Z<xe;++Z,++this.pos){var De=this.input.charCodeAt(this.pos),He=void 0;if(b&&De===95){C&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),W===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),Z===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),W=De;continue}if(De>=97?He=De-97+10:De>=65?He=De-65+10:De>=48&&De<=57?He=De-48:He=1/0,He>=a)break;W=De,R=R*a+He}return b&&W===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===B||l!=null&&this.pos-B!==l?null:R};function ix(a,l){return l?parseInt(a,8):parseFloat(a.replace(/_/g,""))}function cp(a){return typeof BigInt!="function"?null:BigInt(a.replace(/_/g,""))}me.readRadixNumber=function(a){var l=this.pos;this.pos+=2;var h=this.readInt(a);return h==null&&this.raise(this.start+2,"Expected number in radix "+a),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(h=cp(this.input.slice(l,this.pos)),++this.pos):k(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(T.num,h)},me.readNumber=function(a){var l=this.pos;!a&&this.readInt(10,void 0,!0)===null&&this.raise(l,"Invalid number");var h=this.pos-l>=2&&this.input.charCodeAt(l)===48;h&&this.strict&&this.raise(l,"Invalid number");var b=this.input.charCodeAt(this.pos);if(!h&&!a&&this.options.ecmaVersion>=11&&b===110){var C=cp(this.input.slice(l,this.pos));return++this.pos,k(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(T.num,C)}h&&/[89]/.test(this.input.slice(l,this.pos))&&(h=!1),b===46&&!h&&(++this.pos,this.readInt(10),b=this.input.charCodeAt(this.pos)),(b===69||b===101)&&!h&&(b=this.input.charCodeAt(++this.pos),(b===43||b===45)&&++this.pos,this.readInt(10)===null&&this.raise(l,"Invalid number")),k(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var B=ix(this.input.slice(l,this.pos),h);return this.finishToken(T.num,B)},me.readCodePoint=function(){var a=this.input.charCodeAt(this.pos),l;if(a===123){this.options.ecmaVersion<6&&this.unexpected();var h=++this.pos;l=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,l>1114111&&this.invalidStringToken(h,"Code point out of bounds")}else l=this.readHexChar(4);return l};function va(a){return a<=65535?String.fromCharCode(a):(a-=65536,String.fromCharCode((a>>10)+55296,(a&1023)+56320))}me.readString=function(a){for(var l="",h=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var b=this.input.charCodeAt(this.pos);if(b===a)break;b===92?(l+=this.input.slice(h,this.pos),l+=this.readEscapedChar(!1),h=this.pos):(le(b,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return l+=this.input.slice(h,this.pos++),this.finishToken(T.string,l)};var pp={};me.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(a){if(a===pp)this.readInvalidTemplateToken();else throw a}this.inTemplateElement=!1},me.invalidStringToken=function(a,l){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pp;this.raise(a,l)},me.readTmplToken=function(){for(var a="",l=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var h=this.input.charCodeAt(this.pos);if(h===96||h===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===T.template||this.type===T.invalidTemplate)?h===36?(this.pos+=2,this.finishToken(T.dollarBraceL)):(++this.pos,this.finishToken(T.backQuote)):(a+=this.input.slice(l,this.pos),this.finishToken(T.template,a));if(h===92)a+=this.input.slice(l,this.pos),a+=this.readEscapedChar(!0),l=this.pos;else if(le(h)){switch(a+=this.input.slice(l,this.pos),++this.pos,h){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:a+=`
|
|
15
|
+
`;break;default:a+=String.fromCharCode(h);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),l=this.pos}else++this.pos}},me.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(T.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},me.readEscapedChar=function(a){var l=this.input.charCodeAt(++this.pos);switch(++this.pos,l){case 110:return`
|
|
16
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return va(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(a){var h=this.pos-1;return this.invalidStringToken(h,"Invalid escape sequence in template string"),null}default:if(l>=48&&l<=55){var b=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],C=parseInt(b,8);return C>255&&(b=b.slice(0,-1),C=parseInt(b,8)),this.pos+=b.length-1,l=this.input.charCodeAt(this.pos),(b!=="0"||l===56||l===57)&&(this.strict||a)&&this.invalidStringToken(this.pos-1-b.length,a?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(C)}return le(l)?"":String.fromCharCode(l)}},me.readHexChar=function(a){var l=this.pos,h=this.readInt(16,a);return h===null&&this.invalidStringToken(l,"Bad character escape sequence"),h},me.readWord1=function(){this.containsEsc=!1;for(var a="",l=!0,h=this.pos,b=this.options.ecmaVersion>=6;this.pos<this.input.length;){var C=this.fullCharCodeAtPos();if(D(C,b))this.pos+=C<=65535?1:2;else if(C===92){this.containsEsc=!0,a+=this.input.slice(h,this.pos);var B=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var R=this.readCodePoint();(l?k:D)(R,b)||this.invalidStringToken(B,"Invalid Unicode escape"),a+=va(R),h=this.pos}else break;l=!1}return a+this.input.slice(h,this.pos)},me.readWord=function(){var a=this.readWord1(),l=T.name;return this.keywords.test(a)&&(l=G[a]),this.finishToken(l,a)};var fp="7.4.1";Le.acorn={Parser:Le,version:fp,defaultOptions:qe,Position:Ve,SourceLocation:Ie,getLineInfo:ke,Node:Ms,TokenType:F,tokTypes:T,keywordTypes:G,TokContext:gt,tokContexts:Be,isIdentifierChar:D,isIdentifierStart:k,Token:Us,isNewLine:le,lineBreak:Me,lineBreakG:Ne,nonASCIIwhitespace:_e};function sx(a,l){return Le.parse(a,l)}function nx(a,l,h){return Le.parseExpressionAt(a,l,h)}function ax(a,l){return Le.tokenizer(a,l)}t.Node=Ms,t.Parser=Le,t.Position=Ve,t.SourceLocation=Ie,t.TokContext=gt,t.Token=Us,t.TokenType=F,t.defaultOptions=qe,t.getLineInfo=ke,t.isIdentifierChar=D,t.isIdentifierStart=k,t.isNewLine=le,t.keywordTypes=G,t.lineBreak=Me,t.lineBreakG=Ne,t.nonASCIIwhitespace=_e,t.parse=sx,t.parseExpressionAt=nx,t.tokContexts=Be,t.tokTypes=T,t.tokenizer=ax,t.version=fp,Object.defineProperty(t,"__esModule",{value:!0})})});var Qa=L((Tj,Vf)=>{"use strict";y();m();var Uf=Object.getOwnPropertySymbols,yg=Object.prototype.hasOwnProperty,mg=Object.prototype.propertyIsEnumerable;function Tg(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function xg(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(e).map(function(n){return e[n]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(n){s[n]=n}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Vf.exports=xg()?Object.assign:function(t,e){for(var r,i=Tg(t),s,n=1;n<arguments.length;n++){r=Object(arguments[n]);for(var o in r)yg.call(r,o)&&(i[o]=r[o]);if(Uf){s=Uf(r);for(var u=0;u<s.length;u++)mg.call(r,s[u])&&(i[s[u]]=r[s[u]])}}return i}});var Yf=L((gj,Kf)=>{"use strict";y();m();var qf=jf(),bg=Qa();Kf.exports=Sg;var gg={throw:!1,strict:!1,lineComment:!1};function Sg(t,e){e=bg({},gg,e);try{var r=new qf.Parser(e,t,0);e.strict&&(r.strict=!0),e.lineComment||(r.skipLineComment=function(i){this.raise(this.pos,"Line comments not allowed in an expression")}),r.nextToken(),r.parseExpression(),r.type!==qf.tokTypes.eof&&r.unexpected()}catch(i){if(!e.throw)return!1;throw i}return!0}});var Za=L((vj,Xf)=>{"use strict";y();m();Xf.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==s||o.enumerable!==!0)return!1}return!0}});var zf=L((wj,Jf)=>{"use strict";y();m();var Wf=typeof Symbol<"u"&&Symbol,Eg=Za();Jf.exports=function(){return typeof Wf!="function"||typeof Symbol!="function"||typeof Wf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Eg()}});var Gf=L((Nj,Hf)=>{"use strict";y();m();var $f={foo:{}},vg=Object;Hf.exports=function(){return{__proto__:$f}.foo===$f.foo&&!({__proto__:null}instanceof vg)}});var Zf=L((kj,Qf)=>{"use strict";y();m();var Pg="Function.prototype.bind called on incompatible ",eo=Array.prototype.slice,Ag=Object.prototype.toString,wg="[object Function]";Qf.exports=function(e){var r=this;if(typeof r!="function"||Ag.call(r)!==wg)throw new TypeError(Pg+r);for(var i=eo.call(arguments,1),s,n=function(){if(this instanceof s){var f=r.apply(this,i.concat(eo.call(arguments)));return Object(f)===f?f:this}else return r.apply(e,i.concat(eo.call(arguments)))},o=Math.max(0,r.length-i.length),u=[],c=0;c<o;c++)u.push("$"+c);if(s=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(n),r.prototype){var p=function(){};p.prototype=r.prototype,s.prototype=new p,p.prototype=null}return s}});var fn=L((Mj,eh)=>{"use strict";y();m();var Ig=Zf();eh.exports=Function.prototype.bind||Ig});var to=L((Rj,th)=>{"use strict";y();m();var Cg=fn();th.exports=Cg.call(Function.call,Object.prototype.hasOwnProperty)});var so=L((Vj,ah)=>{"use strict";y();m();var Te,vi=SyntaxError,nh=Function,Ei=TypeError,ro=function(t){try{return nh('"use strict"; return ('+t+").constructor;")()}catch{}},Vr=Object.getOwnPropertyDescriptor;if(Vr)try{Vr({},"")}catch{Vr=null}var io=function(){throw new Ei},Ng=Vr?function(){try{return arguments.callee,io}catch{try{return Vr(arguments,"callee").get}catch{return io}}}():io,gi=zf()(),_g=Gf()(),Xe=Object.getPrototypeOf||(_g?function(t){return t.__proto__}:null),Si={},Og=typeof Uint8Array>"u"||!Xe?Te:Xe(Uint8Array),qr={"%AggregateError%":typeof AggregateError>"u"?Te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Te:ArrayBuffer,"%ArrayIteratorPrototype%":gi&&Xe?Xe([][Symbol.iterator]()):Te,"%AsyncFromSyncIteratorPrototype%":Te,"%AsyncFunction%":Si,"%AsyncGenerator%":Si,"%AsyncGeneratorFunction%":Si,"%AsyncIteratorPrototype%":Si,"%Atomics%":typeof Atomics>"u"?Te:Atomics,"%BigInt%":typeof BigInt>"u"?Te:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Te:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Te:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Te:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Te:FinalizationRegistry,"%Function%":nh,"%GeneratorFunction%":Si,"%Int8Array%":typeof Int8Array>"u"?Te:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Te:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gi&&Xe?Xe(Xe([][Symbol.iterator]())):Te,"%JSON%":typeof JSON=="object"?JSON:Te,"%Map%":typeof Map>"u"?Te:Map,"%MapIteratorPrototype%":typeof Map>"u"||!gi||!Xe?Te:Xe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Te:Promise,"%Proxy%":typeof Proxy>"u"?Te:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Te:Set,"%SetIteratorPrototype%":typeof Set>"u"||!gi||!Xe?Te:Xe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gi&&Xe?Xe(""[Symbol.iterator]()):Te,"%Symbol%":gi?Symbol:Te,"%SyntaxError%":vi,"%ThrowTypeError%":Ng,"%TypedArray%":Og,"%TypeError%":Ei,"%Uint8Array%":typeof Uint8Array>"u"?Te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Te:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Te:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Te:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Te:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Te:WeakSet};if(Xe)try{null.error}catch(t){rh=Xe(Xe(t)),qr["%Error.prototype%"]=rh}var rh,kg=function t(e){var r;if(e==="%AsyncFunction%")r=ro("async function () {}");else if(e==="%GeneratorFunction%")r=ro("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ro("async function* () {}");else if(e==="%AsyncGenerator%"){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&Xe&&(r=Xe(s.prototype))}return qr[e]=r,r},ih={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Gi=fn(),hn=to(),Dg=Gi.call(Function.call,Array.prototype.concat),Lg=Gi.call(Function.apply,Array.prototype.splice),sh=Gi.call(Function.call,String.prototype.replace),dn=Gi.call(Function.call,String.prototype.slice),Mg=Gi.call(Function.call,RegExp.prototype.exec),Fg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bg=/\\(\\)?/g,Rg=function(e){var r=dn(e,0,1),i=dn(e,-1);if(r==="%"&&i!=="%")throw new vi("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new vi("invalid intrinsic syntax, expected opening `%`");var s=[];return sh(e,Fg,function(n,o,u,c){s[s.length]=u?sh(c,Bg,"$1"):o||n}),s},jg=function(e,r){var i=e,s;if(hn(ih,i)&&(s=ih[i],i="%"+s[0]+"%"),hn(qr,i)){var n=qr[i];if(n===Si&&(n=kg(i)),typeof n>"u"&&!r)throw new Ei("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:i,value:n}}throw new vi("intrinsic "+e+" does not exist!")};ah.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Ei("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ei('"allowMissing" argument must be a boolean');if(Mg(/^%?[^%]*%?$/,e)===null)throw new vi("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Rg(e),s=i.length>0?i[0]:"",n=jg("%"+s+"%",r),o=n.name,u=n.value,c=!1,p=n.alias;p&&(s=p[0],Lg(i,Dg([0,1],p)));for(var f=1,P=!0;f<i.length;f+=1){var k=i[f],D=dn(k,0,1),F=dn(k,-1);if((D==='"'||D==="'"||D==="`"||F==='"'||F==="'"||F==="`")&&D!==F)throw new vi("property names with quotes must have matching quotes");if((k==="constructor"||!P)&&(c=!0),s+="."+k,o="%"+s+"%",hn(qr,o))u=qr[o];else if(u!=null){if(!(k in u)){if(!r)throw new Ei("base intrinsic for "+e+" exists, but the property is not available.");return}if(Vr&&f+1>=i.length){var q=Vr(u,k);P=!!q,P&&"get"in q&&!("originalValue"in q.get)?u=q.get:u=u[k]}else P=hn(u,k),u=u[k];P&&!c&&(qr[o]=u)}}return u}});var fh=L((Yj,yn)=>{"use strict";y();m();var no=fn(),Pi=so(),lh=Pi("%Function.prototype.apply%"),ch=Pi("%Function.prototype.call%"),ph=Pi("%Reflect.apply%",!0)||no.call(ch,lh),oh=Pi("%Object.getOwnPropertyDescriptor%",!0),Kr=Pi("%Object.defineProperty%",!0),Ug=Pi("%Math.max%");if(Kr)try{Kr({},"a",{value:1})}catch{Kr=null}yn.exports=function(e){var r=ph(no,ch,arguments);if(oh&&Kr){var i=oh(r,"length");i.configurable&&Kr(r,"length",{value:1+Ug(0,e.length-(arguments.length-1))})}return r};var uh=function(){return ph(no,lh,arguments)};Kr?Kr(yn.exports,"apply",{value:uh}):yn.exports.apply=uh});var mh=L((Jj,yh)=>{"use strict";y();m();var hh=so(),dh=fh(),Vg=dh(hh("String.prototype.indexOf"));yh.exports=function(e,r){var i=hh(e,!!r);return typeof i=="function"&&Vg(e,".prototype.")>-1?dh(i):i}});var xh=L((Hj,Th)=>{"use strict";y();m();var qg=Za();Th.exports=function(){return qg()&&!!Symbol.toStringTag}});var vh=L((Zj,Eh)=>{"use strict";y();m();var ao=mh(),bh=xh()(),gh,Sh,oo,uo;bh&&(gh=ao("Object.prototype.hasOwnProperty"),Sh=ao("RegExp.prototype.exec"),oo={},mn=function(){throw oo},uo={toString:mn,valueOf:mn},typeof Symbol.toPrimitive=="symbol"&&(uo[Symbol.toPrimitive]=mn));var mn,Kg=ao("Object.prototype.toString"),Yg=Object.getOwnPropertyDescriptor,Xg="[object RegExp]";Eh.exports=bh?function(e){if(!e||typeof e!="object")return!1;var r=Yg(e,"lastIndex"),i=r&&gh(r,"value");if(!i)return!1;try{Sh(e,uo)}catch(s){return s===oo}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Kg(e)===Xg}});var Ch=L((mt,Ih)=>{"use strict";y();m();var Wg=vh();mt=Ih.exports=Ph;var We=mt.TOKEN_TYPES={LINE_COMMENT:"//",BLOCK_COMMENT:"/**/",SINGLE_QUOTE:"'",DOUBLE_QUOTE:'"',TEMPLATE_QUOTE:"`",REGEXP:"//g"},lo=mt.BRACKETS={"(":")","{":"}","[":"]"},Jg={")":"(","}":"{","]":"["};mt.parse=Ph;function Ph(t,e,r){r=r||{},e=e||mt.defaultState();for(var i=r.start||0,s=r.end||t.length,n=i;n<s;){try{co(t[n],e)}catch(o){throw o.index=n,o}n++}return e}mt.parseUntil=zg;function zg(t,e,r){r=r||{};for(var i=r.start||0,s=i,n=mt.defaultState();s<t.length;){if((r.ignoreNesting||!n.isNesting(r))&&$g(t,e,s)){var o=s;return{start:i,end:o,src:t.substring(i,o)}}try{co(t[s],n)}catch(c){throw c.index=s,c}s++}var u=new Error("The end of the string was reached with no closing bracket found.");throw u.code="CHARACTER_PARSER:END_OF_STRING_REACHED",u.index=s,u}mt.parseChar=co;function co(t,e){if(t.length!==1){var r=new Error("Character must be a string of length 1");throw r.name="InvalidArgumentError",r.code="CHARACTER_PARSER:CHAR_LENGTH_NOT_ONE",r}e=e||mt.defaultState(),e.src+=t;var i=e.isComment(),s=e.history?e.history[0]:"";switch(e.regexpStart&&((t==="/"||t=="*")&&e.stack.pop(),e.regexpStart=!1),e.current()){case We.LINE_COMMENT:t===`
|
|
17
|
+
`&&e.stack.pop();break;case We.BLOCK_COMMENT:e.lastChar==="*"&&t==="/"&&e.stack.pop();break;case We.SINGLE_QUOTE:t==="'"&&!e.escaped?e.stack.pop():t==="\\"&&!e.escaped?e.escaped=!0:e.escaped=!1;break;case We.DOUBLE_QUOTE:t==='"'&&!e.escaped?e.stack.pop():t==="\\"&&!e.escaped?e.escaped=!0:e.escaped=!1;break;case We.TEMPLATE_QUOTE:t==="`"&&!e.escaped?(e.stack.pop(),e.hasDollar=!1):t==="\\"&&!e.escaped?(e.escaped=!0,e.hasDollar=!1):t==="$"&&!e.escaped?e.hasDollar=!0:t==="{"&&e.hasDollar?e.stack.push(lo[t]):(e.escaped=!1,e.hasDollar=!1);break;case We.REGEXP:t==="/"&&!e.escaped?e.stack.pop():t==="\\"&&!e.escaped?e.escaped=!0:e.escaped=!1;break;default:if(t in lo)e.stack.push(lo[t]);else if(t in Jg){if(e.current()!==t){var r=new SyntaxError("Mismatched Bracket: "+t);throw r.code="CHARACTER_PARSER:MISMATCHED_BRACKET",r}e.stack.pop()}else s==="/"&&t==="/"?(e.history=e.history.substr(1),e.stack.push(We.LINE_COMMENT)):s==="/"&&t==="*"?(e.history=e.history.substr(1),e.stack.push(We.BLOCK_COMMENT)):t==="/"&&Hg(e.history)?(e.stack.push(We.REGEXP),e.regexpStart=!0):t==="'"?e.stack.push(We.SINGLE_QUOTE):t==='"'?e.stack.push(We.DOUBLE_QUOTE):t==="`"&&e.stack.push(We.TEMPLATE_QUOTE);break}return!e.isComment()&&!i&&(e.history=t+e.history),e.lastChar=t,e}mt.defaultState=function(){return new Qi};function Qi(){this.stack=[],this.regexpStart=!1,this.escaped=!1,this.hasDollar=!1,this.src="",this.history="",this.lastChar=""}Qi.prototype.current=function(){return this.stack[this.stack.length-1]};Qi.prototype.isString=function(){return this.current()===We.SINGLE_QUOTE||this.current()===We.DOUBLE_QUOTE||this.current()===We.TEMPLATE_QUOTE};Qi.prototype.isComment=function(){return this.current()===We.LINE_COMMENT||this.current()===We.BLOCK_COMMENT};Qi.prototype.isNesting=function(t){return t&&t.ignoreLineComment&&this.stack.length===1&&this.stack[0]===We.LINE_COMMENT?!1:!!this.stack.length};function $g(t,e,r){return Wg(e)?e.test(t.substr(r||0)):t.substr(r||0,e.length)===e}mt.isPunctuator=Ah;function Ah(t){if(!t)return!0;var e=t.charCodeAt(0);switch(e){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:case 37:case 38:case 42:case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 33:case 61:return!0;default:return!1}}mt.isKeyword=wh;function wh(t){return t==="if"||t==="in"||t==="do"||t==="var"||t==="for"||t==="new"||t==="try"||t==="let"||t==="this"||t==="else"||t==="case"||t==="void"||t==="with"||t==="enum"||t==="while"||t==="break"||t==="catch"||t==="throw"||t==="const"||t==="yield"||t==="class"||t==="super"||t==="return"||t==="typeof"||t==="delete"||t==="switch"||t==="export"||t==="import"||t==="default"||t==="finally"||t==="extends"||t==="function"||t==="continue"||t==="debugger"||t==="package"||t==="private"||t==="interface"||t==="instanceof"||t==="implements"||t==="protected"||t==="public"||t==="static"}function Hg(t){return t=t.replace(/^\s*/,""),t[0]===")"?!1:!!(t[0]==="}"||Ah(t[0])||/^\w+\b/.test(t)&&wh(/^\w+\b/.exec(t)[0].split("").reverse().join("")))}});var Yr=L((fo,ho)=>{"use strict";y();m();Object.defineProperty(fo,"__esModule",{value:!0});function po(t,e,r){var i=r.line,s=r.column,n=r.filename,o=r.src,u,c=i+(s?":"+s:"");if(o&&i>=1&&i<=o.split(`
|
|
18
|
+
`).length){var p=o.split(`
|
|
19
|
+
`),f=Math.max(i-3,0),P=Math.min(p.length,i+3),k=p.slice(f,P).map(function(F,q){var ae=q+f+1,J=(ae==i?" > ":" ")+ae+"| ",G=J+F;return ae===i&&s>0&&(G+=`
|
|
20
|
+
`,G+=Array(J.length+s).join("-")+"^"),G}).join(`
|
|
21
|
+
`);u=(n||"Pug")+":"+c+`
|
|
22
|
+
`+k+`
|
|
23
|
+
|
|
24
|
+
`+e}else u=(n||"Pug")+":"+c+`
|
|
25
|
+
|
|
26
|
+
`+e;var D=new Error(u);return D.code="PUG:"+t,D.msg=e,D.line=i,D.column=s,D.filename=n,D.src=o,D.toJSON=function(){return{code:this.code,msg:this.msg,line:this.line,column:this.column,filename:this.filename}},D}fo.default=po;ho.exports=po;ho.exports.default=po});var Nh=L((a9,yo)=>{"use strict";y();m();var Gg=bi(),Qg=Yf(),Bt=Ch(),Zg=Yr();yo.exports=eS;yo.exports.Lexer=Tn;function eS(t,e){var r=new Tn(t,e);return JSON.parse(JSON.stringify(r.getTokens()))}function Tn(t,e){if(e=e||{},typeof t!="string")throw new Error('Expected source code to be a string but got "'+typeof t+'"');if(typeof e!="object")throw new Error('Expected "options" to be an object but got "'+typeof e+'"');t=t.replace(/^\uFEFF/,""),this.input=t.replace(/\r\n|\r/g,`
|
|
27
|
+
`),this.originalInput=this.input,this.filename=e.filename,this.interpolated=e.interpolated||!1,this.lineno=e.startingLine||1,this.colno=e.startingColumn||1,this.plugins=e.plugins||[],this.indentStack=[0],this.indentRe=null,this.interpolationAllowed=!0,this.whitespaceRe=/[ \n\t]/,this.tokens=[],this.ended=!1}Tn.prototype={constructor:Tn,error:function(t,e){var r=Zg(t,e,{line:this.lineno,column:this.colno,filename:this.filename,src:this.originalInput});throw r},assert:function(t,e){t||this.error("ASSERT_FAILED",e)},isExpression:function(t){return Qg(t,{throw:!0})},assertExpression:function(t,e){try{return this.callLexerFunction("isExpression",t),!0}catch(i){if(e)return!1;if(!i.loc)throw i;this.incrementLine(i.loc.line-1),this.incrementColumn(i.loc.column);var r="Syntax Error: "+i.message.replace(/ \([0-9]+:[0-9]+\)$/,"");this.error("SYNTAX_ERROR",r)}},assertNestingCorrect:function(t){var e=Bt(t);e.isNesting()&&this.error("INCORRECT_NESTING","Nesting must match on expression `"+t+"`")},tok:function(t,e){var r={type:t,loc:{start:{line:this.lineno,column:this.colno},filename:this.filename}};return e!==void 0&&(r.val=e),r},tokEnd:function(t){return t.loc.end={line:this.lineno,column:this.colno},t},incrementLine:function(t){this.lineno+=t,t&&(this.colno=1)},incrementColumn:function(t){this.colno+=t},consume:function(t){this.input=this.input.substr(t)},scan:function(t,e){var r;if(r=t.exec(this.input)){var i=r[0].length,s=r[1],n=i-(s?s.length:0),o=this.tok(e,s);return this.consume(i),this.incrementColumn(n),o}},scanEndOfLine:function(t,e){var r;if(r=t.exec(this.input)){var i=0,s,n;(s=/^([ ]+)([^ ]*)/.exec(r[0]))&&(i=s[1].length,this.incrementColumn(i));var o=this.input.substr(r[0].length);if(o[0]===":")return this.input=o,n=this.tok(e,r[1]),this.incrementColumn(r[0].length-i),n;if(/^[ \t]*(\n|$)/.test(o))return this.input=o.substr(/^[ \t]*/.exec(o)[0].length),n=this.tok(e,r[1]),this.incrementColumn(r[0].length-i),n}},bracketExpression:function(t){t=t||0;var e=this.input[t];Gg(e==="("||e==="{"||e==="[",'The start character should be "(", "{" or "["');var r=Bt.BRACKETS[e],i;try{i=Bt.parseUntil(this.input,r,{start:t+1})}catch(c){if(c.index!==void 0){for(var s=c.index,n=this.input.substr(t).indexOf(`
|
|
28
|
+
`),o=n+t,u=0;s>o&&n!==-1;)this.incrementLine(1),s-=o+1,u+=o+1,n=o=this.input.substr(u).indexOf(`
|
|
29
|
+
`);this.incrementColumn(s)}throw c.code==="CHARACTER_PARSER:END_OF_STRING_REACHED"?this.error("NO_END_BRACKET","The end of the string reached with no closing bracket "+r+" found."):c.code==="CHARACTER_PARSER:MISMATCHED_BRACKET"&&this.error("BRACKET_MISMATCH",c.message),c}return i},scanIndentation:function(){var t,e;return this.indentRe?t=this.indentRe.exec(this.input):(e=/^\n(\t*) */,t=e.exec(this.input),t&&!t[1].length&&(e=/^\n( *)/,t=e.exec(this.input)),t&&t[1].length&&(this.indentRe=e)),t},eos:function(){if(!this.input.length){this.interpolated&&this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");for(var t=0;this.indentStack[t];t++)this.tokens.push(this.tokEnd(this.tok("outdent")));return this.tokens.push(this.tokEnd(this.tok("eos"))),this.ended=!0,!0}},blank:function(){var t;if(t=/^\n[ \t]*\n/.exec(this.input))return this.consume(t[0].length-1),this.incrementLine(1),!0},comment:function(){var t;if(t=/^\/\/(-)?([^\n]*)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("comment",t[2]);return e.buffer=t[1]!="-",this.interpolationAllowed=e.buffer,this.tokens.push(e),this.incrementColumn(t[0].length),this.tokEnd(e),this.callLexerFunction("pipelessText"),!0}},interpolation:function(){if(/^#\{/.test(this.input)){var t=this.bracketExpression(1);this.consume(t.end+1);var e=this.tok("interpolation",t.src);this.tokens.push(e),this.incrementColumn(2),this.assertExpression(t.src);var r=t.src.split(`
|
|
30
|
+
`),i=r.length-1;return this.incrementLine(i),this.incrementColumn(r[i].length+1),this.tokEnd(e),!0}},tag:function(){var t;if(t=/^(\w(?:[-:\w]*\w)?)/.exec(this.input)){var e,r=t[1],i=t[0].length;return this.consume(i),e=this.tok("tag",r),this.tokens.push(e),this.incrementColumn(i),this.tokEnd(e),!0}},filter:function(t){var e=this.scan(/^:([\w\-]+)/,"filter"),r=t&&t.inInclude;if(e)return this.tokens.push(e),this.incrementColumn(e.val.length),this.tokEnd(e),this.callLexerFunction("attrs"),r||(this.interpolationAllowed=!1,this.callLexerFunction("pipelessText")),!0},doctype:function(){var t=this.scanEndOfLine(/^doctype *([^\n]*)/,"doctype");if(t)return this.tokens.push(this.tokEnd(t)),!0},id:function(){var t=this.scan(/^#([\w-]+)/,"id");if(t)return this.tokens.push(t),this.incrementColumn(t.val.length),this.tokEnd(t),!0;/^#/.test(this.input)&&this.error("INVALID_ID",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid ID.')},className:function(){var t=this.scan(/^\.([_a-z0-9\-]*[_a-z][_a-z0-9\-]*)/i,"class");if(t)return this.tokens.push(t),this.incrementColumn(t.val.length),this.tokEnd(t),!0;/^\.[_a-z0-9\-]+/i.test(this.input)&&this.error("INVALID_CLASS_NAME","Class names must contain at least one letter or underscore."),/^\./.test(this.input)&&this.error("INVALID_CLASS_NAME",'"'+/.[^ \t\(\#\.\:]*/.exec(this.input.substr(1))[0]+'" is not a valid class name. Class names can only contain "_", "-", a-z and 0-9, and must contain at least one of "_", or a-z')},endInterpolation:function(){if(this.interpolated&&this.input[0]==="]")return this.input=this.input.substr(1),this.ended=!0,!0},addText:function(t,e,r,i){var s;if(e+r!==""){r=r||"",i=i||0;var n=this.interpolated?e.indexOf("]"):-1,o=this.interpolationAllowed?e.indexOf("#["):-1,u=this.interpolationAllowed?e.indexOf("\\#["):-1,c=/(\\)?([#!]){((?:.|\n)*)$/.exec(e),p=this.interpolationAllowed&&c?c.index:1/0;if(n===-1&&(n=1/0),o===-1&&(o=1/0),u===-1&&(u=1/0),u!==1/0&&u<n&&u<o&&u<p)return r=r+e.substring(0,u)+"#[",this.addText(t,e.substring(u+3),r,i+1);if(o!==1/0&&o<n&&o<u&&o<p){s=this.tok(t,r+e.substring(0,o)),this.incrementColumn(r.length+o+i),this.tokens.push(this.tokEnd(s)),s=this.tok("start-pug-interpolation"),this.incrementColumn(2),this.tokens.push(this.tokEnd(s));var f=new this.constructor(e.substr(o+2),{filename:this.filename,interpolated:!0,startingLine:this.lineno,startingColumn:this.colno,plugins:this.plugins}),P;try{P=f.getTokens()}catch(q){throw q.code&&/^PUG:/.test(q.code)&&(this.colno=q.column,this.error(q.code.substr(4),q.msg)),q}this.colno=f.colno,this.tokens=this.tokens.concat(P),s=this.tok("end-pug-interpolation"),this.incrementColumn(1),this.tokens.push(this.tokEnd(s)),this.addText(t,f.input);return}if(n!==1/0&&n<o&&n<u&&n<p){r+e.substring(0,n)&&this.addText(t,e.substring(0,n),r),this.ended=!0,this.input=e.substr(e.indexOf("]")+1)+this.input;return}if(p!==1/0){if(c[1])return r=r+e.substring(0,p)+c[2]+"{",this.addText(t,e.substring(p+3),r,i+1);var k=e.substr(0,p);(r||k)&&(k=r+k,s=this.tok(t,k),this.incrementColumn(k.length+i),this.tokens.push(this.tokEnd(s)));var D=c[3],F;s=this.tok("interpolated-code"),this.incrementColumn(2);try{F=Bt.parseUntil(D,"}")}catch(q){if(q.index!==void 0&&this.incrementColumn(q.index),q.code==="CHARACTER_PARSER:END_OF_STRING_REACHED")this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else if(q.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",q.message);else throw q}s.mustEscape=c[2]==="#",s.buffer=!0,s.val=F.src,this.assertExpression(F.src),F.end+1<D.length?(D=D.substr(F.end+1),this.incrementColumn(F.end+1),this.tokens.push(this.tokEnd(s)),this.addText(t,D)):(this.incrementColumn(D.length),this.tokens.push(this.tokEnd(s)));return}e=r+e,s=this.tok(t,e),this.incrementColumn(e.length+i),this.tokens.push(this.tokEnd(s))}},text:function(){var t=this.scan(/^(?:\| ?| )([^\n]+)/,"text")||this.scan(/^( )/,"text")||this.scan(/^\|( ?)/,"text");if(t)return this.addText("text",t.val),!0},textHtml:function(){var t=this.scan(/^(<[^\n]*)/,"text-html");if(t)return this.addText("text-html",t.val),!0},dot:function(){var t;if(t=this.scanEndOfLine(/^\./,"dot"))return this.tokens.push(this.tokEnd(t)),this.callLexerFunction("pipelessText"),!0},extends:function(){var t=this.scan(/^extends?(?= |$|\n)/,"extends");if(t)return this.tokens.push(this.tokEnd(t)),this.callLexerFunction("path")||this.error("NO_EXTENDS_PATH","missing path for extends"),!0;this.scan(/^extends?\b/)&&this.error("MALFORMED_EXTENDS","malformed extends")},prepend:function(){var t;if(t=/^(?:block +)?prepend +([^\n]+)/.exec(this.input)){var e=t[1].trim(),r="";if(e.indexOf("//")!==-1&&(r="//"+e.split("//").slice(1).join("//"),e=e.split("//")[0].trim()),!e)return;for(var i=this.tok("block",e),s=t[0].length-r.length;this.whitespaceRe.test(this.input.charAt(s-1));)s--;return this.incrementColumn(s),i.mode="prepend",this.tokens.push(this.tokEnd(i)),this.consume(t[0].length-r.length),this.incrementColumn(t[0].length-r.length-s),!0}},append:function(){var t;if(t=/^(?:block +)?append +([^\n]+)/.exec(this.input)){var e=t[1].trim(),r="";if(e.indexOf("//")!==-1&&(r="//"+e.split("//").slice(1).join("//"),e=e.split("//")[0].trim()),!e)return;for(var i=this.tok("block",e),s=t[0].length-r.length;this.whitespaceRe.test(this.input.charAt(s-1));)s--;return this.incrementColumn(s),i.mode="append",this.tokens.push(this.tokEnd(i)),this.consume(t[0].length-r.length),this.incrementColumn(t[0].length-r.length-s),!0}},block:function(){var t;if(t=/^block +([^\n]+)/.exec(this.input)){var e=t[1].trim(),r="";if(e.indexOf("//")!==-1&&(r="//"+e.split("//").slice(1).join("//"),e=e.split("//")[0].trim()),!e)return;for(var i=this.tok("block",e),s=t[0].length-r.length;this.whitespaceRe.test(this.input.charAt(s-1));)s--;return this.incrementColumn(s),i.mode="replace",this.tokens.push(this.tokEnd(i)),this.consume(t[0].length-r.length),this.incrementColumn(t[0].length-r.length-s),!0}},mixinBlock:function(){var t;if(t=this.scanEndOfLine(/^block/,"mixin-block"))return this.tokens.push(this.tokEnd(t)),!0},yield:function(){var t=this.scanEndOfLine(/^yield/,"yield");if(t)return this.tokens.push(this.tokEnd(t)),!0},include:function(){var t=this.scan(/^include(?=:| |$|\n)/,"include");if(t){for(this.tokens.push(this.tokEnd(t));this.callLexerFunction("filter",{inInclude:!0}););return this.callLexerFunction("path")||(/^[^ \n]+/.test(this.input)?this.fail():this.error("NO_INCLUDE_PATH","missing path for include")),!0}this.scan(/^include\b/)&&this.error("MALFORMED_INCLUDE","malformed include")},path:function(){var t=this.scanEndOfLine(/^ ([^\n]+)/,"path");if(t&&(t.val=t.val.trim()))return this.tokens.push(this.tokEnd(t)),!0},case:function(){var t=this.scanEndOfLine(/^case +([^\n]+)/,"case");if(t)return this.incrementColumn(-t.val.length),this.assertExpression(t.val),this.incrementColumn(t.val.length),this.tokens.push(this.tokEnd(t)),!0;this.scan(/^case\b/)&&this.error("NO_CASE_EXPRESSION","missing expression for case")},when:function(){var t=this.scanEndOfLine(/^when +([^:\n]+)/,"when");if(t){for(var e=Bt(t.val);e.isNesting()||e.isString();){var r=/:([^:\n]+)/.exec(this.input);if(!r)break;t.val+=r[0],this.consume(r[0].length),this.incrementColumn(r[0].length),e=Bt(t.val)}return this.incrementColumn(-t.val.length),this.assertExpression(t.val),this.incrementColumn(t.val.length),this.tokens.push(this.tokEnd(t)),!0}this.scan(/^when\b/)&&this.error("NO_WHEN_EXPRESSION","missing expression for when")},default:function(){var t=this.scanEndOfLine(/^default/,"default");if(t)return this.tokens.push(this.tokEnd(t)),!0;this.scan(/^default\b/)&&this.error("DEFAULT_WITH_EXPRESSION","default should not have an expression")},call:function(){var t,e,r;if(e=/^\+(\s*)(([-\w]+)|(#\{))/.exec(this.input)){if(e[3])r=e[0].length,this.consume(r),t=this.tok("call",e[3]);else{var i=this.bracketExpression(2+e[1].length);r=i.end+1,this.consume(r),this.assertExpression(i.src),t=this.tok("call","#{"+i.src+"}")}if(this.incrementColumn(r),t.args=null,e=/^ *\(/.exec(this.input)){var s=this.bracketExpression(e[0].length-1);if(!/^\s*[-\w]+ *=/.test(s.src)){this.incrementColumn(1),this.consume(s.end+1),t.args=s.src,this.assertExpression("["+t.args+"]");for(var n=0;n<=t.args.length;n++)t.args[n]===`
|
|
31
|
+
`?this.incrementLine(1):this.incrementColumn(1)}}return this.tokens.push(this.tokEnd(t)),!0}},mixin:function(){var t;if(t=/^mixin +([-\w]+)(?: *\((.*)\))? */.exec(this.input)){this.consume(t[0].length);var e=this.tok("mixin",t[1]);return e.args=t[2]||null,this.incrementColumn(t[0].length),this.tokens.push(this.tokEnd(e)),!0}},conditional:function(){var t;if(t=/^(if|unless|else if|else)\b([^\n]*)/.exec(this.input)){this.consume(t[0].length);var e=t[1].replace(/ /g,"-"),r=t[2]&&t[2].trim(),i=this.tok(e,r);switch(this.incrementColumn(t[0].length-r.length),e){case"if":case"else-if":this.assertExpression(r);break;case"unless":this.assertExpression(r),i.val="!("+r+")",i.type="if";break;case"else":r&&this.error("ELSE_CONDITION","`else` cannot have a condition, perhaps you meant `else if`");break}return this.incrementColumn(r.length),this.tokens.push(this.tokEnd(i)),!0}},while:function(){var t,e;if(t=/^while +([^\n]+)/.exec(this.input))return this.consume(t[0].length),this.assertExpression(t[1]),e=this.tok("while",t[1]),this.incrementColumn(t[0].length),this.tokens.push(this.tokEnd(e)),!0;this.scan(/^while\b/)&&this.error("NO_WHILE_EXPRESSION","missing expression for while")},each:function(){var t;if(t=/^(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? * in *([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("each",t[1]);return e.key=t[2]||null,this.incrementColumn(t[0].length-t[3].length),this.assertExpression(t[3]),e.code=t[3],this.incrementColumn(t[3].length),this.tokens.push(this.tokEnd(e)),!0}let r=/^each\b/.exec(this.input)?"each":"for";this.scan(/^(?:each|for)\b/)&&this.error("MALFORMED_EACH","This `"+r+"` has a syntax error. `"+r+"` statements should be of the form: `"+r+" VARIABLE_NAME of JS_EXPRESSION`"),(t=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +in +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should no longer be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},eachOf:function(){var t;if(t=/^(?:each|for) (.*?) of *([^\n]+)/.exec(this.input)){this.consume(t[0].length);var e=this.tok("eachOf",t[1]);return e.value=t[1],this.incrementColumn(t[0].length-t[2].length),this.assertExpression(t[2]),e.code=t[2],this.incrementColumn(t[2].length),this.tokens.push(this.tokEnd(e)),/^[a-zA-Z_$][\w$]*$/.test(e.value.trim())||/^\[ *[a-zA-Z_$][\w$]* *\, *[a-zA-Z_$][\w$]* *\]$/.test(e.value.trim())||this.error("MALFORMED_EACH_OF_LVAL","The value variable for each must either be a valid identifier (e.g. `item`) or a pair of identifiers in square brackets (e.g. `[key, value]`)."),!0}(t=/^- *(?:each|for) +([a-zA-Z_$][\w$]*)(?: *, *([a-zA-Z_$][\w$]*))? +of +([^\n]+)/.exec(this.input))&&this.error("MALFORMED_EACH",'Pug each and for should not be prefixed with a dash ("-"). They are pug keywords and not part of JavaScript.')},code:function(){var t;if(t=/^(!?=|-)[ \t]*([^\n]+)/.exec(this.input)){var e=t[1],r=t[2],i=0;if(this.interpolated){var s;try{s=Bt.parseUntil(r,"]")}catch(u){if(u.index!==void 0&&this.incrementColumn(t[0].length-r.length+u.index),u.code==="CHARACTER_PARSER:END_OF_STRING_REACHED")this.error("NO_END_BRACKET","End of line was reached with no closing bracket for interpolation.");else if(u.code==="CHARACTER_PARSER:MISMATCHED_BRACKET")this.error("BRACKET_MISMATCH",u.message);else throw u}i=r.length-s.end,r=s.src}var n=t[0].length-i;this.consume(n);var o=this.tok("code",r);return o.mustEscape=e.charAt(0)==="=",o.buffer=e.charAt(0)==="="||e.charAt(1)==="=",this.incrementColumn(t[0].length-t[2].length),o.buffer&&this.assertExpression(r),this.tokens.push(o),this.incrementColumn(r.length),this.tokEnd(o),!0}},blockCode:function(){var t;if(t=this.scanEndOfLine(/^-/,"blockcode"))return this.tokens.push(this.tokEnd(t)),this.interpolationAllowed=!1,this.callLexerFunction("pipelessText"),!0},attribute:function(t){var e="",r=/['"]/,i="",s;for(s=0;s<t.length&&this.whitespaceRe.test(t[s]);s++)t[s]===`
|
|
32
|
+
`?this.incrementLine(1):this.incrementColumn(1);if(s===t.length)return"";var n=this.tok("attribute");for(r.test(t[s])&&(e=t[s],this.incrementColumn(1),s++);s<t.length;s++){if(e){if(t[s]===e){this.incrementColumn(1),s++;break}}else if(this.whitespaceRe.test(t[s])||t[s]==="!"||t[s]==="="||t[s]===",")break;i+=t[s],t[s]===`
|
|
33
|
+
`?this.incrementLine(1):this.incrementColumn(1)}n.name=i;var o=this.attributeValue(t.substr(s));for(o.val?(n.val=o.val,n.mustEscape=o.mustEscape):(n.val=!0,n.mustEscape=!0),t=o.remainingSource,this.tokens.push(this.tokEnd(n)),s=0;s<t.length&&this.whitespaceRe.test(t[s]);s++)t[s]===`
|
|
34
|
+
`?this.incrementLine(1):this.incrementColumn(1);return t[s]===","&&(this.incrementColumn(1),s++),t.substr(s)},attributeValue:function(t){var e=/['"]/,r="",i,s,n,o=!0,u=Bt.defaultState(),c=this.colno,p=this.lineno;for(s=0;s<t.length&&this.whitespaceRe.test(t[s]);s++)t[s]===`
|
|
35
|
+
`?(p++,c=1):c++;if(s===t.length)return{remainingSource:t};if(t[s]==="!"&&(o=!1,c++,s++,t[s]!=="="&&this.error("INVALID_KEY_CHARACTER","Unexpected character "+t[s]+" expected `=`")),t[s]!=="=")if(s===0&&t&&!this.whitespaceRe.test(t[0])&&t[0]!==",")this.error("INVALID_KEY_CHARACTER","Unexpected character "+t[0]+" expected `=`");else return{remainingSource:t};for(this.lineno=p,this.colno=c+1,s++;s<t.length&&this.whitespaceRe.test(t[s]);s++)t[s]===`
|
|
36
|
+
`?this.incrementLine(1):this.incrementColumn(1);for(p=this.lineno,c=this.colno;s<t.length;s++){if(!(u.isNesting()||u.isString())){if(this.whitespaceRe.test(t[s])){for(i=!1,n=s;n<t.length;n++)if(!this.whitespaceRe.test(t[n])){let f=!Bt.isPunctuator(t[n]),P=e.test(t[n]),k=t[n]===":",D=t[n]+t[n+1]+t[n+2]==="...";(f||P||k||D)&&this.assertExpression(r,!0)&&(i=!0);break}if(i||n===t.length)break}if(t[s]===","&&this.assertExpression(r,!0))break}u=Bt.parseChar(t[s],u),r+=t[s],t[s]===`
|
|
37
|
+
`?(p++,c=1):c++}return this.assertExpression(r),this.lineno=p,this.colno=c,{val:r,mustEscape:o,remainingSource:t.substr(s)}},attrs:function(){var t;if(this.input.charAt(0)=="("){t=this.tok("start-attributes");var e=this.bracketExpression().end,r=this.input.substr(1,e-1);for(this.incrementColumn(1),this.tokens.push(this.tokEnd(t)),this.assertNestingCorrect(r),this.consume(e+1);r;)r=this.attribute(r);return t=this.tok("end-attributes"),this.incrementColumn(1),this.tokens.push(this.tokEnd(t)),!0}},attributesBlock:function(){if(/^&attributes\b/.test(this.input)){var t=11;this.consume(t);var e=this.tok("&attributes");this.incrementColumn(t);var r=this.bracketExpression();return t=r.end+1,this.consume(t),e.val=r.src,this.incrementColumn(t),this.tokens.push(this.tokEnd(e)),!0}},indent:function(){var t=this.scanIndentation(),e;if(t){var r=t[1].length;if(this.incrementLine(1),this.consume(r+1),(this.input[0]==" "||this.input[0]==" ")&&this.error("INVALID_INDENTATION","Invalid indentation, you can use tabs or spaces but not both"),this.input[0]==`
|
|
38
|
+
`)return this.interpolationAllowed=!0,this.tokEnd(this.tok("newline"));if(r<this.indentStack[0]){for(var i=0;this.indentStack[0]>r;)this.indentStack[1]<r&&this.error("INCONSISTENT_INDENTATION","Inconsistent indentation. Expecting either "+this.indentStack[1]+" or "+this.indentStack[0]+" spaces/tabs."),i++,this.indentStack.shift();for(;i--;)this.colno=1,e=this.tok("outdent"),this.colno=this.indentStack[0]+1,this.tokens.push(this.tokEnd(e))}else r&&r!=this.indentStack[0]?(e=this.tok("indent",r),this.colno=1+r,this.tokens.push(this.tokEnd(e)),this.indentStack.unshift(r)):(e=this.tok("newline"),this.colno=1+Math.min(this.indentStack[0]||0,r),this.tokens.push(this.tokEnd(e)));return this.interpolationAllowed=!0,!0}},pipelessText:function t(e){for(;this.callLexerFunction("blank"););var r=this.scanIndentation();if(e=e||r&&r[1].length,e>this.indentStack[0]){this.tokens.push(this.tokEnd(this.tok("start-pipeless-text")));var i=[],s=[],n,o=0;do{var u=this.input.substr(o+1).indexOf(`
|
|
39
|
+
`);u==-1&&(u=this.input.length-o-1);var c=this.input.substr(o+1,u),p=this.indentRe.exec(`
|
|
40
|
+
`+c),f=p&&p[1].length;if(n=f>=e,s.push(n),n=n||!c.trim(),n)o+=c.length+1,i.push(c.substr(e));else if(f>this.indentStack[0])return this.tokens.pop(),t.call(this,p[1].length)}while(this.input.length-o&&n);for(this.consume(o);this.input.length===0&&i[i.length-1]==="";)i.pop();return i.forEach(function(P,k){var D;this.incrementLine(1),k!==0&&(D=this.tok("newline")),s[k]&&this.incrementColumn(e),D&&this.tokens.push(this.tokEnd(D)),this.addText("text",P)}.bind(this)),this.tokens.push(this.tokEnd(this.tok("end-pipeless-text"))),!0}},slash:function(){var t=this.scan(/^\//,"slash");if(t)return this.tokens.push(this.tokEnd(t)),!0},colon:function(){var t=this.scan(/^: +/,":");if(t)return this.tokens.push(this.tokEnd(t)),!0},fail:function(){this.error("UNEXPECTED_TEXT",'unexpected text "'+this.input.substr(0,5)+'"')},callLexerFunction:function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);for(var i=[this].concat(e),r=0;r<this.plugins.length;r++){var s=this.plugins[r];if(s[t]&&s[t].apply(s,i))return!0}return this[t].apply(this,e)},advance:function(){return this.callLexerFunction("blank")||this.callLexerFunction("eos")||this.callLexerFunction("endInterpolation")||this.callLexerFunction("yield")||this.callLexerFunction("doctype")||this.callLexerFunction("interpolation")||this.callLexerFunction("case")||this.callLexerFunction("when")||this.callLexerFunction("default")||this.callLexerFunction("extends")||this.callLexerFunction("append")||this.callLexerFunction("prepend")||this.callLexerFunction("block")||this.callLexerFunction("mixinBlock")||this.callLexerFunction("include")||this.callLexerFunction("mixin")||this.callLexerFunction("call")||this.callLexerFunction("conditional")||this.callLexerFunction("eachOf")||this.callLexerFunction("each")||this.callLexerFunction("while")||this.callLexerFunction("tag")||this.callLexerFunction("filter")||this.callLexerFunction("blockCode")||this.callLexerFunction("code")||this.callLexerFunction("id")||this.callLexerFunction("dot")||this.callLexerFunction("className")||this.callLexerFunction("attrs")||this.callLexerFunction("attributesBlock")||this.callLexerFunction("indent")||this.callLexerFunction("text")||this.callLexerFunction("textHtml")||this.callLexerFunction("comment")||this.callLexerFunction("slash")||this.callLexerFunction("colon")||this.fail()},getTokens:function(){for(;!this.ended;)this.callLexerFunction("advance");return this.tokens}}});var Oh=L((l9,_h)=>{"use strict";y();m();var tS=Yr();_h.exports=rS;function mo(t,e,r,i){var s="`"+t+"` encountered when "+e;throw tS("UNEXPECTED_TOKEN",s,{filename:r,line:i})}function rS(t,e){e=e||{};var r=e.stripUnbuffered!==!1,i=e.stripBuffered===!0,s=e.filename,n=[],o=!1,u=!1;return t.filter(function(c){switch(c.type){case"comment":if(o)mo("comment","already in a comment",s,c.line);else return o=c.buffer?i:r,!o;case"start-pipeless-text":return o?(u&&mo("start-pipeless-text","already in pipeless text mode",s,c.line),u=!0,!1):!0;case"end-pipeless-text":return o?(u||mo("end-pipeless-text","not in pipeless text mode",s,c.line),u=!1,o=!1,!1):!0;case"text":return!o;default:return u?!1:(o=!1,!0)}})}});var Dh=L((f9,kh)=>{"use strict";y();m();kh.exports=Zi;function Zi(t){if(!Array.isArray(t))throw new TypeError("tokens must be passed to TokenStream as an array.");this._tokens=t}Zi.prototype.lookahead=function(t){if(this._tokens.length<=t)throw new Error("Cannot read past the end of a stream");return this._tokens[t]};Zi.prototype.peek=function(){if(this._tokens.length===0)throw new Error("Cannot read past the end of a stream");return this._tokens[0]};Zi.prototype.advance=function(){if(this._tokens.length===0)throw new Error("Cannot read past the end of a stream");return this._tokens.shift()};Zi.prototype.defer=function(t){this._tokens.unshift(t)}});var Mh=L((y9,Lh)=>{"use strict";y();m();Lh.exports=["a","abbr","acronym","b","br","code","em","font","i","img","ins","kbd","map","samp","small","span","strong","sub","sup"]});var Fh=L((x9,To)=>{"use strict";y();m();var iS=bi(),sS=Dh(),nS=Yr(),aS=Mh();To.exports=oS;To.exports.Parser=xn;function oS(t,e){var r=new xn(t,e),i=r.parse();return JSON.parse(JSON.stringify(i))}function xn(t,e){if(e=e||{},!Array.isArray(t))throw new Error('Expected tokens to be an Array but got "'+typeof t+'"');if(typeof e!="object")throw new Error('Expected "options" to be an object but got "'+typeof e+'"');this.tokens=new sS(t),this.filename=e.filename,this.src=e.src,this.inMixin=0,this.plugins=e.plugins||[]}xn.prototype={constructor:xn,error:function(t,e,r){var i=nS(t,e,{line:r.loc.start.line,column:r.loc.start.column,filename:this.filename,src:this.src});throw i},advance:function(){return this.tokens.advance()},peek:function(){return this.tokens.peek()},lookahead:function(t){return this.tokens.lookahead(t)},parse:function(){for(var t=this.emptyBlock(0);this.peek().type!="eos";)if(this.peek().type=="newline")this.advance();else if(this.peek().type=="text-html")t.nodes=t.nodes.concat(this.parseTextHtml());else{var e=this.parseExpr();e&&(e.type==="Block"?t.nodes=t.nodes.concat(e.nodes):t.nodes.push(e))}return t},expect:function(t){if(this.peek().type===t)return this.advance();this.error("INVALID_TOKEN",'expected "'+t+'", but got "'+this.peek().type+'"',this.peek())},accept:function(t){if(this.peek().type===t)return this.advance()},initBlock:function(t,e){if((t|0)!==t)throw new Error("`line` is not an integer");if(!Array.isArray(e))throw new Error("`nodes` is not an array");return{type:"Block",nodes:e,line:t,filename:this.filename}},emptyBlock:function(t){return this.initBlock(t,[])},runPlugin:function(t,e){for(var r=[this],i=2;i<arguments.length;i++)r.push(arguments[i]);for(var s,i=0;i<this.plugins.length;i++){var n=this.plugins[i];if(n[t]&&n[t][e.type]){if(s)throw new Error("Multiple plugin handlers found for context "+JSON.stringify(t)+", token type "+JSON.stringify(e.type));s=n[t]}}if(s)return s[e.type].apply(s,r)},parseExpr:function(){switch(this.peek().type){case"tag":return this.parseTag();case"mixin":return this.parseMixin();case"block":return this.parseBlock();case"mixin-block":return this.parseMixinBlock();case"case":return this.parseCase();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"doctype":return this.parseDoctype();case"filter":return this.parseFilter();case"comment":return this.parseComment();case"text":case"interpolated-code":case"start-pug-interpolation":return this.parseText({block:!0});case"text-html":return this.initBlock(this.peek().loc.start.line,this.parseTextHtml());case"dot":return this.parseDot();case"each":return this.parseEach();case"eachOf":return this.parseEachOf();case"code":return this.parseCode();case"blockcode":return this.parseBlockCode();case"if":return this.parseConditional();case"while":return this.parseWhile();case"call":return this.parseCall();case"interpolation":return this.parseInterpolation();case"yield":return this.parseYield();case"id":case"class":if(!this.peek().loc.start)debugger;return this.tokens.defer({type:"tag",val:"div",loc:this.peek().loc,filename:this.filename}),this.parseExpr();default:var t=this.runPlugin("expressionTokens",this.peek());if(t)return t;this.error("INVALID_TOKEN",'unexpected token "'+this.peek().type+'"',this.peek())}},parseDot:function(){return this.advance(),this.parseTextBlock()},parseText:function(t){var e=[],r=this.peek().loc.start.line,i=this.peek();e:for(;;){switch(i.type){case"text":var s=this.advance();e.push({type:"Text",val:s.val,line:s.loc.start.line,column:s.loc.start.column,filename:this.filename});break;case"interpolated-code":var s=this.advance();e.push({type:"Code",val:s.val,buffer:s.buffer,mustEscape:s.mustEscape!==!1,isInline:!0,line:s.loc.start.line,column:s.loc.start.column,filename:this.filename});break;case"newline":if(!t||!t.block)break e;var s=this.advance(),n=this.peek().type;(n==="text"||n==="interpolated-code")&&e.push({type:"Text",val:`
|
|
41
|
+
`,line:s.loc.start.line,column:s.loc.start.column,filename:this.filename});break;case"start-pug-interpolation":this.advance(),e.push(this.parseExpr()),this.expect("end-pug-interpolation");break;default:var o=this.runPlugin("textTokens",i,e);if(o)break;break e}i=this.peek()}return e.length===1?e[0]:this.initBlock(r,e)},parseTextHtml:function(){var t=[],e=null;e:for(;;)switch(this.peek().type){case"text-html":var r=this.advance();e?e.val+=`
|
|
42
|
+
`+r.val:(e={type:"Text",val:r.val,filename:this.filename,line:r.loc.start.line,column:r.loc.start.column,isHtml:!0},t.push(e));break;case"indent":var i=this.block();i.nodes.forEach(function(s){s.isHtml?e?e.val+=`
|
|
43
|
+
`+s.val:(e=s,t.push(e)):(e=null,t.push(s))});break;case"code":e=null,t.push(this.parseCode(!0));break;case"newline":this.advance();break;default:break e}return t},parseBlockExpansion:function(){var t=this.accept(":");if(t){var e=this.parseExpr();return e.type==="Block"?e:this.initBlock(t.loc.start.line,[e])}else return this.block()},parseCase:function(){var t=this.expect("case"),e={type:"Case",expr:t.val,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename},r=this.emptyBlock(t.loc.start.line+1);for(this.expect("indent");this.peek().type!="outdent";)switch(this.peek().type){case"comment":case"newline":this.advance();break;case"when":r.nodes.push(this.parseWhen());break;case"default":r.nodes.push(this.parseDefault());break;default:var i=this.runPlugin("caseTokens",this.peek(),r);if(i)break;this.error("INVALID_TOKEN",'Unexpected token "'+this.peek().type+'", expected "when", "default" or "newline"',this.peek())}return this.expect("outdent"),e.block=r,e},parseWhen:function(){var t=this.expect("when");return this.peek().type!=="newline"?{type:"When",expr:t.val,block:this.parseBlockExpansion(),debug:!1,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}:{type:"When",expr:t.val,debug:!1,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseDefault:function(){var t=this.expect("default");return{type:"When",expr:"default",block:this.parseBlockExpansion(),debug:!1,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseCode:function(t){var e=this.expect("code");iS(typeof e.mustEscape=="boolean","Please update to the newest version of pug-lexer.");var r={type:"Code",val:e.val,buffer:e.buffer,mustEscape:e.mustEscape!==!1,isInline:!!t,line:e.loc.start.line,column:e.loc.start.column,filename:this.filename};if(r.val.match(/^ *else/)&&(r.debug=!1),t)return r;var i;return i=this.peek().type=="indent",i&&(e.buffer&&this.error("BLOCK_IN_BUFFERED_CODE","Buffered code cannot have a block attached to it",this.peek()),r.block=this.block()),r},parseConditional:function(){var t=this.expect("if"),e={type:"Conditional",test:t.val,consequent:this.emptyBlock(t.loc.start.line),alternate:null,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};this.peek().type=="indent"&&(e.consequent=this.block());for(var r=e;;)if(this.peek().type==="newline")this.expect("newline");else if(this.peek().type==="else-if")t=this.expect("else-if"),r=r.alternate={type:"Conditional",test:t.val,consequent:this.emptyBlock(t.loc.start.line),alternate:null,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename},this.peek().type=="indent"&&(r.consequent=this.block());else if(this.peek().type==="else"){this.expect("else"),this.peek().type==="indent"&&(r.alternate=this.block());break}else break;return e},parseWhile:function(){var t=this.expect("while"),e={type:"While",test:t.val,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return this.peek().type=="indent"?e.block=this.block():e.block=this.emptyBlock(t.loc.start.line),e},parseBlockCode:function(){var t=this.expect("blockcode"),e=t.loc.start.line,r=t.loc.start.column,i=this.peek(),s="";if(i.type==="start-pipeless-text"){for(this.advance();this.peek().type!=="end-pipeless-text";)switch(t=this.advance(),t.type){case"text":s+=t.val;break;case"newline":s+=`
|
|
44
|
+
`;break;default:var n=this.runPlugin("blockCodeTokens",t,t);if(n){s+=n;break}this.error("INVALID_TOKEN","Unexpected token type: "+t.type,t)}this.advance()}return{type:"Code",val:s,buffer:!1,mustEscape:!1,isInline:!1,line:e,column:r,filename:this.filename}},parseComment:function(){var t=this.expect("comment"),e;return(e=this.parseTextBlock())?{type:"BlockComment",val:t.val,block:e,buffer:t.buffer,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}:{type:"Comment",val:t.val,buffer:t.buffer,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseDoctype:function(){var t=this.expect("doctype");return{type:"Doctype",val:t.val,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseIncludeFilter:function(){var t=this.expect("filter"),e=[];return this.peek().type==="start-attributes"&&(e=this.attrs()),{type:"IncludeFilter",name:t.val,attrs:e,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseFilter:function(){var t=this.expect("filter"),e,r=[];if(this.peek().type==="start-attributes"&&(r=this.attrs()),this.peek().type==="text"){var i=this.advance();e=this.initBlock(i.loc.start.line,[{type:"Text",val:i.val,line:i.loc.start.line,column:i.loc.start.column,filename:this.filename}])}else this.peek().type==="filter"?e=this.initBlock(t.loc.start.line,[this.parseFilter()]):e=this.parseTextBlock()||this.emptyBlock(t.loc.start.line);return{type:"Filter",name:t.val,block:e,attrs:r,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseEach:function(){var t=this.expect("each"),e={type:"Each",obj:t.code,val:t.val,key:t.key,block:this.block(),line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return this.peek().type=="else"&&(this.advance(),e.alternate=this.block()),e},parseEachOf:function(){var t=this.expect("eachOf"),e={type:"EachOf",obj:t.code,val:t.val,block:this.block(),line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return e},parseExtends:function(){var t=this.expect("extends"),e=this.expect("path");return{type:"Extends",file:{type:"FileReference",path:e.val.trim(),line:e.loc.start.line,column:e.loc.start.column,filename:this.filename},line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseBlock:function(){var t=this.expect("block"),e=this.peek().type=="indent"?this.block():this.emptyBlock(t.loc.start.line);return e.type="NamedBlock",e.name=t.val.trim(),e.mode=t.mode,e.line=t.loc.start.line,e.column=t.loc.start.column,e},parseMixinBlock:function(){var t=this.expect("mixin-block");return this.inMixin||this.error("BLOCK_OUTISDE_MIXIN","Anonymous blocks are not allowed unless they are part of a mixin.",t),{type:"MixinBlock",line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseYield:function(){var t=this.expect("yield");return{type:"YieldBlock",line:t.loc.start.line,column:t.loc.start.column,filename:this.filename}},parseInclude:function(){for(var t=this.expect("include"),e={type:"Include",file:{type:"FileReference",filename:this.filename},line:t.loc.start.line,column:t.loc.start.column,filename:this.filename},r=[];this.peek().type==="filter";)r.push(this.parseIncludeFilter());var i=this.expect("path");return e.file.path=i.val.trim(),e.file.line=i.loc.start.line,e.file.column=i.loc.start.column,(/\.jade$/.test(e.file.path)||/\.pug$/.test(e.file.path))&&!r.length?(e.block=this.peek().type=="indent"?this.block():this.emptyBlock(t.loc.start.line),/\.jade$/.test(e.file.path)&&console.warn(this.filename+", line "+t.loc.start.line+`:
|
|
45
|
+
The .jade extension is deprecated, use .pug for "`+e.file.path+'".')):(e.type="RawInclude",e.filters=r,this.peek().type==="indent"&&this.error("RAW_INCLUDE_BLOCK","Raw inclusion cannot contain a block",this.peek())),e},parseCall:function(){var t=this.expect("call"),e=t.val,r=t.args,i={type:"Mixin",name:e,args:r,block:this.emptyBlock(t.loc.start.line),call:!0,attrs:[],attributeBlocks:[],line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return this.tag(i),i.code&&(i.block.nodes.push(i.code),delete i.code),i.block.nodes.length===0&&(i.block=null),i},parseMixin:function(){var t=this.expect("mixin"),e=t.val,r=t.args;if(this.peek().type=="indent"){this.inMixin++;var i={type:"Mixin",name:e,args:r,block:this.block(),call:!1,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return this.inMixin--,i}else this.error("MIXIN_WITHOUT_BODY","Mixin "+e+" declared without body",t)},parseTextBlock:function(){var t=this.accept("start-pipeless-text");if(t){for(var e=this.emptyBlock(t.loc.start.line);this.peek().type!=="end-pipeless-text";){var t=this.advance();switch(t.type){case"text":e.nodes.push({type:"Text",val:t.val,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename});break;case"newline":e.nodes.push({type:"Text",val:`
|
|
46
|
+
`,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename});break;case"start-pug-interpolation":e.nodes.push(this.parseExpr()),this.expect("end-pug-interpolation");break;case"interpolated-code":e.nodes.push({type:"Code",val:t.val,buffer:t.buffer,mustEscape:t.mustEscape!==!1,isInline:!0,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename});break;default:var r=this.runPlugin("textBlockTokens",t,e,t);if(r)break;this.error("INVALID_TOKEN","Unexpected token type: "+t.type,t)}}return this.advance(),e}},block:function(){for(var t=this.expect("indent"),e=this.emptyBlock(t.loc.start.line);this.peek().type!="outdent";)if(this.peek().type=="newline")this.advance();else if(this.peek().type=="text-html")e.nodes=e.nodes.concat(this.parseTextHtml());else{var r=this.parseExpr();r.type==="Block"?e.nodes=e.nodes.concat(r.nodes):e.nodes.push(r)}return this.expect("outdent"),e},parseInterpolation:function(){var t=this.advance(),e={type:"InterpolatedTag",expr:t.val,selfClosing:!1,block:this.emptyBlock(t.loc.start.line),attrs:[],attributeBlocks:[],isInline:!1,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return this.tag(e,{selfClosingAllowed:!0})},parseTag:function(){var t=this.advance(),e={type:"Tag",name:t.val,selfClosing:!1,block:this.emptyBlock(t.loc.start.line),attrs:[],attributeBlocks:[],isInline:aS.indexOf(t.val)!==-1,line:t.loc.start.line,column:t.loc.start.column,filename:this.filename};return this.tag(e,{selfClosingAllowed:!0})},tag:function(t,e){var r=!1,i=[],s=e&&e.selfClosingAllowed;e:for(;;)switch(this.peek().type){case"id":case"class":var n=this.advance();n.type==="id"&&(i.indexOf("id")!==-1&&this.error("DUPLICATE_ID",'Duplicate attribute "id" is not allowed.',n),i.push("id")),t.attrs.push({name:n.type,val:"'"+n.val+"'",line:n.loc.start.line,column:n.loc.start.column,filename:this.filename,mustEscape:!1});continue;case"start-attributes":r&&console.warn(this.filename+", line "+this.peek().loc.start.line+`:
|
|
47
|
+
You should not have pug tags with multiple attributes.`),r=!0,t.attrs=t.attrs.concat(this.attrs(i));continue;case"&attributes":var n=this.advance();t.attributeBlocks.push({type:"AttributeBlock",val:n.val,line:n.loc.start.line,column:n.loc.start.column,filename:this.filename});break;default:var o=this.runPlugin("tagAttributeTokens",this.peek(),t,i);if(o)break;break e}switch(this.peek().type=="dot"&&(t.textOnly=!0,this.advance()),this.peek().type){case"text":case"interpolated-code":var u=this.parseText();u.type==="Block"?t.block.nodes.push.apply(t.block.nodes,u.nodes):t.block.nodes.push(u);break;case"code":t.block.nodes.push(this.parseCode(!0));break;case":":this.advance();var c=this.parseExpr();t.block=c.type==="Block"?c:this.initBlock(t.line,[c]);break;case"newline":case"indent":case"outdent":case"eos":case"start-pipeless-text":case"end-pug-interpolation":break;case"slash":if(s){this.advance(),t.selfClosing=!0;break}default:var o=this.runPlugin("tagTokens",this.peek(),t,e);if(o)break;this.error("INVALID_TOKEN","Unexpected token `"+this.peek().type+"` expected `text`, `interpolated-code`, `code`, `:`"+(s?", `slash`":"")+", `newline` or `eos`",this.peek())}for(;this.peek().type=="newline";)this.advance();if(t.textOnly)t.block=this.parseTextBlock()||this.emptyBlock(t.line);else if(this.peek().type=="indent")for(var p=this.block(),f=0,P=p.nodes.length;f<P;++f)t.block.nodes.push(p.nodes[f]);return t},attrs:function(t){this.expect("start-attributes");for(var e=[],r=this.advance();r.type==="attribute";)r.name!=="class"&&t&&(t.indexOf(r.name)!==-1&&this.error("DUPLICATE_ATTRIBUTE",'Duplicate attribute "'+r.name+'" is not allowed.',r),t.push(r.name)),e.push({name:r.name,val:r.val,line:r.loc.start.line,column:r.loc.start.column,filename:this.filename,mustEscape:r.mustEscape!==!1}),r=this.advance();return this.tokens.defer(r),this.expect("end-attributes"),e}}});var bn=L((S9,Bh)=>{"use strict";y();m();Bh.exports=Tt;function Tt(t,e,r,i){r&&typeof r=="object"&&typeof i>"u"&&(i=r,r=null),i=i||{includeDependencies:!1};var s=i.parents=i.parents||[],n=function c(p){if(Array.isArray(p)&&!c.arrayAllowed)throw new Error("replace() can only be called with an array if the last parent is a Block or NamedBlock");t=p};if(n.arrayAllowed=s[0]&&(/^(Named)?Block$/.test(s[0].type)||s[0].type==="RawInclude"&&t.type==="IncludeFilter"),e){var o=e(t,n);if(o===!1)return t;if(Array.isArray(t))return u(t)}switch(s.unshift(t),t.type){case"NamedBlock":case"Block":t.nodes=u(t.nodes);break;case"Case":case"Filter":case"Mixin":case"Tag":case"InterpolatedTag":case"When":case"Code":case"While":t.block&&(t.block=Tt(t.block,e,r,i));break;case"Each":t.block&&(t.block=Tt(t.block,e,r,i)),t.alternate&&(t.alternate=Tt(t.alternate,e,r,i));break;case"EachOf":t.block&&(t.block=Tt(t.block,e,r,i));break;case"Conditional":t.consequent&&(t.consequent=Tt(t.consequent,e,r,i)),t.alternate&&(t.alternate=Tt(t.alternate,e,r,i));break;case"Include":Tt(t.block,e,r,i),Tt(t.file,e,r,i);break;case"Extends":Tt(t.file,e,r,i);break;case"RawInclude":t.filters=u(t.filters),Tt(t.file,e,r,i);break;case"Attrs":case"BlockComment":case"Comment":case"Doctype":case"IncludeFilter":case"MixinBlock":case"YieldBlock":case"Text":break;case"FileReference":i.includeDependencies&&t.ast&&Tt(t.ast,e,r,i);break;default:throw new Error("Unexpected node type "+t.type)}return s.shift(),r&&r(t,n),t;function u(c){return c.reduce(function(p,f){var P=Tt(f,e,r,i);return Array.isArray(P)?p.concat(P):p.concat([P])},[])}}});var Uh=L((P9,jh)=>{"use strict";y();m();var uS=mr(),Rh=Br(),lS=bn(),gn=Qa();jh.exports=vt;function vt(t,e){return e=xo(e),t=JSON.parse(JSON.stringify(t)),lS(t,function(r){if(r.str===void 0&&(r.type==="Include"||r.type==="RawInclude"||r.type==="Extends")){var i=r.file;if(i.type!=="FileReference")throw new Error('Expected file.type to be "FileReference"');var s,n,o;try{s=e.resolve(i.path,i.filename,e),i.fullPath=s,o=e.read(s,e),n=o.toString("utf8")}catch(u){throw u.message+=`
|
|
48
|
+
at `+r.filename+" line "+r.line,u}i.str=n,i.raw=o,(r.type==="Extends"||r.type==="Include")&&(i.ast=vt.string(n,gn({},e,{filename:s})))}})}vt.string=function(e,r){r=gn(xo(r),{src:e});var i=r.lex(e,r),s=r.parse(i,r);return vt(s,r)};vt.file=function(e,r){r=gn(xo(r),{filename:e});var i=r.read(e).toString("utf8");return vt.string(i,r)};vt.resolve=function(e,r,i){if(e=e.trim(),e[0]!=="/"&&!r)throw new Error('the "filename" option is required to use includes and extends with "relative" paths');if(e[0]==="/"&&!i.basedir)throw new Error('the "basedir" option is required to use includes and extends with "absolute" paths');return e=Rh.join(e[0]==="/"?i.basedir:Rh.dirname(r.trim()),e),e};vt.read=function(e,r){return uS.readFileSync(e)};vt.validateOptions=function(e){if(typeof e!="object")throw new TypeError("options must be an object");if(typeof e.lex!="function")throw new TypeError("options.lex must be a function");if(typeof e.parse!="function")throw new TypeError("options.parse must be a function");if(e.resolve&&typeof e.resolve!="function")throw new TypeError("options.resolve must be a function");if(e.read&&typeof e.read!="function")throw new TypeError("options.read must be a function")};function xo(t){return vt.validateOptions(t),gn({resolve:vt.resolve,read:vt.read},t)}});var go=L((I9,Wh)=>{"use strict";y();m();Wh.exports=bo;function bo(t){jt.length||(Sn(),Kh=!0),jt[jt.length]=t}var jt=[],Kh=!1,Sn,Rt=0,cS=1024;function Vh(){for(;Rt<jt.length;){var t=Rt;if(Rt=Rt+1,jt[t].call(),Rt>cS){for(var e=0,r=jt.length-Rt;e<r;e++)jt[e]=jt[e+Rt];jt.length-=Rt,Rt=0}}jt.length=0,Rt=0,Kh=!1}var qh=typeof window<"u"?window:self,Yh=qh.MutationObserver||qh.WebKitMutationObserver;typeof Yh=="function"?Sn=pS(Vh):Sn=Xh(Vh);bo.requestFlush=Sn;function pS(t){var e=1,r=new Yh(t),i=document.createTextNode("");return r.observe(i,{characterData:!0}),function(){e=-e,i.data=e}}function Xh(t){return function(){var r=setTimeout(s,0),i=setInterval(s,50);function s(){clearTimeout(r),clearInterval(i),t()}}}bo.makeRequestCallFromTimer=Xh});var Xr=L((_9,$h)=>{"use strict";y();m();var fS=go();function vn(){}var wi=null,Ii={};function hS(t){try{return t.then}catch(e){return wi=e,Ii}}function dS(t,e){try{return t(e)}catch(r){return wi=r,Ii}}function yS(t,e,r){try{t(e,r)}catch(i){return wi=i,Ii}}$h.exports=xt;function xt(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof t!="function")throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,t!==vn&&zh(t,this)}xt._37=null;xt._87=null;xt._61=vn;xt.prototype.then=function(t,e){if(this.constructor!==xt)return mS(this,t,e);var r=new xt(vn);return En(this,new Jh(t,e,r)),r};function mS(t,e,r){return new t.constructor(function(i,s){var n=new xt(vn);n.then(i,s),En(t,new Jh(e,r,n))})}function En(t,e){for(;t._65===3;)t=t._55;if(xt._37&&xt._37(t),t._65===0){if(t._40===0){t._40=1,t._72=e;return}if(t._40===1){t._40=2,t._72=[t._72,e];return}t._72.push(e);return}TS(t,e)}function TS(t,e){fS(function(){var r=t._65===1?e.onFulfilled:e.onRejected;if(r===null){t._65===1?So(e.promise,t._55):Ai(e.promise,t._55);return}var i=dS(r,t._55);i===Ii?Ai(e.promise,wi):So(e.promise,i)})}function So(t,e){if(e===t)return Ai(t,new TypeError("A promise cannot be resolved with itself."));if(e&&(typeof e=="object"||typeof e=="function")){var r=hS(e);if(r===Ii)return Ai(t,wi);if(r===t.then&&e instanceof xt){t._65=3,t._55=e,Eo(t);return}else if(typeof r=="function"){zh(r.bind(e),t);return}}t._65=1,t._55=e,Eo(t)}function Ai(t,e){t._65=2,t._55=e,xt._87&&xt._87(t,e),Eo(t)}function Eo(t){if(t._40===1&&(En(t,t._72),t._72=null),t._40===2){for(var e=0;e<t._72.length;e++)En(t,t._72[e]);t._72=null}}function Jh(t,e,r){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.promise=r}function zh(t,e){var r=!1,i=yS(t,function(s){r||(r=!0,So(e,s))},function(s){r||(r=!0,Ai(e,s))});!r&&i===Ii&&(r=!0,Ai(e,wi))}});var Qh=L((D9,Gh)=>{"use strict";y();m();var Hh=Xr();Gh.exports=Hh;Hh.prototype.done=function(t,e){var r=arguments.length?this.then.apply(this,arguments):this;r.then(null,function(i){setTimeout(function(){throw i},0)})}});var ed=L((F9,Zh)=>{"use strict";y();m();var Pn=Xr();Zh.exports=Pn;Pn.prototype.finally=function(t){return this.then(function(e){return Pn.resolve(t()).then(function(){return e})},function(e){return Pn.resolve(t()).then(function(){throw e})})}});var rd=L((j9,td)=>{"use strict";y();m();var Je=Xr();td.exports=Je;var xS=Wr(!0),bS=Wr(!1),gS=Wr(null),SS=Wr(void 0),ES=Wr(0),vS=Wr("");function Wr(t){var e=new Je(Je._61);return e._65=1,e._55=t,e}Je.resolve=function(t){if(t instanceof Je)return t;if(t===null)return gS;if(t===void 0)return SS;if(t===!0)return xS;if(t===!1)return bS;if(t===0)return ES;if(t==="")return vS;if(typeof t=="object"||typeof t=="function")try{var e=t.then;if(typeof e=="function")return new Je(e.bind(t))}catch(r){return new Je(function(i,s){s(r)})}return Wr(t)};Je.all=function(t){var e=Array.prototype.slice.call(t);return new Je(function(r,i){if(e.length===0)return r([]);var s=e.length;function n(u,c){if(c&&(typeof c=="object"||typeof c=="function"))if(c instanceof Je&&c.then===Je.prototype.then){for(;c._65===3;)c=c._55;if(c._65===1)return n(u,c._55);c._65===2&&i(c._55),c.then(function(P){n(u,P)},i);return}else{var p=c.then;if(typeof p=="function"){var f=new Je(p.bind(c));f.then(function(P){n(u,P)},i);return}}e[u]=c,--s===0&&r(e)}for(var o=0;o<e.length;o++)n(o,e[o])})};Je.reject=function(t){return new Je(function(e,r){r(t)})};Je.race=function(t){return new Je(function(e,r){t.forEach(function(i){Je.resolve(i).then(e,r)})})};Je.prototype.catch=function(t){return this.then(null,t)}});var ad=L((q9,nd)=>{"use strict";y();m();var id=go(),An=[],vo=[],PS=id.makeRequestCallFromTimer(AS);function AS(){if(vo.length)throw vo.shift()}nd.exports=Po;function Po(t){var e;An.length?e=An.pop():e=new sd,e.task=t,id(e)}function sd(){this.task=null}sd.prototype.call=function(){try{this.task.call()}catch(t){Po.onerror?Po.onerror(t):(vo.push(t),PS())}finally{this.task=null,An[An.length]=this}}});var ld=L((X9,ud)=>{"use strict";y();m();var Jr=Xr(),Ao=ad();ud.exports=Jr;Jr.denodeify=function(t,e){return typeof e=="number"&&e!==1/0?wS(t,e):IS(t)};var od="function (err, res) {if (err) { rj(err); } else { rs(res); }}";function wS(t,e){for(var r=[],i=0;i<e;i++)r.push("a"+i);var s=["return function ("+r.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(r).concat([od]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],s)(Jr,t)}function IS(t){for(var e=Math.max(t.length-1,3),r=[],i=0;i<e;i++)r.push("a"+i);var s=["return function ("+r.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+e+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+od+";","var res;","switch (argLength) {",r.concat(["extra"]).map(function(n,o){return"case "+o+":res = fn.call("+["self"].concat(r.slice(0,o)).concat("cb").join(",")+");break;"}).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],s)(Jr,t)}Jr.nodeify=function(t){return function(){var e=Array.prototype.slice.call(arguments),r=typeof e[e.length-1]=="function"?e.pop():null,i=this;try{return t.apply(this,arguments).nodeify(r,i)}catch(s){if(r===null||typeof r>"u")return new Jr(function(n,o){o(s)});Ao(function(){r.call(i,s)})}}};Jr.prototype.nodeify=function(t,e){if(typeof t!="function")return this;this.then(function(r){Ao(function(){t.call(e,null,r)})},function(r){Ao(function(){t.call(e,r)})})}});var pd=L((z9,cd)=>{"use strict";y();m();var st=Xr();cd.exports=st;st.enableSynchronous=function(){st.prototype.isPending=function(){return this.getState()==0},st.prototype.isFulfilled=function(){return this.getState()==1},st.prototype.isRejected=function(){return this.getState()==2},st.prototype.getValue=function(){if(this._65===3)return this._55.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._55},st.prototype.getReason=function(){if(this._65===3)return this._55.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._55},st.prototype.getState=function(){return this._65===3?this._55.getState():this._65===-1||this._65===-2?0:this._65}};st.disableSynchronous=function(){st.prototype.isPending=void 0,st.prototype.isFulfilled=void 0,st.prototype.isRejected=void 0,st.prototype.getValue=void 0,st.prototype.getReason=void 0,st.prototype.getState=void 0}});var hd=L((G9,fd)=>{"use strict";y();m();fd.exports=Xr();Qh();ed();rd();ld();pd()});var yd=L((e7,dd)=>{"use strict";y();m();dd.exports=hd()});var Td=L((i7,wo)=>{y();m();wo.exports=md;wo.exports.default=md;function md(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}});var gd=L((a7,bd)=>{"use strict";y();m();var Io=mr(),wn=bi(),Ut=yd(),xd=Td(),ne=bd.exports=function(t){return new Ge(t)};ne.Transformer=Ge;ne.normalizeFn=CS;ne.normalizeFnAsync=NS;ne.normalize=_S;ne.normalizeAsync=OS;Io.readFile?(ne.readFile=Ut.denodeify(Io.readFile),ne.readFileSync=Io.readFileSync):(ne.readFile=function(){throw new Error("fs.readFile unsupported")},ne.readFileSync=function(){throw new Error("fs.readFileSync unsupported")});function CS(t){if(typeof t=="function")return{fn:t,dependencies:[]};if(t&&typeof t=="object"&&typeof t.fn=="function"){if("dependencies"in t){if(!Array.isArray(t.dependencies))throw new Error("Result should have a dependencies property that is an array")}else t.dependencies=[];return t}else throw new Error("Invalid result object from transform.")}function NS(t,e){return Ut.resolve(t).then(function(r){return r&&xd(r.fn)?r.fn.then(function(i){return r.fn=i,r}):r}).then(ne.normalizeFn).nodeify(e)}function _S(t){if(typeof t=="string")return{body:t,dependencies:[]};if(t&&typeof t=="object"&&typeof t.body=="string"){if("dependencies"in t){if(!Array.isArray(t.dependencies))throw new Error("Result should have a dependencies property that is an array")}else t.dependencies=[];return t}else throw new Error("Invalid result object from transform.")}function OS(t,e){return Ut.resolve(t).then(function(r){return r&&xd(r.body)?r.body.then(function(i){return r.body=i,r}):r}).then(ne.normalize).nodeify(e)}function Ge(t){wn(t,"Transformer must be an object"),wn(typeof t.name=="string","Transformer must have a name"),wn(typeof t.outputFormat=="string","Transformer must have an output format"),wn(["compile","compileAsync","compileFile","compileFileAsync","compileClient","compileClientAsync","compileFileClient","compileFileClientAsync","render","renderAsync","renderFile","renderFileAsync"].some(function(e){return typeof t[e]=="function"}),"Transformer must implement at least one of the potential methods."),this._tr=t,this.name=this._tr.name,this.outputFormat=this._tr.outputFormat,this.inputFormats=this._tr.inputFormats||[this.name]}var kS={compile:["compile","render"],compileAsync:["compileAsync","compile","render"],compileFile:["compileFile","compile","renderFile","render"],compileFileAsync:["compileFileAsync","compileFile","compileAsync","compile","renderFile","render"],compileClient:["compileClient"],compileClientAsync:["compileClientAsync","compileClient"],compileFileClient:["compileFileClient","compileClient"],compileFileClientAsync:["compileFileClientAsync","compileFileClient","compileClientAsync","compileClient"],render:["render","compile"],renderAsync:["renderAsync","render","compileAsync","compile"],renderFile:["renderFile","render","compileFile","compile"],renderFileAsync:["renderFileAsync","renderFile","renderAsync","render","compileFileAsync","compileFile","compileAsync","compile"]};Ge.prototype._hasMethod=function(t){return typeof this._tr[t]=="function"};Ge.prototype.can=function(t){return kS[t].some(function(e){return this._hasMethod(e)}.bind(this))};Ge.prototype.compile=function(t,e){if(!this._hasMethod("compile")){if(this.can("render")){var r=this;return{fn:function(i){return ne.normalize(r._tr.render(t,e,i)).body},dependencies:[]}}throw this.can("compileAsync")?new Error('The Transform "'+this.name+'" does not support synchronous compilation'):this.can("compileFileAsync")?new Error('The Transform "'+this.name+'" does not support compiling plain strings'):new Error('The Transform "'+this.name+'" does not support compilation')}return ne.normalizeFn(this._tr.compile(t,e))};Ge.prototype.compileAsync=function(t,e,r){return this.can("compileAsync")?this._hasMethod("compileAsync")?ne.normalizeFnAsync(this._tr.compileAsync(t,e),r):ne.normalizeFnAsync(this.compile(t,e),r):Ut.reject(new Error('The Transform "'+this.name+'" does not support compiling plain strings')).nodeify(r)};Ge.prototype.compileFile=function(t,e){if(!this.can("compileFile"))throw new Error('The Transform "'+this.name+'" does not support synchronous compilation');return this._hasMethod("compileFile")?ne.normalizeFn(this._tr.compileFile(t,e)):this._hasMethod("renderFile")?ne.normalizeFn(function(r){return ne.normalize(this._tr.renderFile(t,e,r)).body}.bind(this)):(e||(e={}),e.filename===void 0&&(e.filename=t),this.compile(ne.readFileSync(t,"utf8"),e))};Ge.prototype.compileFileAsync=function(t,e,r){return this.can("compileFileAsync")?this._hasMethod("compileFileAsync")?ne.normalizeFnAsync(this._tr.compileFileAsync(t,e),r):this._hasMethod("compileFile")||this._hasMethod("renderFile")?ne.normalizeFnAsync(this.compileFile(t,e),r):(e||(e={}),e.filename===void 0&&(e.filename=t),ne.normalizeFnAsync(ne.readFile(t,"utf8").then(function(i){return this._hasMethod("compileAsync")?this._tr.compileAsync(i,e):this.compile(i,e)}.bind(this)),r)):Ut.reject(new Error('The Transform "'+this.name+'" does not support compilation'))};Ge.prototype.compileClient=function(t,e){if(!this.can("compileClient"))throw this.can("compileClientAsync")?new Error('The Transform "'+this.name+'" does not support compiling for the client synchronously.'):this.can("compileFileClientAsync")?new Error('The Transform "'+this.name+'" does not support compiling for the client from a string.'):new Error('The Transform "'+this.name+'" does not support compiling for the client');return ne.normalize(this._tr.compileClient(t,e))};Ge.prototype.compileClientAsync=function(t,e,r){return this.can("compileClientAsync")?this._hasMethod("compileClientAsync")?ne.normalizeAsync(this._tr.compileClientAsync(t,e),r):ne.normalizeAsync(this._tr.compileClient(t,e),r):this.can("compileFileClientAsync")?Ut.reject(new Error('The Transform "'+this.name+'" does not support compiling for the client from a string.')).nodeify(r):Ut.reject(new Error('The Transform "'+this.name+'" does not support compiling for the client')).nodeify(r)};Ge.prototype.compileFileClient=function(t,e){if(!this.can("compileFileClient"))throw this.can("compileFileClientAsync")?new Error('The Transform "'+this.name+'" does not support compiling for the client synchronously.'):new Error('The Transform "'+this.name+'" does not support compiling for the client');return this._hasMethod("compileFileClient")?ne.normalize(this._tr.compileFileClient(t,e)):(e||(e={}),e.filename===void 0&&(e.filename=t),ne.normalize(this._tr.compileClient(ne.readFileSync(t,"utf8"),e)))};Ge.prototype.compileFileClientAsync=function(t,e,r){return this.can("compileFileClientAsync")?this._hasMethod("compileFileClientAsync")?ne.normalizeAsync(this._tr.compileFileClientAsync(t,e),r):this._hasMethod("compileFileClient")?ne.normalizeAsync(this._tr.compileFileClient(t,e),r):(e||(e={}),e.filename===void 0&&(e.filename=t),ne.normalizeAsync(ne.readFile(t,"utf8").then(function(i){return this._hasMethod("compileClientAsync")?this._tr.compileClientAsync(i,e):this._tr.compileClient(i,e)}.bind(this)),r)):Ut.reject(new Error('The Transform "'+this.name+'" does not support compiling for the client')).nodeify(r)};Ge.prototype.render=function(t,e,r){if(!this.can("render"))throw this.can("renderAsync")?new Error('The Transform "'+this.name+'" does not support rendering synchronously.'):this.can("renderFileAsync")?new Error('The Transform "'+this.name+'" does not support rendering from a string.'):new Error('The Transform "'+this.name+'" does not support rendering');if(this._hasMethod("render"))return ne.normalize(this._tr.render(t,e,r));var i=ne.normalizeFn(this._tr.compile(t,e)),s=i.fn(r||e);if(typeof s!="string")throw new Error('The Transform "'+this.name+'" does not support rendering synchronously.');return ne.normalize({body:s,dependencies:i.dependencies})};Ge.prototype.renderAsync=function(t,e,r,i){return typeof r=="function"&&(i=r,r=e),this.can("renderAsync")?this._hasMethod("renderAsync")?ne.normalizeAsync(this._tr.renderAsync(t,e,r),i):this._hasMethod("render")?ne.normalizeAsync(this._tr.render(t,e,r),i):ne.normalizeAsync(this.compileAsync(t,e).then(function(s){return{body:s.fn(r||e),dependencies:s.dependencies}}),i):this.can("renderFileAsync")?Ut.reject(new Error('The Transform "'+this.name+'" does not support rendering from a string.')).nodeify(i):Ut.reject(new Error('The Transform "'+this.name+'" does not support rendering')).nodeify(i)};Ge.prototype.renderFile=function(t,e,r){if(!this.can("renderFile"))throw new Error('The Transform "'+this.name+'" does not support rendering synchronously.');if(this._hasMethod("renderFile"))return ne.normalize(this._tr.renderFile(t,e,r));if(this._hasMethod("render"))return e||(e={}),e.filename===void 0&&(e.filename=t),ne.normalize(this._tr.render(ne.readFileSync(t,"utf8"),e,r));var i=this.compileFile(t,e);return ne.normalize({body:i.fn(r||e),dependencies:i.dependencies})};Ge.prototype.renderFileAsync=function(t,e,r,i){if(!this.can("renderFileAsync"))throw new Error('The Transform "'+this.name+'" does not support rendering.');return typeof r=="function"&&(i=r,r=e),this._hasMethod("renderFileAsync")?ne.normalizeAsync(this._tr.renderFileAsync(t,e,r),i):this._hasMethod("renderFile")?ne.normalizeAsync(this._tr.renderFile(t,e,r),i):this._hasMethod("compile")||this._hasMethod("compileAsync")||this._hasMethod("compileFile")||this._hasMethod("compileFileAsync")?ne.normalizeAsync(this.compileFileAsync(t,e).then(function(s){return{body:s.fn(r||e),dependencies:s.dependencies}}),i):(e||(e={}),e.filename===void 0&&(e.filename=t),ne.normalizeAsync(ne.readFile(t,"utf8").then(function(s){return this.renderAsync(s,e,r)}.bind(this)),i))}});var Ld={};Wi(Ld,{EOL:()=>Dd,arch:()=>DS,cpus:()=>Id,default:()=>MS,endianness:()=>Sd,freemem:()=>Ad,getNetworkInterfaces:()=>Od,hostname:()=>Ed,loadavg:()=>vd,networkInterfaces:()=>_d,platform:()=>LS,release:()=>Nd,tmpDir:()=>Co,tmpdir:()=>kd,totalmem:()=>wd,type:()=>Cd,uptime:()=>Pd});function Sd(){if(typeof In>"u"){var t=new ArrayBuffer(2),e=new Uint8Array(t),r=new Uint16Array(t);if(e[0]=1,e[1]=2,r[0]===258)In="BE";else if(r[0]===513)In="LE";else throw new Error("unable to figure out endianess")}return In}function Ed(){return typeof window.location<"u"?window.location.hostname:""}function vd(){return[]}function Pd(){return 0}function Ad(){return Number.MAX_VALUE}function wd(){return Number.MAX_VALUE}function Id(){return[]}function Cd(){return"Browser"}function Nd(){return typeof window.navigator<"u"?window.navigator.appVersion:""}function _d(){}function Od(){}function DS(){return"javascript"}function LS(){return"browser"}function Co(){return"/tmp"}var In,kd,Dd,MS,Md=Ct(()=>{y();m();kd=Co,Dd=`
|
|
49
|
+
`,MS={EOL:Dd,tmpdir:kd,tmpDir:Co,networkInterfaces:_d,getNetworkInterfaces:Od,release:Nd,type:Cd,cpus:Id,totalmem:wd,freemem:Ad,uptime:Pd,loadavg:vd,hostname:Ed,endianness:Sd}});var Fd=L((p7,Cn)=>{y();m();var zr=(Md(),Ji(Ld));if(zr&&zr.default){Cn.exports=zr.default;for(let t in zr)Cn.exports[t]=zr[t]}else zr&&(Cn.exports=zr)});var No=L((d7,Bd)=>{"use strict";y();m();var FS=Fd();Bd.exports=FS.homedir||function(){var e=N.env.HOME,r=N.env.LOGNAME||N.env.USER||N.env.LNAME||N.env.USERNAME;return N.platform==="win32"?N.env.USERPROFILE||N.env.HOMEDRIVE+N.env.HOMEPATH||e||null:N.platform==="darwin"?e||(r?"/Users/"+r:null):N.platform==="linux"?e||(N.getuid()===0?"/root":r?"/home/"+r:null):e||null}});var _o=L((T7,Rd)=>{y();m();Rd.exports=function(){var t=Error.prepareStackTrace;Error.prepareStackTrace=function(r,i){return i};var e=new Error().stack;return Error.prepareStackTrace=t,e[2].getFileName()}});var jd=L((g7,es)=>{"use strict";y();m();var BS=N.platform==="win32",RS=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Oo={};function jS(t){return RS.exec(t).slice(1)}Oo.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=jS(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var US=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,ko={};function VS(t){return US.exec(t).slice(1)}ko.parse=function(t){if(typeof t!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=VS(t);if(!e||e.length!==5)throw new TypeError("Invalid path '"+t+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};BS?es.exports=Oo.parse:es.exports=ko.parse;es.exports.posix=ko.parse;es.exports.win32=Oo.parse});var Do=L((v7,Kd)=>{y();m();var qd=Br(),Ud=qd.parse||jd(),Vd=function(e,r){var i="/";/^([A-Za-z]:)/.test(e)?i="":/^\\\\/.test(e)&&(i="\\\\");for(var s=[e],n=Ud(e);n.dir!==s[s.length-1];)s.push(n.dir),n=Ud(n.dir);return s.reduce(function(o,u){return o.concat(r.map(function(c){return qd.resolve(i,u,c)}))},[])};Kd.exports=function(e,r,i){var s=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(i,e,function(){return Vd(e,s)},r);var n=Vd(e,s);return r&&r.paths?n.concat(r.paths):n}});var Lo=L((w7,Yd)=>{y();m();Yd.exports=function(t,e){return e||{}}});var Xd=L((N7,qS)=>{qS.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 20"],"node:wasi":">= 20",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var ts=L((_7,zd)=>{"use strict";y();m();var KS=to();function YS(t,e){for(var r=t.split("."),i=e.split(" "),s=i.length>1?i[0]:"=",n=(i.length>1?i[1]:i[0]).split("."),o=0;o<3;++o){var u=parseInt(r[o]||0,10),c=parseInt(n[o]||0,10);if(u!==c)return s==="<"?u<c:s===">="?u>=c:!1}return s===">="}function Wd(t,e){var r=e.split(/ ?&& ?/);if(r.length===0)return!1;for(var i=0;i<r.length;++i)if(!YS(t,r[i]))return!1;return!0}function XS(t,e){if(typeof e=="boolean")return e;var r=typeof t>"u"?N.versions&&N.versions.node:t;if(typeof r!="string")return!1;if(e&&typeof e=="object"){for(var i=0;i<e.length;++i)if(Wd(r,e[i]))return!0;return!1}return Wd(r,e)}var Jd=Xd();zd.exports=function(e,r){return KS(Jd,e)&&XS(r,Jd[e])}});var Gd=L((D7,Hd)=>{y();m();var $r=mr(),WS=No(),je=Br(),JS=_o(),zS=Do(),$S=Lo(),HS=ts(),GS=N.platform!=="win32"&&$r.realpath&&typeof $r.realpath.native=="function"?$r.realpath.native:$r.realpath,$d=WS(),QS=function(){return[je.join($d,".node_modules"),je.join($d,".node_libraries")]},ZS=function(e,r){$r.stat(e,function(i,s){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?r(null,!1):r(i):r(null,s.isFile()||s.isFIFO())})},eE=function(e,r){$r.stat(e,function(i,s){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?r(null,!1):r(i):r(null,s.isDirectory())})},tE=function(e,r){GS(e,function(i,s){i&&i.code!=="ENOENT"?r(i):r(null,i?e:s)})},rs=function(e,r,i,s){i&&i.preserveSymlinks===!1?e(r,s):s(null,r)},rE=function(e,r,i){e(r,function(s,n){if(s)i(s);else try{var o=JSON.parse(n);i(null,o)}catch{i(null)}})},iE=function(e,r,i){for(var s=zS(r,i,e),n=0;n<s.length;n++)s[n]=je.join(s[n],e);return s};Hd.exports=function(e,r,i){var s=i,n=r;if(typeof r=="function"&&(s=n,n={}),typeof e!="string"){var o=new TypeError("Path must be a string.");return N.nextTick(function(){s(o)})}n=$S(e,n);var u=n.isFile||ZS,c=n.isDirectory||eE,p=n.readFile||$r.readFile,f=n.realpath||tE,P=n.readPackage||rE;if(n.readFile&&n.readPackage){var k=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return N.nextTick(function(){s(k)})}var D=n.packageIterator,F=n.extensions||[".js"],q=n.includeCoreModules!==!1,ae=n.basedir||je.dirname(JS()),J=n.filename||ae;n.paths=n.paths||QS();var G=je.resolve(ae);rs(f,G,n,function(te,pe){te?s(te):T(pe)});var z;function T(te){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))z=je.resolve(te,e),(e==="."||e===".."||e.slice(-1)==="/")&&(z+="/"),/\/$/.test(e)&&z===te?_e(z,n.package,Me):Ne(z,n.package,Me);else{if(q&&HS(e))return s(null,e);yt(e,te,function(pe,Oe,ye){if(pe)s(pe);else{if(Oe)return rs(f,Oe,n,function(Ve,Ie){Ve?s(Ve):s(null,Ie,ye)});var Ae=new Error("Cannot find module '"+e+"' from '"+J+"'");Ae.code="MODULE_NOT_FOUND",s(Ae)}})}}function Me(te,pe,Oe){te?s(te):pe?s(null,pe,Oe):_e(z,function(ye,Ae,Ve){if(ye)s(ye);else if(Ae)rs(f,Ae,n,function(ke,qe){ke?s(ke):s(null,qe,Ve)});else{var Ie=new Error("Cannot find module '"+e+"' from '"+J+"'");Ie.code="MODULE_NOT_FOUND",s(Ie)}})}function Ne(te,pe,Oe){var ye=pe,Ae=Oe;typeof ye=="function"&&(Ae=ye,ye=void 0);var Ve=[""].concat(F);Ie(Ve,te,ye);function Ie(ke,qe,wt){if(ke.length===0)return Ae(null,void 0,wt);var Wt=qe+ke[0],$e=wt;$e?Fe(null,$e):le(je.dirname(Wt),Fe);function Fe(It,Jt,bt){if($e=Jt,It)return Ae(It);if(bt&&$e&&n.pathFilter){var Cr=je.relative(bt,Wt),Nr=Cr.slice(0,Cr.length-ke[0].length),fr=n.pathFilter($e,qe,Nr);if(fr)return Ie([""].concat(F.slice()),je.resolve(bt,fr),$e)}u(Wt,pr)}function pr(It,Jt){if(It)return Ae(It);if(Jt)return Ae(null,Wt,$e);Ie(ke.slice(1),qe,$e)}}}function le(te,pe){if(te===""||te==="/"||N.platform==="win32"&&/^\w:[/\\]*$/.test(te)||/[/\\]node_modules[/\\]*$/.test(te))return pe(null);rs(f,te,n,function(Oe,ye){if(Oe)return le(je.dirname(te),pe);var Ae=je.join(ye,"package.json");u(Ae,function(Ve,Ie){if(!Ie)return le(je.dirname(te),pe);P(p,Ae,function(ke,qe){ke&&pe(ke);var wt=qe;wt&&n.packageFilter&&(wt=n.packageFilter(wt,Ae)),pe(null,wt,te)})})})}function _e(te,pe,Oe){var ye=Oe,Ae=pe;typeof Ae=="function"&&(ye=Ae,Ae=n.package),rs(f,te,n,function(Ve,Ie){if(Ve)return ye(Ve);var ke=je.join(Ie,"package.json");u(ke,function(qe,wt){if(qe)return ye(qe);if(!wt)return Ne(je.join(te,"index"),Ae,ye);P(p,ke,function(Wt,$e){if(Wt)return ye(Wt);var Fe=$e;if(Fe&&n.packageFilter&&(Fe=n.packageFilter(Fe,ke)),Fe&&Fe.main){if(typeof Fe.main!="string"){var pr=new TypeError("package \u201C"+Fe.name+"\u201D `main` must be a string");return pr.code="INVALID_PACKAGE_MAIN",ye(pr)}(Fe.main==="."||Fe.main==="./")&&(Fe.main="index"),Ne(je.resolve(te,Fe.main),Fe,function(It,Jt,bt){if(It)return ye(It);if(Jt)return ye(null,Jt,bt);if(!bt)return Ne(je.join(te,"index"),bt,ye);var Cr=je.resolve(te,bt.main);_e(Cr,bt,function(Nr,fr,li){if(Nr)return ye(Nr);if(fr)return ye(null,fr,li);Ne(je.join(te,"index"),li,ye)})});return}Ne(je.join(te,"/index"),Fe,ye)})})})}function ce(te,pe){if(pe.length===0)return te(null,void 0);var Oe=pe[0];c(je.dirname(Oe),ye);function ye(Ie,ke){if(Ie)return te(Ie);if(!ke)return ce(te,pe.slice(1));Ne(Oe,n.package,Ae)}function Ae(Ie,ke,qe){if(Ie)return te(Ie);if(ke)return te(null,ke,qe);_e(Oe,n.package,Ve)}function Ve(Ie,ke,qe){if(Ie)return te(Ie);if(ke)return te(null,ke,qe);ce(te,pe.slice(1))}}function yt(te,pe,Oe){var ye=function(){return iE(te,pe,n)};ce(Oe,D?D(te,pe,ye,n):ye())}}});var Qd=L((F7,sE)=>{sE.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var ry=L((B7,ty)=>{"use strict";y();m();var nE=ts(),Zd=Qd(),ey={};for(Nn in Zd)Object.prototype.hasOwnProperty.call(Zd,Nn)&&(ey[Nn]=nE(Nn));var Nn;ty.exports=ey});var sy=L((U7,iy)=>{y();m();var aE=ts();iy.exports=function(e){return aE(e)}});var oy=L((K7,ay)=>{y();m();var oE=ts(),Hr=mr(),Qe=Br(),uE=No(),lE=_o(),cE=Do(),pE=Lo(),fE=N.platform!=="win32"&&Hr.realpathSync&&typeof Hr.realpathSync.native=="function"?Hr.realpathSync.native:Hr.realpathSync,ny=uE(),hE=function(){return[Qe.join(ny,".node_modules"),Qe.join(ny,".node_libraries")]},dE=function(e){try{var r=Hr.statSync(e,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!r&&(r.isFile()||r.isFIFO())},yE=function(e){try{var r=Hr.statSync(e,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!r&&r.isDirectory()},mE=function(e){try{return fE(e)}catch(r){if(r.code!=="ENOENT")throw r}return e},is=function(e,r,i){return i&&i.preserveSymlinks===!1?e(r):r},TE=function(e,r){var i=e(r);try{var s=JSON.parse(i);return s}catch{}},xE=function(e,r,i){for(var s=cE(r,i,e),n=0;n<s.length;n++)s[n]=Qe.join(s[n],e);return s};ay.exports=function(e,r){if(typeof e!="string")throw new TypeError("Path must be a string.");var i=pE(e,r),s=i.isFile||dE,n=i.readFileSync||Hr.readFileSync,o=i.isDirectory||yE,u=i.realpathSync||mE,c=i.readPackageSync||TE;if(i.readFileSync&&i.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=i.packageIterator,f=i.extensions||[".js"],P=i.includeCoreModules!==!1,k=i.basedir||Qe.dirname(lE()),D=i.filename||k;i.paths=i.paths||hE();var F=is(u,Qe.resolve(k),i);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var q=Qe.resolve(F,e);(e==="."||e===".."||e.slice(-1)==="/")&&(q+="/");var ae=z(q)||Me(q);if(ae)return is(u,ae,i)}else{if(P&&oE(e))return e;var J=Ne(e,F);if(J)return is(u,J,i)}var G=new Error("Cannot find module '"+e+"' from '"+D+"'");throw G.code="MODULE_NOT_FOUND",G;function z(le){var _e=T(Qe.dirname(le));if(_e&&_e.dir&&_e.pkg&&i.pathFilter){var ce=Qe.relative(_e.dir,le),yt=i.pathFilter(_e.pkg,le,ce);yt&&(le=Qe.resolve(_e.dir,yt))}if(s(le))return le;for(var te=0;te<f.length;te++){var pe=le+f[te];if(s(pe))return pe}}function T(le){if(!(le===""||le==="/")&&!(N.platform==="win32"&&/^\w:[/\\]*$/.test(le))&&!/[/\\]node_modules[/\\]*$/.test(le)){var _e=Qe.join(is(u,le,i),"package.json");if(!s(_e))return T(Qe.dirname(le));var ce=c(n,_e);return ce&&i.packageFilter&&(ce=i.packageFilter(ce,le)),{pkg:ce,dir:le}}}function Me(le){var _e=Qe.join(is(u,le,i),"/package.json");if(s(_e)){try{var ce=c(n,_e)}catch{}if(ce&&i.packageFilter&&(ce=i.packageFilter(ce,le)),ce&&ce.main){if(typeof ce.main!="string"){var yt=new TypeError("package \u201C"+ce.name+"\u201D `main` must be a string");throw yt.code="INVALID_PACKAGE_MAIN",yt}(ce.main==="."||ce.main==="./")&&(ce.main="index");try{var te=z(Qe.resolve(le,ce.main));if(te)return te;var pe=Me(Qe.resolve(le,ce.main));if(pe)return pe}catch{}}}return z(Qe.join(le,"/index"))}function Ne(le,_e){for(var ce=function(){return xE(le,_e,i)},yt=p?p(le,_e,ce,i):ce(),te=0;te<yt.length;te++){var pe=yt[te];if(o(Qe.dirname(pe))){var Oe=z(pe);if(Oe)return Oe;var ye=Me(pe);if(ye)return ye}}}}});var ly=L((W7,uy)=>{y();m();var _n=Gd();_n.core=ry();_n.isCore=sy();_n.sync=oy();uy.exports=_n});var Mo=L(($7,py)=>{"use strict";y();m();var bE=gd(),gE=ly();py.exports=cy;function SE(t){switch(t){case"js":return"uglify-js";case"css":return"clean-css"}}function cy(t,e,r,i,s){s=s||"render";var n;try{try{n=gE.sync("jstransformer-"+t,{basedir:i||N.cwd()})}catch{n=Pa.resolve("jstransformer-"+t)}}catch{var o=new Error('unknown filter ":'+t+'"');throw o.code="UNKNOWN_FILTER",o}var u=bE(Pa(n)),c=u[s](e,r,r).body;if(r&&r.minify){var p=SE(u.outputFormat);if(p)try{c=cy(p,c,null,i)}catch{}}return c}});var Tu=L(ds=>{"use strict";y();m();Object.defineProperty(ds,"__esModule",{value:!0});function Iy(t,e){if(t==null)return{};var r={},i=Object.keys(t),s,n;for(n=0;n<i.length;n++)s=i[n],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}var qt=class{constructor(e,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=r,this.index=i}},Oi=class{constructor(e,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=r}};function at(t,e){let{line:r,column:i,index:s}=t;return new qt(r,i+e,s+e)}var fy="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",EE={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:fy},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:fy}},hy={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Dn=t=>t.type==="UpdateExpression"?hy.UpdateExpression[`${t.prefix}`]:hy[t.type],vE={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
50
|
+
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
51
|
+
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${t===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Dn(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Dn(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Dn(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},PE={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},AE=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),wE={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Dn({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},IE=["toMessage"],CE=["message"];function dy(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function NE(t){let{toMessage:e}=t,r=Iy(t,IE);return function i(s,n){let o=new SyntaxError;return Object.assign(o,r,{loc:s,pos:s.index}),"missingPlugin"in n&&Object.assign(o,{missingPlugin:n.missingPlugin}),dy(o,"clone",function(c={}){var p;let{line:f,column:P,index:k}=(p=c.loc)!=null?p:s;return i(new qt(f,P,k),Object.assign({},n,c.details))}),dy(o,"details",n),Object.defineProperty(o,"message",{configurable:!0,get(){let u=`${e(n)} (${s.line}:${s.column})`;return this.message=u,u},set(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),o}}function ir(t,e){if(Array.isArray(t))return i=>ir(i,t[0]);let r={};for(let i of Object.keys(t)){let s=t[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:o}=n,u=Iy(n,CE),c=typeof o=="string"?()=>o:o;r[i]=NE(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},e?{syntaxPlugin:e}:{},u))}return r}var _=Object.assign({},ir(EE),ir(vE),ir(PE),ir`pipelineOperator`(wE)),{defineProperty:_E}=Object,yy=(t,e)=>_E(t,e,{enumerable:!1,value:t[e]});function ss(t){return t.loc.start&&yy(t.loc.start,"index"),t.loc.end&&yy(t.loc.end,"index"),t}var OE=t=>class extends t{parse(){let r=ss(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(ss)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let i=r.value;delete r.value,i.type="Literal",i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=r;return s.type="ExpressionStatement",s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,o){super.parseBlockBody(r,i,s,n,o);let u=r.directives.map(c=>this.directiveToStmt(c));r.body=u.concat(r.body),delete r.directives}pushClassMethod(r,i,s,n,o,u){this.parseMethod(i,s,n,o,u,"ClassMethod",!0),i.typeParameters&&(i.value.typeParameters=i.typeParameters,delete i.typeParameters),r.body.push(i)}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=i,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,o,u,c=!1){let p=this.startNode();return p.kind=r.kind,p=super.parseMethod(p,i,s,n,o,u,c),p.type="FunctionExpression",delete p.kind,r.value=p,u==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition",i.computed=!1),i}parseObjectMethod(r,i,s,n,o){let u=super.parseObjectMethod(r,i,s,n,o);return u&&(u.type="Property",u.kind==="method"&&(u.kind="init"),u.shorthand=!1),u}parseObjectProperty(r,i,s,n){let o=super.parseObjectProperty(r,i,s,n);return o&&(o.kind="init",o.type="Property"),o}isValidLVal(r,i,s){return r==="Property"?"value":super.isValidLVal(r,i,s)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(_.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(_.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){if(s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var n,o;s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(o=s.arguments[1])!=null?o:null}delete s.arguments,delete s.callee}return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var o;let{declaration:u}=n;u?.type==="ClassDeclaration"&&((o=u.decorators)==null?void 0:o.length)>0&&u.start===n.start&&this.resetStartLocation(n,s)}break}return n}parseSubscript(r,i,s,n){let o=super.parseSubscript(r,i,s,n);if(n.optionalChainMember){if((o.type==="OptionalMemberExpression"||o.type==="OptionalCallExpression")&&(o.type=o.type.substring(8)),n.stop){let u=this.startNodeAtNode(o);return u.expression=o,this.finishNode(u,"ChainExpression")}}else(o.type==="MemberExpression"||o.type==="CallExpression")&&(o.optional=!1);return o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,i,s){return ss(super.finishNodeAt(r,i,s))}resetStartLocation(r,i){super.resetStartLocation(r,i),ss(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),ss(r)}},Zr=class{constructor(e,r){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!r}},we={brace:new Zr("{"),j_oTag:new Zr("<tag"),j_cTag:new Zr("</tag"),j_expr:new Zr("<tag>...</tag>",!0)};we.template=new Zr("`",!0);var de=!0,X=!0,Fo=!0,ns=!0,xr=!0,kE=!0,Bn=class{constructor(e,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},ou=new Map;function be(t,e={}){e.keyword=t;let r=Q(t,e);return ou.set(t,r),r}function nt(t,e){return Q(t,{beforeExpr:de,binop:e})}var ls=-1,tr=[],uu=[],lu=[],cu=[],pu=[],fu=[];function Q(t,e={}){var r,i,s,n;return++ls,uu.push(t),lu.push((r=e.binop)!=null?r:-1),cu.push((i=e.beforeExpr)!=null?i:!1),pu.push((s=e.startsExpr)!=null?s:!1),fu.push((n=e.prefix)!=null?n:!1),tr.push(new Bn(t,e)),ls}function he(t,e={}){var r,i,s,n;return++ls,ou.set(t,ls),uu.push(t),lu.push((r=e.binop)!=null?r:-1),cu.push((i=e.beforeExpr)!=null?i:!1),pu.push((s=e.startsExpr)!=null?s:!1),fu.push((n=e.prefix)!=null?n:!1),tr.push(new Bn("name",e)),ls}var DE={bracketL:Q("[",{beforeExpr:de,startsExpr:X}),bracketHashL:Q("#[",{beforeExpr:de,startsExpr:X}),bracketBarL:Q("[|",{beforeExpr:de,startsExpr:X}),bracketR:Q("]"),bracketBarR:Q("|]"),braceL:Q("{",{beforeExpr:de,startsExpr:X}),braceBarL:Q("{|",{beforeExpr:de,startsExpr:X}),braceHashL:Q("#{",{beforeExpr:de,startsExpr:X}),braceR:Q("}"),braceBarR:Q("|}"),parenL:Q("(",{beforeExpr:de,startsExpr:X}),parenR:Q(")"),comma:Q(",",{beforeExpr:de}),semi:Q(";",{beforeExpr:de}),colon:Q(":",{beforeExpr:de}),doubleColon:Q("::",{beforeExpr:de}),dot:Q("."),question:Q("?",{beforeExpr:de}),questionDot:Q("?."),arrow:Q("=>",{beforeExpr:de}),template:Q("template"),ellipsis:Q("...",{beforeExpr:de}),backQuote:Q("`",{startsExpr:X}),dollarBraceL:Q("${",{beforeExpr:de,startsExpr:X}),templateTail:Q("...`",{startsExpr:X}),templateNonTail:Q("...${",{beforeExpr:de,startsExpr:X}),at:Q("@"),hash:Q("#",{startsExpr:X}),interpreterDirective:Q("#!..."),eq:Q("=",{beforeExpr:de,isAssign:ns}),assign:Q("_=",{beforeExpr:de,isAssign:ns}),slashAssign:Q("_=",{beforeExpr:de,isAssign:ns}),xorAssign:Q("_=",{beforeExpr:de,isAssign:ns}),moduloAssign:Q("_=",{beforeExpr:de,isAssign:ns}),incDec:Q("++/--",{prefix:xr,postfix:kE,startsExpr:X}),bang:Q("!",{beforeExpr:de,prefix:xr,startsExpr:X}),tilde:Q("~",{beforeExpr:de,prefix:xr,startsExpr:X}),doubleCaret:Q("^^",{startsExpr:X}),doubleAt:Q("@@",{startsExpr:X}),pipeline:nt("|>",0),nullishCoalescing:nt("??",1),logicalOR:nt("||",1),logicalAND:nt("&&",2),bitwiseOR:nt("|",3),bitwiseXOR:nt("^",4),bitwiseAND:nt("&",5),equality:nt("==/!=/===/!==",6),lt:nt("</>/<=/>=",7),gt:nt("</>/<=/>=",7),relational:nt("</>/<=/>=",7),bitShift:nt("<</>>/>>>",8),bitShiftL:nt("<</>>/>>>",8),bitShiftR:nt("<</>>/>>>",8),plusMin:Q("+/-",{beforeExpr:de,binop:9,prefix:xr,startsExpr:X}),modulo:Q("%",{binop:10,startsExpr:X}),star:Q("*",{binop:10}),slash:nt("/",10),exponent:Q("**",{beforeExpr:de,binop:11,rightAssociative:!0}),_in:be("in",{beforeExpr:de,binop:7}),_instanceof:be("instanceof",{beforeExpr:de,binop:7}),_break:be("break"),_case:be("case",{beforeExpr:de}),_catch:be("catch"),_continue:be("continue"),_debugger:be("debugger"),_default:be("default",{beforeExpr:de}),_else:be("else",{beforeExpr:de}),_finally:be("finally"),_function:be("function",{startsExpr:X}),_if:be("if"),_return:be("return",{beforeExpr:de}),_switch:be("switch"),_throw:be("throw",{beforeExpr:de,prefix:xr,startsExpr:X}),_try:be("try"),_var:be("var"),_const:be("const"),_with:be("with"),_new:be("new",{beforeExpr:de,startsExpr:X}),_this:be("this",{startsExpr:X}),_super:be("super",{startsExpr:X}),_class:be("class",{startsExpr:X}),_extends:be("extends",{beforeExpr:de}),_export:be("export"),_import:be("import",{startsExpr:X}),_null:be("null",{startsExpr:X}),_true:be("true",{startsExpr:X}),_false:be("false",{startsExpr:X}),_typeof:be("typeof",{beforeExpr:de,prefix:xr,startsExpr:X}),_void:be("void",{beforeExpr:de,prefix:xr,startsExpr:X}),_delete:be("delete",{beforeExpr:de,prefix:xr,startsExpr:X}),_do:be("do",{isLoop:Fo,beforeExpr:de}),_for:be("for",{isLoop:Fo}),_while:be("while",{isLoop:Fo}),_as:he("as",{startsExpr:X}),_assert:he("assert",{startsExpr:X}),_async:he("async",{startsExpr:X}),_await:he("await",{startsExpr:X}),_defer:he("defer",{startsExpr:X}),_from:he("from",{startsExpr:X}),_get:he("get",{startsExpr:X}),_let:he("let",{startsExpr:X}),_meta:he("meta",{startsExpr:X}),_of:he("of",{startsExpr:X}),_sent:he("sent",{startsExpr:X}),_set:he("set",{startsExpr:X}),_source:he("source",{startsExpr:X}),_static:he("static",{startsExpr:X}),_using:he("using",{startsExpr:X}),_yield:he("yield",{startsExpr:X}),_asserts:he("asserts",{startsExpr:X}),_checks:he("checks",{startsExpr:X}),_exports:he("exports",{startsExpr:X}),_global:he("global",{startsExpr:X}),_implements:he("implements",{startsExpr:X}),_intrinsic:he("intrinsic",{startsExpr:X}),_infer:he("infer",{startsExpr:X}),_is:he("is",{startsExpr:X}),_mixins:he("mixins",{startsExpr:X}),_proto:he("proto",{startsExpr:X}),_require:he("require",{startsExpr:X}),_satisfies:he("satisfies",{startsExpr:X}),_keyof:he("keyof",{startsExpr:X}),_readonly:he("readonly",{startsExpr:X}),_unique:he("unique",{startsExpr:X}),_abstract:he("abstract",{startsExpr:X}),_declare:he("declare",{startsExpr:X}),_enum:he("enum",{startsExpr:X}),_module:he("module",{startsExpr:X}),_namespace:he("namespace",{startsExpr:X}),_interface:he("interface",{startsExpr:X}),_type:he("type",{startsExpr:X}),_opaque:he("opaque",{startsExpr:X}),name:Q("name",{startsExpr:X}),string:Q("string",{startsExpr:X}),num:Q("num",{startsExpr:X}),bigint:Q("bigint",{startsExpr:X}),decimal:Q("decimal",{startsExpr:X}),regexp:Q("regexp",{startsExpr:X}),privateName:Q("#name",{startsExpr:X}),eof:Q("eof"),jsxName:Q("jsxName"),jsxText:Q("jsxText",{beforeExpr:!0}),jsxTagStart:Q("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Q("jsxTagEnd"),placeholder:Q("%%",{startsExpr:!0})};function Ee(t){return t>=93&&t<=132}function LE(t){return t<=92}function Nt(t){return t>=58&&t<=132}function Cy(t){return t>=58&&t<=136}function ME(t){return cu[t]}function Vo(t){return pu[t]}function FE(t){return t>=29&&t<=33}function my(t){return t>=129&&t<=131}function BE(t){return t>=90&&t<=92}function hu(t){return t>=58&&t<=92}function RE(t){return t>=39&&t<=59}function jE(t){return t===34}function UE(t){return fu[t]}function VE(t){return t>=121&&t<=123}function qE(t){return t>=124&&t<=130}function gr(t){return uu[t]}function Ln(t){return lu[t]}function KE(t){return t===57}function Rn(t){return t>=24&&t<=25}function er(t){return tr[t]}tr[8].updateContext=t=>{t.pop()},tr[5].updateContext=tr[7].updateContext=tr[23].updateContext=t=>{t.push(we.brace)},tr[22].updateContext=t=>{t[t.length-1]===we.template?t.pop():t.push(we.template)},tr[142].updateContext=t=>{t.push(we.j_expr,we.j_oTag)};var du="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u09FC\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",Ny="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",YE=new RegExp("["+du+"]"),XE=new RegExp("["+du+Ny+"]");du=Ny=null;var _y=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],WE=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function qo(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function rr(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&YE.test(String.fromCharCode(t)):qo(t,_y)}function Ni(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&XE.test(String.fromCharCode(t)):qo(t,_y)||qo(t,WE)}var yu={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},JE=new Set(yu.keyword),zE=new Set(yu.strict),$E=new Set(yu.strictBind);function Oy(t,e){return e&&t==="await"||t==="enum"}function ky(t,e){return Oy(t,e)||zE.has(t)}function Dy(t){return $E.has(t)}function Ly(t,e){return ky(t,e)||Dy(t)}function HE(t){return JE.has(t)}function GE(t,e,r){return t===64&&e===64&&rr(r)}var QE=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function ZE(t){return QE.has(t)}var ps=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},fs=class{constructor(e,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ps(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,e,r,i);let n=s.names.get(e)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=e),n=n|2),s.names.set(e,n),r&8&&this.maybeExportDefined(s,e)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,e,r,i),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),!(s.flags&387));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,r){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(e,r,i,s){this.isRedeclaredInScope(e,r,i)&&this.parser.raise(_.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(e,r,i){if(!(i&1))return!1;if(i&8)return e.names.has(r);let s=e.names.get(r);return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0:(s&2)>0&&!(e.flags&8&&e.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:r}=e;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&387)return r}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:r}=this.scopeStack[e];if(r&451&&!(r&4))return r}}},Ko=class extends ps{constructor(...e){super(...e),this.declareFunctions=new Set}},Yo=class extends fs{createScope(e){return new Ko(e)}declareName(e,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,r,i)}isRedeclaredInScope(e,r,i){if(super.isRedeclaredInScope(e,r,i))return!0;if(i&2048&&!e.declareFunctions.has(r)){let s=e.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},Xo=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[r,i]=e;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(e,r){var i;return(i=this.plugins.get(e))==null?void 0:i[r]}};function My(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function e1(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function hs(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function as(t,e,r){let i=null,s=e.length;for(;i===null&&s>0;)i=e[--s];i===null||i.start>r.start?hs(t,r.comments):My(i,r.comments)}var Wo=class extends Xo{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===e.end&&(n.leadingNode=e,s--);let{start:o}=e;for(;s>=0;s--){let u=r[s],c=u.end;if(c>o)u.containingNode=e,this.finalizeComment(u),r.splice(s,1);else{c===o&&(u.trailingNode=e);break}}}finalizeComment(e){let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&My(e.leadingNode,r),e.trailingNode!==null&&e1(e.trailingNode,r);else{let{containingNode:i,start:s}=e;if(this.input.charCodeAt(s-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":as(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":as(i,i.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":as(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":as(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":as(i,i.specifiers,e);break;default:hs(i,r)}else hs(i,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let r=e.length-1;r>=0;r--)this.finalizeComment(e[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===e&&(s.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:r}=this.state,{length:i}=r;i!==0&&(r[i-1].trailingNode===e?r[i-1].trailingNode=null:i>=2&&r[i-2].trailingNode===e&&(r[i-2].trailingNode=null))}takeSurroundingComments(e,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let o=n-1;for(;o>=0;o--){let u=s[o],c=u.end;if(u.start===i)u.leadingNode=e;else if(c===r)u.trailingNode=e;else if(c<r)break}}},Fy=/\r\n?|[\n\u2028\u2029]/,On=new RegExp(Fy.source,"g");function cs(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var Bo=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Mn=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Ty=new RegExp("(?=("+Mn.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function t1(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Jo=class t{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[we.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:r,startLine:i,startColumn:s}){this.strict=e===!1?!1:e===!0?!0:r==="module",this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new qt(i,s,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new qt(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let e=new t;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},r1=function(e){return e>=48&&e<=57},xy={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},kn={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function by(t,e,r,i,s,n){let o=r,u=i,c=s,p="",f=null,P=r,{length:k}=e;for(;;){if(r>=k){n.unterminated(o,u,c),p+=e.slice(P,r);break}let D=e.charCodeAt(r);if(i1(t,D,e,r)){p+=e.slice(P,r);break}if(D===92){p+=e.slice(P,r);let F=s1(e,r,i,s,t==="template",n);F.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:p+=F.ch,{pos:r,lineStart:i,curLine:s}=F,P=r}else D===8232||D===8233?(++r,++s,i=r):D===10||D===13?t==="template"?(p+=e.slice(P,r)+`
|
|
52
|
+
`,++r,D===13&&e.charCodeAt(r)===10&&++r,++s,P=i=r):n.unterminated(o,u,c):++r}return{pos:r,str:p,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function i1(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function s1(t,e,r,i,s,n){let o=!s;e++;let u=p=>({pos:e,ch:p,lineStart:r,curLine:i}),c=t.charCodeAt(e++);switch(c){case 110:return u(`
|
|
53
|
+
`);case 114:return u("\r");case 120:{let p;return{code:p,pos:e}=zo(t,e,r,i,2,!1,o,n),u(p===null?null:String.fromCharCode(p))}case 117:{let p;return{code:p,pos:e}=Ry(t,e,r,i,o,n),u(p===null?null:String.fromCodePoint(p))}case 116:return u(" ");case 98:return u("\b");case 118:return u("\v");case 102:return u("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return u("");case 56:case 57:if(s)return u(null);n.strictNumericEscape(e-1,r,i);default:if(c>=48&&c<=55){let p=e-1,P=t.slice(p,e+2).match(/^[0-7]+/)[0],k=parseInt(P,8);k>255&&(P=P.slice(0,-1),k=parseInt(P,8)),e+=P.length-1;let D=t.charCodeAt(e);if(P!=="0"||D===56||D===57){if(s)return u(null);n.strictNumericEscape(p,r,i)}return u(String.fromCharCode(k))}return u(String.fromCharCode(c))}}function zo(t,e,r,i,s,n,o,u){let c=e,p;return{n:p,pos:e}=By(t,e,r,i,16,s,n,!1,u,!o),p===null&&(o?u.invalidEscapeSequence(c,r,i):e=c-1),{code:p,pos:e}}function By(t,e,r,i,s,n,o,u,c,p){let f=e,P=s===16?xy.hex:xy.decBinOct,k=s===16?kn.hex:s===10?kn.dec:s===8?kn.oct:kn.bin,D=!1,F=0;for(let q=0,ae=n??1/0;q<ae;++q){let J=t.charCodeAt(e),G;if(J===95&&u!=="bail"){let z=t.charCodeAt(e-1),T=t.charCodeAt(e+1);if(u){if(Number.isNaN(T)||!k(T)||P.has(z)||P.has(T)){if(p)return{n:null,pos:e};c.unexpectedNumericSeparator(e,r,i)}}else{if(p)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,r,i)}++e;continue}if(J>=97?G=J-97+10:J>=65?G=J-65+10:r1(J)?G=J-48:G=1/0,G>=s){if(G<=9&&p)return{n:null,pos:e};if(G<=9&&c.invalidDigit(e,r,i,s))G=0;else if(o)G=0,D=!0;else break}++e,F=F*s+G}return e===f||n!=null&&e-f!==n||D?{n:null,pos:e}:{n:F,pos:e}}function Ry(t,e,r,i,s,n){let o=t.charCodeAt(e),u;if(o===123){if(++e,{code:u,pos:e}=zo(t,e,r,i,t.indexOf("}",e)-e,!0,s,n),++e,u!==null&&u>1114111)if(s)n.invalidCodePoint(e,r,i);else return{code:null,pos:e}}else({code:u,pos:e}=zo(t,e,r,i,4,!1,s,n));return{code:u,pos:e}}function os(t,e,r){return new qt(r,t-e,t)}var n1=new Set([103,109,115,105,121,117,100,118]),Vt=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new Oi(e.startLoc,e.endLoc)}},$o=class extends Wo{constructor(e,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,o)=>this.options.errorRecovery?(this.raise(_.InvalidDigit,os(i,s,n),{radix:o}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(_.StrictNumericEscape,os(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(_.UnterminatedString,os(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(_.UnterminatedTemplate,os(i,s,n))}}),this.state=new Jo,this.state.init(e),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Vt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=e,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Bo.lastIndex=e,Bo.test(this.input)?Bo.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Mn.lastIndex=e,Mn.test(this.input)?Mn.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let r=this.input.charCodeAt(e);if((r&64512)===55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(e,i+2);if(s===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+e.length,On.lastIndex=i+2;On.test(this.input)&&On.lastIndex<=s;)++this.state.curLine,this.state.lineStart=On.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:i,end:s+e.length,loc:new Oi(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}skipLineComment(e){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!cs(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,u={type:"CommentLine",value:this.input.slice(r+e,n),start:r,end:n,loc:new Oi(i,this.state.curPosition())};return this.options.tokens&&this.pushToken(u),u}skipSpace(){let e=this.state.pos,r=[];e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}default:break e}break;default:if(t1(i))++this.state.pos;else if(i===45&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),this.options.attachComment&&r.push(n))}else break e}else if(i===60&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),this.options.attachComment&&r.push(n))}else break e}else break e}}if(r.length>0){let i=this.state.pos,s={start:e,end:i,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,r=this.codePointAtPos(e);if(r>=48&&r<=57)throw this.raise(_.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else rr(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!cs(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let r=e===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);e===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=e===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===e){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,r=this.input.charCodeAt(e+1);if(r===62){let i=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);e===63?r===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(rr(e)){this.readWord(e);return}}throw this.raise(_.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(_.UnterminatedRegExp,at(e,1));let p=this.input.charCodeAt(n);if(cs(p))throw this.raise(_.UnterminatedRegExp,at(e,1));if(i)i=!1;else{if(p===91)s=!0;else if(p===93&&s)s=!1;else if(p===47&&!s)break;i=p===92}}let o=this.input.slice(r,n);++n;let u="",c=()=>at(e,n+2-r);for(;n<this.length;){let p=this.codePointAtPos(n),f=String.fromCharCode(p);if(n1.has(p))p===118?u.includes("u")&&this.raise(_.IncompatibleRegExpUVFlags,c()):p===117&&u.includes("v")&&this.raise(_.IncompatibleRegExpUVFlags,c()),u.includes(f)&&this.raise(_.DuplicateRegExpFlags,c());else if(Ni(p)||p===92)this.raise(_.MalformedRegExpFlags,c());else break;++n,u+=f}this.state.pos=n,this.finishToken(137,{pattern:o,flags:u})}readInt(e,r,i=!1,s=!0){let{n,pos:o}=By(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=o,n}readRadixNumber(e){let r=this.state.curPosition(),i=!1;this.state.pos+=2;let s=this.readInt(e);s==null&&this.raise(_.InvalidDigit,at(r,2),{radix:e});let n=this.input.charCodeAt(this.state.pos);if(n===110)++this.state.pos,i=!0;else if(n===109)throw this.raise(_.InvalidDecimal,r);if(rr(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());if(i){let o=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,o);return}this.finishToken(134,s)}readNumber(e){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,o=!1,u=!1,c=!1;!e&&this.readInt(10)===null&&this.raise(_.InvalidNumber,this.state.curPosition());let p=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(p){let D=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,i),!this.state.strict){let F=D.indexOf("_");F>0&&this.raise(_.ZeroDigitNumericSeparator,at(i,F))}c=p&&!/[89]/.test(D)}let f=this.input.charCodeAt(this.state.pos);if(f===46&&!c&&(++this.state.pos,this.readInt(10),s=!0,f=this.input.charCodeAt(this.state.pos)),(f===69||f===101)&&!c&&(f=this.input.charCodeAt(++this.state.pos),(f===43||f===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,i),s=!0,u=!0,f=this.input.charCodeAt(this.state.pos)),f===110&&((s||p)&&this.raise(_.InvalidBigIntLiteral,i),++this.state.pos,n=!0),f===109&&(this.expectPlugin("decimal",this.state.curPosition()),(u||p)&&this.raise(_.InvalidDecimal,i),++this.state.pos,o=!0),rr(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());let P=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(135,P);return}if(o){this.finishToken(136,P);return}let k=c?parseInt(P,8):parseFloat(P);this.finishToken(134,k)}readCodePoint(e){let{code:r,pos:i}=Ry(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(e){let{str:r,pos:i,curLine:s,lineStart:n}=by(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(133,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:o}=by("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=o,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new qt(i.curLine,i.pos-i.lineStart,i.pos)),this.input.codePointAt(s)===96?this.finishToken(24,i?null:e+r+"`"):(this.state.pos++,this.finishToken(25,i?null:e+r+"${"))}recordStrictModeErrors(e,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,r):this.state.strictErrors.set(i,[e,r])}readWord1(e){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(Ni(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let o=this.state.curPosition(),u=this.state.pos===i?rr:Ni;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(_.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let c=this.readCodePoint(!0);c!==null&&(u(c)||this.raise(_.EscapedCharNotAnIdentifier,o),r+=String.fromCodePoint(c)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(e){let r=this.readWord1(e),i=ou.get(r);i!==void 0?this.finishToken(i,gr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:e}=this.state;hu(e)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:gr(e)})}raise(e,r,i={}){let s=r instanceof qt?r:r.loc.start,n=e(s,i);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,r,i={}){let s=r instanceof qt?r:r.loc.start,n=s.index,o=this.state.errors;for(let u=o.length-1;u>=0;u--){let c=o[u];if(c.loc.index===n)return o[u]=e(s,i);if(c.loc.index<n)break}return this.raise(e,r,i)}updateContext(e){}unexpected(e,r){throw this.raise(_.UnexpectedToken,e??this.state.startLoc,{expected:r?gr(r):null})}expectPlugin(e,r){if(this.hasPlugin(e))return!0;throw this.raise(_.MissingPlugin,r??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(r=>this.hasPlugin(r)))throw this.raise(_.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(r,i,s)=>{this.raise(e,os(r,i,s))}}},Ho=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Go=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ho)}exit(){let e=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(e.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(_.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(e,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:o}=this.current(),u=s.has(e);if(r&3){let c=u&&n.get(e);if(c){let p=c&4,f=r&4,P=c&3,k=r&3;u=P===k||p!==f,u||n.delete(e)}else u||n.set(e,r)}u&&this.parser.raise(_.PrivateNameRedeclaration,i,{identifierName:e}),s.add(e),o.delete(e)}usePrivateName(e,r){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,r):this.parser.raise(_.InvalidPrivateFieldResolution,r,{identifierName:e})}},ki=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},jn=class extends ki{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,r){let i=r.index;this.declarationErrors.set(i,[e,r])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},Qo=class{constructor(e){this.parser=void 0,this.stack=[new ki],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,o=s[n];for(;!o.isCertainlyParameterDeclaration();){if(o.canBeArrowParameterDeclaration())o.recordDeclarationError(e,i);else return;o=s[--n]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,n);else return}recordAsyncArrowParametersError(e){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(_.AwaitBindingIdentifier,e),s=r[--i]}validateAsPattern(){let{stack:e}=this,r=e[e.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=e.length-2,o=e[n];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(s.index),o=e[--n]})}};function a1(){return new ki(3)}function o1(){return new jn(1)}function u1(){return new jn(2)}function jy(){return new ki}var Zo=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Fn(t,e){return(t?2:0)|(e?1:0)}var eu=class extends $o{addExtra(e,r,i,s=!0){if(!e)return;let n=e.extra=e.extra||{};s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,r){let i=e+r.length;if(this.input.slice(e,i)===r){let s=this.input.charCodeAt(i);return!(Ni(s)||(s&64512)===55296)}return!1}isLookaheadContextual(e){let r=this.nextTokenStart();return this.isUnparsedContextual(r,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,r){if(!this.eatContextual(e)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Fy.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return Ty.lastIndex=this.state.end,Ty.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,r){this.eat(e)||this.unexpected(r,e)}tryParse(e,r=this.state.clone()){let i={node:null};try{let s=e((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(e,r){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:o}=e,u=!!i||!!s||!!o||!!n;if(!r)return u;i!=null&&this.raise(_.InvalidCoverInitializedName,i),s!=null&&this.raise(_.DuplicateProto,s),n!=null&&this.raise(_.UnexpectedPrivateField,n),o!=null&&this.unexpected(o)}isLiteralPropertyName(){return Cy(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let n=this.scope,o=this.getScopeHandler();this.scope=new o(this,e);let u=this.prodParam;this.prodParam=new Zo;let c=this.classScope;this.classScope=new Go(this);let p=this.expressionScope;return this.expressionScope=new Qo(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=u,this.classScope=c,this.expressionScope=p}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:r}=e;r!==null&&this.expectPlugin("destructuringPrivate",r)}},_i=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},Di=class{constructor(e,r,i){this.type="",this.start=r,this.end=0,this.loc=new Oi(i),e!=null&&e.options.ranges&&(this.range=[r,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},mu=Di.prototype;mu.__clone=function(){let t=new Di(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,i=e.length;r<i;r++){let s=e[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(t[s]=this[s])}return t};function l1(t){return sr(t)}function sr(t){let{type:e,start:r,end:i,loc:s,range:n,extra:o,name:u}=t,c=Object.create(mu);return c.type=e,c.start=r,c.end=i,c.loc=s,c.range=n,c.extra=o,c.name=u,e==="Placeholder"&&(c.expectedNode=t.expectedNode),c}function c1(t){let{type:e,start:r,end:i,loc:s,range:n,extra:o}=t;if(e==="Placeholder")return l1(t);let u=Object.create(mu);return u.type=e,u.start=r,u.end=i,u.loc=s,u.range=n,t.raw!==void 0?u.raw=t.raw:u.extra=o,u.value=t.value,u}var tu=class extends eu{startNode(){let e=this.state.startLoc;return new Di(this,e.index,e)}startNodeAt(e){return new Di(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,r){return this.finishNodeAt(e,r,this.state.lastTokEndLoc)}finishNodeAt(e,r,i){return e.type=r,e.end=i.index,e.loc.end=i,this.options.ranges&&(e.range[1]=i.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,r){e.start=r.index,e.loc.start=r,this.options.ranges&&(e.range[0]=r.index)}resetEndLocation(e,r=this.state.lastTokEndLoc){e.end=r.index,e.loc.end=r,this.options.ranges&&(e.range[1]=r.index)}resetStartLocationFromNode(e,r){this.resetStartLocation(e,r.loc.start)}},p1=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ee=ir`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function f1(t){return t.type==="DeclareExportAllDeclaration"||t.type==="DeclareExportDeclaration"&&(!t.declaration||t.declaration.type!=="TypeAlias"&&t.declaration.type!=="InterfaceDeclaration")}function gy(t){return t.importKind==="type"||t.importKind==="typeof"}var h1={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function d1(t,e){let r=[],i=[];for(let s=0;s<t.length;s++)(e(t[s],s,t)?r:i).push(t[s]);return[r,i]}var y1=/\*?\s*@((?:no)?flow)\b/,m1=t=>class extends t{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Yo}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(r,i){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=y1.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(ee.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let o=this.flowParseFunctionTypeParams();return s.params=o.params,s.rest=o.rest,s.this=o._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(ee.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let u=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ee.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(u)):(this.expectContextual(125,ee.UnsupportedStatementInDeclareModule),u=this.flowParseDeclare(u,!0)),s.push(u)}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,o=!1;return s.forEach(u=>{f1(u)?(n==="CommonJS"&&this.raise(ee.AmbiguousDeclareModuleKind,u),n="ES"):u.type==="DeclareModuleExports"&&(o&&this.raise(ee.DuplicateDeclareModuleExports,u),n==="ES"&&this.raise(ee.AmbiguousDeclareModuleKind,u),n="CommonJS",o=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(ee.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:h1[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return i.type="DeclareOpaqueType",i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ee.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){p1.has(r)&&this.raise(s?ee.AssignReservedType:ee.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance(),o=this.flowParseTypeAnnotatableIdentifier();return s.name=o.name,s.variance=n,s.bound=o.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(ee.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:o}){let u=this.state.inType;this.state.inType=!0;let c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];let p,f,P=!1;for(i&&this.match(6)?(this.expect(6),p=9,f=!0):(this.expect(5),p=8,f=!1),c.exact=f;!this.match(p);){let D=!1,F=null,q=null,ae=this.startNode();if(n&&this.isContextual(118)){let G=this.lookahead();G.type!==14&&G.type!==17&&(this.next(),F=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let G=this.lookahead();G.type!==14&&G.type!==17&&(this.next(),D=!0)}let J=this.flowParseVariance();if(this.eat(0))F!=null&&this.unexpected(F),this.eat(0)?(J&&this.unexpected(J.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(ae,D))):c.indexers.push(this.flowParseObjectTypeIndexer(ae,D,J));else if(this.match(10)||this.match(47))F!=null&&this.unexpected(F),J&&this.unexpected(J.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(ae,D));else{let G="init";if(this.isContextual(99)||this.isContextual(104)){let T=this.lookahead();Cy(T.type)&&(G=this.state.value,this.next())}let z=this.flowParseObjectTypeProperty(ae,D,F,J,G,s,o??!f);z===null?(P=!0,q=this.state.lastTokStartLoc):c.properties.push(z)}this.flowObjectTypeSemicolon(),q&&!this.match(8)&&!this.match(9)&&this.raise(ee.UnexpectedExplicitInexactInObject,q)}this.expect(p),s&&(c.inexact=P);let k=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=u,k}flowParseObjectTypeProperty(r,i,s,n,o,u,c){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(u?c||this.raise(ee.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ee.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(ee.InexactVariance,n),null):(u||this.raise(ee.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(ee.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=o;let p=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(o==="get"||o==="set")&&this.flowCheckGetterSetterParams(r),!u&&r.key.name==="constructor"&&r.value.this&&this.raise(ee.ThisParamBannedInConstructor,r.value.this)):(o!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(p=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=p,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ee.GetterMayNotHaveThisParam:ee.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?_.BadGetterArity:_.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(_.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){var s;(s=r)!=null||(r=this.state.startLoc);let n=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let o=this.startNodeAt(r);o.qualification=n,o.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(o,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,o=this.startNode(),u=this.lookahead(),c=this.state.type===78;return u.type===14||u.type===17?(c&&!r&&this.raise(ee.ThisParamMustBeFirst,o),i=this.parseIdentifier(c),this.eat(17)&&(s=!0,c&&this.raise(ee.ThisParamMayNotBeOptional,o)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),o.name=i,o.optional=s,o.typeAnnotation=n,this.finishNode(o,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,o=!1,u=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=u,n;case 47:{let c=this.startNode();return c.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),c.params=s.params,c.rest=s.rest,c.this=s._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),this.finishNode(c,"FunctionTypeAnnotation")}case 10:{let c=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ee(this.state.type)||this.match(78)){let p=this.lookahead().type;o=p!==17&&p!==14}else o=!0;if(o){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=u,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),c.params=s.params,c.rest=s.rest,c.this=s._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),c.typeParameters=null,this.finishNode(c,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(ee.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(hu(this.state.type)){let c=gr(this.state.type);return this.next(),super.createIdentifier(i,c)}else if(Ee(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),o=this.eat(18);s=s||o,this.expect(0),!o&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=o,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){let i=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),i}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(Nt(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Ee(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ee(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return my(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return my(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let k=this.lookaheadCharCode();if(k===44||k===61||k===58||k===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),o=this.state.noArrowAt,u=this.startNodeAt(i),{consequent:c,failed:p}=this.tryParseConditionalConsequent(),[f,P]=this.getArrowLikeExpressions(c);if(p||P.length>0){let k=[...o];if(P.length>0){this.state=n,this.state.noArrowAt=k;for(let D=0;D<P.length;D++)k.push(P[D].start);({consequent:c,failed:p}=this.tryParseConditionalConsequent()),[f,P]=this.getArrowLikeExpressions(c)}p&&f.length>1&&this.raise(ee.AmbiguousConditionalArrow,n.startLoc),p&&f.length===1&&(this.state=n,k.push(f[0].start),this.state.noArrowAt=k,{consequent:c,failed:p}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=o,this.expect(14),u.test=r,u.consequent=c,u.alternate=this.forwardNoArrowParamsConversionAt(u,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(u,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let o=s.pop();o.type==="ArrowFunctionExpression"&&o.body.type!=="BlockStatement"?(o.typeParameters||!o.returnType?this.finishArrowValidation(o):n.push(o),s.push(o.body)):o.type==="ConditionalExpression"&&(s.push(o.consequent),s.push(o.alternate))}return i?(n.forEach(o=>this.finishArrowValidation(o)),[n,[]]):d1(n,o=>o.params.every(u=>this.isAssignable(u,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.shouldParseEnums()&&this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(ee.DeclareClassElement,n):i.value&&this.raise(ee.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(_.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):GE(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let o=r[n];o?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(o))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let o=r[n];o&&o.type==="TypeCastExpression"&&!((s=o.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(ee.TypeCastInPattern,o.typeAnnotation)}return r}parseArrayLike(r,i,s,n){let o=super.parseArrayLike(r,i,s,n);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(o.elements),o}isValidLVal(r,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,o,u){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,o,u),i.params&&o){let c=i.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ee.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&o&&i.value.params){let c=i.value.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ee.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(ee.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(ee.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,o,u,c){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let p;this.match(47)&&!u&&(p=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(r,i,s,n,o,u,c);return p&&((f.value||f).typeParameters=p),f}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ee.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ee.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ee.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ee.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(ee.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ee.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=gy(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,o){let u=r.imported,c=null;u.type==="Identifier"&&(u.name==="type"?c="type":u.name==="typeof"&&(c="typeof"));let p=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let P=this.parseIdentifier(!0);c!==null&&!Nt(this.state.type)?(r.imported=P,r.importKind=c,r.local=sr(P)):(r.imported=u,r.importKind=null,r.local=this.parseIdentifier())}else{if(c!==null&&Nt(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=c;else{if(i)throw this.raise(_.ImportBindingIsString,r,{importName:u.value});r.imported=u,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(p=!0,r.local=sr(r.imported))}let f=gy(r);return s&&f&&this.raise(ee.ImportTypeShorthandOnlyInPureImport,r),(s||f)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),p&&!s&&!f&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,o;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(n=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!o.error)return o.node;let{context:p}=this.state,f=p[p.length-1];(f===we.j_oTag||f===we.j_expr)&&p.pop()}if((s=o)!=null&&s.error||this.match(47)){var u,c;n=n||this.state.clone();let p,f=this.tryParse(k=>{var D;p=this.flowParseTypeParameterDeclaration();let F=this.forwardNoArrowParamsConversionAt(p,()=>{let ae=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(ae,p),ae});(D=F.extra)!=null&&D.parenthesized&&k();let q=this.maybeUnwrapTypeCastExpression(F);return q.type!=="ArrowFunctionExpression"&&k(),q.typeParameters=p,this.resetStartLocationFromNode(q,p),F},n),P=null;if(f.node&&this.maybeUnwrapTypeCastExpression(f.node).type==="ArrowFunctionExpression"){if(!f.error&&!f.aborted)return f.node.async&&this.raise(ee.UnexpectedTypeParameterBeforeAsyncArrowFunction,p),f.node;P=f.node}if((u=o)!=null&&u.node)return this.state=o.failState,o.node;if(P)return this.state=f.failState,P;throw(c=o)!=null&&c.thrown?o.error:f.thrown?f.error:this.raise(ee.UnexpectedTokenAfterTypeParameter,p)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1)){for(let o=0;o<r.params.length;o++)this.isThisParam(r.params[o])&&o>0&&this.raise(ee.ThisParamMustBeFirst,r.params[o]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.indexOf(i.index)!==-1){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),o=this.tryParse(c=>this.parseAsyncArrowWithTypeParameters(i)||c(),n);if(!o.error&&!o.aborted)return o.node;let u=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(u.node&&!u.error)return u.node;if(o.node)return this.state=o.failState,o.node;if(u.node)return this.state=u.failState,u.node;throw o.error||u.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let o=this.startNodeAt(i);return o.callee=r,o.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),o.arguments=this.parseCallExpressionArguments(11,!1),o.optional=!0,this.finishCallExpression(o,!0)}else if(!s&&this.shouldParseTypes()&&this.match(47)){let o=this.startNodeAt(i);o.callee=r;let u=this.tryParse(()=>(o.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),o.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(o.optional=!1),this.finishCallExpression(o,n.optionalChainMember)));if(u.node)return u.error&&(this.state=u.failState),u.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(ee.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ee.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(ee.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?ee.EnumInvalidMemberInitializerSymbolType:ee.EnumInvalidMemberInitializerPrimaryType:ee.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(ee.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(ee.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 133:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},o=!1;for(;!this.match(8);){if(this.eat(21)){o=!0;break}let u=this.startNode(),{id:c,init:p}=this.flowEnumMemberRaw(),f=c.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(ee.EnumInvalidMemberName,c,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:r}),s.has(f)&&this.raise(ee.EnumDuplicateMemberName,c,{memberName:f,enumName:r}),s.add(f);let P={enumName:r,explicitType:i,memberName:f};switch(u.id=c,p.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(p.loc,P,"boolean"),u.init=p.value,n.booleanMembers.push(this.finishNode(u,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(p.loc,P,"number"),u.init=p.value,n.numberMembers.push(this.finishNode(u,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(p.loc,P,"string"),u.init=p.value,n.stringMembers.push(this.finishNode(u,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(p.loc,P);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(p.loc,P);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(p.loc,P);break;default:n.defaultedMembers.push(this.finishNode(u,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:o}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ee(this.state.type))throw this.raise(ee.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(ee.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,o=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:u,hasUnknownMembers:c}=this.flowEnumMembers({enumName:s,explicitType:o});switch(r.hasUnknownMembers=c,o){case"boolean":return r.explicitType=!0,r.members=u.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=u.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(u.stringMembers,u.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=u.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let p=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let f=u.booleanMembers.length,P=u.numberMembers.length,k=u.stringMembers.length,D=u.defaultedMembers.length;if(!f&&!P&&!k&&!D)return p();if(!f&&!P)return r.members=this.flowEnumStringMembers(u.stringMembers,u.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!P&&!k&&f>=D){for(let F of u.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(F.loc.start,{enumName:s,memberName:F.id.name});return r.members=u.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!f&&!k&&P>=D){for(let F of u.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(F.loc.start,{enumName:s,memberName:F.id.name});return r.members=u.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ee.EnumInconsistentMemberValues,n,{enumName:s}),p()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},T1={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},Gr=ir`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function br(t){return t?t.type==="JSXOpeningFragment"||t.type==="JSXClosingFragment":!1}function Ci(t){if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return Ci(t.object)+"."+Ci(t.property);throw new Error("Node had unexpected type: "+t.type)}var x1=t=>class extends t{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Gr.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:cs(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
|
|
54
|
+
`:`\r
|
|
55
|
+
`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):cs(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(133,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),o=T1[n];if(++this.state.pos,o)return o}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(Ni(r)||r===45);this.finishToken(140,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(140)?r.name=this.state.value:hu(this.state.type)?r.name=gr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(we.brace),this.next(),r=this.jsxParseExpressionContainer(r,we.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(Gr.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(Gr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(we.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(we.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(we.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(143)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(143);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(143)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(143),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),o=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){o=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 141:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let u=this.startNode();this.setContext(we.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(u)):s.push(this.jsxParseExpressionContainer(u,we.j_expr));break}default:this.unexpected()}br(n)&&!br(o)&&o!==null?this.raise(Gr.MissingClosingTagFragment,o):!br(n)&&br(o)?this.raise(Gr.MissingClosingTagElement,o,{openingTagName:Ci(n.name)}):!br(n)&&!br(o)&&Ci(o.name)!==Ci(n.name)&&this.raise(Gr.MissingClosingTagElement,o,{openingTagName:Ci(n.name)})}if(br(n)?(i.openingFragment=n,i.closingFragment=o):(i.openingElement=n,i.closingElement=o),i.children=s,this.match(47))throw this.raise(Gr.UnwrappedAdjacentJSXElements,this.state.startLoc);return br(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===we.j_expr){this.jsxReadToken();return}if(i===we.j_oTag||i===we.j_cTag){if(rr(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&i===we.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===142)i.splice(-2,2,we.j_cTag),this.state.canStartJSXElement=!1;else if(s===142)i.push(we.j_oTag);else if(s===143){let n=i[i.length-1];n===we.j_oTag&&r===56||n===we.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===we.j_expr):(this.setContext(we.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=ME(s)}},ru=class extends ps{constructor(...e){super(...e),this.tsNames=new Map}},iu=class extends fs{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new ru(e)}enter(e){e===256&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===256&&this.importsStack.pop(),e}hasImport(e,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,r,i){if(r&4096){this.hasImport(e,!0)&&this.parser.raise(_.VarRedeclaration,i,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope(),n=s.tsNames.get(e)||0;if(r&1024){this.maybeExportDefined(s,e),s.tsNames.set(e,n|16);return}super.declareName(e,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,e,r,i),this.maybeExportDefined(s,e)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(e,n)}isRedeclaredInScope(e,r,i){let s=e.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),o=(s&4)>0;return n!==o}return!0}return i&128&&(s&8)>0?e.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(e,r,i)}checkLocalExport(e){let{name:r}=e;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let o=this.scopeStack[s].tsNames.get(r);if((o&1)>0||(o&16)>0)return}super.checkLocalExport(e)}},b1=(t,e)=>hasOwnProperty.call(t,e)&&t[e],Uy=t=>t.type==="ParenthesizedExpression"?Uy(t.expression):t,su=class extends tu{toAssignable(e,r=!1){var i,s;let n;switch((e.type==="ParenthesizedExpression"||(i=e.extra)!=null&&i.parenthesized)&&(n=Uy(e),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,e):n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(_.InvalidParenthesizedAssignment,e):this.raise(_.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let u=0,c=e.properties.length,p=c-1;u<c;u++){var o;let f=e.properties[u],P=u===p;this.toAssignableObjectExpressionProp(f,P,r),P&&f.type==="RestElement"&&(o=e.extra)!=null&&o.trailingCommaLoc&&this.raise(_.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:u,value:c}=e;this.isPrivateName(u)&&this.classScope.usePrivateName(this.getPrivateNameSV(u),u.loc.start),this.toAssignable(c,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":e.operator!=="="&&this.raise(_.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(e,r,i){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?_.PatternHasAccessor:_.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){e.type="RestElement";let s=e.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(_.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,r,i){let s=e.length-1;for(let n=0;n<=s;n++){let o=e[n];if(o){if(o.type==="SpreadElement"){o.type="RestElement";let u=o.argument;this.checkToRestConversion(u,!0),this.toAssignable(u,i)}else this.toAssignable(o,i);o.type==="RestElement"&&(n<s?this.raise(_.RestTrailingComma,o):r&&this.raise(_.RestTrailingComma,r))}}}isAssignable(e,r){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let i=e.properties.length-1;return e.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(e,r){return e}toReferencedListDeep(e,r){this.toReferencedList(e,r);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,r,i){let s=i&1,n=[],o=!0;for(;!this.eat(e);)if(o?o=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){if(n.push(this.parseAssignableListItemTypes(this.parseRestBinding(),i)),!this.checkCommaAfterRest(r)){this.expect(e);break}}else{let u=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(_.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)u.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,u))}}return n}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:r}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return e===138?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseAssignableListItem(e,r){let i=this.parseMaybeDefault();this.parseAssignableListItemTypes(i,e);let s=this.parseMaybeDefault(i.loc.start,i);return r.length&&(i.decorators=r),s}parseAssignableListItemTypes(e,r){return e}parseMaybeDefault(e,r){var i,s;if((i=e)!=null||(e=this.state.startLoc),r=(s=r)!=null?s:this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(e);return n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,r,i){return b1({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},e)}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,{in:r,binding:i=64,checkClashes:s=!1,strictModeChanged:n=!1,hasParenthesizedAncestor:o=!1}){var u;let c=e.type;if(this.isObjectMethod(e))return;let p=this.isOptionalMemberExpression(e);if(p||c==="MemberExpression"){p&&(this.expectPlugin("optionalChainingAssign",e.loc.start),r.type!=="AssignmentExpression"&&this.raise(_.InvalidLhsOptionalChaining,e,{ancestor:r})),i!==64&&this.raise(_.InvalidPropertyBindingPattern,e);return}if(c==="Identifier"){this.checkIdentifier(e,i,n);let{name:F}=e;s&&(s.has(F)?this.raise(_.ParamDupe,e):s.add(F));return}let f=this.isValidLVal(c,!(o||(u=e.extra)!=null&&u.parenthesized)&&r.type==="AssignmentExpression",i);if(f===!0)return;if(f===!1){let F=i===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(F,e,{ancestor:r});return}let[P,k]=Array.isArray(f)?f:[f,c==="ParenthesizedExpression"],D=c==="ArrayPattern"||c==="ObjectPattern"?{type:c}:r;for(let F of[].concat(e[P]))F&&this.checkLVal(F,{in:D,binding:i,checkClashes:s,strictModeChanged:n,hasParenthesizedAncestor:k})}checkIdentifier(e,r,i=!1){this.state.strict&&(i?Ly(e.name,this.inModule):Dy(e.name))&&(r===64?this.raise(_.StrictEvalArguments,e,{referenceName:e.name}):this.raise(_.StrictEvalArgumentsBinding,e,{bindingName:e.name})),r&8192&&e.name==="let"&&this.raise(_.LetInLexicalBinding,e),r&64||this.declareNameFromIdentifier(e,r)}declareNameFromIdentifier(e,r){this.scope.declareName(e.name,r,e.loc.start)}checkToRestConversion(e,r){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(_.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?_.RestTrailingComma:_.ElementAfterRest,this.state.startLoc),!0):!1}},g1=(t,e)=>hasOwnProperty.call(t,e)&&t[e];function S1(t){if(t==null)throw new Error(`Unexpected ${t} value.`);return t}function Sy(t){if(!t)throw new Error("Assert fail")}var $=ir`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function E1(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Ey(t){return t==="private"||t==="public"||t==="protected"}function v1(t){return t==="in"||t==="out"}var P1=t=>class extends t{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:$.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:$.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:$.InvalidModifierOnTypeParameter})}getScopeHandler(){return iu}tsIsIdentifier(){return Ee(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,i){if(!Ee(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.indexOf(s)!==-1){if(i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=$.InvalidModifierOnTypeMember},o){let u=(p,f,P,k)=>{f===P&&o[k]&&this.raise($.InvalidModifiersOrder,p,{orderedModifiers:[P,k]})},c=(p,f,P,k)=>{(o[P]&&f===k||o[k]&&f===P)&&this.raise($.IncompatibleModifiers,p,{modifiers:[P,k]})};for(;;){let{startLoc:p}=this.state,f=this.tsParseModifier(r.concat(i??[]),s);if(!f)break;Ey(f)?o.accessibility?this.raise($.DuplicateAccessibilityModifier,p,{modifier:f}):(u(p,f,f,"override"),u(p,f,f,"static"),u(p,f,f,"readonly"),o.accessibility=f):v1(f)?(o[f]&&this.raise($.DuplicateModifier,p,{modifier:f}),o[f]=!0,u(p,f,"in","out")):(hasOwnProperty.call(o,f)?this.raise($.DuplicateModifier,p,{modifier:f}):(u(p,f,"static","readonly"),u(p,f,"static","override"),u(p,f,"override","readonly"),u(p,f,"abstract","override"),c(p,f,"declare","override"),c(p,f,"static","abstract")),o[f]=!0),i!=null&&i.includes(f)&&this.raise(n,p,{modifier:f})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return S1(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let o=[],u=-1;for(;!this.tsIsListTerminator(r);){u=-1;let c=i();if(c==null)return;if(o.push(c),this.eat(12)){u=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=u),o}tsParseBracketedList(r,i,s,n,o){n||(s?this.expect(0):this.expect(47));let u=this.tsParseDelimitedList(r,i,o);return s?this.expect(3):this.expect(48),u}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise($.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(r.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let i=this.parseIdentifier(r);for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(r),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise($.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",o="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[o]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[o]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise($.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ee(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){this.eat(17)&&(r.optional=!0);let s=r;if(this.match(10)||this.match(47)){i&&this.raise($.ReadonlyForMethodSignature,r);let n=s;n.kind&&this.match(47)&&this.raise($.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let o="parameters",u="typeAnnotation";if(n.kind==="get")n[o].length>0&&(this.raise(_.BadGetterArity,this.state.curPosition()),this.isThisParam(n[o][0])&&this.raise($.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[o].length!==1)this.raise(_.BadSetterArity,this.state.curPosition());else{let c=n[o][0];this.isThisParam(c)&&this.raise($.AccesorCannotDeclareThisParameter,this.state.curPosition()),c.type==="Identifier"&&c.optional&&this.raise($.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),c.type==="RestElement"&&this.raise($.SetAccesorCannotHaveRestParameter,this.state.curPosition())}n[u]&&this.raise($.SetAccesorCannotHaveReturnType,n[u])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=s;i&&(n.readonly=!0);let o=this.tsTryParseTypeAnnotation();return o&&(n.typeAnnotation=o),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise($.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,i=this.eat(21),s,n,o,u,p=Nt(this.state.type)?this.lookaheadCharCode():null;if(p===58)s=!0,o=!1,n=this.parseIdentifier(!0),this.expect(14),u=this.tsParseType();else if(p===63){o=!0;let f=this.state.startLoc,P=this.state.value,k=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,n=this.createIdentifier(this.startNodeAt(f),P),this.expect(17),this.expect(14),u=this.tsParseType()):(s=!1,u=k,this.expect(17))}else u=this.tsParseType(),o=this.eat(17),s=this.eat(14);if(s){let f;n?(f=this.startNodeAtNode(n),f.optional=o,f.label=n,f.elementType=u,this.eat(17)&&(f.optional=!0,this.raise($.TupleOptionalAfterType,this.state.lastTokStartLoc))):(f=this.startNodeAtNode(u),f.optional=o,this.raise($.InvalidTupleMemberLabel,u),f.label=u,f.elementType=this.tsParseType()),u=this.finishNode(f,"TSNamedTupleMember")}else if(o){let f=this.startNodeAtNode(u);f.typeAnnotation=u,u=this.finishNode(f,"TSOptionalType")}if(i){let f=this.startNodeAt(r);f.typeAnnotation=u,u=this.finishNode(f,"TSRestType")}return u}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==134&&i.type!==135&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Ee(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":E1(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAtNode(r);i.elementType=r,this.expect(3),r=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAtNode(r);i.objectType=r,i.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(i,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise($.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return VE(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),o=this.eat(s),u=[];do u.push(i());while(this.eat(s));return u.length===1&&!o?u[0]:(n.types=u,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ee(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let c=this.tsParseThisTypeOrThisTypePredicate();return c.type==="TSThisType"?(s.parameterName=c,s.asserts=!0,s.typeAnnotation=null,c=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(c,s),c.asserts=!0),i.typeAnnotation=c,this.finishNode(i,"TSTypeAnnotation")}let o=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!o)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let u=this.tsParseTypeAnnotation(!1);return s.parameterName=o,s.typeAnnotation=u,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Ee(this.state.type)&&!this.match(78)?!1:(r&&this.raise(_.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){Sy(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise($.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise($.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Ee(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise($.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise($.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type,s;return this.isContextual(100)&&(i=74,s="let"),this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,s||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{let n=this.tsParseInterfaceDeclaration(r,{declare:!0});if(n)return n}default:if(Ee(i))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,i,s){switch(i.name){case"declare":{let n=this.tsTryParseDeclare(r);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let n=r;return n.global=!0,n.id=i,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,i.name,!1,s)}}tsParseDeclaration(r,i,s,n){switch(i){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||Ee(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(Ee(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&Ee(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&Ee(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise($.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===we.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return qE(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,i){let s=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let o=n.accessibility,u=n.override,c=n.readonly;!(r&4)&&(o||c||u)&&this.raise($.UnexpectedParameterModifier,s);let p=this.parseMaybeDefault();this.parseAssignableListItemTypes(p,r);let f=this.parseMaybeDefault(p.loc.start,p);if(o||c||u){let P=this.startNodeAt(s);return i.length&&(P.decorators=i),o&&(P.accessibility=o),c&&(P.readonly=c),u&&(P.override=u),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise($.UnsupportedParameterPropertyKind,P),P.parameter=f,this.finishNode(P,"TSParameterProperty")}return i.length&&(p.decorators=i),f}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise($.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise($.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise($.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s,n){let o=super.parseArrayLike(r,i,s,n);return o.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(o.elements),o}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let u=this.startNodeAt(i);return u.expression=r,this.finishNode(u,"TSNonNullExpression")}let o=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){let u,c=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let k=this.tsTryParseGenericAsyncArrowFunction(i);if(k)return k}let p=this.tsParseTypeArgumentsInExpression();if(!p)return;if(o&&!this.match(10)){u=this.state.curPosition();return}if(Rn(this.state.type)){let k=super.parseTaggedTemplateExpression(r,i,n);return k.typeParameters=p,k}if(!s&&this.eat(10)){let k=this.startNodeAt(i);return k.callee=r,k.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(k.arguments),k.typeParameters=p,n.optionalChainMember&&(k.optional=o),this.finishCallExpression(k,n.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&Vo(f)&&!this.hasPrecedingLineBreak())return;let P=this.startNodeAt(i);return P.expression=r,P.typeParameters=p,this.finishNode(P,"TSInstantiationExpression")});if(u&&this.unexpected(u,10),c)return c.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise($.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),c}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(Ln(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let o=this.startNodeAt(i);return o.expression=r,o.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(_.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(o,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(o,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise($.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let i;if(Ee(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise($.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){this.next();let s=r,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,o=super.parseVarStatement(r,i,s||n);if(!n)return o;for(let{id:u,init:c}of o.declarations)c&&(i!=="const"||u.typeAnnotation?this.raise($.InitializerNotAllowedInAmbientContext,c):w1(c,this.hasPlugin("estree"))||this.raise($.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,c));return o}parseStatementContent(r,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>Ey(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:$.InvalidModifierOnTypeParameterPositions},i);let o=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise($.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(o):o()}parseClassMemberWithIsStatic(r,i,s,n){let o=this.tsTryParseIndexSignature(i);if(o){r.body.push(o),i.abstract&&this.raise($.IndexSignatureHasAbstract,i),i.accessibility&&this.raise($.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise($.IndexSignatureHasDeclare,i),i.override&&this.raise($.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise($.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise($.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise($.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise($.ClassMethodHasDeclare,r)}parseExpressionStatement(r,i,s){return(i.type==="Identifier"?this.tsParseExpressionStatement(r,i,s):void 0)||super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,i,s);let n=this.tryParse(()=>super.parseConditional(r,i));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(s,n.error),r)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise($.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let o=Ee(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return o?((o.type==="TSInterfaceDeclaration"||o.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&(this.resetStartLocation(o,i),o.declare=!0),o):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let o=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);o&&(r.typeParameters=o)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise($.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise($.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(i.start,i.end)}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise($.PrivateElementHasAbstract,r),r.accessibility&&this.raise($.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise($.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,o,u){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);c&&o&&this.raise($.ConstructorHasTypeParameters,c);let{declare:p=!1,kind:f}=i;p&&(f==="get"||f==="set")&&this.raise($.DeclareAccessor,i,{kind:f}),c&&(i.typeParameters=c),super.pushClassMethod(r,i,s,n,o,u)}pushClassPrivateMethod(r,i,s,n){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&(i.typeParameters=o),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!hasOwnProperty.call(r.value,"body")||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,o,u,c){let p=this.tsTryParseTypeParameters(this.tsParseConstModifier);return p&&(r.typeParameters=p),super.parseObjPropValue(r,i,s,n,o,u,c)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,o,u,c;let p,f,P;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(p=this.state.clone(),f=this.tryParse(()=>super.parseMaybeAssign(r,i),p),!f.error)return f.node;let{context:F}=this.state,q=F[F.length-1];(q===we.j_oTag||q===we.j_expr)&&F.pop()}if(!((s=f)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!p||p===this.state)&&(p=this.state.clone());let k,D=this.tryParse(F=>{var q,ae;k=this.tsParseTypeParameters(this.tsParseConstModifier);let J=super.parseMaybeAssign(r,i);return(J.type!=="ArrowFunctionExpression"||(q=J.extra)!=null&&q.parenthesized)&&F(),((ae=k)==null?void 0:ae.params.length)!==0&&this.resetStartLocationFromNode(J,k),J.typeParameters=k,J},p);if(!D.error&&!D.aborted)return k&&this.reportReservedArrowTypeParam(k),D.node;if(!f&&(Sy(!this.hasPlugin("jsx")),P=this.tryParse(()=>super.parseMaybeAssign(r,i),p),!P.error))return P.node;if((n=f)!=null&&n.node)return this.state=f.failState,f.node;if(D.node)return this.state=D.failState,k&&this.reportReservedArrowTypeParam(k),D.node;if((o=P)!=null&&o.node)return this.state=P.failState,P.node;throw((u=f)==null?void 0:u.error)||D.error||((c=P)==null?void 0:c.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise($.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseAssignableListItemTypes(r,i){if(!(i&2))return r;this.eat(17)&&(r.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError($.UnexpectedTypeCastInParameter,r):this.raise($.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s){return g1({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSInstantiationExpression:"expression",TSAsExpression:(s!==64||!i)&&["expression",!0],TSSatisfiesExpression:(s!==64||!i)&&["expression",!0],TSTypeAssertion:(s!==64||!i)&&["expression",!0]},r)||super.isValidLVal(r,i,s)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r);return s.typeParameters=i,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise($.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let o=r[n];o?.type==="TSTypeCastExpression"&&(r[n]=this.typeCastToParameter(o))}super.toAssignableList(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let i=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return r()}finally{this.state.isAmbientContext=i}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise($.NonClassMethodPropertyHasAbstractModifer,r),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80)}parseMethod(r,i,s,n,o,u,c){let p=super.parseMethod(r,i,s,n,o,u,c);if(p.abstract&&(this.hasPlugin("estree")?!!p.value.body:!!p.body)){let{key:P}=p;this.raise($.AbstractMethodHasImplementation,p,{methodName:P.type==="Identifier"&&!p.computed?P.name:`[${this.input.slice(P.start,P.end)}]`})}return p}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,o){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",o=i?"local":"exported",u=r[n],c,p=!1,f=!0,P=u.loc.start;if(this.isContextual(93)){let D=this.parseIdentifier();if(this.isContextual(93)){let F=this.parseIdentifier();Nt(this.state.type)?(p=!0,u=D,c=i?this.parseIdentifier():this.parseModuleExportName(),f=!1):(c=F,f=!1)}else Nt(this.state.type)?(f=!1,c=i?this.parseIdentifier():this.parseModuleExportName()):(p=!0,u=D)}else Nt(this.state.type)&&(p=!0,i?(u=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(u.name,u.loc.start,!0,!0)):u=this.parseModuleExportName());p&&s&&this.raise(i?$.TypeModifierIsUsedInTypeImports:$.TypeModifierIsUsedInTypeExports,P),r[n]=u,r[o]=c;let k=i?"importKind":"exportKind";r[k]=p?"type":"value",f&&this.eatContextual(93)&&(r[o]=i?this.parseIdentifier():this.parseModuleExportName()),r[o]||(r[o]=sr(r[n])),i&&this.checkIdentifier(r[o],p?4098:4096)}};function A1(t){if(t.type!=="MemberExpression")return!1;let{computed:e,property:r}=t;return e&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:qy(t.object)}function w1(t,e){var r;let{type:i}=t;if((r=t.extra)!=null&&r.parenthesized)return!1;if(e){if(i==="Literal"){let{value:s}=t;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(Vy(t,e)||I1(t,e)||i==="TemplateLiteral"&&t.expressions.length===0||A1(t))}function Vy(t,e){return e?t.type==="Literal"&&(typeof t.value=="number"||"bigint"in t):t.type==="NumericLiteral"||t.type==="BigIntLiteral"}function I1(t,e){if(t.type==="UnaryExpression"){let{operator:r,argument:i}=t;if(r==="-"&&Vy(i,e))return!0}return!1}function qy(t){return t.type==="Identifier"?!0:t.type!=="MemberExpression"||t.computed?!1:qy(t.object)}var vy=ir`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),C1=t=>class extends t{parsePlaceholder(r){if(this.match(144)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s){return r==="Placeholder"||super.isValidLVal(r,i,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){return!!(super.chStartsBindingIdentifier(r,i)||this.lookahead().type===144)}verifyBreakContinue(r,i){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let o=r;return o.label=this.finishPlaceholder(i,"Identifier"),this.next(),o.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(o,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let o=this.state.strict,u=this.parsePlaceholder("Identifier");if(u)if(this.match(81)||this.match(144)||this.match(5))r.id=u;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(u,"ClassBody"),this.finishNode(r,n);throw this.raise(vy.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,o),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let o=this.startNode();return o.exported=s,n.specifiers=[this.finishNode(o,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(gr(144),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(vy.UnexpectedSpace,this.state.lastTokEndLoc)}},N1=t=>class extends t{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Ee(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};function Ue(t,e){let[r,i]=typeof e=="string"?[e,{}]:e,s=Object.keys(i),n=s.length===0;return t.some(o=>{if(typeof o=="string")return n&&o===r;{let[u,c]=o;if(u!==r)return!1;for(let p of s)if(c[p]!==i[p])return!1;return!0}})}function Qr(t,e,r){let i=t.find(s=>Array.isArray(s)?s[0]===e:s===e);return i&&Array.isArray(i)&&i.length>1?i[1][r]:null}var Py=["minimal","fsharp","hack","smart"],Ay=["^^","@@","^","%","#"];function _1(t){if(Ue(t,"decorators")){if(Ue(t,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let e=Qr(t,"decorators","decoratorsBeforeExport");if(e!=null&&typeof e!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=Qr(t,"decorators","allowCallParenthesized");if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(Ue(t,"flow")&&Ue(t,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(Ue(t,"placeholders")&&Ue(t,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(Ue(t,"pipelineOperator")){let e=Qr(t,"pipelineOperator","proposal");if(!Py.includes(e)){let s=Py.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}let r=["recordAndTuple",{syntaxType:"hash"}],i=Ue(t,r);if(e==="hack"){if(Ue(t,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(Ue(t,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=Qr(t,"pipelineOperator","topicToken");if(!Ay.includes(s)){let n=Ay.map(o=>`"${o}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(r)}\`.`)}else if(e==="smart"&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(r)}\`.`)}if(Ue(t,"moduleAttributes")){if(Ue(t,"importAssertions")||Ue(t,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(Qr(t,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(Ue(t,"importAssertions")&&Ue(t,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(Ue(t,"recordAndTuple")){let e=Qr(t,"recordAndTuple","syntaxType");if(e!=null){let r=["hash","bar"];if(!r.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+r.map(i=>`'${i}'`).join(", "))}}if(Ue(t,"asyncDoExpressions")&&!Ue(t,"doExpressions")){let e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(Ue(t,"optionalChainingAssign")&&Qr(t,"optionalChainingAssign","version")!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var Ky={estree:OE,jsx:x1,flow:m1,typescript:P1,v8intrinsic:N1,placeholders:C1},O1=Object.keys(Ky),Ro={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function k1(t){if(t==null)return Object.assign({},Ro);if(t.annexB!=null&&t.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let e={};for(let i of Object.keys(Ro)){var r;e[i]=(r=t[i])!=null?r:Ro[i]}return e}var nu=class extends su{checkProto(e,r,i,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return;let n=e.key;if((n.type==="Identifier"?n.name:n.value)==="__proto__"){if(r){this.raise(_.RecordNoProto,n);return}i.used&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(_.DuplicateProto,n)),i.used=!0}}shouldExitDescending(e,r){return e.type==="ArrowFunctionExpression"&&e.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,r){return e?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(e){let r=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,r){return this.disallowInAnd(()=>this.parseMaybeAssign(e,r))}parseMaybeAssignAllowIn(e,r){return this.allowInAnd(()=>this.parseMaybeAssign(e,r))}setOptionalParametersError(e,r){var i;e.optionalParametersLoc=(i=r?.loc)!=null?i:this.state.startLoc}parseMaybeAssign(e,r){let i=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let u=this.parseYield();return r&&(u=r.call(this,u,i)),u}let s;e?s=!1:(e=new _i,s=!0);let{type:n}=this.state;(n===10||Ee(n))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(r&&(o=r.call(this,o,i)),FE(this.state.type)){let u=this.startNodeAt(i),c=this.state.value;if(u.operator=c,this.match(29)){this.toAssignable(o,!0),u.left=o;let p=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=p&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=p&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=p&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,{in:this.finishNode(u,"AssignmentExpression")}),u}else s&&this.checkExpressionErrors(e,!0);return o}parseMaybeConditional(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,e)}parseConditional(e,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(e,r,i){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);(i>=Ln(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,e,{identifierName:n}),this.classScope.usePrivateName(n,e.loc.start)}let s=this.state.type;if(RE(s)&&(this.prodParam.hasIn||!this.match(58))){let n=Ln(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,r)}let o=this.startNodeAt(r);o.left=e,o.operator=this.state.value;let u=s===41||s===42,c=s===40;if(c&&(n=Ln(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(s,n);let p=this.finishNode(o,u||c?"LogicalExpression":"BinaryExpression"),f=this.state.type;if(c&&(f===41||f===42)||u&&f===40)throw this.raise(_.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(p,r,i)}}return e}parseExprOpRightExpr(e,r){let i=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,r),i)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(e,r)}}parseExprOpBaseRightExpr(e,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,KE(e)?r-1:r)}parseHackPipeBody(){var e;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return AE.has(i.type)&&!((e=i.extra)!=null&&e.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,r),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.isAwaitAllowed()){this.next();let c=this.parseAwait(i);return r||this.checkExponentialAfterUnary(c),c}let n=this.match(34),o=this.startNode();if(UE(this.state.type)){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let c=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&c){let p=o.argument;p.type==="Identifier"?this.raise(_.StrictDelete,o):this.hasPropertyAsPrivateName(p)&&this.raise(_.DeletePrivateField,o)}if(!n)return r||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}let u=this.parseUpdate(o,n,e);if(s){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?Vo(c):Vo(c)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(_.AwaitNotInAsyncContext,i),this.parseAwait(i)}return u}parseUpdate(e,r,i){if(r){let o=e;return this.checkLVal(o.argument,{in:this.finishNode(o,"UpdateExpression")}),e}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;jE(this.state.type)&&!this.canInsertSemicolon();){let o=this.startNodeAt(s);o.operator=this.state.value,o.prefix=!1,o.argument=n,this.next(),this.checkLVal(n,{in:n=this.finishNode(o,"UpdateExpression")})}return n}parseExprSubscripts(e){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(e);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(e,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(e,r,i,s);if(Rn(n))return this.parseTaggedTemplateExpression(e,r,s);let o=!1;if(n===18){if(i&&(this.raise(_.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return s.stop=!0,e;s.optionalChainMember=o=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,r,s,o);{let u=this.eat(0);return u||o||this.eat(16)?this.parseMember(e,r,s,u,o):(s.stop=!0,e)}}parseMember(e,r,i,s,n){let o=this.startNodeAt(r);return o.object=e,o.computed=s,s?(o.property=this.parseExpression(),this.expect(3)):this.match(138)?(e.type==="Super"&&this.raise(_.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),i.optionalChainMember?(o.optional=n,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(e,r,i,s){let n=this.startNodeAt(r);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(e,r,i,s){let n=this.state.maybeInArrowParameters,o=null;this.state.maybeInArrowParameters=!0,this.next();let u=this.startNodeAt(r);u.callee=e;let{maybeAsyncArrow:c,optionalChainMember:p}=i;c&&(this.expressionScope.enter(u1()),o=new _i),p&&(u.optional=s),s?u.arguments=this.parseCallExpressionArguments(11):u.arguments=this.parseCallExpressionArguments(11,e.type==="Import",e.type!=="Super",u,o);let f=this.finishCallExpression(u,p);return c&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),f)):(c&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(f)),this.state.maybeInArrowParameters=n,f}toReferencedArguments(e,r){this.toReferencedListDeep(e.arguments,r)}parseTaggedTemplateExpression(e,r,i){let s=this.startNodeAt(r);return s.tag=e,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(e,r){if(e.callee.type==="Import")if(e.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),e.arguments.length===0||e.arguments.length>2)this.raise(_.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(_.ImportCallSpreadArgument,i);return this.finishNode(e,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,r,i,s,n){let o=[],u=!0,c=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(u)u=!1;else if(this.expect(12),this.match(e)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(_.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),s&&this.addTrailingCommaExtraToNode(s),this.next();break}o.push(this.parseExprListItem(!1,n,i))}return this.state.inFSharpPipelineDirectBody=c,o}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(e,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&hs(e,r.innerComments),r.callee.trailingComments&&hs(e,r.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(_.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(_.UnsupportedBind,n)}case 138:return this.raise(_.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());rr(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(Ee(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,o=this.state.containsEsc,u=this.parseIdentifier();if(!o&&u.name==="async"&&!this.canInsertSemicolon()){let{type:c}=this.state;if(c===68)return this.resetPreviousNodeTrailingComments(u),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(u));if(Ee(c))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(u)):u;if(c===90)return this.resetPreviousNodeTrailingComments(u),this.parseDo(this.startNodeAtNode(u),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(u),[u],!1)):u}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=at(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(e){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,e,s)}finishTopicReference(e,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s)){let n=i==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(i==="smart"?_.PrimaryTopicNotAllowed:_.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(e,n)}else throw this.raise(_.PipeTopicUnconfiguredToken,r,{token:gr(s)})}testTopicReferenceConfiguration(e,r,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:gr(i)}]);case"smart":return i===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Fn(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,r,!0)}parseDo(e,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),e.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(_.SuperNotAllowed,e):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(_.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(_.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),r=this.startNodeAt(at(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(r,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,r,"sent")}return this.parseFunction(e)}parseMetaProperty(e,r,i){e.meta=r;let s=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||s)&&this.raise(_.UnsupportedMetaProperty,e.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let r=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(_.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let i=this.isContextual(105);if(i||this.unexpected(),this.expectPlugin(i?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(_.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=i?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,r,"meta")}parseLiteralAtNode(e,r,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(i.start,this.state.end)),i.value=e,this.next(),this.finishNode(i,r)}parseLiteral(e,r){let i=this.startNode();return this.parseLiteralAtNode(e,r,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let r=this.parseLiteral(e.value,"RegExpLiteral");return r.pattern=e.pattern,r.flags=e.flags,r}parseBooleanLiteral(e){let r=this.startNode();return r.value=e,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(o1());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let o=this.state.startLoc,u=[],c=new _i,p=!0,f,P;for(;!this.match(11);){if(p)p=!1;else if(this.expect(12,c.optionalParametersLoc===null?null:c.optionalParametersLoc),this.match(11)){P=this.state.startLoc;break}if(this.match(21)){let F=this.state.startLoc;if(f=this.state.startLoc,u.push(this.parseParenItem(this.parseRestBinding(),F)),!this.checkCommaAfterRest(41))break}else u.push(this.parseMaybeAssignAllowIn(c,this.parseParenItem))}let k=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let D=this.startNodeAt(r);return e&&this.shouldParseArrow(u)&&(D=this.parseArrow(D))?(this.checkDestructuringPrivate(c),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(D,u,!1),D):(this.expressionScope.exit(),u.length||this.unexpected(this.state.lastTokStartLoc),P&&this.unexpected(P),f&&this.unexpected(f),this.checkExpressionErrors(c,!0),this.toReferencedListDeep(u,!0),u.length>1?(i=this.startNodeAt(o),i.expressions=u,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,k)):i=u[0],this.wrapParenthesis(r,i))}wrapParenthesis(e,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e.index),this.takeSurroundingComments(r,e.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(e);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,r){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,r,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(_.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),e.arguments=r}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let r=this.match(83),i=this.parseNoCallExpr();e.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(_.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:r,startLoc:i,end:s,value:n}=this.state,o=r+1,u=this.startNodeAt(at(i,1));n===null&&(e||this.raise(_.InvalidEscapeSequenceTemplate,at(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),p=c?-1:-2,f=s+p;u.value={raw:this.input.slice(o,f).replace(/\r\n?/g,`
|
|
56
|
+
`),cooked:n===null?null:n.slice(1,p)},u.tail=c,this.next();let P=this.finishNode(u,"TemplateElement");return this.resetEndLocation(P,at(this.state.lastTokEndLoc,p)),P}parseTemplate(e){let r=this.startNode(),i=this.parseTemplateElement(e),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(e));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=Object.create(null),u=!0,c=this.startNode();for(c.properties=[],this.next();!this.match(e);){if(u)u=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(c);break}let f;r?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(s),this.checkProto(f,i,o,s)),i&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(_.InvalidRecordProperty,f),f.shorthand&&this.addExtra(f,"shorthand",!0),c.properties.push(f)}this.next(),this.state.inFSharpPipelineDirectBody=n;let p="ObjectExpression";return r?p="ObjectPattern":i&&(p="RecordExpression"),this.finishNode(c,p)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,o;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,e&&(o=this.state.startLoc);let u=this.eat(55);this.parsePropertyNamePrefixOperator(i);let c=this.state.containsEsc;if(this.parsePropertyName(i,e),!u&&!c&&this.maybeAsyncOrAccessorProp(i)){let{key:p}=i,f=p.name;f==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(p),u=this.eat(55),this.parsePropertyName(i)),(f==="get"||f==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(p),i.kind=f,this.match(55)&&(u=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:f}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,o,u,s,!1,n,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var r;let i=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);s.length!==i&&this.raise(e.kind==="get"?_.BadGetterArity:_.BadSetterArity,e),e.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(_.BadSetterRestParameter,e)}parseObjectMethod(e,r,i,s,n){if(n){let o=this.parseMethod(e,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(o),o}if(i||r||this.match(10))return s&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,r,i,s){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(e,"ObjectProperty");if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(r,sr(e.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(_.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(r,sr(e.key))}else e.value=sr(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,r,i,s,n,o,u){let c=this.parseObjectMethod(e,i,s,n,o)||this.parseObjectProperty(e,r,n,u);return c||this.unexpected(),c}parsePropertyName(e,r){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(Nt(i))n=this.parseIdentifier(!0);else switch(i){case 134:n=this.parseNumericLiteral(s);break;case 133:n=this.parseStringLiteral(s);break;case 135:n=this.parseBigIntLiteral(s);break;case 136:n=this.parseDecimalLiteral(s);break;case 138:{let o=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=o):this.raise(_.UnexpectedPrivateField,o),n=this.parsePrivateName();break}default:this.unexpected()}e.key=n,i!==138&&(e.computed=!1)}}initFunction(e,r){e.id=null,e.generator=!1,e.async=r}parseMethod(e,r,i,s,n,o,u=!1){this.initFunction(e,i),e.generator=r,this.scope.enter(18|(u?64:0)|(n?32:0)),this.prodParam.enter(Fn(i,e.generator)),this.parseFunctionParams(e,s);let c=this.parseFunctionBodyAndFinish(e,o,!0);return this.prodParam.exit(),this.scope.exit(),c}parseArrayLike(e,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=this.startNode();return this.next(),o.elements=this.parseExprList(e,!i,s,o),this.state.inFSharpPipelineDirectBody=n,this.finishNode(o,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,r,i,s){this.scope.enter(6);let n=Fn(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,i);let o=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,r,i){this.toAssignableList(r,i,!1),e.params=r}parseFunctionBodyAndFinish(e,r,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,r)}parseFunctionBody(e,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(jy()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,r,!1);else{let n=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,u=>{let c=!this.isSimpleParamList(e.params);u&&c&&this.raise(_.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let p=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!r&&!i&&!c,r,p),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,p)}),this.prodParam.exit(),this.state.labels=o}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let r=0,i=e.length;r<i;r++)if(!this.isSimpleParameter(e[r]))return!1;return!0}checkParams(e,r,i,s=!0){let n=!r&&new Set,o={type:"FormalParameters"};for(let u of e.params)this.checkLVal(u,{in:o,binding:5,checkClashes:n,strictModeChanged:s})}parseExprList(e,r,i,s){let n=[],o=!0;for(;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(r,i))}return n}parseExprListItem(e,r,i){let s;if(this.match(12))e||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){let n=this.state.startLoc;s=this.parseParenItem(this.parseSpread(r),n)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let n=this.startNode();this.next(),s=this.finishNode(n,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return s}parseIdentifier(e){let r=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(r,i)}createIdentifier(e,r){return e.name=r,e.loc.identifierName=r,this.finishNode(e,"Identifier")}parseIdentifierName(e){let r,{startLoc:i,type:s}=this.state;Nt(s)?r=this.state.value:this.unexpected();let n=LE(s);return e?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(e,r,i,s){if(e.length>10||!ZE(e))return;if(i&&HE(e)){this.raise(_.UnexpectedKeyword,r,{keyword:e});return}if((this.state.strict?s?Ly:ky:Oy)(e,this.inModule)){this.raise(_.UnexpectedReservedWord,r,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,r);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,r);return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,r),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Rn(e)||e===102&&!this.state.containsEsc||e===137||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(_.YieldInParameter,e),this.next();let r=!1,i=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:i=this.parseMaybeAssign()}return e.delegate=r,e.argument=i,this.finishNode(e,"YieldExpression")}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(_.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(e,r){if(this.isSimpleReference(e)){let i=this.startNodeAt(r);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,e)}withTopicBindingContext(e){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=r}}else return e()}withSoloAwaitPermittingContext(e){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=r}}allowInAnd(e){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},jo={kind:1},D1={kind:2},L1=/[\uD800-\uDFFF]/u,Uo=/in(?:stanceof)?/y;function M1(t,e){for(let r=0;r<t.length;r++){let i=t[r],{type:s}=i;if(typeof s=="number"){{if(s===138){let{loc:n,start:o,value:u,end:c}=i,p=o+1,f=at(n.start,1);t.splice(r,1,new Vt({type:er(27),value:"#",start:o,end:p,startLoc:n.start,endLoc:f}),new Vt({type:er(132),value:u,start:p,end:c,startLoc:f,endLoc:n.end})),r++;continue}if(Rn(s)){let{loc:n,start:o,value:u,end:c}=i,p=o+1,f=at(n.start,1),P;e.charCodeAt(o)===96?P=new Vt({type:er(22),value:"`",start:o,end:p,startLoc:n.start,endLoc:f}):P=new Vt({type:er(8),value:"}",start:o,end:p,startLoc:n.start,endLoc:f});let k,D,F,q;s===24?(D=c-1,F=at(n.end,-1),k=u===null?null:u.slice(1,-1),q=new Vt({type:er(22),value:"`",start:D,end:c,startLoc:F,endLoc:n.end})):(D=c-2,F=at(n.end,-2),k=u===null?null:u.slice(1,-2),q=new Vt({type:er(23),value:"${",start:D,end:c,startLoc:F,endLoc:n.end})),t.splice(r,1,P,new Vt({type:er(20),value:k,start:p,end:D,startLoc:f,endLoc:F}),q),r+=2;continue}}i.type=er(s)}}return t}var au=class extends nu{parseTopLevel(e,r){return e.program=this.parseProgram(r),e.comments=this.comments,this.options.tokens&&(e.tokens=M1(this.tokens,this.input)),this.finishNode(e,"File")}parseProgram(e,r=139,i=this.options.sourceType){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,r),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[n,o]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,o,{localName:n});let s;return r===139?s=this.finishNode(e,"Program"):s=this.finishNodeAt(e,"Program",at(this.state.startLoc,-1)),s}stmtToDirective(e){let r=e;r.type="Directive",r.value=r.expression,delete r.expression;let i=r.value,s=i.value,n=this.input.slice(i.start,i.end),o=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",o),this.addExtra(i,"expressionValue",s),i.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,r){if(rr(e)){if(Uo.lastIndex=r,Uo.test(this.input)){let i=this.codePointAtPos(Uo.lastIndex);if(!Ni(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),r=this.codePointAtPos(e);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,e)}hasInLineFollowingBindingIdentifier(){let e=this.nextTokenInLineStart(),r=this.codePointAtPos(e);return this.chStartsBindingIdentifier(r,e)}startsUsingForOf(){let{type:e,containsEsc:r}=this.lookahead();if(e===102&&!r)return!1;if(Ee(e)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let r=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(r,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,e&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(e,r)}parseStatementContent(e,r){let i=this.state.type,s=this.startNode(),n=!!(e&2),o=!!(e&4),u=e&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return o||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&o);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?n||this.raise(_.UnexpectedLexicalDeclaration,s):this.raise(_.AwaitUsingNotInAsyncContext,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc):n||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let f=this.nextTokenStart(),P=this.codePointAtPos(f);if(P!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(P,f)&&P!==123))break}case 75:n||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let f=this.state.value;return this.parseVarStatement(s,f)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let f=this.lookaheadCharCode();if(f===40||f===46)break}case 82:{!this.options.allowImportExportEverywhere&&!u&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let f;return i===83?(f=this.parseImport(s),f.type==="ImportDeclaration"&&(!f.importKind||f.importKind==="value")&&(this.sawUnambiguousESM=!0)):(f=this.parseExport(s,r),(f.type==="ExportNamedDeclaration"&&(!f.exportKind||f.exportKind==="value")||f.type==="ExportAllDeclaration"&&(!f.exportKind||f.exportKind==="value")||f.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(f),f}default:if(this.isAsyncFunction())return n||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&o)}let c=this.state.value,p=this.parseExpression();return Ee(i)&&p.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,c,p,e):this.parseExpressionStatement(s,p,r)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(_.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,r,i){return e&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(_.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...e)):r.decorators=e,this.resetStartLocationFromNode(r,e[0]),i&&this.resetStartLocationFromNode(i,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(_.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e){if(this.eat(10)){let r=this.startNodeAtNode(e);return r.callee=e,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,r){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,r),this.finishNode(e,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(r||s.kind===1)||e.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(_.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(jo),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(jo);let r=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(r=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(e,null);let i=this.isContextual(100);{let c=this.isContextual(96)&&this.startsAwaitUsing(),p=c||this.isContextual(107)&&this.startsUsingForOf(),f=i&&this.hasFollowingBindingAtom()||p;if(this.match(74)||this.match(75)||f){let P=this.startNode(),k;c?(k="await using",this.isAwaitAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):k=this.state.value,this.next(),this.parseVar(P,!0,k);let D=this.finishNode(P,"VariableDeclaration"),F=this.match(58);return F&&p&&this.raise(_.ForInUsing,D),(F||this.isContextual(102))&&D.declarations.length===1?this.parseForIn(e,D,r):(r!==null&&this.unexpected(r),this.parseFor(e,D))}}let s=this.isContextual(95),n=new _i,o=this.parseExpression(!0,n),u=this.isContextual(102);if(u&&(i&&this.raise(_.ForOfLet,o),r===null&&s&&o.type==="Identifier"&&this.raise(_.ForOfAsync,o)),u||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(o,!0);let c=u?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{in:{type:c}}),this.parseForIn(e,o,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(e,o)}parseFunctionStatement(e,r,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(r?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(_.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];this.expect(5),this.state.labels.push(D1),this.scope.enter(0);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{in:{type:"CatchClause"},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(r,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(_.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,r,i=!1){return this.next(),this.parseVar(e,!1,r,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(jo),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,r,i,s){for(let o of this.state.labels)o.name===r&&this.raise(_.LabelRedeclaration,i,{labelName:r});let n=BE(this.state.type)?1:this.match(71)?2:null;for(let o=this.state.labels.length-1;o>=0;o--){let u=this.state.labels[o];if(u.statementStart===e.start)u.statementStart=this.state.start,u.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.state.start}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,r,i){return e.expression=r,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,r=!0,i){let s=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,e,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,r,i,s,n){let o=e.body=[],u=e.directives=[];this.parseBlockOrModuleBlockBody(o,r?u:void 0,i,s,n)}parseBlockOrModuleBlockBody(e,r,i,s,n){let o=this.state.strict,u=!1,c=!1;for(;!this.match(s);){let p=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!c){if(this.isValidDirective(p)){let f=this.stmtToDirective(p);r.push(f),!u&&f.value.value==="use strict"&&(u=!0,this.setStrict(!0));continue}c=!0,this.state.strictErrors.clear()}e.push(p)}n?.call(this,u),o||this.setStrict(!1),this.next()}parseFor(e,r){return e.init=r,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):e.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(_.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(_.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),e.left=r,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,r,i,s=!1){let n=e.declarations=[];for(e.kind=i;;){let o=this.startNode();if(this.parseVarId(o,i),o.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,o.init===null&&!s&&(o.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(o,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,r){let i=this.parseBindingAtom();this.checkLVal(i,{in:{type:"VariableDeclarator"},binding:r==="var"?5:8201}),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),o=!!(r&8);this.initFunction(e,o),this.match(55)&&(i&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),s&&(e.id=this.parseFunctionId(n));let u=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Fn(o,e.generator)),s||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=u,e}parseFunctionId(e){return e||Ee(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,r){this.expect(10),this.expressionScope.enter(a1()),e.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,r,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let o=this.startNode();s.length&&(o.decorators=s,this.resetStartLocationFromNode(o,s[0]),s=[]),this.parseClassMember(n,o,i),o.kind==="constructor"&&o.decorators&&o.decorators.length>0&&this.raise(_.DecoratorConstructor,o)}}),this.state.strict=r,this.next(),s.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,r))return;if(this.eat(5)){this.parseClassStaticBlock(e,r);return}}this.parseClassMemberWithIsStatic(e,r,i,s)}parseClassMemberWithIsStatic(e,r,i,s){let n=r,o=r,u=r,c=r,p=r,f=n,P=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){f.kind="method";let J=this.match(138);if(this.parseClassElementName(f),J){this.pushClassPrivateMethod(e,o,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(_.ConstructorIsGenerator,n.key),this.pushClassMethod(e,n,!0,!1,!1,!1);return}let k=!this.state.containsEsc&&Ee(this.state.type),D=this.parseClassElementName(r),F=k?D.name:null,q=this.isPrivateName(D),ae=this.state.startLoc;if(this.parsePostMemberNameModifiers(P),this.isClassMethod()){if(f.kind="method",q){this.pushClassPrivateMethod(e,o,!1,!1);return}let J=this.isNonstaticConstructor(n),G=!1;J&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(_.DuplicateConstructor,D),J&&this.hasPlugin("typescript")&&r.override&&this.raise(_.OverrideOnConstructor,D),i.hadConstructor=!0,G=i.hadSuperClass),this.pushClassMethod(e,n,!1,!1,J,G)}else if(this.isClassProperty())q?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u);else if(F==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(D);let J=this.eat(55);P.optional&&this.unexpected(ae),f.kind="method";let G=this.match(138);this.parseClassElementName(f),this.parsePostMemberNameModifiers(P),G?this.pushClassPrivateMethod(e,o,J,!0):(this.isNonstaticConstructor(n)&&this.raise(_.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,J,!0,!1,!1))}else if((F==="get"||F==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(D),f.kind=F;let J=this.match(138);this.parseClassElementName(n),J?this.pushClassPrivateMethod(e,o,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(_.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(F==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(D);let J=this.match(138);this.parseClassElementName(u),this.pushClassAccessorProperty(e,p,J)}else this.isLineTerminator()?q?this.pushClassPrivateProperty(e,c):this.pushClassProperty(e,u):this.unexpected()}parseClassElementName(e){let{type:r,value:i}=this.state;if((r===132||r===133)&&e.static&&i==="prototype"&&this.raise(_.StaticPrototype,this.state.startLoc),r===138){i==="constructor"&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,r){var i;this.scope.enter(208);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(_.DecoratorStaticBlock,r)}pushClassProperty(e,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(_.ConstructorClassField,r.key),e.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(e,r){let i=this.parseClassPrivateProperty(r);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(_.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);e.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,r,i,s,n,o){e.body.push(this.parseMethod(r,i,s,n,o,"ClassMethod",!0))}pushClassPrivateMethod(e,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);let o=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,o)}declareClassPrivateMethodInScope(e,r){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),r,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(jy()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,r,i,s=8331){if(Ee(this.state.type))e.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(e.id,s);else if(i||!r)e.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,r){let i=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,i),n=!s||this.eat(12),o=n&&this.eatExportStar(e),u=o&&this.maybeParseExportNamespaceSpecifier(e),c=n&&(!u||this.eat(12)),p=s||o;if(o&&!u){if(s&&this.unexpected(),r)throw this.raise(_.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}let f=this.maybeParseExportNamedSpecifiers(e);s&&n&&!o&&!f&&this.unexpected(null,5),u&&c&&this.unexpected(null,98);let P;if(p||f){if(P=!1,r)throw this.raise(_.UnsupportedDecoratorExport,e);this.parseExportFrom(e,p)}else P=this.maybeParseExportDeclaration(e);if(p||f||P){var k;let D=e;if(this.checkExport(D,!0,!1,!!D.source),((k=D.declaration)==null?void 0:k.type)==="ClassDeclaration")this.maybeTakeDecorators(r,D.declaration,D);else if(r)throw this.raise(_.UnsupportedDecoratorExport,e);return this.finishNode(D,"ExportNamedDeclaration")}if(this.eat(65)){let D=e,F=this.parseExportDefaultExpression();if(D.declaration=F,F.type==="ClassDeclaration")this.maybeTakeDecorators(r,F,D);else if(r)throw this.raise(_.UnsupportedDecoratorExport,e);return this.checkExport(D,!0,!0),this.finishNode(D,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var r,i;(i=(r=e).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let r=e;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Ee(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let{type:s}=this.lookahead();if(Ee(s)&&s!==98||s===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Ee(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(e,r){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var o;let u=e.declaration;u.type==="Identifier"&&u.name==="from"&&u.end-u.start===4&&!((o=u.extra)!=null&&o.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,u)}}else if((n=e.specifiers)!=null&&n.length)for(let u of e.specifiers){let{exported:c}=u,p=c.type==="Identifier"?c.name:c.value;if(this.checkDuplicateExports(u,p),!s&&u.local){let{local:f}=u;f.type!=="Identifier"?this.raise(_.ExportBindingIsString,u,{localName:f.value,exportName:p}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}else if(e.declaration){let u=e.declaration;if(u.type==="FunctionDeclaration"||u.type==="ClassDeclaration"){let{id:c}=u;if(!c)throw new Error("Assertion failure");this.checkDuplicateExports(e,c.name)}else if(u.type==="VariableDeclaration")for(let c of u.declarations)this.checkDeclaration(c.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let r of e.properties)this.checkDeclaration(r);else if(e.type==="ArrayPattern")for(let r of e.elements)r&&this.checkDeclaration(r);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(_.DuplicateDefaultExport,e):this.raise(_.DuplicateExport,e,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(e){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(133),o=this.startNode();o.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(o,n,e,s))}return r}parseExportSpecifier(e,r,i,s){return this.eatContextual(93)?e.exported=this.parseModuleExportName():r?e.exported=c1(e.local):e.exported||(e.exported=sr(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let e=this.parseStringLiteral(this.state.value),r=e.value.match(L1);return r&&this.raise(_.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:r[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(e){let{specifiers:r}=e,i=r.length===1?r[0].type:null;if(e.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(_.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(e.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(_.DeferImportRequiresNamespace,r[0].loc.start);else if(e.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(_.ImportReflectionNotBinding,r[0].loc.start),((s=e.assertions)==null?void 0:s.length)>0&&this.raise(_.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:r}=e;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(_.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(e,r,null),null;let i=this.parseIdentifier(!0),{type:s}=this.state;return(Nt(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.resetPreviousIdentifierLeadingComments(i),this.applyImportPhase(e,r,i.name,i.loc.start),null):(this.applyImportPhase(e,r,null),i)}isPrecedingIdImportPhase(e){let{type:r}=this.state;return Ee(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,r){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(e);return s&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var r;return(r=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,r,i){r.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(e,r,i=8201){return this.checkLVal(e.local,{in:{type:r},binding:i}),this.finishNode(e,r)}parseImportAttributes(){this.expect(5);let e=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(133)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(_.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(133))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let r,i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),i=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!i&&this.hasPlugin("importAssertions")?e.assertions=r:e.attributes=r}maybeParseDefaultImportSpecifier(e,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(Nt(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(133),n=this.isContextual(130);i.imported=this.parseModuleExportName();let o=this.parseImportSpecifier(i,s,e.importKind==="type"||e.importKind==="typeof",n,void 0);e.specifiers.push(o)}}parseImportSpecifier(e,r,i,s,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:o}=e;if(r)throw this.raise(_.ImportBindingIsString,e,{importName:o.value});this.checkReservedWord(o.name,e.loc.start,!0,!0),e.local||(e.local=sr(o))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Un=class extends au{constructor(e,r){e=k1(e),super(e,r),this.options=e,this.initializeScopes(),this.plugins=F1(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return fs}parse(){this.enterInitialScopes();let e=this.startNode(),r=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,r),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function F1(t){let e=new Map;for(let r of t){let[i,s]=Array.isArray(r)?r:[r,{}];e.has(i)||e.set(i,s||{})}return e}function B1(t,e){var r;if(((r=e)==null?void 0:r.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let i=us(e,t),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return e.sourceType="script",us(e,t).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return e.sourceType="script",us(e,t).parse()}catch{}throw i}}else return us(e,t).parse()}function R1(t,e){let r=us(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function j1(t){let e={};for(let r of Object.keys(t))e[r]=er(t[r]);return e}var U1=j1(DE);function us(t,e){let r=Un;return t!=null&&t.plugins&&(_1(t.plugins),r=V1(t.plugins)),new r(t,e)}var wy={};function V1(t){let e=O1.filter(s=>Ue(t,s)),r=e.join("/"),i=wy[r];if(!i){i=Un;for(let s of e)i=Ky[s](i);wy[r]=i}return i}ds.parse=B1;ds.parseExpression=R1;ds.tokTypes=U1});var Vn=L(xu=>{"use strict";y();m();Object.defineProperty(xu,"__esModule",{value:!0});xu.default=q1;function q1(t,e){let r=Object.keys(e);for(let i of r)if(t[i]!==e[i])return!1;return!0}});var ys=L(bu=>{"use strict";y();m();Object.defineProperty(bu,"__esModule",{value:!0});bu.default=K1;var Yy=new Set;function K1(t,e,r=""){if(Yy.has(t))return;Yy.add(t);let{internal:i,trace:s}=Y1(1,2);i||console.warn(`${r}\`${t}\` has been deprecated, please migrate to \`${e}\`
|
|
57
|
+
${s}`)}function Y1(t,e){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+t+e,Error.prepareStackTrace=function(o,u){s=u},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+t,1+t+e);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(o=>` at ${o}`).join(`
|
|
58
|
+
`)}}});var Re=L(g=>{"use strict";y();m();Object.defineProperty(g,"__esModule",{value:!0});g.isAccessor=sC;g.isAnyTypeAnnotation=AP;g.isArgumentPlaceholder=ew;g.isArrayExpression=X1;g.isArrayPattern=Kv;g.isArrayTypeAnnotation=wP;g.isArrowFunctionExpression=Yv;g.isAssignmentExpression=W1;g.isAssignmentPattern=qv;g.isAwaitExpression=hP;g.isBigIntLiteral=yP;g.isBinary=II;g.isBinaryExpression=J1;g.isBindExpression=tw;g.isBlock=_I;g.isBlockParent=NI;g.isBlockStatement=G1;g.isBooleanLiteral=xv;g.isBooleanLiteralTypeAnnotation=CP;g.isBooleanTypeAnnotation=IP;g.isBreakStatement=Q1;g.isCallExpression=Z1;g.isCatchClause=ev;g.isClass=tC;g.isClassAccessorProperty=gP;g.isClassBody=Xv;g.isClassDeclaration=Jv;g.isClassExpression=Wv;g.isClassImplements=_P;g.isClassMethod=nP;g.isClassPrivateMethod=EP;g.isClassPrivateProperty=SP;g.isClassProperty=bP;g.isCompletionStatement=DI;g.isConditional=LI;g.isConditionalExpression=tv;g.isContinueStatement=rv;g.isDebuggerStatement=iv;g.isDecimalLiteral=uw;g.isDeclaration=KI;g.isDeclareClass=OP;g.isDeclareExportAllDeclaration=UP;g.isDeclareExportDeclaration=jP;g.isDeclareFunction=kP;g.isDeclareInterface=DP;g.isDeclareModule=LP;g.isDeclareModuleExports=MP;g.isDeclareOpaqueType=BP;g.isDeclareTypeAlias=FP;g.isDeclareVariable=RP;g.isDeclaredPredicate=VP;g.isDecorator=iw;g.isDirective=$1;g.isDirectiveLiteral=H1;g.isDoExpression=sw;g.isDoWhileStatement=sv;g.isEmptyStatement=nv;g.isEmptyTypeAnnotation=QP;g.isEnumBody=pC;g.isEnumBooleanBody=wA;g.isEnumBooleanMember=_A;g.isEnumDeclaration=AA;g.isEnumDefaultedMember=DA;g.isEnumMember=fC;g.isEnumNumberBody=IA;g.isEnumNumberMember=OA;g.isEnumStringBody=CA;g.isEnumStringMember=kA;g.isEnumSymbolBody=NA;g.isExistsTypeAnnotation=qP;g.isExportAllDeclaration=zv;g.isExportDeclaration=rC;g.isExportDefaultDeclaration=$v;g.isExportDefaultSpecifier=nw;g.isExportNamedDeclaration=Hv;g.isExportNamespaceSpecifier=mP;g.isExportSpecifier=Gv;g.isExpression=wI;g.isExpressionStatement=av;g.isExpressionWrapper=BI;g.isFile=ov;g.isFlow=aC;g.isFlowBaseAnnotation=uC;g.isFlowDeclaration=lC;g.isFlowPredicate=cC;g.isFlowType=oC;g.isFor=RI;g.isForInStatement=uv;g.isForOfStatement=Qv;g.isForStatement=lv;g.isForXStatement=jI;g.isFunction=UI;g.isFunctionDeclaration=cv;g.isFunctionExpression=pv;g.isFunctionParent=VI;g.isFunctionTypeAnnotation=KP;g.isFunctionTypeParam=YP;g.isGenericTypeAnnotation=XP;g.isIdentifier=fv;g.isIfStatement=hv;g.isImmutable=zI;g.isImport=dP;g.isImportAttribute=rw;g.isImportDeclaration=Zv;g.isImportDefaultSpecifier=eP;g.isImportExpression=iP;g.isImportNamespaceSpecifier=tP;g.isImportOrExportDeclaration=Xy;g.isImportSpecifier=rP;g.isIndexedAccessType=LA;g.isInferredPredicate=WP;g.isInterfaceDeclaration=zP;g.isInterfaceExtends=JP;g.isInterfaceTypeAnnotation=$P;g.isInterpreterDirective=z1;g.isIntersectionTypeAnnotation=HP;g.isJSX=hC;g.isJSXAttribute=FA;g.isJSXClosingElement=BA;g.isJSXClosingFragment=HA;g.isJSXElement=RA;g.isJSXEmptyExpression=jA;g.isJSXExpressionContainer=UA;g.isJSXFragment=zA;g.isJSXIdentifier=qA;g.isJSXMemberExpression=KA;g.isJSXNamespacedName=YA;g.isJSXOpeningElement=XA;g.isJSXOpeningFragment=$A;g.isJSXSpreadAttribute=WA;g.isJSXSpreadChild=VA;g.isJSXText=JA;g.isLVal=XI;g.isLabeledStatement=dv;g.isLiteral=JI;g.isLogicalExpression=gv;g.isLoop=MI;g.isMemberExpression=Sv;g.isMetaProperty=sP;g.isMethod=HI;g.isMiscellaneous=dC;g.isMixedTypeAnnotation=GP;g.isModuleDeclaration=vC;g.isModuleExpression=lw;g.isModuleSpecifier=iC;g.isNewExpression=Ev;g.isNoop=GA;g.isNullLiteral=Tv;g.isNullLiteralTypeAnnotation=NP;g.isNullableTypeAnnotation=ZP;g.isNumberLiteral=bC;g.isNumberLiteralTypeAnnotation=eA;g.isNumberTypeAnnotation=tA;g.isNumericLiteral=mv;g.isObjectExpression=Pv;g.isObjectMember=GI;g.isObjectMethod=Av;g.isObjectPattern=aP;g.isObjectProperty=wv;g.isObjectTypeAnnotation=rA;g.isObjectTypeCallProperty=sA;g.isObjectTypeIndexer=nA;g.isObjectTypeInternalSlot=iA;g.isObjectTypeProperty=aA;g.isObjectTypeSpreadProperty=oA;g.isOpaqueType=uA;g.isOptionalCallExpression=xP;g.isOptionalIndexedAccessType=MA;g.isOptionalMemberExpression=TP;g.isParenthesizedExpression=_v;g.isPattern=eC;g.isPatternLike=YI;g.isPipelineBareFunction=fw;g.isPipelinePrimaryTopicReference=hw;g.isPipelineTopicExpression=pw;g.isPlaceholder=QA;g.isPrivate=nC;g.isPrivateName=vP;g.isProgram=vv;g.isProperty=QI;g.isPureish=qI;g.isQualifiedTypeIdentifier=lA;g.isRecordExpression=aw;g.isRegExpLiteral=bv;g.isRegexLiteral=gC;g.isRestElement=Iv;g.isRestProperty=SC;g.isReturnStatement=Cv;g.isScopable=CI;g.isSequenceExpression=Nv;g.isSpreadElement=oP;g.isSpreadProperty=EC;g.isStandardized=AI;g.isStatement=OI;g.isStaticBlock=PP;g.isStringLiteral=yv;g.isStringLiteralTypeAnnotation=cA;g.isStringTypeAnnotation=pA;g.isSuper=uP;g.isSwitchCase=Ov;g.isSwitchStatement=kv;g.isSymbolTypeAnnotation=fA;g.isTSAnyKeyword=vw;g.isTSArrayType=Kw;g.isTSAsExpression=uI;g.isTSBaseType=xC;g.isTSBigIntKeyword=Aw;g.isTSBooleanKeyword=Pw;g.isTSCallSignatureDeclaration=xw;g.isTSConditionalType=Hw;g.isTSConstructSignatureDeclaration=bw;g.isTSConstructorType=Rw;g.isTSDeclareFunction=yw;g.isTSDeclareMethod=mw;g.isTSEntityName=WI;g.isTSEnumDeclaration=pI;g.isTSEnumMember=fI;g.isTSExportAssignment=bI;g.isTSExpressionWithTypeArguments=iI;g.isTSExternalModuleReference=TI;g.isTSFunctionType=Bw;g.isTSImportEqualsDeclaration=mI;g.isTSImportType=yI;g.isTSIndexSignature=Ew;g.isTSIndexedAccessType=eI;g.isTSInferType=Gw;g.isTSInstantiationExpression=oI;g.isTSInterfaceBody=nI;g.isTSInterfaceDeclaration=sI;g.isTSIntersectionType=$w;g.isTSIntrinsicKeyword=ww;g.isTSLiteralType=rI;g.isTSMappedType=tI;g.isTSMethodSignature=Sw;g.isTSModuleBlock=dI;g.isTSModuleDeclaration=hI;g.isTSNamedTupleMember=Jw;g.isTSNamespaceExportDeclaration=gI;g.isTSNeverKeyword=Iw;g.isTSNonNullExpression=xI;g.isTSNullKeyword=Cw;g.isTSNumberKeyword=Nw;g.isTSObjectKeyword=_w;g.isTSOptionalType=Xw;g.isTSParameterProperty=dw;g.isTSParenthesizedType=Qw;g.isTSPropertySignature=gw;g.isTSQualifiedName=Tw;g.isTSRestType=Ww;g.isTSSatisfiesExpression=lI;g.isTSStringKeyword=Ow;g.isTSSymbolKeyword=kw;g.isTSThisType=Fw;g.isTSTupleType=Yw;g.isTSType=TC;g.isTSTypeAliasDeclaration=aI;g.isTSTypeAnnotation=SI;g.isTSTypeAssertion=cI;g.isTSTypeElement=mC;g.isTSTypeLiteral=qw;g.isTSTypeOperator=Zw;g.isTSTypeParameter=PI;g.isTSTypeParameterDeclaration=vI;g.isTSTypeParameterInstantiation=EI;g.isTSTypePredicate=Uw;g.isTSTypeQuery=Vw;g.isTSTypeReference=jw;g.isTSUndefinedKeyword=Dw;g.isTSUnionType=zw;g.isTSUnknownKeyword=Lw;g.isTSVoidKeyword=Mw;g.isTaggedTemplateExpression=lP;g.isTemplateElement=cP;g.isTemplateLiteral=pP;g.isTerminatorless=kI;g.isThisExpression=Dv;g.isThisTypeAnnotation=hA;g.isThrowStatement=Lv;g.isTopicReference=cw;g.isTryStatement=Mv;g.isTupleExpression=ow;g.isTupleTypeAnnotation=dA;g.isTypeAlias=mA;g.isTypeAnnotation=TA;g.isTypeCastExpression=xA;g.isTypeParameter=bA;g.isTypeParameterDeclaration=gA;g.isTypeParameterInstantiation=SA;g.isTypeScript=yC;g.isTypeofTypeAnnotation=yA;g.isUnaryExpression=Fv;g.isUnaryLike=ZI;g.isUnionTypeAnnotation=EA;g.isUpdateExpression=Bv;g.isUserWhitespacable=$I;g.isV8IntrinsicIdentifier=ZA;g.isVariableDeclaration=Rv;g.isVariableDeclarator=jv;g.isVariance=vA;g.isVoidTypeAnnotation=PA;g.isWhile=FI;g.isWhileStatement=Uv;g.isWithStatement=Vv;g.isYieldExpression=fP;var v=Vn(),ms=ys();function X1(t,e){return!t||t.type!=="ArrayExpression"?!1:e==null||(0,v.default)(t,e)}function W1(t,e){return!t||t.type!=="AssignmentExpression"?!1:e==null||(0,v.default)(t,e)}function J1(t,e){return!t||t.type!=="BinaryExpression"?!1:e==null||(0,v.default)(t,e)}function z1(t,e){return!t||t.type!=="InterpreterDirective"?!1:e==null||(0,v.default)(t,e)}function $1(t,e){return!t||t.type!=="Directive"?!1:e==null||(0,v.default)(t,e)}function H1(t,e){return!t||t.type!=="DirectiveLiteral"?!1:e==null||(0,v.default)(t,e)}function G1(t,e){return!t||t.type!=="BlockStatement"?!1:e==null||(0,v.default)(t,e)}function Q1(t,e){return!t||t.type!=="BreakStatement"?!1:e==null||(0,v.default)(t,e)}function Z1(t,e){return!t||t.type!=="CallExpression"?!1:e==null||(0,v.default)(t,e)}function ev(t,e){return!t||t.type!=="CatchClause"?!1:e==null||(0,v.default)(t,e)}function tv(t,e){return!t||t.type!=="ConditionalExpression"?!1:e==null||(0,v.default)(t,e)}function rv(t,e){return!t||t.type!=="ContinueStatement"?!1:e==null||(0,v.default)(t,e)}function iv(t,e){return!t||t.type!=="DebuggerStatement"?!1:e==null||(0,v.default)(t,e)}function sv(t,e){return!t||t.type!=="DoWhileStatement"?!1:e==null||(0,v.default)(t,e)}function nv(t,e){return!t||t.type!=="EmptyStatement"?!1:e==null||(0,v.default)(t,e)}function av(t,e){return!t||t.type!=="ExpressionStatement"?!1:e==null||(0,v.default)(t,e)}function ov(t,e){return!t||t.type!=="File"?!1:e==null||(0,v.default)(t,e)}function uv(t,e){return!t||t.type!=="ForInStatement"?!1:e==null||(0,v.default)(t,e)}function lv(t,e){return!t||t.type!=="ForStatement"?!1:e==null||(0,v.default)(t,e)}function cv(t,e){return!t||t.type!=="FunctionDeclaration"?!1:e==null||(0,v.default)(t,e)}function pv(t,e){return!t||t.type!=="FunctionExpression"?!1:e==null||(0,v.default)(t,e)}function fv(t,e){return!t||t.type!=="Identifier"?!1:e==null||(0,v.default)(t,e)}function hv(t,e){return!t||t.type!=="IfStatement"?!1:e==null||(0,v.default)(t,e)}function dv(t,e){return!t||t.type!=="LabeledStatement"?!1:e==null||(0,v.default)(t,e)}function yv(t,e){return!t||t.type!=="StringLiteral"?!1:e==null||(0,v.default)(t,e)}function mv(t,e){return!t||t.type!=="NumericLiteral"?!1:e==null||(0,v.default)(t,e)}function Tv(t,e){return!t||t.type!=="NullLiteral"?!1:e==null||(0,v.default)(t,e)}function xv(t,e){return!t||t.type!=="BooleanLiteral"?!1:e==null||(0,v.default)(t,e)}function bv(t,e){return!t||t.type!=="RegExpLiteral"?!1:e==null||(0,v.default)(t,e)}function gv(t,e){return!t||t.type!=="LogicalExpression"?!1:e==null||(0,v.default)(t,e)}function Sv(t,e){return!t||t.type!=="MemberExpression"?!1:e==null||(0,v.default)(t,e)}function Ev(t,e){return!t||t.type!=="NewExpression"?!1:e==null||(0,v.default)(t,e)}function vv(t,e){return!t||t.type!=="Program"?!1:e==null||(0,v.default)(t,e)}function Pv(t,e){return!t||t.type!=="ObjectExpression"?!1:e==null||(0,v.default)(t,e)}function Av(t,e){return!t||t.type!=="ObjectMethod"?!1:e==null||(0,v.default)(t,e)}function wv(t,e){return!t||t.type!=="ObjectProperty"?!1:e==null||(0,v.default)(t,e)}function Iv(t,e){return!t||t.type!=="RestElement"?!1:e==null||(0,v.default)(t,e)}function Cv(t,e){return!t||t.type!=="ReturnStatement"?!1:e==null||(0,v.default)(t,e)}function Nv(t,e){return!t||t.type!=="SequenceExpression"?!1:e==null||(0,v.default)(t,e)}function _v(t,e){return!t||t.type!=="ParenthesizedExpression"?!1:e==null||(0,v.default)(t,e)}function Ov(t,e){return!t||t.type!=="SwitchCase"?!1:e==null||(0,v.default)(t,e)}function kv(t,e){return!t||t.type!=="SwitchStatement"?!1:e==null||(0,v.default)(t,e)}function Dv(t,e){return!t||t.type!=="ThisExpression"?!1:e==null||(0,v.default)(t,e)}function Lv(t,e){return!t||t.type!=="ThrowStatement"?!1:e==null||(0,v.default)(t,e)}function Mv(t,e){return!t||t.type!=="TryStatement"?!1:e==null||(0,v.default)(t,e)}function Fv(t,e){return!t||t.type!=="UnaryExpression"?!1:e==null||(0,v.default)(t,e)}function Bv(t,e){return!t||t.type!=="UpdateExpression"?!1:e==null||(0,v.default)(t,e)}function Rv(t,e){return!t||t.type!=="VariableDeclaration"?!1:e==null||(0,v.default)(t,e)}function jv(t,e){return!t||t.type!=="VariableDeclarator"?!1:e==null||(0,v.default)(t,e)}function Uv(t,e){return!t||t.type!=="WhileStatement"?!1:e==null||(0,v.default)(t,e)}function Vv(t,e){return!t||t.type!=="WithStatement"?!1:e==null||(0,v.default)(t,e)}function qv(t,e){return!t||t.type!=="AssignmentPattern"?!1:e==null||(0,v.default)(t,e)}function Kv(t,e){return!t||t.type!=="ArrayPattern"?!1:e==null||(0,v.default)(t,e)}function Yv(t,e){return!t||t.type!=="ArrowFunctionExpression"?!1:e==null||(0,v.default)(t,e)}function Xv(t,e){return!t||t.type!=="ClassBody"?!1:e==null||(0,v.default)(t,e)}function Wv(t,e){return!t||t.type!=="ClassExpression"?!1:e==null||(0,v.default)(t,e)}function Jv(t,e){return!t||t.type!=="ClassDeclaration"?!1:e==null||(0,v.default)(t,e)}function zv(t,e){return!t||t.type!=="ExportAllDeclaration"?!1:e==null||(0,v.default)(t,e)}function $v(t,e){return!t||t.type!=="ExportDefaultDeclaration"?!1:e==null||(0,v.default)(t,e)}function Hv(t,e){return!t||t.type!=="ExportNamedDeclaration"?!1:e==null||(0,v.default)(t,e)}function Gv(t,e){return!t||t.type!=="ExportSpecifier"?!1:e==null||(0,v.default)(t,e)}function Qv(t,e){return!t||t.type!=="ForOfStatement"?!1:e==null||(0,v.default)(t,e)}function Zv(t,e){return!t||t.type!=="ImportDeclaration"?!1:e==null||(0,v.default)(t,e)}function eP(t,e){return!t||t.type!=="ImportDefaultSpecifier"?!1:e==null||(0,v.default)(t,e)}function tP(t,e){return!t||t.type!=="ImportNamespaceSpecifier"?!1:e==null||(0,v.default)(t,e)}function rP(t,e){return!t||t.type!=="ImportSpecifier"?!1:e==null||(0,v.default)(t,e)}function iP(t,e){return!t||t.type!=="ImportExpression"?!1:e==null||(0,v.default)(t,e)}function sP(t,e){return!t||t.type!=="MetaProperty"?!1:e==null||(0,v.default)(t,e)}function nP(t,e){return!t||t.type!=="ClassMethod"?!1:e==null||(0,v.default)(t,e)}function aP(t,e){return!t||t.type!=="ObjectPattern"?!1:e==null||(0,v.default)(t,e)}function oP(t,e){return!t||t.type!=="SpreadElement"?!1:e==null||(0,v.default)(t,e)}function uP(t,e){return!t||t.type!=="Super"?!1:e==null||(0,v.default)(t,e)}function lP(t,e){return!t||t.type!=="TaggedTemplateExpression"?!1:e==null||(0,v.default)(t,e)}function cP(t,e){return!t||t.type!=="TemplateElement"?!1:e==null||(0,v.default)(t,e)}function pP(t,e){return!t||t.type!=="TemplateLiteral"?!1:e==null||(0,v.default)(t,e)}function fP(t,e){return!t||t.type!=="YieldExpression"?!1:e==null||(0,v.default)(t,e)}function hP(t,e){return!t||t.type!=="AwaitExpression"?!1:e==null||(0,v.default)(t,e)}function dP(t,e){return!t||t.type!=="Import"?!1:e==null||(0,v.default)(t,e)}function yP(t,e){return!t||t.type!=="BigIntLiteral"?!1:e==null||(0,v.default)(t,e)}function mP(t,e){return!t||t.type!=="ExportNamespaceSpecifier"?!1:e==null||(0,v.default)(t,e)}function TP(t,e){return!t||t.type!=="OptionalMemberExpression"?!1:e==null||(0,v.default)(t,e)}function xP(t,e){return!t||t.type!=="OptionalCallExpression"?!1:e==null||(0,v.default)(t,e)}function bP(t,e){return!t||t.type!=="ClassProperty"?!1:e==null||(0,v.default)(t,e)}function gP(t,e){return!t||t.type!=="ClassAccessorProperty"?!1:e==null||(0,v.default)(t,e)}function SP(t,e){return!t||t.type!=="ClassPrivateProperty"?!1:e==null||(0,v.default)(t,e)}function EP(t,e){return!t||t.type!=="ClassPrivateMethod"?!1:e==null||(0,v.default)(t,e)}function vP(t,e){return!t||t.type!=="PrivateName"?!1:e==null||(0,v.default)(t,e)}function PP(t,e){return!t||t.type!=="StaticBlock"?!1:e==null||(0,v.default)(t,e)}function AP(t,e){return!t||t.type!=="AnyTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function wP(t,e){return!t||t.type!=="ArrayTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function IP(t,e){return!t||t.type!=="BooleanTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function CP(t,e){return!t||t.type!=="BooleanLiteralTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function NP(t,e){return!t||t.type!=="NullLiteralTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function _P(t,e){return!t||t.type!=="ClassImplements"?!1:e==null||(0,v.default)(t,e)}function OP(t,e){return!t||t.type!=="DeclareClass"?!1:e==null||(0,v.default)(t,e)}function kP(t,e){return!t||t.type!=="DeclareFunction"?!1:e==null||(0,v.default)(t,e)}function DP(t,e){return!t||t.type!=="DeclareInterface"?!1:e==null||(0,v.default)(t,e)}function LP(t,e){return!t||t.type!=="DeclareModule"?!1:e==null||(0,v.default)(t,e)}function MP(t,e){return!t||t.type!=="DeclareModuleExports"?!1:e==null||(0,v.default)(t,e)}function FP(t,e){return!t||t.type!=="DeclareTypeAlias"?!1:e==null||(0,v.default)(t,e)}function BP(t,e){return!t||t.type!=="DeclareOpaqueType"?!1:e==null||(0,v.default)(t,e)}function RP(t,e){return!t||t.type!=="DeclareVariable"?!1:e==null||(0,v.default)(t,e)}function jP(t,e){return!t||t.type!=="DeclareExportDeclaration"?!1:e==null||(0,v.default)(t,e)}function UP(t,e){return!t||t.type!=="DeclareExportAllDeclaration"?!1:e==null||(0,v.default)(t,e)}function VP(t,e){return!t||t.type!=="DeclaredPredicate"?!1:e==null||(0,v.default)(t,e)}function qP(t,e){return!t||t.type!=="ExistsTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function KP(t,e){return!t||t.type!=="FunctionTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function YP(t,e){return!t||t.type!=="FunctionTypeParam"?!1:e==null||(0,v.default)(t,e)}function XP(t,e){return!t||t.type!=="GenericTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function WP(t,e){return!t||t.type!=="InferredPredicate"?!1:e==null||(0,v.default)(t,e)}function JP(t,e){return!t||t.type!=="InterfaceExtends"?!1:e==null||(0,v.default)(t,e)}function zP(t,e){return!t||t.type!=="InterfaceDeclaration"?!1:e==null||(0,v.default)(t,e)}function $P(t,e){return!t||t.type!=="InterfaceTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function HP(t,e){return!t||t.type!=="IntersectionTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function GP(t,e){return!t||t.type!=="MixedTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function QP(t,e){return!t||t.type!=="EmptyTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function ZP(t,e){return!t||t.type!=="NullableTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function eA(t,e){return!t||t.type!=="NumberLiteralTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function tA(t,e){return!t||t.type!=="NumberTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function rA(t,e){return!t||t.type!=="ObjectTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function iA(t,e){return!t||t.type!=="ObjectTypeInternalSlot"?!1:e==null||(0,v.default)(t,e)}function sA(t,e){return!t||t.type!=="ObjectTypeCallProperty"?!1:e==null||(0,v.default)(t,e)}function nA(t,e){return!t||t.type!=="ObjectTypeIndexer"?!1:e==null||(0,v.default)(t,e)}function aA(t,e){return!t||t.type!=="ObjectTypeProperty"?!1:e==null||(0,v.default)(t,e)}function oA(t,e){return!t||t.type!=="ObjectTypeSpreadProperty"?!1:e==null||(0,v.default)(t,e)}function uA(t,e){return!t||t.type!=="OpaqueType"?!1:e==null||(0,v.default)(t,e)}function lA(t,e){return!t||t.type!=="QualifiedTypeIdentifier"?!1:e==null||(0,v.default)(t,e)}function cA(t,e){return!t||t.type!=="StringLiteralTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function pA(t,e){return!t||t.type!=="StringTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function fA(t,e){return!t||t.type!=="SymbolTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function hA(t,e){return!t||t.type!=="ThisTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function dA(t,e){return!t||t.type!=="TupleTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function yA(t,e){return!t||t.type!=="TypeofTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function mA(t,e){return!t||t.type!=="TypeAlias"?!1:e==null||(0,v.default)(t,e)}function TA(t,e){return!t||t.type!=="TypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function xA(t,e){return!t||t.type!=="TypeCastExpression"?!1:e==null||(0,v.default)(t,e)}function bA(t,e){return!t||t.type!=="TypeParameter"?!1:e==null||(0,v.default)(t,e)}function gA(t,e){return!t||t.type!=="TypeParameterDeclaration"?!1:e==null||(0,v.default)(t,e)}function SA(t,e){return!t||t.type!=="TypeParameterInstantiation"?!1:e==null||(0,v.default)(t,e)}function EA(t,e){return!t||t.type!=="UnionTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function vA(t,e){return!t||t.type!=="Variance"?!1:e==null||(0,v.default)(t,e)}function PA(t,e){return!t||t.type!=="VoidTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function AA(t,e){return!t||t.type!=="EnumDeclaration"?!1:e==null||(0,v.default)(t,e)}function wA(t,e){return!t||t.type!=="EnumBooleanBody"?!1:e==null||(0,v.default)(t,e)}function IA(t,e){return!t||t.type!=="EnumNumberBody"?!1:e==null||(0,v.default)(t,e)}function CA(t,e){return!t||t.type!=="EnumStringBody"?!1:e==null||(0,v.default)(t,e)}function NA(t,e){return!t||t.type!=="EnumSymbolBody"?!1:e==null||(0,v.default)(t,e)}function _A(t,e){return!t||t.type!=="EnumBooleanMember"?!1:e==null||(0,v.default)(t,e)}function OA(t,e){return!t||t.type!=="EnumNumberMember"?!1:e==null||(0,v.default)(t,e)}function kA(t,e){return!t||t.type!=="EnumStringMember"?!1:e==null||(0,v.default)(t,e)}function DA(t,e){return!t||t.type!=="EnumDefaultedMember"?!1:e==null||(0,v.default)(t,e)}function LA(t,e){return!t||t.type!=="IndexedAccessType"?!1:e==null||(0,v.default)(t,e)}function MA(t,e){return!t||t.type!=="OptionalIndexedAccessType"?!1:e==null||(0,v.default)(t,e)}function FA(t,e){return!t||t.type!=="JSXAttribute"?!1:e==null||(0,v.default)(t,e)}function BA(t,e){return!t||t.type!=="JSXClosingElement"?!1:e==null||(0,v.default)(t,e)}function RA(t,e){return!t||t.type!=="JSXElement"?!1:e==null||(0,v.default)(t,e)}function jA(t,e){return!t||t.type!=="JSXEmptyExpression"?!1:e==null||(0,v.default)(t,e)}function UA(t,e){return!t||t.type!=="JSXExpressionContainer"?!1:e==null||(0,v.default)(t,e)}function VA(t,e){return!t||t.type!=="JSXSpreadChild"?!1:e==null||(0,v.default)(t,e)}function qA(t,e){return!t||t.type!=="JSXIdentifier"?!1:e==null||(0,v.default)(t,e)}function KA(t,e){return!t||t.type!=="JSXMemberExpression"?!1:e==null||(0,v.default)(t,e)}function YA(t,e){return!t||t.type!=="JSXNamespacedName"?!1:e==null||(0,v.default)(t,e)}function XA(t,e){return!t||t.type!=="JSXOpeningElement"?!1:e==null||(0,v.default)(t,e)}function WA(t,e){return!t||t.type!=="JSXSpreadAttribute"?!1:e==null||(0,v.default)(t,e)}function JA(t,e){return!t||t.type!=="JSXText"?!1:e==null||(0,v.default)(t,e)}function zA(t,e){return!t||t.type!=="JSXFragment"?!1:e==null||(0,v.default)(t,e)}function $A(t,e){return!t||t.type!=="JSXOpeningFragment"?!1:e==null||(0,v.default)(t,e)}function HA(t,e){return!t||t.type!=="JSXClosingFragment"?!1:e==null||(0,v.default)(t,e)}function GA(t,e){return!t||t.type!=="Noop"?!1:e==null||(0,v.default)(t,e)}function QA(t,e){return!t||t.type!=="Placeholder"?!1:e==null||(0,v.default)(t,e)}function ZA(t,e){return!t||t.type!=="V8IntrinsicIdentifier"?!1:e==null||(0,v.default)(t,e)}function ew(t,e){return!t||t.type!=="ArgumentPlaceholder"?!1:e==null||(0,v.default)(t,e)}function tw(t,e){return!t||t.type!=="BindExpression"?!1:e==null||(0,v.default)(t,e)}function rw(t,e){return!t||t.type!=="ImportAttribute"?!1:e==null||(0,v.default)(t,e)}function iw(t,e){return!t||t.type!=="Decorator"?!1:e==null||(0,v.default)(t,e)}function sw(t,e){return!t||t.type!=="DoExpression"?!1:e==null||(0,v.default)(t,e)}function nw(t,e){return!t||t.type!=="ExportDefaultSpecifier"?!1:e==null||(0,v.default)(t,e)}function aw(t,e){return!t||t.type!=="RecordExpression"?!1:e==null||(0,v.default)(t,e)}function ow(t,e){return!t||t.type!=="TupleExpression"?!1:e==null||(0,v.default)(t,e)}function uw(t,e){return!t||t.type!=="DecimalLiteral"?!1:e==null||(0,v.default)(t,e)}function lw(t,e){return!t||t.type!=="ModuleExpression"?!1:e==null||(0,v.default)(t,e)}function cw(t,e){return!t||t.type!=="TopicReference"?!1:e==null||(0,v.default)(t,e)}function pw(t,e){return!t||t.type!=="PipelineTopicExpression"?!1:e==null||(0,v.default)(t,e)}function fw(t,e){return!t||t.type!=="PipelineBareFunction"?!1:e==null||(0,v.default)(t,e)}function hw(t,e){return!t||t.type!=="PipelinePrimaryTopicReference"?!1:e==null||(0,v.default)(t,e)}function dw(t,e){return!t||t.type!=="TSParameterProperty"?!1:e==null||(0,v.default)(t,e)}function yw(t,e){return!t||t.type!=="TSDeclareFunction"?!1:e==null||(0,v.default)(t,e)}function mw(t,e){return!t||t.type!=="TSDeclareMethod"?!1:e==null||(0,v.default)(t,e)}function Tw(t,e){return!t||t.type!=="TSQualifiedName"?!1:e==null||(0,v.default)(t,e)}function xw(t,e){return!t||t.type!=="TSCallSignatureDeclaration"?!1:e==null||(0,v.default)(t,e)}function bw(t,e){return!t||t.type!=="TSConstructSignatureDeclaration"?!1:e==null||(0,v.default)(t,e)}function gw(t,e){return!t||t.type!=="TSPropertySignature"?!1:e==null||(0,v.default)(t,e)}function Sw(t,e){return!t||t.type!=="TSMethodSignature"?!1:e==null||(0,v.default)(t,e)}function Ew(t,e){return!t||t.type!=="TSIndexSignature"?!1:e==null||(0,v.default)(t,e)}function vw(t,e){return!t||t.type!=="TSAnyKeyword"?!1:e==null||(0,v.default)(t,e)}function Pw(t,e){return!t||t.type!=="TSBooleanKeyword"?!1:e==null||(0,v.default)(t,e)}function Aw(t,e){return!t||t.type!=="TSBigIntKeyword"?!1:e==null||(0,v.default)(t,e)}function ww(t,e){return!t||t.type!=="TSIntrinsicKeyword"?!1:e==null||(0,v.default)(t,e)}function Iw(t,e){return!t||t.type!=="TSNeverKeyword"?!1:e==null||(0,v.default)(t,e)}function Cw(t,e){return!t||t.type!=="TSNullKeyword"?!1:e==null||(0,v.default)(t,e)}function Nw(t,e){return!t||t.type!=="TSNumberKeyword"?!1:e==null||(0,v.default)(t,e)}function _w(t,e){return!t||t.type!=="TSObjectKeyword"?!1:e==null||(0,v.default)(t,e)}function Ow(t,e){return!t||t.type!=="TSStringKeyword"?!1:e==null||(0,v.default)(t,e)}function kw(t,e){return!t||t.type!=="TSSymbolKeyword"?!1:e==null||(0,v.default)(t,e)}function Dw(t,e){return!t||t.type!=="TSUndefinedKeyword"?!1:e==null||(0,v.default)(t,e)}function Lw(t,e){return!t||t.type!=="TSUnknownKeyword"?!1:e==null||(0,v.default)(t,e)}function Mw(t,e){return!t||t.type!=="TSVoidKeyword"?!1:e==null||(0,v.default)(t,e)}function Fw(t,e){return!t||t.type!=="TSThisType"?!1:e==null||(0,v.default)(t,e)}function Bw(t,e){return!t||t.type!=="TSFunctionType"?!1:e==null||(0,v.default)(t,e)}function Rw(t,e){return!t||t.type!=="TSConstructorType"?!1:e==null||(0,v.default)(t,e)}function jw(t,e){return!t||t.type!=="TSTypeReference"?!1:e==null||(0,v.default)(t,e)}function Uw(t,e){return!t||t.type!=="TSTypePredicate"?!1:e==null||(0,v.default)(t,e)}function Vw(t,e){return!t||t.type!=="TSTypeQuery"?!1:e==null||(0,v.default)(t,e)}function qw(t,e){return!t||t.type!=="TSTypeLiteral"?!1:e==null||(0,v.default)(t,e)}function Kw(t,e){return!t||t.type!=="TSArrayType"?!1:e==null||(0,v.default)(t,e)}function Yw(t,e){return!t||t.type!=="TSTupleType"?!1:e==null||(0,v.default)(t,e)}function Xw(t,e){return!t||t.type!=="TSOptionalType"?!1:e==null||(0,v.default)(t,e)}function Ww(t,e){return!t||t.type!=="TSRestType"?!1:e==null||(0,v.default)(t,e)}function Jw(t,e){return!t||t.type!=="TSNamedTupleMember"?!1:e==null||(0,v.default)(t,e)}function zw(t,e){return!t||t.type!=="TSUnionType"?!1:e==null||(0,v.default)(t,e)}function $w(t,e){return!t||t.type!=="TSIntersectionType"?!1:e==null||(0,v.default)(t,e)}function Hw(t,e){return!t||t.type!=="TSConditionalType"?!1:e==null||(0,v.default)(t,e)}function Gw(t,e){return!t||t.type!=="TSInferType"?!1:e==null||(0,v.default)(t,e)}function Qw(t,e){return!t||t.type!=="TSParenthesizedType"?!1:e==null||(0,v.default)(t,e)}function Zw(t,e){return!t||t.type!=="TSTypeOperator"?!1:e==null||(0,v.default)(t,e)}function eI(t,e){return!t||t.type!=="TSIndexedAccessType"?!1:e==null||(0,v.default)(t,e)}function tI(t,e){return!t||t.type!=="TSMappedType"?!1:e==null||(0,v.default)(t,e)}function rI(t,e){return!t||t.type!=="TSLiteralType"?!1:e==null||(0,v.default)(t,e)}function iI(t,e){return!t||t.type!=="TSExpressionWithTypeArguments"?!1:e==null||(0,v.default)(t,e)}function sI(t,e){return!t||t.type!=="TSInterfaceDeclaration"?!1:e==null||(0,v.default)(t,e)}function nI(t,e){return!t||t.type!=="TSInterfaceBody"?!1:e==null||(0,v.default)(t,e)}function aI(t,e){return!t||t.type!=="TSTypeAliasDeclaration"?!1:e==null||(0,v.default)(t,e)}function oI(t,e){return!t||t.type!=="TSInstantiationExpression"?!1:e==null||(0,v.default)(t,e)}function uI(t,e){return!t||t.type!=="TSAsExpression"?!1:e==null||(0,v.default)(t,e)}function lI(t,e){return!t||t.type!=="TSSatisfiesExpression"?!1:e==null||(0,v.default)(t,e)}function cI(t,e){return!t||t.type!=="TSTypeAssertion"?!1:e==null||(0,v.default)(t,e)}function pI(t,e){return!t||t.type!=="TSEnumDeclaration"?!1:e==null||(0,v.default)(t,e)}function fI(t,e){return!t||t.type!=="TSEnumMember"?!1:e==null||(0,v.default)(t,e)}function hI(t,e){return!t||t.type!=="TSModuleDeclaration"?!1:e==null||(0,v.default)(t,e)}function dI(t,e){return!t||t.type!=="TSModuleBlock"?!1:e==null||(0,v.default)(t,e)}function yI(t,e){return!t||t.type!=="TSImportType"?!1:e==null||(0,v.default)(t,e)}function mI(t,e){return!t||t.type!=="TSImportEqualsDeclaration"?!1:e==null||(0,v.default)(t,e)}function TI(t,e){return!t||t.type!=="TSExternalModuleReference"?!1:e==null||(0,v.default)(t,e)}function xI(t,e){return!t||t.type!=="TSNonNullExpression"?!1:e==null||(0,v.default)(t,e)}function bI(t,e){return!t||t.type!=="TSExportAssignment"?!1:e==null||(0,v.default)(t,e)}function gI(t,e){return!t||t.type!=="TSNamespaceExportDeclaration"?!1:e==null||(0,v.default)(t,e)}function SI(t,e){return!t||t.type!=="TSTypeAnnotation"?!1:e==null||(0,v.default)(t,e)}function EI(t,e){return!t||t.type!=="TSTypeParameterInstantiation"?!1:e==null||(0,v.default)(t,e)}function vI(t,e){return!t||t.type!=="TSTypeParameterDeclaration"?!1:e==null||(0,v.default)(t,e)}function PI(t,e){return!t||t.type!=="TSTypeParameter"?!1:e==null||(0,v.default)(t,e)}function AI(t,e){if(!t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(t.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return e==null||(0,v.default)(t,e)}function wI(t,e){if(!t)return!1;switch(t.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return e==null||(0,v.default)(t,e)}function II(t,e){if(!t)return!1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return e==null||(0,v.default)(t,e)}function CI(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,v.default)(t,e)}function NI(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,v.default)(t,e)}function _I(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(t.expectedNode==="BlockStatement")break;default:return!1}return e==null||(0,v.default)(t,e)}function OI(t,e){if(!t)return!1;switch(t.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(t.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return e==null||(0,v.default)(t,e)}function kI(t,e){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return e==null||(0,v.default)(t,e)}function DI(t,e){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return e==null||(0,v.default)(t,e)}function LI(t,e){if(!t)return!1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return e==null||(0,v.default)(t,e)}function MI(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,v.default)(t,e)}function FI(t,e){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return e==null||(0,v.default)(t,e)}function BI(t,e){if(!t)return!1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return e==null||(0,v.default)(t,e)}function RI(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,v.default)(t,e)}function jI(t,e){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return e==null||(0,v.default)(t,e)}function UI(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,v.default)(t,e)}function VI(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return e==null||(0,v.default)(t,e)}function qI(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,v.default)(t,e)}function KI(t,e){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(t.expectedNode==="Declaration")break;default:return!1}return e==null||(0,v.default)(t,e)}function YI(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,v.default)(t,e)}function XI(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return e==null||(0,v.default)(t,e)}function WI(t,e){if(!t)return!1;switch(t.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(t.expectedNode==="Identifier")break;default:return!1}return e==null||(0,v.default)(t,e)}function JI(t,e){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,v.default)(t,e)}function zI(t,e){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(t.expectedNode==="StringLiteral")break;default:return!1}return e==null||(0,v.default)(t,e)}function $I(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return e==null||(0,v.default)(t,e)}function HI(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return e==null||(0,v.default)(t,e)}function GI(t,e){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return e==null||(0,v.default)(t,e)}function QI(t,e){if(!t)return!1;switch(t.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return e==null||(0,v.default)(t,e)}function ZI(t,e){if(!t)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return e==null||(0,v.default)(t,e)}function eC(t,e){if(!t)return!1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(t.expectedNode==="Pattern")break;default:return!1}return e==null||(0,v.default)(t,e)}function tC(t,e){if(!t)return!1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return e==null||(0,v.default)(t,e)}function Xy(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return e==null||(0,v.default)(t,e)}function rC(t,e){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return e==null||(0,v.default)(t,e)}function iC(t,e){if(!t)return!1;switch(t.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return e==null||(0,v.default)(t,e)}function sC(t,e){if(!t)return!1;switch(t.type){case"ClassAccessorProperty":break;default:return!1}return e==null||(0,v.default)(t,e)}function nC(t,e){if(!t)return!1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return e==null||(0,v.default)(t,e)}function aC(t,e){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return e==null||(0,v.default)(t,e)}function oC(t,e){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return e==null||(0,v.default)(t,e)}function uC(t,e){if(!t)return!1;switch(t.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return e==null||(0,v.default)(t,e)}function lC(t,e){if(!t)return!1;switch(t.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return e==null||(0,v.default)(t,e)}function cC(t,e){if(!t)return!1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return e==null||(0,v.default)(t,e)}function pC(t,e){if(!t)return!1;switch(t.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return e==null||(0,v.default)(t,e)}function fC(t,e){if(!t)return!1;switch(t.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return e==null||(0,v.default)(t,e)}function hC(t,e){if(!t)return!1;switch(t.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return e==null||(0,v.default)(t,e)}function dC(t,e){if(!t)return!1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return e==null||(0,v.default)(t,e)}function yC(t,e){if(!t)return!1;switch(t.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return e==null||(0,v.default)(t,e)}function mC(t,e){if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return e==null||(0,v.default)(t,e)}function TC(t,e){if(!t)return!1;switch(t.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return e==null||(0,v.default)(t,e)}function xC(t,e){if(!t)return!1;switch(t.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return e==null||(0,v.default)(t,e)}function bC(t,e){return(0,ms.default)("isNumberLiteral","isNumericLiteral"),!t||t.type!=="NumberLiteral"?!1:e==null||(0,v.default)(t,e)}function gC(t,e){return(0,ms.default)("isRegexLiteral","isRegExpLiteral"),!t||t.type!=="RegexLiteral"?!1:e==null||(0,v.default)(t,e)}function SC(t,e){return(0,ms.default)("isRestProperty","isRestElement"),!t||t.type!=="RestProperty"?!1:e==null||(0,v.default)(t,e)}function EC(t,e){return(0,ms.default)("isSpreadProperty","isSpreadElement"),!t||t.type!=="SpreadProperty"?!1:e==null||(0,v.default)(t,e)}function vC(t,e){return(0,ms.default)("isModuleDeclaration","isImportOrExportDeclaration"),Xy(t,e)}});var Su=L(gu=>{"use strict";y();m();Object.defineProperty(gu,"__esModule",{value:!0});gu.default=PC;var Ts=Re();function PC(t,e,r){if(!(0,Ts.isMemberExpression)(t))return!1;let i=Array.isArray(e)?e:e.split("."),s=[],n;for(n=t;(0,Ts.isMemberExpression)(n);n=n.object)s.push(n.property);if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let o=0,u=s.length-1;o<i.length;o++,u--){let c=s[u],p;if((0,Ts.isIdentifier)(c))p=c.name;else if((0,Ts.isStringLiteral)(c))p=c.value;else if((0,Ts.isThisExpression)(c))p="this";else return!1;if(i[o]!==p)return!1}return!0}});var vu=L(Eu=>{"use strict";y();m();Object.defineProperty(Eu,"__esModule",{value:!0});Eu.default=wC;var AC=Su();function wC(t,e){let r=t.split(".");return i=>(0,AC.default)(i,r,e)}});var Wy=L(qn=>{"use strict";y();m();Object.defineProperty(qn,"__esModule",{value:!0});qn.default=void 0;var IC=vu(),CC=(0,IC.default)("React.Component"),vU=qn.default=CC});var Jy=L(Pu=>{"use strict";y();m();Object.defineProperty(Pu,"__esModule",{value:!0});Pu.default=NC;function NC(t){return!!t&&/^[a-z]/.test(t)}});var $y=L((_U,zy)=>{"use strict";y();m();var xs=null;function bs(t){if(xs!==null&&typeof xs.property){let e=xs;return xs=bs.prototype=null,e}return xs=bs.prototype=t??Object.create(null),new bs}bs();zy.exports=function(e){return bs(e)}});var Kn=L(Au=>{"use strict";y();m();Object.defineProperty(Au,"__esModule",{value:!0});Au.default=_C;var Hy=Pt();function _C(t,e){if(t===e)return!0;if(t==null||Hy.ALIAS_KEYS[e])return!1;let r=Hy.FLIPPED_ALIAS_KEYS[e];if(r){if(r[0]===t)return!0;for(let i of r)if(t===i)return!0}return!1}});var Iu=L(wu=>{"use strict";y();m();Object.defineProperty(wu,"__esModule",{value:!0});wu.default=kC;var OC=Pt();function kC(t,e){if(t===e)return!0;let r=OC.PLACEHOLDERS_ALIAS[t];if(r){for(let i of r)if(e===i)return!0}return!1}});var Li=L(Cu=>{"use strict";y();m();Object.defineProperty(Cu,"__esModule",{value:!0});Cu.default=BC;var DC=Vn(),LC=Kn(),MC=Iu(),FC=Pt();function BC(t,e,r){return e?(0,LC.default)(e.type,t)?typeof r>"u"?!0:(0,DC.default)(e,r):!r&&e.type==="Placeholder"&&t in FC.FLIPPED_ALIAS_KEYS?(0,MC.default)(e.expectedNode,t):!1:!1}});var tm=L(gs=>{"use strict";y();m();Object.defineProperty(gs,"__esModule",{value:!0});gs.isIdentifierChar=em;gs.isIdentifierName=VC;gs.isIdentifierStart=Zy;var _u="\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\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\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\u09FC\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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-\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-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\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-\uAB69\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",Gy="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",RC=new RegExp("["+_u+"]"),jC=new RegExp("["+_u+Gy+"]");_u=Gy=null;var Qy=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],UC=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Nu(t,e){let r=65536;for(let i=0,s=e.length;i<s;i+=2){if(r+=e[i],r>t)return!1;if(r+=e[i+1],r>=t)return!0}return!1}function Zy(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&RC.test(String.fromCharCode(t)):Nu(t,Qy)}function em(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&jC.test(String.fromCharCode(t)):Nu(t,Qy)||Nu(t,UC)}function VC(t){let e=!0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);if((i&64512)===55296&&r+1<t.length){let s=t.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(e){if(e=!1,!Zy(i))return!1}else if(!em(i))return!1}return!e}});var nm=L(ei=>{"use strict";y();m();Object.defineProperty(ei,"__esModule",{value:!0});ei.isKeyword=WC;ei.isReservedWord=rm;ei.isStrictBindOnlyReservedWord=sm;ei.isStrictBindReservedWord=XC;ei.isStrictReservedWord=im;var Ou={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},qC=new Set(Ou.keyword),KC=new Set(Ou.strict),YC=new Set(Ou.strictBind);function rm(t,e){return e&&t==="await"||t==="enum"}function im(t,e){return rm(t,e)||KC.has(t)}function sm(t){return YC.has(t)}function XC(t,e){return im(t,e)||sm(t)}function WC(t){return qC.has(t)}});var Yn=L(Kt=>{"use strict";y();m();Object.defineProperty(Kt,"__esModule",{value:!0});Object.defineProperty(Kt,"isIdentifierChar",{enumerable:!0,get:function(){return ku.isIdentifierChar}});Object.defineProperty(Kt,"isIdentifierName",{enumerable:!0,get:function(){return ku.isIdentifierName}});Object.defineProperty(Kt,"isIdentifierStart",{enumerable:!0,get:function(){return ku.isIdentifierStart}});Object.defineProperty(Kt,"isKeyword",{enumerable:!0,get:function(){return Ss.isKeyword}});Object.defineProperty(Kt,"isReservedWord",{enumerable:!0,get:function(){return Ss.isReservedWord}});Object.defineProperty(Kt,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Ss.isStrictBindOnlyReservedWord}});Object.defineProperty(Kt,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Ss.isStrictBindReservedWord}});Object.defineProperty(Kt,"isStrictReservedWord",{enumerable:!0,get:function(){return Ss.isStrictReservedWord}});var ku=tm(),Ss=nm()});var Mi=L(Lu=>{"use strict";y();m();Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=JC;var Du=Yn();function JC(t,e=!0){return typeof t!="string"||e&&((0,Du.isKeyword)(t)||(0,Du.isStrictReservedWord)(t,!0))?!1:(0,Du.isIdentifierName)(t)}});var lm=L(Es=>{"use strict";y();m();Object.defineProperty(Es,"__esModule",{value:!0});Es.readCodePoint=um;Es.readInt=om;Es.readStringContents=$C;var zC=function(e){return e>=48&&e<=57},am={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Xn={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function $C(t,e,r,i,s,n){let o=r,u=i,c=s,p="",f=null,P=r,{length:k}=e;for(;;){if(r>=k){n.unterminated(o,u,c),p+=e.slice(P,r);break}let D=e.charCodeAt(r);if(HC(t,D,e,r)){p+=e.slice(P,r);break}if(D===92){p+=e.slice(P,r);let F=GC(e,r,i,s,t==="template",n);F.ch===null&&!f?f={pos:r,lineStart:i,curLine:s}:p+=F.ch,{pos:r,lineStart:i,curLine:s}=F,P=r}else D===8232||D===8233?(++r,++s,i=r):D===10||D===13?t==="template"?(p+=e.slice(P,r)+`
|
|
59
|
+
`,++r,D===13&&e.charCodeAt(r)===10&&++r,++s,P=i=r):n.unterminated(o,u,c):++r}return{pos:r,str:p,firstInvalidLoc:f,lineStart:i,curLine:s,containsInvalid:!!f}}function HC(t,e,r,i){return t==="template"?e===96||e===36&&r.charCodeAt(i+1)===123:e===(t==="double"?34:39)}function GC(t,e,r,i,s,n){let o=!s;e++;let u=p=>({pos:e,ch:p,lineStart:r,curLine:i}),c=t.charCodeAt(e++);switch(c){case 110:return u(`
|
|
60
|
+
`);case 114:return u("\r");case 120:{let p;return{code:p,pos:e}=Mu(t,e,r,i,2,!1,o,n),u(p===null?null:String.fromCharCode(p))}case 117:{let p;return{code:p,pos:e}=um(t,e,r,i,o,n),u(p===null?null:String.fromCodePoint(p))}case 116:return u(" ");case 98:return u("\b");case 118:return u("\v");case 102:return u("\f");case 13:t.charCodeAt(e)===10&&++e;case 10:r=e,++i;case 8232:case 8233:return u("");case 56:case 57:if(s)return u(null);n.strictNumericEscape(e-1,r,i);default:if(c>=48&&c<=55){let p=e-1,P=t.slice(p,e+2).match(/^[0-7]+/)[0],k=parseInt(P,8);k>255&&(P=P.slice(0,-1),k=parseInt(P,8)),e+=P.length-1;let D=t.charCodeAt(e);if(P!=="0"||D===56||D===57){if(s)return u(null);n.strictNumericEscape(p,r,i)}return u(String.fromCharCode(k))}return u(String.fromCharCode(c))}}function Mu(t,e,r,i,s,n,o,u){let c=e,p;return{n:p,pos:e}=om(t,e,r,i,16,s,n,!1,u,!o),p===null&&(o?u.invalidEscapeSequence(c,r,i):e=c-1),{code:p,pos:e}}function om(t,e,r,i,s,n,o,u,c,p){let f=e,P=s===16?am.hex:am.decBinOct,k=s===16?Xn.hex:s===10?Xn.dec:s===8?Xn.oct:Xn.bin,D=!1,F=0;for(let q=0,ae=n??1/0;q<ae;++q){let J=t.charCodeAt(e),G;if(J===95&&u!=="bail"){let z=t.charCodeAt(e-1),T=t.charCodeAt(e+1);if(u){if(Number.isNaN(T)||!k(T)||P.has(z)||P.has(T)){if(p)return{n:null,pos:e};c.unexpectedNumericSeparator(e,r,i)}}else{if(p)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,r,i)}++e;continue}if(J>=97?G=J-97+10:J>=65?G=J-65+10:zC(J)?G=J-48:G=1/0,G>=s){if(G<=9&&p)return{n:null,pos:e};if(G<=9&&c.invalidDigit(e,r,i,s))G=0;else if(o)G=0,D=!0;else break}++e,F=F*s+G}return e===f||n!=null&&e-f!==n||D?{n:null,pos:e}:{n:F,pos:e}}function um(t,e,r,i,s,n){let o=t.charCodeAt(e),u;if(o===123){if(++e,{code:u,pos:e}=Mu(t,e,r,i,t.indexOf("}",e)-e,!0,s,n),++e,u!==null&&u>1114111)if(s)n.invalidCodePoint(e,r,i);else return{code:null,pos:e}}else({code:u,pos:e}=Mu(t,e,r,i,4,!1,s,n));return{code:u,pos:e}}});var Sr=L(ue=>{"use strict";y();m();Object.defineProperty(ue,"__esModule",{value:!0});ue.UPDATE_OPERATORS=ue.UNARY_OPERATORS=ue.STRING_UNARY_OPERATORS=ue.STATEMENT_OR_BLOCK_KEYS=ue.NUMBER_UNARY_OPERATORS=ue.NUMBER_BINARY_OPERATORS=ue.NOT_LOCAL_BINDING=ue.LOGICAL_OPERATORS=ue.INHERIT_KEYS=ue.FOR_INIT_KEYS=ue.FLATTENABLE_KEYS=ue.EQUALITY_BINARY_OPERATORS=ue.COMPARISON_BINARY_OPERATORS=ue.COMMENT_KEYS=ue.BOOLEAN_UNARY_OPERATORS=ue.BOOLEAN_NUMBER_BINARY_OPERATORS=ue.BOOLEAN_BINARY_OPERATORS=ue.BLOCK_SCOPED_SYMBOL=ue.BINARY_OPERATORS=ue.ASSIGNMENT_OPERATORS=void 0;var iV=ue.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],sV=ue.FLATTENABLE_KEYS=["body","expressions"],nV=ue.FOR_INIT_KEYS=["left","init"],aV=ue.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],QC=ue.LOGICAL_OPERATORS=["||","&&","??"],oV=ue.UPDATE_OPERATORS=["++","--"],ZC=ue.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],eN=ue.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],tN=ue.COMPARISON_BINARY_OPERATORS=[...eN,"in","instanceof"],rN=ue.BOOLEAN_BINARY_OPERATORS=[...tN,...ZC],cm=ue.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],uV=ue.BINARY_OPERATORS=["+",...cm,...rN,"|>"],lV=ue.ASSIGNMENT_OPERATORS=["=","+=",...cm.map(t=>t+"="),...QC.map(t=>t+"=")],iN=ue.BOOLEAN_UNARY_OPERATORS=["delete","!"],sN=ue.NUMBER_UNARY_OPERATORS=["+","-","~"],nN=ue.STRING_UNARY_OPERATORS=["typeof"],cV=ue.UNARY_OPERATORS=["void","throw",...iN,...sN,...nN],pV=ue.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},fV=ue.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),hV=ue.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var nr=L(ge=>{"use strict";y();m();Object.defineProperty(ge,"__esModule",{value:!0});ge.VISITOR_KEYS=ge.NODE_PARENT_VALIDATIONS=ge.NODE_FIELDS=ge.FLIPPED_ALIAS_KEYS=ge.DEPRECATED_KEYS=ge.BUILDER_KEYS=ge.ALIAS_KEYS=void 0;ge.arrayOf=fm;ge.arrayOfType=hm;ge.assertEach=dm;ge.assertNodeOrValueType=TN;ge.assertNodeType=Bu;ge.assertOneOf=mN;ge.assertOptionalChainStart=bN;ge.assertShape=xN;ge.assertValueType=Uu;ge.chain=ym;ge.default=mm;ge.defineAliasedType=EN;ge.typeIs=zn;ge.validate=ju;ge.validateArrayOfType=yN;ge.validateOptional=hN;ge.validateOptionalType=dN;ge.validateType=fN;var pm=Li(),Jn=$n(),aN=ge.VISITOR_KEYS={},oN=ge.ALIAS_KEYS={},Fu=ge.FLIPPED_ALIAS_KEYS={},uN=ge.NODE_FIELDS={},lN=ge.BUILDER_KEYS={},cN=ge.DEPRECATED_KEYS={},pN=ge.NODE_PARENT_VALIDATIONS={};function Wn(t){return Array.isArray(t)?"array":t===null?"null":typeof t}function ju(t){return{validate:t}}function zn(t){return typeof t=="string"?Bu(t):Bu(...t)}function fN(t){return ju(zn(t))}function hN(t){return{validate:t,optional:!0}}function dN(t){return{validate:zn(t),optional:!0}}function fm(t){return ym(Uu("array"),dm(t))}function hm(t){return fm(zn(t))}function yN(t){return ju(hm(t))}function dm(t){function e(r,i,s){if(Array.isArray(s))for(let n=0;n<s.length;n++){let o=`${i}[${n}]`,u=s[n];t(r,o,u),N.env.BABEL_TYPES_8_BREAKING&&(0,Jn.validateChild)(r,o,u)}}return e.each=t,e}function mN(...t){function e(r,i,s){if(t.indexOf(s)<0)throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(t)} but got ${JSON.stringify(s)}`)}return e.oneOf=t,e}function Bu(...t){function e(r,i,s){for(let n of t)if((0,pm.default)(n,s)){(0,Jn.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s?.type)}`)}return e.oneOfNodeTypes=t,e}function TN(...t){function e(r,i,s){for(let n of t)if(Wn(s)===n||(0,pm.default)(n,s)){(0,Jn.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(t)} but instead got ${JSON.stringify(s?.type)}`)}return e.oneOfNodeOrValueTypes=t,e}function Uu(t){function e(r,i,s){if(!(Wn(s)===t))throw new TypeError(`Property ${i} expected type of ${t} but got ${Wn(s)}`)}return e.type=t,e}function xN(t){function e(r,i,s){let n=[];for(let o of Object.keys(t))try{(0,Jn.validateField)(r,o,s[o],t[o])}catch(u){if(u instanceof TypeError){n.push(u.message);continue}throw u}if(n.length)throw new TypeError(`Property ${i} of ${r.type} expected to have the following:
|
|
61
|
+
${n.join(`
|
|
62
|
+
`)}`)}return e.shapeOf=t,e}function bN(){function t(e){var r;let i=e;for(;e;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return t}function ym(...t){function e(...r){for(let i of t)i(...r)}if(e.chainOf=t,t.length>=2&&"type"in t[0]&&t[0].type==="array"&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return e}var gN=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],SN=["default","optional","deprecated","validate"],Ru={};function EN(...t){return(e,r={})=>{let i=r.aliases;if(!i){var s,n;r.inherits&&(i=(s=Ru[r.inherits].aliases)==null?void 0:s.slice()),(n=i)!=null||(i=[]),r.aliases=i}let o=t.filter(u=>!i.includes(u));i.unshift(...o),mm(e,r)}}function mm(t,e={}){let r=e.inherits&&Ru[e.inherits]||{},i=e.fields;if(!i&&(i={},r.fields)){let u=Object.getOwnPropertyNames(r.fields);for(let c of u){let p=r.fields[c],f=p.default;if(Array.isArray(f)?f.length>0:f&&typeof f=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[c]={default:Array.isArray(f)?[]:f,optional:p.optional,deprecated:p.deprecated,validate:p.validate}}}let s=e.visitor||r.visitor||[],n=e.aliases||r.aliases||[],o=e.builder||r.builder||e.visitor||[];for(let u of Object.keys(e))if(gN.indexOf(u)===-1)throw new Error(`Unknown type option "${u}" on ${t}`);e.deprecatedAlias&&(cN[e.deprecatedAlias]=t);for(let u of s.concat(o))i[u]=i[u]||{};for(let u of Object.keys(i)){let c=i[u];c.default!==void 0&&o.indexOf(u)===-1&&(c.optional=!0),c.default===void 0?c.default=null:!c.validate&&c.default!=null&&(c.validate=Uu(Wn(c.default)));for(let p of Object.keys(c))if(SN.indexOf(p)===-1)throw new Error(`Unknown field key "${p}" on ${t}.${u}`)}aN[t]=e.visitor=s,lN[t]=e.builder=o,uN[t]=e.fields=i,oN[t]=e.aliases=n,n.forEach(u=>{Fu[u]=Fu[u]||[],Fu[u].push(t)}),e.validate&&(pN[t]=e.validate),Ru[t]=e}});var qu=L(ht=>{"use strict";y();m();Object.defineProperty(ht,"__esModule",{value:!0});ht.patternLikeCommon=ht.functionTypeAnnotationCommon=ht.functionDeclarationCommon=ht.functionCommon=ht.classMethodOrPropertyCommon=ht.classMethodOrDeclareMethodCommon=void 0;var ot=Li(),vN=Mi(),Tm=Yn(),PN=lm(),vs=Sr(),d=nr(),K=(0,d.defineAliasedType)("Standardized");K("ArrayExpression",{fields:{elements:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:N.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});K("AssignmentExpression",{fields:{operator:{validate:function(){if(!N.env.BABEL_TYPES_8_BREAKING)return(0,d.assertValueType)("string");let t=(0,d.assertOneOf)(...vs.ASSIGNMENT_OPERATORS),e=(0,d.assertOneOf)("=");return function(r,i,s){((0,ot.default)("Pattern",r.left)?e:t)(r,i,s)}}()},left:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,d.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,d.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});K("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,d.assertOneOf)(...vs.BINARY_OPERATORS)},left:{validate:function(){let t=(0,d.assertNodeType)("Expression"),e=(0,d.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,d.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});K("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}}});K("Directive",{visitor:["value"],fields:{value:{validate:(0,d.assertNodeType)("DirectiveLiteral")}}});K("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}}});K("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Directive"))),default:[]},body:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]});K("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});K("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,d.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))}},N.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,d.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});K("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});K("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},consequent:{validate:(0,d.assertNodeType)("Expression")},alternate:{validate:(0,d.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});K("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});K("DebuggerStatement",{aliases:["Statement"]});K("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});K("EmptyStatement",{aliases:["Statement"]});K("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,d.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});K("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,d.assertNodeType)("Program")},comments:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.assertEach)((0,d.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,d.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});K("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,d.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});K("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,d.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,d.assertNodeType)("Expression"),optional:!0},update:{validate:(0,d.assertNodeType)("Expression"),optional:!0},body:{validate:(0,d.assertNodeType)("Statement")}}});var Fi=()=>({params:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});ht.functionCommon=Fi;var ti=()=>({returnType:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ht.functionTypeAnnotationCommon=ti;var xm=()=>Object.assign({},Fi(),{declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}});ht.functionDeclarationCommon=xm;K("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:Object.assign({},xm(),ti(),{body:{validate:(0,d.assertNodeType)("BlockStatement")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!N.env.BABEL_TYPES_8_BREAKING)return()=>{};let t=(0,d.assertNodeType)("Identifier");return function(e,r,i){(0,ot.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id)}}()});K("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),ti(),{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Bi=()=>({typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0}});ht.patternLikeCommon=Bi;K("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Bi(),{name:{validate:(0,d.chain)((0,d.assertValueType)("string"),Object.assign(function(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&!(0,vN.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}}),validate(t,e,r){if(!N.env.BABEL_TYPES_8_BREAKING)return;let i=/\.(\w+)$/.exec(e);if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,ot.default)("MemberExpression",t,n)||(0,ot.default)("OptionalMemberExpression",t,n))return}else if(s==="key"){if((0,ot.default)("Property",t,n)||(0,ot.default)("Method",t,n))return}else if(s==="exported"){if((0,ot.default)("ExportSpecifier",t))return}else if(s==="imported"){if((0,ot.default)("ImportSpecifier",t,{imported:r}))return}else if(s==="meta"&&(0,ot.default)("MetaProperty",t,{meta:r}))return;if(((0,Tm.isKeyword)(r.name)||(0,Tm.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}});K("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},consequent:{validate:(0,d.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,d.assertNodeType)("Statement")}}});K("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,d.assertNodeType)("Identifier")},body:{validate:(0,d.assertNodeType)("Statement")}}});K("StringLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});K("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,d.chain)((0,d.assertValueType)("number"),Object.assign(function(t,e,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});K("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});K("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});K("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,d.assertValueType)("string")},flags:{validate:(0,d.chain)((0,d.assertValueType)("string"),Object.assign(function(t,e,r){if(!N.env.BABEL_TYPES_8_BREAKING)return;let i=/[^gimsuy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});K("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,d.assertOneOf)(...vs.LOGICAL_OPERATORS)},left:{validate:(0,d.assertNodeType)("Expression")},right:{validate:(0,d.assertNodeType)("Expression")}}});K("MemberExpression",{builder:["object","property","computed",...N.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,d.assertNodeType)("Expression","Super")},property:{validate:function(){let t=(0,d.assertNodeType)("Identifier","PrivateName"),e=(0,d.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?e:t)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},N.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,d.assertOneOf)(!0,!1),optional:!0}})});K("NewExpression",{inherits:"CallExpression"});K("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,d.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,d.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Directive"))),default:[]},body:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]});K("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}});K("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],fields:Object.assign({},Fi(),ti(),{kind:Object.assign({validate:(0,d.assertOneOf)("method","get","set")},N.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let t=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,d.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?e:t)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")}}),visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});K("ObjectProperty",{builder:["key","value","computed","shorthand",...N.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let t=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),e=(0,d.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,d.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,d.chain)((0,d.assertValueType)("boolean"),Object.assign(function(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&r&&t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&r&&!(0,ot.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){let t=(0,d.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),e=(0,d.assertNodeType)("Expression");return function(r,i,s){if(!N.env.BABEL_TYPES_8_BREAKING)return;((0,ot.default)("ObjectPattern",r)?t:e)(s,"value",s.value)}}()});K("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},Bi(),{argument:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,d.assertNodeType)("LVal")}}),validate(t,e){if(!N.env.BABEL_TYPES_8_BREAKING)return;let r=/(\w+)\[(\d+)\]/.exec(e);if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(t[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}});K("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,d.assertNodeType)("Expression"),optional:!0}}});K("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Expression")))}},aliases:["Expression"]});K("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,d.assertNodeType)("Expression")}}});K("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,d.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Statement")))}}});K("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,d.assertNodeType)("Expression")},cases:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("SwitchCase")))}}});K("ThisExpression",{aliases:["Expression"]});K("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});K("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,d.chain)((0,d.assertNodeType)("BlockStatement"),Object.assign(function(t){if(N.env.BABEL_TYPES_8_BREAKING&&!t.handler&&!t.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,d.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,d.assertNodeType)("BlockStatement")}}});K("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,d.assertNodeType)("Expression")},operator:{validate:(0,d.assertOneOf)(...vs.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});K("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Identifier","MemberExpression"):(0,d.assertNodeType)("Expression")},operator:{validate:(0,d.assertOneOf)(...vs.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});K("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},kind:{validate:(0,d.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("VariableDeclarator")))}},validate(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&(0,ot.default)("ForXStatement",t,{left:r})&&r.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`)}});K("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!N.env.BABEL_TYPES_8_BREAKING)return(0,d.assertNodeType)("LVal");let t=(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),e=(0,d.assertNodeType)("Identifier");return function(r,i,s){(r.init?t:e)(r,i,s)}}()},definite:{optional:!0,validate:(0,d.assertValueType)("boolean")},init:{optional:!0,validate:(0,d.assertNodeType)("Expression")}}});K("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});K("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});K("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Bi(),{left:{validate:(0,d.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0}})});K("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Bi(),{elements:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeOrValueType)("null","PatternLike","LVal")))}})});K("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType","typeParameters"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Fi(),ti(),{expression:{validate:(0,d.assertValueType)("boolean")},body:{validate:(0,d.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});K("ClassBody",{visitor:["body"],fields:{body:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}});K("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,d.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,d.assertNodeType)("Expression")},superTypeParameters:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,d.assertNodeType)("InterfaceExtends"),optional:!0}}});K("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,d.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,d.assertNodeType)("Expression")},superTypeParameters:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,d.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,d.assertValueType)("boolean"),optional:!0}},validate:function(){let t=(0,d.assertNodeType)("Identifier");return function(e,r,i){N.env.BABEL_TYPES_8_BREAKING&&((0,ot.default)("ExportDefaultDeclaration",e)||t(i,"id",i.id))}}()});K("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0,d.assertNodeType)("StringLiteral")},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportAttribute")))}}});K("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,d.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("value"))}});K("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,d.chain)((0,d.assertNodeType)("Declaration"),Object.assign(function(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&r&&t.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&r&&t.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)(function(){let t=(0,d.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),e=(0,d.assertNodeType)("ExportSpecifier");return N.env.BABEL_TYPES_8_BREAKING?function(r,i,s){(r.source?t:e)(r,i,s)}:t}()))},source:{validate:(0,d.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value"))}});K("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")},exported:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,d.assertOneOf)("type","value"),optional:!0}}});K("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!N.env.BABEL_TYPES_8_BREAKING)return(0,d.assertNodeType)("VariableDeclaration","LVal");let t=(0,d.assertNodeType)("VariableDeclaration"),e=(0,d.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,i,s){(0,ot.default)("VariableDeclaration",s)?t(r,i,s):e(r,i,s)}}()},right:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")},await:{default:!1}}});K("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0,d.assertValueType)("boolean")},phase:{default:null,validate:(0,d.assertOneOf)("source","defer")},specifiers:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,d.assertNodeType)("StringLiteral")},importKind:{validate:(0,d.assertOneOf)("type","typeof","value"),optional:!0}}});K("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")}}});K("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")}}});K("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")},imported:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,d.assertOneOf)("type","typeof","value"),optional:!0}}});K("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,d.assertOneOf)("source","defer")},source:{validate:(0,d.assertNodeType)("Expression")},options:{validate:(0,d.assertNodeType)("Expression"),optional:!0}}});K("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,d.chain)((0,d.assertNodeType)("Identifier"),Object.assign(function(t,e,r){if(!N.env.BABEL_TYPES_8_BREAKING)return;let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,ot.default)("Identifier",t.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,d.assertNodeType)("Identifier")}}});var Hn=()=>({abstract:{validate:(0,d.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,d.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},key:{validate:(0,d.chain)(function(){let t=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),e=(0,d.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s)}}(),(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});ht.classMethodOrPropertyCommon=Hn;var Vu=()=>Object.assign({},Fi(),Hn(),{params:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,d.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,d.chain)((0,d.assertValueType)("string"),(0,d.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0}});ht.classMethodOrDeclareMethodCommon=Vu;K("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:Object.assign({},Vu(),ti(),{body:{validate:(0,d.assertNodeType)("BlockStatement")}})});K("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},Bi(),{properties:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("RestElement","ObjectProperty")))}})});K("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});K("Super",{aliases:["Expression"]});K("TaggedTemplateExpression",{visitor:["tag","quasi","typeParameters"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,d.assertNodeType)("Expression")},quasi:{validate:(0,d.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});K("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,d.chain)((0,d.assertShape)({raw:{validate:(0,d.assertValueType)("string")},cooked:{validate:(0,d.assertValueType)("string"),optional:!0}}),function(e){let r=e.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:o}=(0,PN.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");e.value.cooked=o?null:n})},tail:{default:!1}}});K("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("TemplateElement")))},expressions:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Expression","TSType")),function(t,e,r){if(t.quasis.length!==r.length+1)throw new TypeError(`Number of ${t.type} quasis should be exactly one more than the number of expressions.
|
|
63
|
+
Expected ${r.length+1} quasis but got ${t.quasis.length}`)})}}});K("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,d.chain)((0,d.assertValueType)("boolean"),Object.assign(function(t,e,r){if(N.env.BABEL_TYPES_8_BREAKING&&r&&!t.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,d.assertNodeType)("Expression")}}});K("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});K("Import",{aliases:["Expression"]});K("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});K("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,d.assertNodeType)("Identifier")}}});K("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,d.assertNodeType)("Expression")},property:{validate:function(){let t=(0,d.assertNodeType)("Identifier"),e=(0,d.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?e:t)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("boolean"),(0,d.assertOptionalChainStart)()):(0,d.assertValueType)("boolean")}}});K("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,d.assertNodeType)("Expression")},arguments:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:N.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("boolean"),(0,d.assertOptionalChainStart)()):(0,d.assertValueType)("boolean")},typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});K("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Hn(),{value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}})});K("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Hn(),{key:{validate:(0,d.chain)(function(){let t=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),e=(0,d.assertNodeType)("Expression");return function(r,i,s){(r.computed?e:t)(r,i,s)}}(),(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}})});K("ClassPrivateProperty",{visitor:["key","value","decorators","typeAnnotation"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,d.assertNodeType)("PrivateName")},value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0,d.assertValueType)("boolean"),default:!1},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}}});K("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Vu(),ti(),{kind:{validate:(0,d.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,d.assertNodeType)("PrivateName")},body:{validate:(0,d.assertNodeType)("BlockStatement")}})});K("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,d.assertNodeType)("Identifier")}}});K("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]})});var bm=L(()=>{"use strict";y();m();var M=nr(),H=(0,M.defineAliasedType)("Flow"),Ku=t=>{let e=t==="DeclareClass";H(t,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...e?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),extends:(0,M.validateOptional)((0,M.arrayOfType)("InterfaceExtends"))},e?{mixins:(0,M.validateOptional)((0,M.arrayOfType)("InterfaceExtends")),implements:(0,M.validateOptional)((0,M.arrayOfType)("ClassImplements"))}:{},{body:(0,M.validateType)("ObjectTypeAnnotation")})})};H("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,M.validateType)("FlowType")}});H("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterInstantiation")}});Ku("DeclareClass");H("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),predicate:(0,M.validateOptionalType)("DeclaredPredicate")}});Ku("DeclareInterface");H("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)(["Identifier","StringLiteral"]),body:(0,M.validateType)("BlockStatement"),kind:(0,M.validateOptional)((0,M.assertOneOf)("CommonJS","ES"))}});H("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,M.validateType)("TypeAnnotation")}});H("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),right:(0,M.validateType)("FlowType")}});H("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,M.validateOptionalType)("FlowType"),impltype:(0,M.validateOptionalType)("FlowType")}});H("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier")}});H("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,M.validateOptionalType)("Flow"),specifiers:(0,M.validateOptional)((0,M.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,M.validateOptionalType)("StringLiteral"),default:(0,M.validateOptional)((0,M.assertValueType)("boolean"))}});H("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,M.validateType)("StringLiteral"),exportKind:(0,M.validateOptional)((0,M.assertOneOf)("type","value"))}});H("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,M.validateType)("Flow")}});H("ExistsTypeAnnotation",{aliases:["FlowType"]});H("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),params:(0,M.validate)((0,M.arrayOfType)("FunctionTypeParam")),rest:(0,M.validateOptionalType)("FunctionTypeParam"),this:(0,M.validateOptionalType)("FunctionTypeParam"),returnType:(0,M.validateType)("FlowType")}});H("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,M.validateOptionalType)("Identifier"),typeAnnotation:(0,M.validateType)("FlowType"),optional:(0,M.validateOptional)((0,M.assertValueType)("boolean"))}});H("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,M.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,M.validateOptionalType)("TypeParameterInstantiation")}});H("InferredPredicate",{aliases:["FlowPredicate"]});H("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,M.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,M.validateOptionalType)("TypeParameterInstantiation")}});Ku("InterfaceDeclaration");H("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,M.validateOptional)((0,M.arrayOfType)("InterfaceExtends")),body:(0,M.validateType)("ObjectTypeAnnotation")}});H("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});H("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,M.validateType)("FlowType")}});H("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,M.validate)((0,M.assertValueType)("number"))}});H("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,M.validate)((0,M.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0,M.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,M.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,M.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,M.assertValueType)("boolean"),default:!1},inexact:(0,M.validateOptional)((0,M.assertValueType)("boolean"))}});H("ObjectTypeInternalSlot",{visitor:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,M.validateType)("Identifier"),value:(0,M.validateType)("FlowType"),optional:(0,M.validate)((0,M.assertValueType)("boolean")),static:(0,M.validate)((0,M.assertValueType)("boolean")),method:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,M.validateType)("FlowType"),static:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("ObjectTypeIndexer",{visitor:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,M.validateOptionalType)("Identifier"),key:(0,M.validateType)("FlowType"),value:(0,M.validateType)("FlowType"),static:(0,M.validate)((0,M.assertValueType)("boolean")),variance:(0,M.validateOptionalType)("Variance")}});H("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,M.validateType)(["Identifier","StringLiteral"]),value:(0,M.validateType)("FlowType"),kind:(0,M.validate)((0,M.assertOneOf)("init","get","set")),static:(0,M.validate)((0,M.assertValueType)("boolean")),proto:(0,M.validate)((0,M.assertValueType)("boolean")),optional:(0,M.validate)((0,M.assertValueType)("boolean")),variance:(0,M.validateOptionalType)("Variance"),method:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,M.validateType)("FlowType")}});H("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,M.validateOptionalType)("FlowType"),impltype:(0,M.validateType)("FlowType")}});H("QualifiedTypeIdentifier",{visitor:["id","qualification"],fields:{id:(0,M.validateType)("Identifier"),qualification:(0,M.validateType)(["Identifier","QualifiedTypeIdentifier"])}});H("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,M.validate)((0,M.assertValueType)("string"))}});H("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});H("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,M.validateType)("FlowType")}});H("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),right:(0,M.validateType)("FlowType")}});H("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,M.validateType)("FlowType")}});H("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,M.validateType)("Expression"),typeAnnotation:(0,M.validateType)("TypeAnnotation")}});H("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,M.validate)((0,M.assertValueType)("string")),bound:(0,M.validateOptionalType)("TypeAnnotation"),default:(0,M.validateOptionalType)("FlowType"),variance:(0,M.validateOptionalType)("Variance")}});H("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,M.validate)((0,M.arrayOfType)("TypeParameter"))}});H("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});H("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});H("Variance",{builder:["kind"],fields:{kind:(0,M.validate)((0,M.assertOneOf)("minus","plus"))}});H("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});H("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,M.validateType)("Identifier"),body:(0,M.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});H("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,M.validate)((0,M.assertValueType)("boolean")),members:(0,M.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,M.validate)((0,M.assertValueType)("boolean")),members:(0,M.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,M.validate)((0,M.assertValueType)("boolean")),members:(0,M.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,M.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});H("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,M.validateType)("Identifier"),init:(0,M.validateType)("BooleanLiteral")}});H("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,M.validateType)("Identifier"),init:(0,M.validateType)("NumericLiteral")}});H("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,M.validateType)("Identifier"),init:(0,M.validateType)("StringLiteral")}});H("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,M.validateType)("Identifier")}});H("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,M.validateType)("FlowType"),indexType:(0,M.validateType)("FlowType")}});H("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,M.validateType)("FlowType"),indexType:(0,M.validateType)("FlowType"),optional:(0,M.validate)((0,M.assertValueType)("boolean"))}})});var gm=L(()=>{"use strict";y();m();var ve=nr(),ut=(0,ve.defineAliasedType)("JSX");ut("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,ve.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,ve.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});ut("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,ve.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});ut("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,ve.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,ve.assertNodeType)("JSXClosingElement")},children:{validate:(0,ve.chain)((0,ve.assertValueType)("array"),(0,ve.assertEach)((0,ve.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0,ve.assertValueType)("boolean"),optional:!0}})});ut("JSXEmptyExpression",{});ut("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ve.assertNodeType)("Expression","JSXEmptyExpression")}}});ut("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,ve.assertNodeType)("Expression")}}});ut("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,ve.assertValueType)("string")}}});ut("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,ve.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,ve.assertNodeType)("JSXIdentifier")}}});ut("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,ve.assertNodeType)("JSXIdentifier")},name:{validate:(0,ve.assertNodeType)("JSXIdentifier")}}});ut("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,ve.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,ve.chain)((0,ve.assertValueType)("array"),(0,ve.assertEach)((0,ve.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,ve.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});ut("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,ve.assertNodeType)("Expression")}}});ut("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,ve.assertValueType)("string")}}});ut("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,ve.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,ve.assertNodeType)("JSXClosingFragment")},children:{validate:(0,ve.chain)((0,ve.assertValueType)("array"),(0,ve.assertEach)((0,ve.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}});ut("JSXOpeningFragment",{aliases:["Immutable"]});ut("JSXClosingFragment",{aliases:["Immutable"]})});var Wu=L(Er=>{"use strict";y();m();Object.defineProperty(Er,"__esModule",{value:!0});Er.PLACEHOLDERS_FLIPPED_ALIAS=Er.PLACEHOLDERS_ALIAS=Er.PLACEHOLDERS=void 0;var AN=nr(),wN=Er.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Xu=Er.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let t of wN){let e=AN.ALIAS_KEYS[t];e!=null&&e.length&&(Xu[t]=e)}var Yu=Er.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Xu).forEach(t=>{Xu[t].forEach(e=>{hasOwnProperty.call(Yu,e)||(Yu[e]=[]),Yu[e].push(t)})})});var Sm=L(()=>{"use strict";y();m();var Gn=nr(),IN=Wu(),Ju=(0,Gn.defineAliasedType)("Miscellaneous");Ju("Noop",{visitor:[]});Ju("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,Gn.assertNodeType)("Identifier")},expectedNode:{validate:(0,Gn.assertOneOf)(...IN.PLACEHOLDERS)}}});Ju("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Gn.assertValueType)("string")}}})});var Em=L(()=>{"use strict";y();m();var Se=nr();(0,Se.default)("ArgumentPlaceholder",{});(0,Se.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:N.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,Se.assertNodeType)("Expression")},callee:{validate:(0,Se.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,Se.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,Se.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,Se.assertNodeType)("StringLiteral")}}});(0,Se.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Se.assertNodeType)("Expression")}}});(0,Se.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Se.assertNodeType)("BlockStatement")},async:{validate:(0,Se.assertValueType)("boolean"),default:!1}}});(0,Se.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Se.assertNodeType)("Identifier")}}});(0,Se.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,Se.chain)((0,Se.assertValueType)("array"),(0,Se.assertEach)((0,Se.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0,Se.default)("TupleExpression",{fields:{elements:{validate:(0,Se.chain)((0,Se.assertValueType)("array"),(0,Se.assertEach)((0,Se.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Se.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Se.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Se.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Se.assertNodeType)("Program")}},aliases:["Expression"]});(0,Se.default)("TopicReference",{aliases:["Expression"]});(0,Se.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Se.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Se.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Se.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Se.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var _m=L(()=>{"use strict";y();m();var j=nr(),vm=qu(),CN=Li(),ie=(0,j.defineAliasedType)("TypeScript"),dt=(0,j.assertValueType)("boolean"),Pm=()=>({returnType:{validate:(0,j.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,j.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});ie("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,j.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,j.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,j.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,j.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,j.chain)((0,j.assertValueType)("array"),(0,j.assertEach)((0,j.assertNodeType)("Decorator"))),optional:!0}}});ie("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,vm.functionDeclarationCommon)(),Pm())});ie("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,vm.classMethodOrDeclareMethodCommon)(),Pm())});ie("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,j.validateType)("TSEntityName"),right:(0,j.validateType)("Identifier")}});var Qn=()=>({typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,j.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation")}),Am={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Qn()};ie("TSCallSignatureDeclaration",Am);ie("TSConstructSignatureDeclaration",Am);var wm=()=>({key:(0,j.validateType)("Expression"),computed:{default:!1},optional:(0,j.validateOptional)(dt)});ie("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},wm(),{readonly:(0,j.validateOptional)(dt),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0,j.assertOneOf)("get","set")}})});ie("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Qn(),wm(),{kind:{validate:(0,j.assertOneOf)("method","get","set")}})});ie("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,j.validateOptional)(dt),static:(0,j.validateOptional)(dt),parameters:(0,j.validateArrayOfType)("Identifier"),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation")}});var NN=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let t of NN)ie(t,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});ie("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Im={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};ie("TSFunctionType",Object.assign({},Im,{fields:Qn()}));ie("TSConstructorType",Object.assign({},Im,{fields:Object.assign({},Qn(),{abstract:(0,j.validateOptional)(dt)})}));ie("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,j.validateType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});ie("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,j.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,j.validateOptionalType)("TSTypeAnnotation"),asserts:(0,j.validateOptional)(dt)}});ie("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,j.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});ie("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,j.validateArrayOfType)("TSTypeElement")}});ie("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,j.validateType)("TSType")}});ie("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,j.validateArrayOfType)(["TSType","TSNamedTupleMember"])}});ie("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});ie("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});ie("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,j.validateType)("Identifier"),optional:{validate:dt,default:!1},elementType:(0,j.validateType)("TSType")}});var Cm={aliases:["TSType"],visitor:["types"],fields:{types:(0,j.validateArrayOfType)("TSType")}};ie("TSUnionType",Cm);ie("TSIntersectionType",Cm);ie("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,j.validateType)("TSType"),extendsType:(0,j.validateType)("TSType"),trueType:(0,j.validateType)("TSType"),falseType:(0,j.validateType)("TSType")}});ie("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,j.validateType)("TSTypeParameter")}});ie("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,j.validateType)("TSType")}});ie("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,j.validate)((0,j.assertValueType)("string")),typeAnnotation:(0,j.validateType)("TSType")}});ie("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,j.validateType)("TSType"),indexType:(0,j.validateType)("TSType")}});ie("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","typeAnnotation","nameType"],fields:{readonly:(0,j.validateOptional)((0,j.assertOneOf)(!0,!1,"+","-")),typeParameter:(0,j.validateType)("TSTypeParameter"),optional:(0,j.validateOptional)((0,j.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,j.validateOptionalType)("TSType"),nameType:(0,j.validateOptionalType)("TSType")}});ie("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let t=(0,j.assertNodeType)("NumericLiteral","BigIntLiteral"),e=(0,j.assertOneOf)("-"),r=(0,j.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(s,n,o){(0,CN.default)("UnaryExpression",o)?(e(o,"operator",o.operator),t(o,"argument",o.argument)):r(s,n,o)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}});ie("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,j.validateType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});ie("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,j.validateOptional)(dt),id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,j.validateOptional)((0,j.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,j.validateType)("TSInterfaceBody")}});ie("TSInterfaceBody",{visitor:["body"],fields:{body:(0,j.validateArrayOfType)("TSTypeElement")}});ie("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,j.validateOptional)(dt),id:(0,j.validateType)("Identifier"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,j.validateType)("TSType")}});ie("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,j.validateType)("Expression"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation")}});var Nm={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,j.validateType)("Expression"),typeAnnotation:(0,j.validateType)("TSType")}};ie("TSAsExpression",Nm);ie("TSSatisfiesExpression",Nm);ie("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,j.validateType)("TSType"),expression:(0,j.validateType)("Expression")}});ie("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,j.validateOptional)(dt),const:(0,j.validateOptional)(dt),id:(0,j.validateType)("Identifier"),members:(0,j.validateArrayOfType)("TSEnumMember"),initializer:(0,j.validateOptionalType)("Expression")}});ie("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,j.validateType)(["Identifier","StringLiteral"]),initializer:(0,j.validateOptionalType)("Expression")}});ie("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,j.validateOptional)(dt),global:(0,j.validateOptional)(dt),id:(0,j.validateType)(["Identifier","StringLiteral"]),body:(0,j.validateType)(["TSModuleBlock","TSModuleDeclaration"])}});ie("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,j.validateArrayOfType)("Statement")}});ie("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,j.validateType)("StringLiteral"),qualifier:(0,j.validateOptionalType)("TSEntityName"),typeParameters:(0,j.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,j.assertNodeType)("Expression"),optional:!0}}});ie("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,j.validate)(dt),id:(0,j.validateType)("Identifier"),moduleReference:(0,j.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,j.assertOneOf)("type","value"),optional:!0}}});ie("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,j.validateType)("StringLiteral")}});ie("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,j.validateType)("Expression")}});ie("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,j.validateType)("Expression")}});ie("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,j.validateType)("Identifier")}});ie("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,j.assertNodeType)("TSType")}}});ie("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,j.chain)((0,j.assertValueType)("array"),(0,j.assertEach)((0,j.assertNodeType)("TSType")))}}});ie("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,j.chain)((0,j.assertValueType)("array"),(0,j.assertEach)((0,j.assertNodeType)("TSTypeParameter")))}}});ie("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,j.assertValueType)("string")},in:{validate:(0,j.assertValueType)("boolean"),optional:!0},out:{validate:(0,j.assertValueType)("boolean"),optional:!0},const:{validate:(0,j.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,j.assertNodeType)("TSType"),optional:!0},default:{validate:(0,j.assertNodeType)("TSType"),optional:!0}}})});var Om=L(Zn=>{"use strict";y();m();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.DEPRECATED_ALIASES=void 0;var WV=Zn.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Pt=L(lt=>{"use strict";y();m();Object.defineProperty(lt,"__esModule",{value:!0});Object.defineProperty(lt,"ALIAS_KEYS",{enumerable:!0,get:function(){return ze.ALIAS_KEYS}});Object.defineProperty(lt,"BUILDER_KEYS",{enumerable:!0,get:function(){return ze.BUILDER_KEYS}});Object.defineProperty(lt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return zu.DEPRECATED_ALIASES}});Object.defineProperty(lt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return ze.DEPRECATED_KEYS}});Object.defineProperty(lt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return ze.FLIPPED_ALIAS_KEYS}});Object.defineProperty(lt,"NODE_FIELDS",{enumerable:!0,get:function(){return ze.NODE_FIELDS}});Object.defineProperty(lt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return ze.NODE_PARENT_VALIDATIONS}});Object.defineProperty(lt,"PLACEHOLDERS",{enumerable:!0,get:function(){return Ps.PLACEHOLDERS}});Object.defineProperty(lt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Ps.PLACEHOLDERS_ALIAS}});Object.defineProperty(lt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Ps.PLACEHOLDERS_FLIPPED_ALIAS}});lt.TYPES=void 0;Object.defineProperty(lt,"VISITOR_KEYS",{enumerable:!0,get:function(){return ze.VISITOR_KEYS}});var vr=$y();qu();bm();gm();Sm();Em();_m();var ze=nr(),Ps=Wu(),zu=Om();Object.keys(zu.DEPRECATED_ALIASES).forEach(t=>{ze.FLIPPED_ALIAS_KEYS[t]=ze.FLIPPED_ALIAS_KEYS[zu.DEPRECATED_ALIASES[t]]});vr(ze.VISITOR_KEYS);vr(ze.ALIAS_KEYS);vr(ze.FLIPPED_ALIAS_KEYS);vr(ze.NODE_FIELDS);vr(ze.BUILDER_KEYS);vr(ze.DEPRECATED_KEYS);vr(Ps.PLACEHOLDERS_ALIAS);vr(Ps.PLACEHOLDERS_FLIPPED_ALIAS);var HV=lt.TYPES=[].concat(Object.keys(ze.VISITOR_KEYS),Object.keys(ze.FLIPPED_ALIAS_KEYS),Object.keys(ze.DEPRECATED_KEYS))});var $n=L(As=>{"use strict";y();m();Object.defineProperty(As,"__esModule",{value:!0});As.default=_N;As.validateChild=Lm;As.validateField=Dm;var km=Pt();function _N(t,e,r){if(!t)return;let i=km.NODE_FIELDS[t.type];if(!i)return;let s=i[e];Dm(t,e,r,s),Lm(t,e,r)}function Dm(t,e,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(t,e,r))}function Lm(t,e,r){if(r==null)return;let i=km.NODE_PARENT_VALIDATIONS[r.type];i&&i(t,e,r)}});var Mm=L($u=>{"use strict";y();m();Object.defineProperty($u,"__esModule",{value:!0});$u.default=DN;var ON=$n(),kN=Yt();function DN(t){let e=kN.BUILDER_KEYS[t.type];for(let r of e)(0,ON.default)(t,r,t[r]);return t}});var ct=L(x=>{"use strict";y();m();Object.defineProperty(x,"__esModule",{value:!0});x.anyTypeAnnotation=c_;x.argumentPlaceholder=jO;x.arrayExpression=LN;x.arrayPattern=N2;x.arrayTypeAnnotation=p_;x.arrowFunctionExpression=_2;x.assignmentExpression=MN;x.assignmentPattern=C2;x.awaitExpression=Q2;x.bigIntLiteral=e_;x.binaryExpression=FN;x.bindExpression=UO;x.blockStatement=UN;x.booleanLiteral=a2;x.booleanLiteralTypeAnnotation=h_;x.booleanTypeAnnotation=f_;x.breakStatement=VN;x.callExpression=qN;x.catchClause=KN;x.classAccessorProperty=n_;x.classBody=O2;x.classDeclaration=D2;x.classExpression=k2;x.classImplements=y_;x.classMethod=X2;x.classPrivateMethod=o_;x.classPrivateProperty=a_;x.classProperty=s_;x.conditionalExpression=YN;x.continueStatement=XN;x.debuggerStatement=WN;x.decimalLiteral=JO;x.declareClass=m_;x.declareExportAllDeclaration=A_;x.declareExportDeclaration=P_;x.declareFunction=T_;x.declareInterface=x_;x.declareModule=b_;x.declareModuleExports=g_;x.declareOpaqueType=E_;x.declareTypeAlias=S_;x.declareVariable=v_;x.declaredPredicate=w_;x.decorator=qO;x.directive=RN;x.directiveLiteral=jN;x.doExpression=KO;x.doWhileStatement=JN;x.emptyStatement=zN;x.emptyTypeAnnotation=B_;x.enumBooleanBody=pO;x.enumBooleanMember=yO;x.enumDeclaration=cO;x.enumDefaultedMember=xO;x.enumNumberBody=fO;x.enumNumberMember=mO;x.enumStringBody=hO;x.enumStringMember=TO;x.enumSymbolBody=dO;x.existsTypeAnnotation=I_;x.exportAllDeclaration=L2;x.exportDefaultDeclaration=M2;x.exportDefaultSpecifier=YO;x.exportNamedDeclaration=F2;x.exportNamespaceSpecifier=t_;x.exportSpecifier=B2;x.expressionStatement=$N;x.file=HN;x.forInStatement=GN;x.forOfStatement=R2;x.forStatement=QN;x.functionDeclaration=ZN;x.functionExpression=e2;x.functionTypeAnnotation=C_;x.functionTypeParam=N_;x.genericTypeAnnotation=__;x.identifier=t2;x.ifStatement=r2;x.import=Z2;x.importAttribute=VO;x.importDeclaration=j2;x.importDefaultSpecifier=U2;x.importExpression=K2;x.importNamespaceSpecifier=V2;x.importSpecifier=q2;x.indexedAccessType=bO;x.inferredPredicate=O_;x.interfaceDeclaration=D_;x.interfaceExtends=k_;x.interfaceTypeAnnotation=L_;x.interpreterDirective=BN;x.intersectionTypeAnnotation=M_;x.jSXAttribute=x.jsxAttribute=SO;x.jSXClosingElement=x.jsxClosingElement=EO;x.jSXClosingFragment=x.jsxClosingFragment=MO;x.jSXElement=x.jsxElement=vO;x.jSXEmptyExpression=x.jsxEmptyExpression=PO;x.jSXExpressionContainer=x.jsxExpressionContainer=AO;x.jSXFragment=x.jsxFragment=DO;x.jSXIdentifier=x.jsxIdentifier=IO;x.jSXMemberExpression=x.jsxMemberExpression=CO;x.jSXNamespacedName=x.jsxNamespacedName=NO;x.jSXOpeningElement=x.jsxOpeningElement=_O;x.jSXOpeningFragment=x.jsxOpeningFragment=LO;x.jSXSpreadAttribute=x.jsxSpreadAttribute=OO;x.jSXSpreadChild=x.jsxSpreadChild=wO;x.jSXText=x.jsxText=kO;x.labeledStatement=i2;x.logicalExpression=o2;x.memberExpression=u2;x.metaProperty=Y2;x.mixedTypeAnnotation=F_;x.moduleExpression=zO;x.newExpression=l2;x.noop=FO;x.nullLiteral=n2;x.nullLiteralTypeAnnotation=d_;x.nullableTypeAnnotation=R_;x.numberLiteral=cD;x.numberLiteralTypeAnnotation=j_;x.numberTypeAnnotation=U_;x.numericLiteral=Fm;x.objectExpression=p2;x.objectMethod=f2;x.objectPattern=W2;x.objectProperty=h2;x.objectTypeAnnotation=V_;x.objectTypeCallProperty=K_;x.objectTypeIndexer=Y_;x.objectTypeInternalSlot=q_;x.objectTypeProperty=X_;x.objectTypeSpreadProperty=W_;x.opaqueType=J_;x.optionalCallExpression=i_;x.optionalIndexedAccessType=gO;x.optionalMemberExpression=r_;x.parenthesizedExpression=m2;x.pipelineBareFunction=GO;x.pipelinePrimaryTopicReference=QO;x.pipelineTopicExpression=HO;x.placeholder=BO;x.privateName=u_;x.program=c2;x.qualifiedTypeIdentifier=z_;x.recordExpression=XO;x.regExpLiteral=Bm;x.regexLiteral=pD;x.restElement=Rm;x.restProperty=fD;x.returnStatement=d2;x.sequenceExpression=y2;x.spreadElement=jm;x.spreadProperty=hD;x.staticBlock=l_;x.stringLiteral=s2;x.stringLiteralTypeAnnotation=$_;x.stringTypeAnnotation=H_;x.super=J2;x.switchCase=T2;x.switchStatement=x2;x.symbolTypeAnnotation=G_;x.taggedTemplateExpression=z2;x.templateElement=$2;x.templateLiteral=H2;x.thisExpression=b2;x.thisTypeAnnotation=Q_;x.throwStatement=g2;x.topicReference=$O;x.tryStatement=S2;x.tSAnyKeyword=x.tsAnyKeyword=uk;x.tSArrayType=x.tsArrayType=Ck;x.tSAsExpression=x.tsAsExpression=Jk;x.tSBigIntKeyword=x.tsBigIntKeyword=ck;x.tSBooleanKeyword=x.tsBooleanKeyword=lk;x.tSCallSignatureDeclaration=x.tsCallSignatureDeclaration=ik;x.tSConditionalType=x.tsConditionalType=Mk;x.tSConstructSignatureDeclaration=x.tsConstructSignatureDeclaration=sk;x.tSConstructorType=x.tsConstructorType=vk;x.tSDeclareFunction=x.tsDeclareFunction=ek;x.tSDeclareMethod=x.tsDeclareMethod=tk;x.tSEnumDeclaration=x.tsEnumDeclaration=Hk;x.tSEnumMember=x.tsEnumMember=Gk;x.tSExportAssignment=x.tsExportAssignment=sD;x.tSExpressionWithTypeArguments=x.tsExpressionWithTypeArguments=qk;x.tSExternalModuleReference=x.tsExternalModuleReference=rD;x.tSFunctionType=x.tsFunctionType=Ek;x.tSImportEqualsDeclaration=x.tsImportEqualsDeclaration=tD;x.tSImportType=x.tsImportType=eD;x.tSIndexSignature=x.tsIndexSignature=ok;x.tSIndexedAccessType=x.tsIndexedAccessType=jk;x.tSInferType=x.tsInferType=Fk;x.tSInstantiationExpression=x.tsInstantiationExpression=Wk;x.tSInterfaceBody=x.tsInterfaceBody=Yk;x.tSInterfaceDeclaration=x.tsInterfaceDeclaration=Kk;x.tSIntersectionType=x.tsIntersectionType=Lk;x.tSIntrinsicKeyword=x.tsIntrinsicKeyword=pk;x.tSLiteralType=x.tsLiteralType=Vk;x.tSMappedType=x.tsMappedType=Uk;x.tSMethodSignature=x.tsMethodSignature=ak;x.tSModuleBlock=x.tsModuleBlock=Zk;x.tSModuleDeclaration=x.tsModuleDeclaration=Qk;x.tSNamedTupleMember=x.tsNamedTupleMember=kk;x.tSNamespaceExportDeclaration=x.tsNamespaceExportDeclaration=nD;x.tSNeverKeyword=x.tsNeverKeyword=fk;x.tSNonNullExpression=x.tsNonNullExpression=iD;x.tSNullKeyword=x.tsNullKeyword=hk;x.tSNumberKeyword=x.tsNumberKeyword=dk;x.tSObjectKeyword=x.tsObjectKeyword=yk;x.tSOptionalType=x.tsOptionalType=_k;x.tSParameterProperty=x.tsParameterProperty=ZO;x.tSParenthesizedType=x.tsParenthesizedType=Bk;x.tSPropertySignature=x.tsPropertySignature=nk;x.tSQualifiedName=x.tsQualifiedName=rk;x.tSRestType=x.tsRestType=Ok;x.tSSatisfiesExpression=x.tsSatisfiesExpression=zk;x.tSStringKeyword=x.tsStringKeyword=mk;x.tSSymbolKeyword=x.tsSymbolKeyword=Tk;x.tSThisType=x.tsThisType=Sk;x.tSTupleType=x.tsTupleType=Nk;x.tSTypeAliasDeclaration=x.tsTypeAliasDeclaration=Xk;x.tSTypeAnnotation=x.tsTypeAnnotation=aD;x.tSTypeAssertion=x.tsTypeAssertion=$k;x.tSTypeLiteral=x.tsTypeLiteral=Ik;x.tSTypeOperator=x.tsTypeOperator=Rk;x.tSTypeParameter=x.tsTypeParameter=lD;x.tSTypeParameterDeclaration=x.tsTypeParameterDeclaration=uD;x.tSTypeParameterInstantiation=x.tsTypeParameterInstantiation=oD;x.tSTypePredicate=x.tsTypePredicate=Ak;x.tSTypeQuery=x.tsTypeQuery=wk;x.tSTypeReference=x.tsTypeReference=Pk;x.tSUndefinedKeyword=x.tsUndefinedKeyword=xk;x.tSUnionType=x.tsUnionType=Dk;x.tSUnknownKeyword=x.tsUnknownKeyword=bk;x.tSVoidKeyword=x.tsVoidKeyword=gk;x.tupleExpression=WO;x.tupleTypeAnnotation=Z_;x.typeAlias=tO;x.typeAnnotation=rO;x.typeCastExpression=iO;x.typeParameter=sO;x.typeParameterDeclaration=nO;x.typeParameterInstantiation=aO;x.typeofTypeAnnotation=eO;x.unaryExpression=E2;x.unionTypeAnnotation=oO;x.updateExpression=v2;x.v8IntrinsicIdentifier=RO;x.variableDeclaration=P2;x.variableDeclarator=A2;x.variance=uO;x.voidTypeAnnotation=lO;x.whileStatement=w2;x.withStatement=I2;x.yieldExpression=G2;var O=Mm(),ea=ys();function LN(t=[]){return(0,O.default)({type:"ArrayExpression",elements:t})}function MN(t,e,r){return(0,O.default)({type:"AssignmentExpression",operator:t,left:e,right:r})}function FN(t,e,r){return(0,O.default)({type:"BinaryExpression",operator:t,left:e,right:r})}function BN(t){return(0,O.default)({type:"InterpreterDirective",value:t})}function RN(t){return(0,O.default)({type:"Directive",value:t})}function jN(t){return(0,O.default)({type:"DirectiveLiteral",value:t})}function UN(t,e=[]){return(0,O.default)({type:"BlockStatement",body:t,directives:e})}function VN(t=null){return(0,O.default)({type:"BreakStatement",label:t})}function qN(t,e){return(0,O.default)({type:"CallExpression",callee:t,arguments:e})}function KN(t=null,e){return(0,O.default)({type:"CatchClause",param:t,body:e})}function YN(t,e,r){return(0,O.default)({type:"ConditionalExpression",test:t,consequent:e,alternate:r})}function XN(t=null){return(0,O.default)({type:"ContinueStatement",label:t})}function WN(){return{type:"DebuggerStatement"}}function JN(t,e){return(0,O.default)({type:"DoWhileStatement",test:t,body:e})}function zN(){return{type:"EmptyStatement"}}function $N(t){return(0,O.default)({type:"ExpressionStatement",expression:t})}function HN(t,e=null,r=null){return(0,O.default)({type:"File",program:t,comments:e,tokens:r})}function GN(t,e,r){return(0,O.default)({type:"ForInStatement",left:t,right:e,body:r})}function QN(t=null,e=null,r=null,i){return(0,O.default)({type:"ForStatement",init:t,test:e,update:r,body:i})}function ZN(t=null,e,r,i=!1,s=!1){return(0,O.default)({type:"FunctionDeclaration",id:t,params:e,body:r,generator:i,async:s})}function e2(t=null,e,r,i=!1,s=!1){return(0,O.default)({type:"FunctionExpression",id:t,params:e,body:r,generator:i,async:s})}function t2(t){return(0,O.default)({type:"Identifier",name:t})}function r2(t,e,r=null){return(0,O.default)({type:"IfStatement",test:t,consequent:e,alternate:r})}function i2(t,e){return(0,O.default)({type:"LabeledStatement",label:t,body:e})}function s2(t){return(0,O.default)({type:"StringLiteral",value:t})}function Fm(t){return(0,O.default)({type:"NumericLiteral",value:t})}function n2(){return{type:"NullLiteral"}}function a2(t){return(0,O.default)({type:"BooleanLiteral",value:t})}function Bm(t,e=""){return(0,O.default)({type:"RegExpLiteral",pattern:t,flags:e})}function o2(t,e,r){return(0,O.default)({type:"LogicalExpression",operator:t,left:e,right:r})}function u2(t,e,r=!1,i=null){return(0,O.default)({type:"MemberExpression",object:t,property:e,computed:r,optional:i})}function l2(t,e){return(0,O.default)({type:"NewExpression",callee:t,arguments:e})}function c2(t,e=[],r="script",i=null){return(0,O.default)({type:"Program",body:t,directives:e,sourceType:r,interpreter:i})}function p2(t){return(0,O.default)({type:"ObjectExpression",properties:t})}function f2(t="method",e,r,i,s=!1,n=!1,o=!1){return(0,O.default)({type:"ObjectMethod",kind:t,key:e,params:r,body:i,computed:s,generator:n,async:o})}function h2(t,e,r=!1,i=!1,s=null){return(0,O.default)({type:"ObjectProperty",key:t,value:e,computed:r,shorthand:i,decorators:s})}function Rm(t){return(0,O.default)({type:"RestElement",argument:t})}function d2(t=null){return(0,O.default)({type:"ReturnStatement",argument:t})}function y2(t){return(0,O.default)({type:"SequenceExpression",expressions:t})}function m2(t){return(0,O.default)({type:"ParenthesizedExpression",expression:t})}function T2(t=null,e){return(0,O.default)({type:"SwitchCase",test:t,consequent:e})}function x2(t,e){return(0,O.default)({type:"SwitchStatement",discriminant:t,cases:e})}function b2(){return{type:"ThisExpression"}}function g2(t){return(0,O.default)({type:"ThrowStatement",argument:t})}function S2(t,e=null,r=null){return(0,O.default)({type:"TryStatement",block:t,handler:e,finalizer:r})}function E2(t,e,r=!0){return(0,O.default)({type:"UnaryExpression",operator:t,argument:e,prefix:r})}function v2(t,e,r=!1){return(0,O.default)({type:"UpdateExpression",operator:t,argument:e,prefix:r})}function P2(t,e){return(0,O.default)({type:"VariableDeclaration",kind:t,declarations:e})}function A2(t,e=null){return(0,O.default)({type:"VariableDeclarator",id:t,init:e})}function w2(t,e){return(0,O.default)({type:"WhileStatement",test:t,body:e})}function I2(t,e){return(0,O.default)({type:"WithStatement",object:t,body:e})}function C2(t,e){return(0,O.default)({type:"AssignmentPattern",left:t,right:e})}function N2(t){return(0,O.default)({type:"ArrayPattern",elements:t})}function _2(t,e,r=!1){return(0,O.default)({type:"ArrowFunctionExpression",params:t,body:e,async:r,expression:null})}function O2(t){return(0,O.default)({type:"ClassBody",body:t})}function k2(t=null,e=null,r,i=null){return(0,O.default)({type:"ClassExpression",id:t,superClass:e,body:r,decorators:i})}function D2(t=null,e=null,r,i=null){return(0,O.default)({type:"ClassDeclaration",id:t,superClass:e,body:r,decorators:i})}function L2(t){return(0,O.default)({type:"ExportAllDeclaration",source:t})}function M2(t){return(0,O.default)({type:"ExportDefaultDeclaration",declaration:t})}function F2(t=null,e=[],r=null){return(0,O.default)({type:"ExportNamedDeclaration",declaration:t,specifiers:e,source:r})}function B2(t,e){return(0,O.default)({type:"ExportSpecifier",local:t,exported:e})}function R2(t,e,r,i=!1){return(0,O.default)({type:"ForOfStatement",left:t,right:e,body:r,await:i})}function j2(t,e){return(0,O.default)({type:"ImportDeclaration",specifiers:t,source:e})}function U2(t){return(0,O.default)({type:"ImportDefaultSpecifier",local:t})}function V2(t){return(0,O.default)({type:"ImportNamespaceSpecifier",local:t})}function q2(t,e){return(0,O.default)({type:"ImportSpecifier",local:t,imported:e})}function K2(t,e=null){return(0,O.default)({type:"ImportExpression",source:t,options:e})}function Y2(t,e){return(0,O.default)({type:"MetaProperty",meta:t,property:e})}function X2(t="method",e,r,i,s=!1,n=!1,o=!1,u=!1){return(0,O.default)({type:"ClassMethod",kind:t,key:e,params:r,body:i,computed:s,static:n,generator:o,async:u})}function W2(t){return(0,O.default)({type:"ObjectPattern",properties:t})}function jm(t){return(0,O.default)({type:"SpreadElement",argument:t})}function J2(){return{type:"Super"}}function z2(t,e){return(0,O.default)({type:"TaggedTemplateExpression",tag:t,quasi:e})}function $2(t,e=!1){return(0,O.default)({type:"TemplateElement",value:t,tail:e})}function H2(t,e){return(0,O.default)({type:"TemplateLiteral",quasis:t,expressions:e})}function G2(t=null,e=!1){return(0,O.default)({type:"YieldExpression",argument:t,delegate:e})}function Q2(t){return(0,O.default)({type:"AwaitExpression",argument:t})}function Z2(){return{type:"Import"}}function e_(t){return(0,O.default)({type:"BigIntLiteral",value:t})}function t_(t){return(0,O.default)({type:"ExportNamespaceSpecifier",exported:t})}function r_(t,e,r=!1,i){return(0,O.default)({type:"OptionalMemberExpression",object:t,property:e,computed:r,optional:i})}function i_(t,e,r){return(0,O.default)({type:"OptionalCallExpression",callee:t,arguments:e,optional:r})}function s_(t,e=null,r=null,i=null,s=!1,n=!1){return(0,O.default)({type:"ClassProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n})}function n_(t,e=null,r=null,i=null,s=!1,n=!1){return(0,O.default)({type:"ClassAccessorProperty",key:t,value:e,typeAnnotation:r,decorators:i,computed:s,static:n})}function a_(t,e=null,r=null,i=!1){return(0,O.default)({type:"ClassPrivateProperty",key:t,value:e,decorators:r,static:i})}function o_(t="method",e,r,i,s=!1){return(0,O.default)({type:"ClassPrivateMethod",kind:t,key:e,params:r,body:i,static:s})}function u_(t){return(0,O.default)({type:"PrivateName",id:t})}function l_(t){return(0,O.default)({type:"StaticBlock",body:t})}function c_(){return{type:"AnyTypeAnnotation"}}function p_(t){return(0,O.default)({type:"ArrayTypeAnnotation",elementType:t})}function f_(){return{type:"BooleanTypeAnnotation"}}function h_(t){return(0,O.default)({type:"BooleanLiteralTypeAnnotation",value:t})}function d_(){return{type:"NullLiteralTypeAnnotation"}}function y_(t,e=null){return(0,O.default)({type:"ClassImplements",id:t,typeParameters:e})}function m_(t,e=null,r=null,i){return(0,O.default)({type:"DeclareClass",id:t,typeParameters:e,extends:r,body:i})}function T_(t){return(0,O.default)({type:"DeclareFunction",id:t})}function x_(t,e=null,r=null,i){return(0,O.default)({type:"DeclareInterface",id:t,typeParameters:e,extends:r,body:i})}function b_(t,e,r=null){return(0,O.default)({type:"DeclareModule",id:t,body:e,kind:r})}function g_(t){return(0,O.default)({type:"DeclareModuleExports",typeAnnotation:t})}function S_(t,e=null,r){return(0,O.default)({type:"DeclareTypeAlias",id:t,typeParameters:e,right:r})}function E_(t,e=null,r=null){return(0,O.default)({type:"DeclareOpaqueType",id:t,typeParameters:e,supertype:r})}function v_(t){return(0,O.default)({type:"DeclareVariable",id:t})}function P_(t=null,e=null,r=null){return(0,O.default)({type:"DeclareExportDeclaration",declaration:t,specifiers:e,source:r})}function A_(t){return(0,O.default)({type:"DeclareExportAllDeclaration",source:t})}function w_(t){return(0,O.default)({type:"DeclaredPredicate",value:t})}function I_(){return{type:"ExistsTypeAnnotation"}}function C_(t=null,e,r=null,i){return(0,O.default)({type:"FunctionTypeAnnotation",typeParameters:t,params:e,rest:r,returnType:i})}function N_(t=null,e){return(0,O.default)({type:"FunctionTypeParam",name:t,typeAnnotation:e})}function __(t,e=null){return(0,O.default)({type:"GenericTypeAnnotation",id:t,typeParameters:e})}function O_(){return{type:"InferredPredicate"}}function k_(t,e=null){return(0,O.default)({type:"InterfaceExtends",id:t,typeParameters:e})}function D_(t,e=null,r=null,i){return(0,O.default)({type:"InterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i})}function L_(t=null,e){return(0,O.default)({type:"InterfaceTypeAnnotation",extends:t,body:e})}function M_(t){return(0,O.default)({type:"IntersectionTypeAnnotation",types:t})}function F_(){return{type:"MixedTypeAnnotation"}}function B_(){return{type:"EmptyTypeAnnotation"}}function R_(t){return(0,O.default)({type:"NullableTypeAnnotation",typeAnnotation:t})}function j_(t){return(0,O.default)({type:"NumberLiteralTypeAnnotation",value:t})}function U_(){return{type:"NumberTypeAnnotation"}}function V_(t,e=[],r=[],i=[],s=!1){return(0,O.default)({type:"ObjectTypeAnnotation",properties:t,indexers:e,callProperties:r,internalSlots:i,exact:s})}function q_(t,e,r,i,s){return(0,O.default)({type:"ObjectTypeInternalSlot",id:t,value:e,optional:r,static:i,method:s})}function K_(t){return(0,O.default)({type:"ObjectTypeCallProperty",value:t,static:null})}function Y_(t=null,e,r,i=null){return(0,O.default)({type:"ObjectTypeIndexer",id:t,key:e,value:r,variance:i,static:null})}function X_(t,e,r=null){return(0,O.default)({type:"ObjectTypeProperty",key:t,value:e,variance:r,kind:null,method:null,optional:null,proto:null,static:null})}function W_(t){return(0,O.default)({type:"ObjectTypeSpreadProperty",argument:t})}function J_(t,e=null,r=null,i){return(0,O.default)({type:"OpaqueType",id:t,typeParameters:e,supertype:r,impltype:i})}function z_(t,e){return(0,O.default)({type:"QualifiedTypeIdentifier",id:t,qualification:e})}function $_(t){return(0,O.default)({type:"StringLiteralTypeAnnotation",value:t})}function H_(){return{type:"StringTypeAnnotation"}}function G_(){return{type:"SymbolTypeAnnotation"}}function Q_(){return{type:"ThisTypeAnnotation"}}function Z_(t){return(0,O.default)({type:"TupleTypeAnnotation",types:t})}function eO(t){return(0,O.default)({type:"TypeofTypeAnnotation",argument:t})}function tO(t,e=null,r){return(0,O.default)({type:"TypeAlias",id:t,typeParameters:e,right:r})}function rO(t){return(0,O.default)({type:"TypeAnnotation",typeAnnotation:t})}function iO(t,e){return(0,O.default)({type:"TypeCastExpression",expression:t,typeAnnotation:e})}function sO(t=null,e=null,r=null){return(0,O.default)({type:"TypeParameter",bound:t,default:e,variance:r,name:null})}function nO(t){return(0,O.default)({type:"TypeParameterDeclaration",params:t})}function aO(t){return(0,O.default)({type:"TypeParameterInstantiation",params:t})}function oO(t){return(0,O.default)({type:"UnionTypeAnnotation",types:t})}function uO(t){return(0,O.default)({type:"Variance",kind:t})}function lO(){return{type:"VoidTypeAnnotation"}}function cO(t,e){return(0,O.default)({type:"EnumDeclaration",id:t,body:e})}function pO(t){return(0,O.default)({type:"EnumBooleanBody",members:t,explicitType:null,hasUnknownMembers:null})}function fO(t){return(0,O.default)({type:"EnumNumberBody",members:t,explicitType:null,hasUnknownMembers:null})}function hO(t){return(0,O.default)({type:"EnumStringBody",members:t,explicitType:null,hasUnknownMembers:null})}function dO(t){return(0,O.default)({type:"EnumSymbolBody",members:t,hasUnknownMembers:null})}function yO(t){return(0,O.default)({type:"EnumBooleanMember",id:t,init:null})}function mO(t,e){return(0,O.default)({type:"EnumNumberMember",id:t,init:e})}function TO(t,e){return(0,O.default)({type:"EnumStringMember",id:t,init:e})}function xO(t){return(0,O.default)({type:"EnumDefaultedMember",id:t})}function bO(t,e){return(0,O.default)({type:"IndexedAccessType",objectType:t,indexType:e})}function gO(t,e){return(0,O.default)({type:"OptionalIndexedAccessType",objectType:t,indexType:e,optional:null})}function SO(t,e=null){return(0,O.default)({type:"JSXAttribute",name:t,value:e})}function EO(t){return(0,O.default)({type:"JSXClosingElement",name:t})}function vO(t,e=null,r,i=null){return(0,O.default)({type:"JSXElement",openingElement:t,closingElement:e,children:r,selfClosing:i})}function PO(){return{type:"JSXEmptyExpression"}}function AO(t){return(0,O.default)({type:"JSXExpressionContainer",expression:t})}function wO(t){return(0,O.default)({type:"JSXSpreadChild",expression:t})}function IO(t){return(0,O.default)({type:"JSXIdentifier",name:t})}function CO(t,e){return(0,O.default)({type:"JSXMemberExpression",object:t,property:e})}function NO(t,e){return(0,O.default)({type:"JSXNamespacedName",namespace:t,name:e})}function _O(t,e,r=!1){return(0,O.default)({type:"JSXOpeningElement",name:t,attributes:e,selfClosing:r})}function OO(t){return(0,O.default)({type:"JSXSpreadAttribute",argument:t})}function kO(t){return(0,O.default)({type:"JSXText",value:t})}function DO(t,e,r){return(0,O.default)({type:"JSXFragment",openingFragment:t,closingFragment:e,children:r})}function LO(){return{type:"JSXOpeningFragment"}}function MO(){return{type:"JSXClosingFragment"}}function FO(){return{type:"Noop"}}function BO(t,e){return(0,O.default)({type:"Placeholder",expectedNode:t,name:e})}function RO(t){return(0,O.default)({type:"V8IntrinsicIdentifier",name:t})}function jO(){return{type:"ArgumentPlaceholder"}}function UO(t,e){return(0,O.default)({type:"BindExpression",object:t,callee:e})}function VO(t,e){return(0,O.default)({type:"ImportAttribute",key:t,value:e})}function qO(t){return(0,O.default)({type:"Decorator",expression:t})}function KO(t,e=!1){return(0,O.default)({type:"DoExpression",body:t,async:e})}function YO(t){return(0,O.default)({type:"ExportDefaultSpecifier",exported:t})}function XO(t){return(0,O.default)({type:"RecordExpression",properties:t})}function WO(t=[]){return(0,O.default)({type:"TupleExpression",elements:t})}function JO(t){return(0,O.default)({type:"DecimalLiteral",value:t})}function zO(t){return(0,O.default)({type:"ModuleExpression",body:t})}function $O(){return{type:"TopicReference"}}function HO(t){return(0,O.default)({type:"PipelineTopicExpression",expression:t})}function GO(t){return(0,O.default)({type:"PipelineBareFunction",callee:t})}function QO(){return{type:"PipelinePrimaryTopicReference"}}function ZO(t){return(0,O.default)({type:"TSParameterProperty",parameter:t})}function ek(t=null,e=null,r,i=null){return(0,O.default)({type:"TSDeclareFunction",id:t,typeParameters:e,params:r,returnType:i})}function tk(t=null,e,r=null,i,s=null){return(0,O.default)({type:"TSDeclareMethod",decorators:t,key:e,typeParameters:r,params:i,returnType:s})}function rk(t,e){return(0,O.default)({type:"TSQualifiedName",left:t,right:e})}function ik(t=null,e,r=null){return(0,O.default)({type:"TSCallSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r})}function sk(t=null,e,r=null){return(0,O.default)({type:"TSConstructSignatureDeclaration",typeParameters:t,parameters:e,typeAnnotation:r})}function nk(t,e=null){return(0,O.default)({type:"TSPropertySignature",key:t,typeAnnotation:e,kind:null})}function ak(t,e=null,r,i=null){return(0,O.default)({type:"TSMethodSignature",key:t,typeParameters:e,parameters:r,typeAnnotation:i,kind:null})}function ok(t,e=null){return(0,O.default)({type:"TSIndexSignature",parameters:t,typeAnnotation:e})}function uk(){return{type:"TSAnyKeyword"}}function lk(){return{type:"TSBooleanKeyword"}}function ck(){return{type:"TSBigIntKeyword"}}function pk(){return{type:"TSIntrinsicKeyword"}}function fk(){return{type:"TSNeverKeyword"}}function hk(){return{type:"TSNullKeyword"}}function dk(){return{type:"TSNumberKeyword"}}function yk(){return{type:"TSObjectKeyword"}}function mk(){return{type:"TSStringKeyword"}}function Tk(){return{type:"TSSymbolKeyword"}}function xk(){return{type:"TSUndefinedKeyword"}}function bk(){return{type:"TSUnknownKeyword"}}function gk(){return{type:"TSVoidKeyword"}}function Sk(){return{type:"TSThisType"}}function Ek(t=null,e,r=null){return(0,O.default)({type:"TSFunctionType",typeParameters:t,parameters:e,typeAnnotation:r})}function vk(t=null,e,r=null){return(0,O.default)({type:"TSConstructorType",typeParameters:t,parameters:e,typeAnnotation:r})}function Pk(t,e=null){return(0,O.default)({type:"TSTypeReference",typeName:t,typeParameters:e})}function Ak(t,e=null,r=null){return(0,O.default)({type:"TSTypePredicate",parameterName:t,typeAnnotation:e,asserts:r})}function wk(t,e=null){return(0,O.default)({type:"TSTypeQuery",exprName:t,typeParameters:e})}function Ik(t){return(0,O.default)({type:"TSTypeLiteral",members:t})}function Ck(t){return(0,O.default)({type:"TSArrayType",elementType:t})}function Nk(t){return(0,O.default)({type:"TSTupleType",elementTypes:t})}function _k(t){return(0,O.default)({type:"TSOptionalType",typeAnnotation:t})}function Ok(t){return(0,O.default)({type:"TSRestType",typeAnnotation:t})}function kk(t,e,r=!1){return(0,O.default)({type:"TSNamedTupleMember",label:t,elementType:e,optional:r})}function Dk(t){return(0,O.default)({type:"TSUnionType",types:t})}function Lk(t){return(0,O.default)({type:"TSIntersectionType",types:t})}function Mk(t,e,r,i){return(0,O.default)({type:"TSConditionalType",checkType:t,extendsType:e,trueType:r,falseType:i})}function Fk(t){return(0,O.default)({type:"TSInferType",typeParameter:t})}function Bk(t){return(0,O.default)({type:"TSParenthesizedType",typeAnnotation:t})}function Rk(t){return(0,O.default)({type:"TSTypeOperator",typeAnnotation:t,operator:null})}function jk(t,e){return(0,O.default)({type:"TSIndexedAccessType",objectType:t,indexType:e})}function Uk(t,e=null,r=null){return(0,O.default)({type:"TSMappedType",typeParameter:t,typeAnnotation:e,nameType:r})}function Vk(t){return(0,O.default)({type:"TSLiteralType",literal:t})}function qk(t,e=null){return(0,O.default)({type:"TSExpressionWithTypeArguments",expression:t,typeParameters:e})}function Kk(t,e=null,r=null,i){return(0,O.default)({type:"TSInterfaceDeclaration",id:t,typeParameters:e,extends:r,body:i})}function Yk(t){return(0,O.default)({type:"TSInterfaceBody",body:t})}function Xk(t,e=null,r){return(0,O.default)({type:"TSTypeAliasDeclaration",id:t,typeParameters:e,typeAnnotation:r})}function Wk(t,e=null){return(0,O.default)({type:"TSInstantiationExpression",expression:t,typeParameters:e})}function Jk(t,e){return(0,O.default)({type:"TSAsExpression",expression:t,typeAnnotation:e})}function zk(t,e){return(0,O.default)({type:"TSSatisfiesExpression",expression:t,typeAnnotation:e})}function $k(t,e){return(0,O.default)({type:"TSTypeAssertion",typeAnnotation:t,expression:e})}function Hk(t,e){return(0,O.default)({type:"TSEnumDeclaration",id:t,members:e})}function Gk(t,e=null){return(0,O.default)({type:"TSEnumMember",id:t,initializer:e})}function Qk(t,e){return(0,O.default)({type:"TSModuleDeclaration",id:t,body:e})}function Zk(t){return(0,O.default)({type:"TSModuleBlock",body:t})}function eD(t,e=null,r=null){return(0,O.default)({type:"TSImportType",argument:t,qualifier:e,typeParameters:r})}function tD(t,e){return(0,O.default)({type:"TSImportEqualsDeclaration",id:t,moduleReference:e,isExport:null})}function rD(t){return(0,O.default)({type:"TSExternalModuleReference",expression:t})}function iD(t){return(0,O.default)({type:"TSNonNullExpression",expression:t})}function sD(t){return(0,O.default)({type:"TSExportAssignment",expression:t})}function nD(t){return(0,O.default)({type:"TSNamespaceExportDeclaration",id:t})}function aD(t){return(0,O.default)({type:"TSTypeAnnotation",typeAnnotation:t})}function oD(t){return(0,O.default)({type:"TSTypeParameterInstantiation",params:t})}function uD(t){return(0,O.default)({type:"TSTypeParameterDeclaration",params:t})}function lD(t=null,e=null,r){return(0,O.default)({type:"TSTypeParameter",constraint:t,default:e,name:r})}function cD(t){return(0,ea.default)("NumberLiteral","NumericLiteral","The node type "),Fm(t)}function pD(t,e=""){return(0,ea.default)("RegexLiteral","RegExpLiteral","The node type "),Bm(t,e)}function fD(t){return(0,ea.default)("RestProperty","RestElement","The node type "),Rm(t)}function hD(t){return(0,ea.default)("SpreadProperty","SpreadElement","The node type "),jm(t)}});var Um=L(Hu=>{"use strict";y();m();Object.defineProperty(Hu,"__esModule",{value:!0});Hu.default=mD;var dD=ct(),yD=Yt();function mD(t,e){let r=t.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)r[n].match(/[^ \t]/)&&(i=n);let s="";for(let n=0;n<r.length;n++){let o=r[n],u=n===0,c=n===r.length-1,p=n===i,f=o.replace(/\t/g," ");u||(f=f.replace(/^[ ]+/,"")),c||(f=f.replace(/[ ]+$/,"")),f&&(p||(f+=" "),s+=f)}s&&e.push((0,yD.inherits)((0,dD.stringLiteral)(s),t))}});var Vm=L(Qu=>{"use strict";y();m();Object.defineProperty(Qu,"__esModule",{value:!0});Qu.default=xD;var Gu=Re(),TD=Um();function xD(t){let e=[];for(let r=0;r<t.children.length;r++){let i=t.children[r];if((0,Gu.isJSXText)(i)){(0,TD.default)(i,e);continue}(0,Gu.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,Gu.isJSXEmptyExpression)(i)&&e.push(i)}return e}});var el=L(Zu=>{"use strict";y();m();Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=gD;var bD=Pt();function gD(t){return!!(t&&bD.VISITOR_KEYS[t.type])}});var qm=L(tl=>{"use strict";y();m();Object.defineProperty(tl,"__esModule",{value:!0});tl.default=ED;var SD=el();function ED(t){if(!(0,SD.default)(t)){var e;let r=(e=t?.type)!=null?e:JSON.stringify(t);throw new TypeError(`Not a valid node of type "${r}"`)}}});var Km=L(S=>{"use strict";y();m();Object.defineProperty(S,"__esModule",{value:!0});S.assertAccessor=RF;S.assertAnyTypeAnnotation=s3;S.assertArgumentPlaceholder=D8;S.assertArrayExpression=PD;S.assertArrayPattern=EL;S.assertArrayTypeAnnotation=n3;S.assertArrowFunctionExpression=vL;S.assertAssignmentExpression=AD;S.assertAssignmentPattern=SL;S.assertAwaitExpression=WL;S.assertBigIntLiteral=zL;S.assertBinary=aF;S.assertBinaryExpression=wD;S.assertBindExpression=L8;S.assertBlock=lF;S.assertBlockParent=uF;S.assertBlockStatement=_D;S.assertBooleanLiteral=GD;S.assertBooleanLiteralTypeAnnotation=o3;S.assertBooleanTypeAnnotation=a3;S.assertBreakStatement=OD;S.assertCallExpression=kD;S.assertCatchClause=DD;S.assertClass=LF;S.assertClassAccessorProperty=ZL;S.assertClassBody=PL;S.assertClassDeclaration=wL;S.assertClassExpression=AL;S.assertClassImplements=l3;S.assertClassMethod=RL;S.assertClassPrivateMethod=t3;S.assertClassPrivateProperty=e3;S.assertClassProperty=QL;S.assertCompletionStatement=fF;S.assertConditional=hF;S.assertConditionalExpression=LD;S.assertContinueStatement=MD;S.assertDebuggerStatement=FD;S.assertDecimalLiteral=V8;S.assertDeclaration=EF;S.assertDeclareClass=c3;S.assertDeclareExportAllDeclaration=b3;S.assertDeclareExportDeclaration=x3;S.assertDeclareFunction=p3;S.assertDeclareInterface=f3;S.assertDeclareModule=h3;S.assertDeclareModuleExports=d3;S.assertDeclareOpaqueType=m3;S.assertDeclareTypeAlias=y3;S.assertDeclareVariable=T3;S.assertDeclaredPredicate=g3;S.assertDecorator=F8;S.assertDirective=CD;S.assertDirectiveLiteral=ND;S.assertDoExpression=B8;S.assertDoWhileStatement=BD;S.assertEmptyStatement=RD;S.assertEmptyTypeAnnotation=O3;S.assertEnumBody=XF;S.assertEnumBooleanBody=n8;S.assertEnumBooleanMember=l8;S.assertEnumDeclaration=s8;S.assertEnumDefaultedMember=f8;S.assertEnumMember=WF;S.assertEnumNumberBody=a8;S.assertEnumNumberMember=c8;S.assertEnumStringBody=o8;S.assertEnumStringMember=p8;S.assertEnumSymbolBody=u8;S.assertExistsTypeAnnotation=S3;S.assertExportAllDeclaration=IL;S.assertExportDeclaration=FF;S.assertExportDefaultDeclaration=CL;S.assertExportDefaultSpecifier=R8;S.assertExportNamedDeclaration=NL;S.assertExportNamespaceSpecifier=$L;S.assertExportSpecifier=_L;S.assertExpression=nF;S.assertExpressionStatement=jD;S.assertExpressionWrapper=mF;S.assertFile=UD;S.assertFlow=UF;S.assertFlowBaseAnnotation=qF;S.assertFlowDeclaration=KF;S.assertFlowPredicate=YF;S.assertFlowType=VF;S.assertFor=TF;S.assertForInStatement=VD;S.assertForOfStatement=OL;S.assertForStatement=qD;S.assertForXStatement=xF;S.assertFunction=bF;S.assertFunctionDeclaration=KD;S.assertFunctionExpression=YD;S.assertFunctionParent=gF;S.assertFunctionTypeAnnotation=E3;S.assertFunctionTypeParam=v3;S.assertGenericTypeAnnotation=P3;S.assertIdentifier=XD;S.assertIfStatement=WD;S.assertImmutable=IF;S.assertImport=JL;S.assertImportAttribute=M8;S.assertImportDeclaration=kL;S.assertImportDefaultSpecifier=DL;S.assertImportExpression=FL;S.assertImportNamespaceSpecifier=LL;S.assertImportOrExportDeclaration=MF;S.assertImportSpecifier=ML;S.assertIndexedAccessType=h8;S.assertInferredPredicate=A3;S.assertInterfaceDeclaration=I3;S.assertInterfaceExtends=w3;S.assertInterfaceTypeAnnotation=C3;S.assertInterpreterDirective=ID;S.assertIntersectionTypeAnnotation=N3;S.assertJSX=JF;S.assertJSXAttribute=y8;S.assertJSXClosingElement=m8;S.assertJSXClosingFragment=N8;S.assertJSXElement=T8;S.assertJSXEmptyExpression=x8;S.assertJSXExpressionContainer=b8;S.assertJSXFragment=I8;S.assertJSXIdentifier=S8;S.assertJSXMemberExpression=E8;S.assertJSXNamespacedName=v8;S.assertJSXOpeningElement=P8;S.assertJSXOpeningFragment=C8;S.assertJSXSpreadAttribute=A8;S.assertJSXSpreadChild=g8;S.assertJSXText=w8;S.assertLVal=PF;S.assertLabeledStatement=JD;S.assertLiteral=wF;S.assertLogicalExpression=ZD;S.assertLoop=dF;S.assertMemberExpression=eL;S.assertMetaProperty=BL;S.assertMethod=NF;S.assertMiscellaneous=zF;S.assertMixedTypeAnnotation=_3;S.assertModuleDeclaration=i6;S.assertModuleExpression=q8;S.assertModuleSpecifier=BF;S.assertNewExpression=tL;S.assertNoop=_8;S.assertNullLiteral=HD;S.assertNullLiteralTypeAnnotation=u3;S.assertNullableTypeAnnotation=k3;S.assertNumberLiteral=ZF;S.assertNumberLiteralTypeAnnotation=D3;S.assertNumberTypeAnnotation=L3;S.assertNumericLiteral=$D;S.assertObjectExpression=iL;S.assertObjectMember=_F;S.assertObjectMethod=sL;S.assertObjectPattern=jL;S.assertObjectProperty=nL;S.assertObjectTypeAnnotation=M3;S.assertObjectTypeCallProperty=B3;S.assertObjectTypeIndexer=R3;S.assertObjectTypeInternalSlot=F3;S.assertObjectTypeProperty=j3;S.assertObjectTypeSpreadProperty=U3;S.assertOpaqueType=V3;S.assertOptionalCallExpression=GL;S.assertOptionalIndexedAccessType=d8;S.assertOptionalMemberExpression=HL;S.assertParenthesizedExpression=lL;S.assertPattern=DF;S.assertPatternLike=vF;S.assertPipelineBareFunction=X8;S.assertPipelinePrimaryTopicReference=W8;S.assertPipelineTopicExpression=Y8;S.assertPlaceholder=O8;S.assertPrivate=jF;S.assertPrivateName=r3;S.assertProgram=rL;S.assertProperty=OF;S.assertPureish=SF;S.assertQualifiedTypeIdentifier=q3;S.assertRecordExpression=j8;S.assertRegExpLiteral=QD;S.assertRegexLiteral=e6;S.assertRestElement=aL;S.assertRestProperty=t6;S.assertReturnStatement=oL;S.assertScopable=oF;S.assertSequenceExpression=uL;S.assertSpreadElement=UL;S.assertSpreadProperty=r6;S.assertStandardized=sF;S.assertStatement=cF;S.assertStaticBlock=i3;S.assertStringLiteral=zD;S.assertStringLiteralTypeAnnotation=K3;S.assertStringTypeAnnotation=Y3;S.assertSuper=VL;S.assertSwitchCase=cL;S.assertSwitchStatement=pL;S.assertSymbolTypeAnnotation=X3;S.assertTSAnyKeyword=rM;S.assertTSArrayType=EM;S.assertTSAsExpression=VM;S.assertTSBaseType=QF;S.assertTSBigIntKeyword=sM;S.assertTSBooleanKeyword=iM;S.assertTSCallSignatureDeclaration=G8;S.assertTSConditionalType=NM;S.assertTSConstructSignatureDeclaration=Q8;S.assertTSConstructorType=TM;S.assertTSDeclareFunction=z8;S.assertTSDeclareMethod=$8;S.assertTSEntityName=AF;S.assertTSEnumDeclaration=YM;S.assertTSEnumMember=XM;S.assertTSExportAssignment=QM;S.assertTSExpressionWithTypeArguments=FM;S.assertTSExternalModuleReference=HM;S.assertTSFunctionType=mM;S.assertTSImportEqualsDeclaration=$M;S.assertTSImportType=zM;S.assertTSIndexSignature=tM;S.assertTSIndexedAccessType=DM;S.assertTSInferType=_M;S.assertTSInstantiationExpression=UM;S.assertTSInterfaceBody=RM;S.assertTSInterfaceDeclaration=BM;S.assertTSIntersectionType=CM;S.assertTSIntrinsicKeyword=nM;S.assertTSLiteralType=MM;S.assertTSMappedType=LM;S.assertTSMethodSignature=eM;S.assertTSModuleBlock=JM;S.assertTSModuleDeclaration=WM;S.assertTSNamedTupleMember=wM;S.assertTSNamespaceExportDeclaration=ZM;S.assertTSNeverKeyword=aM;S.assertTSNonNullExpression=GM;S.assertTSNullKeyword=oM;S.assertTSNumberKeyword=uM;S.assertTSObjectKeyword=lM;S.assertTSOptionalType=PM;S.assertTSParameterProperty=J8;S.assertTSParenthesizedType=OM;S.assertTSPropertySignature=Z8;S.assertTSQualifiedName=H8;S.assertTSRestType=AM;S.assertTSSatisfiesExpression=qM;S.assertTSStringKeyword=cM;S.assertTSSymbolKeyword=pM;S.assertTSThisType=yM;S.assertTSTupleType=vM;S.assertTSType=GF;S.assertTSTypeAliasDeclaration=jM;S.assertTSTypeAnnotation=eF;S.assertTSTypeAssertion=KM;S.assertTSTypeElement=HF;S.assertTSTypeLiteral=SM;S.assertTSTypeOperator=kM;S.assertTSTypeParameter=iF;S.assertTSTypeParameterDeclaration=rF;S.assertTSTypeParameterInstantiation=tF;S.assertTSTypePredicate=bM;S.assertTSTypeQuery=gM;S.assertTSTypeReference=xM;S.assertTSUndefinedKeyword=fM;S.assertTSUnionType=IM;S.assertTSUnknownKeyword=hM;S.assertTSVoidKeyword=dM;S.assertTaggedTemplateExpression=qL;S.assertTemplateElement=KL;S.assertTemplateLiteral=YL;S.assertTerminatorless=pF;S.assertThisExpression=fL;S.assertThisTypeAnnotation=W3;S.assertThrowStatement=hL;S.assertTopicReference=K8;S.assertTryStatement=dL;S.assertTupleExpression=U8;S.assertTupleTypeAnnotation=J3;S.assertTypeAlias=$3;S.assertTypeAnnotation=H3;S.assertTypeCastExpression=G3;S.assertTypeParameter=Q3;S.assertTypeParameterDeclaration=Z3;S.assertTypeParameterInstantiation=e8;S.assertTypeScript=$F;S.assertTypeofTypeAnnotation=z3;S.assertUnaryExpression=yL;S.assertUnaryLike=kF;S.assertUnionTypeAnnotation=t8;S.assertUpdateExpression=mL;S.assertUserWhitespacable=CF;S.assertV8IntrinsicIdentifier=k8;S.assertVariableDeclaration=TL;S.assertVariableDeclarator=xL;S.assertVariance=r8;S.assertVoidTypeAnnotation=i8;S.assertWhile=yF;S.assertWhileStatement=bL;S.assertWithStatement=gL;S.assertYieldExpression=XL;var vD=Li(),ws=ys();function E(t,e,r){if(!(0,vD.default)(t,e,r))throw new Error(`Expected type "${t}" with option ${JSON.stringify(r)}, but instead got "${e.type}".`)}function PD(t,e){E("ArrayExpression",t,e)}function AD(t,e){E("AssignmentExpression",t,e)}function wD(t,e){E("BinaryExpression",t,e)}function ID(t,e){E("InterpreterDirective",t,e)}function CD(t,e){E("Directive",t,e)}function ND(t,e){E("DirectiveLiteral",t,e)}function _D(t,e){E("BlockStatement",t,e)}function OD(t,e){E("BreakStatement",t,e)}function kD(t,e){E("CallExpression",t,e)}function DD(t,e){E("CatchClause",t,e)}function LD(t,e){E("ConditionalExpression",t,e)}function MD(t,e){E("ContinueStatement",t,e)}function FD(t,e){E("DebuggerStatement",t,e)}function BD(t,e){E("DoWhileStatement",t,e)}function RD(t,e){E("EmptyStatement",t,e)}function jD(t,e){E("ExpressionStatement",t,e)}function UD(t,e){E("File",t,e)}function VD(t,e){E("ForInStatement",t,e)}function qD(t,e){E("ForStatement",t,e)}function KD(t,e){E("FunctionDeclaration",t,e)}function YD(t,e){E("FunctionExpression",t,e)}function XD(t,e){E("Identifier",t,e)}function WD(t,e){E("IfStatement",t,e)}function JD(t,e){E("LabeledStatement",t,e)}function zD(t,e){E("StringLiteral",t,e)}function $D(t,e){E("NumericLiteral",t,e)}function HD(t,e){E("NullLiteral",t,e)}function GD(t,e){E("BooleanLiteral",t,e)}function QD(t,e){E("RegExpLiteral",t,e)}function ZD(t,e){E("LogicalExpression",t,e)}function eL(t,e){E("MemberExpression",t,e)}function tL(t,e){E("NewExpression",t,e)}function rL(t,e){E("Program",t,e)}function iL(t,e){E("ObjectExpression",t,e)}function sL(t,e){E("ObjectMethod",t,e)}function nL(t,e){E("ObjectProperty",t,e)}function aL(t,e){E("RestElement",t,e)}function oL(t,e){E("ReturnStatement",t,e)}function uL(t,e){E("SequenceExpression",t,e)}function lL(t,e){E("ParenthesizedExpression",t,e)}function cL(t,e){E("SwitchCase",t,e)}function pL(t,e){E("SwitchStatement",t,e)}function fL(t,e){E("ThisExpression",t,e)}function hL(t,e){E("ThrowStatement",t,e)}function dL(t,e){E("TryStatement",t,e)}function yL(t,e){E("UnaryExpression",t,e)}function mL(t,e){E("UpdateExpression",t,e)}function TL(t,e){E("VariableDeclaration",t,e)}function xL(t,e){E("VariableDeclarator",t,e)}function bL(t,e){E("WhileStatement",t,e)}function gL(t,e){E("WithStatement",t,e)}function SL(t,e){E("AssignmentPattern",t,e)}function EL(t,e){E("ArrayPattern",t,e)}function vL(t,e){E("ArrowFunctionExpression",t,e)}function PL(t,e){E("ClassBody",t,e)}function AL(t,e){E("ClassExpression",t,e)}function wL(t,e){E("ClassDeclaration",t,e)}function IL(t,e){E("ExportAllDeclaration",t,e)}function CL(t,e){E("ExportDefaultDeclaration",t,e)}function NL(t,e){E("ExportNamedDeclaration",t,e)}function _L(t,e){E("ExportSpecifier",t,e)}function OL(t,e){E("ForOfStatement",t,e)}function kL(t,e){E("ImportDeclaration",t,e)}function DL(t,e){E("ImportDefaultSpecifier",t,e)}function LL(t,e){E("ImportNamespaceSpecifier",t,e)}function ML(t,e){E("ImportSpecifier",t,e)}function FL(t,e){E("ImportExpression",t,e)}function BL(t,e){E("MetaProperty",t,e)}function RL(t,e){E("ClassMethod",t,e)}function jL(t,e){E("ObjectPattern",t,e)}function UL(t,e){E("SpreadElement",t,e)}function VL(t,e){E("Super",t,e)}function qL(t,e){E("TaggedTemplateExpression",t,e)}function KL(t,e){E("TemplateElement",t,e)}function YL(t,e){E("TemplateLiteral",t,e)}function XL(t,e){E("YieldExpression",t,e)}function WL(t,e){E("AwaitExpression",t,e)}function JL(t,e){E("Import",t,e)}function zL(t,e){E("BigIntLiteral",t,e)}function $L(t,e){E("ExportNamespaceSpecifier",t,e)}function HL(t,e){E("OptionalMemberExpression",t,e)}function GL(t,e){E("OptionalCallExpression",t,e)}function QL(t,e){E("ClassProperty",t,e)}function ZL(t,e){E("ClassAccessorProperty",t,e)}function e3(t,e){E("ClassPrivateProperty",t,e)}function t3(t,e){E("ClassPrivateMethod",t,e)}function r3(t,e){E("PrivateName",t,e)}function i3(t,e){E("StaticBlock",t,e)}function s3(t,e){E("AnyTypeAnnotation",t,e)}function n3(t,e){E("ArrayTypeAnnotation",t,e)}function a3(t,e){E("BooleanTypeAnnotation",t,e)}function o3(t,e){E("BooleanLiteralTypeAnnotation",t,e)}function u3(t,e){E("NullLiteralTypeAnnotation",t,e)}function l3(t,e){E("ClassImplements",t,e)}function c3(t,e){E("DeclareClass",t,e)}function p3(t,e){E("DeclareFunction",t,e)}function f3(t,e){E("DeclareInterface",t,e)}function h3(t,e){E("DeclareModule",t,e)}function d3(t,e){E("DeclareModuleExports",t,e)}function y3(t,e){E("DeclareTypeAlias",t,e)}function m3(t,e){E("DeclareOpaqueType",t,e)}function T3(t,e){E("DeclareVariable",t,e)}function x3(t,e){E("DeclareExportDeclaration",t,e)}function b3(t,e){E("DeclareExportAllDeclaration",t,e)}function g3(t,e){E("DeclaredPredicate",t,e)}function S3(t,e){E("ExistsTypeAnnotation",t,e)}function E3(t,e){E("FunctionTypeAnnotation",t,e)}function v3(t,e){E("FunctionTypeParam",t,e)}function P3(t,e){E("GenericTypeAnnotation",t,e)}function A3(t,e){E("InferredPredicate",t,e)}function w3(t,e){E("InterfaceExtends",t,e)}function I3(t,e){E("InterfaceDeclaration",t,e)}function C3(t,e){E("InterfaceTypeAnnotation",t,e)}function N3(t,e){E("IntersectionTypeAnnotation",t,e)}function _3(t,e){E("MixedTypeAnnotation",t,e)}function O3(t,e){E("EmptyTypeAnnotation",t,e)}function k3(t,e){E("NullableTypeAnnotation",t,e)}function D3(t,e){E("NumberLiteralTypeAnnotation",t,e)}function L3(t,e){E("NumberTypeAnnotation",t,e)}function M3(t,e){E("ObjectTypeAnnotation",t,e)}function F3(t,e){E("ObjectTypeInternalSlot",t,e)}function B3(t,e){E("ObjectTypeCallProperty",t,e)}function R3(t,e){E("ObjectTypeIndexer",t,e)}function j3(t,e){E("ObjectTypeProperty",t,e)}function U3(t,e){E("ObjectTypeSpreadProperty",t,e)}function V3(t,e){E("OpaqueType",t,e)}function q3(t,e){E("QualifiedTypeIdentifier",t,e)}function K3(t,e){E("StringLiteralTypeAnnotation",t,e)}function Y3(t,e){E("StringTypeAnnotation",t,e)}function X3(t,e){E("SymbolTypeAnnotation",t,e)}function W3(t,e){E("ThisTypeAnnotation",t,e)}function J3(t,e){E("TupleTypeAnnotation",t,e)}function z3(t,e){E("TypeofTypeAnnotation",t,e)}function $3(t,e){E("TypeAlias",t,e)}function H3(t,e){E("TypeAnnotation",t,e)}function G3(t,e){E("TypeCastExpression",t,e)}function Q3(t,e){E("TypeParameter",t,e)}function Z3(t,e){E("TypeParameterDeclaration",t,e)}function e8(t,e){E("TypeParameterInstantiation",t,e)}function t8(t,e){E("UnionTypeAnnotation",t,e)}function r8(t,e){E("Variance",t,e)}function i8(t,e){E("VoidTypeAnnotation",t,e)}function s8(t,e){E("EnumDeclaration",t,e)}function n8(t,e){E("EnumBooleanBody",t,e)}function a8(t,e){E("EnumNumberBody",t,e)}function o8(t,e){E("EnumStringBody",t,e)}function u8(t,e){E("EnumSymbolBody",t,e)}function l8(t,e){E("EnumBooleanMember",t,e)}function c8(t,e){E("EnumNumberMember",t,e)}function p8(t,e){E("EnumStringMember",t,e)}function f8(t,e){E("EnumDefaultedMember",t,e)}function h8(t,e){E("IndexedAccessType",t,e)}function d8(t,e){E("OptionalIndexedAccessType",t,e)}function y8(t,e){E("JSXAttribute",t,e)}function m8(t,e){E("JSXClosingElement",t,e)}function T8(t,e){E("JSXElement",t,e)}function x8(t,e){E("JSXEmptyExpression",t,e)}function b8(t,e){E("JSXExpressionContainer",t,e)}function g8(t,e){E("JSXSpreadChild",t,e)}function S8(t,e){E("JSXIdentifier",t,e)}function E8(t,e){E("JSXMemberExpression",t,e)}function v8(t,e){E("JSXNamespacedName",t,e)}function P8(t,e){E("JSXOpeningElement",t,e)}function A8(t,e){E("JSXSpreadAttribute",t,e)}function w8(t,e){E("JSXText",t,e)}function I8(t,e){E("JSXFragment",t,e)}function C8(t,e){E("JSXOpeningFragment",t,e)}function N8(t,e){E("JSXClosingFragment",t,e)}function _8(t,e){E("Noop",t,e)}function O8(t,e){E("Placeholder",t,e)}function k8(t,e){E("V8IntrinsicIdentifier",t,e)}function D8(t,e){E("ArgumentPlaceholder",t,e)}function L8(t,e){E("BindExpression",t,e)}function M8(t,e){E("ImportAttribute",t,e)}function F8(t,e){E("Decorator",t,e)}function B8(t,e){E("DoExpression",t,e)}function R8(t,e){E("ExportDefaultSpecifier",t,e)}function j8(t,e){E("RecordExpression",t,e)}function U8(t,e){E("TupleExpression",t,e)}function V8(t,e){E("DecimalLiteral",t,e)}function q8(t,e){E("ModuleExpression",t,e)}function K8(t,e){E("TopicReference",t,e)}function Y8(t,e){E("PipelineTopicExpression",t,e)}function X8(t,e){E("PipelineBareFunction",t,e)}function W8(t,e){E("PipelinePrimaryTopicReference",t,e)}function J8(t,e){E("TSParameterProperty",t,e)}function z8(t,e){E("TSDeclareFunction",t,e)}function $8(t,e){E("TSDeclareMethod",t,e)}function H8(t,e){E("TSQualifiedName",t,e)}function G8(t,e){E("TSCallSignatureDeclaration",t,e)}function Q8(t,e){E("TSConstructSignatureDeclaration",t,e)}function Z8(t,e){E("TSPropertySignature",t,e)}function eM(t,e){E("TSMethodSignature",t,e)}function tM(t,e){E("TSIndexSignature",t,e)}function rM(t,e){E("TSAnyKeyword",t,e)}function iM(t,e){E("TSBooleanKeyword",t,e)}function sM(t,e){E("TSBigIntKeyword",t,e)}function nM(t,e){E("TSIntrinsicKeyword",t,e)}function aM(t,e){E("TSNeverKeyword",t,e)}function oM(t,e){E("TSNullKeyword",t,e)}function uM(t,e){E("TSNumberKeyword",t,e)}function lM(t,e){E("TSObjectKeyword",t,e)}function cM(t,e){E("TSStringKeyword",t,e)}function pM(t,e){E("TSSymbolKeyword",t,e)}function fM(t,e){E("TSUndefinedKeyword",t,e)}function hM(t,e){E("TSUnknownKeyword",t,e)}function dM(t,e){E("TSVoidKeyword",t,e)}function yM(t,e){E("TSThisType",t,e)}function mM(t,e){E("TSFunctionType",t,e)}function TM(t,e){E("TSConstructorType",t,e)}function xM(t,e){E("TSTypeReference",t,e)}function bM(t,e){E("TSTypePredicate",t,e)}function gM(t,e){E("TSTypeQuery",t,e)}function SM(t,e){E("TSTypeLiteral",t,e)}function EM(t,e){E("TSArrayType",t,e)}function vM(t,e){E("TSTupleType",t,e)}function PM(t,e){E("TSOptionalType",t,e)}function AM(t,e){E("TSRestType",t,e)}function wM(t,e){E("TSNamedTupleMember",t,e)}function IM(t,e){E("TSUnionType",t,e)}function CM(t,e){E("TSIntersectionType",t,e)}function NM(t,e){E("TSConditionalType",t,e)}function _M(t,e){E("TSInferType",t,e)}function OM(t,e){E("TSParenthesizedType",t,e)}function kM(t,e){E("TSTypeOperator",t,e)}function DM(t,e){E("TSIndexedAccessType",t,e)}function LM(t,e){E("TSMappedType",t,e)}function MM(t,e){E("TSLiteralType",t,e)}function FM(t,e){E("TSExpressionWithTypeArguments",t,e)}function BM(t,e){E("TSInterfaceDeclaration",t,e)}function RM(t,e){E("TSInterfaceBody",t,e)}function jM(t,e){E("TSTypeAliasDeclaration",t,e)}function UM(t,e){E("TSInstantiationExpression",t,e)}function VM(t,e){E("TSAsExpression",t,e)}function qM(t,e){E("TSSatisfiesExpression",t,e)}function KM(t,e){E("TSTypeAssertion",t,e)}function YM(t,e){E("TSEnumDeclaration",t,e)}function XM(t,e){E("TSEnumMember",t,e)}function WM(t,e){E("TSModuleDeclaration",t,e)}function JM(t,e){E("TSModuleBlock",t,e)}function zM(t,e){E("TSImportType",t,e)}function $M(t,e){E("TSImportEqualsDeclaration",t,e)}function HM(t,e){E("TSExternalModuleReference",t,e)}function GM(t,e){E("TSNonNullExpression",t,e)}function QM(t,e){E("TSExportAssignment",t,e)}function ZM(t,e){E("TSNamespaceExportDeclaration",t,e)}function eF(t,e){E("TSTypeAnnotation",t,e)}function tF(t,e){E("TSTypeParameterInstantiation",t,e)}function rF(t,e){E("TSTypeParameterDeclaration",t,e)}function iF(t,e){E("TSTypeParameter",t,e)}function sF(t,e){E("Standardized",t,e)}function nF(t,e){E("Expression",t,e)}function aF(t,e){E("Binary",t,e)}function oF(t,e){E("Scopable",t,e)}function uF(t,e){E("BlockParent",t,e)}function lF(t,e){E("Block",t,e)}function cF(t,e){E("Statement",t,e)}function pF(t,e){E("Terminatorless",t,e)}function fF(t,e){E("CompletionStatement",t,e)}function hF(t,e){E("Conditional",t,e)}function dF(t,e){E("Loop",t,e)}function yF(t,e){E("While",t,e)}function mF(t,e){E("ExpressionWrapper",t,e)}function TF(t,e){E("For",t,e)}function xF(t,e){E("ForXStatement",t,e)}function bF(t,e){E("Function",t,e)}function gF(t,e){E("FunctionParent",t,e)}function SF(t,e){E("Pureish",t,e)}function EF(t,e){E("Declaration",t,e)}function vF(t,e){E("PatternLike",t,e)}function PF(t,e){E("LVal",t,e)}function AF(t,e){E("TSEntityName",t,e)}function wF(t,e){E("Literal",t,e)}function IF(t,e){E("Immutable",t,e)}function CF(t,e){E("UserWhitespacable",t,e)}function NF(t,e){E("Method",t,e)}function _F(t,e){E("ObjectMember",t,e)}function OF(t,e){E("Property",t,e)}function kF(t,e){E("UnaryLike",t,e)}function DF(t,e){E("Pattern",t,e)}function LF(t,e){E("Class",t,e)}function MF(t,e){E("ImportOrExportDeclaration",t,e)}function FF(t,e){E("ExportDeclaration",t,e)}function BF(t,e){E("ModuleSpecifier",t,e)}function RF(t,e){E("Accessor",t,e)}function jF(t,e){E("Private",t,e)}function UF(t,e){E("Flow",t,e)}function VF(t,e){E("FlowType",t,e)}function qF(t,e){E("FlowBaseAnnotation",t,e)}function KF(t,e){E("FlowDeclaration",t,e)}function YF(t,e){E("FlowPredicate",t,e)}function XF(t,e){E("EnumBody",t,e)}function WF(t,e){E("EnumMember",t,e)}function JF(t,e){E("JSX",t,e)}function zF(t,e){E("Miscellaneous",t,e)}function $F(t,e){E("TypeScript",t,e)}function HF(t,e){E("TSTypeElement",t,e)}function GF(t,e){E("TSType",t,e)}function QF(t,e){E("TSBaseType",t,e)}function ZF(t,e){(0,ws.default)("assertNumberLiteral","assertNumericLiteral"),E("NumberLiteral",t,e)}function e6(t,e){(0,ws.default)("assertRegexLiteral","assertRegExpLiteral"),E("RegexLiteral",t,e)}function t6(t,e){(0,ws.default)("assertRestProperty","assertRestElement"),E("RestProperty",t,e)}function r6(t,e){(0,ws.default)("assertSpreadProperty","assertSpreadElement"),E("SpreadProperty",t,e)}function i6(t,e){(0,ws.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),E("ModuleDeclaration",t,e)}});var Ym=L(ta=>{"use strict";y();m();Object.defineProperty(ta,"__esModule",{value:!0});ta.default=void 0;var _t=ct(),Pq=ta.default=s6;function s6(t){switch(t){case"string":return(0,_t.stringTypeAnnotation)();case"number":return(0,_t.numberTypeAnnotation)();case"undefined":return(0,_t.voidTypeAnnotation)();case"boolean":return(0,_t.booleanTypeAnnotation)();case"function":return(0,_t.genericTypeAnnotation)((0,_t.identifier)("Function"));case"object":return(0,_t.genericTypeAnnotation)((0,_t.identifier)("Object"));case"symbol":return(0,_t.genericTypeAnnotation)((0,_t.identifier)("Symbol"));case"bigint":return(0,_t.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)}});var il=L(rl=>{"use strict";y();m();Object.defineProperty(rl,"__esModule",{value:!0});rl.default=Wm;var Is=Re();function Xm(t){return(0,Is.isIdentifier)(t)?t.name:`${t.id.name}.${Xm(t.qualification)}`}function Wm(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let o=0;o<e.length;o++){let u=e[o];if(u&&!(n.indexOf(u)>=0)){if((0,Is.isAnyTypeAnnotation)(u))return[u];if((0,Is.isFlowBaseAnnotation)(u)){i.set(u.type,u);continue}if((0,Is.isUnionTypeAnnotation)(u)){s.has(u.types)||(e.push(...u.types),s.add(u.types));continue}if((0,Is.isGenericTypeAnnotation)(u)){let c=Xm(u.id);if(r.has(c)){let p=r.get(c);p.typeParameters?u.typeParameters&&(p.typeParameters.params.push(...u.typeParameters.params),p.typeParameters.params=Wm(p.typeParameters.params)):p=u.typeParameters}else r.set(c,u);continue}n.push(u)}}for(let[,o]of i)n.push(o);for(let[,o]of r)n.push(o);return n}});var Jm=L(sl=>{"use strict";y();m();Object.defineProperty(sl,"__esModule",{value:!0});sl.default=o6;var n6=ct(),a6=il();function o6(t){let e=(0,a6.default)(t);return e.length===1?e[0]:(0,n6.unionTypeAnnotation)(e)}});var Hm=L(nl=>{"use strict";y();m();Object.defineProperty(nl,"__esModule",{value:!0});nl.default=$m;var Cs=Re();function zm(t){return(0,Cs.isIdentifier)(t)?t.name:`${t.right.name}.${zm(t.left)}`}function $m(t){let e=Array.from(t),r=new Map,i=new Map,s=new Set,n=[];for(let o=0;o<e.length;o++){let u=e[o];if(u&&!(n.indexOf(u)>=0)){if((0,Cs.isTSAnyKeyword)(u))return[u];if((0,Cs.isTSBaseType)(u)){i.set(u.type,u);continue}if((0,Cs.isTSUnionType)(u)){s.has(u.types)||(e.push(...u.types),s.add(u.types));continue}if((0,Cs.isTSTypeReference)(u)&&u.typeParameters){let c=zm(u.typeName);if(r.has(c)){let p=r.get(c);p.typeParameters?u.typeParameters&&(p.typeParameters.params.push(...u.typeParameters.params),p.typeParameters.params=$m(p.typeParameters.params)):p=u.typeParameters}else r.set(c,u);continue}n.push(u)}}for(let[,o]of i)n.push(o);for(let[,o]of r)n.push(o);return n}});var Gm=L(al=>{"use strict";y();m();Object.defineProperty(al,"__esModule",{value:!0});al.default=p6;var u6=ct(),l6=Hm(),c6=Re();function p6(t){let e=t.map(i=>(0,c6.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,l6.default)(e);return r.length===1?r[0]:(0,u6.tsUnionType)(r)}});var Qm=L(w=>{"use strict";y();m();Object.defineProperty(w,"__esModule",{value:!0});Object.defineProperty(w,"AnyTypeAnnotation",{enumerable:!0,get:function(){return I.anyTypeAnnotation}});Object.defineProperty(w,"ArgumentPlaceholder",{enumerable:!0,get:function(){return I.argumentPlaceholder}});Object.defineProperty(w,"ArrayExpression",{enumerable:!0,get:function(){return I.arrayExpression}});Object.defineProperty(w,"ArrayPattern",{enumerable:!0,get:function(){return I.arrayPattern}});Object.defineProperty(w,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return I.arrayTypeAnnotation}});Object.defineProperty(w,"ArrowFunctionExpression",{enumerable:!0,get:function(){return I.arrowFunctionExpression}});Object.defineProperty(w,"AssignmentExpression",{enumerable:!0,get:function(){return I.assignmentExpression}});Object.defineProperty(w,"AssignmentPattern",{enumerable:!0,get:function(){return I.assignmentPattern}});Object.defineProperty(w,"AwaitExpression",{enumerable:!0,get:function(){return I.awaitExpression}});Object.defineProperty(w,"BigIntLiteral",{enumerable:!0,get:function(){return I.bigIntLiteral}});Object.defineProperty(w,"BinaryExpression",{enumerable:!0,get:function(){return I.binaryExpression}});Object.defineProperty(w,"BindExpression",{enumerable:!0,get:function(){return I.bindExpression}});Object.defineProperty(w,"BlockStatement",{enumerable:!0,get:function(){return I.blockStatement}});Object.defineProperty(w,"BooleanLiteral",{enumerable:!0,get:function(){return I.booleanLiteral}});Object.defineProperty(w,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.booleanLiteralTypeAnnotation}});Object.defineProperty(w,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return I.booleanTypeAnnotation}});Object.defineProperty(w,"BreakStatement",{enumerable:!0,get:function(){return I.breakStatement}});Object.defineProperty(w,"CallExpression",{enumerable:!0,get:function(){return I.callExpression}});Object.defineProperty(w,"CatchClause",{enumerable:!0,get:function(){return I.catchClause}});Object.defineProperty(w,"ClassAccessorProperty",{enumerable:!0,get:function(){return I.classAccessorProperty}});Object.defineProperty(w,"ClassBody",{enumerable:!0,get:function(){return I.classBody}});Object.defineProperty(w,"ClassDeclaration",{enumerable:!0,get:function(){return I.classDeclaration}});Object.defineProperty(w,"ClassExpression",{enumerable:!0,get:function(){return I.classExpression}});Object.defineProperty(w,"ClassImplements",{enumerable:!0,get:function(){return I.classImplements}});Object.defineProperty(w,"ClassMethod",{enumerable:!0,get:function(){return I.classMethod}});Object.defineProperty(w,"ClassPrivateMethod",{enumerable:!0,get:function(){return I.classPrivateMethod}});Object.defineProperty(w,"ClassPrivateProperty",{enumerable:!0,get:function(){return I.classPrivateProperty}});Object.defineProperty(w,"ClassProperty",{enumerable:!0,get:function(){return I.classProperty}});Object.defineProperty(w,"ConditionalExpression",{enumerable:!0,get:function(){return I.conditionalExpression}});Object.defineProperty(w,"ContinueStatement",{enumerable:!0,get:function(){return I.continueStatement}});Object.defineProperty(w,"DebuggerStatement",{enumerable:!0,get:function(){return I.debuggerStatement}});Object.defineProperty(w,"DecimalLiteral",{enumerable:!0,get:function(){return I.decimalLiteral}});Object.defineProperty(w,"DeclareClass",{enumerable:!0,get:function(){return I.declareClass}});Object.defineProperty(w,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return I.declareExportAllDeclaration}});Object.defineProperty(w,"DeclareExportDeclaration",{enumerable:!0,get:function(){return I.declareExportDeclaration}});Object.defineProperty(w,"DeclareFunction",{enumerable:!0,get:function(){return I.declareFunction}});Object.defineProperty(w,"DeclareInterface",{enumerable:!0,get:function(){return I.declareInterface}});Object.defineProperty(w,"DeclareModule",{enumerable:!0,get:function(){return I.declareModule}});Object.defineProperty(w,"DeclareModuleExports",{enumerable:!0,get:function(){return I.declareModuleExports}});Object.defineProperty(w,"DeclareOpaqueType",{enumerable:!0,get:function(){return I.declareOpaqueType}});Object.defineProperty(w,"DeclareTypeAlias",{enumerable:!0,get:function(){return I.declareTypeAlias}});Object.defineProperty(w,"DeclareVariable",{enumerable:!0,get:function(){return I.declareVariable}});Object.defineProperty(w,"DeclaredPredicate",{enumerable:!0,get:function(){return I.declaredPredicate}});Object.defineProperty(w,"Decorator",{enumerable:!0,get:function(){return I.decorator}});Object.defineProperty(w,"Directive",{enumerable:!0,get:function(){return I.directive}});Object.defineProperty(w,"DirectiveLiteral",{enumerable:!0,get:function(){return I.directiveLiteral}});Object.defineProperty(w,"DoExpression",{enumerable:!0,get:function(){return I.doExpression}});Object.defineProperty(w,"DoWhileStatement",{enumerable:!0,get:function(){return I.doWhileStatement}});Object.defineProperty(w,"EmptyStatement",{enumerable:!0,get:function(){return I.emptyStatement}});Object.defineProperty(w,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return I.emptyTypeAnnotation}});Object.defineProperty(w,"EnumBooleanBody",{enumerable:!0,get:function(){return I.enumBooleanBody}});Object.defineProperty(w,"EnumBooleanMember",{enumerable:!0,get:function(){return I.enumBooleanMember}});Object.defineProperty(w,"EnumDeclaration",{enumerable:!0,get:function(){return I.enumDeclaration}});Object.defineProperty(w,"EnumDefaultedMember",{enumerable:!0,get:function(){return I.enumDefaultedMember}});Object.defineProperty(w,"EnumNumberBody",{enumerable:!0,get:function(){return I.enumNumberBody}});Object.defineProperty(w,"EnumNumberMember",{enumerable:!0,get:function(){return I.enumNumberMember}});Object.defineProperty(w,"EnumStringBody",{enumerable:!0,get:function(){return I.enumStringBody}});Object.defineProperty(w,"EnumStringMember",{enumerable:!0,get:function(){return I.enumStringMember}});Object.defineProperty(w,"EnumSymbolBody",{enumerable:!0,get:function(){return I.enumSymbolBody}});Object.defineProperty(w,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return I.existsTypeAnnotation}});Object.defineProperty(w,"ExportAllDeclaration",{enumerable:!0,get:function(){return I.exportAllDeclaration}});Object.defineProperty(w,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return I.exportDefaultDeclaration}});Object.defineProperty(w,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return I.exportDefaultSpecifier}});Object.defineProperty(w,"ExportNamedDeclaration",{enumerable:!0,get:function(){return I.exportNamedDeclaration}});Object.defineProperty(w,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return I.exportNamespaceSpecifier}});Object.defineProperty(w,"ExportSpecifier",{enumerable:!0,get:function(){return I.exportSpecifier}});Object.defineProperty(w,"ExpressionStatement",{enumerable:!0,get:function(){return I.expressionStatement}});Object.defineProperty(w,"File",{enumerable:!0,get:function(){return I.file}});Object.defineProperty(w,"ForInStatement",{enumerable:!0,get:function(){return I.forInStatement}});Object.defineProperty(w,"ForOfStatement",{enumerable:!0,get:function(){return I.forOfStatement}});Object.defineProperty(w,"ForStatement",{enumerable:!0,get:function(){return I.forStatement}});Object.defineProperty(w,"FunctionDeclaration",{enumerable:!0,get:function(){return I.functionDeclaration}});Object.defineProperty(w,"FunctionExpression",{enumerable:!0,get:function(){return I.functionExpression}});Object.defineProperty(w,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return I.functionTypeAnnotation}});Object.defineProperty(w,"FunctionTypeParam",{enumerable:!0,get:function(){return I.functionTypeParam}});Object.defineProperty(w,"GenericTypeAnnotation",{enumerable:!0,get:function(){return I.genericTypeAnnotation}});Object.defineProperty(w,"Identifier",{enumerable:!0,get:function(){return I.identifier}});Object.defineProperty(w,"IfStatement",{enumerable:!0,get:function(){return I.ifStatement}});Object.defineProperty(w,"Import",{enumerable:!0,get:function(){return I.import}});Object.defineProperty(w,"ImportAttribute",{enumerable:!0,get:function(){return I.importAttribute}});Object.defineProperty(w,"ImportDeclaration",{enumerable:!0,get:function(){return I.importDeclaration}});Object.defineProperty(w,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return I.importDefaultSpecifier}});Object.defineProperty(w,"ImportExpression",{enumerable:!0,get:function(){return I.importExpression}});Object.defineProperty(w,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return I.importNamespaceSpecifier}});Object.defineProperty(w,"ImportSpecifier",{enumerable:!0,get:function(){return I.importSpecifier}});Object.defineProperty(w,"IndexedAccessType",{enumerable:!0,get:function(){return I.indexedAccessType}});Object.defineProperty(w,"InferredPredicate",{enumerable:!0,get:function(){return I.inferredPredicate}});Object.defineProperty(w,"InterfaceDeclaration",{enumerable:!0,get:function(){return I.interfaceDeclaration}});Object.defineProperty(w,"InterfaceExtends",{enumerable:!0,get:function(){return I.interfaceExtends}});Object.defineProperty(w,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return I.interfaceTypeAnnotation}});Object.defineProperty(w,"InterpreterDirective",{enumerable:!0,get:function(){return I.interpreterDirective}});Object.defineProperty(w,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return I.intersectionTypeAnnotation}});Object.defineProperty(w,"JSXAttribute",{enumerable:!0,get:function(){return I.jsxAttribute}});Object.defineProperty(w,"JSXClosingElement",{enumerable:!0,get:function(){return I.jsxClosingElement}});Object.defineProperty(w,"JSXClosingFragment",{enumerable:!0,get:function(){return I.jsxClosingFragment}});Object.defineProperty(w,"JSXElement",{enumerable:!0,get:function(){return I.jsxElement}});Object.defineProperty(w,"JSXEmptyExpression",{enumerable:!0,get:function(){return I.jsxEmptyExpression}});Object.defineProperty(w,"JSXExpressionContainer",{enumerable:!0,get:function(){return I.jsxExpressionContainer}});Object.defineProperty(w,"JSXFragment",{enumerable:!0,get:function(){return I.jsxFragment}});Object.defineProperty(w,"JSXIdentifier",{enumerable:!0,get:function(){return I.jsxIdentifier}});Object.defineProperty(w,"JSXMemberExpression",{enumerable:!0,get:function(){return I.jsxMemberExpression}});Object.defineProperty(w,"JSXNamespacedName",{enumerable:!0,get:function(){return I.jsxNamespacedName}});Object.defineProperty(w,"JSXOpeningElement",{enumerable:!0,get:function(){return I.jsxOpeningElement}});Object.defineProperty(w,"JSXOpeningFragment",{enumerable:!0,get:function(){return I.jsxOpeningFragment}});Object.defineProperty(w,"JSXSpreadAttribute",{enumerable:!0,get:function(){return I.jsxSpreadAttribute}});Object.defineProperty(w,"JSXSpreadChild",{enumerable:!0,get:function(){return I.jsxSpreadChild}});Object.defineProperty(w,"JSXText",{enumerable:!0,get:function(){return I.jsxText}});Object.defineProperty(w,"LabeledStatement",{enumerable:!0,get:function(){return I.labeledStatement}});Object.defineProperty(w,"LogicalExpression",{enumerable:!0,get:function(){return I.logicalExpression}});Object.defineProperty(w,"MemberExpression",{enumerable:!0,get:function(){return I.memberExpression}});Object.defineProperty(w,"MetaProperty",{enumerable:!0,get:function(){return I.metaProperty}});Object.defineProperty(w,"MixedTypeAnnotation",{enumerable:!0,get:function(){return I.mixedTypeAnnotation}});Object.defineProperty(w,"ModuleExpression",{enumerable:!0,get:function(){return I.moduleExpression}});Object.defineProperty(w,"NewExpression",{enumerable:!0,get:function(){return I.newExpression}});Object.defineProperty(w,"Noop",{enumerable:!0,get:function(){return I.noop}});Object.defineProperty(w,"NullLiteral",{enumerable:!0,get:function(){return I.nullLiteral}});Object.defineProperty(w,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.nullLiteralTypeAnnotation}});Object.defineProperty(w,"NullableTypeAnnotation",{enumerable:!0,get:function(){return I.nullableTypeAnnotation}});Object.defineProperty(w,"NumberLiteral",{enumerable:!0,get:function(){return I.numberLiteral}});Object.defineProperty(w,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.numberLiteralTypeAnnotation}});Object.defineProperty(w,"NumberTypeAnnotation",{enumerable:!0,get:function(){return I.numberTypeAnnotation}});Object.defineProperty(w,"NumericLiteral",{enumerable:!0,get:function(){return I.numericLiteral}});Object.defineProperty(w,"ObjectExpression",{enumerable:!0,get:function(){return I.objectExpression}});Object.defineProperty(w,"ObjectMethod",{enumerable:!0,get:function(){return I.objectMethod}});Object.defineProperty(w,"ObjectPattern",{enumerable:!0,get:function(){return I.objectPattern}});Object.defineProperty(w,"ObjectProperty",{enumerable:!0,get:function(){return I.objectProperty}});Object.defineProperty(w,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return I.objectTypeAnnotation}});Object.defineProperty(w,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return I.objectTypeCallProperty}});Object.defineProperty(w,"ObjectTypeIndexer",{enumerable:!0,get:function(){return I.objectTypeIndexer}});Object.defineProperty(w,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return I.objectTypeInternalSlot}});Object.defineProperty(w,"ObjectTypeProperty",{enumerable:!0,get:function(){return I.objectTypeProperty}});Object.defineProperty(w,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return I.objectTypeSpreadProperty}});Object.defineProperty(w,"OpaqueType",{enumerable:!0,get:function(){return I.opaqueType}});Object.defineProperty(w,"OptionalCallExpression",{enumerable:!0,get:function(){return I.optionalCallExpression}});Object.defineProperty(w,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return I.optionalIndexedAccessType}});Object.defineProperty(w,"OptionalMemberExpression",{enumerable:!0,get:function(){return I.optionalMemberExpression}});Object.defineProperty(w,"ParenthesizedExpression",{enumerable:!0,get:function(){return I.parenthesizedExpression}});Object.defineProperty(w,"PipelineBareFunction",{enumerable:!0,get:function(){return I.pipelineBareFunction}});Object.defineProperty(w,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return I.pipelinePrimaryTopicReference}});Object.defineProperty(w,"PipelineTopicExpression",{enumerable:!0,get:function(){return I.pipelineTopicExpression}});Object.defineProperty(w,"Placeholder",{enumerable:!0,get:function(){return I.placeholder}});Object.defineProperty(w,"PrivateName",{enumerable:!0,get:function(){return I.privateName}});Object.defineProperty(w,"Program",{enumerable:!0,get:function(){return I.program}});Object.defineProperty(w,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return I.qualifiedTypeIdentifier}});Object.defineProperty(w,"RecordExpression",{enumerable:!0,get:function(){return I.recordExpression}});Object.defineProperty(w,"RegExpLiteral",{enumerable:!0,get:function(){return I.regExpLiteral}});Object.defineProperty(w,"RegexLiteral",{enumerable:!0,get:function(){return I.regexLiteral}});Object.defineProperty(w,"RestElement",{enumerable:!0,get:function(){return I.restElement}});Object.defineProperty(w,"RestProperty",{enumerable:!0,get:function(){return I.restProperty}});Object.defineProperty(w,"ReturnStatement",{enumerable:!0,get:function(){return I.returnStatement}});Object.defineProperty(w,"SequenceExpression",{enumerable:!0,get:function(){return I.sequenceExpression}});Object.defineProperty(w,"SpreadElement",{enumerable:!0,get:function(){return I.spreadElement}});Object.defineProperty(w,"SpreadProperty",{enumerable:!0,get:function(){return I.spreadProperty}});Object.defineProperty(w,"StaticBlock",{enumerable:!0,get:function(){return I.staticBlock}});Object.defineProperty(w,"StringLiteral",{enumerable:!0,get:function(){return I.stringLiteral}});Object.defineProperty(w,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return I.stringLiteralTypeAnnotation}});Object.defineProperty(w,"StringTypeAnnotation",{enumerable:!0,get:function(){return I.stringTypeAnnotation}});Object.defineProperty(w,"Super",{enumerable:!0,get:function(){return I.super}});Object.defineProperty(w,"SwitchCase",{enumerable:!0,get:function(){return I.switchCase}});Object.defineProperty(w,"SwitchStatement",{enumerable:!0,get:function(){return I.switchStatement}});Object.defineProperty(w,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return I.symbolTypeAnnotation}});Object.defineProperty(w,"TSAnyKeyword",{enumerable:!0,get:function(){return I.tsAnyKeyword}});Object.defineProperty(w,"TSArrayType",{enumerable:!0,get:function(){return I.tsArrayType}});Object.defineProperty(w,"TSAsExpression",{enumerable:!0,get:function(){return I.tsAsExpression}});Object.defineProperty(w,"TSBigIntKeyword",{enumerable:!0,get:function(){return I.tsBigIntKeyword}});Object.defineProperty(w,"TSBooleanKeyword",{enumerable:!0,get:function(){return I.tsBooleanKeyword}});Object.defineProperty(w,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return I.tsCallSignatureDeclaration}});Object.defineProperty(w,"TSConditionalType",{enumerable:!0,get:function(){return I.tsConditionalType}});Object.defineProperty(w,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return I.tsConstructSignatureDeclaration}});Object.defineProperty(w,"TSConstructorType",{enumerable:!0,get:function(){return I.tsConstructorType}});Object.defineProperty(w,"TSDeclareFunction",{enumerable:!0,get:function(){return I.tsDeclareFunction}});Object.defineProperty(w,"TSDeclareMethod",{enumerable:!0,get:function(){return I.tsDeclareMethod}});Object.defineProperty(w,"TSEnumDeclaration",{enumerable:!0,get:function(){return I.tsEnumDeclaration}});Object.defineProperty(w,"TSEnumMember",{enumerable:!0,get:function(){return I.tsEnumMember}});Object.defineProperty(w,"TSExportAssignment",{enumerable:!0,get:function(){return I.tsExportAssignment}});Object.defineProperty(w,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return I.tsExpressionWithTypeArguments}});Object.defineProperty(w,"TSExternalModuleReference",{enumerable:!0,get:function(){return I.tsExternalModuleReference}});Object.defineProperty(w,"TSFunctionType",{enumerable:!0,get:function(){return I.tsFunctionType}});Object.defineProperty(w,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return I.tsImportEqualsDeclaration}});Object.defineProperty(w,"TSImportType",{enumerable:!0,get:function(){return I.tsImportType}});Object.defineProperty(w,"TSIndexSignature",{enumerable:!0,get:function(){return I.tsIndexSignature}});Object.defineProperty(w,"TSIndexedAccessType",{enumerable:!0,get:function(){return I.tsIndexedAccessType}});Object.defineProperty(w,"TSInferType",{enumerable:!0,get:function(){return I.tsInferType}});Object.defineProperty(w,"TSInstantiationExpression",{enumerable:!0,get:function(){return I.tsInstantiationExpression}});Object.defineProperty(w,"TSInterfaceBody",{enumerable:!0,get:function(){return I.tsInterfaceBody}});Object.defineProperty(w,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return I.tsInterfaceDeclaration}});Object.defineProperty(w,"TSIntersectionType",{enumerable:!0,get:function(){return I.tsIntersectionType}});Object.defineProperty(w,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return I.tsIntrinsicKeyword}});Object.defineProperty(w,"TSLiteralType",{enumerable:!0,get:function(){return I.tsLiteralType}});Object.defineProperty(w,"TSMappedType",{enumerable:!0,get:function(){return I.tsMappedType}});Object.defineProperty(w,"TSMethodSignature",{enumerable:!0,get:function(){return I.tsMethodSignature}});Object.defineProperty(w,"TSModuleBlock",{enumerable:!0,get:function(){return I.tsModuleBlock}});Object.defineProperty(w,"TSModuleDeclaration",{enumerable:!0,get:function(){return I.tsModuleDeclaration}});Object.defineProperty(w,"TSNamedTupleMember",{enumerable:!0,get:function(){return I.tsNamedTupleMember}});Object.defineProperty(w,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return I.tsNamespaceExportDeclaration}});Object.defineProperty(w,"TSNeverKeyword",{enumerable:!0,get:function(){return I.tsNeverKeyword}});Object.defineProperty(w,"TSNonNullExpression",{enumerable:!0,get:function(){return I.tsNonNullExpression}});Object.defineProperty(w,"TSNullKeyword",{enumerable:!0,get:function(){return I.tsNullKeyword}});Object.defineProperty(w,"TSNumberKeyword",{enumerable:!0,get:function(){return I.tsNumberKeyword}});Object.defineProperty(w,"TSObjectKeyword",{enumerable:!0,get:function(){return I.tsObjectKeyword}});Object.defineProperty(w,"TSOptionalType",{enumerable:!0,get:function(){return I.tsOptionalType}});Object.defineProperty(w,"TSParameterProperty",{enumerable:!0,get:function(){return I.tsParameterProperty}});Object.defineProperty(w,"TSParenthesizedType",{enumerable:!0,get:function(){return I.tsParenthesizedType}});Object.defineProperty(w,"TSPropertySignature",{enumerable:!0,get:function(){return I.tsPropertySignature}});Object.defineProperty(w,"TSQualifiedName",{enumerable:!0,get:function(){return I.tsQualifiedName}});Object.defineProperty(w,"TSRestType",{enumerable:!0,get:function(){return I.tsRestType}});Object.defineProperty(w,"TSSatisfiesExpression",{enumerable:!0,get:function(){return I.tsSatisfiesExpression}});Object.defineProperty(w,"TSStringKeyword",{enumerable:!0,get:function(){return I.tsStringKeyword}});Object.defineProperty(w,"TSSymbolKeyword",{enumerable:!0,get:function(){return I.tsSymbolKeyword}});Object.defineProperty(w,"TSThisType",{enumerable:!0,get:function(){return I.tsThisType}});Object.defineProperty(w,"TSTupleType",{enumerable:!0,get:function(){return I.tsTupleType}});Object.defineProperty(w,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return I.tsTypeAliasDeclaration}});Object.defineProperty(w,"TSTypeAnnotation",{enumerable:!0,get:function(){return I.tsTypeAnnotation}});Object.defineProperty(w,"TSTypeAssertion",{enumerable:!0,get:function(){return I.tsTypeAssertion}});Object.defineProperty(w,"TSTypeLiteral",{enumerable:!0,get:function(){return I.tsTypeLiteral}});Object.defineProperty(w,"TSTypeOperator",{enumerable:!0,get:function(){return I.tsTypeOperator}});Object.defineProperty(w,"TSTypeParameter",{enumerable:!0,get:function(){return I.tsTypeParameter}});Object.defineProperty(w,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return I.tsTypeParameterDeclaration}});Object.defineProperty(w,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return I.tsTypeParameterInstantiation}});Object.defineProperty(w,"TSTypePredicate",{enumerable:!0,get:function(){return I.tsTypePredicate}});Object.defineProperty(w,"TSTypeQuery",{enumerable:!0,get:function(){return I.tsTypeQuery}});Object.defineProperty(w,"TSTypeReference",{enumerable:!0,get:function(){return I.tsTypeReference}});Object.defineProperty(w,"TSUndefinedKeyword",{enumerable:!0,get:function(){return I.tsUndefinedKeyword}});Object.defineProperty(w,"TSUnionType",{enumerable:!0,get:function(){return I.tsUnionType}});Object.defineProperty(w,"TSUnknownKeyword",{enumerable:!0,get:function(){return I.tsUnknownKeyword}});Object.defineProperty(w,"TSVoidKeyword",{enumerable:!0,get:function(){return I.tsVoidKeyword}});Object.defineProperty(w,"TaggedTemplateExpression",{enumerable:!0,get:function(){return I.taggedTemplateExpression}});Object.defineProperty(w,"TemplateElement",{enumerable:!0,get:function(){return I.templateElement}});Object.defineProperty(w,"TemplateLiteral",{enumerable:!0,get:function(){return I.templateLiteral}});Object.defineProperty(w,"ThisExpression",{enumerable:!0,get:function(){return I.thisExpression}});Object.defineProperty(w,"ThisTypeAnnotation",{enumerable:!0,get:function(){return I.thisTypeAnnotation}});Object.defineProperty(w,"ThrowStatement",{enumerable:!0,get:function(){return I.throwStatement}});Object.defineProperty(w,"TopicReference",{enumerable:!0,get:function(){return I.topicReference}});Object.defineProperty(w,"TryStatement",{enumerable:!0,get:function(){return I.tryStatement}});Object.defineProperty(w,"TupleExpression",{enumerable:!0,get:function(){return I.tupleExpression}});Object.defineProperty(w,"TupleTypeAnnotation",{enumerable:!0,get:function(){return I.tupleTypeAnnotation}});Object.defineProperty(w,"TypeAlias",{enumerable:!0,get:function(){return I.typeAlias}});Object.defineProperty(w,"TypeAnnotation",{enumerable:!0,get:function(){return I.typeAnnotation}});Object.defineProperty(w,"TypeCastExpression",{enumerable:!0,get:function(){return I.typeCastExpression}});Object.defineProperty(w,"TypeParameter",{enumerable:!0,get:function(){return I.typeParameter}});Object.defineProperty(w,"TypeParameterDeclaration",{enumerable:!0,get:function(){return I.typeParameterDeclaration}});Object.defineProperty(w,"TypeParameterInstantiation",{enumerable:!0,get:function(){return I.typeParameterInstantiation}});Object.defineProperty(w,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return I.typeofTypeAnnotation}});Object.defineProperty(w,"UnaryExpression",{enumerable:!0,get:function(){return I.unaryExpression}});Object.defineProperty(w,"UnionTypeAnnotation",{enumerable:!0,get:function(){return I.unionTypeAnnotation}});Object.defineProperty(w,"UpdateExpression",{enumerable:!0,get:function(){return I.updateExpression}});Object.defineProperty(w,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return I.v8IntrinsicIdentifier}});Object.defineProperty(w,"VariableDeclaration",{enumerable:!0,get:function(){return I.variableDeclaration}});Object.defineProperty(w,"VariableDeclarator",{enumerable:!0,get:function(){return I.variableDeclarator}});Object.defineProperty(w,"Variance",{enumerable:!0,get:function(){return I.variance}});Object.defineProperty(w,"VoidTypeAnnotation",{enumerable:!0,get:function(){return I.voidTypeAnnotation}});Object.defineProperty(w,"WhileStatement",{enumerable:!0,get:function(){return I.whileStatement}});Object.defineProperty(w,"WithStatement",{enumerable:!0,get:function(){return I.withStatement}});Object.defineProperty(w,"YieldExpression",{enumerable:!0,get:function(){return I.yieldExpression}});var I=ct()});var ul=L(ol=>{"use strict";y();m();Object.defineProperty(ol,"__esModule",{value:!0});ol.buildUndefinedNode=f6;var Zm=ct();function f6(){return(0,Zm.unaryExpression)("void",(0,Zm.numericLiteral)(0),!0)}});var Pr=L(ll=>{"use strict";y();m();Object.defineProperty(ll,"__esModule",{value:!0});ll.default=h6;var e0=Pt(),t0=Re(),{hasOwn:ar}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function r0(t,e,r,i){return t&&typeof t.type=="string"?s0(t,e,r,i):t}function i0(t,e,r,i){return Array.isArray(t)?t.map(s=>r0(s,e,r,i)):r0(t,e,r,i)}function h6(t,e=!0,r=!1){return s0(t,e,r,new Map)}function s0(t,e=!0,r=!1,i){if(!t)return t;let{type:s}=t,n={type:t.type};if((0,t0.isIdentifier)(t))n.name=t.name,ar(t,"optional")&&typeof t.optional=="boolean"&&(n.optional=t.optional),ar(t,"typeAnnotation")&&(n.typeAnnotation=e?i0(t.typeAnnotation,!0,r,i):t.typeAnnotation);else if(ar(e0.NODE_FIELDS,s))for(let o of Object.keys(e0.NODE_FIELDS[s]))ar(t,o)&&(e?n[o]=(0,t0.isFile)(t)&&o==="comments"?ra(t.comments,e,r,i):i0(t[o],!0,r,i):n[o]=t[o]);else throw new Error(`Unknown node type: "${s}"`);return ar(t,"loc")&&(r?n.loc=null:n.loc=t.loc),ar(t,"leadingComments")&&(n.leadingComments=ra(t.leadingComments,e,r,i)),ar(t,"innerComments")&&(n.innerComments=ra(t.innerComments,e,r,i)),ar(t,"trailingComments")&&(n.trailingComments=ra(t.trailingComments,e,r,i)),ar(t,"extra")&&(n.extra=Object.assign({},t.extra)),n}function ra(t,e,r,i){return!t||!e?t:t.map(s=>{let n=i.get(s);if(n)return n;let{type:o,value:u,loc:c}=s,p={type:o,value:u,loc:c};return r&&(p.loc=null),i.set(s,p),p})}});var n0=L(cl=>{"use strict";y();m();Object.defineProperty(cl,"__esModule",{value:!0});cl.default=y6;var d6=Pr();function y6(t){return(0,d6.default)(t,!1)}});var a0=L(pl=>{"use strict";y();m();Object.defineProperty(pl,"__esModule",{value:!0});pl.default=T6;var m6=Pr();function T6(t){return(0,m6.default)(t)}});var o0=L(fl=>{"use strict";y();m();Object.defineProperty(fl,"__esModule",{value:!0});fl.default=b6;var x6=Pr();function b6(t){return(0,x6.default)(t,!0,!0)}});var u0=L(hl=>{"use strict";y();m();Object.defineProperty(hl,"__esModule",{value:!0});hl.default=S6;var g6=Pr();function S6(t){return(0,g6.default)(t,!1,!0)}});var yl=L(dl=>{"use strict";y();m();Object.defineProperty(dl,"__esModule",{value:!0});dl.default=E6;function E6(t,e,r){if(!r||!t)return t;let i=`${e}Comments`;return t[i]?e==="leading"?t[i]=r.concat(t[i]):t[i].push(...r):t[i]=r,t}});var l0=L(ml=>{"use strict";y();m();Object.defineProperty(ml,"__esModule",{value:!0});ml.default=P6;var v6=yl();function P6(t,e,r,i){return(0,v6.default)(t,e,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var ia=L(Tl=>{"use strict";y();m();Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=A6;function A6(t,e,r){e&&r&&(e[t]=Array.from(new Set([].concat(e[t],r[t]).filter(Boolean))))}});var bl=L(xl=>{"use strict";y();m();Object.defineProperty(xl,"__esModule",{value:!0});xl.default=I6;var w6=ia();function I6(t,e){(0,w6.default)("innerComments",t,e)}});var Sl=L(gl=>{"use strict";y();m();Object.defineProperty(gl,"__esModule",{value:!0});gl.default=N6;var C6=ia();function N6(t,e){(0,C6.default)("leadingComments",t,e)}});var vl=L(El=>{"use strict";y();m();Object.defineProperty(El,"__esModule",{value:!0});El.default=O6;var _6=ia();function O6(t,e){(0,_6.default)("trailingComments",t,e)}});var Al=L(Pl=>{"use strict";y();m();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=M6;var k6=vl(),D6=Sl(),L6=bl();function M6(t,e){return(0,k6.default)(t,e),(0,D6.default)(t,e),(0,L6.default)(t,e),t}});var c0=L(wl=>{"use strict";y();m();Object.defineProperty(wl,"__esModule",{value:!0});wl.default=B6;var F6=Sr();function B6(t){return F6.COMMENT_KEYS.forEach(e=>{t[e]=null}),t}});var p0=L(U=>{"use strict";y();m();Object.defineProperty(U,"__esModule",{value:!0});U.WHILE_TYPES=U.USERWHITESPACABLE_TYPES=U.UNARYLIKE_TYPES=U.TYPESCRIPT_TYPES=U.TSTYPE_TYPES=U.TSTYPEELEMENT_TYPES=U.TSENTITYNAME_TYPES=U.TSBASETYPE_TYPES=U.TERMINATORLESS_TYPES=U.STATEMENT_TYPES=U.STANDARDIZED_TYPES=U.SCOPABLE_TYPES=U.PUREISH_TYPES=U.PROPERTY_TYPES=U.PRIVATE_TYPES=U.PATTERN_TYPES=U.PATTERNLIKE_TYPES=U.OBJECTMEMBER_TYPES=U.MODULESPECIFIER_TYPES=U.MODULEDECLARATION_TYPES=U.MISCELLANEOUS_TYPES=U.METHOD_TYPES=U.LVAL_TYPES=U.LOOP_TYPES=U.LITERAL_TYPES=U.JSX_TYPES=U.IMPORTOREXPORTDECLARATION_TYPES=U.IMMUTABLE_TYPES=U.FUNCTION_TYPES=U.FUNCTIONPARENT_TYPES=U.FOR_TYPES=U.FORXSTATEMENT_TYPES=U.FLOW_TYPES=U.FLOWTYPE_TYPES=U.FLOWPREDICATE_TYPES=U.FLOWDECLARATION_TYPES=U.FLOWBASEANNOTATION_TYPES=U.EXPRESSION_TYPES=U.EXPRESSIONWRAPPER_TYPES=U.EXPORTDECLARATION_TYPES=U.ENUMMEMBER_TYPES=U.ENUMBODY_TYPES=U.DECLARATION_TYPES=U.CONDITIONAL_TYPES=U.COMPLETIONSTATEMENT_TYPES=U.CLASS_TYPES=U.BLOCK_TYPES=U.BLOCKPARENT_TYPES=U.BINARY_TYPES=U.ACCESSOR_TYPES=void 0;var se=Pt(),OK=U.STANDARDIZED_TYPES=se.FLIPPED_ALIAS_KEYS.Standardized,kK=U.EXPRESSION_TYPES=se.FLIPPED_ALIAS_KEYS.Expression,DK=U.BINARY_TYPES=se.FLIPPED_ALIAS_KEYS.Binary,LK=U.SCOPABLE_TYPES=se.FLIPPED_ALIAS_KEYS.Scopable,MK=U.BLOCKPARENT_TYPES=se.FLIPPED_ALIAS_KEYS.BlockParent,FK=U.BLOCK_TYPES=se.FLIPPED_ALIAS_KEYS.Block,BK=U.STATEMENT_TYPES=se.FLIPPED_ALIAS_KEYS.Statement,RK=U.TERMINATORLESS_TYPES=se.FLIPPED_ALIAS_KEYS.Terminatorless,jK=U.COMPLETIONSTATEMENT_TYPES=se.FLIPPED_ALIAS_KEYS.CompletionStatement,UK=U.CONDITIONAL_TYPES=se.FLIPPED_ALIAS_KEYS.Conditional,VK=U.LOOP_TYPES=se.FLIPPED_ALIAS_KEYS.Loop,qK=U.WHILE_TYPES=se.FLIPPED_ALIAS_KEYS.While,KK=U.EXPRESSIONWRAPPER_TYPES=se.FLIPPED_ALIAS_KEYS.ExpressionWrapper,YK=U.FOR_TYPES=se.FLIPPED_ALIAS_KEYS.For,XK=U.FORXSTATEMENT_TYPES=se.FLIPPED_ALIAS_KEYS.ForXStatement,WK=U.FUNCTION_TYPES=se.FLIPPED_ALIAS_KEYS.Function,JK=U.FUNCTIONPARENT_TYPES=se.FLIPPED_ALIAS_KEYS.FunctionParent,zK=U.PUREISH_TYPES=se.FLIPPED_ALIAS_KEYS.Pureish,$K=U.DECLARATION_TYPES=se.FLIPPED_ALIAS_KEYS.Declaration,HK=U.PATTERNLIKE_TYPES=se.FLIPPED_ALIAS_KEYS.PatternLike,GK=U.LVAL_TYPES=se.FLIPPED_ALIAS_KEYS.LVal,QK=U.TSENTITYNAME_TYPES=se.FLIPPED_ALIAS_KEYS.TSEntityName,ZK=U.LITERAL_TYPES=se.FLIPPED_ALIAS_KEYS.Literal,eY=U.IMMUTABLE_TYPES=se.FLIPPED_ALIAS_KEYS.Immutable,tY=U.USERWHITESPACABLE_TYPES=se.FLIPPED_ALIAS_KEYS.UserWhitespacable,rY=U.METHOD_TYPES=se.FLIPPED_ALIAS_KEYS.Method,iY=U.OBJECTMEMBER_TYPES=se.FLIPPED_ALIAS_KEYS.ObjectMember,sY=U.PROPERTY_TYPES=se.FLIPPED_ALIAS_KEYS.Property,nY=U.UNARYLIKE_TYPES=se.FLIPPED_ALIAS_KEYS.UnaryLike,aY=U.PATTERN_TYPES=se.FLIPPED_ALIAS_KEYS.Pattern,oY=U.CLASS_TYPES=se.FLIPPED_ALIAS_KEYS.Class,R6=U.IMPORTOREXPORTDECLARATION_TYPES=se.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,uY=U.EXPORTDECLARATION_TYPES=se.FLIPPED_ALIAS_KEYS.ExportDeclaration,lY=U.MODULESPECIFIER_TYPES=se.FLIPPED_ALIAS_KEYS.ModuleSpecifier,cY=U.ACCESSOR_TYPES=se.FLIPPED_ALIAS_KEYS.Accessor,pY=U.PRIVATE_TYPES=se.FLIPPED_ALIAS_KEYS.Private,fY=U.FLOW_TYPES=se.FLIPPED_ALIAS_KEYS.Flow,hY=U.FLOWTYPE_TYPES=se.FLIPPED_ALIAS_KEYS.FlowType,dY=U.FLOWBASEANNOTATION_TYPES=se.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,yY=U.FLOWDECLARATION_TYPES=se.FLIPPED_ALIAS_KEYS.FlowDeclaration,mY=U.FLOWPREDICATE_TYPES=se.FLIPPED_ALIAS_KEYS.FlowPredicate,TY=U.ENUMBODY_TYPES=se.FLIPPED_ALIAS_KEYS.EnumBody,xY=U.ENUMMEMBER_TYPES=se.FLIPPED_ALIAS_KEYS.EnumMember,bY=U.JSX_TYPES=se.FLIPPED_ALIAS_KEYS.JSX,gY=U.MISCELLANEOUS_TYPES=se.FLIPPED_ALIAS_KEYS.Miscellaneous,SY=U.TYPESCRIPT_TYPES=se.FLIPPED_ALIAS_KEYS.TypeScript,EY=U.TSTYPEELEMENT_TYPES=se.FLIPPED_ALIAS_KEYS.TSTypeElement,vY=U.TSTYPE_TYPES=se.FLIPPED_ALIAS_KEYS.TSType,PY=U.TSBASETYPE_TYPES=se.FLIPPED_ALIAS_KEYS.TSBaseType,AY=U.MODULEDECLARATION_TYPES=R6});var Nl=L(Cl=>{"use strict";y();m();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=j6;var sa=Re(),Il=ct();function j6(t,e){if((0,sa.isBlockStatement)(t))return t;let r=[];return(0,sa.isEmptyStatement)(t)?r=[]:((0,sa.isStatement)(t)||((0,sa.isFunction)(e)?t=(0,Il.returnStatement)(t):t=(0,Il.expressionStatement)(t)),r=[t]),(0,Il.blockStatement)(r)}});var f0=L(_l=>{"use strict";y();m();Object.defineProperty(_l,"__esModule",{value:!0});_l.default=V6;var U6=Nl();function V6(t,e="body"){let r=(0,U6.default)(t[e],t);return t[e]=r,r}});var kl=L(Ol=>{"use strict";y();m();Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=Y6;var q6=Mi(),K6=Yn();function Y6(t){t=t+"";let e="";for(let r of t)e+=(0,K6.isIdentifierChar)(r.codePointAt(0))?r:"-";return e=e.replace(/^[-0-9]+/,""),e=e.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,q6.default)(e)||(e=`_${e}`),e||"_"}});var h0=L(Dl=>{"use strict";y();m();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=W6;var X6=kl();function W6(t){return t=(0,X6.default)(t),(t==="eval"||t==="arguments")&&(t="_"+t),t}});var d0=L(Ll=>{"use strict";y();m();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=$6;var J6=Re(),z6=ct();function $6(t,e=t.key||t.property){return!t.computed&&(0,J6.isIdentifier)(e)&&(e=(0,z6.stringLiteral)(e.name)),e}});var y0=L(na=>{"use strict";y();m();Object.defineProperty(na,"__esModule",{value:!0});na.default=void 0;var Ns=Re(),YY=na.default=H6;function H6(t){if((0,Ns.isExpressionStatement)(t)&&(t=t.expression),(0,Ns.isExpression)(t))return t;if((0,Ns.isClass)(t)?t.type="ClassExpression":(0,Ns.isFunction)(t)&&(t.type="FunctionExpression"),!(0,Ns.isExpression)(t))throw new Error(`cannot turn ${t.type} to an expression`);return t}});var Bl=L(Fl=>{"use strict";y();m();Object.defineProperty(Fl,"__esModule",{value:!0});Fl.default=Ml;var G6=Pt();function Ml(t,e,r){if(!t)return;let i=G6.VISITOR_KEYS[t.type];if(i){r=r||{},e(t,r);for(let s of i){let n=t[s];if(Array.isArray(n))for(let o of n)Ml(o,e,r);else Ml(n,e,r)}}}});var jl=L(Rl=>{"use strict";y();m();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=eB;var Q6=Sr(),m0=["tokens","start","end","loc","raw","rawValue"],Z6=[...Q6.COMMENT_KEYS,"comments",...m0];function eB(t,e={}){let r=e.preserveComments?m0:Z6;for(let s of r)t[s]!=null&&(t[s]=void 0);for(let s of Object.keys(t))s[0]==="_"&&t[s]!=null&&(t[s]=void 0);let i=Object.getOwnPropertySymbols(t);for(let s of i)t[s]=null}});var Vl=L(Ul=>{"use strict";y();m();Object.defineProperty(Ul,"__esModule",{value:!0});Ul.default=iB;var tB=Bl(),rB=jl();function iB(t,e){return(0,tB.default)(t,rB.default,e),t}});var x0=L(ql=>{"use strict";y();m();Object.defineProperty(ql,"__esModule",{value:!0});ql.default=ri;var T0=Re(),sB=Pr(),nB=Vl();function ri(t,e=t.key){let r;return t.kind==="method"?ri.increment()+"":((0,T0.isIdentifier)(e)?r=e.name:(0,T0.isStringLiteral)(e)?r=JSON.stringify(e.value):r=JSON.stringify((0,nB.default)((0,sB.default)(e))),t.computed&&(r=`[${r}]`),t.static&&(r=`static:${r}`),r)}ri.uid=0;ri.increment=function(){return ri.uid>=Number.MAX_SAFE_INTEGER?ri.uid=0:ri.uid++}});var b0=L(oa=>{"use strict";y();m();Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var aa=Re(),aB=ct(),aX=oa.default=oB;function oB(t,e){if((0,aa.isStatement)(t))return t;let r=!1,i;if((0,aa.isClass)(t))r=!0,i="ClassDeclaration";else if((0,aa.isFunction)(t))r=!0,i="FunctionDeclaration";else if((0,aa.isAssignmentExpression)(t))return(0,aB.expressionStatement)(t);if(r&&!t.id&&(i=!1),!i){if(e)return!1;throw new Error(`cannot turn ${t.type} to a statement`)}return t.type=i,t}});var g0=L(ua=>{"use strict";y();m();Object.defineProperty(ua,"__esModule",{value:!0});ua.default=void 0;var uB=Mi(),Ze=ct(),cX=ua.default=Kl,lB=Function.call.bind(Object.prototype.toString);function cB(t){return lB(t)==="[object RegExp]"}function pB(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null}function Kl(t){if(t===void 0)return(0,Ze.identifier)("undefined");if(t===!0||t===!1)return(0,Ze.booleanLiteral)(t);if(t===null)return(0,Ze.nullLiteral)();if(typeof t=="string")return(0,Ze.stringLiteral)(t);if(typeof t=="number"){let e;if(Number.isFinite(t))e=(0,Ze.numericLiteral)(Math.abs(t));else{let r;Number.isNaN(t)?r=(0,Ze.numericLiteral)(0):r=(0,Ze.numericLiteral)(1),e=(0,Ze.binaryExpression)("/",r,(0,Ze.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,Ze.unaryExpression)("-",e)),e}if(cB(t)){let e=t.source,r=t.toString().match(/\/([a-z]+|)$/)[1];return(0,Ze.regExpLiteral)(e,r)}if(Array.isArray(t))return(0,Ze.arrayExpression)(t.map(Kl));if(pB(t)){let e=[];for(let r of Object.keys(t)){let i;(0,uB.default)(r)?i=(0,Ze.identifier)(r):i=(0,Ze.stringLiteral)(r),e.push((0,Ze.objectProperty)(i,Kl(t[r])))}return(0,Ze.objectExpression)(e)}throw new Error("don't know how to turn this value into a node")}});var S0=L(Yl=>{"use strict";y();m();Object.defineProperty(Yl,"__esModule",{value:!0});Yl.default=hB;var fB=ct();function hB(t,e,r=!1){return t.object=(0,fB.memberExpression)(t.object,t.property,t.computed),t.property=e,t.computed=!!r,t}});var v0=L(Xl=>{"use strict";y();m();Object.defineProperty(Xl,"__esModule",{value:!0});Xl.default=yB;var E0=Sr(),dB=Al();function yB(t,e){if(!t||!e)return t;for(let r of E0.INHERIT_KEYS.optional)t[r]==null&&(t[r]=e[r]);for(let r of Object.keys(e))r[0]==="_"&&r!=="__clone"&&(t[r]=e[r]);for(let r of E0.INHERIT_KEYS.force)t[r]=e[r];return(0,dB.default)(t,e),t}});var P0=L(Wl=>{"use strict";y();m();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=xB;var mB=ct(),TB=Yt();function xB(t,e){if((0,TB.isSuper)(t.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return t.object=(0,mB.memberExpression)(e,t.object),t}});var _s=L(zl=>{"use strict";y();m();Object.defineProperty(zl,"__esModule",{value:!0});zl.default=Jl;var or=Re();function Jl(t,e,r,i){let s=[].concat(t),n=Object.create(null);for(;s.length;){let o=s.shift();if(!o||i&&((0,or.isAssignmentExpression)(o)||(0,or.isUnaryExpression)(o)||(0,or.isUpdateExpression)(o)))continue;if((0,or.isIdentifier)(o)){e?(n[o.name]=n[o.name]||[]).push(o):n[o.name]=o;continue}if((0,or.isExportDeclaration)(o)&&!(0,or.isExportAllDeclaration)(o)){(0,or.isDeclaration)(o.declaration)&&s.push(o.declaration);continue}if(r){if((0,or.isFunctionDeclaration)(o)){s.push(o.id);continue}if((0,or.isFunctionExpression)(o))continue}let u=Jl.keys[o.type];if(u)for(let c=0;c<u.length;c++){let p=u[c],f=o[p];f&&(Array.isArray(f)?s.push(...f):s.push(f))}}return n}Jl.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]}});var A0=L(la=>{"use strict";y();m();Object.defineProperty(la,"__esModule",{value:!0});la.default=void 0;var bB=_s(),wX=la.default=gB;function gB(t,e){return(0,bB.default)(t,e,!0)}});var w0=L(Hl=>{"use strict";y();m();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.default=EB;var SB=Pt();function EB(t,e,r){typeof e=="function"&&(e={enter:e});let{enter:i,exit:s}=e;$l(t,i,s,r,[])}function $l(t,e,r,i,s){let n=SB.VISITOR_KEYS[t.type];if(n){e&&e(t,s,i);for(let o of n){let u=t[o];if(Array.isArray(u))for(let c=0;c<u.length;c++){let p=u[c];p&&(s.push({node:t,key:o,index:c}),$l(p,e,r,i,s),s.pop())}else u&&(s.push({node:t,key:o}),$l(u,e,r,i,s),s.pop())}r&&r(t,s,i)}}});var I0=L(Gl=>{"use strict";y();m();Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=PB;var vB=_s();function PB(t,e,r){if(r&&t.type==="Identifier"&&e.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=vB.default.keys[e.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],o=e[n];if(Array.isArray(o)){if(o.indexOf(t)>=0)return!0}else if(o===t)return!0}return!1}});var Zl=L(Ql=>{"use strict";y();m();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=IB;var AB=Re(),wB=Sr();function IB(t){return(0,AB.isVariableDeclaration)(t)&&(t.kind!=="var"||t[wB.BLOCK_SCOPED_SYMBOL])}});var N0=L(ec=>{"use strict";y();m();Object.defineProperty(ec,"__esModule",{value:!0});ec.default=NB;var C0=Re(),CB=Zl();function NB(t){return(0,C0.isFunctionDeclaration)(t)||(0,C0.isClassDeclaration)(t)||(0,CB.default)(t)}});var _0=L(tc=>{"use strict";y();m();Object.defineProperty(tc,"__esModule",{value:!0});tc.default=kB;var _B=Kn(),OB=Re();function kB(t){return(0,_B.default)(t.type,"Immutable")?!0:(0,OB.isIdentifier)(t)?t.name==="undefined":!1}});var k0=L(ic=>{"use strict";y();m();Object.defineProperty(ic,"__esModule",{value:!0});ic.default=rc;var O0=Pt();function rc(t,e){if(typeof t!="object"||typeof e!="object"||t==null||e==null)return t===e;if(t.type!==e.type)return!1;let r=Object.keys(O0.NODE_FIELDS[t.type]||t.type),i=O0.VISITOR_KEYS[t.type];for(let s of r){let n=t[s],o=e[s];if(typeof n!=typeof o)return!1;if(!(n==null&&o==null)){if(n==null||o==null)return!1;if(Array.isArray(n)){if(!Array.isArray(o)||n.length!==o.length)return!1;for(let u=0;u<n.length;u++)if(!rc(n[u],o[u]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let u of Object.keys(n))if(n[u]!==o[u])return!1;continue}if(!rc(n,o))return!1}}return!0}});var D0=L(sc=>{"use strict";y();m();Object.defineProperty(sc,"__esModule",{value:!0});sc.default=DB;function DB(t,e,r){switch(e.type){case"MemberExpression":case"OptionalMemberExpression":return e.property===t?!!e.computed:e.object===t;case"JSXMemberExpression":return e.object===t;case"VariableDeclarator":return e.init===t;case"ArrowFunctionExpression":return e.body===t;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return e.key===t?!!e.computed:!1;case"ObjectProperty":return e.key===t?!!e.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return e.key===t?!!e.computed:!0;case"ClassPrivateProperty":return e.key!==t;case"ClassDeclaration":case"ClassExpression":return e.superClass===t;case"AssignmentExpression":return e.right===t;case"AssignmentPattern":return e.right===t;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:e.local===t;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return e.key!==t;case"TSEnumMember":return e.id!==t;case"TSPropertySignature":return e.key===t?!!e.computed:!0}return!0}});var L0=L(nc=>{"use strict";y();m();Object.defineProperty(nc,"__esModule",{value:!0});nc.default=LB;var ii=Re();function LB(t,e){return(0,ii.isBlockStatement)(t)&&((0,ii.isFunction)(e)||(0,ii.isCatchClause)(e))?!1:(0,ii.isPattern)(t)&&((0,ii.isFunction)(e)||(0,ii.isCatchClause)(e))?!0:(0,ii.isScopable)(t)}});var F0=L(ac=>{"use strict";y();m();Object.defineProperty(ac,"__esModule",{value:!0});ac.default=MB;var M0=Re();function MB(t){return(0,M0.isImportDefaultSpecifier)(t)||(0,M0.isIdentifier)(t.imported||t.exported,{name:"default"})}});var B0=L(oc=>{"use strict";y();m();Object.defineProperty(oc,"__esModule",{value:!0});oc.default=RB;var FB=Mi(),BB=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function RB(t){return(0,FB.default)(t)&&!BB.has(t)}});var R0=L(uc=>{"use strict";y();m();Object.defineProperty(uc,"__esModule",{value:!0});uc.default=VB;var jB=Re(),UB=Sr();function VB(t){return(0,jB.isVariableDeclaration)(t,{kind:"var"})&&!t[UB.BLOCK_SCOPED_SYMBOL]}});var j0=L(pc=>{"use strict";y();m();Object.defineProperty(pc,"__esModule",{value:!0});pc.default=ca;var qB=_s(),si=Re(),lc=ct(),cc=ul(),KB=Pr();function ca(t,e){let r=[],i=!0;for(let s of t)if((0,si.isEmptyStatement)(s)||(i=!1),(0,si.isExpression)(s))r.push(s);else if((0,si.isExpressionStatement)(s))r.push(s.expression);else if((0,si.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let o=(0,qB.default)(n);for(let u of Object.keys(o))e.push({kind:s.kind,id:(0,KB.default)(o[u])});n.init&&r.push((0,lc.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,si.isIfStatement)(s)){let n=s.consequent?ca([s.consequent],e):(0,cc.buildUndefinedNode)(),o=s.alternate?ca([s.alternate],e):(0,cc.buildUndefinedNode)();if(!n||!o)return;r.push((0,lc.conditionalExpression)(s.test,n,o))}else if((0,si.isBlockStatement)(s)){let n=ca(s.body,e);if(!n)return;r.push(n)}else if((0,si.isEmptyStatement)(s))t.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,cc.buildUndefinedNode)()),r.length===1?r[0]:(0,lc.sequenceExpression)(r)}});var U0=L(fc=>{"use strict";y();m();Object.defineProperty(fc,"__esModule",{value:!0});fc.default=XB;var YB=j0();function XB(t,e){if(!(t!=null&&t.length))return;let r=[],i=(0,YB.default)(t,r);if(i){for(let s of r)e.push(s);return i}}});var Yt=L(Y=>{"use strict";y();m();Object.defineProperty(Y,"__esModule",{value:!0});var ur={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(Y,"__internal__deprecationWarning",{enumerable:!0,get:function(){return J4.default}});Object.defineProperty(Y,"addComment",{enumerable:!0,get:function(){return i4.default}});Object.defineProperty(Y,"addComments",{enumerable:!0,get:function(){return s4.default}});Object.defineProperty(Y,"appendToMemberExpression",{enumerable:!0,get:function(){return b4.default}});Object.defineProperty(Y,"assertNode",{enumerable:!0,get:function(){return $B.default}});Object.defineProperty(Y,"buildMatchMemberExpression",{enumerable:!0,get:function(){return W4.default}});Object.defineProperty(Y,"clone",{enumerable:!0,get:function(){return ZB.default}});Object.defineProperty(Y,"cloneDeep",{enumerable:!0,get:function(){return e4.default}});Object.defineProperty(Y,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return t4.default}});Object.defineProperty(Y,"cloneNode",{enumerable:!0,get:function(){return QB.default}});Object.defineProperty(Y,"cloneWithoutLoc",{enumerable:!0,get:function(){return r4.default}});Object.defineProperty(Y,"createFlowUnionType",{enumerable:!0,get:function(){return V0.default}});Object.defineProperty(Y,"createTSUnionType",{enumerable:!0,get:function(){return GB.default}});Object.defineProperty(Y,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return HB.default}});Object.defineProperty(Y,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return V0.default}});Object.defineProperty(Y,"ensureBlock",{enumerable:!0,get:function(){return c4.default}});Object.defineProperty(Y,"getBindingIdentifiers",{enumerable:!0,get:function(){return A4.default}});Object.defineProperty(Y,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return w4.default}});Object.defineProperty(Y,"inheritInnerComments",{enumerable:!0,get:function(){return n4.default}});Object.defineProperty(Y,"inheritLeadingComments",{enumerable:!0,get:function(){return a4.default}});Object.defineProperty(Y,"inheritTrailingComments",{enumerable:!0,get:function(){return u4.default}});Object.defineProperty(Y,"inherits",{enumerable:!0,get:function(){return g4.default}});Object.defineProperty(Y,"inheritsComments",{enumerable:!0,get:function(){return o4.default}});Object.defineProperty(Y,"is",{enumerable:!0,get:function(){return N4.default}});Object.defineProperty(Y,"isBinding",{enumerable:!0,get:function(){return _4.default}});Object.defineProperty(Y,"isBlockScoped",{enumerable:!0,get:function(){return O4.default}});Object.defineProperty(Y,"isImmutable",{enumerable:!0,get:function(){return k4.default}});Object.defineProperty(Y,"isLet",{enumerable:!0,get:function(){return D4.default}});Object.defineProperty(Y,"isNode",{enumerable:!0,get:function(){return L4.default}});Object.defineProperty(Y,"isNodesEquivalent",{enumerable:!0,get:function(){return M4.default}});Object.defineProperty(Y,"isPlaceholderType",{enumerable:!0,get:function(){return F4.default}});Object.defineProperty(Y,"isReferenced",{enumerable:!0,get:function(){return B4.default}});Object.defineProperty(Y,"isScope",{enumerable:!0,get:function(){return R4.default}});Object.defineProperty(Y,"isSpecifierDefault",{enumerable:!0,get:function(){return j4.default}});Object.defineProperty(Y,"isType",{enumerable:!0,get:function(){return U4.default}});Object.defineProperty(Y,"isValidES3Identifier",{enumerable:!0,get:function(){return V4.default}});Object.defineProperty(Y,"isValidIdentifier",{enumerable:!0,get:function(){return q4.default}});Object.defineProperty(Y,"isVar",{enumerable:!0,get:function(){return K4.default}});Object.defineProperty(Y,"matchesPattern",{enumerable:!0,get:function(){return Y4.default}});Object.defineProperty(Y,"prependToMemberExpression",{enumerable:!0,get:function(){return S4.default}});Y.react=void 0;Object.defineProperty(Y,"removeComments",{enumerable:!0,get:function(){return l4.default}});Object.defineProperty(Y,"removeProperties",{enumerable:!0,get:function(){return E4.default}});Object.defineProperty(Y,"removePropertiesDeep",{enumerable:!0,get:function(){return v4.default}});Object.defineProperty(Y,"removeTypeDuplicates",{enumerable:!0,get:function(){return P4.default}});Object.defineProperty(Y,"shallowEqual",{enumerable:!0,get:function(){return C4.default}});Object.defineProperty(Y,"toBindingIdentifierName",{enumerable:!0,get:function(){return p4.default}});Object.defineProperty(Y,"toBlock",{enumerable:!0,get:function(){return f4.default}});Object.defineProperty(Y,"toComputedKey",{enumerable:!0,get:function(){return h4.default}});Object.defineProperty(Y,"toExpression",{enumerable:!0,get:function(){return d4.default}});Object.defineProperty(Y,"toIdentifier",{enumerable:!0,get:function(){return y4.default}});Object.defineProperty(Y,"toKeyAlias",{enumerable:!0,get:function(){return m4.default}});Object.defineProperty(Y,"toStatement",{enumerable:!0,get:function(){return T4.default}});Object.defineProperty(Y,"traverse",{enumerable:!0,get:function(){return pa.default}});Object.defineProperty(Y,"traverseFast",{enumerable:!0,get:function(){return I4.default}});Object.defineProperty(Y,"validate",{enumerable:!0,get:function(){return X4.default}});Object.defineProperty(Y,"valueToNode",{enumerable:!0,get:function(){return x4.default}});var WB=Wy(),JB=Jy(),zB=Vm(),$B=qm(),hc=Km();Object.keys(hc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===hc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return hc[t]}})});var HB=Ym(),V0=Jm(),GB=Gm(),dc=ct();Object.keys(dc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===dc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return dc[t]}})});var yc=Qm();Object.keys(yc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===yc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return yc[t]}})});var mc=ul();Object.keys(mc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===mc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return mc[t]}})});var QB=Pr(),ZB=n0(),e4=a0(),t4=o0(),r4=u0(),i4=l0(),s4=yl(),n4=bl(),a4=Sl(),o4=Al(),u4=vl(),l4=c0(),Tc=p0();Object.keys(Tc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===Tc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return Tc[t]}})});var xc=Sr();Object.keys(xc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===xc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return xc[t]}})});var c4=f0(),p4=h0(),f4=Nl(),h4=d0(),d4=y0(),y4=kl(),m4=x0(),T4=b0(),x4=g0(),bc=Pt();Object.keys(bc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===bc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return bc[t]}})});var b4=S0(),g4=v0(),S4=P0(),E4=jl(),v4=Vl(),P4=il(),A4=_s(),w4=A0(),pa=w0();Object.keys(pa).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===pa[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return pa[t]}})});var I4=Bl(),C4=Vn(),N4=Li(),_4=I0(),O4=N0(),k4=_0(),D4=Zl(),L4=el(),M4=k0(),F4=Iu(),B4=D0(),R4=L0(),j4=F0(),U4=Kn(),V4=B0(),q4=Mi(),K4=R0(),Y4=Su(),X4=$n(),W4=vu(),gc=Re();Object.keys(gc).forEach(function(t){t==="default"||t==="__esModule"||Object.prototype.hasOwnProperty.call(ur,t)||t in Y&&Y[t]===gc[t]||Object.defineProperty(Y,t,{enumerable:!0,get:function(){return gc[t]}})});var J4=ys(),yW=Y.react={isReactComponent:WB.default,isCompatTag:JB.default,buildChildren:zB.default};Y.toSequenceExpression=U0().default});var q0=L(Sc=>{"use strict";y();m();Sc.__esModule=!0;function z4(t,e,r){switch(t){case"+":return e+r;case"-":return e-r;case"/":return e/r;case"%":return e%r;case"*":return e*r;case"**":return Math.pow(e,r);case"&":return e&r;case"|":return e|r;case">>":return e>>r;case">>>":return e>>>r;case"<<":return e<<r;case"^":return e^r;case"==":return e==r;case"===":return e===r;case"!=":return e!=r;case"!==":return e!==r;case"in":return e in r;case"instanceof":return e instanceof r;case">":return e>r;case"<":return e<r;case">=":return e>=r;case"<=":return e<=r}}Sc.default=z4});var fa=L((Ui,Vi)=>{"use strict";y();m();Ui.__esModule=!0;var $4=Tu(),Pe=Yt(),H4=q0();function vc(t,e){e===void 0&&(e={});var r=!0;function i(n){if(r){if(Pe.isArrayExpression(n)){for(var o=[],u=0;r&&u<n.elements.length;u++){var c=n.elements[u];if(Pe.isSpreadElement(c)){var p=i(c.argument);K0(p)&&r?o.push.apply(o,p):r=!1}else Pe.isExpression(c)?o.push(i(c)):r=!1}return o}if(Pe.isBinaryExpression(n)){var f=i(n.left),P=i(n.right);return r&&H4.default(n.operator,f,P)}if(Pe.isBooleanLiteral(n))return n.value;if(Pe.isCallExpression(n)){for(var k=[],u=0;r&&u<n.arguments.length;u++){var D=n.arguments[u];if(Pe.isSpreadElement(D)){var p=i(D.argument);K0(p)&&r?k.push.apply(k,p):r=!1}else Pe.isExpression(D)?k.push(i(D)):r=!1}if(!r)return;if(Pe.isMemberExpression(n.callee)){var F=i(n.callee.object);if(!F||!r){r=!1;return}var q=n.callee.computed?i(n.callee.property):Pe.isIdentifier(n.callee.property)?n.callee.property.name:void 0;if(q===void 0&&!n.callee.computed&&(r=!1),!r)return;if(G4(F,""+q))return F[q].apply(F,k)}else{if(!Pe.isExpression(n.callee)){r=!1;return}var ae=i(n.callee);return r?ae.apply(null,k):void 0}}if(Pe.isConditionalExpression(n)){var J=i(n.test);return i(J?n.consequent:n.alternate)}if(Pe.isIdentifier(n)&&e.constants&&{}.hasOwnProperty.call(e.constants,n.name))return e.constants[n.name];if(Pe.isLogicalExpression(n)){var f=i(n.left),P=i(n.right);if(r&&n.operator==="&&")return f&&P;if(r&&n.operator==="||")return f||P}if(Pe.isMemberExpression(n)){var F=i(n.object);if(!F||!r){r=!1;return}var q=n.computed?i(n.property):Pe.isIdentifier(n.property)?n.property.name:void 0;if(q===void 0&&!n.computed&&(r=!1),!r)return;if({}.hasOwnProperty.call(F,""+q)&&q[0]!=="_")return F[q]}if(Pe.isNullLiteral(n))return null;if(Pe.isNumericLiteral(n))return n.value;if(Pe.isObjectExpression(n)){for(var G={},u=0;r&&u<n.properties.length;u++){var z=n.properties[u];if(Pe.isObjectProperty(z)){if(z.shorthand){r=!1;return}var T=z.computed?i(z.key):Pe.isIdentifier(z.key)?z.key.name:Pe.isStringLiteral(z.key)?z.key.value:void 0;if((!T||T[0]==="_")&&(r=!1),!r)return;if(Pe.isExpression(z.value)){var Me=i(z.value);if(!r)return;G[T]=Me}else r=!1}else if(Pe.isObjectMethod(z))r=!1;else if(Pe.isSpreadProperty(z)){var Ne=i(z.argument);if(Ne||(r=!1),!r)return;Object.assign(G,Ne)}}return G}if(Pe.isParenthesizedExpression(n))return i(n.expression);if(Pe.isRegExpLiteral(n))return new RegExp(n.pattern,n.flags);if(Pe.isSequenceExpression(n)){for(var u=0;u<n.expressions.length-1&&r;u++)i(n.expressions[u]);return i(n.expressions[n.expressions.length-1])}if(Pe.isStringLiteral(n))return n.value;if(Pe.isTemplateLiteral(n)){for(var le="",u=0;u<n.quasis.length;u++){var _e=n.quasis[u];le+=_e.value.cooked,u<n.expressions.length&&(le+=""+i(n.expressions[u]))}return le}if(Pe.isUnaryExpression(n)){var Ne=i(n.argument);if(!r)return;switch(n.operator){case"-":return-Ne;case"+":return+Ne;case"!":return!Ne;case"~":return~Ne;case"typeof":return typeof Ne;case"void":return}}r=!1}}var s=i(t);return r?{constant:!0,result:s}:{constant:!1}}Ui.expressionToConstant=vc;function K0(t){return typeof t=="string"||Array.isArray(t)||typeof Set<"u"&&t instanceof Set||typeof Map<"u"&&t instanceof Map}function Y0(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){for(var r in t)if(t[r]!==e[r])return!1;for(var r in e)if(t[r]!==e[r])return!1;return!0}return!1}function G4(t,e){switch(typeof t){case"boolean":switch(e){case"toString":return!0;default:return!1}case"number":switch(e){case"toExponential":case"toFixed":case"toPrecision":case"toString":return!0;default:return!1}case"string":switch(e){case"charAt":case"charCodeAt":case"codePointAt":case"concat":case"endsWith":case"includes":case"indexOf":case"lastIndexOf":case"match":case"normalize":case"padEnd":case"padStart":case"repeat":case"replace":case"search":case"slice":case"split":case"startsWith":case"substr":case"substring":case"toLowerCase":case"toUpperCase":case"trim":return!0;default:return!1}default:if(t instanceof RegExp)switch(e){case"test":case"exec":return!0;default:return!1}return{}.hasOwnProperty.call(t,e)&&e[0]!=="_"}}var Ri={},X0="",W0=Ri,Q4=Ri,J0=null,Ec=!1;function ji(t,e,r){if(e===void 0&&(e=Ri),r===void 0&&(r=Ri),X0===t&&Y0(W0,e)&&Y0(Q4,r))return Ec;X0=t,W0=e;var i;try{i=$4.parseExpression(t,r)}catch{return Ec=!1}var s=vc(i,{constants:e}),n=s.result,o=s.constant;return J0=n,Ec=o}Ui.isConstant=ji;function z0(t,e,r){if(e===void 0&&(e=Ri),r===void 0&&(r=Ri),!ji(t,e,r))throw new Error(JSON.stringify(t)+" is not constant.");return J0}Ui.toConstant=z0;Ui.default=ji;Vi.exports=ji;Vi.exports.default=ji;Vi.exports.expressionToConstant=vc;Vi.exports.isConstant=ji;Vi.exports.toConstant=z0});var G0=L((PW,H0)=>{"use strict";y();m();var Z4=Br().dirname,eR=fa(),tR=bn(),Ac=Yr(),rR=Mo();H0.exports=$0;function $0(t,e,r,i){r=r||{},tR(t,function(n){var o=n.filename?Z4(n.filename):null;if(n.type==="Filter"){iR(n,e,r,i);var u=sR(n),c=Pc(n,r);c.filename=n.filename,n.type="Text",n.val=P(n,u,c)}else if(n.type==="RawInclude"&&n.filters.length){var p=n.filters.pop(),c=Pc(p,r),f=c.filename=n.file.fullPath;n.type="Text",n.val=k(p,f,n.file,c),n.filters.slice().reverse().forEach(function(F){var q=Pc(F,r);q.filename=f,n.val=P(F,n.val,q)}),n.filters=void 0,n.file=void 0}function P(D,F,q,ae){try{var J=s(D);return e&&e[J]?e[J](F,q):rR(J,F,q,o,ae)}catch(G){throw G.code==="UNKNOWN_FILTER"?Ac(G.code,G.message,D):G}}function k(D,F,q,ae){var J=s(D);return e&&e[J]?e[J].renderBuffer?e[J].renderBuffer(q.raw,ae):e[J](q.str,ae):P(D,F,ae,"renderFile")}},{includeDependencies:!0});function s(n){var o=n.name;if(i&&i[o]&&(o=i[o],i[o]))throw Ac("FILTER_ALISE_CHAIN",'The filter "'+n.name+'" is an alias for "'+o+'", which is an alias for "'+i[o]+'". Pug does not support chains of filter aliases.',n);return o}return t}function iR(t,e,r,i){t.block.nodes[0]&&t.block.nodes[0].type==="Filter"&&(t.block.nodes[0]=$0(t.block,e,r,i).nodes[0])}function sR(t){return t.block.nodes.map(function(e){return e.val}).join("")}function Pc(t,e){var r={};t.attrs.forEach(function(s){try{r[s.name]=s.val===!0?!0:eR.toConstant(s.val)}catch(n){throw/not constant/.test(n.message)?Ac("FILTER_OPTION_NOT_CONSTANT",n.message+" All filters are rendered compile-time so filter options must be constants.",t):n}});var i=e[t.name]||{};return Object.keys(i).forEach(function(s){r.hasOwnProperty(s)||(r[s]=i[s])}),r}});var Q0=L(wc=>{"use strict";y();m();wc.runFilter=Mo();wc.handleFilters=G0()});var tT=L((_W,eT)=>{"use strict";y();m();var nR=bi(),ni=bn();function Ic(){throw Yr().apply(null,arguments)}eT.exports=Cc;function Cc(t){nR(t.type==="Block","The top level element should always be a block");var e=null;if(t.nodes.length){var r=t.nodes[0].type==="Extends";pR(t,r),r&&(e=t.nodes.shift())}if(t=uR(t),t.declaredBlocks=aR(t),e){var i=[],s=[];t.nodes.forEach(function u(c){c.type==="NamedBlock"?s.push(c):c.type==="Block"?c.nodes.forEach(u):c.type==="Mixin"&&c.call===!1?i.push(c):Ic("UNEXPECTED_NODES_IN_EXTENDING_ROOT","Only named blocks and mixins can appear at the top level of an extending template",c)});var n=Cc(e.file.ast);oR(n.declaredBlocks,t);var o=[];return ni(n,function(u){u.type==="NamedBlock"&&o.push(u.name)}),s.forEach(function(u){o.indexOf(u.name)===-1&&Ic("UNEXPECTED_BLOCK","Unexpected block "+u.name,u)}),Object.keys(t.declaredBlocks).forEach(function(u){n.declaredBlocks[u]=t.declaredBlocks[u]}),n.nodes=i.concat(n.nodes),n.hasExtends=!0,n}return t}function aR(t){var e={};return ni(t,function(i){i.type==="NamedBlock"&&i.mode==="replace"&&(e[i.name]=e[i.name]||[],e[i.name].push(i))}),e}function Z0(t,e){return e=e||[],t.forEach(function(r){r.parents&&Z0(r.parents,e),e.push(r)}),e}function oR(t,e){var r={};ni(e,function(s){if(s.type==="NamedBlock"){if(r[s.name]===s.name)return s.ignore=!0;r[s.name]=s.name;var n=t[s.name]?Z0(t[s.name]):[];n.length&&(s.parents=n,n.forEach(function(o){switch(s.mode){case"append":o.nodes=o.nodes.concat(s.nodes);break;case"prepend":o.nodes=s.nodes.concat(o.nodes);break;case"replace":o.nodes=s.nodes;break}}))}},function(s){s.type==="NamedBlock"&&!s.ignore&&delete r[s.name]})}function uR(t,e){return ni(t,function(i,s){i.type==="RawInclude"&&s({type:"Text",val:i.file.str.replace(/\r/g,"")})},function(i,s){if(i.type==="Include"){var n=Cc(i.file.ast);n.hasExtends&&(n=lR(n)),s(cR(n,i.block))}})}function lR(t){return ni(t,function(e,r){e.type==="NamedBlock"&&r({type:"Block",nodes:e.nodes})})}function cR(t,e){if(!e||!e.nodes.length)return t;var r=!1;t=ni(t,null,function(s,n){s.type==="YieldBlock"&&(r=!0,s.type="Block",s.nodes=[e])});function i(s){for(var n=s,o=0;o<s.nodes.length;o++)s.nodes[o].textOnly||(s.nodes[o].type==="Block"?n=i(s.nodes[o]):s.nodes[o].block&&s.nodes[o].block.nodes.length&&(n=i(s.nodes[o].block)));return n}return r||i(t).nodes.push(e),t}function pR(t,e){var r=!1;ni(t,function(i){i.type==="Extends"&&(e&&!r?r=!0:Ic("EXTENDS_NOT_FIRST",'Declaration of template inheritance ("extends") should be the first thing in the file. There can only be one extends statement per file.',i))})}});var iT=L((DW,rT)=>{"use strict";y();m();rT.exports={html:"<!DOCTYPE html>",xml:'<?xml version="1.0" encoding="utf-8" ?>',transitional:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',strict:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',frameset:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',"1.1":'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',basic:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',mobile:'<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">',plist:'<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'}});var nT=L((FW,sT)=>{y();m();sT.exports={has_own_property:[],merge:["style"],classes_array:["classes","escape"],classes_object:["has_own_property"],classes:["classes_array","classes_object"],style:["has_own_property"],attr:["escape"],attrs:["attr","classes","has_own_property","style"],match_html:[],escape:["match_html"],rethrow:[]}});var oT=L((jW,aT)=>{y();m();aT.exports={dependencies:!0,internals:!0,has_own_property:!0,classes_array:!0,classes_object:!0,match_html:!0}});var lT=L((qW,uT)=>{y();m();uT.exports={has_own_property:"var pug_has_own_property=Object.prototype.hasOwnProperty;",merge:'function pug_merge(e,r){if(1===arguments.length){for(var t=e[0],g=1;g<e.length;g++)t=pug_merge(t,e[g]);return t}for(var l in r)if("class"===l){var n=e[l]||[];e[l]=(Array.isArray(n)?n:[n]).concat(r[l]||[])}else if("style"===l){var n=pug_style(e[l]);n=n&&";"!==n[n.length-1]?n+";":n;var a=pug_style(r[l]);a=a&&";"!==a[a.length-1]?a+";":a,e[l]=n+a}else e[l]=r[l];return e}',classes_array:'function pug_classes_array(r,a){for(var s,e="",u="",c=Array.isArray(a),g=0;g<r.length;g++)(s=pug_classes(r[g]))&&(c&&a[g]&&(s=pug_escape(s)),e=e+u+s,u=" ");return e}',classes_object:'function pug_classes_object(r){var a="",n="";for(var o in r)o&&r[o]&&pug_has_own_property.call(r,o)&&(a=a+n+o,n=" ");return a}',classes:'function pug_classes(s,r){return Array.isArray(s)?pug_classes_array(s,r):s&&"object"==typeof s?pug_classes_object(s):s||""}',style:'function pug_style(r){if(!r)return"";if("object"==typeof r){var t="";for(var e in r)pug_has_own_property.call(r,e)&&(t=t+e+":"+r[e]+";");return t}return r+""}',attr:`function pug_attr(t,e,n,r){if(!1===e||null==e||!e&&("class"===t||"style"===t))return"";if(!0===e)return" "+(r?t:t+'="'+t+'"');var f=typeof e;return"object"!==f&&"function"!==f||"function"!=typeof e.toJSON||(e=e.toJSON()),"string"==typeof e||(e=JSON.stringify(e),n||-1===e.indexOf('"'))?(n&&(e=pug_escape(e))," "+t+'="'+e+'"'):" "+t+"='"+e.replace(/'/g,"'")+"'"}`,attrs:'function pug_attrs(t,r){var a="";for(var s in t)if(pug_has_own_property.call(t,s)){var u=t[s];if("class"===s){u=pug_classes(u),a=pug_attr(s,u,!1,r)+a;continue}"style"===s&&(u=pug_style(u)),a+=pug_attr(s,u,!1,r)}return a}',match_html:'var pug_match_html=/["&<>]/;',escape:'function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s}',rethrow:'function pug_rethrow(e,n,r,t){if(!(e instanceof Error))throw e;if(!("undefined"==typeof window&&n||t))throw e.message+=" on line "+r,e;var o,a,i,s;try{t=t||require("fs").readFileSync(n,{encoding:"utf8"}),o=3,a=t.split("\\n"),i=Math.max(r-o,0),s=Math.min(a.length,r+o)}catch(t){return e.message+=" - could not read from "+n+" ("+t.message+")",void pug_rethrow(e,null,r)}o=a.slice(i,s).map(function(e,n){var t=n+i+1;return(t==r?" > ":" ")+t+"| "+e}).join("\\n"),e.path=n;try{e.message=(n||"Pug")+":"+r+"\\n"+o+"\\n\\n"+e.message}catch(e){}throw e}'}});var pT=L((WW,cT)=>{"use strict";y();m();var XW=mr(),fR=nT(),hR=oT(),dR=lT();cT.exports=yR;function yR(t){var e=[];t=t.filter(function(i){return!hR[i]});for(var r=0;r<t.length;r++)e.indexOf(t[r])===-1&&(e.push(t[r]),t.push.apply(t,fR[t[r]]));return e.sort().map(function(i){return dR[i]}).join(`
|
|
64
|
+
`)}});var Os=L(Ar=>{"use strict";y();m();var _c=Object.prototype.hasOwnProperty;Ar.merge=fT;function fT(t,e){if(arguments.length===1){for(var r=t[0],i=1;i<t.length;i++)r=fT(r,t[i]);return r}for(var s in e)if(s==="class"){var n=t[s]||[];t[s]=(Array.isArray(n)?n:[n]).concat(e[s]||[])}else if(s==="style"){var n=ha(t[s]);n=n&&n[n.length-1]!==";"?n+";":n;var o=ha(e[s]);o=o&&o[o.length-1]!==";"?o+";":o,t[s]=n+o}else t[s]=e[s];return t}Ar.classes=Oc;function mR(t,e){for(var r="",i,s="",n=Array.isArray(e),o=0;o<t.length;o++)i=Oc(t[o]),i&&(n&&e[o]&&(i=kc(i)),r=r+s+i,s=" ");return r}function TR(t){var e="",r="";for(var i in t)i&&t[i]&&_c.call(t,i)&&(e=e+r+i,r=" ");return e}function Oc(t,e){return Array.isArray(t)?mR(t,e):t&&typeof t=="object"?TR(t):t||""}Ar.style=ha;function ha(t){if(!t)return"";if(typeof t=="object"){var e="";for(var r in t)_c.call(t,r)&&(e=e+r+":"+t[r]+";");return e}else return t+""}Ar.attr=Nc;function Nc(t,e,r,i){if(e===!1||e==null||!e&&(t==="class"||t==="style"))return"";if(e===!0)return" "+(i?t:t+'="'+t+'"');var s=typeof e;return(s==="object"||s==="function")&&typeof e.toJSON=="function"&&(e=e.toJSON()),typeof e!="string"&&(e=JSON.stringify(e),!r&&e.indexOf('"')!==-1)?" "+t+"='"+e.replace(/'/g,"'")+"'":(r&&(e=kc(e))," "+t+'="'+e+'"')}Ar.attrs=xR;function xR(t,e){var r="";for(var i in t)if(_c.call(t,i)){var s=t[i];if(i==="class"){s=Oc(s),r=Nc(i,s,!1,e)+r;continue}i==="style"&&(s=ha(s)),r+=Nc(i,s,!1,e)}return r}var bR=/["&<>]/;Ar.escape=kc;function kc(t){var e=""+t,r=bR.exec(e);if(!r)return t;var i="",s,n,o;for(s=r.index,n=0;s<e.length;s++){switch(e.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;case 62:o=">";break;default:continue}n!==s&&(i+=e.substring(n,s)),n=s+1,i+=o}return n!==s?i+e.substring(n,s):i}Ar.rethrow=hT;function hT(t,e,r,i){if(!(t instanceof Error))throw t;if((typeof window<"u"||!e)&&!i)throw t.message+=" on line "+r,t;var s,n,o,u;try{i=i||mr().readFileSync(e,{encoding:"utf8"}),s=3,n=i.split(`
|
|
65
|
+
`),o=Math.max(r-s,0),u=Math.min(n.length,r+s)}catch(c){t.message+=" - could not read from "+e+" ("+c.message+")",hT(t,null,r);return}s=n.slice(o,u).map(function(c,p){var f=p+o+1;return(f==r?" > ":" ")+f+"| "+c}).join(`
|
|
66
|
+
`),t.path=e;try{t.message=(e||"Pug")+":"+r+`
|
|
67
|
+
`+s+`
|
|
68
|
+
|
|
69
|
+
`+t.message}catch{}throw t}});var Dc=L((QW,yT)=>{"use strict";y();m();yT.exports=dT;function dT(t){return t instanceof Date?"new Date("+dT(t.toISOString())+")":t===void 0?"undefined":JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/</g,"\\u003C").replace(/>/g,"\\u003E").replace(/\//g,"\\u002F")}});var xT=L((tJ,TT)=>{"use strict";y();m();var qi=bi(),mT=fa(),ai=Os(),Xt=Dc();function da(t){return mT(t,{pug:ai,pug_interp:void 0})}function Ki(t){return mT.toConstant(t,{pug:ai,pug_interp:void 0})}TT.exports=gR;function gR(t,e){qi(Array.isArray(t),"Attrs should be an array"),qi(t.every(function(u){return u&&typeof u=="object"&&typeof u.name=="string"&&(typeof u.val=="string"||typeof u.val=="boolean")&&typeof u.mustEscape=="boolean"}),"All attributes should be supplied as an object of the form {name, val, mustEscape}"),qi(e&&typeof e=="object","Options should be an object"),qi(typeof e.terse=="boolean","Options.terse should be a boolean"),qi(typeof e.runtime=="function","Options.runtime should be a function that takes a runtime function name and returns the source code that will evaluate to that function at runtime"),qi(e.format==="html"||e.format==="object",'Options.format should be "html" or "object"');var r=[],i=[],s=[];function n(u,c,p,f){if(da(c))if(e.format==="html"){var P=Xt(ai.attr(u,Ki(c),p,e.terse)),k=f[f.length-1];k&&k[k.length-1]===P[0]?f[f.length-1]=k.substr(0,k.length-1)+P.substr(1):f.push(P)}else c=Ki(c),p&&(c=ai.escape(c)),f.push(Xt(u)+": "+Xt(c));else e.format==="html"?f.push(e.runtime("attr")+'("'+u+'", '+c+", "+Xt(p)+", "+Xt(e.terse)+")"):(p&&(c=e.runtime("escape")+"("+c+")"),f.push(Xt(u)+": "+c))}t.forEach(function(u){var c=u.name,p=u.val,f=u.mustEscape;c==="class"?(i.push(p),s.push(f)):(c==="style"&&(da(p)?p=Xt(ai.style(Ki(p))):p=e.runtime("style")+"("+p+")"),n(c,p,f,r))});var o=[];return i.length&&(i.every(da)?n("class",Xt(ai.classes(i.map(Ki),s)),!1,o):(i=i.map(function(u,c){return da(u)&&(u=Xt(s[c]?ai.escape(Ki(u)):Ki(u)),s[c]=!1),u}),n("class",e.runtime("classes")+"(["+i.join(",")+"], "+Xt(s)+")",!1,o))),r=o.concat(r),e.format==="html"?r.length?r.join("+"):'""':"{"+r.join(",")+"}"}});var gT=L((sJ,bT)=>{y();m();bT.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var ST=L(lr=>{"use strict";y();m();var SR=lr&&lr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),ER=lr&&lr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vR=lr&&lr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&SR(e,t,r);return ER(e,t),e};Object.defineProperty(lr,"__esModule",{value:!0});var ya=vR(Yt());if(!(Array.isArray(ya.TYPES)&&ya.TYPES.every(t=>typeof t=="string")))throw new Error("@babel/types TYPES does not match the expected type.");var Yi=ya.FLIPPED_ALIAS_KEYS,PR=new Set(ya.TYPES);if(!(Yi&&typeof Yi=="object"&&Object.keys(Yi).every(t=>Array.isArray(Yi[t])&&Yi[t].every(e=>typeof e=="string"))))throw new Error("@babel/types FLIPPED_ALIAS_KEYS does not match the expected type.");function AR(t){let e={};for(let r in t){let i=Yi[r];if(i)for(let s of i)s in e?typeof t[r]=="function"?e[s].enter.push(t[r]):(t[r].enter&&e[s].enter.push(t[r].enter),t[r].exit&&e[s].exit.push(t[r].exit)):typeof t[r]=="function"?e[s]={enter:[t[r]],exit:[]}:e[s]={enter:t[r].enter?[t[r].enter]:[],exit:t[r].exit?[t[r].exit]:[]};else PR.has(r)&&(r in e?typeof t[r]=="function"?e[r].enter.push(t[r]):(t[r].enter&&e[r].enter.push(t[r].enter),t[r].exit&&e[r].exit.push(t[r].exit)):typeof t[r]=="function"?e[r]={enter:[t[r]],exit:[]}:e[r]={enter:t[r].enter?[t[r].enter]:[],exit:t[r].exit?[t[r].exit]:[]})}return e}lr.default=AR});var Mc=L(et=>{"use strict";y();m();var wR=et&&et.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),IR=et&&et.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),CR=et&&et.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&wR(e,t,r);return IR(e,t),e},NR=et&&et.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(et,"__esModule",{value:!0});et.recursive=et.ancestor=et.simple=void 0;var _R=CR(Yt()),Lc=NR(ST()),wr=_R.VISITOR_KEYS;if(!(wr&&typeof wr=="object"&&Object.keys(wr).every(t=>Array.isArray(wr[t])&&wr[t].every(e=>typeof e=="string"))))throw new Error("@babel/types VISITOR_KEYS does not match the expected type.");function OR(t){let e=Lc.default(t);return(r,i)=>{(function s(n){if(!n)return;let o=e[n.type];if(o?.enter)for(let u of o.enter)u(n,i);for(let u of wr[n.type]||[]){let c=n[u];if(Array.isArray(c))for(let p of c)s(p);else s(c)}if(o?.exit)for(let u of o.exit)u(n,i)})(r)}}et.simple=OR;function kR(t){let e=Lc.default(t);return(r,i)=>{let s=[];(function n(o){if(!o)return;let u=e[o.type],c=o!==s[s.length-1];if(c&&s.push(o),u?.enter)for(let p of u.enter)p(o,i,s);for(let p of wr[o.type]||[]){let f=o[p];if(Array.isArray(f))for(let P of f)n(P);else n(f)}if(u?.exit)for(let p of u.exit)p(o,i,s);c&&s.pop()})(r)}}et.ancestor=kR;function DR(t){let e=Lc.default(t);return(r,i)=>{(function s(n){if(!n)return;let o=e[n.type];if(o?.enter)for(let u of o.enter)u(n,i,s);else for(let u of wr[n.type]||[]){let c=n[u];if(Array.isArray(c))for(let p of c)s(p);else s(c)}})(r)}}et.recursive=DR});var vT=L(ma=>{"use strict";y();m();Object.defineProperty(ma,"__esModule",{value:!0});function ET(t,e){if(e)return t;throw new Error("Unhandled discriminated union member: "+JSON.stringify(t))}ma.assertNever=ET;ma.default=ET});var PT=L(cr=>{"use strict";y();m();var LR=cr&&cr.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),MR=cr&&cr.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),FR=cr&&cr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&LR(e,t,r);return MR(e,t),e};Object.defineProperty(cr,"__esModule",{value:!0});var BR=FR(Yt());function RR(t,e){switch(e.type){case"ObjectProperty":return e.value===t||e.computed;case"BreakStatement":case"ContinueStatement":return!1;case"AssignmentExpression":return!0}return BR.isReferenced(t,e)}cr.default=RR});var CT=L(Ot=>{"use strict";y();m();var jR=Ot&&Ot.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),UR=Ot&&Ot.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),VR=Ot&&Ot.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&jR(e,t,r);return UR(e,t),e},AT=Ot&&Ot.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ot,"__esModule",{value:!0});var qR=AT(vT()),wT=Mc(),oi=VR(Yt()),KR=AT(PT()),Ta=t=>oi.isFunctionParent(t)||oi.isProgram(t),YR=t=>oi.isBlockStatement(t)||Ta(t),IT=t=>oi.isFunction(t)&&!oi.isArrowFunctionExpression(t),XR=IT,Bc=Symbol("locals"),WR=t=>t[Bc],JR=t=>t[Bc]=t[Bc]||new Set,ks=(t,e)=>JR(t).add(e);function zR(t){for(let r of t.params)Ir(r,t);let e=t.id;e&&ks(t,e.name)}function Ir(t,e){switch(t.type){case"Identifier":ks(e,t.name);break;case"ObjectPattern":for(let r of t.properties)switch(r.type){case"RestElement":Ir(r.argument,e);break;case"ObjectProperty":Ir(r.value,e);break;default:qR.default(r);break}break;case"ArrayPattern":for(let r of t.elements)r&&Ir(r,e);break;case"RestElement":Ir(t.argument,e);break;case"AssignmentPattern":Ir(t.left,e);break;default:throw new Error("Unrecognized pattern type: "+t.type)}}function Fc(t,e,r){for(let i=r.length-2;i>=0;i--)if(Ta(r[i])){ks(r[i],t.local.name);return}}var $R=wT.ancestor({VariableDeclaration(t,e,r){for(let i=r.length-2;i>=0;i--)if(t.kind==="var"?oi.isFunctionParent(r[i]):YR(r[i])){for(let s of t.declarations)Ir(s.id,r[i]);return}},FunctionDeclaration(t,e,r){if(t.id){for(let i=r.length-2;i>=0;i--)if(Ta(r[i])){ks(r[i],t.id.name);return}}},Function:zR,ClassDeclaration(t,e,r){for(let i=r.length-2;i>=0;i--)if(Ta(r[i])){ks(r[i],t.id.name);return}},TryStatement(t){t.handler!==null&&t.handler.param!==null&&Ir(t.handler.param,t.handler)},ImportDefaultSpecifier:Fc,ImportSpecifier:Fc,ImportNamespaceSpecifier:Fc}),HR=wT.ancestor({Identifier(t,e,r){var i;let s=t.name;if(s==="undefined")return;let n=r[r.length-2];if(n){if(!KR.default(t,n))return;for(let o of r)if(s==="arguments"&&IT(o)||!((i=WR(o))===null||i===void 0)&&i.has(s))return}e.globals.push(t)},ThisExpression(t,e,r){for(let i of r)if(XR(i))return;e.globals.push(t)}});function GR(t){let e=[];if(!oi.isNode(t))throw new TypeError("Source must be a Babylon AST");$R(t,void 0),HR(t,{globals:e});let r=new Map;for(let i of e){let s=i.type==="ThisExpression"?"this":i.name,n=r.get(s);n?n.push(i):r.set(s,[i])}return[...r].map(([i,s])=>({name:i,nodes:s})).sort((i,s)=>i.name<s.name?-1:1)}Ot.default=GR});var kT=L((kt,jc)=>{"use strict";y();m();var QR=kt&&kt.__createBinding||(Object.create?function(t,e,r,i){i===void 0&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}),ZR=kt&&kt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),e5=kt&&kt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&QR(e,t,r);return ZR(e,t),e},t5=kt&&kt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kt,"__esModule",{value:!0});var NT=Tu(),r5=Mc(),i5=e5(Yt()),_T=t5(CT()),OT={allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0};function Rc(t,e,r=[]){t=t+"",e=e+"";let i;try{i=NT.parse(e,OT)}catch(k){throw Object.assign(new Error("Error parsing body of the with expression"),{component:"src",babylonError:k})}let s;try{s=NT.parse(t,OT)}catch(k){throw Object.assign(new Error("Error parsing object part of the with expression"),{component:"obj",babylonError:k})}let n=new Set(["undefined","this",...r,..._T.default(s).map(k=>k.name)]),o=new Set(_T.default(i).map(k=>k.name).filter(k=>!n.has(k)));if(o.size===0)return e;let u="",c="locals_for_with",p="result_of_with";if(i5.isValidIdentifier(t))c=t;else{for(;o.has(c)||n.has(c);)c+="_";u=`var ${c} = (${t});`}for(;o.has(p)||n.has(p);)p+="_";let f=["this",...Array.from(o).map(k=>`${JSON.stringify(k)} in ${c} ?
|
|
70
|
+
${c}.${k} :
|
|
71
|
+
typeof ${k} !== 'undefined' ? ${k} : undefined`)],P=n5(i,e,p);return`;
|
|
72
|
+
${u}
|
|
73
|
+
${P.before}
|
|
74
|
+
(function (${Array.from(o).join(", ")}) {
|
|
75
|
+
${P.body}
|
|
76
|
+
}.call(${f.join(", ")}));
|
|
77
|
+
${P.after};`}kt.default=Rc;var s5=r5.recursive({Function(t,e,r){},ReturnStatement(t,e){e.hasReturn=!0;let r="";t.argument&&(r=`value: (${e.source(t.argument)})`),e.replace(t,`return {${r}};`)}});function n5(t,e,r){let i=e.split(""),s={hasReturn:!1,source(n){return e.slice(n.start,n.end)},replace(n,o){i.fill("",n.start,n.end),i[n.start]=o}};return s5(t,s),{before:s.hasReturn?`var ${r} = `:"",body:i.join(""),after:s.hasReturn?`;if (${r}) return ${r}.value`:""}}jc.exports=Rc;jc.exports.default=Rc});var BT=L((PJ,qc)=>{"use strict";y();m();var a5=iT(),o5=Yr(),u5=pT(),MT=Os(),l5=xT(),c5=gT(),FT=fa(),ui=Dc(),p5=kT(),Uc={pre:!0,textarea:!0},DT=["pug","pug_mixins","pug_interp","pug_debug_filename","pug_debug_line","pug_debug_sources","pug_html"];qc.exports=f5;qc.exports.CodeGenerator=Vc;function f5(t,e){return new Vc(t,e).compile()}function h5(t){return FT(t,{pug:MT,pug_interp:void 0})}function d5(t){return FT.toConstant(t,{pug:MT,pug_interp:void 0})}function LT(t){return/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)}function Vc(t,e){if(this.options=e=e||{},this.node=t,this.bufferedConcatenationCount=0,this.hasCompiledDoctype=!1,this.hasCompiledTag=!1,this.pp=e.pretty||!1,this.pp&&typeof this.pp!="string"&&(this.pp=" "),this.pp&&!/^\s+$/.test(this.pp))throw new Error("The pretty parameter should either be a boolean or whitespace only string");if(this.options.templateName&&!LT(this.options.templateName))throw new Error("The templateName parameter must be a valid JavaScript identifier if specified.");if(this.doctype&&(this.doctype.includes("<")||this.doctype.includes(">")))throw new Error('Doctype can not contain "<" or ">"');if(this.options.globals&&!this.options.globals.every(LT))throw new Error("The globals option must be an array of valid JavaScript identifiers if specified.");this.debug=e.compileDebug!==!1,this.indents=0,this.parentIndents=0,this.terse=!1,this.mixins={},this.dynamicMixins=!1,this.eachCount=0,e.doctype&&this.setDoctype(e.doctype),this.runtimeFunctionsUsed=[],this.inlineRuntimeFunctions=e.inlineRuntimeFunctions||!1,this.debug&&this.inlineRuntimeFunctions&&this.runtimeFunctionsUsed.push("rethrow")}Vc.prototype={runtime:function(t){return this.inlineRuntimeFunctions?(this.runtimeFunctionsUsed.push(t),"pug_"+t):"pug."+t},error:function(t,e,r){var i=o5(e,t,{line:r.line,column:r.column,filename:r.filename});throw i},compile:function(){if(this.buf=[],this.pp&&this.buf.push("var pug_indent = [];"),this.lastBufferedIdx=-1,this.visit(this.node),!this.dynamicMixins)for(var t=Object.keys(this.mixins),e=0;e<t.length;e++){var r=this.mixins[t[e]];if(!r.used)for(var i=0;i<r.instances.length;i++)for(var s=r.instances[i].start;s<r.instances[i].end;s++)this.buf[s]=""}var n=this.buf.join(`
|
|
78
|
+
`),o=this.options.globals?this.options.globals.concat(DT):DT;return this.options.self?n="var self = locals || {};"+n:n=p5("locals || {}",n,o.concat(this.runtimeFunctionsUsed.map(function(u){return"pug_"+u}))),this.debug&&(this.options.includeSources&&(n="var pug_debug_sources = "+ui(this.options.includeSources)+`;
|
|
79
|
+
`+n),n="var pug_debug_filename, pug_debug_line;try {"+n+"} catch (err) {"+(this.inlineRuntimeFunctions?"pug_rethrow":"pug.rethrow")+"(err, pug_debug_filename, pug_debug_line"+(this.options.includeSources?", pug_debug_sources[pug_debug_filename]":"")+");}"),u5(this.runtimeFunctionsUsed)+"function "+(this.options.templateName||"template")+'(locals) {var pug_html = "", pug_mixins = {}, pug_interp;'+n+";return pug_html;}"},setDoctype:function(t){this.doctype=a5[t.toLowerCase()]||"<!DOCTYPE "+t+">",this.terse=this.doctype.toLowerCase()=="<!doctype html>",this.xml=this.doctype.indexOf("<?xml")==0},buffer:function(t){var e=this;t=ui(t),t=t.substr(1,t.length-2),this.lastBufferedIdx==this.buf.length&&this.bufferedConcatenationCount<100?(this.lastBufferedType==="code"&&(this.lastBuffered+=' + "',this.bufferedConcatenationCount++),this.lastBufferedType="text",this.lastBuffered+=t,this.buf[this.lastBufferedIdx-1]="pug_html = pug_html + "+this.bufferStartChar+this.lastBuffered+'";'):(this.bufferedConcatenationCount=0,this.buf.push('pug_html = pug_html + "'+t+'";'),this.lastBufferedType="text",this.bufferStartChar='"',this.lastBuffered=t,this.lastBufferedIdx=this.buf.length)},bufferExpression:function(t){if(h5(t))return this.buffer(d5(t)+"");this.lastBufferedIdx==this.buf.length&&this.bufferedConcatenationCount<100?(this.bufferedConcatenationCount++,this.lastBufferedType==="text"&&(this.lastBuffered+='"'),this.lastBufferedType="code",this.lastBuffered+=" + ("+t+")",this.buf[this.lastBufferedIdx-1]="pug_html = pug_html + ("+this.bufferStartChar+this.lastBuffered+");"):(this.bufferedConcatenationCount=0,this.buf.push("pug_html = pug_html + ("+t+");"),this.lastBufferedType="code",this.bufferStartChar="",this.lastBuffered="("+t+")",this.lastBufferedIdx=this.buf.length)},prettyIndent:function(t,e){t=t||0,e=e?`
|
|
80
|
+
`:"",this.buffer(e+Array(this.indents+t).join(this.pp)),this.parentIndents&&this.buf.push('pug_html = pug_html + pug_indent.join("");')},visit:function(t,e){var r=this.debug;if(!t){var i;throw e?i="A child of "+e.type+" ("+(e.filename||"Pug")+":"+e.line+")":i="A top-level node",i+=" is "+t+", expected a Pug AST Node.",new TypeError(i)}if(r&&t.debug!==!1&&t.type!=="Block"&&t.line){var s=";pug_debug_line = "+t.line;t.filename&&(s+=";pug_debug_filename = "+ui(t.filename)),this.buf.push(s+";")}if(!this["visit"+t.type]){var i;switch(e?i="A child of "+e.type:i="A top-level node",i+=" ("+(t.filename||"Pug")+":"+t.line+") is of type "+t.type+", which is not supported by pug-code-gen.",t.type){case"Filter":i+=" Please use pug-filters to preprocess this AST.";break;case"Extends":case"Include":case"NamedBlock":case"FileReference":i+=" Please use pug-linker to preprocess this AST.";break}throw new TypeError(i)}this.visitNode(t)},visitNode:function(t){return this["visit"+t.type](t)},visitCase:function(t){this.buf.push("switch ("+t.expr+"){"),this.visit(t.block,t),this.buf.push("}")},visitWhen:function(t){t.expr=="default"?this.buf.push("default:"):this.buf.push("case "+t.expr+":"),t.block&&(this.visit(t.block,t),this.buf.push(" break;"))},visitLiteral:function(t){this.buffer(t.str)},visitNamedBlock:function(t){return this.visitBlock(t)},visitBlock:function(t){var e=this.escapePrettyMode,r=this.pp;r&&t.nodes.length>1&&!e&&t.nodes[0].type==="Text"&&t.nodes[1].type==="Text"&&this.prettyIndent(1,!0);for(var i=0;i<t.nodes.length;++i)r&&i>0&&!e&&t.nodes[i].type==="Text"&&t.nodes[i-1].type==="Text"&&/\n$/.test(t.nodes[i-1].val)&&this.prettyIndent(1,!1),this.visit(t.nodes[i],t)},visitMixinBlock:function(t){this.pp&&this.buf.push("pug_indent.push("+ui(Array(this.indents+1).join(this.pp))+");"),this.buf.push("block && block();"),this.pp&&this.buf.push("pug_indent.pop();")},visitDoctype:function(t){t&&(t.val||!this.doctype)&&this.setDoctype(t.val||"html"),this.doctype&&this.buffer(this.doctype),this.hasCompiledDoctype=!0},visitMixin:function(t){var e="pug_mixins[",r=t.args||"",i=t.block,s=t.attrs,n=this.attributeBlocks(t.attributeBlocks),o=this.pp,u=t.name[0]==="#",c=t.name;if(u&&(this.dynamicMixins=!0),e+=(u?t.name.substr(2,t.name.length-3):'"'+t.name+'"')+"]",this.mixins[c]=this.mixins[c]||{used:!1,instances:[]},t.call){if(this.mixins[c].used=!0,o&&this.buf.push("pug_indent.push("+ui(Array(this.indents+1).join(o))+");"),i||s.length||n.length){if(this.buf.push(e+".call({"),i){this.buf.push("block: function(){"),this.parentIndents++;var p=this.indents;this.indents=0,this.visit(t.block,t),this.indents=p,this.parentIndents--,s.length||n.length?this.buf.push("},"):this.buf.push("}")}if(n.length){if(s.length){var f=this.attrs(s);n.unshift(f)}n.length>1?this.buf.push("attributes: "+this.runtime("merge")+"(["+n.join(",")+"])"):this.buf.push("attributes: "+n[0])}else if(s.length){var f=this.attrs(s);this.buf.push("attributes: "+f)}r?this.buf.push("}, "+r+");"):this.buf.push("});")}else this.buf.push(e+"("+r+");");o&&this.buf.push("pug_indent.pop();")}else{var P=this.buf.length;r=r?r.split(","):[];var k;r.length&&/^\.\.\./.test(r[r.length-1].trim())&&(k=r.pop().trim().replace(/^\.\.\./,"")),this.buf.push(e+" = pug_interp = function("+r.join(",")+"){"),this.buf.push("var block = (this && this.block), attributes = (this && this.attributes) || {};"),k&&(this.buf.push("var "+k+" = [];"),this.buf.push("for (pug_interp = "+r.length+"; pug_interp < arguments.length; pug_interp++) {"),this.buf.push(" "+k+".push(arguments[pug_interp]);"),this.buf.push("}")),this.parentIndents++,this.visit(i,t),this.parentIndents--,this.buf.push("};");var D=this.buf.length;this.mixins[c].instances.push({start:P,end:D})}},visitTag:function(t,e){this.indents++;var r=t.name,i=this.pp,s=this;function n(){e?s.bufferExpression(t.expr):s.buffer(r)}Uc[t.name]===!0&&(this.escapePrettyMode=!0),this.hasCompiledTag||(!this.hasCompiledDoctype&&r=="html"&&this.visitDoctype(),this.hasCompiledTag=!0),i&&!t.isInline&&this.prettyIndent(0,!0),t.selfClosing||!this.xml&&c5[t.name]?(this.buffer("<"),n(),this.visitAttributes(t.attrs,this.attributeBlocks(t.attributeBlocks)),this.terse&&!t.selfClosing?this.buffer(">"):this.buffer("/>"),(t.code||t.block&&!(t.block.type==="Block"&&t.block.nodes.length===0)&&t.block.nodes.some(function(o){return o.type!=="Text"||!/^\s*$/.test(o.val)}))&&this.error(r+" is a self closing element: <"+r+"/> but contains nested content.","SELF_CLOSING_CONTENT",t)):(this.buffer("<"),n(),this.visitAttributes(t.attrs,this.attributeBlocks(t.attributeBlocks)),this.buffer(">"),t.code&&this.visitCode(t.code),this.visit(t.block,t),i&&!t.isInline&&Uc[t.name]!==!0&&!y5(t)&&this.prettyIndent(0,!0),this.buffer("</"),n(),this.buffer(">")),Uc[t.name]===!0&&(this.escapePrettyMode=!1),this.indents--},visitInterpolatedTag:function(t){return this.visitTag(t,!0)},visitText:function(t){this.buffer(t.val)},visitComment:function(t){t.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+t.val+"-->"))},visitYieldBlock:function(t){},visitBlockComment:function(t){t.buffer&&(this.pp&&this.prettyIndent(1,!0),this.buffer("<!--"+(t.val||"")),this.visit(t.block,t),this.pp&&this.prettyIndent(1,!0),this.buffer("-->"))},visitCode:function(t){if(t.buffer){var e=t.val.trim();e="null == (pug_interp = "+e+') ? "" : pug_interp',t.mustEscape!==!1&&(e=this.runtime("escape")+"("+e+")"),this.bufferExpression(e)}else this.buf.push(t.val);t.block&&(t.buffer||this.buf.push("{"),this.visit(t.block,t),t.buffer||this.buf.push("}"))},visitConditional:function(t){var e=t.test;this.buf.push("if ("+e+") {"),this.visit(t.consequent,t),this.buf.push("}"),t.alternate&&(t.alternate.type==="Conditional"?(this.buf.push("else"),this.visitConditional(t.alternate)):(this.buf.push("else {"),this.visit(t.alternate,t),this.buf.push("}")))},visitWhile:function(t){var e=t.test;this.buf.push("while ("+e+") {"),this.visit(t.block,t),this.buf.push("}")},visitEach:function(t){var e=t.key||"pug_index"+this.eachCount;this.eachCount++,this.buf.push("// iterate "+t.obj+`
|
|
81
|
+
;(function(){
|
|
82
|
+
var $$obj = `+t.obj+`;
|
|
83
|
+
if ('number' == typeof $$obj.length) {`),t.alternate&&this.buf.push(" if ($$obj.length) {"),this.buf.push(" for (var "+e+" = 0, $$l = $$obj.length; "+e+" < $$l; "+e+`++) {
|
|
84
|
+
var `+t.val+" = $$obj["+e+"];"),this.visit(t.block,t),this.buf.push(" }"),t.alternate&&(this.buf.push(" } else {"),this.visit(t.alternate,t),this.buf.push(" }")),this.buf.push(` } else {
|
|
85
|
+
var $$l = 0;
|
|
86
|
+
for (var `+e+` in $$obj) {
|
|
87
|
+
$$l++;
|
|
88
|
+
var `+t.val+" = $$obj["+e+"];"),this.visit(t.block,t),this.buf.push(" }"),t.alternate&&(this.buf.push(" if ($$l === 0) {"),this.visit(t.alternate,t),this.buf.push(" }")),this.buf.push(` }
|
|
89
|
+
}).call(this);
|
|
90
|
+
`)},visitEachOf:function(t){this.buf.push("// iterate "+t.obj+`
|
|
91
|
+
for (const `+t.val+" of "+t.obj+`) {
|
|
92
|
+
`),this.visit(t.block,t),this.buf.push(`}
|
|
93
|
+
`)},visitAttributes:function(t,e){if(e.length){if(t.length){var r=this.attrs(t);e.unshift(r)}e.length>1?this.bufferExpression(this.runtime("attrs")+"("+this.runtime("merge")+"(["+e.join(",")+"]), "+ui(this.terse)+")"):this.bufferExpression(this.runtime("attrs")+"("+e[0]+", "+ui(this.terse)+")")}else t.length&&this.attrs(t,!0)},attrs:function(t,e){var r=l5(t,{terse:this.terse,format:e?"html":"object",runtime:this.runtime.bind(this)});return e&&this.bufferExpression(r),r},attributeBlocks:function(t){return t&&t.slice().map(function(e){return e.val})}};function y5(t){function e(r){return r.type==="Block"?r.nodes.every(e):r.type==="YieldBlock"?!0:r.type==="Text"&&!/\n/.test(r.val)||r.isInline}return t.block.nodes.every(e)}});var jT=L((IJ,RT)=>{y();m();var m5=Os();RT.exports=T5;function T5(t,e){return e=e||"template",Function("pug",t+`
|
|
94
|
+
return `+e+";")(m5)}});var qT=L(Ce=>{"use strict";y();m();var UT=mr(),x5=Br(),b5=Nh(),g5=Oh(),S5=Fh(),Kc=Uh(),E5=Q0(),v5=tT(),P5=BT(),A5=Os(),w5=jT();Ce.name="Pug";Ce.runtime=A5;Ce.cache={};function At(t,e,r,i){return r.reduce(function(s,n){return n[i]?n[i](s,e):s},t)}function Yc(t,e){var r=t.filter(function(i){return i[e]});if(r.length>1)throw new Error("Two or more plugins all implement "+e+" method.");return r.length?r[0][e].bind(r[0]):null}Ce.filters={};function VT(t,e){var r={};r[e.filename]=t;var i=[],s=e.plugins||[],n=Kc.string(t,{filename:e.filename,basedir:e.basedir,lex:function(c,p){var f={};Object.keys(p).forEach(function(k){f[k]=p[k]}),f.plugins=s.filter(function(k){return!!k.lex}).map(function(k){return k.lex});var P=At(c,{filename:p.filename},s,"preLex");return At(b5(P,f),p,s,"postLex")},parse:function(c,p){c=c.map(function(P){return P.type==="path"&&x5.extname(P.val)===""?{type:"path",loc:P.loc,val:P.val+".pug"}:P}),c=g5(c,p),c=At(c,p,s,"preParse");var f={};return Object.keys(p).forEach(function(P){f[P]=p[P]}),f.plugins=s.filter(function(P){return!!P.parse}).map(function(P){return P.parse}),At(At(S5(c,f),p,s,"postParse"),p,s,"preLoad")},resolve:function(c,p,f){var P=Yc(s,"resolve");return P?P(c,p,e):Kc.resolve(c,p,f)},read:function(c,p){i.push(c);var f,P=Yc(s,"read");return P?f=P(c,e):f=Kc.read(c,p),r[c]=A.isBuffer(f)?f.toString("utf8"):f,f}});n=At(n,e,s,"postLoad"),n=At(n,e,s,"preFilters");var o={};Object.keys(Ce.filters).forEach(function(c){o[c]=Ce.filters[c]}),e.filters&&Object.keys(e.filters).forEach(function(c){o[c]=e.filters[c]}),n=E5.handleFilters(n,o,e.filterOptions,e.filterAliases),n=At(n,e,s,"postFilters"),n=At(n,e,s,"preLink"),n=v5(n),n=At(n,e,s,"postLink"),n=At(n,e,s,"preCodeGen");var u=(Yc(s,"generateCode")||P5)(n,{pretty:e.pretty,compileDebug:e.compileDebug,doctype:e.doctype,inlineRuntimeFunctions:e.inlineRuntimeFunctions,globals:e.globals,self:e.self,includeSources:e.includeSources?r:!1,templateName:e.templateName});return u=At(u,e,s,"postCodeGen"),e.debug&&console.error(`
|
|
95
|
+
Compiled Function:
|
|
96
|
+
|
|
97
|
+
\x1B[90m%s\x1B[0m`,u.replace(/^/gm," ")),{body:u,dependencies:i}}function Xc(t,e){var r=t.filename;if(t.cache&&Ce.cache[r])return Ce.cache[r];e===void 0&&(e=UT.readFileSync(t.filename,"utf8"));var i=Ce.compile(e,t);return t.cache&&(Ce.cache[r]=i),i}Ce.compile=function(t,r){var r=r||{};t=String(t);var i=VT(t,{compileDebug:r.compileDebug!==!1,filename:r.filename,basedir:r.basedir,pretty:r.pretty,doctype:r.doctype,inlineRuntimeFunctions:r.inlineRuntimeFunctions,globals:r.globals,self:r.self,includeSources:r.compileDebug===!0,debug:r.debug,templateName:"template",filters:r.filters,filterOptions:r.filterOptions,filterAliases:r.filterAliases,plugins:r.plugins}),s=r.inlineRuntimeFunctions?new Function("",i.body+";return template;")():w5(i.body);return s.dependencies=i.dependencies,s};Ce.compileClientWithDependenciesTracked=function(t,r){var r=r||{};t=String(t);var i=VT(t,{compileDebug:r.compileDebug,filename:r.filename,basedir:r.basedir,pretty:r.pretty,doctype:r.doctype,inlineRuntimeFunctions:r.inlineRuntimeFunctions!==!1,globals:r.globals,self:r.self,includeSources:r.compileDebug,debug:r.debug,templateName:r.name||"template",filters:r.filters,filterOptions:r.filterOptions,filterAliases:r.filterAliases,plugins:r.plugins}),s=i.body;return r.module&&(r.inlineRuntimeFunctions===!1&&(s='var pug = require("pug-runtime");'+s),s+=" module.exports = "+(r.name||"template")+";"),{body:s,dependencies:i.dependencies}};Ce.compileClient=function(t,e){return Ce.compileClientWithDependenciesTracked(t,e).body};Ce.compileFile=function(t,e){return e=e||{},e.filename=t,Xc(e)};Ce.render=function(t,e,r){if(typeof e=="function"&&(r=e,e=void 0),typeof r=="function"){var i;try{i=Ce.render(t,e)}catch(s){return r(s)}return r(null,i)}if(e=e||{},e.cache&&!e.filename)throw new Error('the "filename" option is required for caching');return Xc(e,t)(e)};Ce.renderFile=function(t,e,r){if(typeof e=="function"&&(r=e,e=void 0),typeof r=="function"){var i;try{i=Ce.renderFile(t,e)}catch(s){return r(s)}return r(null,i)}return e=e||{},e.filename=t,Xc(e)(e)};Ce.compileFileClient=function(t,e){var r=t+":client";if(e=e||{},e.filename=t,e.cache&&Ce.cache[r])return Ce.cache[r];var i=UT.readFileSync(e.filename,"utf8"),s=Ce.compileClient(i,e);return e.cache&&(Ce.cache[r]=s),s};Ce.__express=function(t,e,r){e.compileDebug==null&&(e.compileDebug=!1),Ce.renderFile(t,e,r)}});var I5={};Wi(I5,{compile:()=>xa.compile,compileClient:()=>xa.compileClient});y();m();var xa=fx(qT());return Ji(I5);})();
|
|
98
|
+
/*!
|
|
99
|
+
* The buffer module from node.js, for the browser.
|
|
100
|
+
*
|
|
101
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
102
|
+
* @license MIT
|
|
103
|
+
*/
|
|
104
|
+
/*! Bundled license information:
|
|
105
|
+
|
|
106
|
+
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|
|
107
|
+
(*!
|
|
108
|
+
* The buffer module from node.js, for the browser.
|
|
109
|
+
*
|
|
110
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
111
|
+
* @license MIT
|
|
112
|
+
*)
|
|
113
|
+
|
|
114
|
+
object-assign/index.js:
|
|
115
|
+
(*
|
|
116
|
+
object-assign
|
|
117
|
+
(c) Sindre Sorhus
|
|
118
|
+
@license MIT
|
|
119
|
+
*)
|
|
120
|
+
|
|
121
|
+
pug/lib/index.js:
|
|
122
|
+
(*!
|
|
123
|
+
* Pug
|
|
124
|
+
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
|
125
|
+
* MIT Licensed
|
|
126
|
+
*)
|
|
127
|
+
*/
|