cloudcmd 19.22.0 → 19.23.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.
- package/ChangeLog +17 -0
- package/HELP.md +4 -1
- package/README.md +1 -1
- package/bin/cloudcmd.js +4 -0
- package/dist/cloudcmd.common.js +9 -9
- package/dist/cloudcmd.common.js.map +1 -1
- package/dist/modules/config-putout.js +2 -0
- package/dist/modules/config-putout.js.map +1 -0
- package/dist/modules/config.js +1 -1
- package/dist/modules/edit.js +1 -1
- package/dist/modules/menu.js +16 -153
- package/dist/modules/menu.js.map +1 -1
- package/dist/modules/putout.js +98 -0
- package/dist/modules/putout.js.map +1 -0
- package/dist/modules/user-menu.js +1 -1
- package/dist/sw.js +1 -1
- package/dist-dev/cloudcmd.common.js +183 -3
- package/dist-dev/modules/config-putout.js +172 -0
- package/dist-dev/modules/menu.js +449 -9535
- package/dist-dev/modules/putout.js +105 -0
- package/dist-dev/sw.js +1 -1
- package/json/config.json +1 -0
- package/json/help.json +1 -0
- package/json/modules.json +3 -1
- package/man/cloudcmd.1 +7 -0
- package/package.json +5 -1
- package/server/cloudcmd.js +1 -1
- package/server/validate.js +7 -0
- package/tmpl/config.hbs +8 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
(()=>{var e={5561(e){function t(e){return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=5561,e.exports=t}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t,r)=>{var i=(t,r)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,[r]:t[i]})};i(t,"get"),i(r,"value")},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";let e,t,r,i,s,a,o,l,u,c,p,d,f,h,m,y,g,b,x,S,T,v,E,k,w,A,P,C,I,_,N,L,O;var D,M,F,B,j,R,$,U,q,K,V,J,z,W,X,H,Y,G,Q,Z,ee,et,en,er,ei,es,ea,eo,el={};n.r(el),n.d(el,{codeframe:()=>elG,default:()=>W9,findPlaces:()=>Yk,findPlacesAsync:()=>Yw,generate:()=>qh,operator:()=>elY,parse:()=>qd,print:()=>UF,putout:()=>W9,putoutAsync:()=>W7,template:()=>qN,transform:()=>W8,transformAsync:()=>W6,traverse:()=>Ld,types:()=>tc});var eu={};n.r(eu),n.d(eu,{branch:()=>el2,files:()=>el1,merge:()=>el3});var ec="u">typeof global?global:"u">typeof self?self:"u">typeof window?window:{},ep=[],ed=[],ef="u">typeof Uint8Array?Uint8Array:Array,eh=!1;function em(){eh=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)ep[t]=e[t],ed[e.charCodeAt(t)]=t;ed[45]=62,ed[95]=63}function ey(e){eh||em();for(var t,n=e.length,r=n%3,i="",s=[],a=0,o=n-r;a<o;a+=16383)s.push(function(e,t,n){for(var r,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(ep[r>>18&63]+ep[r>>12&63]+ep[r>>6&63]+ep[63&r]);return i.join("")}(e,a,a+16383>o?o:a+16383));return 1===r?(i+=ep[(t=e[n-1])>>2],i+=ep[t<<4&63],i+="=="):2===r&&(i+=ep[(t=(e[n-2]<<8)+e[n-1])>>10],i+=ep[t>>4&63],i+=ep[t<<2&63],i+="="),s.push(i),s.join("")}function eg(e,t,n,r,i){var s,a,o=8*i-r-1,l=(1<<o)-1,u=l>>1,c=-7,p=n?i-1:0,d=n?-1:1,f=e[t+p];for(p+=d,s=f&(1<<-c)-1,f>>=-c,c+=o;c>0;s=256*s+e[t+p],p+=d,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=r;c>0;a=256*a+e[t+p],p+=d,c-=8);if(0===s)s=1-u;else{if(s===l)return a?0/0:(f?-1:1)*2e308;a+=Math.pow(2,r),s-=u}return(f?-1:1)*a*Math.pow(2,s-r)}function eb(e,t,n,r,i,s){var a,o,l,u=8*s-i-1,c=(1<<u)-1,p=c>>1,d=5960464477539062e-23*(23===i),f=r?0:s-1,h=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||1/0===t?(o=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+p>=1?t+=d/l:t+=d*Math.pow(2,1-p),t*l>=2&&(a++,l/=2),a+p>=c?(o=0,a=c):a+p>=1?(o=(t*l-1)*Math.pow(2,i),a+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&o,f+=h,o/=256,i-=8);for(a=a<<i|o,u+=i;u>0;e[n+f]=255&a,f+=h,a/=256,u-=8);e[n+f-h]|=128*m}var ex={}.toString,eS=Array.isArray||function(e){return"[object Array]"==ex.call(e)};function eT(){return eE.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function ev(e,t){if(eT()<t)throw RangeError("Invalid typed array length");return eE.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=eE.prototype:(null===e&&(e=new eE(t)),e.length=t),e}function eE(e,t,n){if(!eE.TYPED_ARRAY_SUPPORT&&!(this instanceof eE))return new eE(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return eA(this,e)}return ek(this,e,t,n)}function ek(e,t,n,r){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"u">typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),eE.TYPED_ARRAY_SUPPORT?(e=t).__proto__=eE.prototype:e=eP(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!eE.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var r=0|e_(t,n),i=(e=ev(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(eI(t)){var n,r=0|eC(t.length);return 0===(e=ev(e,r)).length||t.copy(e,0,0,r),e}if(t){if("u">typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t){return"number"!=typeof t.length||(n=t.length)!=n?ev(e,0):eP(e,t)}if("Buffer"===t.type&&eS(t.data))return eP(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function ew(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function eA(e,t){if(ew(t),e=ev(e,t<0?0:0|eC(t)),!eE.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function eP(e,t){var n=t.length<0?0:0|eC(t.length);e=ev(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function eC(e){if(e>=eT())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+eT().toString(16)+" bytes");return 0|e}function eI(e){return!!(null!=e&&e._isBuffer)}function e_(e,t){if(eI(e))return e.length;if("u">typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return eV(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ez(e).length;default:if(r)return eV(e).length;t=(""+t).toLowerCase(),r=!0}}function eN(e,t,n){var r,i,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var s="",a=t;a<n;++a){s+=(r=e[a])<16?"0"+r.toString(16):r.toString(16)}return s}(this,t,n);case"utf8":case"utf-8":return eM(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}(this,t,n);case"base64":return r=this,i=t,s=n,0===i&&s===r.length?ey(r):ey(r.slice(i,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),i="",s=0;s<r.length;s+=2)i+=String.fromCharCode(r[s]+256*r[s+1]);return i}(this,t,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function eL(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function eO(e,t,n,r,i){if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),isNaN(n*=1)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(i)return -1;else n=e.length-1;else if(n<0)if(!i)return -1;else n=0;if("string"==typeof t&&(t=eE.from(t,r)),eI(t))return 0===t.length?-1:eD(e,t,n,r,i);if("number"==typeof t){if(t&=255,eE.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return eD(e,[t],n,r,i)}throw TypeError("val must be string, number or Buffer")}function eD(e,t,n,r,i){var s,a=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,o/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(s=n;s<o;s++)if(u(e,s)===u(t,-1===c?0:s-c)){if(-1===c&&(c=s),s-c+1===l)return c*a}else -1!==c&&(s-=s-c),c=-1}else for(n+l>o&&(n=o-l),s=n;s>=0;s--){for(var p=!0,d=0;d<l;d++)if(u(e,s+d)!==u(t,d)){p=!1;break}if(p)return s}return -1}eE.TYPED_ARRAY_SUPPORT=void 0===ec.TYPED_ARRAY_SUPPORT||ec.TYPED_ARRAY_SUPPORT,eT(),eE.poolSize=8192,eE._augment=function(e){return e.__proto__=eE.prototype,e},eE.from=function(e,t,n){return ek(null,e,t,n)},eE.TYPED_ARRAY_SUPPORT&&(eE.prototype.__proto__=Uint8Array.prototype,eE.__proto__=Uint8Array,"u">typeof Symbol&&Symbol.species&&eE[Symbol.species]),eE.alloc=function(e,t,n){return(ew(e),e<=0)?ev(null,e):void 0!==t?"string"==typeof n?ev(null,e).fill(t,n):ev(null,e).fill(t):ev(null,e)},eE.allocUnsafe=function(e){return eA(null,e)},eE.allocUnsafeSlow=function(e){return eA(null,e)},eE.isBuffer=function(e){var t;return null!=e&&(!!e._isBuffer||eX(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&eX(t.slice(0,0)))},eE.compare=function(e,t){if(!eI(e)||!eI(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},eE.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}},eE.concat=function(e,t){if(!eS(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return eE.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=eE.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!eI(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},eE.byteLength=e_,eE.prototype._isBuffer=!0,eE.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)eL(this,t,t+1);return this},eE.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)eL(this,t,t+3),eL(this,t+1,t+2);return this},eE.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)eL(this,t,t+7),eL(this,t+1,t+6),eL(this,t+2,t+5),eL(this,t+3,t+4);return this},eE.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?eM(this,0,e):eN.apply(this,arguments)},eE.prototype.equals=function(e){if(!eI(e))throw TypeError("Argument must be a Buffer");return this===e||0===eE.compare(this,e)},eE.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},eE.prototype.compare=function(e,t,n,r,i){if(!eI(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var s=i-r,a=n-t,o=Math.min(s,a),l=this.slice(r,i),u=e.slice(t,n),c=0;c<o;++c)if(l[c]!==u[c]){s=l[c],a=u[c];break}return s<a?-1:+(a<s)},eE.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},eE.prototype.indexOf=function(e,t,n){return eO(this,e,t,n,!0)},eE.prototype.lastIndexOf=function(e,t,n){return eO(this,e,t,n,!1)};function eM(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var s,a,o,l,u=e[i],c=null,p=u>239?4:u>223?3:u>191?2:1;if(i+p<=n)switch(p){case 1:u<128&&(c=u);break;case 2:(192&(s=e[i+1]))==128&&(l=(31&u)<<6|63&s)>127&&(c=l);break;case 3:s=e[i+1],a=e[i+2],(192&s)==128&&(192&a)==128&&(l=(15&u)<<12|(63&s)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:s=e[i+1],a=e[i+2],o=e[i+3],(192&s)==128&&(192&a)==128&&(192&o)==128&&(l=(15&u)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(c=l)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}var d=r,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var h="",m=0;m<f;)h+=String.fromCharCode.apply(String,d.slice(m,m+=4096));return h}function eF(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function eB(e,t,n,r,i,s){if(!eI(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function ej(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-n,2);i<s;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}function eR(e,t,n,r){t<0&&(t=0xffffffff+t+1);for(var i=0,s=Math.min(e.length-n,4);i<s;++i)e[n+i]=t>>>(r?i:3-i)*8&255}function e$(e,t,n,r,i,s){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function eU(e,t,n,r,i){return i||e$(e,t,n,4),eb(e,t,n,r,23,4),n+4}function eq(e,t,n,r,i){return i||e$(e,t,n,8),eb(e,t,n,r,52,8),n+8}eE.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,s,a,o,l,u,c,p,d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var f=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var s=t.length;if(s%2!=0)throw TypeError("Invalid hex string");r>s/2&&(r=s/2);for(var a=0;a<r;++a){var o=parseInt(t.substr(2*a,2),16);if(isNaN(o))break;e[n+a]=o}return a}(this,e,t,n);case"utf8":case"utf-8":return i=t,s=n,eW(eV(e,this.length-i),this,i,s);case"ascii":return a=t,o=n,eW(eJ(e),this,a,o);case"latin1":case"binary":return function(e,t,n,r){return eW(eJ(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,eW(ez(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,p=n,eW(function(e,t){for(var n,r,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,p);default:if(f)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),f=!0}},eE.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},eE.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),eE.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=eE.prototype;else{var i=t-e;n=new eE(i,void 0);for(var s=0;s<i;++s)n[s]=this[s+e]}return n},eE.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||eF(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r},eE.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||eF(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},eE.prototype.readUInt8=function(e,t){return t||eF(e,1,this.length),this[e]},eE.prototype.readUInt16LE=function(e,t){return t||eF(e,2,this.length),this[e]|this[e+1]<<8},eE.prototype.readUInt16BE=function(e,t){return t||eF(e,2,this.length),this[e]<<8|this[e+1]},eE.prototype.readUInt32LE=function(e,t){return t||eF(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},eE.prototype.readUInt32BE=function(e,t){return t||eF(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},eE.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||eF(e,t,this.length);for(var r=this[e],i=1,s=0;++s<t&&(i*=256);)r+=this[e+s]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},eE.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||eF(e,t,this.length);for(var r=t,i=1,s=this[e+--r];r>0&&(i*=256);)s+=this[e+--r]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},eE.prototype.readInt8=function(e,t){return(t||eF(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},eE.prototype.readInt16LE=function(e,t){t||eF(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},eE.prototype.readInt16BE=function(e,t){t||eF(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},eE.prototype.readInt32LE=function(e,t){return t||eF(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},eE.prototype.readInt32BE=function(e,t){return t||eF(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},eE.prototype.readFloatLE=function(e,t){return t||eF(e,4,this.length),eg(this,e,!0,23,4)},eE.prototype.readFloatBE=function(e,t){return t||eF(e,4,this.length),eg(this,e,!1,23,4)},eE.prototype.readDoubleLE=function(e,t){return t||eF(e,8,this.length),eg(this,e,!0,52,8)},eE.prototype.readDoubleBE=function(e,t){return t||eF(e,8,this.length),eg(this,e,!1,52,8)},eE.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;eB(this,e,t,n,i,0)}var s=1,a=0;for(this[t]=255&e;++a<n&&(s*=256);)this[t+a]=e/s&255;return t+n},eE.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;eB(this,e,t,n,i,0)}var s=n-1,a=1;for(this[t+s]=255&e;--s>=0&&(a*=256);)this[t+s]=e/a&255;return t+n},eE.prototype.writeUInt8=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,1,255,0),eE.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},eE.prototype.writeUInt16LE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,2,65535,0),eE.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ej(this,e,t,!0),t+2},eE.prototype.writeUInt16BE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,2,65535,0),eE.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ej(this,e,t,!1),t+2},eE.prototype.writeUInt32LE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,4,0xffffffff,0),eE.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):eR(this,e,t,!0),t+4},eE.prototype.writeUInt32BE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,4,0xffffffff,0),eE.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):eR(this,e,t,!1),t+4},eE.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);eB(this,e,t,n,i-1,-i)}var s=0,a=1,o=0;for(this[t]=255&e;++s<n&&(a*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/a|0)-o&255;return t+n},eE.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t|=0,!r){var i=Math.pow(2,8*n-1);eB(this,e,t,n,i-1,-i)}var s=n-1,a=1,o=0;for(this[t+s]=255&e;--s>=0&&(a*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/a|0)-o&255;return t+n},eE.prototype.writeInt8=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,1,127,-128),eE.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},eE.prototype.writeInt16LE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,2,32767,-32768),eE.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ej(this,e,t,!0),t+2},eE.prototype.writeInt16BE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,2,32767,-32768),eE.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ej(this,e,t,!1),t+2},eE.prototype.writeInt32LE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,4,0x7fffffff,-0x80000000),eE.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):eR(this,e,t,!0),t+4},eE.prototype.writeInt32BE=function(e,t,n){return e*=1,t|=0,n||eB(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),eE.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):eR(this,e,t,!1),t+4},eE.prototype.writeFloatLE=function(e,t,n){return eU(this,e,t,!0,n)},eE.prototype.writeFloatBE=function(e,t,n){return eU(this,e,t,!1,n)},eE.prototype.writeDoubleLE=function(e,t,n){return eq(this,e,t,!0,n)},eE.prototype.writeDoubleBE=function(e,t,n){return eq(this,e,t,!1,n)},eE.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&n<t&&t<r)for(i=s-1;i>=0;--i)e[i+t]=this[i+n];else if(s<1e3||!eE.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},eE.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i,s=e.charCodeAt(0);s<256&&(e=s)}if(void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!eE.isEncoding(r))throw TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=eI(e)?e:eV(new eE(e,r).toString()),o=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var eK=/[^+\/0-9A-Za-z-_]/g;function eV(e,t){t=t||1/0;for(var n,r=e.length,i=null,s=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return s}function eJ(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function ez(e){return function(e){eh||em();var t,n,r,i,s,a,o=e.length;if(o%4>0)throw Error("Invalid string. Length must be a multiple of 4");s="="===e[o-2]?2:+("="===e[o-1]),a=new ef(3*o/4-s),r=s>0?o-4:o;var l=0;for(t=0,n=0;t<r;t+=4,n+=3)i=ed[e.charCodeAt(t)]<<18|ed[e.charCodeAt(t+1)]<<12|ed[e.charCodeAt(t+2)]<<6|ed[e.charCodeAt(t+3)],a[l++]=i>>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===s?(i=ed[e.charCodeAt(t)]<<2|ed[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===s&&(i=ed[e.charCodeAt(t)]<<10|ed[e.charCodeAt(t+1)]<<4|ed[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a}(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(eK,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function eW(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function eX(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function eH(){throw Error("setTimeout has not been defined")}function eY(){throw Error("clearTimeout has not been defined")}var eG=eH,eQ=eY;function eZ(e){if(eG===setTimeout)return setTimeout(e,0);if((eG===eH||!eG)&&setTimeout)return eG=setTimeout,setTimeout(e,0);try{return eG(e,0)}catch(t){try{return eG.call(null,e,0)}catch(t){return eG.call(this,e,0)}}}"function"==typeof ec.setTimeout&&(eG=setTimeout),"function"==typeof ec.clearTimeout&&(eQ=clearTimeout);var e0=[],e1=!1,e2=-1;function e3(){e1&&M&&(e1=!1,M.length?e0=M.concat(e0):e2=-1,e0.length&&e4())}function e4(){if(!e1){var e=eZ(e3);e1=!0;for(var t=e0.length;t;){for(M=e0,e0=[];++e2<t;)M&&M[e2].run();e2=-1,t=e0.length}M=null,e1=!1,function(e){if(eQ===clearTimeout)return clearTimeout(e);if((eQ===eY||!eQ)&&clearTimeout)return eQ=clearTimeout,clearTimeout(e);try{eQ(e)}catch(t){try{return eQ.call(null,e)}catch(t){return eQ.call(this,e)}}}(e)}}function e5(e,t){this.fun=e,this.array=t}e5.prototype.run=function(){this.fun.apply(null,this.array)};var e8={};function e6(){}var e9=ec.performance||{},e7=e9.now||e9.mozNow||e9.msNow||e9.oNow||e9.webkitNow||function(){return new Date().getTime()},te=new Date,tt={nextTick:function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];e0.push(new e5(e,t)),1!==e0.length||e1||eZ(e4)},title:"browser",browser:!0,env:e8,argv:[],version:"",versions:{},on:e6,addListener:e6,once:e6,off:e6,removeListener:e6,removeAllListeners:e6,emit:e6,binding:function(e){throw Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*e7.call(e9),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-te)/1e3}},tn=Object.freeze({__proto__:null}),tr=Object.create,ti=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ta=Object.getOwnPropertyNames,to=Object.getPrototypeOf,tl=Object.prototype.hasOwnProperty,tu=(t={"node_modules/jsesc/jsesc.js"(e,t){var n={},r=n.hasOwnProperty,i=(e,t)=>{for(let n in e)r.call(e,n)&&t(n,e[n])},s=e=>"\\u"+("0000"+e).slice(-4),a=(e,t)=>{let n=e.toString(16);return t?n:n.toUpperCase()},o=n.toString,l=Array.isArray,u={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},c=/[\\\b\f\n\r\t]/,p=/[0-9]/,d=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,f=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,m=(e,t)=>{let n,r,y=()=>{E=v,++t.indentLevel,v=t.indent.repeat(t.indentLevel)},g={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},b=t&&t.json;b&&(g.quotes="double",g.wrap=!0),"single"!=(!(L=t)||i(L,(e,t)=>{g[e]=t}),t=g).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let x="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,T=t.lowercaseHex,v=t.indent.repeat(t.indentLevel),E="",k=t.__inline1__,w=t.__inline2__,A=S?"":"\n",P=!0,C="binary"==t.numbers,I="octal"==t.numbers,_="decimal"==t.numbers,N="hexadecimal"==t.numbers;if(b&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(r=e)&&"[object String]"!=o.call(r)){let r,s,a,u;if(r=e,"[object Map]"==o.call(r))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+m(Array.from(e),t)+")");if(s=e,"[object Set]"==o.call(s))return 0==e.size?"new Set()":"new Set("+m(Array.from(e),t)+")";if(Array.isArray(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+m(Array.from(e),t)+")";if(l(e)){n=[],t.wrap=!0,k&&(t.__inline1__=!1,t.__inline2__=!0),w||y();var L,O,D=e;let r=D.length,i=-1;for(;++i<r;)O=D[i],P=!1,w&&(t.__inline2__=!1),n.push((S||w?"":v)+m(O,t));return P?"[]":w?"["+n.join(", ")+"]":"["+A+n.join(","+A)+A+(S?"":E)+"]"}if("number"==typeof(a=e)||"[object Number]"==o.call(a)||"bigint"==typeof e){let t;if(b)return JSON.stringify(Number(e));if(_)t=String(e);else if(N){let n=e.toString(16);T||(n=n.toUpperCase()),t="0x"+n}else C?t="0b"+e.toString(2):I&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}if("bigint"==typeof e)return b?JSON.stringify(Number(e)):e+"n";return(u=e,"[object Object]"==o.call(u))?(n=[],t.wrap=!0,y(),i(e,(e,r)=>{P=!1,n.push((S?"":v)+m(e,t)+":"+(S?"":" ")+m(r,t))}),P)?"{}":"{"+A+n.join(","+A)+A+(S?"":E)+"}":b?JSON.stringify(e)||"null":String(e)}let M=t.escapeEverything?f:h;return n=e.replace(M,(e,n,r,i,o,l)=>{if(n){if(t.minimal)return n;let e=n.charCodeAt(0),r=n.charCodeAt(1);return t.es6?"\\u{"+a((e-55296)*1024+r-56320+65536,T)+"}":s(a(e,T))+s(a(r,T))}if(r)return s(a(r.charCodeAt(0),T));if("\0"==e&&!b&&!p.test(l.charAt(o+1)))return"\\0";if(i)return i==x||t.escapeEverything?"\\"+i:i;if(c.test(e))return u[e];if(t.minimal&&!d.test(e))return e;let f=a(e.charCodeAt(0),T);return b||f.length>2?s(f):"\\x"+("00"+f).slice(-2)}),"`"==x&&(n=n.replace(/\$\{/g,"\\${")),t.isScriptContext&&(n=n.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,b?"\\u003C!--":"\\x3C!--")),t.wrap&&(n=x+n+x),n};m.version="3.0.2",t.exports=m}},function(){return r||(0,t[ta(t)[0]])((r={exports:{}}).exports,r),r.exports}),tc={},tp={ACCESSOR_TYPES:()=>TT,ALIAS_KEYS:()=>aj,ASSIGNMENT_OPERATORS:()=>aN,AnyTypeAnnotation:()=>d7,ArgumentPlaceholder:()=>hb,ArrayExpression:()=>pj,ArrayPattern:()=>dP,ArrayTypeAnnotation:()=>fe,ArrowFunctionExpression:()=>dC,AssignmentExpression:()=>pR,AssignmentPattern:()=>dA,AwaitExpression:()=>dY,BINARY_OPERATORS:()=>a_,BINARY_TYPES:()=>Sq,BLOCKPARENT_TYPES:()=>SV,BLOCK_TYPES:()=>SJ,BOOLEAN_BINARY_OPERATORS:()=>aC,BOOLEAN_NUMBER_BINARY_OPERATORS:()=>aw,BOOLEAN_UNARY_OPERATORS:()=>aL,BUILDER_KEYS:()=>aU,BigIntLiteral:()=>dZ,BigIntLiteralTypeAnnotation:()=>fI,BinaryExpression:()=>p$,BindExpression:()=>hx,BlockStatement:()=>pV,BooleanLiteral:()=>dt,BooleanLiteralTypeAnnotation:()=>fn,BooleanTypeAnnotation:()=>ft,BreakStatement:()=>pJ,CLASS_TYPES:()=>To,COMMENT_KEYS:()=>av,COMPARISON_BINARY_OPERATORS:()=>aP,COMPLETIONSTATEMENT_TYPES:()=>SX,CONDITIONAL_TYPES:()=>SH,CallExpression:()=>pz,CatchClause:()=>pW,ClassAccessorProperty:()=>hS,ClassBody:()=>dI,ClassDeclaration:()=>dN,ClassExpression:()=>d_,ClassImplements:()=>fi,ClassMethod:()=>dq,ClassPrivateMethod:()=>d5,ClassPrivateProperty:()=>d4,ClassProperty:()=>d3,ConditionalExpression:()=>pX,ContinueStatement:()=>pH,DECLARATION_TYPES:()=>S4,DEPRECATED_ALIASES:()=>oO,DEPRECATED_KEYS:()=>aq,DebuggerStatement:()=>pY,DeclareClass:()=>fs,DeclareExportAllDeclaration:()=>fh,DeclareExportDeclaration:()=>ff,DeclareFunction:()=>fa,DeclareInterface:()=>fo,DeclareModule:()=>fl,DeclareModuleExports:()=>fu,DeclareOpaqueType:()=>fp,DeclareTypeAlias:()=>fc,DeclareVariable:()=>fd,DeclaredPredicate:()=>fm,Decorator:()=>hT,Directive:()=>pq,DirectiveLiteral:()=>pK,DoExpression:()=>hv,DoWhileStatement:()=>pG,ENUMBODY_TYPES:()=>Tg,ENUMMEMBER_TYPES:()=>Tb,EQUALITY_BINARY_OPERATORS:()=>aA,EXPORTDECLARATION_TYPES:()=>Tu,EXPRESSIONWRAPPER_TYPES:()=>SQ,EXPRESSION_TYPES:()=>SU,EmptyStatement:()=>pQ,EmptyTypeAnnotation:()=>fA,EnumBooleanBody:()=>f1,EnumBooleanMember:()=>f5,EnumDeclaration:()=>f0,EnumDefaultedMember:()=>f9,EnumNumberBody:()=>f2,EnumNumberMember:()=>f8,EnumStringBody:()=>f3,EnumStringMember:()=>f6,EnumSymbolBody:()=>f4,ExistsTypeAnnotation:()=>fy,ExportAllDeclaration:()=>dL,ExportDefaultDeclaration:()=>dO,ExportDefaultSpecifier:()=>hE,ExportNamedDeclaration:()=>dD,ExportNamespaceSpecifier:()=>d0,ExportSpecifier:()=>dM,ExpressionStatement:()=>pZ,FLATTENABLE_KEYS:()=>aS,FLIPPED_ALIAS_KEYS:()=>aR,FLOWBASEANNOTATION_TYPES:()=>Th,FLOWDECLARATION_TYPES:()=>Tm,FLOWPREDICATE_TYPES:()=>Ty,FLOWTYPE_TYPES:()=>Tf,FLOW_TYPES:()=>Td,FORXSTATEMENT_TYPES:()=>S0,FOR_INIT_KEYS:()=>aT,FOR_TYPES:()=>SZ,FUNCTIONPARAMETER_TYPES:()=>S5,FUNCTIONPARENT_TYPES:()=>S2,FUNCTION_TYPES:()=>S1,File:()=>p0,ForInStatement:()=>p1,ForOfStatement:()=>dF,ForStatement:()=>p2,FunctionDeclaration:()=>p3,FunctionExpression:()=>p4,FunctionTypeAnnotation:()=>fg,FunctionTypeParam:()=>fb,GenericTypeAnnotation:()=>fx,IMMUTABLE_TYPES:()=>Te,IMPORTOREXPORTDECLARATION_TYPES:()=>Tl,INHERIT_KEYS:()=>aF,Identifier:()=>p5,IfStatement:()=>p8,Import:()=>dQ,ImportAttribute:()=>d9,ImportDeclaration:()=>dB,ImportDefaultSpecifier:()=>dj,ImportExpression:()=>dG,ImportNamespaceSpecifier:()=>dR,ImportSpecifier:()=>d$,IndexedAccessType:()=>f7,InferredPredicate:()=>fS,InterfaceDeclaration:()=>fv,InterfaceExtends:()=>fT,InterfaceTypeAnnotation:()=>fE,InterpreterDirective:()=>pU,IntersectionTypeAnnotation:()=>fk,JSXAttribute:()=>ht,JSXClosingElement:()=>hn,JSXClosingFragment:()=>hm,JSXElement:()=>hr,JSXEmptyExpression:()=>hi,JSXExpressionContainer:()=>hs,JSXFragment:()=>hf,JSXIdentifier:()=>ho,JSXMemberExpression:()=>hl,JSXNamespacedName:()=>hu,JSXOpeningElement:()=>hc,JSXOpeningFragment:()=>hh,JSXSpreadAttribute:()=>hp,JSXSpreadChild:()=>ha,JSXText:()=>hd,JSX_TYPES:()=>Tx,LITERAL_TYPES:()=>S7,LOGICAL_OPERATORS:()=>aE,LOOP_TYPES:()=>SY,LVAL_TYPES:()=>S6,LabeledStatement:()=>p6,LogicalExpression:()=>dr,METHOD_TYPES:()=>Tn,MISCELLANEOUS_TYPES:()=>TS,MODULEDECLARATION_TYPES:()=>TA,MODULESPECIFIER_TYPES:()=>Tc,MemberExpression:()=>di,MetaProperty:()=>dU,MixedTypeAnnotation:()=>fw,ModuleExpression:()=>hk,NODE_FIELDS:()=>a$,NODE_PARENT_VALIDATIONS:()=>aK,NODE_UNION_SHAPES__PRIVATE:()=>aV,NUMBER_BINARY_OPERATORS:()=>aI,NUMBER_UNARY_OPERATORS:()=>aO,NewExpression:()=>ds,NullLiteral:()=>de,NullLiteralTypeAnnotation:()=>fr,NullableTypeAnnotation:()=>fP,NumberLiteralTypeAnnotation:()=>fC,NumberTypeAnnotation:()=>f_,NumericLiteral:()=>p7,OBJECTMEMBER_TYPES:()=>Tr,ObjectExpression:()=>dl,ObjectMethod:()=>du,ObjectPattern:()=>dK,ObjectProperty:()=>dc,ObjectTypeAnnotation:()=>fN,ObjectTypeCallProperty:()=>fO,ObjectTypeIndexer:()=>fD,ObjectTypeInternalSlot:()=>fL,ObjectTypeProperty:()=>fM,ObjectTypeSpreadProperty:()=>fF,OpaqueType:()=>fB,OptionalCallExpression:()=>d2,OptionalIndexedAccessType:()=>he,OptionalMemberExpression:()=>d1,PATTERNLIKE_TYPES:()=>S8,PATTERN_TYPES:()=>Ta,PLACEHOLDERS:()=>oS,PLACEHOLDERS_ALIAS:()=>oT,PLACEHOLDERS_FLIPPED_ALIAS:()=>ov,PRIVATE_TYPES:()=>Tp,PROPERTY_TYPES:()=>Ti,PUREISH_TYPES:()=>S3,ParenthesizedExpression:()=>dh,Placeholder:()=>hy,PrivateName:()=>d8,Program:()=>da,QualifiedTypeIdentifier:()=>fj,RegExpLiteral:()=>dn,RestElement:()=>dp,ReturnStatement:()=>dd,SCOPABLE_TYPES:()=>SK,STANDARDIZED_TYPES:()=>S$,STATEMENT_OR_BLOCK_KEYS:()=>ax,STATEMENT_TYPES:()=>Sz,STRING_UNARY_OPERATORS:()=>aD,SequenceExpression:()=>df,SpreadElement:()=>dV,StaticBlock:()=>d6,StringLiteral:()=>p9,StringLiteralTypeAnnotation:()=>fR,StringTypeAnnotation:()=>f$,Super:()=>dJ,SwitchCase:()=>dm,SwitchStatement:()=>dy,SymbolTypeAnnotation:()=>fU,TERMINATORLESS_TYPES:()=>SW,TSAnyKeyword:()=>hF,TSArrayType:()=>h2,TSAsExpression:()=>mf,TSBASETYPE_TYPES:()=>Tw,TSBigIntKeyword:()=>hj,TSBooleanKeyword:()=>hB,TSCallSignatureDeclaration:()=>hN,TSClassImplements:()=>mo,TSConditionalType:()=>h7,TSConstructSignatureDeclaration:()=>hL,TSConstructorType:()=>hG,TSDeclareFunction:()=>hC,TSDeclareMethod:()=>hI,TSENTITYNAME_TYPES:()=>S9,TSEnumBody:()=>my,TSEnumDeclaration:()=>mg,TSEnumMember:()=>mb,TSExportAssignment:()=>mw,TSExternalModuleReference:()=>mE,TSFunctionType:()=>hY,TSImportEqualsDeclaration:()=>mv,TSImportType:()=>mT,TSIndexSignature:()=>hM,TSIndexedAccessType:()=>mr,TSInferType:()=>me,TSInstantiationExpression:()=>md,TSInterfaceBody:()=>mc,TSInterfaceDeclaration:()=>mu,TSInterfaceHeritage:()=>ml,TSIntersectionType:()=>h9,TSIntrinsicKeyword:()=>hR,TSLiteralType:()=>ma,TSMappedType:()=>mi,TSMethodSignature:()=>hD,TSModuleBlock:()=>mS,TSModuleDeclaration:()=>mx,TSNamedTupleMember:()=>h8,TSNamespaceExportDeclaration:()=>mA,TSNeverKeyword:()=>h$,TSNonNullExpression:()=>mk,TSNullKeyword:()=>hU,TSNumberKeyword:()=>hq,TSObjectKeyword:()=>hK,TSOptionalType:()=>h4,TSParameterProperty:()=>hP,TSParenthesizedType:()=>mt,TSPropertySignature:()=>hO,TSQualifiedName:()=>h_,TSRestType:()=>h5,TSSatisfiesExpression:()=>mh,TSStringKeyword:()=>hV,TSSymbolKeyword:()=>hJ,TSTYPEELEMENT_TYPES:()=>TE,TSTYPE_TYPES:()=>Tk,TSTemplateLiteralType:()=>ms,TSThisType:()=>hH,TSTupleType:()=>h3,TSTypeAliasDeclaration:()=>mp,TSTypeAnnotation:()=>mP,TSTypeAssertion:()=>mm,TSTypeLiteral:()=>h1,TSTypeOperator:()=>mn,TSTypeParameter:()=>m_,TSTypeParameterDeclaration:()=>mI,TSTypeParameterInstantiation:()=>mC,TSTypePredicate:()=>hZ,TSTypeQuery:()=>h0,TSTypeReference:()=>hQ,TSUndefinedKeyword:()=>hz,TSUnionType:()=>h6,TSUnknownKeyword:()=>hW,TSVoidKeyword:()=>hX,TYPES:()=>oD,TYPESCRIPT_TYPES:()=>Tv,TaggedTemplateExpression:()=>dz,TemplateElement:()=>dW,TemplateLiteral:()=>dX,ThisExpression:()=>dg,ThisTypeAnnotation:()=>fq,ThrowStatement:()=>db,TopicReference:()=>hw,TryStatement:()=>dx,TupleTypeAnnotation:()=>fK,TypeAlias:()=>fJ,TypeAnnotation:()=>fz,TypeCastExpression:()=>fW,TypeParameter:()=>fX,TypeParameterDeclaration:()=>fH,TypeParameterInstantiation:()=>fY,TypeofTypeAnnotation:()=>fV,UNARYLIKE_TYPES:()=>Ts,UNARY_OPERATORS:()=>aM,UPDATE_OPERATORS:()=>ak,USERWHITESPACABLE_TYPES:()=>Tt,UnaryExpression:()=>dS,UnionTypeAnnotation:()=>fG,UpdateExpression:()=>dT,V8IntrinsicIdentifier:()=>hg,VISITOR_KEYS:()=>aB,VariableDeclaration:()=>dv,VariableDeclarator:()=>dE,Variance:()=>fQ,VoidPattern:()=>hA,VoidTypeAnnotation:()=>fZ,WHILE_TYPES:()=>SG,WhileStatement:()=>dk,WithStatement:()=>dw,YieldExpression:()=>dH,__internal__deprecationWarning:()=>tP,addComment:()=>SO,addComments:()=>SL,anyTypeAnnotation:()=>ue,appendToMemberExpression:()=>TK,argumentPlaceholder:()=>cx,arrayExpression:()=>o$,arrayPattern:()=>lC,arrayTypeAnnotation:()=>ut,arrowFunctionExpression:()=>lI,assertAccessor:()=>So,assertAnyTypeAnnotation:()=>y4,assertArgumentPlaceholder:()=>bf,assertArrayExpression:()=>mD,assertArrayPattern:()=>yv,assertArrayTypeAnnotation:()=>y5,assertArrowFunctionExpression:()=>yE,assertAssignmentExpression:()=>mM,assertAssignmentPattern:()=>yT,assertAwaitExpression:()=>yJ,assertBigIntLiteral:()=>yX,assertBigIntLiteralTypeAnnotation:()=>gk,assertBinary:()=>xC,assertBinaryExpression:()=>mF,assertBindExpression:()=>bh,assertBlock:()=>xN,assertBlockParent:()=>x_,assertBlockStatement:()=>m$,assertBooleanLiteral:()=>m6,assertBooleanLiteralTypeAnnotation:()=>y6,assertBooleanTypeAnnotation:()=>y8,assertBreakStatement:()=>mU,assertCallExpression:()=>mq,assertCatchClause:()=>mK,assertClass:()=>x3,assertClassAccessorProperty:()=>bm,assertClassBody:()=>yk,assertClassDeclaration:()=>yA,assertClassExpression:()=>yw,assertClassImplements:()=>y7,assertClassMethod:()=>yB,assertClassPrivateMethod:()=>y0,assertClassPrivateProperty:()=>yZ,assertClassProperty:()=>yQ,assertCompletionStatement:()=>xD,assertConditional:()=>xM,assertConditionalExpression:()=>mV,assertContinueStatement:()=>mJ,assertDebuggerStatement:()=>mz,assertDeclaration:()=>xV,assertDeclareClass:()=>ge,assertDeclareExportAllDeclaration:()=>gu,assertDeclareExportDeclaration:()=>gl,assertDeclareFunction:()=>gt,assertDeclareInterface:()=>gn,assertDeclareModule:()=>gr,assertDeclareModuleExports:()=>gi,assertDeclareOpaqueType:()=>ga,assertDeclareTypeAlias:()=>gs,assertDeclareVariable:()=>go,assertDeclaredPredicate:()=>gc,assertDecorator:()=>by,assertDirective:()=>mj,assertDirectiveLiteral:()=>mR,assertDoExpression:()=>bg,assertDoWhileStatement:()=>mW,assertEmptyStatement:()=>mX,assertEmptyTypeAnnotation:()=>gT,assertEnumBody:()=>Sr,assertEnumBooleanBody:()=>gY,assertEnumBooleanMember:()=>g0,assertEnumDeclaration:()=>gH,assertEnumDefaultedMember:()=>g3,assertEnumMember:()=>Si,assertEnumNumberBody:()=>gG,assertEnumNumberMember:()=>g1,assertEnumStringBody:()=>gQ,assertEnumStringMember:()=>g2,assertEnumSymbolBody:()=>gZ,assertExistsTypeAnnotation:()=>gp,assertExportAllDeclaration:()=>yP,assertExportDeclaration:()=>x5,assertExportDefaultDeclaration:()=>yC,assertExportDefaultSpecifier:()=>bb,assertExportNamedDeclaration:()=>yI,assertExportNamespaceSpecifier:()=>yH,assertExportSpecifier:()=>y_,assertExpression:()=>xP,assertExpressionStatement:()=>mH,assertExpressionWrapper:()=>xj,assertFile:()=>mY,assertFlow:()=>x9,assertFlowBaseAnnotation:()=>Se,assertFlowDeclaration:()=>St,assertFlowPredicate:()=>Sn,assertFlowType:()=>x7,assertFor:()=>xR,assertForInStatement:()=>mG,assertForOfStatement:()=>yN,assertForStatement:()=>mQ,assertForXStatement:()=>x$,assertFunction:()=>xU,assertFunctionDeclaration:()=>mZ,assertFunctionExpression:()=>m0,assertFunctionParameter:()=>xJ,assertFunctionParent:()=>xq,assertFunctionTypeAnnotation:()=>gd,assertFunctionTypeParam:()=>gf,assertGenericTypeAnnotation:()=>gh,assertIdentifier:()=>m1,assertIfStatement:()=>m2,assertImmutable:()=>xY,assertImport:()=>yW,assertImportAttribute:()=>y3,assertImportDeclaration:()=>yL,assertImportDefaultSpecifier:()=>yO,assertImportExpression:()=>yz,assertImportNamespaceSpecifier:()=>yD,assertImportOrExportDeclaration:()=>x4,assertImportSpecifier:()=>yM,assertIndexedAccessType:()=>g4,assertInferredPredicate:()=>gm,assertInterfaceDeclaration:()=>gg,assertInterfaceExtends:()=>gy,assertInterfaceTypeAnnotation:()=>gb,assertInterpreterDirective:()=>mB,assertIntersectionTypeAnnotation:()=>gx,assertJSX:()=>Ss,assertJSXAttribute:()=>g8,assertJSXClosingElement:()=>g6,assertJSXClosingFragment:()=>bc,assertJSXElement:()=>g9,assertJSXEmptyExpression:()=>g7,assertJSXExpressionContainer:()=>be,assertJSXFragment:()=>bl,assertJSXIdentifier:()=>bn,assertJSXMemberExpression:()=>br,assertJSXNamespacedName:()=>bi,assertJSXOpeningElement:()=>bs,assertJSXOpeningFragment:()=>bu,assertJSXSpreadAttribute:()=>ba,assertJSXSpreadChild:()=>bt,assertJSXText:()=>bo,assertLVal:()=>xW,assertLabeledStatement:()=>m3,assertLiteral:()=>xH,assertLogicalExpression:()=>m7,assertLoop:()=>xF,assertMemberExpression:()=>ye,assertMetaProperty:()=>yF,assertMethod:()=>xQ,assertMiscellaneous:()=>Sa,assertMixedTypeAnnotation:()=>gS,assertModuleDeclaration:()=>Sy,assertModuleExpression:()=>bx,assertModuleSpecifier:()=>x8,assertNewExpression:()=>yt,assertNode:()=>mL,assertNullLiteral:()=>m8,assertNullLiteralTypeAnnotation:()=>y9,assertNullableTypeAnnotation:()=>gv,assertNumberLiteral:()=>Sd,assertNumberLiteralTypeAnnotation:()=>gE,assertNumberTypeAnnotation:()=>gw,assertNumericLiteral:()=>m5,assertObjectExpression:()=>yr,assertObjectMember:()=>xZ,assertObjectMethod:()=>yi,assertObjectPattern:()=>yj,assertObjectProperty:()=>ys,assertObjectTypeAnnotation:()=>gA,assertObjectTypeCallProperty:()=>gC,assertObjectTypeIndexer:()=>gI,assertObjectTypeInternalSlot:()=>gP,assertObjectTypeProperty:()=>g_,assertObjectTypeSpreadProperty:()=>gN,assertOpaqueType:()=>gL,assertOptionalCallExpression:()=>yG,assertOptionalIndexedAccessType:()=>g5,assertOptionalMemberExpression:()=>yY,assertParenthesizedExpression:()=>yu,assertPattern:()=>x2,assertPatternLike:()=>xz,assertPlaceholder:()=>bp,assertPrivate:()=>x6,assertPrivateName:()=>y1,assertProgram:()=>yn,assertProperty:()=>x0,assertPureish:()=>xK,assertQualifiedTypeIdentifier:()=>gO,assertRegExpLiteral:()=>m9,assertRegexLiteral:()=>Sf,assertRestElement:()=>ya,assertRestProperty:()=>Sh,assertReturnStatement:()=>yo,assertScopable:()=>xI,assertSequenceExpression:()=>yl,assertSpreadElement:()=>yR,assertSpreadProperty:()=>Sm,assertStandardized:()=>xA,assertStatement:()=>xL,assertStaticBlock:()=>y2,assertStringLiteral:()=>m4,assertStringLiteralTypeAnnotation:()=>gD,assertStringTypeAnnotation:()=>gM,assertSuper:()=>y$,assertSwitchCase:()=>yc,assertSwitchStatement:()=>yp,assertSymbolTypeAnnotation:()=>gF,assertTSAnyKeyword:()=>bN,assertTSArrayType:()=>bG,assertTSAsExpression:()=>xl,assertTSBaseType:()=>Sp,assertTSBigIntKeyword:()=>bO,assertTSBooleanKeyword:()=>bL,assertTSCallSignatureDeclaration:()=>bA,assertTSClassImplements:()=>xn,assertTSConditionalType:()=>b4,assertTSConstructSignatureDeclaration:()=>bP,assertTSConstructorType:()=>bz,assertTSDeclareFunction:()=>bE,assertTSDeclareMethod:()=>bk,assertTSEntityName:()=>xX,assertTSEnumBody:()=>xp,assertTSEnumDeclaration:()=>xd,assertTSEnumMember:()=>xf,assertTSExportAssignment:()=>xS,assertTSExternalModuleReference:()=>xb,assertTSFunctionType:()=>bJ,assertTSImportEqualsDeclaration:()=>xg,assertTSImportType:()=>xy,assertTSIndexSignature:()=>b_,assertTSIndexedAccessType:()=>b9,assertTSInferType:()=>b5,assertTSInstantiationExpression:()=>xo,assertTSInterfaceBody:()=>xs,assertTSInterfaceDeclaration:()=>xi,assertTSInterfaceHeritage:()=>xr,assertTSIntersectionType:()=>b3,assertTSIntrinsicKeyword:()=>bD,assertTSLiteralType:()=>xt,assertTSMappedType:()=>b7,assertTSMethodSignature:()=>bI,assertTSModuleBlock:()=>xm,assertTSModuleDeclaration:()=>xh,assertTSNamedTupleMember:()=>b1,assertTSNamespaceExportDeclaration:()=>xT,assertTSNeverKeyword:()=>bM,assertTSNonNullExpression:()=>xx,assertTSNullKeyword:()=>bF,assertTSNumberKeyword:()=>bB,assertTSObjectKeyword:()=>bj,assertTSOptionalType:()=>bZ,assertTSParameterProperty:()=>bv,assertTSParenthesizedType:()=>b8,assertTSPropertySignature:()=>bC,assertTSQualifiedName:()=>bw,assertTSRestType:()=>b0,assertTSSatisfiesExpression:()=>xu,assertTSStringKeyword:()=>bR,assertTSSymbolKeyword:()=>b$,assertTSTemplateLiteralType:()=>xe,assertTSThisType:()=>bV,assertTSTupleType:()=>bQ,assertTSType:()=>Sc,assertTSTypeAliasDeclaration:()=>xa,assertTSTypeAnnotation:()=>xv,assertTSTypeAssertion:()=>xc,assertTSTypeElement:()=>Su,assertTSTypeLiteral:()=>bY,assertTSTypeOperator:()=>b6,assertTSTypeParameter:()=>xw,assertTSTypeParameterDeclaration:()=>xk,assertTSTypeParameterInstantiation:()=>xE,assertTSTypePredicate:()=>bX,assertTSTypeQuery:()=>bH,assertTSTypeReference:()=>bW,assertTSUndefinedKeyword:()=>bU,assertTSUnionType:()=>b2,assertTSUnknownKeyword:()=>bq,assertTSVoidKeyword:()=>bK,assertTaggedTemplateExpression:()=>yU,assertTemplateElement:()=>yq,assertTemplateLiteral:()=>yK,assertTerminatorless:()=>xO,assertThisExpression:()=>yd,assertThisTypeAnnotation:()=>gB,assertThrowStatement:()=>yf,assertTopicReference:()=>bS,assertTryStatement:()=>yh,assertTupleTypeAnnotation:()=>gj,assertTypeAlias:()=>g$,assertTypeAnnotation:()=>gU,assertTypeCastExpression:()=>gq,assertTypeParameter:()=>gK,assertTypeParameterDeclaration:()=>gV,assertTypeParameterInstantiation:()=>gJ,assertTypeScript:()=>Sl,assertTypeofTypeAnnotation:()=>gR,assertUnaryExpression:()=>ym,assertUnaryLike:()=>x1,assertUnionTypeAnnotation:()=>gz,assertUpdateExpression:()=>yy,assertUserWhitespacable:()=>xG,assertV8IntrinsicIdentifier:()=>bd,assertVariableDeclaration:()=>yg,assertVariableDeclarator:()=>yb,assertVariance:()=>gW,assertVoidPattern:()=>bT,assertVoidTypeAnnotation:()=>gX,assertWhile:()=>xB,assertWhileStatement:()=>yx,assertWithStatement:()=>yS,assertYieldExpression:()=>yV,assignmentExpression:()=>oU,assignmentPattern:()=>lP,awaitExpression:()=>lG,bigIntLiteral:()=>l0,bigIntLiteralTypeAnnotation:()=>u_,binaryExpression:()=>oq,bindExpression:()=>cS,blockStatement:()=>oz,booleanLiteral:()=>lr,booleanLiteralTypeAnnotation:()=>ur,booleanTypeAnnotation:()=>un,breakStatement:()=>oW,buildMatchMemberExpression:()=>af,buildUndefinedNode:()=>ST,callExpression:()=>oX,catchClause:()=>oH,classAccessorProperty:()=>cT,classBody:()=>l_,classDeclaration:()=>lL,classExpression:()=>lN,classImplements:()=>us,classMethod:()=>lK,classPrivateMethod:()=>l8,classPrivateProperty:()=>l5,classProperty:()=>l4,clone:()=>SC,cloneDeep:()=>SI,cloneDeepWithoutLoc:()=>S_,cloneNode:()=>Sw,cloneWithoutLoc:()=>SN,conditionalExpression:()=>oY,continueStatement:()=>oG,createFlowUnionType:()=>Sx,createTSUnionType:()=>SS,createTypeAnnotationBasedOnTypeof:()=>Sg,createUnionTypeAnnotation:()=>Sx,debuggerStatement:()=>oQ,declareClass:()=>ua,declareExportAllDeclaration:()=>um,declareExportDeclaration:()=>uh,declareFunction:()=>uo,declareInterface:()=>ul,declareModule:()=>uu,declareModuleExports:()=>uc,declareOpaqueType:()=>ud,declareTypeAlias:()=>up,declareVariable:()=>uf,declaredPredicate:()=>uy,decorator:()=>cv,directive:()=>oV,directiveLiteral:()=>oJ,doExpression:()=>cE,doWhileStatement:()=>oZ,emptyStatement:()=>o0,emptyTypeAnnotation:()=>uP,ensureBlock:()=>TC,enumBooleanBody:()=>u2,enumBooleanMember:()=>u8,enumDeclaration:()=>u1,enumDefaultedMember:()=>u7,enumNumberBody:()=>u3,enumNumberMember:()=>u6,enumStringBody:()=>u4,enumStringMember:()=>u9,enumSymbolBody:()=>u5,existsTypeAnnotation:()=>ug,exportAllDeclaration:()=>lO,exportDefaultDeclaration:()=>lD,exportDefaultSpecifier:()=>ck,exportNamedDeclaration:()=>lM,exportNamespaceSpecifier:()=>l1,exportSpecifier:()=>lF,expressionStatement:()=>o1,file:()=>o2,forInStatement:()=>o3,forOfStatement:()=>lB,forStatement:()=>o4,functionDeclaration:()=>o5,functionExpression:()=>o8,functionTypeAnnotation:()=>ub,functionTypeParam:()=>ux,genericTypeAnnotation:()=>uS,getAssignmentIdentifiers:()=>Tz,getBindingIdentifiers:()=>TW,getFunctionName:()=>TY,getOuterBindingIdentifiers:()=>TX,identifier:()=>o6,ifStatement:()=>o9,import:()=>lZ,importAttribute:()=>l7,importDeclaration:()=>lj,importDefaultSpecifier:()=>lR,importExpression:()=>lQ,importNamespaceSpecifier:()=>l$,importSpecifier:()=>lU,indexedAccessType:()=>ce,inferredPredicate:()=>uT,inheritInnerComments:()=>SM,inheritLeadingComments:()=>SF,inheritTrailingComments:()=>SB,inherits:()=>TV,inheritsComments:()=>Sj,interfaceDeclaration:()=>uE,interfaceExtends:()=>uv,interfaceTypeAnnotation:()=>uk,interpreterDirective:()=>oK,intersectionTypeAnnotation:()=>uw,is:()=>ag,isAccessor:()=>an,isAnyTypeAnnotation:()=>nQ,isArgumentPlaceholder:()=>il,isArrayExpression:()=>tC,isArrayPattern:()=>ny,isArrayTypeAnnotation:()=>nZ,isArrowFunctionExpression:()=>ng,isAssignmentExpression:()=>tI,isAssignmentPattern:()=>nm,isAwaitExpression:()=>nR,isBigIntLiteral:()=>nq,isBigIntLiteralTypeAnnotation:()=>rb,isBinary:()=>sk,isBinaryExpression:()=>t_,isBindExpression:()=>iu,isBinding:()=>TQ,isBlock:()=>sP,isBlockParent:()=>sA,isBlockScoped:()=>T0,isBlockStatement:()=>tD,isBooleanLiteral:()=>t1,isBooleanLiteralTypeAnnotation:()=>n1,isBooleanTypeAnnotation:()=>n0,isBreakStatement:()=>tM,isCallExpression:()=>tF,isCatchClause:()=>tB,isClass:()=>sQ,isClassAccessorProperty:()=>ic,isClassBody:()=>nb,isClassDeclaration:()=>nS,isClassExpression:()=>nx,isClassImplements:()=>n3,isClassMethod:()=>nN,isClassPrivateMethod:()=>nX,isClassPrivateProperty:()=>nW,isClassProperty:()=>nz,isCompletionStatement:()=>s_,isConditional:()=>sN,isConditionalExpression:()=>tj,isContinueStatement:()=>tR,isDebuggerStatement:()=>t$,isDeclaration:()=>s$,isDeclareClass:()=>n4,isDeclareExportAllDeclaration:()=>rr,isDeclareExportDeclaration:()=>rn,isDeclareFunction:()=>n5,isDeclareInterface:()=>n8,isDeclareModule:()=>n6,isDeclareModuleExports:()=>n9,isDeclareOpaqueType:()=>re,isDeclareTypeAlias:()=>n7,isDeclareVariable:()=>rt,isDeclaredPredicate:()=>ri,isDecorator:()=>ip,isDirective:()=>tL,isDirectiveLiteral:()=>tO,isDoExpression:()=>id,isDoWhileStatement:()=>tU,isEmptyStatement:()=>tq,isEmptyTypeAnnotation:()=>rm,isEnumBody:()=>s9,isEnumBooleanBody:()=>rV,isEnumBooleanMember:()=>rX,isEnumDeclaration:()=>rK,isEnumDefaultedMember:()=>rG,isEnumMember:()=>s7,isEnumNumberBody:()=>rJ,isEnumNumberMember:()=>rH,isEnumStringBody:()=>rz,isEnumStringMember:()=>rY,isEnumSymbolBody:()=>rW,isExistsTypeAnnotation:()=>rs,isExportAllDeclaration:()=>nT,isExportDeclaration:()=>s0,isExportDefaultDeclaration:()=>nv,isExportDefaultSpecifier:()=>ih,isExportNamedDeclaration:()=>nE,isExportNamespaceSpecifier:()=>nK,isExportSpecifier:()=>nk,isExpression:()=>sE,isExpressionStatement:()=>tK,isExpressionWrapper:()=>sD,isFile:()=>tV,isFlow:()=>s3,isFlowBaseAnnotation:()=>s5,isFlowDeclaration:()=>s8,isFlowPredicate:()=>s6,isFlowType:()=>s4,isFor:()=>sM,isForInStatement:()=>tJ,isForOfStatement:()=>nw,isForStatement:()=>tz,isForXStatement:()=>sF,isFunction:()=>sB,isFunctionDeclaration:()=>tW,isFunctionExpression:()=>tX,isFunctionParameter:()=>sU,isFunctionParent:()=>sj,isFunctionTypeAnnotation:()=>ra,isFunctionTypeParam:()=>ro,isGenericTypeAnnotation:()=>rl,isIdentifier:()=>tH,isIfStatement:()=>tY,isImmutable:()=>T1,isImport:()=>nU,isImportAttribute:()=>nG,isImportDeclaration:()=>nA,isImportDefaultSpecifier:()=>nP,isImportExpression:()=>n$,isImportNamespaceSpecifier:()=>nC,isImportOrExportDeclaration:()=>sZ,isImportSpecifier:()=>nI,isIndexedAccessType:()=>rQ,isInferredPredicate:()=>ru,isInterfaceDeclaration:()=>rp,isInterfaceExtends:()=>rc,isInterfaceTypeAnnotation:()=>rd,isInterpreterDirective:()=>tN,isIntersectionTypeAnnotation:()=>rf,isJSX:()=>ae,isJSXAttribute:()=>r0,isJSXClosingElement:()=>r1,isJSXClosingFragment:()=>is,isJSXElement:()=>r2,isJSXEmptyExpression:()=>r3,isJSXExpressionContainer:()=>r4,isJSXFragment:()=>ir,isJSXIdentifier:()=>r8,isJSXMemberExpression:()=>r6,isJSXNamespacedName:()=>r9,isJSXOpeningElement:()=>r7,isJSXOpeningFragment:()=>ii,isJSXSpreadAttribute:()=>ie,isJSXSpreadChild:()=>r5,isJSXText:()=>it,isLVal:()=>sK,isLabeledStatement:()=>tG,isLet:()=>TZ,isLiteral:()=>sJ,isLogicalExpression:()=>t3,isLoop:()=>sL,isMemberExpression:()=>t4,isMetaProperty:()=>n_,isMethod:()=>sW,isMiscellaneous:()=>at,isMixedTypeAnnotation:()=>rh,isModuleDeclaration:()=>ap,isModuleExpression:()=>im,isModuleSpecifier:()=>s1,isNewExpression:()=>t5,isNode:()=>mN,isNodesEquivalent:()=>function e(t,n){if("object"!=typeof t||"object"!=typeof n||null==t||null==n)return t===n;if(t.type!==n.type)return!1;let r=Object.keys(a$[t.type]||t.type),i=aB[t.type];for(let s of r){let r=t[s],a=n[s];if(typeof r!=typeof a)return!1;if(null!=r||null!=a){if(null==r||null==a)return!1;if(Array.isArray(r)){if(!Array.isArray(a)||r.length!==a.length)return!1;for(let t=0;t<r.length;t++)if(!e(r[t],a[t]))return!1;continue}if("object"==typeof r&&!i?.includes(s)){for(let e of Object.keys(r))if(r[e]!==a[e])return!1;continue}if(!e(r,a))return!1}}return!0},isNullLiteral:()=>t0,isNullLiteralTypeAnnotation:()=>n2,isNullableTypeAnnotation:()=>ry,isNumberLiteral:()=>ao,isNumberLiteralTypeAnnotation:()=>rg,isNumberTypeAnnotation:()=>rx,isNumericLiteral:()=>tZ,isObjectExpression:()=>t6,isObjectMember:()=>sX,isObjectMethod:()=>t9,isObjectPattern:()=>nL,isObjectProperty:()=>t7,isObjectTypeAnnotation:()=>rS,isObjectTypeCallProperty:()=>rv,isObjectTypeIndexer:()=>rE,isObjectTypeInternalSlot:()=>rT,isObjectTypeProperty:()=>rk,isObjectTypeSpreadProperty:()=>rw,isOpaqueType:()=>rA,isOptionalCallExpression:()=>nJ,isOptionalIndexedAccessType:()=>rZ,isOptionalMemberExpression:()=>nV,isParenthesizedExpression:()=>nr,isPattern:()=>sG,isPatternLike:()=>sq,isPlaceholder:()=>ia,isPlaceholderType:()=>ay,isPrivate:()=>s2,isPrivateName:()=>nH,isProgram:()=>t8,isProperty:()=>sH,isPureish:()=>sR,isQualifiedTypeIdentifier:()=>rP,isReferenced:()=>T2,isRegExpLiteral:()=>t2,isRegexLiteral:()=>al,isRestElement:()=>ne,isRestProperty:()=>au,isReturnStatement:()=>nt,isScopable:()=>sw,isScope:()=>T3,isSequenceExpression:()=>nn,isSpecifierDefault:()=>T4,isSpreadElement:()=>nO,isSpreadProperty:()=>ac,isStandardized:()=>sv,isStatement:()=>sC,isStaticBlock:()=>nY,isStringLiteral:()=>tQ,isStringLiteralTypeAnnotation:()=>rC,isStringTypeAnnotation:()=>rI,isSuper:()=>nD,isSwitchCase:()=>ni,isSwitchStatement:()=>ns,isSymbolTypeAnnotation:()=>r_,isTSAnyKeyword:()=>iP,isTSArrayType:()=>iW,isTSAsExpression:()=>si,isTSBaseType:()=>aa,isTSBigIntKeyword:()=>iI,isTSBooleanKeyword:()=>iC,isTSCallSignatureDeclaration:()=>iv,isTSClassImplements:()=>i9,isTSConditionalType:()=>i0,isTSConstructSignatureDeclaration:()=>iE,isTSConstructorType:()=>iq,isTSDeclareFunction:()=>ix,isTSDeclareMethod:()=>iS,isTSEntityName:()=>sV,isTSEnumBody:()=>so,isTSEnumDeclaration:()=>sl,isTSEnumMember:()=>su,isTSExportAssignment:()=>sy,isTSExternalModuleReference:()=>sh,isTSFunctionType:()=>iU,isTSImportEqualsDeclaration:()=>sf,isTSImportType:()=>sd,isTSIndexSignature:()=>iA,isTSIndexedAccessType:()=>i4,isTSInferType:()=>i1,isTSInstantiationExpression:()=>sr,isTSInterfaceBody:()=>st,isTSInterfaceDeclaration:()=>se,isTSInterfaceHeritage:()=>i7,isTSIntersectionType:()=>iZ,isTSIntrinsicKeyword:()=>i_,isTSLiteralType:()=>i6,isTSMappedType:()=>i5,isTSMethodSignature:()=>iw,isTSModuleBlock:()=>sp,isTSModuleDeclaration:()=>sc,isTSNamedTupleMember:()=>iG,isTSNamespaceExportDeclaration:()=>sg,isTSNeverKeyword:()=>iN,isTSNonNullExpression:()=>sm,isTSNullKeyword:()=>iL,isTSNumberKeyword:()=>iO,isTSObjectKeyword:()=>iD,isTSOptionalType:()=>iH,isTSParameterProperty:()=>ib,isTSParenthesizedType:()=>i2,isTSPropertySignature:()=>ik,isTSQualifiedName:()=>iT,isTSRestType:()=>iY,isTSSatisfiesExpression:()=>ss,isTSStringKeyword:()=>iM,isTSSymbolKeyword:()=>iF,isTSTemplateLiteralType:()=>i8,isTSThisType:()=>i$,isTSTupleType:()=>iX,isTSType:()=>as,isTSTypeAliasDeclaration:()=>sn,isTSTypeAnnotation:()=>sb,isTSTypeAssertion:()=>sa,isTSTypeElement:()=>ai,isTSTypeLiteral:()=>iz,isTSTypeOperator:()=>i3,isTSTypeParameter:()=>sT,isTSTypeParameterDeclaration:()=>sS,isTSTypeParameterInstantiation:()=>sx,isTSTypePredicate:()=>iV,isTSTypeQuery:()=>iJ,isTSTypeReference:()=>iK,isTSUndefinedKeyword:()=>iB,isTSUnionType:()=>iQ,isTSUnknownKeyword:()=>ij,isTSVoidKeyword:()=>iR,isTaggedTemplateExpression:()=>nM,isTemplateElement:()=>nF,isTemplateLiteral:()=>nB,isTerminatorless:()=>sI,isThisExpression:()=>na,isThisTypeAnnotation:()=>rN,isThrowStatement:()=>no,isTopicReference:()=>iy,isTryStatement:()=>nl,isTupleTypeAnnotation:()=>rL,isType:()=>am,isTypeAlias:()=>rD,isTypeAnnotation:()=>rM,isTypeCastExpression:()=>rF,isTypeParameter:()=>rB,isTypeParameterDeclaration:()=>rj,isTypeParameterInstantiation:()=>rR,isTypeScript:()=>ar,isTypeofTypeAnnotation:()=>rO,isUnaryExpression:()=>nu,isUnaryLike:()=>sY,isUnionTypeAnnotation:()=>r$,isUpdateExpression:()=>nc,isUserWhitespacable:()=>sz,isV8IntrinsicIdentifier:()=>io,isValidES3Identifier:()=>T8,isValidIdentifier:()=>ab,isVar:()=>T6,isVariableDeclaration:()=>np,isVariableDeclarator:()=>nd,isVariance:()=>rU,isVoidPattern:()=>ig,isVoidTypeAnnotation:()=>rq,isWhile:()=>sO,isWhileStatement:()=>nf,isWithStatement:()=>nh,isYieldExpression:()=>nj,jsxAttribute:()=>cn,jsxClosingElement:()=>cr,jsxClosingFragment:()=>cy,jsxElement:()=>ci,jsxEmptyExpression:()=>cs,jsxExpressionContainer:()=>ca,jsxFragment:()=>ch,jsxIdentifier:()=>cl,jsxMemberExpression:()=>cu,jsxNamespacedName:()=>cc,jsxOpeningElement:()=>cp,jsxOpeningFragment:()=>cm,jsxSpreadAttribute:()=>cd,jsxSpreadChild:()=>co,jsxText:()=>cf,labeledStatement:()=>o7,logicalExpression:()=>ls,matchesPattern:()=>ad,memberExpression:()=>la,metaProperty:()=>lq,mixedTypeAnnotation:()=>uA,moduleExpression:()=>cw,newExpression:()=>lo,nullLiteral:()=>ln,nullLiteralTypeAnnotation:()=>ui,nullableTypeAnnotation:()=>uC,numberLiteral:()=>pL,numberLiteralTypeAnnotation:()=>uI,numberTypeAnnotation:()=>uN,numericLiteral:()=>lt,objectExpression:()=>lu,objectMethod:()=>lc,objectPattern:()=>lV,objectProperty:()=>lp,objectTypeAnnotation:()=>uL,objectTypeCallProperty:()=>uD,objectTypeIndexer:()=>uM,objectTypeInternalSlot:()=>uO,objectTypeProperty:()=>uF,objectTypeSpreadProperty:()=>uB,opaqueType:()=>uj,optionalCallExpression:()=>l3,optionalIndexedAccessType:()=>ct,optionalMemberExpression:()=>l2,parenthesizedExpression:()=>lm,placeholder:()=>cg,prependToMemberExpression:()=>TJ,privateName:()=>l6,program:()=>ll,qualifiedTypeIdentifier:()=>uR,react:()=>T9,regExpLiteral:()=>li,regexLiteral:()=>pO,removeComments:()=>SR,removeProperties:()=>Tj,removePropertiesDeep:()=>TR,removeTypeDuplicates:()=>Sb,restElement:()=>ld,restProperty:()=>pD,returnStatement:()=>lf,sequenceExpression:()=>lh,shallowEqual:()=>tk,spreadElement:()=>lJ,spreadProperty:()=>pM,staticBlock:()=>l9,stringLiteral:()=>le,stringLiteralTypeAnnotation:()=>u$,stringTypeAnnotation:()=>uU,super:()=>lz,switchCase:()=>ly,switchStatement:()=>lg,symbolTypeAnnotation:()=>uq,taggedTemplateExpression:()=>lW,templateElement:()=>lX,templateLiteral:()=>lH,thisExpression:()=>lb,thisTypeAnnotation:()=>uK,throwStatement:()=>lx,toBindingIdentifierName:()=>T_,toBlock:()=>TP,toComputedKey:()=>TN,toExpression:()=>TL,toIdentifier:()=>TI,toKeyAlias:()=>T$,toStatement:()=>TU,topicReference:()=>cA,traverse:()=>TG,traverseFast:()=>TM,tryStatement:()=>lS,tsAnyKeyword:()=>cB,tsArrayType:()=>c3,tsAsExpression:()=>ph,tsBigIntKeyword:()=>cR,tsBooleanKeyword:()=>cj,tsCallSignatureDeclaration:()=>cL,tsClassImplements:()=>pl,tsConditionalType:()=>pe,tsConstructSignatureDeclaration:()=>cO,tsConstructorType:()=>cQ,tsDeclareFunction:()=>cI,tsDeclareMethod:()=>c_,tsEnumBody:()=>pg,tsEnumDeclaration:()=>pb,tsEnumMember:()=>px,tsExportAssignment:()=>pA,tsExternalModuleReference:()=>pk,tsFunctionType:()=>cG,tsImportEqualsDeclaration:()=>pE,tsImportType:()=>pv,tsIndexSignature:()=>cF,tsIndexedAccessType:()=>pi,tsInferType:()=>pt,tsInstantiationExpression:()=>pf,tsInterfaceBody:()=>pp,tsInterfaceDeclaration:()=>pc,tsInterfaceHeritage:()=>pu,tsIntersectionType:()=>c7,tsIntrinsicKeyword:()=>c$,tsLiteralType:()=>po,tsMappedType:()=>ps,tsMethodSignature:()=>cM,tsModuleBlock:()=>pT,tsModuleDeclaration:()=>pS,tsNamedTupleMember:()=>c6,tsNamespaceExportDeclaration:()=>pP,tsNeverKeyword:()=>cU,tsNonNullExpression:()=>pw,tsNullKeyword:()=>cq,tsNumberKeyword:()=>cK,tsObjectKeyword:()=>cV,tsOptionalType:()=>c5,tsParameterProperty:()=>cC,tsParenthesizedType:()=>pn,tsPropertySignature:()=>cD,tsQualifiedName:()=>cN,tsRestType:()=>c8,tsSatisfiesExpression:()=>pm,tsStringKeyword:()=>cJ,tsSymbolKeyword:()=>cz,tsTemplateLiteralType:()=>pa,tsThisType:()=>cY,tsTupleType:()=>c4,tsTypeAliasDeclaration:()=>pd,tsTypeAnnotation:()=>pC,tsTypeAssertion:()=>py,tsTypeLiteral:()=>c2,tsTypeOperator:()=>pr,tsTypeParameter:()=>pN,tsTypeParameterDeclaration:()=>p_,tsTypeParameterInstantiation:()=>pI,tsTypePredicate:()=>c0,tsTypeQuery:()=>c1,tsTypeReference:()=>cZ,tsUndefinedKeyword:()=>cW,tsUnionType:()=>c9,tsUnknownKeyword:()=>cX,tsVoidKeyword:()=>cH,tupleTypeAnnotation:()=>uV,typeAlias:()=>uz,typeAnnotation:()=>uW,typeCastExpression:()=>uX,typeParameter:()=>uH,typeParameterDeclaration:()=>uY,typeParameterInstantiation:()=>uG,typeofTypeAnnotation:()=>uJ,unaryExpression:()=>lT,unionTypeAnnotation:()=>uQ,updateExpression:()=>lv,v8IntrinsicIdentifier:()=>cb,validate:()=>oM,valueToNode:()=>function e(t){if(void 0===t)return o6("undefined");if(!0===t||!1===t)return lr(t);if(null===t)return ln();if("string"==typeof t)return le(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=lt(Math.abs(t));else e=oq("/",Number.isNaN(t)?lt(0):lt(1),lt(0));return(t<0||Object.is(t,-0))&&(e=lT("-",e)),e}if("bigint"==typeof t)if(t<0)return lT("-",l0(-t));else return l0(t);if("[object RegExp]"===Tq(t))return li(t.source,/\/([a-z]*)$/.exec(t.toString())[1]);if(Array.isArray(t))return o$(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){let n=[];for(let r of Object.keys(t)){let i,s=!1;ab(r)?"__proto__"===r?(s=!0,i=le(r)):i=o6(r):i=le(r),n.push(lp(i,e(t[r]),s))}return lu(n)}throw Error("don't know how to turn this value into a node")},variableDeclaration:()=>lE,variableDeclarator:()=>lk,variance:()=>uZ,voidPattern:()=>cP,voidTypeAnnotation:()=>u0,whileStatement:()=>lw,withStatement:()=>lA,yieldExpression:()=>lY};for(var td in tp)ti(tc,td,{get:tp[td],enumerable:!0});var tf=/[\p{ID_Start}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d]/u,th=/[\p{ID_Continue}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d\u05c8\u05c9\u0b53\u0b54\u1acf-\u1af0]/u,tm=[1979,4,385,25,1388,2,18,21,3100,0,678,43,22,0,1662,0,6,10,209,310,18458,24,3,24,287,4,6146,7,1239,4,47,23,96,114,14,913,15,50,8017,5,64,0,9534,0,2169,5,7,86,15,6,55,50,1729,30,2,2,2,1,2,6,3,4,10,1,53307,5,223,0,5764,11,21763,4297,39815,11327],ty=[3787,4,33,11,3173,7,633,9,7,0,45879,1,296,2,9,1,3,0,33,1,5218,0,3,0,8,1,6,0];function tg(e,t){let n=65536;for(let r=0,i=t.length;r<i&&!((n+=t[r])>e);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function tb(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&th.test(String.fromCharCode(e)):!isNaN(e)&&e<=1114111&&(th.test(String.fromCodePoint(e))||tg(e,tm)||tg(e,ty)))))}var tx=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"]),tS=new Set(["implements","interface","let","package","private","protected","public","static","yield"]);function tT(e,t){return t&&"await"===e||"enum"===e}function tv(e,t){return tT(e,t)||tS.has(e)}function tE(e,t,n,r,i,s,a,o){let l,u=t;return{n:l,pos:t}=function(e,t,n,r,i){let s=t,a=!1,o=0;for(let s=0,l=null==n?1/0:n;s<l;++s){let n,s=e.charCodeAt(t);if(95===s&&"bail"!==i)return e.charCodeAt(t-1),e.charCodeAt(t+1),{n:null,pos:t};if(s>=97)n=s-97+10;else if(s>=65)n=s-65+10;else n=s>=48&&s<=57?s-48:1/0;if(n>=16)if(n<=9)return{n:null,pos:t};else if(r)n=0,a=!0;else break;++t,o=16*o+n}return t===s||null!=n&&t-s!==n||a?{n:null,pos:t}:{n:o,pos:t}}(e,t,i,s,!1),null===l&&(t=u-1),{code:l,pos:t}}function tk(e,t){for(let n of Object.keys(t))if(e[n]!==t[n])return!1;return!0}function tw(e,t,n){return t?.type===e&&(null==n||tk(t,n))}var tA=new Set;function tP(e,t,n="",r=e){if(tA.has(r))return;tA.add(r);let{internal:i,trace:s}=function(){let e,{stackTraceLimit:t,prepareStackTrace:n}=Error;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(t,n){e=n},Error().stack,Error.stackTraceLimit=t,Error.prepareStackTrace=n,!e)return{internal:!1,trace:""};let r=e.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map(e=>` at ${e}`).join("\n")}}();i||console.warn(`${n}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
|
2
|
+
${s}`)}function tC(e,t){return tw("ArrayExpression",e,t)}function tI(e,t){return tw("AssignmentExpression",e,t)}function t_(e,t){return tw("BinaryExpression",e,t)}function tN(e,t){return tw("InterpreterDirective",e,t)}function tL(e,t){return tw("Directive",e,t)}function tO(e,t){return tw("DirectiveLiteral",e,t)}function tD(e,t){return tw("BlockStatement",e,t)}function tM(e,t){return tw("BreakStatement",e,t)}function tF(e,t){return tw("CallExpression",e,t)}function tB(e,t){return tw("CatchClause",e,t)}function tj(e,t){return tw("ConditionalExpression",e,t)}function tR(e,t){return tw("ContinueStatement",e,t)}function t$(e,t){return tw("DebuggerStatement",e,t)}function tU(e,t){return tw("DoWhileStatement",e,t)}function tq(e,t){return tw("EmptyStatement",e,t)}function tK(e,t){return tw("ExpressionStatement",e,t)}function tV(e,t){return tw("File",e,t)}function tJ(e,t){return tw("ForInStatement",e,t)}function tz(e,t){return tw("ForStatement",e,t)}function tW(e,t){return tw("FunctionDeclaration",e,t)}function tX(e,t){return tw("FunctionExpression",e,t)}function tH(e,t){return tw("Identifier",e,t)}function tY(e,t){return tw("IfStatement",e,t)}function tG(e,t){return tw("LabeledStatement",e,t)}function tQ(e,t){return tw("StringLiteral",e,t)}function tZ(e,t){return tw("NumericLiteral",e,t)}function t0(e,t){return tw("NullLiteral",e,t)}function t1(e,t){return tw("BooleanLiteral",e,t)}function t2(e,t){return tw("RegExpLiteral",e,t)}function t3(e,t){return tw("LogicalExpression",e,t)}function t4(e,t){return tw("MemberExpression",e,t)}function t5(e,t){return tw("NewExpression",e,t)}function t8(e,t){return tw("Program",e,t)}function t6(e,t){return tw("ObjectExpression",e,t)}function t9(e,t){return tw("ObjectMethod",e,t)}function t7(e,t){return tw("ObjectProperty",e,t)}function ne(e,t){return tw("RestElement",e,t)}function nt(e,t){return tw("ReturnStatement",e,t)}function nn(e,t){return tw("SequenceExpression",e,t)}function nr(e,t){return tw("ParenthesizedExpression",e,t)}function ni(e,t){return tw("SwitchCase",e,t)}function ns(e,t){return tw("SwitchStatement",e,t)}function na(e,t){return tw("ThisExpression",e,t)}function no(e,t){return tw("ThrowStatement",e,t)}function nl(e,t){return tw("TryStatement",e,t)}function nu(e,t){return tw("UnaryExpression",e,t)}function nc(e,t){return tw("UpdateExpression",e,t)}function np(e,t){return tw("VariableDeclaration",e,t)}function nd(e,t){return tw("VariableDeclarator",e,t)}function nf(e,t){return tw("WhileStatement",e,t)}function nh(e,t){return tw("WithStatement",e,t)}function nm(e,t){return tw("AssignmentPattern",e,t)}function ny(e,t){return tw("ArrayPattern",e,t)}function ng(e,t){return tw("ArrowFunctionExpression",e,t)}function nb(e,t){return tw("ClassBody",e,t)}function nx(e,t){return tw("ClassExpression",e,t)}function nS(e,t){return tw("ClassDeclaration",e,t)}function nT(e,t){return tw("ExportAllDeclaration",e,t)}function nv(e,t){return tw("ExportDefaultDeclaration",e,t)}function nE(e,t){return tw("ExportNamedDeclaration",e,t)}function nk(e,t){return tw("ExportSpecifier",e,t)}function nw(e,t){return tw("ForOfStatement",e,t)}function nA(e,t){return tw("ImportDeclaration",e,t)}function nP(e,t){return tw("ImportDefaultSpecifier",e,t)}function nC(e,t){return tw("ImportNamespaceSpecifier",e,t)}function nI(e,t){return tw("ImportSpecifier",e,t)}function n_(e,t){return tw("MetaProperty",e,t)}function nN(e,t){return tw("ClassMethod",e,t)}function nL(e,t){return tw("ObjectPattern",e,t)}function nO(e,t){return tw("SpreadElement",e,t)}function nD(e,t){return tw("Super",e,t)}function nM(e,t){return tw("TaggedTemplateExpression",e,t)}function nF(e,t){return tw("TemplateElement",e,t)}function nB(e,t){return tw("TemplateLiteral",e,t)}function nj(e,t){return tw("YieldExpression",e,t)}function nR(e,t){return tw("AwaitExpression",e,t)}function n$(e,t){return tw("ImportExpression",e,t)}function nU(e,t){return tw("Import",e,t)}function nq(e,t){return tw("BigIntLiteral",e,t)}function nK(e,t){return tw("ExportNamespaceSpecifier",e,t)}function nV(e,t){return tw("OptionalMemberExpression",e,t)}function nJ(e,t){return tw("OptionalCallExpression",e,t)}function nz(e,t){return tw("ClassProperty",e,t)}function nW(e,t){return tw("ClassPrivateProperty",e,t)}function nX(e,t){return tw("ClassPrivateMethod",e,t)}function nH(e,t){return tw("PrivateName",e,t)}function nY(e,t){return tw("StaticBlock",e,t)}function nG(e,t){return tw("ImportAttribute",e,t)}function nQ(e,t){return tw("AnyTypeAnnotation",e,t)}function nZ(e,t){return tw("ArrayTypeAnnotation",e,t)}function n0(e,t){return tw("BooleanTypeAnnotation",e,t)}function n1(e,t){return tw("BooleanLiteralTypeAnnotation",e,t)}function n2(e,t){return tw("NullLiteralTypeAnnotation",e,t)}function n3(e,t){return tw("ClassImplements",e,t)}function n4(e,t){return tw("DeclareClass",e,t)}function n5(e,t){return tw("DeclareFunction",e,t)}function n8(e,t){return tw("DeclareInterface",e,t)}function n6(e,t){return tw("DeclareModule",e,t)}function n9(e,t){return tw("DeclareModuleExports",e,t)}function n7(e,t){return tw("DeclareTypeAlias",e,t)}function re(e,t){return tw("DeclareOpaqueType",e,t)}function rt(e,t){return tw("DeclareVariable",e,t)}function rn(e,t){return tw("DeclareExportDeclaration",e,t)}function rr(e,t){return tw("DeclareExportAllDeclaration",e,t)}function ri(e,t){return tw("DeclaredPredicate",e,t)}function rs(e,t){return tw("ExistsTypeAnnotation",e,t)}function ra(e,t){return tw("FunctionTypeAnnotation",e,t)}function ro(e,t){return tw("FunctionTypeParam",e,t)}function rl(e,t){return tw("GenericTypeAnnotation",e,t)}function ru(e,t){return tw("InferredPredicate",e,t)}function rc(e,t){return tw("InterfaceExtends",e,t)}function rp(e,t){return tw("InterfaceDeclaration",e,t)}function rd(e,t){return tw("InterfaceTypeAnnotation",e,t)}function rf(e,t){return tw("IntersectionTypeAnnotation",e,t)}function rh(e,t){return tw("MixedTypeAnnotation",e,t)}function rm(e,t){return tw("EmptyTypeAnnotation",e,t)}function ry(e,t){return tw("NullableTypeAnnotation",e,t)}function rg(e,t){return tw("NumberLiteralTypeAnnotation",e,t)}function rb(e,t){return tw("BigIntLiteralTypeAnnotation",e,t)}function rx(e,t){return tw("NumberTypeAnnotation",e,t)}function rS(e,t){return tw("ObjectTypeAnnotation",e,t)}function rT(e,t){return tw("ObjectTypeInternalSlot",e,t)}function rv(e,t){return tw("ObjectTypeCallProperty",e,t)}function rE(e,t){return tw("ObjectTypeIndexer",e,t)}function rk(e,t){return tw("ObjectTypeProperty",e,t)}function rw(e,t){return tw("ObjectTypeSpreadProperty",e,t)}function rA(e,t){return tw("OpaqueType",e,t)}function rP(e,t){return tw("QualifiedTypeIdentifier",e,t)}function rC(e,t){return tw("StringLiteralTypeAnnotation",e,t)}function rI(e,t){return tw("StringTypeAnnotation",e,t)}function r_(e,t){return tw("SymbolTypeAnnotation",e,t)}function rN(e,t){return tw("ThisTypeAnnotation",e,t)}function rL(e,t){return tw("TupleTypeAnnotation",e,t)}function rO(e,t){return tw("TypeofTypeAnnotation",e,t)}function rD(e,t){return tw("TypeAlias",e,t)}function rM(e,t){return tw("TypeAnnotation",e,t)}function rF(e,t){return tw("TypeCastExpression",e,t)}function rB(e,t){return tw("TypeParameter",e,t)}function rj(e,t){return tw("TypeParameterDeclaration",e,t)}function rR(e,t){return tw("TypeParameterInstantiation",e,t)}function r$(e,t){return tw("UnionTypeAnnotation",e,t)}function rU(e,t){return tw("Variance",e,t)}function rq(e,t){return tw("VoidTypeAnnotation",e,t)}function rK(e,t){return tw("EnumDeclaration",e,t)}function rV(e,t){return tw("EnumBooleanBody",e,t)}function rJ(e,t){return tw("EnumNumberBody",e,t)}function rz(e,t){return tw("EnumStringBody",e,t)}function rW(e,t){return tw("EnumSymbolBody",e,t)}function rX(e,t){return tw("EnumBooleanMember",e,t)}function rH(e,t){return tw("EnumNumberMember",e,t)}function rY(e,t){return tw("EnumStringMember",e,t)}function rG(e,t){return tw("EnumDefaultedMember",e,t)}function rQ(e,t){return tw("IndexedAccessType",e,t)}function rZ(e,t){return tw("OptionalIndexedAccessType",e,t)}function r0(e,t){return tw("JSXAttribute",e,t)}function r1(e,t){return tw("JSXClosingElement",e,t)}function r2(e,t){return tw("JSXElement",e,t)}function r3(e,t){return tw("JSXEmptyExpression",e,t)}function r4(e,t){return tw("JSXExpressionContainer",e,t)}function r5(e,t){return tw("JSXSpreadChild",e,t)}function r8(e,t){return tw("JSXIdentifier",e,t)}function r6(e,t){return tw("JSXMemberExpression",e,t)}function r9(e,t){return tw("JSXNamespacedName",e,t)}function r7(e,t){return tw("JSXOpeningElement",e,t)}function ie(e,t){return tw("JSXSpreadAttribute",e,t)}function it(e,t){return tw("JSXText",e,t)}function ir(e,t){return tw("JSXFragment",e,t)}function ii(e,t){return tw("JSXOpeningFragment",e,t)}function is(e,t){return tw("JSXClosingFragment",e,t)}function ia(e,t){return tw("Placeholder",e,t)}function io(e,t){return tw("V8IntrinsicIdentifier",e,t)}function il(e,t){return tw("ArgumentPlaceholder",e,t)}function iu(e,t){return tw("BindExpression",e,t)}function ic(e,t){return tw("ClassAccessorProperty",e,t)}function ip(e,t){return tw("Decorator",e,t)}function id(e,t){return tw("DoExpression",e,t)}function ih(e,t){return tw("ExportDefaultSpecifier",e,t)}function im(e,t){return tw("ModuleExpression",e,t)}function iy(e,t){return tw("TopicReference",e,t)}function ig(e,t){return tw("VoidPattern",e,t)}function ib(e,t){return tw("TSParameterProperty",e,t)}function ix(e,t){return tw("TSDeclareFunction",e,t)}function iS(e,t){return tw("TSDeclareMethod",e,t)}function iT(e,t){return tw("TSQualifiedName",e,t)}function iv(e,t){return tw("TSCallSignatureDeclaration",e,t)}function iE(e,t){return tw("TSConstructSignatureDeclaration",e,t)}function ik(e,t){return tw("TSPropertySignature",e,t)}function iw(e,t){return tw("TSMethodSignature",e,t)}function iA(e,t){return tw("TSIndexSignature",e,t)}function iP(e,t){return tw("TSAnyKeyword",e,t)}function iC(e,t){return tw("TSBooleanKeyword",e,t)}function iI(e,t){return tw("TSBigIntKeyword",e,t)}function i_(e,t){return tw("TSIntrinsicKeyword",e,t)}function iN(e,t){return tw("TSNeverKeyword",e,t)}function iL(e,t){return tw("TSNullKeyword",e,t)}function iO(e,t){return tw("TSNumberKeyword",e,t)}function iD(e,t){return tw("TSObjectKeyword",e,t)}function iM(e,t){return tw("TSStringKeyword",e,t)}function iF(e,t){return tw("TSSymbolKeyword",e,t)}function iB(e,t){return tw("TSUndefinedKeyword",e,t)}function ij(e,t){return tw("TSUnknownKeyword",e,t)}function iR(e,t){return tw("TSVoidKeyword",e,t)}function i$(e,t){return tw("TSThisType",e,t)}function iU(e,t){return tw("TSFunctionType",e,t)}function iq(e,t){return tw("TSConstructorType",e,t)}function iK(e,t){return tw("TSTypeReference",e,t)}function iV(e,t){return tw("TSTypePredicate",e,t)}function iJ(e,t){return tw("TSTypeQuery",e,t)}function iz(e,t){return tw("TSTypeLiteral",e,t)}function iW(e,t){return tw("TSArrayType",e,t)}function iX(e,t){return tw("TSTupleType",e,t)}function iH(e,t){return tw("TSOptionalType",e,t)}function iY(e,t){return tw("TSRestType",e,t)}function iG(e,t){return tw("TSNamedTupleMember",e,t)}function iQ(e,t){return tw("TSUnionType",e,t)}function iZ(e,t){return tw("TSIntersectionType",e,t)}function i0(e,t){return tw("TSConditionalType",e,t)}function i1(e,t){return tw("TSInferType",e,t)}function i2(e,t){return tw("TSParenthesizedType",e,t)}function i3(e,t){return tw("TSTypeOperator",e,t)}function i4(e,t){return tw("TSIndexedAccessType",e,t)}function i5(e,t){return tw("TSMappedType",e,t)}function i8(e,t){return tw("TSTemplateLiteralType",e,t)}function i6(e,t){return tw("TSLiteralType",e,t)}function i9(e,t){return tw("TSClassImplements",e,t)}function i7(e,t){return tw("TSInterfaceHeritage",e,t)}function se(e,t){return tw("TSInterfaceDeclaration",e,t)}function st(e,t){return tw("TSInterfaceBody",e,t)}function sn(e,t){return tw("TSTypeAliasDeclaration",e,t)}function sr(e,t){return tw("TSInstantiationExpression",e,t)}function si(e,t){return tw("TSAsExpression",e,t)}function ss(e,t){return tw("TSSatisfiesExpression",e,t)}function sa(e,t){return tw("TSTypeAssertion",e,t)}function so(e,t){return tw("TSEnumBody",e,t)}function sl(e,t){return tw("TSEnumDeclaration",e,t)}function su(e,t){return tw("TSEnumMember",e,t)}function sc(e,t){return tw("TSModuleDeclaration",e,t)}function sp(e,t){return tw("TSModuleBlock",e,t)}function sd(e,t){return tw("TSImportType",e,t)}function sf(e,t){return tw("TSImportEqualsDeclaration",e,t)}function sh(e,t){return tw("TSExternalModuleReference",e,t)}function sm(e,t){return tw("TSNonNullExpression",e,t)}function sy(e,t){return tw("TSExportAssignment",e,t)}function sg(e,t){return tw("TSNamespaceExportDeclaration",e,t)}function sb(e,t){return tw("TSTypeAnnotation",e,t)}function sx(e,t){return tw("TSTypeParameterInstantiation",e,t)}function sS(e,t){return tw("TSTypeParameterDeclaration",e,t)}function sT(e,t){return tw("TSTypeParameter",e,t)}function sv(e,t){if(!e)return!1;switch(e.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"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"ImportExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||tk(e,t)}function sE(e,t){if(!e)return!1;switch(e.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"MetaProperty":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"ImportExpression":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"ModuleExpression":case"TopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||tk(e,t)}function sk(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||tk(e,t)}function sw(e,t){if(!e)return!1;switch(e.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("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sA(e,t){if(!e)return!1;switch(e.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("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sC(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||tk(e,t)}function sI(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||tk(e,t)}function s_(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||tk(e,t)}function sN(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||tk(e,t)}function sL(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||tk(e,t)}function sO(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||tk(e,t)}function sD(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||tk(e,t)}function sM(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||tk(e,t)}function sF(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||tk(e,t)}function sB(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||tk(e,t)}function sj(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||tk(e,t)}function sR(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function s$(e,t){if(!e)return!1;switch(e.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":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sU(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sq(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||tk(e,t)}function sK(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||tk(e,t)}function sV(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"ThisExpression":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sJ(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sz(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||tk(e,t)}function sW(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||tk(e,t)}function sX(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||tk(e,t)}function sH(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":case"ClassAccessorProperty":break;default:return!1}return null==t||tk(e,t)}function sY(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||tk(e,t)}function sG(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||tk(e,t)}function sQ(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||tk(e,t)}function sZ(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||tk(e,t)}function s0(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||tk(e,t)}function s1(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||tk(e,t)}function s2(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||tk(e,t)}function s3(){}function s4(){}function s5(){}function s8(){}function s6(){}function s9(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||tk(e,t)}function s7(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||tk(e,t)}function ae(e,t){if(!e)return!1;switch(e.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 null==t||tk(e,t)}function at(e,t){if(!e)return!1;switch(e.type){case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||tk(e,t)}function an(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||tk(e,t))}function ar(e,t){if(!e)return!1;switch(e.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"TSTemplateLiteralType":case"TSLiteralType":case"TSClassImplements":case"TSInterfaceHeritage":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":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 null==t||tk(e,t)}function ai(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||tk(e,t)}function as(e,t){if(!e)return!1;switch(e.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"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSClassImplements":case"TSInterfaceHeritage":case"TSImportType":break;default:return!1}return null==t||tk(e,t)}function aa(e,t){if(!e)return!1;switch(e.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"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||tk(e,t)}function ao(e,t){return tP("isNumberLiteral","isNumericLiteral"),tw("NumberLiteral",e,t)}function al(e,t){return tP("isRegexLiteral","isRegExpLiteral"),tw("RegexLiteral",e,t)}function au(e,t){return tP("isRestProperty","isRestElement"),tw("RestProperty",e,t)}function ac(e,t){return tP("isSpreadProperty","isSpreadElement"),tw("SpreadProperty",e,t)}function ap(e,t){return tP("isModuleDeclaration","isImportOrExportDeclaration"),sZ(e,t)}function ad(e,t,n){var r;let i;if(!(t4(e)||n_(e)))return!1;let s=Array.isArray(t)?t:t.split("."),a=[];for(i=e;t4(r=i)||n_(r);i=i.object??i.meta)a.push(i.property);if(a.push(i),a.length<s.length||!n&&a.length>s.length)return!1;for(let e=0,t=a.length-1;e<s.length;e++,t--){let n,r=a[t];if(tH(r))n=r.name;else if(tQ(r))n=r.value;else if(na(r))n="this";else if(nD(r))n="super";else{if(!nH(r))return!1;n="#"+r.id.name}if(s[e]!==n)return!1}return!0}function af(e,t){let n=e.split(".");return e=>ad(e,n,t)}var ah=af("React.Component");function am(e,t){if(e===t)return!0;if(null==e||aj[t])return!1;let n=aR[t];return!!n?.includes(e)}function ay(e,t){if(e===t)return!0;let n=oT[e];return!!n?.includes(t)}function ag(e,t,n){return!!t&&(am(t.type,e)?void 0===n||tk(t,n):!n&&"Placeholder"===t.type&&e in aR&&ay(t.expectedNode,e))}function ab(e,t=!0){return"string"==typeof e&&!(t&&(tx.has(e)||tv(e,!0)))&&function(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((64512&i)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(i=65536+((1023&i)<<10)+(1023&t))}if(t){var n;if(t=!1,!((n=i)<65?36===n:n<=90||(n<97?95===n:n<=122||(n<=65535?n>=170&&tf.test(String.fromCharCode(n)):!isNaN(n)&&n<=1114111&&(tf.test(String.fromCodePoint(n))||tg(n,tm))))))return!1}else if(!tb(i))return!1}return!t}(e)}var ax=["consequent","body","alternate"],aS=["body","expressions"],aT=["left","init"],av=["leadingComments","trailingComments","innerComments"],aE=["||","&&","??"],ak=["++","--"],aw=[">","<",">=","<="],aA=["==","===","!=","!=="],aP=[...aA,"in","instanceof"],aC=[...aP,...aw],aI=["-","/","%","*","**","&","|",">>",">>>","<<","^"],a_=["+",...aI,...aC,"|>"],aN=["=","+=",...aI.map(e=>e+"="),...aE.map(e=>e+"=")],aL=["delete","!"],aO=["+","-","~"],aD=["typeof"],aM=["void","throw",...aL,...aO,...aD],aF={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},aB={},aj={},aR={},a$={},aU={},aq={},aK={},aV={};function aJ(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function az(e,...t){return Object.assign(e,...t)}function aW(e){return{validate:e}}function aX(...e){return aW(a4(...e))}function aH(e){return{validate:e,optional:!0}}function aY(e,t){return{validate:e,default:t,optional:!1}}function aG(...e){return{validate:a4(...e),optional:!0}}function aQ(e){return a7(a8("array"),a1(e))}function aZ(...e){return aQ(a4(...e))}function a0(...e){return aW(aZ(...e))}function a1(e){let t=oB;function n(n,r,i){if(!Array.isArray(i))return;let s=0,a={toString:()=>`${r}[${s}]`};for(;s<i.length;s++){let r=i[s];e(n,a,r),t(n,a,r)}}return n.each=e,n}function a2(...e){function t(t,n,r){if(!e.includes(r))throw TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t}var a3=[];function a4(...e){let t=new Set;function n(n,r,i){let s=i?.type;if(null!=s){if(t.has(s))return void oB(n,r,i);if("Placeholder"===s){for(let t of e)if(ag(t,i))return void oB(n,r,i)}}throw TypeError(`Property ${r} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s)}`)}return a3.push({types:e,set:t}),n.oneOfNodeTypes=e,n}function a5(...e){function t(t,n,r){let i=aJ(r);for(let s of e)if(i===s||ag(s,r))return void oB(t,n,r);throw TypeError(`Property ${n} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(r?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function a8(e){function t(t,n,r){if(aJ(r)!==e)throw TypeError(`Property ${n} expected type of ${e} but got ${aJ(r)}`)}return t.type=e,t}function a6(e){let t=Object.keys(e);function n(n,r,i){let s=[];for(let r of t)try{oF(n,r,i[r],e[r])}catch(e){if(e instanceof TypeError){s.push(e.message);continue}throw e}if(s.length)throw TypeError(`Property ${r} of ${n.type} expected to have the following:
|
|
3
|
+
${s.join("\n")}`)}return n.shapeOf=e,n}function a9(){return function(e){let t=e;for(;e;){let{type:e}=t;if("OptionalCallExpression"===e){if(t.optional)return;t=t.callee;continue}if("OptionalMemberExpression"===e){if(t.optional)return;t=t.object;continue}break}throw TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${t?.type}`)}}function a7(...e){function t(...n){for(let t of e)t(...n)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var oe=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),ot=new Set(["default","optional","deprecated","validate"]),on={};function or(...e){return(t,n={})=>{let r=n.aliases;r||(n.inherits&&(r=on[n.inherits].aliases?.slice()),n.aliases=r??=[]);let i=e.filter(e=>!r.includes(e));r.unshift(...i),oi(t,n)}}function oi(e,t={}){let n=t.inherits&&on[t.inherits]||{},r=t.visitor||n.visitor||[],i=t.aliases||n.aliases||[],s=t.builder||n.builder||t.visitor||[],a=t.fields;if(!a&&(a={},n.fields))for(let e of Object.getOwnPropertyNames(n.fields)){let t=n.fields[e],r=t.default;if(Array.isArray(r)?r.length>0:r&&"object"==typeof r)throw Error("field defaults can only be primitives or empty arrays currently");a[e]={default:Array.isArray(r)?[]:r,optional:t.optional,deprecated:t.deprecated,validate:t.validate}}for(let n of Object.keys(t))if(!oe.has(n))throw Error(`Unknown type option "${n}" on ${e}`);for(let n of(t.deprecatedAlias&&(aq[t.deprecatedAlias]=e),r.concat(s)))a[n]=a[n]||{};for(let t of Object.keys(a)){let n=a[t];for(let r of(null===n.default&&(n.optional??=!0),void 0===n.default?(n.default=null,n.optional??=!1):n.validate||null==n.default||(n.validate=a8(aJ(n.default))),Object.keys(n)))if(!ot.has(r))throw Error(`Unknown field key "${r}" on ${e}.${t}`)}aB[e]=t.visitor=r,aU[e]=t.builder=s,a$[e]=t.fields=a,aj[e]=t.aliases=i,i.forEach(t=>{aR[t]=aR[t]||[],aR[t].push(e)}),t.validate&&(aK[e]=t.validate),t.unionShape&&(aV[e]=t.unionShape),on[e]=t}var os=Object.defineProperty({__proto__:null,ALIAS_KEYS:aj,BUILDER_KEYS:aU,DEPRECATED_KEYS:aq,FLIPPED_ALIAS_KEYS:aR,NODE_FIELDS:a$,NODE_PARENT_VALIDATIONS:aK,NODE_UNION_SHAPES__PRIVATE:aV,VISITOR_KEYS:aB,allExpandedTypes:a3,arrayOf:aQ,arrayOfType:aZ,assertEach:a1,assertNodeOrValueType:a5,assertNodeType:a4,assertOneOf:a2,assertOptionalChainStart:a9,assertShape:a6,assertValueType:a8,chain:a7,combine:az,default:oi,defineAliasedType:or,validate:aW,validateArrayOfType:a0,validateDefault:aY,validateOptional:aH,validateOptionalType:aG,validateType:aX},Symbol.toStringTag,{value:"Module"}),oa=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:a4("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}}),oo={unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:a4("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:a4("Identifier","PrivateName")}}}]}},ol=or("Standardized");ol("ArrayExpression",{fields:{elements:{validate:aQ(a5("null","Expression","SpreadElement")),default:void 0}},visitor:["elements"],aliases:["Expression"]}),ol("AssignmentExpression",{fields:{operator:{validate:az((i=a2(...aN),s=a2("="),function(e,t,n){(ag("Pattern",e.left)?s:i)(e,t,n)}),{oneOf:aN})},left:{validate:a4("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:a4("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),ol("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:a2(...a_)},left:{validate:(a=a4("Expression"),o=a4("Expression","PrivateName"),az(function(e,t,n){("in"===e.operator?o:a)(e,t,n)},{oneOfNodeTypes:["Expression","PrivateName"]}))},right:{validate:a4("Expression")}},unionShape:{discriminator:"operator",shapes:[{name:"in",value:["in"],properties:{left:{validate:a4("Expression","PrivateName")}}},{name:"notIn",value:a_.filter(e=>"in"!==e),properties:{left:{validate:a4("Expression")}}}]},visitor:["left","right"],aliases:["Binary","Expression"]}),ol("InterpreterDirective",{builder:["value"],fields:{value:{validate:a8("string")}}}),ol("Directive",{visitor:["value"],fields:{value:{validate:a4("DirectiveLiteral")}}}),ol("DirectiveLiteral",{builder:["value"],fields:{value:{validate:a8("string")}}}),ol("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:aZ("Directive"),default:[]},body:a0("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),ol("BreakStatement",{visitor:["label"],fields:{label:{validate:a4("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),ol("CallExpression",{visitor:["callee","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:a4("Expression","Super","Import","V8IntrinsicIdentifier")},arguments:a0("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ol("CatchClause",{visitor:["param","body"],fields:{param:{validate:a4("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:a4("BlockStatement")}},aliases:["Scopable","BlockParent"]}),ol("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:a4("Expression")},consequent:{validate:a4("Expression")},alternate:{validate:a4("Expression")}},aliases:["Expression","Conditional"]}),ol("ContinueStatement",{visitor:["label"],fields:{label:{validate:a4("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),ol("DebuggerStatement",{aliases:["Statement"]}),ol("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:a4("Expression")},body:{validate:a4("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),ol("EmptyStatement",{aliases:["Statement"]}),ol("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:a4("Expression")}},aliases:["Statement","ExpressionWrapper"]}),ol("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:a4("Program")},comments:{validate:a1(a4("CommentBlock","CommentLine")),optional:!0},tokens:{validate:a1(Object.assign(()=>{},{type:"any"})),optional:!0}}}),ol("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:a4("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:a4("Expression")},body:{validate:a4("Statement")}}}),ol("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:a4("VariableDeclaration","Expression"),optional:!0},test:{validate:a4("Expression"),optional:!0},update:{validate:a4("Expression"),optional:!0},body:{validate:a4("Statement")}}});var ou=()=>({params:a0("FunctionParameter"),generator:{default:!1},async:{default:!1}}),oc=()=>({returnType:{validate:a4("TypeAnnotation","TSTypeAnnotation"),optional:!0},typeParameters:{validate:a4("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0}}),op=()=>({...ou(),declare:{validate:a8("boolean"),optional:!0},id:{validate:a4("Identifier"),optional:!0}});ol("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:{...op(),...oc(),body:{validate:a4("BlockStatement")},predicate:{validate:a4("FlowPredicate"),optional:!0}},aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:(l=a4("Identifier"),function(e,t,n){ag("ExportDefaultDeclaration",e)||l(n,"id",n.id)})}),ol("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{...ou(),...oc(),id:{validate:a4("Identifier"),optional:!0},body:{validate:a4("BlockStatement")},predicate:{validate:a4("FlowPredicate"),optional:!0}}});var od=()=>({typeAnnotation:{validate:a4("TypeAnnotation","TSTypeAnnotation"),optional:!0},optional:{validate:a8("boolean"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0}});ol("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:{...od(),name:{validate:a7(a8("string"),az(function(e,t,n){if(!ab(n,!1))throw TypeError(`"${n}" is not a valid identifier name`)},{type:"string"}))}},validate:function(e,t,n){var r;let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,a={computed:!1};if("property"===s){if(ag("MemberExpression",e,a)||ag("OptionalMemberExpression",e,a))return}else if("key"===s){if(ag("Property",e,a)||ag("Method",e,a))return}else if("exported"===s){if(ag("ExportSpecifier",e))return}else if("imported"===s){if(ag("ImportSpecifier",e,{imported:n}))return}else if("meta"===s&&ag("MetaProperty",e,{meta:n}))return;if(r=n.name,(tx.has(r)||tT(n.name,!1))&&"this"!==n.name)throw TypeError(`"${n.name}" is not a valid identifier`)}}),ol("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:a4("Expression")},consequent:{validate:a4("Statement")},alternate:{optional:!0,validate:a4("Statement")}}}),ol("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:a4("Identifier")},body:{validate:a4("Statement")}}}),ol("StringLiteral",{builder:["value"],fields:{value:{validate:a8("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),ol("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:a7(a8("number"),az(function(e,t,n){if(1/n<0||!Number.isFinite(n)){let e=Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${n}) instead.`);if(!Error().stack.includes("regenerator"))throw e}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),ol("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),ol("BooleanLiteral",{builder:["value"],fields:{value:{validate:a8("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),ol("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:a8("string")},flags:{validate:a7(a8("string"),az(function(e,t,n){let r=/[^dgimsuvy]/.exec(n);if(r)throw TypeError(`"${r[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}}),ol("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:a2(...aE)},left:{validate:a4("Expression")},right:{validate:a4("Expression")}}}),ol("MemberExpression",{builder:["object","property","computed"],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],...oo,fields:{object:{validate:a4("Expression","Super")},property:{validate:(u=a4("Identifier","PrivateName"),c=a4("Expression"),az(function(e,t,n){(e.computed?c:u)(e,t,n)},{oneOfNodeTypes:["Expression","Identifier","PrivateName"]}))},computed:{default:!1}}}),ol("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:a4("Expression","V8IntrinsicIdentifier")},arguments:a0("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ol("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:a2("script","module"),default:"script"},interpreter:{validate:a4("InterpreterDirective"),default:null,optional:!0},directives:{validate:aZ("Directive"),default:[]},body:a0("Statement")},aliases:["Scopable","BlockParent","Block"]}),ol("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:a0("ObjectMethod","ObjectProperty","SpreadElement")}}),ol("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],...oa(),fields:{...ou(),...oc(),kind:{validate:a2("method","get","set")},computed:{default:!1},key:{validate:(p=a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),d=a4("Expression"),az(function(e,t,n){(e.computed?d:p)(e,t,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"]}))},decorators:{validate:aZ("Decorator"),optional:!0},body:{validate:a4("BlockStatement")}},aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),ol("ObjectProperty",{builder:["key","value","computed","shorthand"],...oa(!0),fields:{computed:{default:!1},key:{validate:(f=a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),h=a4("Expression"),az(function(e,t,n){(e.computed?h:f)(e,t,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"]}))},value:{validate:a4("Expression","PatternLike")},shorthand:{validate:a7(a8("boolean"),az(function(e,t,n){if(n){if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!ag("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})),default:!1},decorators:{validate:aZ("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:(m=a4("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),y=a4("Expression"),function(e,t,n){(ag("ObjectPattern",e)?m:y)(n,"value",n.value)})}),ol("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike"],deprecatedAlias:"RestProperty",fields:{...od(),argument:{validate:a4("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}},validate:function(e,t){let n=/(\w+)\[(\d+)\]/.exec(t.toString());if(!n)throw Error("Internal Babel error: malformed key.");let[,r,i]=n;if(e[r].length>+i+1)throw TypeError(`RestElement must be last element of ${r}`)}}),ol("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:a4("Expression"),optional:!0}}}),ol("SequenceExpression",{visitor:["expressions"],fields:{expressions:a0("Expression")},aliases:["Expression"]}),ol("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:a4("Expression")}}}),ol("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:a4("Expression"),optional:!0},consequent:a0("Statement")}}),ol("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:a4("Expression")},cases:a0("SwitchCase")}}),ol("ThisExpression",{aliases:["Expression","TSEntityName"]}),ol("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:a4("Expression")}}}),ol("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:a7(a4("BlockStatement"),az(function(e){if(!e.handler&&!e.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:a4("CatchClause")},finalizer:{optional:!0,validate:a4("BlockStatement")}}}),ol("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:a4("Expression")},operator:{validate:a2(...aM)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),ol("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:a4("Identifier","MemberExpression")},operator:{validate:a2(...ak)}},visitor:["argument"],aliases:["Expression"]}),ol("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:a8("boolean"),optional:!0},kind:{validate:a2("var","let","const","using","await using")},declarations:a0("VariableDeclarator")},validate:(g=a4("Identifier","Placeholder"),b=a4("Identifier","ArrayPattern","ObjectPattern","Placeholder"),x=a4("Identifier","VoidPattern","Placeholder"),function(e,t,n){let{kind:r,declarations:i}=n,s=ag("ForXStatement",e,{left:n});if(s&&1!==i.length)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`);for(let e of i)"const"===r||"let"===r||"var"===r?s||e.init?b(e,"id",e.id):g(e,"id",e.id):x(e,"id",e.id)})}),ol("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:a4("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:!0,validate:a8("boolean")},init:{optional:!0,validate:a4("Expression")}}}),ol("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:a4("Expression")},body:{validate:a4("Statement")}}}),ol("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:a4("Expression")},body:{validate:a4("Statement")}}}),ol("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike"],fields:{...od(),left:{validate:a4("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:a4("Expression")}}}),ol("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:{...od(),elements:{validate:a7(a8("array"),a1(a5("null","PatternLike")))}}}),ol("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{...ou(),generator:{default:null,optional:!0,validate:az((e,t,n)=>{if(n)throw TypeError("ArrowFunctionExpression cannot be a generator")},{type:"boolean"})},...oc(),expression:{optional:!0,validate:a8("boolean")},body:{validate:a4("BlockStatement","Expression")},predicate:{validate:a4("FlowPredicate"),optional:!0}}}),ol("ClassBody",{visitor:["body"],fields:{body:a0("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),ol("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:a4("Identifier"),optional:!0},typeParameters:{validate:a4("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:a4("ClassBody")},superClass:{optional:!0,validate:a4("Expression")},superTypeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:aZ("TSClassImplements","ClassImplements"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0},mixins:{validate:a4("InterfaceExtends"),optional:!0}}}),ol("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:a4("Identifier"),optional:!0},typeParameters:{validate:a4("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:a4("ClassBody")},superClass:{optional:!0,validate:a4("Expression")},superTypeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:aZ("TSClassImplements","ClassImplements"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0},mixins:{validate:a4("InterfaceExtends"),optional:!0},declare:{validate:a8("boolean"),optional:!0},abstract:{validate:a8("boolean"),optional:!0}},validate:(S=a4("Identifier"),function(e,t,n){ag("ExportDefaultDeclaration",e)||S(n,"id",n.id)})});var of={attributes:{optional:!0,validate:aZ("ImportAttribute")}};ol("ExportAllDeclaration",{visitor:["source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:a4("StringLiteral")},exportKind:aH(a2("type","value")),...of}}),ol("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:aX("FunctionDeclaration","ClassDeclaration","Expression","TSDeclareFunction","TSInterfaceDeclaration","EnumDeclaration"),exportKind:aH(a2("value"))}}),ol("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:a7(a4("Declaration"),az(function(e,t,n){if(n&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(n&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["VariableDeclaration","FunctionDeclaration","ClassDeclaration","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration","EnumDeclaration","InterfaceDeclaration","OpaqueType","TypeAlias"]}))},...of,specifiers:{default:[],validate:aQ((T=a4("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),v=a4("ExportSpecifier"),az(function(e,t,n){(e.source?T:v)(e,t,n)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})))},source:{validate:a4("StringLiteral"),optional:!0},exportKind:aH(a2("type","value"))}}),ol("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:a4("Identifier","StringLiteral")},exported:{validate:a4("Identifier","StringLiteral")},exportKind:{validate:a2("type","value"),optional:!0}}}),ol("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(E=a4("VariableDeclaration"),k=a4("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"),az(function(e,t,n){ag("VariableDeclaration",n)?E(e,t,n):k(e,t,n)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]}))},right:{validate:a4("Expression")},body:{validate:a4("Statement")},await:{default:!1}}}),ol("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{...of,module:{optional:!0,validate:a8("boolean")},phase:{default:null,validate:a2("source","defer")},specifiers:a0("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:a4("StringLiteral")},importKind:{validate:a2("type","typeof","value"),optional:!0}}}),ol("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:a4("Identifier")}}}),ol("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:a4("Identifier")}}}),ol("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:a4("Identifier")},imported:{validate:a4("Identifier","StringLiteral")},importKind:{validate:a2("type","typeof","value"),optional:!0}}}),ol("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:a7(a4("Identifier"),az(function(e,t,n){let r;switch(n.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta"}if(!ag("Identifier",e.property,{name:r}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:a4("Identifier")}}});var oh=()=>{let e,t;return{abstract:{validate:a8("boolean"),default:!1,optional:!0},accessibility:{validate:a2("public","private","protected"),optional:!0},static:{default:!1},override:{optional:!0,validate:a8("boolean"),default:!1},computed:{default:!1},optional:{validate:a8("boolean"),optional:!0},key:{validate:a7((e=a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=a4("Expression","PrivateName"),function(n,r,i){(n.computed?t:e)(n,r,i)}),a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))}}},om=(e=!0)=>({...ou(),...oh(),params:a0("FunctionParameter","TSParameterProperty"),kind:{validate:a2("get","set","method","constructor"),default:"method"},access:{validate:a7(a8("string"),a2("public","private","protected")),optional:!0},...e?{decorators:{validate:aZ("Decorator"),optional:!0}}:{}});ol("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],...oa(),fields:{...om(),...oc(),body:{validate:a4("BlockStatement")}}}),ol("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:{...od(),properties:a0("RestElement","ObjectProperty")}}),ol("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:a4("Expression")}}}),ol("Super"),ol("TaggedTemplateExpression",{visitor:["tag","typeArguments","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:a4("Expression")},quasi:{validate:a4("TemplateLiteral")},typeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ol("TemplateElement",{builder:["value","tail"],fields:{value:{validate:a7(a6({raw:{validate:a8("string")},cooked:{validate:a8("string"),optional:!0}}),function(e){let t=e.value.raw,n=!1,r=()=>{throw Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:s}=function(e,t,n,r,i,s){let a=n,o=r,l=i,u="",c=null,p=n,{length:d}=t;for(;;){var f,h,m;if(n>=d){s.unterminated(a,o,l),u+=t.slice(p,n);break}let e=t.charCodeAt(n);if(f=e,h=t,m=n,96===f||36===f&&123===h.charCodeAt(m+1)){u+=t.slice(p,n);break}if(92===e){u+=t.slice(p,n);let e=function(e,t,n,r){t++;let i=e=>({pos:t,ch:e,lineStart:n,curLine:r}),s=e.charCodeAt(t++);switch(s){case 110:return i("\n");case 114:return i("\r");case 120:{let s;return{code:s,pos:t}=tE(e,t,n,r,2,!1),i(null===s?null:String.fromCharCode(s))}case 117:{let s;return{code:s,pos:t}=function(e,t,n,r){let i;if(123===e.charCodeAt(t)){if(++t,{code:i,pos:t}=tE(e,t,n,r,e.indexOf("}",t)-t,!0),++t,null!==i&&i>1114111)return{code:null,pos:t}}else({code:i,pos:t}=tE(e,t,n,r,4,!1));return{code:i,pos:t}}(e,t,n,r),i(null===s?null:String.fromCodePoint(s))}case 116:return i(" ");case 98:return i("\b");case 118:return i("\v");case 102:return i("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return i("");case 56:case 57:return i(null);default:if(s>=48&&s<=55){let n=t-1,r=/^[0-7]+/.exec(e.slice(n,t+2))[0],s=parseInt(r,8);s>255&&(s=parseInt(r=r.slice(0,-1),8)),t+=r.length-1;let a=e.charCodeAt(t);if("0"!==r||56===a||57===a)return i(null);return i(String.fromCharCode(s))}return i(String.fromCharCode(s))}}(t,n,r,i);null!==e.ch||c?u+=e.ch:c={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=e),p=n}else 8232===e||8233===e?(++n,++i,r=n):10===e||13===e?(u+=t.slice(p,n)+"\n",++n,13===e&&10===t.charCodeAt(n)&&++n,++i,p=r=n):++n}return{pos:n,str:u,firstInvalidLoc:c,lineStart:r,curLine:i}}("template",t,0,0,0,{unterminated(){n=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!n)throw Error("Invalid raw");e.value.cooked=s?null:i})},tail:{default:!1}}}),ol("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:a0("TemplateElement"),expressions:{validate:a7(a8("array"),a1(a4("Expression","TSType")),function(e,t,n){if(e.quasis.length!==n.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
|
|
4
|
+
Expected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),ol("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:a7(a8("boolean"),az(function(e,t,n){if(n&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:a4("Expression")}}}),ol("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:a4("Expression")}}}),ol("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:a2("source","defer")},source:{validate:a4("Expression")},options:{validate:a4("Expression"),optional:!0}}}),ol("Import"),ol("BigIntLiteral",{builder:["value"],fields:{value:{validate:a8("bigint")}},aliases:["Expression","Pureish","Literal","Immutable"]}),ol("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:a4("Identifier","StringLiteral")}}}),ol("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],...oo,fields:{object:{validate:a4("Expression")},property:{validate:(w=a4("Identifier","PrivateName"),A=a4("Expression"),az(function(e,t,n){(e.computed?A:w)(e,t,n)},{oneOfNodeTypes:["Expression","PrivateName"]}))},computed:{default:!1},optional:{validate:a7(a8("boolean"),a9())}}}),ol("OptionalCallExpression",{visitor:["callee","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:a4("Expression")},arguments:a0("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:a7(a8("boolean"),a9())},typeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ol("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],...oa(),fields:{...oh(),value:{validate:a4("Expression"),optional:!0},definite:{validate:a8("boolean"),optional:!0},typeAnnotation:{validate:a4("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0},readonly:{validate:a8("boolean"),optional:!0},declare:{validate:a8("boolean"),optional:!0},variance:{validate:a4("Variance"),optional:!0}}}),ol("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:a4("PrivateName")},value:{validate:a4("Expression"),optional:!0},typeAnnotation:{validate:a4("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0},static:{validate:a8("boolean"),default:!1},readonly:{validate:a8("boolean"),optional:!0},optional:{validate:a8("boolean"),optional:!0},definite:{validate:a8("boolean"),optional:!0},variance:{validate:a4("Variance"),optional:!0}}}),ol("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:{...om(),...oc(),kind:{validate:a2("get","set","method"),default:"method"},key:{validate:a4("PrivateName")},body:{validate:a4("BlockStatement")}}}),ol("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:a4("Identifier")}}}),ol("StaticBlock",{visitor:["body"],fields:{body:a0("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),ol("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:a4("Identifier","StringLiteral")},value:{validate:a4("StringLiteral")}}});var oy=or("Flow"),og=e=>{let t="DeclareClass"===e;oy(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier"),typeParameters:aG("TypeParameterDeclaration"),extends:aH(aZ("InterfaceExtends")),...t?{mixins:aH(aZ("InterfaceExtends")),implements:aH(aZ("ClassImplements"))}:{},body:aX("ObjectTypeAnnotation")}})};oy("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:aX("FlowType")}}),oy("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aW(a8("boolean"))}}),oy("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("ClassImplements",{visitor:["id","typeParameters"],fields:{id:aX("Identifier"),typeParameters:aG("TypeParameterInstantiation")}}),og("DeclareClass"),oy("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier"),predicate:aG("FlowPredicate")}}),og("DeclareInterface"),oy("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier","StringLiteral"),body:aX("BlockStatement"),kind:aH(a2("CommonJS","ES"))}}),oy("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:aX("TypeAnnotation")}}),oy("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier"),typeParameters:aG("TypeParameterDeclaration"),right:aX("FlowType")}}),oy("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier"),typeParameters:aG("TypeParameterDeclaration"),supertype:aG("FlowType"),impltype:aG("FlowType")}}),oy("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier")}}),oy("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:aG("Flow"),specifiers:aH(aZ("ExportSpecifier","ExportNamespaceSpecifier")),source:aG("StringLiteral"),default:aH(a8("boolean")),...of}}),oy("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:aX("StringLiteral"),exportKind:aH(a2("type","value")),...of}}),oy("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:aX("Expression")}}),oy("ExistsTypeAnnotation",{aliases:["FlowType"]}),oy("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:aG("TypeParameterDeclaration"),params:a0("FunctionTypeParam"),rest:aG("FunctionTypeParam"),this:aG("FunctionTypeParam"),returnType:aX("FlowType")}}),oy("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:aG("Identifier"),typeAnnotation:aX("FlowType"),optional:aH(a8("boolean"))}}),oy("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:aX("Identifier","QualifiedTypeIdentifier"),typeParameters:aG("TypeParameterInstantiation")}}),oy("InferredPredicate",{aliases:["FlowPredicate"]}),oy("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:aX("Identifier","QualifiedTypeIdentifier"),typeParameters:aG("TypeParameterInstantiation")}}),og("InterfaceDeclaration"),oy("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:aH(aZ("InterfaceExtends")),body:aX("ObjectTypeAnnotation")}}),oy("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:aW(aZ("FlowType"))}}),oy("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:aX("FlowType")}}),oy("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aW(a8("number"))}}),oy("BigIntLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aW(a8("bigint"))}}),oy("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:aW(aZ("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:aZ("ObjectTypeIndexer"),optional:!1,default:[]},callProperties:{validate:aZ("ObjectTypeCallProperty"),optional:!1,default:[]},internalSlots:{validate:aZ("ObjectTypeInternalSlot"),optional:!1,default:[]},exact:{validate:a8("boolean"),default:!1},inexact:aH(a8("boolean"))}}),oy("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:aX("Identifier"),value:aX("FlowType"),optional:aW(a8("boolean")),static:aW(a8("boolean")),method:aW(a8("boolean"))}}),oy("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:aX("FlowType"),static:aY(a8("boolean"),!1)}}),oy("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:aG("Identifier"),key:aX("FlowType"),value:aX("FlowType"),static:aY(a8("boolean"),!1),variance:aG("Variance")}}),oy("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:aX("Identifier","StringLiteral","NumericLiteral"),value:aX("FlowType"),kind:{validate:a2("init","get","set"),default:"init",optional:!1},static:aY(a8("boolean"),!1),proto:aY(a8("boolean"),!1),optional:aY(a8("boolean"),!1),variance:aG("Variance"),method:aY(a8("boolean"),!1)}}),oy("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:aX("FlowType")}}),oy("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier"),typeParameters:aG("TypeParameterDeclaration"),supertype:aG("FlowType"),impltype:aX("FlowType")}}),oy("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:aX("Identifier"),qualification:aX("Identifier","QualifiedTypeIdentifier")}}),oy("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aW(a8("string"))}}),oy("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:aW(aZ("FlowType"))}}),oy("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:aX("FlowType","Identifier")}}),oy("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aX("Identifier"),typeParameters:aG("TypeParameterDeclaration"),right:aX("FlowType")}}),oy("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:aX("FlowType","Identifier")}}),oy("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:aX("Expression"),typeAnnotation:aX("TypeAnnotation")}}),oy("TypeParameter",{builder:["name","bound","default","variance"],visitor:["bound","default","variance"],fields:{name:aW(a8("string")),bound:aG("TypeAnnotation"),default:aG("FlowType"),variance:aG("Variance")}}),oy("TypeParameterDeclaration",{visitor:["params"],fields:{params:aW(aZ("TypeParameter"))}}),oy("TypeParameterInstantiation",{visitor:["params"],fields:{params:aW(aZ("FlowType"))}}),oy("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:aW(aZ("FlowType"))}}),oy("Variance",{builder:["kind"],fields:{kind:aW(a2("minus","plus"))}}),oy("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oy("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:aX("Identifier"),body:aX("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});var ob={explicitType:aY(a8("boolean"),!1),hasUnknownMembers:aY(a8("boolean"),!1)};oy("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{...ob,members:a0("EnumBooleanMember")}}),oy("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{...ob,members:a0("EnumNumberMember")}}),oy("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{...ob,members:a0("EnumStringMember","EnumDefaultedMember")}}),oy("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:a0("EnumDefaultedMember"),hasUnknownMembers:aY(a8("boolean"),!1)}}),oy("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:aX("Identifier"),init:aX("BooleanLiteral")}}),oy("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:aX("Identifier"),init:aX("NumericLiteral")}}),oy("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:aX("Identifier"),init:aX("StringLiteral")}}),oy("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:aX("Identifier")}}),oy("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:aX("FlowType"),indexType:aX("FlowType")}}),oy("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:aX("FlowType"),indexType:aX("FlowType"),optional:aY(a8("boolean"),!1)}});var ox=or("JSX");ox("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:a4("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:a4("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),ox("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:a4("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),ox("JSXElement",{builder:["openingElement","closingElement","children"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:{openingElement:{validate:a4("JSXOpeningElement")},closingElement:{optional:!0,validate:a4("JSXClosingElement")},children:a0("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),ox("JSXEmptyExpression",{}),ox("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:a4("Expression","JSXEmptyExpression")}}}),ox("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:a4("Expression")}}}),ox("JSXIdentifier",{builder:["name"],fields:{name:{validate:a8("string")}}}),ox("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:a4("JSXMemberExpression","JSXIdentifier")},property:{validate:a4("JSXIdentifier")}}}),ox("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:a4("JSXIdentifier")},name:{validate:a4("JSXIdentifier")}}}),ox("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeArguments","attributes"],aliases:["Immutable"],fields:{name:{validate:a4("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:a0("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:a4("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ox("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:a4("Expression")}}}),ox("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:a8("string")}}}),ox("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:a4("JSXOpeningFragment")},closingFragment:{validate:a4("JSXClosingFragment")},children:a0("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),ox("JSXOpeningFragment",{aliases:["Immutable"]}),ox("JSXClosingFragment",{aliases:["Immutable"]});var oS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],oT={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of oS){let t=aj[e];t?.length&&(oT[e]=t)}var ov={};Object.keys(oT).forEach(e=>{oT[e].forEach(t=>{Object.hasOwn(ov,t)||(ov[t]=[]),ov[t].push(e)})});var oE=or("Miscellaneous");oE("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:a4("Identifier")},expectedNode:{validate:a2(...oS)},...od()}}),oE("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:a8("string")}}}),oi("ArgumentPlaceholder",{}),oi("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{object:{validate:a5("null","Expression")},callee:{validate:a4("Expression")}}}),oi("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],...oa(!0),fields:{...oh(),key:{validate:a7((P=a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),C=a4("Expression"),function(e,t,n){(e.computed?C:P)(e,t,n)}),a4("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:a4("Expression"),optional:!0},definite:{validate:a8("boolean"),optional:!0},typeAnnotation:{validate:a4("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0},readonly:{validate:a8("boolean"),optional:!0},declare:{validate:a8("boolean"),optional:!0},variance:{validate:a4("Variance"),optional:!0}}}),oi("Decorator",{visitor:["expression"],fields:{expression:{validate:a4("Expression")}}}),oi("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:a4("BlockStatement")},async:{validate:a8("boolean"),default:!1}}}),oi("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:a4("Identifier")}}}),oi("ModuleExpression",{visitor:["body"],fields:{body:{validate:a4("Program")}},aliases:["Expression"]}),oi("TopicReference",{aliases:["Expression"]}),oi("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]});var ok=or("TypeScript"),ow=a8("boolean"),oA=()=>({returnType:{validate:a4("TSTypeAnnotation"),optional:!0},typeParameters:{validate:a4("TSTypeParameterDeclaration"),optional:!0}});ok("TSParameterProperty",{aliases:[],visitor:["parameter"],fields:{accessibility:{validate:a2("public","private","protected"),optional:!0},readonly:{validate:a8("boolean"),optional:!0},parameter:{validate:a4("Identifier","AssignmentPattern")},override:{validate:a8("boolean"),optional:!0},decorators:{validate:aZ("Decorator"),optional:!0}}}),ok("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:{...op(),...oA()}}),ok("TSDeclareMethod",{visitor:["key","typeParameters","params","returnType"],...oa(!0),fields:{...om(!1),...oA()}}),ok("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:aX("TSEntityName"),right:aX("Identifier")}});var oP=()=>({typeParameters:aG("TSTypeParameterDeclaration"),params:a0("ArrayPattern","Identifier","ObjectPattern","RestElement"),returnType:aG("TSTypeAnnotation")}),oC={aliases:["TSTypeElement"],visitor:["typeParameters","params","returnType"],fields:oP()};ok("TSCallSignatureDeclaration",oC),ok("TSConstructSignatureDeclaration",oC);var oI=()=>({key:aX("Expression"),computed:{default:!1},optional:aH(ow)});for(let e of(ok("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:{...oI(),readonly:aH(ow),typeAnnotation:aG("TSTypeAnnotation"),kind:{optional:!0,validate:a2("get","set")}}}),ok("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","params","returnType"],fields:{...oP(),...oI(),kind:{validate:a2("method","get","set"),default:"method"}}}),ok("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:aH(ow),static:aH(ow),parameters:a0("Identifier"),typeAnnotation:aG("TSTypeAnnotation")}}),["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"]))ok(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});ok("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var o_={aliases:["TSType"],visitor:["typeParameters","params","returnType"]};ok("TSFunctionType",{...o_,fields:oP()}),ok("TSConstructorType",{...o_,fields:{...oP(),abstract:aH(ow)}}),ok("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeArguments"],fields:{typeName:aX("TSEntityName"),typeArguments:aG("TSTypeParameterInstantiation")}}),ok("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:aX("Identifier","TSThisType"),typeAnnotation:aG("TSTypeAnnotation"),asserts:aH(ow)}}),ok("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeArguments"],fields:{exprName:aX("TSEntityName","TSImportType"),typeArguments:aG("TSTypeParameterInstantiation")}}),ok("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:a0("TSTypeElement")}}),ok("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:aX("TSType")}}),ok("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:a0("TSType","TSNamedTupleMember")}}),ok("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:aX("TSType")}}),ok("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:aX("TSType")}}),ok("TSNamedTupleMember",{aliases:["TSType"],visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:aX("Identifier"),optional:{validate:ow,default:!1},elementType:aX("TSType")}});var oN={aliases:["TSType"],visitor:["types"],fields:{types:a0("TSType")}};ok("TSUnionType",oN),ok("TSIntersectionType",oN),ok("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:aX("TSType"),extendsType:aX("TSType"),trueType:aX("TSType"),falseType:aX("TSType")}}),ok("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:aX("TSTypeParameter")}}),ok("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:aX("TSType")}}),ok("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:a2("keyof","readonly","unique"),default:void 0},typeAnnotation:aX("TSType")}}),ok("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:aX("TSType"),indexType:aX("TSType")}}),ok("TSMappedType",{aliases:["TSType"],visitor:["key","constraint","nameType","typeAnnotation"],builder:["key","constraint","nameType","typeAnnotation"],fields:{key:aX("Identifier"),constraint:aX("TSType"),readonly:aH(a2(!0,!1,"+","-")),optional:aH(a2(!0,!1,"+","-")),typeAnnotation:aG("TSType"),nameType:aG("TSType")}}),ok("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:a0("TemplateElement"),types:{validate:a7(a8("array"),a1(a4("TSType")),function(e,t,n){if(e.quasis.length!==n.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
|
|
5
|
+
Expected ${n.length+1} quasis but got ${e.quasis.length}`)})}}}),ok("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(I=a4("NumericLiteral","BigIntLiteral"),_=a2("-"),N=a4("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),az(function(e,t,n){ag("UnaryExpression",n)?(_(n,"operator",n.operator),I(n,"argument",n.argument)):N(e,t,n)},{oneOfNodeTypes:["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"]}))}}}),ok("TSClassImplements",{aliases:["TSType"],visitor:["expression","typeArguments"],fields:{expression:aX("Expression"),typeArguments:aG("TSTypeParameterInstantiation")}}),ok("TSInterfaceHeritage",{aliases:["TSType"],visitor:["expression","typeArguments"],fields:{expression:aX("Expression"),typeArguments:aG("TSTypeParameterInstantiation")}}),ok("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:aH(ow),id:aX("Identifier"),typeParameters:aG("TSTypeParameterDeclaration"),extends:aH(aZ("TSInterfaceHeritage")),body:aX("TSInterfaceBody")}}),ok("TSInterfaceBody",{visitor:["body"],fields:{body:a0("TSTypeElement")}}),ok("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:aH(ow),id:aX("Identifier"),typeParameters:aG("TSTypeParameterDeclaration"),typeAnnotation:aX("TSType")}}),ok("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeArguments"],fields:{expression:aX("Expression"),typeArguments:aG("TSTypeParameterInstantiation")}});var oL={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:aX("Expression"),typeAnnotation:aX("TSType")}};ok("TSAsExpression",oL),ok("TSSatisfiesExpression",oL),ok("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:aX("TSType"),expression:aX("Expression")}}),ok("TSEnumBody",{visitor:["members"],fields:{members:a0("TSEnumMember")}}),ok("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:aH(ow),const:aH(ow),id:aX("Identifier"),body:aX("TSEnumBody")}}),ok("TSEnumMember",{visitor:["id","initializer"],fields:{id:aX("Identifier","StringLiteral"),initializer:aG("Expression")}}),ok("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{kind:{validate:a2("global","namespace","module"),default:"namespace"},declare:aH(ow),id:{validate:a7(a4("TSEntityName","StringLiteral"),az(function(e,t,n){if("namespace"===e.kind&&ag("StringLiteral",n))throw TypeError("TSModuleDeclaration of kind 'namespace' cannot have a StringLiteral id.")},{oneOfNodeTypes:["TSEntityName","StringLiteral"]}))},body:aX("TSModuleBlock")}}),ok("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:a0("Statement")}}),ok("TSImportType",{aliases:["TSType"],builder:["source","qualifier","typeArguments"],visitor:["source","options","qualifier","typeArguments"],fields:{source:aX("StringLiteral"),qualifier:aG("TSEntityName"),typeArguments:aG("TSTypeParameterInstantiation"),options:{validate:a4("ObjectExpression"),optional:!0}}}),ok("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:{id:aX("Identifier"),moduleReference:aX("TSEntityName","TSExternalModuleReference"),importKind:{validate:a2("type","value"),optional:!0}}}),ok("TSExternalModuleReference",{visitor:["expression"],fields:{expression:aX("StringLiteral")}}),ok("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:aX("Expression")}}),ok("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:aX("Expression")}}),ok("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:aX("Identifier")}}),ok("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:a4("TSType")}}}),ok("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:a0("TSType")}}),ok("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:a0("TSTypeParameter")}}),ok("TSTypeParameter",{builder:["constraint","default","name"],visitor:["name","constraint","default"],fields:{name:{validate:a4("Identifier")},in:{validate:a8("boolean"),optional:!0},out:{validate:a8("boolean"),optional:!0},const:{validate:a8("boolean"),optional:!0},constraint:{validate:a4("TSType"),optional:!0},default:{validate:a4("TSType"),optional:!0}}});var oO={ModuleDeclaration:"ImportOrExportDeclaration"};for(let{types:e,set:t}of(Object.keys(oO).forEach(e=>{aR[e]=aR[oO[e]]}),a3))for(let n of e){let e=aR[n];e?e.forEach(t.add,t):t.add(n)}var oD=[].concat(Object.keys(aB),Object.keys(aR),Object.keys(aq));function oM(e,t,n){if(!e)return;let r=a$[e.type];if(!r)return;let i=r[t];oF(e,t,n,i),oB(e,t,n)}function oF(e,t,n,r){!r?.validate||r.optional&&null==n||r.validate(e,t,n)}function oB(e,t,n){let r=n?.type;null!=r&&aK[r]?.(e,t,n)}var{validateInternal:oj}=Object.defineProperty({__proto__:null,default:oM,validateChild:oB,validateField:oF,validateInternal:function(e,t,n,r,i){if(e?.validate&&(!e.optional||null!=r)&&(e.validate(t,n,r),i)){let e=r.type;if(null!=e)aK[e]?.(t,n,r)}}},Symbol.toStringTag,{value:"Module"}),{NODE_FIELDS:oR}=os;function o$(e){let t={type:"ArrayExpression",elements:e};return oj(oR.ArrayExpression.elements,t,"elements",e,1),t}function oU(e,t,n){let r={type:"AssignmentExpression",operator:e,left:t,right:n},i=oR.AssignmentExpression;return oj(i.operator,r,"operator",e),oj(i.left,r,"left",t,1),oj(i.right,r,"right",n,1),r}function oq(e,t,n){let r={type:"BinaryExpression",operator:e,left:t,right:n},i=oR.BinaryExpression;return oj(i.operator,r,"operator",e),oj(i.left,r,"left",t,1),oj(i.right,r,"right",n,1),r}function oK(e){let t={type:"InterpreterDirective",value:e};return oj(oR.InterpreterDirective.value,t,"value",e),t}function oV(e){let t={type:"Directive",value:e};return oj(oR.Directive.value,t,"value",e,1),t}function oJ(e){let t={type:"DirectiveLiteral",value:e};return oj(oR.DirectiveLiteral.value,t,"value",e),t}function oz(e,t=[]){let n={type:"BlockStatement",body:e,directives:t},r=oR.BlockStatement;return oj(r.body,n,"body",e,1),oj(r.directives,n,"directives",t,1),n}function oW(e=null){let t={type:"BreakStatement",label:e};return oj(oR.BreakStatement.label,t,"label",e,1),t}function oX(e,t){let n={type:"CallExpression",callee:e,arguments:t},r=oR.CallExpression;return oj(r.callee,n,"callee",e,1),oj(r.arguments,n,"arguments",t,1),n}function oH(e=null,t){let n={type:"CatchClause",param:e,body:t},r=oR.CatchClause;return oj(r.param,n,"param",e,1),oj(r.body,n,"body",t,1),n}function oY(e,t,n){let r={type:"ConditionalExpression",test:e,consequent:t,alternate:n},i=oR.ConditionalExpression;return oj(i.test,r,"test",e,1),oj(i.consequent,r,"consequent",t,1),oj(i.alternate,r,"alternate",n,1),r}function oG(e=null){let t={type:"ContinueStatement",label:e};return oj(oR.ContinueStatement.label,t,"label",e,1),t}function oQ(){return{type:"DebuggerStatement"}}function oZ(e,t){let n={type:"DoWhileStatement",test:e,body:t},r=oR.DoWhileStatement;return oj(r.test,n,"test",e,1),oj(r.body,n,"body",t,1),n}function o0(){return{type:"EmptyStatement"}}function o1(e){let t={type:"ExpressionStatement",expression:e};return oj(oR.ExpressionStatement.expression,t,"expression",e,1),t}function o2(e,t=null,n=null){let r={type:"File",program:e,comments:t,tokens:n},i=oR.File;return oj(i.program,r,"program",e,1),oj(i.comments,r,"comments",t,1),oj(i.tokens,r,"tokens",n),r}function o3(e,t,n){let r={type:"ForInStatement",left:e,right:t,body:n},i=oR.ForInStatement;return oj(i.left,r,"left",e,1),oj(i.right,r,"right",t,1),oj(i.body,r,"body",n,1),r}function o4(e=null,t=null,n=null,r){let i={type:"ForStatement",init:e,test:t,update:n,body:r},s=oR.ForStatement;return oj(s.init,i,"init",e,1),oj(s.test,i,"test",t,1),oj(s.update,i,"update",n,1),oj(s.body,i,"body",r,1),i}function o5(e=null,t,n,r=!1,i=!1){let s={type:"FunctionDeclaration",id:e,params:t,body:n,generator:r,async:i},a=oR.FunctionDeclaration;return oj(a.id,s,"id",e,1),oj(a.params,s,"params",t,1),oj(a.body,s,"body",n,1),oj(a.generator,s,"generator",r),oj(a.async,s,"async",i),s}function o8(e=null,t,n,r=!1,i=!1){let s={type:"FunctionExpression",id:e,params:t,body:n,generator:r,async:i},a=oR.FunctionExpression;return oj(a.id,s,"id",e,1),oj(a.params,s,"params",t,1),oj(a.body,s,"body",n,1),oj(a.generator,s,"generator",r),oj(a.async,s,"async",i),s}function o6(e){let t={type:"Identifier",name:e};return oj(oR.Identifier.name,t,"name",e),t}function o9(e,t,n=null){let r={type:"IfStatement",test:e,consequent:t,alternate:n},i=oR.IfStatement;return oj(i.test,r,"test",e,1),oj(i.consequent,r,"consequent",t,1),oj(i.alternate,r,"alternate",n,1),r}function o7(e,t){let n={type:"LabeledStatement",label:e,body:t},r=oR.LabeledStatement;return oj(r.label,n,"label",e,1),oj(r.body,n,"body",t,1),n}function le(e){let t={type:"StringLiteral",value:e};return oj(oR.StringLiteral.value,t,"value",e),t}function lt(e){let t={type:"NumericLiteral",value:e};return oj(oR.NumericLiteral.value,t,"value",e),t}function ln(){return{type:"NullLiteral"}}function lr(e){let t={type:"BooleanLiteral",value:e};return oj(oR.BooleanLiteral.value,t,"value",e),t}function li(e,t=""){let n={type:"RegExpLiteral",pattern:e,flags:t},r=oR.RegExpLiteral;return oj(r.pattern,n,"pattern",e),oj(r.flags,n,"flags",t),n}function ls(e,t,n){let r={type:"LogicalExpression",operator:e,left:t,right:n},i=oR.LogicalExpression;return oj(i.operator,r,"operator",e),oj(i.left,r,"left",t,1),oj(i.right,r,"right",n,1),r}function la(e,t,n=!1){let r={type:"MemberExpression",object:e,property:t,computed:n},i=oR.MemberExpression;return oj(i.object,r,"object",e,1),oj(i.property,r,"property",t,1),oj(i.computed,r,"computed",n),r}function lo(e,t){let n={type:"NewExpression",callee:e,arguments:t},r=oR.NewExpression;return oj(r.callee,n,"callee",e,1),oj(r.arguments,n,"arguments",t,1),n}function ll(e,t=[],n="script",r=null){let i={type:"Program",body:e,directives:t,sourceType:n,interpreter:r},s=oR.Program;return oj(s.body,i,"body",e,1),oj(s.directives,i,"directives",t,1),oj(s.sourceType,i,"sourceType",n),oj(s.interpreter,i,"interpreter",r,1),i}function lu(e){let t={type:"ObjectExpression",properties:e};return oj(oR.ObjectExpression.properties,t,"properties",e,1),t}function lc(e,t,n,r,i=!1,s=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:n,body:r,computed:i,generator:s,async:a},l=oR.ObjectMethod;return oj(l.kind,o,"kind",e),oj(l.key,o,"key",t,1),oj(l.params,o,"params",n,1),oj(l.body,o,"body",r,1),oj(l.computed,o,"computed",i),oj(l.generator,o,"generator",s),oj(l.async,o,"async",a),o}function lp(e,t,n=!1,r=!1){let i={type:"ObjectProperty",key:e,value:t,computed:n,shorthand:r},s=oR.ObjectProperty;return oj(s.key,i,"key",e,1),oj(s.value,i,"value",t,1),oj(s.computed,i,"computed",n),oj(s.shorthand,i,"shorthand",r),i}function ld(e){let t={type:"RestElement",argument:e};return oj(oR.RestElement.argument,t,"argument",e,1),t}function lf(e=null){let t={type:"ReturnStatement",argument:e};return oj(oR.ReturnStatement.argument,t,"argument",e,1),t}function lh(e){let t={type:"SequenceExpression",expressions:e};return oj(oR.SequenceExpression.expressions,t,"expressions",e,1),t}function lm(e){let t={type:"ParenthesizedExpression",expression:e};return oj(oR.ParenthesizedExpression.expression,t,"expression",e,1),t}function ly(e=null,t){let n={type:"SwitchCase",test:e,consequent:t},r=oR.SwitchCase;return oj(r.test,n,"test",e,1),oj(r.consequent,n,"consequent",t,1),n}function lg(e,t){let n={type:"SwitchStatement",discriminant:e,cases:t},r=oR.SwitchStatement;return oj(r.discriminant,n,"discriminant",e,1),oj(r.cases,n,"cases",t,1),n}function lb(){return{type:"ThisExpression"}}function lx(e){let t={type:"ThrowStatement",argument:e};return oj(oR.ThrowStatement.argument,t,"argument",e,1),t}function lS(e,t=null,n=null){let r={type:"TryStatement",block:e,handler:t,finalizer:n},i=oR.TryStatement;return oj(i.block,r,"block",e,1),oj(i.handler,r,"handler",t,1),oj(i.finalizer,r,"finalizer",n,1),r}function lT(e,t,n=!0){let r={type:"UnaryExpression",operator:e,argument:t,prefix:n},i=oR.UnaryExpression;return oj(i.operator,r,"operator",e),oj(i.argument,r,"argument",t,1),oj(i.prefix,r,"prefix",n),r}function lv(e,t,n=!1){let r={type:"UpdateExpression",operator:e,argument:t,prefix:n},i=oR.UpdateExpression;return oj(i.operator,r,"operator",e),oj(i.argument,r,"argument",t,1),oj(i.prefix,r,"prefix",n),r}function lE(e,t){let n={type:"VariableDeclaration",kind:e,declarations:t},r=oR.VariableDeclaration;return oj(r.kind,n,"kind",e),oj(r.declarations,n,"declarations",t,1),n}function lk(e,t=null){let n={type:"VariableDeclarator",id:e,init:t},r=oR.VariableDeclarator;return oj(r.id,n,"id",e,1),oj(r.init,n,"init",t,1),n}function lw(e,t){let n={type:"WhileStatement",test:e,body:t},r=oR.WhileStatement;return oj(r.test,n,"test",e,1),oj(r.body,n,"body",t,1),n}function lA(e,t){let n={type:"WithStatement",object:e,body:t},r=oR.WithStatement;return oj(r.object,n,"object",e,1),oj(r.body,n,"body",t,1),n}function lP(e,t){let n={type:"AssignmentPattern",left:e,right:t},r=oR.AssignmentPattern;return oj(r.left,n,"left",e,1),oj(r.right,n,"right",t,1),n}function lC(e){let t={type:"ArrayPattern",elements:e};return oj(oR.ArrayPattern.elements,t,"elements",e,1),t}function lI(e,t,n=!1){let r={type:"ArrowFunctionExpression",params:e,body:t,async:n},i=oR.ArrowFunctionExpression;return oj(i.params,r,"params",e,1),oj(i.body,r,"body",t,1),oj(i.async,r,"async",n),r}function l_(e){let t={type:"ClassBody",body:e};return oj(oR.ClassBody.body,t,"body",e,1),t}function lN(e=null,t=null,n,r=null){let i={type:"ClassExpression",id:e,superClass:t,body:n,decorators:r},s=oR.ClassExpression;return oj(s.id,i,"id",e,1),oj(s.superClass,i,"superClass",t,1),oj(s.body,i,"body",n,1),oj(s.decorators,i,"decorators",r,1),i}function lL(e=null,t=null,n,r=null){let i={type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:r},s=oR.ClassDeclaration;return oj(s.id,i,"id",e,1),oj(s.superClass,i,"superClass",t,1),oj(s.body,i,"body",n,1),oj(s.decorators,i,"decorators",r,1),i}function lO(e,t=null){let n={type:"ExportAllDeclaration",source:e,attributes:t},r=oR.ExportAllDeclaration;return oj(r.source,n,"source",e,1),oj(r.attributes,n,"attributes",t,1),n}function lD(e){let t={type:"ExportDefaultDeclaration",declaration:e};return oj(oR.ExportDefaultDeclaration.declaration,t,"declaration",e,1),t}function lM(e=null,t=[],n=null,r=null){let i={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n,attributes:r},s=oR.ExportNamedDeclaration;return oj(s.declaration,i,"declaration",e,1),oj(s.specifiers,i,"specifiers",t,1),oj(s.source,i,"source",n,1),oj(s.attributes,i,"attributes",r,1),i}function lF(e,t){let n={type:"ExportSpecifier",local:e,exported:t},r=oR.ExportSpecifier;return oj(r.local,n,"local",e,1),oj(r.exported,n,"exported",t,1),n}function lB(e,t,n,r=!1){let i={type:"ForOfStatement",left:e,right:t,body:n,await:r},s=oR.ForOfStatement;return oj(s.left,i,"left",e,1),oj(s.right,i,"right",t,1),oj(s.body,i,"body",n,1),oj(s.await,i,"await",r),i}function lj(e,t,n=null){let r={type:"ImportDeclaration",specifiers:e,source:t,attributes:n},i=oR.ImportDeclaration;return oj(i.specifiers,r,"specifiers",e,1),oj(i.source,r,"source",t,1),oj(i.attributes,r,"attributes",n,1),r}function lR(e){let t={type:"ImportDefaultSpecifier",local:e};return oj(oR.ImportDefaultSpecifier.local,t,"local",e,1),t}function l$(e){let t={type:"ImportNamespaceSpecifier",local:e};return oj(oR.ImportNamespaceSpecifier.local,t,"local",e,1),t}function lU(e,t){let n={type:"ImportSpecifier",local:e,imported:t},r=oR.ImportSpecifier;return oj(r.local,n,"local",e,1),oj(r.imported,n,"imported",t,1),n}function lq(e,t){let n={type:"MetaProperty",meta:e,property:t},r=oR.MetaProperty;return oj(r.meta,n,"meta",e,1),oj(r.property,n,"property",t,1),n}function lK(e="method",t,n,r,i=!1,s=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:n,body:r,computed:i,static:s,generator:a,async:o},u=oR.ClassMethod;return oj(u.kind,l,"kind",e),oj(u.key,l,"key",t,1),oj(u.params,l,"params",n,1),oj(u.body,l,"body",r,1),oj(u.computed,l,"computed",i),oj(u.static,l,"static",s),oj(u.generator,l,"generator",a),oj(u.async,l,"async",o),l}function lV(e){let t={type:"ObjectPattern",properties:e};return oj(oR.ObjectPattern.properties,t,"properties",e,1),t}function lJ(e){let t={type:"SpreadElement",argument:e};return oj(oR.SpreadElement.argument,t,"argument",e,1),t}function lz(){return{type:"Super"}}function lW(e,t){let n={type:"TaggedTemplateExpression",tag:e,quasi:t},r=oR.TaggedTemplateExpression;return oj(r.tag,n,"tag",e,1),oj(r.quasi,n,"quasi",t,1),n}function lX(e,t=!1){let n={type:"TemplateElement",value:e,tail:t},r=oR.TemplateElement;return oj(r.value,n,"value",e),oj(r.tail,n,"tail",t),n}function lH(e,t){let n={type:"TemplateLiteral",quasis:e,expressions:t},r=oR.TemplateLiteral;return oj(r.quasis,n,"quasis",e,1),oj(r.expressions,n,"expressions",t,1),n}function lY(e=null,t=!1){let n={type:"YieldExpression",argument:e,delegate:t},r=oR.YieldExpression;return oj(r.argument,n,"argument",e,1),oj(r.delegate,n,"delegate",t),n}function lG(e){let t={type:"AwaitExpression",argument:e};return oj(oR.AwaitExpression.argument,t,"argument",e,1),t}function lQ(e,t=null){let n={type:"ImportExpression",source:e,options:t},r=oR.ImportExpression;return oj(r.source,n,"source",e,1),oj(r.options,n,"options",t,1),n}function lZ(){return{type:"Import"}}function l0(e){let t={type:"BigIntLiteral",value:e};return oj(oR.BigIntLiteral.value,t,"value",e),t}function l1(e){let t={type:"ExportNamespaceSpecifier",exported:e};return oj(oR.ExportNamespaceSpecifier.exported,t,"exported",e,1),t}function l2(e,t,n=!1,r){let i={type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:r},s=oR.OptionalMemberExpression;return oj(s.object,i,"object",e,1),oj(s.property,i,"property",t,1),oj(s.computed,i,"computed",n),oj(s.optional,i,"optional",r),i}function l3(e,t,n){let r={type:"OptionalCallExpression",callee:e,arguments:t,optional:n},i=oR.OptionalCallExpression;return oj(i.callee,r,"callee",e,1),oj(i.arguments,r,"arguments",t,1),oj(i.optional,r,"optional",n),r}function l4(e,t=null,n=null,r=null,i=!1,s=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:r,computed:i,static:s},o=oR.ClassProperty;return oj(o.key,a,"key",e,1),oj(o.value,a,"value",t,1),oj(o.typeAnnotation,a,"typeAnnotation",n,1),oj(o.decorators,a,"decorators",r,1),oj(o.computed,a,"computed",i),oj(o.static,a,"static",s),a}function l5(e,t=null,n=null,r=!1){let i={type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:r},s=oR.ClassPrivateProperty;return oj(s.key,i,"key",e,1),oj(s.value,i,"value",t,1),oj(s.decorators,i,"decorators",n,1),oj(s.static,i,"static",r),i}function l8(e="method",t,n,r,i=!1){let s={type:"ClassPrivateMethod",kind:e,key:t,params:n,body:r,static:i,async:!1,computed:!1,generator:!1},a=oR.ClassPrivateMethod;return oj(a.kind,s,"kind",e),oj(a.key,s,"key",t,1),oj(a.params,s,"params",n,1),oj(a.body,s,"body",r,1),oj(a.static,s,"static",i),s}function l6(e){let t={type:"PrivateName",id:e};return oj(oR.PrivateName.id,t,"id",e,1),t}function l9(e){let t={type:"StaticBlock",body:e};return oj(oR.StaticBlock.body,t,"body",e,1),t}function l7(e,t){let n={type:"ImportAttribute",key:e,value:t},r=oR.ImportAttribute;return oj(r.key,n,"key",e,1),oj(r.value,n,"value",t,1),n}function ue(){return{type:"AnyTypeAnnotation"}}function ut(e){let t={type:"ArrayTypeAnnotation",elementType:e};return oj(oR.ArrayTypeAnnotation.elementType,t,"elementType",e,1),t}function un(){return{type:"BooleanTypeAnnotation"}}function ur(e){let t={type:"BooleanLiteralTypeAnnotation",value:e};return oj(oR.BooleanLiteralTypeAnnotation.value,t,"value",e),t}function ui(){return{type:"NullLiteralTypeAnnotation"}}function us(e,t=null){let n={type:"ClassImplements",id:e,typeParameters:t},r=oR.ClassImplements;return oj(r.id,n,"id",e,1),oj(r.typeParameters,n,"typeParameters",t,1),n}function ua(e,t=null,n=null,r){let i={type:"DeclareClass",id:e,typeParameters:t,extends:n,body:r},s=oR.DeclareClass;return oj(s.id,i,"id",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.extends,i,"extends",n,1),oj(s.body,i,"body",r,1),i}function uo(e){let t={type:"DeclareFunction",id:e};return oj(oR.DeclareFunction.id,t,"id",e,1),t}function ul(e,t=null,n=null,r){let i={type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:r},s=oR.DeclareInterface;return oj(s.id,i,"id",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.extends,i,"extends",n,1),oj(s.body,i,"body",r,1),i}function uu(e,t,n=null){let r={type:"DeclareModule",id:e,body:t,kind:n},i=oR.DeclareModule;return oj(i.id,r,"id",e,1),oj(i.body,r,"body",t,1),oj(i.kind,r,"kind",n),r}function uc(e){let t={type:"DeclareModuleExports",typeAnnotation:e};return oj(oR.DeclareModuleExports.typeAnnotation,t,"typeAnnotation",e,1),t}function up(e,t=null,n){let r={type:"DeclareTypeAlias",id:e,typeParameters:t,right:n},i=oR.DeclareTypeAlias;return oj(i.id,r,"id",e,1),oj(i.typeParameters,r,"typeParameters",t,1),oj(i.right,r,"right",n,1),r}function ud(e,t=null,n=null){let r={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n},i=oR.DeclareOpaqueType;return oj(i.id,r,"id",e,1),oj(i.typeParameters,r,"typeParameters",t,1),oj(i.supertype,r,"supertype",n,1),r}function uf(e){let t={type:"DeclareVariable",id:e};return oj(oR.DeclareVariable.id,t,"id",e,1),t}function uh(e=null,t=null,n=null,r=null){let i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n,attributes:r},s=oR.DeclareExportDeclaration;return oj(s.declaration,i,"declaration",e,1),oj(s.specifiers,i,"specifiers",t,1),oj(s.source,i,"source",n,1),oj(s.attributes,i,"attributes",r,1),i}function um(e,t=null){let n={type:"DeclareExportAllDeclaration",source:e,attributes:t},r=oR.DeclareExportAllDeclaration;return oj(r.source,n,"source",e,1),oj(r.attributes,n,"attributes",t,1),n}function uy(e){let t={type:"DeclaredPredicate",value:e};return oj(oR.DeclaredPredicate.value,t,"value",e,1),t}function ug(){return{type:"ExistsTypeAnnotation"}}function ub(e=null,t,n=null,r){let i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:r},s=oR.FunctionTypeAnnotation;return oj(s.typeParameters,i,"typeParameters",e,1),oj(s.params,i,"params",t,1),oj(s.rest,i,"rest",n,1),oj(s.returnType,i,"returnType",r,1),i}function ux(e=null,t){let n={type:"FunctionTypeParam",name:e,typeAnnotation:t},r=oR.FunctionTypeParam;return oj(r.name,n,"name",e,1),oj(r.typeAnnotation,n,"typeAnnotation",t,1),n}function uS(e,t=null){let n={type:"GenericTypeAnnotation",id:e,typeParameters:t},r=oR.GenericTypeAnnotation;return oj(r.id,n,"id",e,1),oj(r.typeParameters,n,"typeParameters",t,1),n}function uT(){return{type:"InferredPredicate"}}function uv(e,t=null){let n={type:"InterfaceExtends",id:e,typeParameters:t},r=oR.InterfaceExtends;return oj(r.id,n,"id",e,1),oj(r.typeParameters,n,"typeParameters",t,1),n}function uE(e,t=null,n=null,r){let i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:r},s=oR.InterfaceDeclaration;return oj(s.id,i,"id",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.extends,i,"extends",n,1),oj(s.body,i,"body",r,1),i}function uk(e=null,t){let n={type:"InterfaceTypeAnnotation",extends:e,body:t},r=oR.InterfaceTypeAnnotation;return oj(r.extends,n,"extends",e,1),oj(r.body,n,"body",t,1),n}function uw(e){let t={type:"IntersectionTypeAnnotation",types:e};return oj(oR.IntersectionTypeAnnotation.types,t,"types",e,1),t}function uA(){return{type:"MixedTypeAnnotation"}}function uP(){return{type:"EmptyTypeAnnotation"}}function uC(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e};return oj(oR.NullableTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function uI(e){let t={type:"NumberLiteralTypeAnnotation",value:e};return oj(oR.NumberLiteralTypeAnnotation.value,t,"value",e),t}function u_(e){let t={type:"BigIntLiteralTypeAnnotation",value:e};return oj(oR.BigIntLiteralTypeAnnotation.value,t,"value",e),t}function uN(){return{type:"NumberTypeAnnotation"}}function uL(e,t=[],n=[],r=[],i=!1){let s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:r,exact:i},a=oR.ObjectTypeAnnotation;return oj(a.properties,s,"properties",e,1),oj(a.indexers,s,"indexers",t,1),oj(a.callProperties,s,"callProperties",n,1),oj(a.internalSlots,s,"internalSlots",r,1),oj(a.exact,s,"exact",i),s}function uO(e,t,n,r,i){let s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:r,method:i},a=oR.ObjectTypeInternalSlot;return oj(a.id,s,"id",e,1),oj(a.value,s,"value",t,1),oj(a.optional,s,"optional",n),oj(a.static,s,"static",r),oj(a.method,s,"method",i),s}function uD(e){let t={type:"ObjectTypeCallProperty",value:e,static:!1};return oj(oR.ObjectTypeCallProperty.value,t,"value",e,1),t}function uM(e=null,t,n,r=null){let i={type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:r,static:!1},s=oR.ObjectTypeIndexer;return oj(s.id,i,"id",e,1),oj(s.key,i,"key",t,1),oj(s.value,i,"value",n,1),oj(s.variance,i,"variance",r,1),i}function uF(e,t,n=null){let r={type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:"init",method:!1,optional:!1,proto:!1,static:!1},i=oR.ObjectTypeProperty;return oj(i.key,r,"key",e,1),oj(i.value,r,"value",t,1),oj(i.variance,r,"variance",n,1),r}function uB(e){let t={type:"ObjectTypeSpreadProperty",argument:e};return oj(oR.ObjectTypeSpreadProperty.argument,t,"argument",e,1),t}function uj(e,t=null,n=null,r){let i={type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:r},s=oR.OpaqueType;return oj(s.id,i,"id",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.supertype,i,"supertype",n,1),oj(s.impltype,i,"impltype",r,1),i}function uR(e,t){let n={type:"QualifiedTypeIdentifier",id:e,qualification:t},r=oR.QualifiedTypeIdentifier;return oj(r.id,n,"id",e,1),oj(r.qualification,n,"qualification",t,1),n}function u$(e){let t={type:"StringLiteralTypeAnnotation",value:e};return oj(oR.StringLiteralTypeAnnotation.value,t,"value",e),t}function uU(){return{type:"StringTypeAnnotation"}}function uq(){return{type:"SymbolTypeAnnotation"}}function uK(){return{type:"ThisTypeAnnotation"}}function uV(e){let t={type:"TupleTypeAnnotation",types:e};return oj(oR.TupleTypeAnnotation.types,t,"types",e,1),t}function uJ(e){let t={type:"TypeofTypeAnnotation",argument:e};return oj(oR.TypeofTypeAnnotation.argument,t,"argument",e,1),t}function uz(e,t=null,n){let r={type:"TypeAlias",id:e,typeParameters:t,right:n},i=oR.TypeAlias;return oj(i.id,r,"id",e,1),oj(i.typeParameters,r,"typeParameters",t,1),oj(i.right,r,"right",n,1),r}function uW(e){let t={type:"TypeAnnotation",typeAnnotation:e};return oj(oR.TypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function uX(e,t){let n={type:"TypeCastExpression",expression:e,typeAnnotation:t},r=oR.TypeCastExpression;return oj(r.expression,n,"expression",e,1),oj(r.typeAnnotation,n,"typeAnnotation",t,1),n}function uH(e,t=null,n=null,r=null){let i={type:"TypeParameter",name:e,bound:t,default:n,variance:r},s=oR.TypeParameter;return oj(s.name,i,"name",e),oj(s.bound,i,"bound",t,1),oj(s.default,i,"default",n,1),oj(s.variance,i,"variance",r,1),i}function uY(e){let t={type:"TypeParameterDeclaration",params:e};return oj(oR.TypeParameterDeclaration.params,t,"params",e,1),t}function uG(e){let t={type:"TypeParameterInstantiation",params:e};return oj(oR.TypeParameterInstantiation.params,t,"params",e,1),t}function uQ(e){let t={type:"UnionTypeAnnotation",types:e};return oj(oR.UnionTypeAnnotation.types,t,"types",e,1),t}function uZ(e){let t={type:"Variance",kind:e};return oj(oR.Variance.kind,t,"kind",e),t}function u0(){return{type:"VoidTypeAnnotation"}}function u1(e,t){let n={type:"EnumDeclaration",id:e,body:t},r=oR.EnumDeclaration;return oj(r.id,n,"id",e,1),oj(r.body,n,"body",t,1),n}function u2(e){let t={type:"EnumBooleanBody",members:e,explicitType:!1,hasUnknownMembers:!1};return oj(oR.EnumBooleanBody.members,t,"members",e,1),t}function u3(e){let t={type:"EnumNumberBody",members:e,explicitType:!1,hasUnknownMembers:!1};return oj(oR.EnumNumberBody.members,t,"members",e,1),t}function u4(e){let t={type:"EnumStringBody",members:e,explicitType:!1,hasUnknownMembers:!1};return oj(oR.EnumStringBody.members,t,"members",e,1),t}function u5(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:!1};return oj(oR.EnumSymbolBody.members,t,"members",e,1),t}function u8(e,t){let n={type:"EnumBooleanMember",id:e,init:t},r=oR.EnumBooleanMember;return oj(r.id,n,"id",e,1),oj(r.init,n,"init",t,1),n}function u6(e,t){let n={type:"EnumNumberMember",id:e,init:t},r=oR.EnumNumberMember;return oj(r.id,n,"id",e,1),oj(r.init,n,"init",t,1),n}function u9(e,t){let n={type:"EnumStringMember",id:e,init:t},r=oR.EnumStringMember;return oj(r.id,n,"id",e,1),oj(r.init,n,"init",t,1),n}function u7(e){let t={type:"EnumDefaultedMember",id:e};return oj(oR.EnumDefaultedMember.id,t,"id",e,1),t}function ce(e,t){let n={type:"IndexedAccessType",objectType:e,indexType:t},r=oR.IndexedAccessType;return oj(r.objectType,n,"objectType",e,1),oj(r.indexType,n,"indexType",t,1),n}function ct(e,t){let n={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:!1},r=oR.OptionalIndexedAccessType;return oj(r.objectType,n,"objectType",e,1),oj(r.indexType,n,"indexType",t,1),n}function cn(e,t=null){let n={type:"JSXAttribute",name:e,value:t},r=oR.JSXAttribute;return oj(r.name,n,"name",e,1),oj(r.value,n,"value",t,1),n}function cr(e){let t={type:"JSXClosingElement",name:e};return oj(oR.JSXClosingElement.name,t,"name",e,1),t}function ci(e,t=null,n){let r={type:"JSXElement",openingElement:e,closingElement:t,children:n},i=oR.JSXElement;return oj(i.openingElement,r,"openingElement",e,1),oj(i.closingElement,r,"closingElement",t,1),oj(i.children,r,"children",n,1),r}function cs(){return{type:"JSXEmptyExpression"}}function ca(e){let t={type:"JSXExpressionContainer",expression:e};return oj(oR.JSXExpressionContainer.expression,t,"expression",e,1),t}function co(e){let t={type:"JSXSpreadChild",expression:e};return oj(oR.JSXSpreadChild.expression,t,"expression",e,1),t}function cl(e){let t={type:"JSXIdentifier",name:e};return oj(oR.JSXIdentifier.name,t,"name",e),t}function cu(e,t){let n={type:"JSXMemberExpression",object:e,property:t},r=oR.JSXMemberExpression;return oj(r.object,n,"object",e,1),oj(r.property,n,"property",t,1),n}function cc(e,t){let n={type:"JSXNamespacedName",namespace:e,name:t},r=oR.JSXNamespacedName;return oj(r.namespace,n,"namespace",e,1),oj(r.name,n,"name",t,1),n}function cp(e,t,n=!1){let r={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n},i=oR.JSXOpeningElement;return oj(i.name,r,"name",e,1),oj(i.attributes,r,"attributes",t,1),oj(i.selfClosing,r,"selfClosing",n),r}function cd(e){let t={type:"JSXSpreadAttribute",argument:e};return oj(oR.JSXSpreadAttribute.argument,t,"argument",e,1),t}function cf(e){let t={type:"JSXText",value:e};return oj(oR.JSXText.value,t,"value",e),t}function ch(e,t,n){let r={type:"JSXFragment",openingFragment:e,closingFragment:t,children:n},i=oR.JSXFragment;return oj(i.openingFragment,r,"openingFragment",e,1),oj(i.closingFragment,r,"closingFragment",t,1),oj(i.children,r,"children",n,1),r}function cm(){return{type:"JSXOpeningFragment"}}function cy(){return{type:"JSXClosingFragment"}}function cg(e,t){let n={type:"Placeholder",expectedNode:e,name:t},r=oR.Placeholder;return oj(r.expectedNode,n,"expectedNode",e),oj(r.name,n,"name",t,1),n}function cb(e){let t={type:"V8IntrinsicIdentifier",name:e};return oj(oR.V8IntrinsicIdentifier.name,t,"name",e),t}function cx(){return{type:"ArgumentPlaceholder"}}function cS(e,t){let n={type:"BindExpression",object:e,callee:t},r=oR.BindExpression;return oj(r.object,n,"object",e,1),oj(r.callee,n,"callee",t,1),n}function cT(e,t=null,n=null,r=null,i=!1,s=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:r,computed:i,static:s},o=oR.ClassAccessorProperty;return oj(o.key,a,"key",e,1),oj(o.value,a,"value",t,1),oj(o.typeAnnotation,a,"typeAnnotation",n,1),oj(o.decorators,a,"decorators",r,1),oj(o.computed,a,"computed",i),oj(o.static,a,"static",s),a}function cv(e){let t={type:"Decorator",expression:e};return oj(oR.Decorator.expression,t,"expression",e,1),t}function cE(e,t=!1){let n={type:"DoExpression",body:e,async:t},r=oR.DoExpression;return oj(r.body,n,"body",e,1),oj(r.async,n,"async",t),n}function ck(e){let t={type:"ExportDefaultSpecifier",exported:e};return oj(oR.ExportDefaultSpecifier.exported,t,"exported",e,1),t}function cw(e){let t={type:"ModuleExpression",body:e};return oj(oR.ModuleExpression.body,t,"body",e,1),t}function cA(){return{type:"TopicReference"}}function cP(){return{type:"VoidPattern"}}function cC(e){let t={type:"TSParameterProperty",parameter:e};return oj(oR.TSParameterProperty.parameter,t,"parameter",e,1),t}function cI(e=null,t=null,n,r=null){let i={type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:r,async:!1,generator:!1},s=oR.TSDeclareFunction;return oj(s.id,i,"id",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.params,i,"params",n,1),oj(s.returnType,i,"returnType",r,1),i}function c_(e,t=null,n,r=null){let i={type:"TSDeclareMethod",key:e,typeParameters:t,params:n,returnType:r,async:!1,computed:!1,generator:!1,kind:"method",static:!1},s=oR.TSDeclareMethod;return oj(s.key,i,"key",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.params,i,"params",n,1),oj(s.returnType,i,"returnType",r,1),i}function cN(e,t){let n={type:"TSQualifiedName",left:e,right:t},r=oR.TSQualifiedName;return oj(r.left,n,"left",e,1),oj(r.right,n,"right",t,1),n}function cL(e=null,t,n=null){let r={type:"TSCallSignatureDeclaration",typeParameters:e,params:t,returnType:n},i=oR.TSCallSignatureDeclaration;return oj(i.typeParameters,r,"typeParameters",e,1),oj(i.params,r,"params",t,1),oj(i.returnType,r,"returnType",n,1),r}function cO(e=null,t,n=null){let r={type:"TSConstructSignatureDeclaration",typeParameters:e,params:t,returnType:n},i=oR.TSConstructSignatureDeclaration;return oj(i.typeParameters,r,"typeParameters",e,1),oj(i.params,r,"params",t,1),oj(i.returnType,r,"returnType",n,1),r}function cD(e,t=null){let n={type:"TSPropertySignature",key:e,typeAnnotation:t,computed:!1},r=oR.TSPropertySignature;return oj(r.key,n,"key",e,1),oj(r.typeAnnotation,n,"typeAnnotation",t,1),n}function cM(e,t=null,n,r=null){let i={type:"TSMethodSignature",key:e,typeParameters:t,params:n,returnType:r,computed:!1,kind:"method"},s=oR.TSMethodSignature;return oj(s.key,i,"key",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.params,i,"params",n,1),oj(s.returnType,i,"returnType",r,1),i}function cF(e,t=null){let n={type:"TSIndexSignature",parameters:e,typeAnnotation:t},r=oR.TSIndexSignature;return oj(r.parameters,n,"parameters",e,1),oj(r.typeAnnotation,n,"typeAnnotation",t,1),n}function cB(){return{type:"TSAnyKeyword"}}function cj(){return{type:"TSBooleanKeyword"}}function cR(){return{type:"TSBigIntKeyword"}}function c$(){return{type:"TSIntrinsicKeyword"}}function cU(){return{type:"TSNeverKeyword"}}function cq(){return{type:"TSNullKeyword"}}function cK(){return{type:"TSNumberKeyword"}}function cV(){return{type:"TSObjectKeyword"}}function cJ(){return{type:"TSStringKeyword"}}function cz(){return{type:"TSSymbolKeyword"}}function cW(){return{type:"TSUndefinedKeyword"}}function cX(){return{type:"TSUnknownKeyword"}}function cH(){return{type:"TSVoidKeyword"}}function cY(){return{type:"TSThisType"}}function cG(e=null,t,n=null){let r={type:"TSFunctionType",typeParameters:e,params:t,returnType:n},i=oR.TSFunctionType;return oj(i.typeParameters,r,"typeParameters",e,1),oj(i.params,r,"params",t,1),oj(i.returnType,r,"returnType",n,1),r}function cQ(e=null,t,n=null){let r={type:"TSConstructorType",typeParameters:e,params:t,returnType:n},i=oR.TSConstructorType;return oj(i.typeParameters,r,"typeParameters",e,1),oj(i.params,r,"params",t,1),oj(i.returnType,r,"returnType",n,1),r}function cZ(e,t=null){let n={type:"TSTypeReference",typeName:e,typeArguments:t},r=oR.TSTypeReference;return oj(r.typeName,n,"typeName",e,1),oj(r.typeArguments,n,"typeArguments",t,1),n}function c0(e,t=null,n=null){let r={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n},i=oR.TSTypePredicate;return oj(i.parameterName,r,"parameterName",e,1),oj(i.typeAnnotation,r,"typeAnnotation",t,1),oj(i.asserts,r,"asserts",n),r}function c1(e,t=null){let n={type:"TSTypeQuery",exprName:e,typeArguments:t},r=oR.TSTypeQuery;return oj(r.exprName,n,"exprName",e,1),oj(r.typeArguments,n,"typeArguments",t,1),n}function c2(e){let t={type:"TSTypeLiteral",members:e};return oj(oR.TSTypeLiteral.members,t,"members",e,1),t}function c3(e){let t={type:"TSArrayType",elementType:e};return oj(oR.TSArrayType.elementType,t,"elementType",e,1),t}function c4(e){let t={type:"TSTupleType",elementTypes:e};return oj(oR.TSTupleType.elementTypes,t,"elementTypes",e,1),t}function c5(e){let t={type:"TSOptionalType",typeAnnotation:e};return oj(oR.TSOptionalType.typeAnnotation,t,"typeAnnotation",e,1),t}function c8(e){let t={type:"TSRestType",typeAnnotation:e};return oj(oR.TSRestType.typeAnnotation,t,"typeAnnotation",e,1),t}function c6(e,t,n=!1){let r={type:"TSNamedTupleMember",label:e,elementType:t,optional:n},i=oR.TSNamedTupleMember;return oj(i.label,r,"label",e,1),oj(i.elementType,r,"elementType",t,1),oj(i.optional,r,"optional",n),r}function c9(e){let t={type:"TSUnionType",types:e};return oj(oR.TSUnionType.types,t,"types",e,1),t}function c7(e){let t={type:"TSIntersectionType",types:e};return oj(oR.TSIntersectionType.types,t,"types",e,1),t}function pe(e,t,n,r){let i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:r},s=oR.TSConditionalType;return oj(s.checkType,i,"checkType",e,1),oj(s.extendsType,i,"extendsType",t,1),oj(s.trueType,i,"trueType",n,1),oj(s.falseType,i,"falseType",r,1),i}function pt(e){let t={type:"TSInferType",typeParameter:e};return oj(oR.TSInferType.typeParameter,t,"typeParameter",e,1),t}function pn(e){let t={type:"TSParenthesizedType",typeAnnotation:e};return oj(oR.TSParenthesizedType.typeAnnotation,t,"typeAnnotation",e,1),t}function pr(e,t){let n={type:"TSTypeOperator",typeAnnotation:e,operator:t},r=oR.TSTypeOperator;return oj(r.typeAnnotation,n,"typeAnnotation",e,1),oj(r.operator,n,"operator",t),n}function pi(e,t){let n={type:"TSIndexedAccessType",objectType:e,indexType:t},r=oR.TSIndexedAccessType;return oj(r.objectType,n,"objectType",e,1),oj(r.indexType,n,"indexType",t,1),n}function ps(e,t,n=null,r=null){let i={type:"TSMappedType",key:e,constraint:t,nameType:n,typeAnnotation:r},s=oR.TSMappedType;return oj(s.key,i,"key",e,1),oj(s.constraint,i,"constraint",t,1),oj(s.nameType,i,"nameType",n,1),oj(s.typeAnnotation,i,"typeAnnotation",r,1),i}function pa(e,t){let n={type:"TSTemplateLiteralType",quasis:e,types:t},r=oR.TSTemplateLiteralType;return oj(r.quasis,n,"quasis",e,1),oj(r.types,n,"types",t,1),n}function po(e){let t={type:"TSLiteralType",literal:e};return oj(oR.TSLiteralType.literal,t,"literal",e,1),t}function pl(e,t=null){let n={type:"TSClassImplements",expression:e,typeArguments:t},r=oR.TSClassImplements;return oj(r.expression,n,"expression",e,1),oj(r.typeArguments,n,"typeArguments",t,1),n}function pu(e,t=null){let n={type:"TSInterfaceHeritage",expression:e,typeArguments:t},r=oR.TSInterfaceHeritage;return oj(r.expression,n,"expression",e,1),oj(r.typeArguments,n,"typeArguments",t,1),n}function pc(e,t=null,n=null,r){let i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:r},s=oR.TSInterfaceDeclaration;return oj(s.id,i,"id",e,1),oj(s.typeParameters,i,"typeParameters",t,1),oj(s.extends,i,"extends",n,1),oj(s.body,i,"body",r,1),i}function pp(e){let t={type:"TSInterfaceBody",body:e};return oj(oR.TSInterfaceBody.body,t,"body",e,1),t}function pd(e,t=null,n){let r={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n},i=oR.TSTypeAliasDeclaration;return oj(i.id,r,"id",e,1),oj(i.typeParameters,r,"typeParameters",t,1),oj(i.typeAnnotation,r,"typeAnnotation",n,1),r}function pf(e,t=null){let n={type:"TSInstantiationExpression",expression:e,typeArguments:t},r=oR.TSInstantiationExpression;return oj(r.expression,n,"expression",e,1),oj(r.typeArguments,n,"typeArguments",t,1),n}function ph(e,t){let n={type:"TSAsExpression",expression:e,typeAnnotation:t},r=oR.TSAsExpression;return oj(r.expression,n,"expression",e,1),oj(r.typeAnnotation,n,"typeAnnotation",t,1),n}function pm(e,t){let n={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},r=oR.TSSatisfiesExpression;return oj(r.expression,n,"expression",e,1),oj(r.typeAnnotation,n,"typeAnnotation",t,1),n}function py(e,t){let n={type:"TSTypeAssertion",typeAnnotation:e,expression:t},r=oR.TSTypeAssertion;return oj(r.typeAnnotation,n,"typeAnnotation",e,1),oj(r.expression,n,"expression",t,1),n}function pg(e){let t={type:"TSEnumBody",members:e};return oj(oR.TSEnumBody.members,t,"members",e,1),t}function pb(e,t){let n={type:"TSEnumDeclaration",id:e,body:t},r=oR.TSEnumDeclaration;return oj(r.id,n,"id",e,1),oj(r.body,n,"body",t,1),n}function px(e,t=null){let n={type:"TSEnumMember",id:e,initializer:t},r=oR.TSEnumMember;return oj(r.id,n,"id",e,1),oj(r.initializer,n,"initializer",t,1),n}function pS(e,t){let n={type:"TSModuleDeclaration",id:e,body:t,kind:"namespace"},r=oR.TSModuleDeclaration;return oj(r.id,n,"id",e,1),oj(r.body,n,"body",t,1),n}function pT(e){let t={type:"TSModuleBlock",body:e};return oj(oR.TSModuleBlock.body,t,"body",e,1),t}function pv(e,t=null,n=null){let r={type:"TSImportType",source:e,qualifier:t,typeArguments:n},i=oR.TSImportType;return oj(i.source,r,"source",e,1),oj(i.qualifier,r,"qualifier",t,1),oj(i.typeArguments,r,"typeArguments",n,1),r}function pE(e,t){let n={type:"TSImportEqualsDeclaration",id:e,moduleReference:t},r=oR.TSImportEqualsDeclaration;return oj(r.id,n,"id",e,1),oj(r.moduleReference,n,"moduleReference",t,1),n}function pk(e){let t={type:"TSExternalModuleReference",expression:e};return oj(oR.TSExternalModuleReference.expression,t,"expression",e,1),t}function pw(e){let t={type:"TSNonNullExpression",expression:e};return oj(oR.TSNonNullExpression.expression,t,"expression",e,1),t}function pA(e){let t={type:"TSExportAssignment",expression:e};return oj(oR.TSExportAssignment.expression,t,"expression",e,1),t}function pP(e){let t={type:"TSNamespaceExportDeclaration",id:e};return oj(oR.TSNamespaceExportDeclaration.id,t,"id",e,1),t}function pC(e){let t={type:"TSTypeAnnotation",typeAnnotation:e};return oj(oR.TSTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function pI(e){let t={type:"TSTypeParameterInstantiation",params:e};return oj(oR.TSTypeParameterInstantiation.params,t,"params",e,1),t}function p_(e){let t={type:"TSTypeParameterDeclaration",params:e};return oj(oR.TSTypeParameterDeclaration.params,t,"params",e,1),t}function pN(e=null,t=null,n){let r={type:"TSTypeParameter",constraint:e,default:t,name:n},i=oR.TSTypeParameter;return oj(i.constraint,r,"constraint",e,1),oj(i.default,r,"default",t,1),oj(i.name,r,"name",n,1),r}function pL(e){return tP("NumberLiteral","NumericLiteral","The node type "),lt(e)}function pO(e,t=""){return tP("RegexLiteral","RegExpLiteral","The node type "),li(e,t)}function pD(e){return tP("RestProperty","RestElement","The node type "),ld(e)}function pM(e){return tP("SpreadProperty","SpreadElement","The node type "),lJ(e)}var pF=Object.defineProperty({__proto__:null,anyTypeAnnotation:ue,argumentPlaceholder:cx,arrayExpression:o$,arrayPattern:lC,arrayTypeAnnotation:ut,arrowFunctionExpression:lI,assignmentExpression:oU,assignmentPattern:lP,awaitExpression:lG,bigIntLiteral:l0,bigIntLiteralTypeAnnotation:u_,binaryExpression:oq,bindExpression:cS,blockStatement:oz,booleanLiteral:lr,booleanLiteralTypeAnnotation:ur,booleanTypeAnnotation:un,breakStatement:oW,callExpression:oX,catchClause:oH,classAccessorProperty:cT,classBody:l_,classDeclaration:lL,classExpression:lN,classImplements:us,classMethod:lK,classPrivateMethod:l8,classPrivateProperty:l5,classProperty:l4,conditionalExpression:oY,continueStatement:oG,debuggerStatement:oQ,declareClass:ua,declareExportAllDeclaration:um,declareExportDeclaration:uh,declareFunction:uo,declareInterface:ul,declareModule:uu,declareModuleExports:uc,declareOpaqueType:ud,declareTypeAlias:up,declareVariable:uf,declaredPredicate:uy,decorator:cv,directive:oV,directiveLiteral:oJ,doExpression:cE,doWhileStatement:oZ,emptyStatement:o0,emptyTypeAnnotation:uP,enumBooleanBody:u2,enumBooleanMember:u8,enumDeclaration:u1,enumDefaultedMember:u7,enumNumberBody:u3,enumNumberMember:u6,enumStringBody:u4,enumStringMember:u9,enumSymbolBody:u5,existsTypeAnnotation:ug,exportAllDeclaration:lO,exportDefaultDeclaration:lD,exportDefaultSpecifier:ck,exportNamedDeclaration:lM,exportNamespaceSpecifier:l1,exportSpecifier:lF,expressionStatement:o1,file:o2,forInStatement:o3,forOfStatement:lB,forStatement:o4,functionDeclaration:o5,functionExpression:o8,functionTypeAnnotation:ub,functionTypeParam:ux,genericTypeAnnotation:uS,identifier:o6,ifStatement:o9,import:lZ,importAttribute:l7,importDeclaration:lj,importDefaultSpecifier:lR,importExpression:lQ,importNamespaceSpecifier:l$,importSpecifier:lU,indexedAccessType:ce,inferredPredicate:uT,interfaceDeclaration:uE,interfaceExtends:uv,interfaceTypeAnnotation:uk,interpreterDirective:oK,intersectionTypeAnnotation:uw,jsxAttribute:cn,jsxClosingElement:cr,jsxClosingFragment:cy,jsxElement:ci,jsxEmptyExpression:cs,jsxExpressionContainer:ca,jsxFragment:ch,jsxIdentifier:cl,jsxMemberExpression:cu,jsxNamespacedName:cc,jsxOpeningElement:cp,jsxOpeningFragment:cm,jsxSpreadAttribute:cd,jsxSpreadChild:co,jsxText:cf,labeledStatement:o7,logicalExpression:ls,memberExpression:la,metaProperty:lq,mixedTypeAnnotation:uA,moduleExpression:cw,newExpression:lo,nullLiteral:ln,nullLiteralTypeAnnotation:ui,nullableTypeAnnotation:uC,numberLiteral:pL,numberLiteralTypeAnnotation:uI,numberTypeAnnotation:uN,numericLiteral:lt,objectExpression:lu,objectMethod:lc,objectPattern:lV,objectProperty:lp,objectTypeAnnotation:uL,objectTypeCallProperty:uD,objectTypeIndexer:uM,objectTypeInternalSlot:uO,objectTypeProperty:uF,objectTypeSpreadProperty:uB,opaqueType:uj,optionalCallExpression:l3,optionalIndexedAccessType:ct,optionalMemberExpression:l2,parenthesizedExpression:lm,placeholder:cg,privateName:l6,program:ll,qualifiedTypeIdentifier:uR,regExpLiteral:li,regexLiteral:pO,restElement:ld,restProperty:pD,returnStatement:lf,sequenceExpression:lh,spreadElement:lJ,spreadProperty:pM,staticBlock:l9,stringLiteral:le,stringLiteralTypeAnnotation:u$,stringTypeAnnotation:uU,super:lz,switchCase:ly,switchStatement:lg,symbolTypeAnnotation:uq,taggedTemplateExpression:lW,templateElement:lX,templateLiteral:lH,thisExpression:lb,thisTypeAnnotation:uK,throwStatement:lx,topicReference:cA,tryStatement:lS,tsAnyKeyword:cB,tsArrayType:c3,tsAsExpression:ph,tsBigIntKeyword:cR,tsBooleanKeyword:cj,tsCallSignatureDeclaration:cL,tsClassImplements:pl,tsConditionalType:pe,tsConstructSignatureDeclaration:cO,tsConstructorType:cQ,tsDeclareFunction:cI,tsDeclareMethod:c_,tsEnumBody:pg,tsEnumDeclaration:pb,tsEnumMember:px,tsExportAssignment:pA,tsExternalModuleReference:pk,tsFunctionType:cG,tsImportEqualsDeclaration:pE,tsImportType:pv,tsIndexSignature:cF,tsIndexedAccessType:pi,tsInferType:pt,tsInstantiationExpression:pf,tsInterfaceBody:pp,tsInterfaceDeclaration:pc,tsInterfaceHeritage:pu,tsIntersectionType:c7,tsIntrinsicKeyword:c$,tsLiteralType:po,tsMappedType:ps,tsMethodSignature:cM,tsModuleBlock:pT,tsModuleDeclaration:pS,tsNamedTupleMember:c6,tsNamespaceExportDeclaration:pP,tsNeverKeyword:cU,tsNonNullExpression:pw,tsNullKeyword:cq,tsNumberKeyword:cK,tsObjectKeyword:cV,tsOptionalType:c5,tsParameterProperty:cC,tsParenthesizedType:pn,tsPropertySignature:cD,tsQualifiedName:cN,tsRestType:c8,tsSatisfiesExpression:pm,tsStringKeyword:cJ,tsSymbolKeyword:cz,tsTemplateLiteralType:pa,tsThisType:cY,tsTupleType:c4,tsTypeAliasDeclaration:pd,tsTypeAnnotation:pC,tsTypeAssertion:py,tsTypeLiteral:c2,tsTypeOperator:pr,tsTypeParameter:pN,tsTypeParameterDeclaration:p_,tsTypeParameterInstantiation:pI,tsTypePredicate:c0,tsTypeQuery:c1,tsTypeReference:cZ,tsUndefinedKeyword:cW,tsUnionType:c9,tsUnknownKeyword:cX,tsVoidKeyword:cH,tupleTypeAnnotation:uV,typeAlias:uz,typeAnnotation:uW,typeCastExpression:uX,typeParameter:uH,typeParameterDeclaration:uY,typeParameterInstantiation:uG,typeofTypeAnnotation:uJ,unaryExpression:lT,unionTypeAnnotation:uQ,updateExpression:lv,v8IntrinsicIdentifier:cb,variableDeclaration:lE,variableDeclarator:lk,variance:uZ,voidPattern:cP,voidTypeAnnotation:u0,whileStatement:lw,withStatement:lA,yieldExpression:lY},Symbol.toStringTag,{value:"Module"});function pB(e){return function(){return tP(e.replace(/^(?:ts|jsx|[a-z])/,e=>e.toUpperCase()),e,"Usage of builders starting with an uppercase letter such as ","uppercase builders"),pF[e](...arguments)}}var pj=pB("arrayExpression"),pR=pB("assignmentExpression"),p$=pB("binaryExpression"),pU=pB("interpreterDirective"),pq=pB("directive"),pK=pB("directiveLiteral"),pV=pB("blockStatement"),pJ=pB("breakStatement"),pz=pB("callExpression"),pW=pB("catchClause"),pX=pB("conditionalExpression"),pH=pB("continueStatement"),pY=pB("debuggerStatement"),pG=pB("doWhileStatement"),pQ=pB("emptyStatement"),pZ=pB("expressionStatement"),p0=pB("file"),p1=pB("forInStatement"),p2=pB("forStatement"),p3=pB("functionDeclaration"),p4=pB("functionExpression"),p5=pB("identifier"),p8=pB("ifStatement"),p6=pB("labeledStatement"),p9=pB("stringLiteral"),p7=pB("numericLiteral"),de=pB("nullLiteral"),dt=pB("booleanLiteral"),dn=pB("regExpLiteral"),dr=pB("logicalExpression"),di=pB("memberExpression"),ds=pB("newExpression"),da=pB("program"),dl=pB("objectExpression"),du=pB("objectMethod"),dc=pB("objectProperty"),dp=pB("restElement"),dd=pB("returnStatement"),df=pB("sequenceExpression"),dh=pB("parenthesizedExpression"),dm=pB("switchCase"),dy=pB("switchStatement"),dg=pB("thisExpression"),db=pB("throwStatement"),dx=pB("tryStatement"),dS=pB("unaryExpression"),dT=pB("updateExpression"),dv=pB("variableDeclaration"),dE=pB("variableDeclarator"),dk=pB("whileStatement"),dw=pB("withStatement"),dA=pB("assignmentPattern"),dP=pB("arrayPattern"),dC=pB("arrowFunctionExpression"),dI=pB("classBody"),d_=pB("classExpression"),dN=pB("classDeclaration"),dL=pB("exportAllDeclaration"),dO=pB("exportDefaultDeclaration"),dD=pB("exportNamedDeclaration"),dM=pB("exportSpecifier"),dF=pB("forOfStatement"),dB=pB("importDeclaration"),dj=pB("importDefaultSpecifier"),dR=pB("importNamespaceSpecifier"),d$=pB("importSpecifier"),dU=pB("metaProperty"),dq=pB("classMethod"),dK=pB("objectPattern"),dV=pB("spreadElement"),dJ=pB("super"),dz=pB("taggedTemplateExpression"),dW=pB("templateElement"),dX=pB("templateLiteral"),dH=pB("yieldExpression"),dY=pB("awaitExpression"),dG=pB("importExpression"),dQ=pB("import"),dZ=pB("bigIntLiteral"),d0=pB("exportNamespaceSpecifier"),d1=pB("optionalMemberExpression"),d2=pB("optionalCallExpression"),d3=pB("classProperty"),d4=pB("classPrivateProperty"),d5=pB("classPrivateMethod"),d8=pB("privateName"),d6=pB("staticBlock"),d9=pB("importAttribute"),d7=pB("anyTypeAnnotation"),fe=pB("arrayTypeAnnotation"),ft=pB("booleanTypeAnnotation"),fn=pB("booleanLiteralTypeAnnotation"),fr=pB("nullLiteralTypeAnnotation"),fi=pB("classImplements"),fs=pB("declareClass"),fa=pB("declareFunction"),fo=pB("declareInterface"),fl=pB("declareModule"),fu=pB("declareModuleExports"),fc=pB("declareTypeAlias"),fp=pB("declareOpaqueType"),fd=pB("declareVariable"),ff=pB("declareExportDeclaration"),fh=pB("declareExportAllDeclaration"),fm=pB("declaredPredicate"),fy=pB("existsTypeAnnotation"),fg=pB("functionTypeAnnotation"),fb=pB("functionTypeParam"),fx=pB("genericTypeAnnotation"),fS=pB("inferredPredicate"),fT=pB("interfaceExtends"),fv=pB("interfaceDeclaration"),fE=pB("interfaceTypeAnnotation"),fk=pB("intersectionTypeAnnotation"),fw=pB("mixedTypeAnnotation"),fA=pB("emptyTypeAnnotation"),fP=pB("nullableTypeAnnotation"),fC=pB("numberLiteralTypeAnnotation"),fI=pB("bigIntLiteralTypeAnnotation"),f_=pB("numberTypeAnnotation"),fN=pB("objectTypeAnnotation"),fL=pB("objectTypeInternalSlot"),fO=pB("objectTypeCallProperty"),fD=pB("objectTypeIndexer"),fM=pB("objectTypeProperty"),fF=pB("objectTypeSpreadProperty"),fB=pB("opaqueType"),fj=pB("qualifiedTypeIdentifier"),fR=pB("stringLiteralTypeAnnotation"),f$=pB("stringTypeAnnotation"),fU=pB("symbolTypeAnnotation"),fq=pB("thisTypeAnnotation"),fK=pB("tupleTypeAnnotation"),fV=pB("typeofTypeAnnotation"),fJ=pB("typeAlias"),fz=pB("typeAnnotation"),fW=pB("typeCastExpression"),fX=pB("typeParameter"),fH=pB("typeParameterDeclaration"),fY=pB("typeParameterInstantiation"),fG=pB("unionTypeAnnotation"),fQ=pB("variance"),fZ=pB("voidTypeAnnotation"),f0=pB("enumDeclaration"),f1=pB("enumBooleanBody"),f2=pB("enumNumberBody"),f3=pB("enumStringBody"),f4=pB("enumSymbolBody"),f5=pB("enumBooleanMember"),f8=pB("enumNumberMember"),f6=pB("enumStringMember"),f9=pB("enumDefaultedMember"),f7=pB("indexedAccessType"),he=pB("optionalIndexedAccessType"),ht=pB("jsxAttribute"),hn=pB("jsxClosingElement"),hr=pB("jsxElement"),hi=pB("jsxEmptyExpression"),hs=pB("jsxExpressionContainer"),ha=pB("jsxSpreadChild"),ho=pB("jsxIdentifier"),hl=pB("jsxMemberExpression"),hu=pB("jsxNamespacedName"),hc=pB("jsxOpeningElement"),hp=pB("jsxSpreadAttribute"),hd=pB("jsxText"),hf=pB("jsxFragment"),hh=pB("jsxOpeningFragment"),hm=pB("jsxClosingFragment"),hy=pB("placeholder"),hg=pB("v8IntrinsicIdentifier"),hb=pB("argumentPlaceholder"),hx=pB("bindExpression"),hS=pB("classAccessorProperty"),hT=pB("decorator"),hv=pB("doExpression"),hE=pB("exportDefaultSpecifier"),hk=pB("moduleExpression"),hw=pB("topicReference"),hA=pB("voidPattern"),hP=pB("tsParameterProperty"),hC=pB("tsDeclareFunction"),hI=pB("tsDeclareMethod"),h_=pB("tsQualifiedName"),hN=pB("tsCallSignatureDeclaration"),hL=pB("tsConstructSignatureDeclaration"),hO=pB("tsPropertySignature"),hD=pB("tsMethodSignature"),hM=pB("tsIndexSignature"),hF=pB("tsAnyKeyword"),hB=pB("tsBooleanKeyword"),hj=pB("tsBigIntKeyword"),hR=pB("tsIntrinsicKeyword"),h$=pB("tsNeverKeyword"),hU=pB("tsNullKeyword"),hq=pB("tsNumberKeyword"),hK=pB("tsObjectKeyword"),hV=pB("tsStringKeyword"),hJ=pB("tsSymbolKeyword"),hz=pB("tsUndefinedKeyword"),hW=pB("tsUnknownKeyword"),hX=pB("tsVoidKeyword"),hH=pB("tsThisType"),hY=pB("tsFunctionType"),hG=pB("tsConstructorType"),hQ=pB("tsTypeReference"),hZ=pB("tsTypePredicate"),h0=pB("tsTypeQuery"),h1=pB("tsTypeLiteral"),h2=pB("tsArrayType"),h3=pB("tsTupleType"),h4=pB("tsOptionalType"),h5=pB("tsRestType"),h8=pB("tsNamedTupleMember"),h6=pB("tsUnionType"),h9=pB("tsIntersectionType"),h7=pB("tsConditionalType"),me=pB("tsInferType"),mt=pB("tsParenthesizedType"),mn=pB("tsTypeOperator"),mr=pB("tsIndexedAccessType"),mi=pB("tsMappedType"),ms=pB("tsTemplateLiteralType"),ma=pB("tsLiteralType"),mo=pB("tsClassImplements"),ml=pB("tsInterfaceHeritage"),mu=pB("tsInterfaceDeclaration"),mc=pB("tsInterfaceBody"),mp=pB("tsTypeAliasDeclaration"),md=pB("tsInstantiationExpression"),mf=pB("tsAsExpression"),mh=pB("tsSatisfiesExpression"),mm=pB("tsTypeAssertion"),my=pB("tsEnumBody"),mg=pB("tsEnumDeclaration"),mb=pB("tsEnumMember"),mx=pB("tsModuleDeclaration"),mS=pB("tsModuleBlock"),mT=pB("tsImportType"),mv=pB("tsImportEqualsDeclaration"),mE=pB("tsExternalModuleReference"),mk=pB("tsNonNullExpression"),mw=pB("tsExportAssignment"),mA=pB("tsNamespaceExportDeclaration"),mP=pB("tsTypeAnnotation"),mC=pB("tsTypeParameterInstantiation"),mI=pB("tsTypeParameterDeclaration"),m_=pB("tsTypeParameter");function mN(e){return!!(e&&aB[e.type])}function mL(e){if(!mN(e)){let t=e?.type??JSON.stringify(e);throw TypeError(`Not a valid node of type "${t}"`)}}function mO(e,t,n){if(!ag(e,t,n))throw Error(`Expected type "${e}" with option ${JSON.stringify(n)}, but instead got "${t.type}".`)}function mD(e,t){mO("ArrayExpression",e,t)}function mM(e,t){mO("AssignmentExpression",e,t)}function mF(e,t){mO("BinaryExpression",e,t)}function mB(e,t){mO("InterpreterDirective",e,t)}function mj(e,t){mO("Directive",e,t)}function mR(e,t){mO("DirectiveLiteral",e,t)}function m$(e,t){mO("BlockStatement",e,t)}function mU(e,t){mO("BreakStatement",e,t)}function mq(e,t){mO("CallExpression",e,t)}function mK(e,t){mO("CatchClause",e,t)}function mV(e,t){mO("ConditionalExpression",e,t)}function mJ(e,t){mO("ContinueStatement",e,t)}function mz(e,t){mO("DebuggerStatement",e,t)}function mW(e,t){mO("DoWhileStatement",e,t)}function mX(e,t){mO("EmptyStatement",e,t)}function mH(e,t){mO("ExpressionStatement",e,t)}function mY(e,t){mO("File",e,t)}function mG(e,t){mO("ForInStatement",e,t)}function mQ(e,t){mO("ForStatement",e,t)}function mZ(e,t){mO("FunctionDeclaration",e,t)}function m0(e,t){mO("FunctionExpression",e,t)}function m1(e,t){mO("Identifier",e,t)}function m2(e,t){mO("IfStatement",e,t)}function m3(e,t){mO("LabeledStatement",e,t)}function m4(e,t){mO("StringLiteral",e,t)}function m5(e,t){mO("NumericLiteral",e,t)}function m8(e,t){mO("NullLiteral",e,t)}function m6(e,t){mO("BooleanLiteral",e,t)}function m9(e,t){mO("RegExpLiteral",e,t)}function m7(e,t){mO("LogicalExpression",e,t)}function ye(e,t){mO("MemberExpression",e,t)}function yt(e,t){mO("NewExpression",e,t)}function yn(e,t){mO("Program",e,t)}function yr(e,t){mO("ObjectExpression",e,t)}function yi(e,t){mO("ObjectMethod",e,t)}function ys(e,t){mO("ObjectProperty",e,t)}function ya(e,t){mO("RestElement",e,t)}function yo(e,t){mO("ReturnStatement",e,t)}function yl(e,t){mO("SequenceExpression",e,t)}function yu(e,t){mO("ParenthesizedExpression",e,t)}function yc(e,t){mO("SwitchCase",e,t)}function yp(e,t){mO("SwitchStatement",e,t)}function yd(e,t){mO("ThisExpression",e,t)}function yf(e,t){mO("ThrowStatement",e,t)}function yh(e,t){mO("TryStatement",e,t)}function ym(e,t){mO("UnaryExpression",e,t)}function yy(e,t){mO("UpdateExpression",e,t)}function yg(e,t){mO("VariableDeclaration",e,t)}function yb(e,t){mO("VariableDeclarator",e,t)}function yx(e,t){mO("WhileStatement",e,t)}function yS(e,t){mO("WithStatement",e,t)}function yT(e,t){mO("AssignmentPattern",e,t)}function yv(e,t){mO("ArrayPattern",e,t)}function yE(e,t){mO("ArrowFunctionExpression",e,t)}function yk(e,t){mO("ClassBody",e,t)}function yw(e,t){mO("ClassExpression",e,t)}function yA(e,t){mO("ClassDeclaration",e,t)}function yP(e,t){mO("ExportAllDeclaration",e,t)}function yC(e,t){mO("ExportDefaultDeclaration",e,t)}function yI(e,t){mO("ExportNamedDeclaration",e,t)}function y_(e,t){mO("ExportSpecifier",e,t)}function yN(e,t){mO("ForOfStatement",e,t)}function yL(e,t){mO("ImportDeclaration",e,t)}function yO(e,t){mO("ImportDefaultSpecifier",e,t)}function yD(e,t){mO("ImportNamespaceSpecifier",e,t)}function yM(e,t){mO("ImportSpecifier",e,t)}function yF(e,t){mO("MetaProperty",e,t)}function yB(e,t){mO("ClassMethod",e,t)}function yj(e,t){mO("ObjectPattern",e,t)}function yR(e,t){mO("SpreadElement",e,t)}function y$(e,t){mO("Super",e,t)}function yU(e,t){mO("TaggedTemplateExpression",e,t)}function yq(e,t){mO("TemplateElement",e,t)}function yK(e,t){mO("TemplateLiteral",e,t)}function yV(e,t){mO("YieldExpression",e,t)}function yJ(e,t){mO("AwaitExpression",e,t)}function yz(e,t){mO("ImportExpression",e,t)}function yW(e,t){mO("Import",e,t)}function yX(e,t){mO("BigIntLiteral",e,t)}function yH(e,t){mO("ExportNamespaceSpecifier",e,t)}function yY(e,t){mO("OptionalMemberExpression",e,t)}function yG(e,t){mO("OptionalCallExpression",e,t)}function yQ(e,t){mO("ClassProperty",e,t)}function yZ(e,t){mO("ClassPrivateProperty",e,t)}function y0(e,t){mO("ClassPrivateMethod",e,t)}function y1(e,t){mO("PrivateName",e,t)}function y2(e,t){mO("StaticBlock",e,t)}function y3(e,t){mO("ImportAttribute",e,t)}function y4(e,t){mO("AnyTypeAnnotation",e,t)}function y5(e,t){mO("ArrayTypeAnnotation",e,t)}function y8(e,t){mO("BooleanTypeAnnotation",e,t)}function y6(e,t){mO("BooleanLiteralTypeAnnotation",e,t)}function y9(e,t){mO("NullLiteralTypeAnnotation",e,t)}function y7(e,t){mO("ClassImplements",e,t)}function ge(e,t){mO("DeclareClass",e,t)}function gt(e,t){mO("DeclareFunction",e,t)}function gn(e,t){mO("DeclareInterface",e,t)}function gr(e,t){mO("DeclareModule",e,t)}function gi(e,t){mO("DeclareModuleExports",e,t)}function gs(e,t){mO("DeclareTypeAlias",e,t)}function ga(e,t){mO("DeclareOpaqueType",e,t)}function go(e,t){mO("DeclareVariable",e,t)}function gl(e,t){mO("DeclareExportDeclaration",e,t)}function gu(e,t){mO("DeclareExportAllDeclaration",e,t)}function gc(e,t){mO("DeclaredPredicate",e,t)}function gp(e,t){mO("ExistsTypeAnnotation",e,t)}function gd(e,t){mO("FunctionTypeAnnotation",e,t)}function gf(e,t){mO("FunctionTypeParam",e,t)}function gh(e,t){mO("GenericTypeAnnotation",e,t)}function gm(e,t){mO("InferredPredicate",e,t)}function gy(e,t){mO("InterfaceExtends",e,t)}function gg(e,t){mO("InterfaceDeclaration",e,t)}function gb(e,t){mO("InterfaceTypeAnnotation",e,t)}function gx(e,t){mO("IntersectionTypeAnnotation",e,t)}function gS(e,t){mO("MixedTypeAnnotation",e,t)}function gT(e,t){mO("EmptyTypeAnnotation",e,t)}function gv(e,t){mO("NullableTypeAnnotation",e,t)}function gE(e,t){mO("NumberLiteralTypeAnnotation",e,t)}function gk(e,t){mO("BigIntLiteralTypeAnnotation",e,t)}function gw(e,t){mO("NumberTypeAnnotation",e,t)}function gA(e,t){mO("ObjectTypeAnnotation",e,t)}function gP(e,t){mO("ObjectTypeInternalSlot",e,t)}function gC(e,t){mO("ObjectTypeCallProperty",e,t)}function gI(e,t){mO("ObjectTypeIndexer",e,t)}function g_(e,t){mO("ObjectTypeProperty",e,t)}function gN(e,t){mO("ObjectTypeSpreadProperty",e,t)}function gL(e,t){mO("OpaqueType",e,t)}function gO(e,t){mO("QualifiedTypeIdentifier",e,t)}function gD(e,t){mO("StringLiteralTypeAnnotation",e,t)}function gM(e,t){mO("StringTypeAnnotation",e,t)}function gF(e,t){mO("SymbolTypeAnnotation",e,t)}function gB(e,t){mO("ThisTypeAnnotation",e,t)}function gj(e,t){mO("TupleTypeAnnotation",e,t)}function gR(e,t){mO("TypeofTypeAnnotation",e,t)}function g$(e,t){mO("TypeAlias",e,t)}function gU(e,t){mO("TypeAnnotation",e,t)}function gq(e,t){mO("TypeCastExpression",e,t)}function gK(e,t){mO("TypeParameter",e,t)}function gV(e,t){mO("TypeParameterDeclaration",e,t)}function gJ(e,t){mO("TypeParameterInstantiation",e,t)}function gz(e,t){mO("UnionTypeAnnotation",e,t)}function gW(e,t){mO("Variance",e,t)}function gX(e,t){mO("VoidTypeAnnotation",e,t)}function gH(e,t){mO("EnumDeclaration",e,t)}function gY(e,t){mO("EnumBooleanBody",e,t)}function gG(e,t){mO("EnumNumberBody",e,t)}function gQ(e,t){mO("EnumStringBody",e,t)}function gZ(e,t){mO("EnumSymbolBody",e,t)}function g0(e,t){mO("EnumBooleanMember",e,t)}function g1(e,t){mO("EnumNumberMember",e,t)}function g2(e,t){mO("EnumStringMember",e,t)}function g3(e,t){mO("EnumDefaultedMember",e,t)}function g4(e,t){mO("IndexedAccessType",e,t)}function g5(e,t){mO("OptionalIndexedAccessType",e,t)}function g8(e,t){mO("JSXAttribute",e,t)}function g6(e,t){mO("JSXClosingElement",e,t)}function g9(e,t){mO("JSXElement",e,t)}function g7(e,t){mO("JSXEmptyExpression",e,t)}function be(e,t){mO("JSXExpressionContainer",e,t)}function bt(e,t){mO("JSXSpreadChild",e,t)}function bn(e,t){mO("JSXIdentifier",e,t)}function br(e,t){mO("JSXMemberExpression",e,t)}function bi(e,t){mO("JSXNamespacedName",e,t)}function bs(e,t){mO("JSXOpeningElement",e,t)}function ba(e,t){mO("JSXSpreadAttribute",e,t)}function bo(e,t){mO("JSXText",e,t)}function bl(e,t){mO("JSXFragment",e,t)}function bu(e,t){mO("JSXOpeningFragment",e,t)}function bc(e,t){mO("JSXClosingFragment",e,t)}function bp(e,t){mO("Placeholder",e,t)}function bd(e,t){mO("V8IntrinsicIdentifier",e,t)}function bf(e,t){mO("ArgumentPlaceholder",e,t)}function bh(e,t){mO("BindExpression",e,t)}function bm(e,t){mO("ClassAccessorProperty",e,t)}function by(e,t){mO("Decorator",e,t)}function bg(e,t){mO("DoExpression",e,t)}function bb(e,t){mO("ExportDefaultSpecifier",e,t)}function bx(e,t){mO("ModuleExpression",e,t)}function bS(e,t){mO("TopicReference",e,t)}function bT(e,t){mO("VoidPattern",e,t)}function bv(e,t){mO("TSParameterProperty",e,t)}function bE(e,t){mO("TSDeclareFunction",e,t)}function bk(e,t){mO("TSDeclareMethod",e,t)}function bw(e,t){mO("TSQualifiedName",e,t)}function bA(e,t){mO("TSCallSignatureDeclaration",e,t)}function bP(e,t){mO("TSConstructSignatureDeclaration",e,t)}function bC(e,t){mO("TSPropertySignature",e,t)}function bI(e,t){mO("TSMethodSignature",e,t)}function b_(e,t){mO("TSIndexSignature",e,t)}function bN(e,t){mO("TSAnyKeyword",e,t)}function bL(e,t){mO("TSBooleanKeyword",e,t)}function bO(e,t){mO("TSBigIntKeyword",e,t)}function bD(e,t){mO("TSIntrinsicKeyword",e,t)}function bM(e,t){mO("TSNeverKeyword",e,t)}function bF(e,t){mO("TSNullKeyword",e,t)}function bB(e,t){mO("TSNumberKeyword",e,t)}function bj(e,t){mO("TSObjectKeyword",e,t)}function bR(e,t){mO("TSStringKeyword",e,t)}function b$(e,t){mO("TSSymbolKeyword",e,t)}function bU(e,t){mO("TSUndefinedKeyword",e,t)}function bq(e,t){mO("TSUnknownKeyword",e,t)}function bK(e,t){mO("TSVoidKeyword",e,t)}function bV(e,t){mO("TSThisType",e,t)}function bJ(e,t){mO("TSFunctionType",e,t)}function bz(e,t){mO("TSConstructorType",e,t)}function bW(e,t){mO("TSTypeReference",e,t)}function bX(e,t){mO("TSTypePredicate",e,t)}function bH(e,t){mO("TSTypeQuery",e,t)}function bY(e,t){mO("TSTypeLiteral",e,t)}function bG(e,t){mO("TSArrayType",e,t)}function bQ(e,t){mO("TSTupleType",e,t)}function bZ(e,t){mO("TSOptionalType",e,t)}function b0(e,t){mO("TSRestType",e,t)}function b1(e,t){mO("TSNamedTupleMember",e,t)}function b2(e,t){mO("TSUnionType",e,t)}function b3(e,t){mO("TSIntersectionType",e,t)}function b4(e,t){mO("TSConditionalType",e,t)}function b5(e,t){mO("TSInferType",e,t)}function b8(e,t){mO("TSParenthesizedType",e,t)}function b6(e,t){mO("TSTypeOperator",e,t)}function b9(e,t){mO("TSIndexedAccessType",e,t)}function b7(e,t){mO("TSMappedType",e,t)}function xe(e,t){mO("TSTemplateLiteralType",e,t)}function xt(e,t){mO("TSLiteralType",e,t)}function xn(e,t){mO("TSClassImplements",e,t)}function xr(e,t){mO("TSInterfaceHeritage",e,t)}function xi(e,t){mO("TSInterfaceDeclaration",e,t)}function xs(e,t){mO("TSInterfaceBody",e,t)}function xa(e,t){mO("TSTypeAliasDeclaration",e,t)}function xo(e,t){mO("TSInstantiationExpression",e,t)}function xl(e,t){mO("TSAsExpression",e,t)}function xu(e,t){mO("TSSatisfiesExpression",e,t)}function xc(e,t){mO("TSTypeAssertion",e,t)}function xp(e,t){mO("TSEnumBody",e,t)}function xd(e,t){mO("TSEnumDeclaration",e,t)}function xf(e,t){mO("TSEnumMember",e,t)}function xh(e,t){mO("TSModuleDeclaration",e,t)}function xm(e,t){mO("TSModuleBlock",e,t)}function xy(e,t){mO("TSImportType",e,t)}function xg(e,t){mO("TSImportEqualsDeclaration",e,t)}function xb(e,t){mO("TSExternalModuleReference",e,t)}function xx(e,t){mO("TSNonNullExpression",e,t)}function xS(e,t){mO("TSExportAssignment",e,t)}function xT(e,t){mO("TSNamespaceExportDeclaration",e,t)}function xv(e,t){mO("TSTypeAnnotation",e,t)}function xE(e,t){mO("TSTypeParameterInstantiation",e,t)}function xk(e,t){mO("TSTypeParameterDeclaration",e,t)}function xw(e,t){mO("TSTypeParameter",e,t)}function xA(e,t){mO("Standardized",e,t)}function xP(e,t){mO("Expression",e,t)}function xC(e,t){mO("Binary",e,t)}function xI(e,t){mO("Scopable",e,t)}function x_(e,t){mO("BlockParent",e,t)}function xN(e,t){mO("Block",e,t)}function xL(e,t){mO("Statement",e,t)}function xO(e,t){mO("Terminatorless",e,t)}function xD(e,t){mO("CompletionStatement",e,t)}function xM(e,t){mO("Conditional",e,t)}function xF(e,t){mO("Loop",e,t)}function xB(e,t){mO("While",e,t)}function xj(e,t){mO("ExpressionWrapper",e,t)}function xR(e,t){mO("For",e,t)}function x$(e,t){mO("ForXStatement",e,t)}function xU(e,t){mO("Function",e,t)}function xq(e,t){mO("FunctionParent",e,t)}function xK(e,t){mO("Pureish",e,t)}function xV(e,t){mO("Declaration",e,t)}function xJ(e,t){mO("FunctionParameter",e,t)}function xz(e,t){mO("PatternLike",e,t)}function xW(e,t){mO("LVal",e,t)}function xX(e,t){mO("TSEntityName",e,t)}function xH(e,t){mO("Literal",e,t)}function xY(e,t){mO("Immutable",e,t)}function xG(e,t){mO("UserWhitespacable",e,t)}function xQ(e,t){mO("Method",e,t)}function xZ(e,t){mO("ObjectMember",e,t)}function x0(e,t){mO("Property",e,t)}function x1(e,t){mO("UnaryLike",e,t)}function x2(e,t){mO("Pattern",e,t)}function x3(e,t){mO("Class",e,t)}function x4(e,t){mO("ImportOrExportDeclaration",e,t)}function x5(e,t){mO("ExportDeclaration",e,t)}function x8(e,t){mO("ModuleSpecifier",e,t)}function x6(e,t){mO("Private",e,t)}function x9(e,t){mO("Flow",e,t)}function x7(e,t){mO("FlowType",e,t)}function Se(e,t){mO("FlowBaseAnnotation",e,t)}function St(e,t){mO("FlowDeclaration",e,t)}function Sn(e,t){mO("FlowPredicate",e,t)}function Sr(e,t){mO("EnumBody",e,t)}function Si(e,t){mO("EnumMember",e,t)}function Ss(e,t){mO("JSX",e,t)}function Sa(e,t){mO("Miscellaneous",e,t)}function So(e,t){mO("Accessor",e,t)}function Sl(e,t){mO("TypeScript",e,t)}function Su(e,t){mO("TSTypeElement",e,t)}function Sc(e,t){mO("TSType",e,t)}function Sp(e,t){mO("TSBaseType",e,t)}function Sd(e,t){tP("assertNumberLiteral","assertNumericLiteral"),mO("NumberLiteral",e,t)}function Sf(e,t){tP("assertRegexLiteral","assertRegExpLiteral"),mO("RegexLiteral",e,t)}function Sh(e,t){tP("assertRestProperty","assertRestElement"),mO("RestProperty",e,t)}function Sm(e,t){tP("assertSpreadProperty","assertSpreadElement"),mO("SpreadProperty",e,t)}function Sy(e,t){tP("assertModuleDeclaration","assertImportOrExportDeclaration"),mO("ModuleDeclaration",e,t)}function Sg(e){switch(e){case"string":return uU();case"number":return uN();case"undefined":return u0();case"boolean":return un();case"function":return uS(o6("Function"));case"object":return uS(o6("Object"));case"symbol":return uS(o6("Symbol"));case"bigint":return ue()}throw Error("Invalid typeof value: "+e)}function Sb(e){let t=Array.from(e),n=new Map,r=new Map,i=new Set,s=[];for(let e=0;e<t.length;e++){let a=t[e];if(a&&!s.includes(a)){if(nQ(a))return[a];if(s5()){r.set(a.type,a);continue}if(r$(a)){i.has(a.types)||(t.push(...a.types),i.add(a.types));continue}if(rl(a)){let e=function e(t){return tH(t)?t.name:`${t.id.name}.${e(t.qualification)}`}(a.id);if(n.has(e)){let t=n.get(e).typeParameters;t&&a.typeParameters&&(t.params.push(...a.typeParameters.params),t.params=Sb(t.params))}else n.set(e,a);continue}s.push(a)}}for(let[,e]of r)s.push(e);for(let[,e]of n)s.push(e);return s}function Sx(e){let t=Sb(e);return 1===t.length?t[0]:uQ(t)}function SS(e){let t=function e(t){let n=Array.from(t),r=new Map,i=new Map,s=new Set,a=[];for(let t=0;t<n.length;t++){let o=n[t];if(!o||a.includes(o))continue;if(iP(o))return[o];if(aa(o)){i.set(o.type,o);continue}if(iQ(o)){s.has(o.types)||(n.push(...o.types),s.add(o.types));continue}let l="typeArguments";if(iK(o)&&o[l]){let t=o[l],n=function e(t){return tH(t)?t.name:na(t)?"this":`${t.right.name}.${e(t.left)}`}(o.typeName);if(r.has(n)){let i=r.get(n)[l];i&&(i.params.push(...t.params),i.params=e(i.params))}else r.set(n,o);continue}a.push(o)}for(let[,e]of i)a.push(e);for(let[,e]of r)a.push(e);return a}(e.map(e=>sb(e)?e.typeAnnotation:e));return 1===t.length?t[0]:c9(t)}function ST(){return lT("void",lt(0),!0)}var{hasOwn:Sv}=Object;function SE(e,t,n,r){return e&&"string"==typeof e.type?SA(e,t,n,r):e}function Sk(e,t,n,r){return Array.isArray(e)?e.map(e=>SE(e,t,n,r)):SE(e,t,n,r)}function Sw(e,t=!0,n=!1){return e?SA(e,t,n,new Map):e}function SA(e,t=!0,n=!1,r){if(!e)return e;let{type:i}=e,s={type:e.type};if(tH(e))s.name=e.name,Sv(e,"optional")&&"boolean"==typeof e.optional&&(s.optional=e.optional),Sv(e,"typeAnnotation")&&(s.typeAnnotation=t?Sk(e.typeAnnotation,!0,n,r):e.typeAnnotation),Sv(e,"decorators")&&(s.decorators=t?Sk(e.decorators,!0,n,r):e.decorators);else if(Sv(a$,i))for(let a of Object.keys(a$[i]))Sv(e,a)&&(t?s[a]=tV(e)&&"comments"===a?SP(e.comments,t,n,r):Sk(e[a],!0,n,r):s[a]=e[a]);else throw Error(`Unknown node type: "${i}"`);return Sv(e,"loc")&&(n?s.loc=null:s.loc=e.loc),Sv(e,"leadingComments")&&(s.leadingComments=SP(e.leadingComments,t,n,r)),Sv(e,"innerComments")&&(s.innerComments=SP(e.innerComments,t,n,r)),Sv(e,"trailingComments")&&(s.trailingComments=SP(e.trailingComments,t,n,r)),Sv(e,"extra")&&(s.extra={...e.extra}),s}function SP(e,t,n,r){return e&&t?e.map(e=>{let t=r.get(e);if(t)return t;let{type:i,value:s,loc:a}=e,o={type:i,value:s,loc:a};return n&&(o.loc=void 0),r.set(e,o),o}):e}function SC(e){return Sw(e,!1)}function SI(e){return Sw(e)}function S_(e){return Sw(e,!0,!0)}function SN(e){return Sw(e,!1,!0)}function SL(e,t,n){if(!n||!e)return e;let r=`${t}Comments`;return e[r]?"leading"===t?e[r]=n.concat(e[r]):e[r].push(...n):e[r]=n,e}function SO(e,t,n,r){return SL(e,t,[{type:r?"CommentLine":"CommentBlock",value:n}])}function SD(e,t,n){if(t&&n){let r=n[e];if(!r)return;let i=t[e];t[e]=Array.from(i?new Set([...i,...r].filter(Boolean)):r)}}function SM(e,t){SD("innerComments",e,t)}function SF(e,t){SD("leadingComments",e,t)}function SB(e,t){SD("trailingComments",e,t)}function Sj(e,t){return SB(e,t),SF(e,t),SM(e,t),e}function SR(e){return av.forEach(t=>{e[t]=null}),e}var S$=aR.Standardized,SU=aR.Expression,Sq=aR.Binary,SK=aR.Scopable,SV=aR.BlockParent,SJ=aR.Block,Sz=aR.Statement,SW=aR.Terminatorless,SX=aR.CompletionStatement,SH=aR.Conditional,SY=aR.Loop,SG=aR.While,SQ=aR.ExpressionWrapper,SZ=aR.For,S0=aR.ForXStatement,S1=aR.Function,S2=aR.FunctionParent,S3=aR.Pureish,S4=aR.Declaration,S5=aR.FunctionParameter,S8=aR.PatternLike,S6=aR.LVal,S9=aR.TSEntityName,S7=aR.Literal,Te=aR.Immutable,Tt=aR.UserWhitespacable,Tn=aR.Method,Tr=aR.ObjectMember,Ti=aR.Property,Ts=aR.UnaryLike,Ta=aR.Pattern,To=aR.Class,Tl=aR.ImportOrExportDeclaration,Tu=aR.ExportDeclaration,Tc=aR.ModuleSpecifier,Tp=aR.Private,Td=aR.Flow,Tf=aR.FlowType,Th=aR.FlowBaseAnnotation,Tm=aR.FlowDeclaration,Ty=aR.FlowPredicate,Tg=aR.EnumBody,Tb=aR.EnumMember,Tx=aR.JSX,TS=aR.Miscellaneous,TT=aR.Accessor,Tv=aR.TypeScript,TE=aR.TSTypeElement,Tk=aR.TSType,Tw=aR.TSBaseType,TA=Tl;function TP(e,t){let n;return tD(e)?e:(tq(e)?n=[]:(sC(e)||(e=sB(t)?lf(e):o1(e)),n=[e]),oz(n))}function TC(e,t="body"){let n=TP(e[t],e);return e[t]=n,n}function TI(e){let t="";for(let n of e+="")t+=tb(n.codePointAt(0))?n:"-";return ab(t=(t=t.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}))||(t=`_${t}`),t||"_"}function T_(e){return("eval"===(e=TI(e))||"arguments"===e)&&(e="_"+e),e}function TN(e,t=e.key||e.property){return!e.computed&&tH(t)&&(t=le(t.name)),t}function TL(e){if(tK(e)&&(e=e.expression),sE(e))return e;if(sQ(e)?(e.type="ClassExpression",e.abstract=!1):sB(e)&&(e.type="FunctionExpression"),!sE(e))throw Error(`cannot turn ${e.type} to an expression`);return e}var TO=Symbol(),TD=Symbol();function TM(e,t,n){if(!e)return!1;let r=aB[e.type];if(!r)return!1;let i=t(e,n=n||{});if(void 0!==i)switch(i){case TO:return!1;case TD:return!0}for(let i of r){let r=e[i];if(r){if(Array.isArray(r)){for(let e of r)if(TM(e,t,n))return!0}else if(TM(r,t,n))return!0}}return!1}TM.skip=TO,TM.stop=TD;var TF=["tokens","start","end","loc","raw","rawValue"],TB=[...av,"comments",...TF];function Tj(e,t={}){for(let n of t.preserveComments?TF:TB)null!=e[n]&&(e[n]=void 0);for(let t of Object.keys(e))t.startsWith("_")&&null!=e[t]&&(e[t]=void 0);for(let t of Object.getOwnPropertySymbols(e))e[t]=null}function TR(e,t){return TM(e,Tj,t),e}function T$(e,t=e.key){let n;return"method"===e.kind?T$.increment()+"":(n=tH(t)?t.name:tQ(t)?JSON.stringify(t.value):JSON.stringify(TR(Sw(t))),e.computed&&(n=`[${n}]`),e.static&&(n=`static:${n}`),n)}function TU(e,t){let n;if(sC(e))return e;let r=!1;if(sQ(e))r=!0,n="ClassDeclaration";else if(sB(e))r=!0,n="FunctionDeclaration";else if(tI(e))return o1(e);if(r&&!e.id&&(n=!1),!n)if(t)return!1;else throw Error(`cannot turn ${e.type} to a statement`);return e.type=n,e}T$.uid=0,T$.increment=function(){return T$.uid>=Number.MAX_SAFE_INTEGER?T$.uid=0:T$.uid++};var Tq=Function.call.bind(Object.prototype.toString);function TK(e,t,n=!1){return e.object=la(e.object,e.property,e.computed),e.property=t,e.computed=!!n,e}function TV(e,t){if(!e||!t)return e;for(let n of aF.optional)null==e[n]&&(e[n]=t[n]);for(let n of Object.keys(t))n.startsWith("_")&&"__clone"!==n&&(e[n]=t[n]);for(let n of aF.force)e[n]=t[n];return Sj(e,t),e}function TJ(e,t){if(nD(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=la(t,e.object),e}function Tz(e){let t=[].concat(e),n=Object.create(null);for(;t.length;){let e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":n[e.name]=e}}return n}function TW(e,t,n,r){let i=[].concat(e),s=Object.create(null);for(;i.length;){let e=i.shift();if(!e||r&&(tI(e)||nu(e)||nc(e)))continue;if(tH(e)){t?(s[e.name]=s[e.name]||[]).push(e):s[e.name]=e;continue}if(s0(e)&&!nT(e)){s$(e.declaration)&&i.push(e.declaration);continue}if(n){if(tW(e)){i.push(e.id);continue}if(tX(e)||nx(e))continue}let a=TW.keys[e.type];if(a)for(let t=0;t<a.length;t++){let n=e[a[t]];n&&(Array.isArray(n)?i.push(...n):i.push(n))}}return s}function TX(e,t){return TW(e,t,!0)}function TH(e){return!e.computed||sJ(e.key)?e.key:null}function TY(e,t){var n;let r;if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let i="";if(t7(t,{value:e})?r=TH(t):t9(e)||nN(e)?(r=TH(e),"get"===e.kind?i="get ":"set"===e.kind&&(i="set ")):nd(t)&&t.init===e?r=t.id:tI(t,{operator:"=",right:e})&&(r=t.left),!r)return null;let s=sJ(r)?t0(n=r)?"null":t2(n)?`/${n.pattern}/${n.flags}`:nB(n)?n.quasis.map(e=>e.value.raw).join(""):void 0!==n.value?String(n.value):null:tH(r)?r.name:nH(r)?r.id.name:null;return null==s?null:{name:i+s,originalNode:r}}function TG(e,t,n){"function"==typeof t&&(t={enter:t});let{enter:r,exit:i}=t;!function e(t,n,r,i,s){let a=aB[t.type];if(a){for(let o of(n&&n(t,s,i),a)){let a=t[o];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];u&&(s.push({node:t,key:o,index:l}),e(u,n,r,i,s),s.pop())}else a&&(s.push({node:t,key:o}),e(a,n,r,i,s),s.pop())}r&&r(t,s,i)}}(e,r,i,n,[])}function TQ(e,t,n){if(n&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===n.type)return!1;let r=TW.keys[t.type];if(r)for(let n=0;n<r.length;n++){let i=t[r[n]];if(Array.isArray(i)){if(i.includes(e))return!0}else if(i===e)return!0}return!1}function TZ(e){return np(e)&&"var"!==e.kind}function T0(e){return tW(e)||nS(e)||TZ(e)}function T1(e){return!!(am(e.type,"Immutable")||tH(e)&&"undefined"===e.name)||!1}function T2(e,t,n){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return n?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":if(t.key===e)return!!t.computed;break;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":if(n?.source)return!1;return t.local===e;case"TSEnumMember":return t.id!==e}return!0}function T3(e,t){return!(tD(e)&&(sB(t)||tB(t)))&&(!!(sG(e)&&(sB(t)||tB(t)))||sw(e))}function T4(e){return nP(e)||tH(e.imported||e.exported,{name:"default"})}TW.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"],TSImportEqualsDeclaration:["id"],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 T5=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 T8(e){return ab(e)&&!T5.has(e)}function T6(e){return np(e)&&"var"===e.kind}var T9={isReactComponent:ah,isCompatTag:function(e){return!!e&&/^[a-z]/.test(e)},buildChildren:function(e){let t=[];for(let n=0;n<e.children.length;n++){let r=e.children[n];if(it(r)){!function(e,t){let n=e.value.split(/\r\n|\n|\r/),r=0;for(let e=0;e<n.length;e++)/[^ \t]/.exec(n[e])&&(r=e);let i="";for(let e=0;e<n.length;e++){let t=n[e],s=0===e,a=e===n.length-1,o=e===r,l=t.replace(/\t/g," ");s||(l=l.replace(/^ +/,"")),a||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),i+=l)}i&&t.push(TV(le(i),e))}(r,t);continue}r4(r)&&(r=r.expression),r3(r)||t.push(r)}return t}},T7=class{constructor(e,t,n){this.line=void 0,this.column=void 0,void 0!==n&&(this.index=void 0),this.line=e,this.column=t,void 0!==n&&(this.index=n)}},ve=class{start;end;filename;identifierName;constructor(e,t){this.start=e,this.end=t}};function vt(e,t){let{line:n,column:r,index:i}=e;return new T7(n,r+t,i+t)}var vn="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",vr={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"},vi=e=>"UpdateExpression"===e.type?vr.UpdateExpression[`${e.prefix}`]:vr[e.type],vs=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);function va(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function vo(e,t){if(Array.isArray(e))return t=>vo(t,e[0]);let n={};for(let r of Object.keys(e)){let i=e[r],{message:s,...a}="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,o="string"==typeof s?()=>s:s;n[r]=function({toMessage:e,code:t,reasonCode:n,syntaxPlugin:r}){let i="MissingPlugin"===n||"MissingOneOfPlugins"===n;return function s(a,o,l){let u=SyntaxError();return u.code=t,u.reasonCode=n,u.loc=a,u.pos=o,u.syntaxPlugin=r,i&&(u.missingPlugin=l.missingPlugin),va(u,"clone",function(e={}){let{line:t,column:n,index:r=o}=e.loc??a;return s(new T7(t,n),r,{...l,...e.details})}),va(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let t=`${e(l)} (${a.line}:${a.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),u}}({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:r,toMessage:o,...t?{syntaxPlugin:t}:{},...a})}return n}var vl={...vo({ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:vn},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:vn}}),...vo({AccessorIsGenerator:({kind:e})=>`A ${e}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.",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:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",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 { ... }'?",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:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
6
|
+
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"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:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
7
|
+
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:({phase:e})=>`\`import${e?`.${e}`:""}()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:({phase:e})=>`Cannot use new with import${e?`.${e}`:""}().`,ImportCallSpreadArgument:({phase:e})=>`\`...\` is not allowed in \`import${e?`.${e}`:""}()\`.`,IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${vi(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${vi(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${vi(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' 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:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' 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:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,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.",SuperCallNotNewExpression:"Cannot use new with super(...).",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.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,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:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,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` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,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:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),...vo({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' 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."}),...vo({ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`}),...vo`pipelineOperator`({PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${vi({type:e})}; please wrap it in parentheses.`,PipelineUnparenthesized:"Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses."}),...vo`functionBind`({UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."})};function vu(e){let{start:t,end:n}=e.loc;return e.loc.start=new T7(t.line,t.column),e.loc.end=new T7(n.line,n.column),e}var vc=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,t={}){this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null}},vp=new Map;function vd(e,t={}){t.keyword=e;let n=vT(e,t);return vp.set(e,n),n}function vf(e,t){return vT(e,{beforeExpr:!0,binop:t})}var vh=-1,vm=[],vy=[],vg=[],vb=[],vx=[],vS=[];function vT(e,t={}){return++vh,vy.push(e),vg.push(t.binop??-1),vb.push(t.beforeExpr??!1),vx.push(t.startsExpr??!1),vS.push(t.prefix??!1),vm.push(new vc(e,t)),vh}function vv(e,t={}){return++vh,vp.set(e,vh),vy.push(e),vg.push(t.binop??-1),vb.push(t.beforeExpr??!1),vx.push(t.startsExpr??!1),vS.push(t.prefix??!1),vm.push(new vc("name",t)),vh}var vE={bracketL:vT("[",{beforeExpr:!0,startsExpr:!0}),bracketR:vT("]"),braceL:vT("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:vT("{|",{beforeExpr:!0,startsExpr:!0}),braceR:vT("}"),braceBarR:vT("|}"),parenL:vT("(",{beforeExpr:!0,startsExpr:!0}),parenR:vT(")"),comma:vT(",",{beforeExpr:!0}),semi:vT(";",{beforeExpr:!0}),colon:vT(":",{beforeExpr:!0}),doubleColon:vT("::",{beforeExpr:!0}),dot:vT("."),question:vT("?",{beforeExpr:!0}),questionDot:vT("?."),arrow:vT("=>",{beforeExpr:!0}),template:vT("template"),ellipsis:vT("...",{beforeExpr:!0}),backQuote:vT("`",{startsExpr:!0}),dollarBraceL:vT("${",{beforeExpr:!0,startsExpr:!0}),templateTail:vT("...`",{startsExpr:!0}),templateNonTail:vT("...${",{beforeExpr:!0,startsExpr:!0}),at:vT("@"),hash:vT("#",{startsExpr:!0}),interpreterDirective:vT("#!..."),eq:vT("=",{beforeExpr:!0,isAssign:!0}),assign:vT("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:vT("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:vT("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:vT("_=",{beforeExpr:!0,isAssign:!0}),incDec:vT("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:vT("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:vT("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:vT("^^",{startsExpr:!0}),doubleAt:vT("@@",{startsExpr:!0}),pipeline:vf("|>",0),nullishCoalescing:vf("??",1),logicalOR:vf("||",1),logicalAND:vf("&&",2),bitwiseOR:vf("|",3),bitwiseXOR:vf("^",4),bitwiseAND:vf("&",5),equality:vf("==/!=/===/!==",6),lt:vf("</>/<=/>=",7),gt:vf("</>/<=/>=",7),relational:vf("</>/<=/>=",7),bitShift:vf("<</>>/>>>",8),bitShiftL:vf("<</>>/>>>",8),bitShiftR:vf("<</>>/>>>",8),plusMin:vT("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:vT("%",{binop:10,startsExpr:!0}),star:vT("*",{binop:10}),slash:vf("/",10),exponent:vT("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:vd("in",{beforeExpr:!0,binop:7}),_instanceof:vd("instanceof",{beforeExpr:!0,binop:7}),_break:vd("break"),_case:vd("case",{beforeExpr:!0}),_catch:vd("catch"),_continue:vd("continue"),_debugger:vd("debugger"),_default:vd("default",{beforeExpr:!0}),_else:vd("else",{beforeExpr:!0}),_finally:vd("finally"),_function:vd("function",{startsExpr:!0}),_if:vd("if"),_return:vd("return",{beforeExpr:!0}),_switch:vd("switch"),_throw:vd("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:vd("try"),_var:vd("var"),_const:vd("const"),_with:vd("with"),_new:vd("new",{beforeExpr:!0,startsExpr:!0}),_this:vd("this",{startsExpr:!0}),_super:vd("super",{startsExpr:!0}),_class:vd("class",{startsExpr:!0}),_extends:vd("extends",{beforeExpr:!0}),_export:vd("export"),_import:vd("import",{startsExpr:!0}),_null:vd("null",{startsExpr:!0}),_true:vd("true",{startsExpr:!0}),_false:vd("false",{startsExpr:!0}),_typeof:vd("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:vd("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:vd("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:vd("do",{isLoop:!0,beforeExpr:!0}),_for:vd("for",{isLoop:!0}),_while:vd("while",{isLoop:!0}),_as:vv("as",{startsExpr:!0}),_assert:vv("assert",{startsExpr:!0}),_async:vv("async",{startsExpr:!0}),_await:vv("await",{startsExpr:!0}),_defer:vv("defer",{startsExpr:!0}),_from:vv("from",{startsExpr:!0}),_get:vv("get",{startsExpr:!0}),_let:vv("let",{startsExpr:!0}),_meta:vv("meta",{startsExpr:!0}),_of:vv("of",{startsExpr:!0}),_sent:vv("sent",{startsExpr:!0}),_set:vv("set",{startsExpr:!0}),_source:vv("source",{startsExpr:!0}),_static:vv("static",{startsExpr:!0}),_using:vv("using",{startsExpr:!0}),_yield:vv("yield",{startsExpr:!0}),_asserts:vv("asserts",{startsExpr:!0}),_checks:vv("checks",{startsExpr:!0}),_exports:vv("exports",{startsExpr:!0}),_global:vv("global",{startsExpr:!0}),_implements:vv("implements",{startsExpr:!0}),_intrinsic:vv("intrinsic",{startsExpr:!0}),_infer:vv("infer",{startsExpr:!0}),_is:vv("is",{startsExpr:!0}),_mixins:vv("mixins",{startsExpr:!0}),_proto:vv("proto",{startsExpr:!0}),_require:vv("require",{startsExpr:!0}),_satisfies:vv("satisfies",{startsExpr:!0}),_keyof:vv("keyof",{startsExpr:!0}),_readonly:vv("readonly",{startsExpr:!0}),_unique:vv("unique",{startsExpr:!0}),_abstract:vv("abstract",{startsExpr:!0}),_declare:vv("declare",{startsExpr:!0}),_enum:vv("enum",{startsExpr:!0}),_module:vv("module",{startsExpr:!0}),_namespace:vv("namespace",{startsExpr:!0}),_interface:vv("interface",{startsExpr:!0}),_type:vv("type",{startsExpr:!0}),_opaque:vv("opaque",{startsExpr:!0}),name:vT("name",{startsExpr:!0}),placeholder:vT("%%",{startsExpr:!0}),string:vT("string",{startsExpr:!0}),num:vT("num",{startsExpr:!0}),bigint:vT("bigint",{startsExpr:!0}),regexp:vT("regexp",{startsExpr:!0}),privateName:vT("#name",{startsExpr:!0}),eof:vT("eof"),jsxName:vT("jsxName"),jsxText:vT("jsxText",{beforeExpr:!0}),jsxTagStart:vT("jsxTagStart",{startsExpr:!0}),jsxTagEnd:vT("jsxTagEnd")};function vk(e){return e>=89&&e<=129}function vw(e){return e>=54&&e<=129}function vA(e){return e>=54&&e<=88}function vP(e){return e>=35&&e<=55}function vC(e){return e>=20&&e<=21}var vI=class{constructor(e,t){this.token=e,this.preserveSpace=!!t}token;preserveSpace},v_={brace:new vI("{"),j_oTag:new vI("<tag"),j_cTag:new vI("</tag"),j_expr:new vI("<tag>...</tag>",!0)},vN=/[\p{ID_Start}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d]/u,vL=/[\p{ID_Continue}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d\u05c8\u05c9\u0b53\u0b54\u1acf-\u1af0]/u,vO=[1979,4,385,25,1388,2,18,21,3100,0,678,43,22,0,1662,0,6,10,209,310,18458,24,3,24,287,4,6146,7,1239,4,47,23,96,114,14,913,15,50,8017,5,64,0,9534,0,2169,5,7,86,15,6,55,50,1729,30,2,2,2,1,2,6,3,4,10,1,53307,5,223,0,5764,11,21763,4297,39815,11327],vD=[3787,4,33,11,3173,7,633,9,7,0,45879,1,296,2,9,1,3,0,33,1,5218,0,3,0,8,1,6,0];function vM(e,t){let n=65536;for(let r=0,i=t.length;r<i&&!((n+=t[r])>e);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function vF(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&vN.test(String.fromCharCode(e)):!isNaN(e)&&e<=1114111&&(vN.test(String.fromCodePoint(e))||vM(e,vO))))}function vB(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&vL.test(String.fromCharCode(e)):!isNaN(e)&&e<=1114111&&(vL.test(String.fromCodePoint(e))||vM(e,vO)||vM(e,vD)))))}var vj=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"]),vR=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),v$=new Set(["eval","arguments"]);function vU(e,t){return t&&"await"===e||"enum"===e}function vq(e,t){return vU(e,t)||vR.has(e)}function vK(e,t){return vq(e,t)||v$.has(e)}var vV=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"]),vJ=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},vz=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,t){this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(64&e)>0&&(2&e)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(128&t)return!0;if(3779&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new vJ(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(3715&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(vl.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);let r=e.names.get(t)||0;return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(3715&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(3779&t&&!(4&t))return t}}},vW={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},vX=/\r\n|[\r\n\u2028\u2029]/g;function vH(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function vY(e,t,n){for(let r=t;r<n;r++)if(vH(e.charCodeAt(r)))return!0;return!1}var vG=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,vQ=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,vZ=vo`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,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:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,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 v0(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function v1(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return v1(e.object)+"."+v1(e.property);throw Error("Node had unexpected type: "+e.type)}var v2=class extends vJ{tsNames=new Map},v3=class extends vz{get inTSNamespace(){let e=this.scopeStack;return e.length>=2&&0===e[e.length-1].flags&&(2048&e[e.length-2].flags)>0}importsStack=[];createScope(e){return this.importsStack.push(new Set),new v2(e)}enter(e){3072&e&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return 3072&e&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(4096&t){this.hasImport(e,!0)&&this.parser.raise(vl.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(1024&t){this.maybeExportDefined(r,e),r.tsNames.set(e,16|i);return}super.declareName(e,t,n),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);if((2&r)>0)return!(256&n)||(512&n)>0!=(4&r)>0;if(128&n&&(8&r)>0)if(2&e.names.get(t))return!!(1&n);else return!1;return!!(2&n)&&(1&r)>0||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}},v4=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function v5(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function v8(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function v6(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?v8(e,n.comments):v5(r,n.comments)}var v9=class extends v4{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(0===n)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let s=e.start;for(;r>=0;r--){let n=t[r],i=n.end;if(i>s)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===s&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode){var n;null!==e.leadingNode&&v5(e.leadingNode,t),null!==e.trailingNode&&(n=e.trailingNode,void 0===n.leadingComments?n.leadingComments=t:n.leadingComments.unshift(...t))}else{let n=e.containingNode,r=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(r)-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":v6(n,n.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":v6(n,n.arguments,e);break;case"ImportExpression":v6(n,[n.source,n.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":v6(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":v6(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":v6(n,n.specifiers,e);break;case"TSEnumBody":v6(n,n.members,e);break;case"TSInterfaceBody":v6(n,n.body,e);break;default:v8(n,t)}else v8(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(0===n)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(0===i)return;let s=i-1;for(;s>=0;s--){let i=r[s],a=i.end;if(i.start===n)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}},v7=class e{flags=2048;get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:e,sourceType:t,startIndex:n,startLine:r,startColumn:i}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=n,this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new T7(r,i,n)}errors=[];noArrowAt=[];noArrowParamsConversionAt=[];get canStartArrow(){return(2&this.flags)>0}set canStartArrow(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get inConditionalConsequent(){return(256&this.flags)>0}set inConditionalConsequent(e){e?this.flags|=256:this.flags&=-257}get inHackPipelineBody(){return(512&this.flags)>0}set inHackPipelineBody(e){e?this.flags|=512:this.flags&=-513}get seenTopicReference(){return(1024&this.flags)>0}set seenTopicReference(e){e?this.flags|=1024:this.flags&=-1025}labels=[];commentsLen=0;commentStack=[];pos=0;type=135;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[v_.brace];get canStartJSXElement(){return(2048&this.flags)>0}set canStartJSXElement(e){e?this.flags|=2048:this.flags&=-2049}get containsEsc(){return(4096&this.flags)>0}set containsEsc(e){e?this.flags|=4096:this.flags&=-4097}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(8192&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=8192:this.flags&=-8193}strictErrors=new Map;tokensLength=0;curPosition(){return new T7(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},Ee={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Et=e=>48===e||49===e,En=e=>e>=48&&e<=55,Er=e=>e>=48&&e<=57,Ei=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function Es(e,t,n,r,i,s){let a=n,o=r,l=i,u="",c=null,p=n,{length:d}=t;for(;;){var f,h,m,y;if(n>=d){s.unterminated(a,o,l),u+=t.slice(p,n);break}let g=t.charCodeAt(n);if(f=e,h=g,m=t,y=n,"template"===f?96===h||36===h&&123===m.charCodeAt(y+1):h===("double"===f?34:39)){u+=t.slice(p,n);break}if(92===g){u+=t.slice(p,n);let a=function(e,t,n,r,i,s){let a=!i;t++;let o=e=>({pos:t,ch:e,lineStart:n,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return{code:i,pos:t}=Ea(e,t,n,r,2,!1,a,s),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=El(e,t,n,r,a,s),o(null===i?null:String.fromCodePoint(i))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){let a=t-1,l=/^[0-7]+/.exec(e.slice(a,t+2))[0],u=parseInt(l,8);u>255&&(u=parseInt(l=l.slice(0,-1),8)),t+=l.length-1;let c=e.charCodeAt(t);if("0"!==l||56===c||57===c)if(i)return o(null);else s.strictNumericEscape(a,n,r);return o(String.fromCharCode(u))}return o(String.fromCharCode(l))}}(t,n,r,i,"template"===e,s);null!==a.ch||c?u+=a.ch:c={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=a),p=n}else 8232===g||8233===g?(++n,++i,r=n):10===g||13===g?"template"===e?(u+=t.slice(p,n)+"\n",++n,13===g&&10===t.charCodeAt(n)&&++n,++i,p=r=n):s.unterminated(a,o,l):++n}return{pos:n,str:u,firstInvalidLoc:c,lineStart:r,curLine:i}}function Ea(e,t,n,r,i,s,a,o){let l,u=t;return{n:l,pos:t}=Eo(e,t,n,r,16,i,s,!1,o,!a),null===l&&(a?o.invalidEscapeSequence(u,n,r):t=u-1),{code:l,pos:t}}function Eo(e,t,n,r,i,s,a,o,l,u){let c=t,p=16===i?Ee.hex:Ee.decBinOct,d=16===i?Ei:10===i?Er:8===i?En:Et,f=!1,h=0;for(let c=0,m=null==s?1/0:s;c<m;++c){let s,c=e.charCodeAt(t);if(95===c&&"bail"!==o){let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!d(s)||p.has(i)||p.has(s)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t;continue}if(c>=97)s=c-97+10;else if(c>=65)s=c-65+10;else s=c>=48&&c<=57?c-48:1/0;if(s>=i)if(s<=9){if(u)return{n:null,pos:t};l.invalidDigit(t,n,r,i),s=0}else if(a)s=0,f=!0;else break;++t,h=h*i+s}return t===c||null!=s&&t-c!==s||f?{n:null,pos:t}:{n:h,pos:t}}function El(e,t,n,r,i,s){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=Ea(e,t,n,r,e.indexOf("}",t)-t,!0,i,s),++t,null!==a&&a>1114111)if(!i)return{code:null,pos:t};else s.invalidCodePoint(t,n,r)}else({code:a,pos:t}=Ea(e,t,n,r,4,!1,i,s));return{code:a,pos:t}}function Eu(e,t,n){return new T7(n,e-t,e)}var Ec=new Set([103,109,115,105,121,117,100,118]),Ep=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new ve(e.startLoc,e.endLoc)}},Ed=class extends v9{isLookahead;tokens=[];constructor(e,t){super(),this.state=new v7,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1,(!F||F.length<(this.length+1)*2)&&(F=new Uint32Array((this.length+1)*2)),this.locData=F}setLoc(e){let t=this.offsetToSourcePos(e.index);this.locData[2*t]=e.line,this.locData[2*t+1]=e.column}getLoc(e){let t=this.offsetToSourcePos(e);return new T7(this.locData[2*t],this.locData[2*t+1],e)}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),512&this.optionFlags&&this.pushToken(new Ep(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)}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 t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return vG.lastIndex=e,vG.test(this.input)?vG.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return vQ.lastIndex=e,vQ.test(this.input)?vQ.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((64512&t)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(64512&n)==56320&&(t=65536+((1023&t)<<10)+(1023&n))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length)?this.finishToken(135):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(vl.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,vX.lastIndex=n+2;vX.test(this.input)&&vX.lastIndex<=r;)++this.state.curLine,this.state.lineStart=vX.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(n+2,r),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(r+e.length),loc:new ve(t,this.state.curPosition())};return 512&this.optionFlags&&this.pushToken(i),i}skipLineComment(e){let t,n=this.state.pos;this.isLookahead||(t=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!vH(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,s={type:"CommentLine",value:this.input.slice(n+e,i),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(i),loc:new ve(t,this.state.curPosition())};return 512&this.optionFlags&&this.pushToken(s),s}skipSpace(){let e,t=this.state.pos,n=(8192&this.optionFlags)>0;e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++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 t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),n&&(e??=[]).push(t));break}case 47:{let t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),n&&(e??=[]).push(t));break}default:break e}break;default:if(function(e){switch(e){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}}(r))++this.state.pos;else if(45===r&&!this.inModule&&16384&this.optionFlags){let r=this.state.pos;if(45===this.input.charCodeAt(r+1)&&62===this.input.charCodeAt(r+2)&&(0===t||this.state.lineStart>t)){let t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),n&&(e??=[]).push(t))}else break e}else if(60===r&&!this.inModule&&16384&this.optionFlags){let t=this.state.pos;if(33===this.input.charCodeAt(t+1)&&45===this.input.charCodeAt(t+2)&&45===this.input.charCodeAt(t+3)){let t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),n&&(e??=[]).push(t))}else break e}else break e}}if(e?.length){let n=this.state.pos,r={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(n),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(vl.UnexpectedDigitAfterHash,this.state.curPosition());vF(t)?(++this.state.pos,this.finishToken(134,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(23,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(17)):(++this.state.pos,this.finishToken(12))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(27,2):this.finishOp(52,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!vH(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(24,n),!0}readToken_mult_modulo(e){let t=42===e?51:50,n=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=53),61!==r||this.state.inType||(n++,t=37===e?29:26),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);t===e?61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(26,3):this.finishOp(124===e?37:38,2):124===e&&62===t?this.finishOp(35,2):61===t?this.finishOp(26,2):this.finishOp(124===e?39:41,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(33,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(40,1):this.finishOp(28,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(34,2):this.finishOp(22,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t===e?this.finishOp(30,2):61===t?this.finishOp(26,2):this.finishOp(49,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);60===t?61===this.input.charCodeAt(e+2)?this.finishOp(26,3):this.finishOp(47,2):61===t?this.finishOp(45,2):this.finishOp(43,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(26,t+1):void this.finishOp(48,t)}61===t?this.finishOp(45,2):this.finishOp(44,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61===t)return void this.finishOp(42,61===this.input.charCodeAt(this.state.pos+2)?3:2);if(61===e&&62===t){this.state.pos+=2,this.finishToken(15);return}this.finishOp(61===e?25:31,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(26,3):this.finishOp(36,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(13)):(this.state.pos+=2,this.finishToken(14))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(6);return;case 41:++this.state.pos,this.finishToken(7);return;case 59:++this.state.pos,this.finishToken(9);return;case 44:++this.state.pos,this.finishToken(8);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(1);return;case 123:++this.state.pos,this.finishToken(2);return;case 125:++this.state.pos,this.finishToken(4);return;case 58:this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(11,2):(++this.state.pos,this.finishToken(10));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}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(32,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(vF(e))return void this.readWord(e)}throw this.raise(vl.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e,t,n=this.state.startLoc,r=this.state.start+1,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(vl.UnterminatedRegExp,vt(n,1));let r=this.input.charCodeAt(i);if(vH(r))throw this.raise(vl.UnterminatedRegExp,vt(n,1));if(e)e=!1;else{if(91===r)t=!0;else if(93===r&&t)t=!1;else if(47===r&&!t)break;e=92===r}}let s=this.input.slice(r,i);++i;let a="",o=()=>vt(n,i+2-r);for(;i<this.length;){let e=this.codePointAtPos(i),t=String.fromCharCode(e);if(Ec.has(e))118===e?a.includes("u")&&this.raise(vl.IncompatibleRegExpUVFlags,o()):117===e&&a.includes("v")&&this.raise(vl.IncompatibleRegExpUVFlags,o()),a.includes(t)&&this.raise(vl.DuplicateRegExpFlags,o());else if(vB(e)||92===e)this.raise(vl.MalformedRegExpFlags,o());else break;++i,a+=t}this.state.pos=i,this.finishToken(133,{pattern:s,flags:a})}readInt(e,t,n=!1,r=!0){let{n:i,pos:s}=Eo(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1;this.state.pos+=2;let i=this.readInt(e);if(null==i&&this.raise(vl.InvalidDigit,vt(n,2),{radix:e}),110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,r=!0),vF(this.codePointAtPos(this.state.pos)))throw this.raise(vl.NumberIdentifier,this.state.curPosition());if(r){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(132,e);return}this.finishToken(131,i)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,i=!1,s=!1;e||null!==this.readInt(10)||this.raise(vl.InvalidNumber,this.state.curPosition());let a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(a){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(vl.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(vl.ZeroDigitNumericSeparator,vt(n,t))}s=a&&!/[89]/.test(e)}let o=this.input.charCodeAt(this.state.pos);46!==o||s||(++this.state.pos,this.readInt(10),r=!0,o=this.input.charCodeAt(this.state.pos)),69!==o&&101!==o||s||((43===(o=this.input.charCodeAt(++this.state.pos))||45===o)&&++this.state.pos,null===this.readInt(10)&&this.raise(vl.InvalidOrMissingExponent,n),r=!0,o=this.input.charCodeAt(this.state.pos));let l=this.input.slice(t,this.state.pos).replaceAll("_","");if(110===o&&((r||a)&&this.raise(vl.InvalidBigIntLiteral,n),++this.state.pos,i=!0),vF(this.codePointAtPos(this.state.pos)))throw this.raise(vl.NumberIdentifier,this.state.curPosition());if(i)return void this.finishToken(132,l);let u=s?parseInt(l,8):parseFloat(l);this.finishToken(131,u)}readCodePoint(e){let{code:t,pos:n}=El(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=Es(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(130,t)}readTemplateContinuation(){this.match(4)||this.unexpected(null,4),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:n,pos:r,curLine:i,lineStart:s}=Es("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=i,n&&(this.state.firstInvalidTemplateEscapePos=new T7(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(n.pos))),96===this.input.codePointAt(r)?this.finishToken(20,n?null:e+t+"`"):(this.state.pos++,this.finishToken(21,n?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",n=this.state.pos,r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(vB(e))this.state.pos+=e<=65535?1:2;else if(92===e){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?vF:vB;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(vl.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(vl.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=vp.get(t);void 0!==n?this.finishToken(n,vy[n]):this.finishToken(128,t)}checkKeywordEscapes(){let{type:e}=this.state;vA(e)&&this.state.containsEsc&&this.raise(vl.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:vy[e]})}raise(e,t,n={}){let r=t instanceof T7?t:"number"==typeof t?this.getLoc(t):256&this.optionFlags?t.loc.start:this.getLoc(t.start),i=t instanceof T7?r.index:"number"==typeof t?t:t.start,s=e(r,i,n);if(!(4096&this.optionFlags))throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(e,t,n={}){let r=t instanceof T7?t:256&this.optionFlags?t.loc.start:this.getLoc(t.start),i=t instanceof T7?r.index:t.start,s=this.state.errors;for(let t=s.length-1;t>=0;t--){let a=s[t];if(a.pos===i)return s[t]=e(r,i,n);if(a.pos<i)break}return this.raise(e,r,n)}updateContext(){}unexpected(e,t){throw this.raise(vl.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?vy[t]:null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(vl.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(vl.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,Eu(t,n,r))}}errorHandlers_readInt={invalidDigit:(e,t,n,r)=>{this.raise(vl.InvalidDigit,Eu(e,t,n),{radix:r})},numericSeparatorInEscapeSequence:this.errorBuilder(vl.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(vl.UnexpectedNumericSeparator)};errorHandlers_readCodePoint={...this.errorHandlers_readInt,invalidEscapeSequence:this.errorBuilder(vl.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(vl.InvalidCodePoint)};errorHandlers_readStringContents_string={...this.errorHandlers_readCodePoint,strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(vl.StrictNumericEscape,Eu(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(vl.UnterminatedString,Eu(e-1,t,n))}};errorHandlers_readStringContents_template={...this.errorHandlers_readCodePoint,strictNumericEscape:this.errorBuilder(vl.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(vl.UnterminatedTemplate,Eu(e,t,n))}}},Ef=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},Eh=class{parser;stack=[];constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ef)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(vl.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:s}=this.current(),a=r.has(e);if(3&t){let n=a&&i.get(e);if(n){let r=4&t;(a=(3&n)==(3&t)||(4&n)!==r)||i.delete(e)}else a||i.set(e,t)}a&&this.parser.raise(vl.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),s.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(vl.InvalidPrivateFieldResolution,t,{identifierName:e})}},Em=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}},Ey=class extends Em{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,t){this.declarationErrors.set(t,e)}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},Eg=class{parser;stack=[new Em];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let{stack:n}=this,r=n.length-1,i=n[r];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,t),i=n[--r]}this.parser.raise(e,t)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(vl.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t,n)=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n),i=e[--r]})}},Eb=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}get inFSharpPipelineDirectBody(){return(16&this.currentFlags())==0}};function Ex(e,t){return 2*!!e|!!t}var ES=class extends Ed{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;null==i&&(e.extra=i={}),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let n=this.input.charCodeAt(e+t.length);return!(vB(n)||(64512&n)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(135)||this.match(4)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return vY(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return vY(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(9)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(9))||this.raise(vl.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(r){let e=this.state;if(this.state=t,r instanceof SyntaxError)return{node:null,error:r,thrown:!0,aborted:!1,failState:e};if(r===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:e};throw r}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:s,voidPatternLoc:a}=e,o=!!n||!!r||!!s||!!i||!!a;if(!t)return o;null!=n&&this.raise(vl.InvalidCoverInitializedName,n),null!=r&&this.raise(vl.DuplicateProto,r),null!=i&&this.raise(vl.UnexpectedPrivateField,i),null!=s&&this.unexpected(s),null!=a&&this.raise(vl.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){var e;return(e=this.state.type)>=54&&e<=132}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let a=this.prodParam;this.prodParam=new Eb;let o=this.classScope;this.classScope=new Eh(this);let l=this.expressionScope;return this.expressionScope=new Eg(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);let t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;4&this.optionFlags&&(n|=512),16&this.optionFlags&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},ET=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Ev=class{constructor(e,t,n,r){this.start=n,this.end=0,void 0!==r&&(this.loc=new ve(r)),128&e&&(this.range=[n,0]),void 0!==r&&t&&(this.loc.filename=t)}type=""},EE=Ev.prototype,Ek=class extends ES{createPosition(e){return e}startNode(){let{startLoc:e}=this.state;return this.setLoc(e),this.startNodeAt(e)}startNodeAt(e){let{optionFlags:t,filename:n}=this;return 256&t?new Ev(t,n,e.index,this.createPosition(e)):new Ev(t,n,e.index)}startNodeAtNode(e){let{optionFlags:t,filename:n}=this;return 256&t?new Ev(t,n,e.start,e.loc.start):new Ev(t,n,e.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){e.type=t,e.end=n.index;let{optionFlags:r}=this;return 256&r&&(e.loc.end=this.createPosition(n)),128&r&&(e.range[1]=n.index),8192&r&&this.processComment(e),e}finishNodeAtNode(e,t,n){e.type=t,e.end=n.end;let{optionFlags:r}=this;return 256&r&&(e.loc.end=n.loc.end),128&r&&(e.range[1]=e.end),8192&r&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index;let{optionFlags:n}=this;256&n&&(e.loc.start=this.createPosition(t)),128&n&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index;let{optionFlags:n}=this;256&n&&(e.loc.end=this.createPosition(t)),128&n&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){e.start=t.start;let{optionFlags:n}=this;256&n&&(e.loc.start=t.loc.start),128&n&&(e.range[0]=t.start)}resetEndLocationFromNode(e,t){e.end=t.end;let{optionFlags:n}=this;256&n&&(e.loc.end=t.loc.end),128&n&&(e.range[1]=t.end)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:n,end:r,loc:i,range:s,name:a}=e,o=Object.create(EE);return o.type=t,o.start=n,o.end=r,o.loc=i,o.range=s,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){let{type:t,start:n,end:r,loc:i,range:s,extra:a}=e,o=Object.create(EE);return o.type=t,o.start=n,o.end=r,o.loc=i,o.range=s,o.extra=a,o.value=e.value,o}},Ew=e=>"ParenthesizedExpression"===e.type?Ew(e.expression):e,EA=class extends Ek{toAssignable(e,t=!1){let n;switch(("ParenthesizedExpression"===e.type||e.extra?.parenthesized)&&(n=Ew(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(vl.InvalidParenthesizedAssignment,e):"CallExpression"!==n.type&&"MemberExpression"!==n.type&&!this.isOptionalMemberExpression(n)&&this.raise(vl.InvalidParenthesizedAssignment,e):this.raise(vl.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let n=0,r=e.properties.length,i=r-1;n<r;n++){let r=e.properties[n],s=n===i;this.toAssignableObjectExpressionProp(r,s,t),s&&"RestElement"===r.type&&e.extra?.trailingCommaLoc&&this.raise(vl.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.start),this.toAssignable(r,t);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(vl.MissingEqInAssignment,256&this.optionFlags?e.left.loc.end:e.left),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(vl.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t)}}toAssignableObjectExpressionProp(e,t,n){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?vl.PatternHasAccessor:vl.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(vl.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let s=e[i];s&&(this.toAssignableListItem(e,i,n),"RestElement"===s.type&&(i<r?this.raise(vl.RestTrailingComma,s):t&&this.raise(vl.RestTrailingComma,t)))}}toAssignableListItem(e,t,n){let r=e[t];if("SpreadElement"===r.type){this.castNodeTo(r,"RestElement");let e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(r,n)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every((e,n)=>"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e){return e}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(vl.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(1,93,1),this.finishNode(e,"ArrayPattern")}case 2:return this.parseObjectLike(4,!0);case 84:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=1&n,i=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(8),r&&this.match(8))i.push(null);else if(this.eat(e))break;else if(this.match(17)){let r=this.parseRestBinding();if(2&n&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(2&n)for(this.match(22)&&this.hasPlugin("decorators")&&this.raise(vl.UnsupportedParameterDecorator,this.state.startLoc);this.match(22);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(84)?(e.argument=this.parseVoidPattern(null),this.raise(vl.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(17===e)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return 134===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){let{startLoc:n}=this.state,r=this.parseMaybeDefault();return 2&e&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0])),this.parseMaybeDefault(n,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t=t??this.parseBindingAtom(),!this.eat(25))return t;let n=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(vl.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&16384&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,n=64,r=!1,i=!1,s=!1,a=!1){let o,l,u=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===u){c&&(this.expectPlugin("optionalChainingAssign",e.start),"AssignmentExpression"!==t.type&&this.raise(vl.InvalidLhsOptionalChaining,e,{ancestor:t})),64!==n&&this.raise(vl.InvalidPropertyBindingPattern,e);return}if("Identifier"===u){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(vl.ParamDupe,e):r.add(t));return}"VoidPattern"===u&&"CatchClause"===t.type&&this.raise(vl.VoidPatternCatchClauseParam,e);let p=Ew(e);a||="CallExpression"===p.type&&("Import"===p.callee.type||"Super"===p.callee.type);let d=this.isValidLVal(u,a,!(s||e.extra?.parenthesized)&&"AssignmentExpression"===t.type,n);if(!0===d)return;if(!1===d){let r=64===n?vl.InvalidLhs:vl.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}"string"==typeof d?(o=d,l="ParenthesizedExpression"===u):[o,l]=d;let f="ArrayPattern"===u||"ObjectPattern"===u?{type:u}:t,h=e[o];if(Array.isArray(h))for(let e of h)e&&this.checkLVal(e,f,n,r,i,l,!0);else h&&this.checkLVal(h,f,n,r,i,l,a)}checkIdentifier(e,t,n=!1){var r;this.state.strict&&(n?vK(e.name,this.inModule):(r=e.name,v$.has(r)))&&(64===t?this.raise(vl.StrictEvalArguments,e,{referenceName:e.name}):this.raise(vl.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(vl.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(vl.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(8)&&(this.raise(this.lookaheadCharCode()===e?vl.RestTrailingComma:vl.ElementAfterRest,this.state.startLoc),!0)}},EP=class extends EA{checkProto(e,t,n){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return t;let r=e.key;return"__proto__"===("Identifier"===r.type?r.name:r.value)?(t&&(n?null===n.doubleProtoLoc&&(n.doubleProtoLoc=this.getLoc(r.start)):this.raise(vl.DuplicateProto,r)),!0):t}shouldExitDescending(e){return"ArrowFunctionExpression"===e.type&&!e.extra?.parenthesized}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(135))throw this.raise(vl.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(135))throw this.raise(vl.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,512&this.optionFlags&&(e.tokens=EL(this.tokens)),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(8)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(8);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e){return this.disallowInAnd(()=>this.parseMaybeAssign(e))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){var n;let r,i=this.state.startLoc,s=this.isContextual(104);if(s&&this.prodParam.hasYield){this.next();let e=this.parseYield(i);return t&&(e=this.parseParenItem(e,i)),e}e?r=!1:(e=new ET,r=!0),this.state.canStartArrow=!0;let a=this.parseMaybeConditional(e);if(t&&(a=this.parseParenItem(a,i)),(n=this.state.type)>=25&&n<=29){let t=this.startNodeAt(i),n=this.state.value;if(t.operator=n,this.match(25)){this.toAssignable(a,!0),t.left=a;let n=i.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=n&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=n&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=n&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=n&&(e.voidPatternLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===n||"&&="===n||"??="===n),t}if(r&&this.checkExpressionErrors(e,!0),s){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?vx[e]:vx[e]&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(vl.YieldNotInGeneratorFunction,i),this.parseYield(i)}return a}parseMaybeConditional(e){let t=this.state.startLoc,n=this.parseExprOps(e);return this.shouldExitDescending(n)?n:this.parseConditional(n,t,e)}parseConditional(e,t){if(this.eat(13)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(10),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(n)?n:(this.state.canStartArrow=!1,this.parseExprOp(n,t,-1))}parseExprOp(e,t,n){if(this.isPrivateName(e)){let r=this.getPrivateNameSV(e);!(n>=vg[54])&&this.prodParam.hasIn&&this.match(54)||this.raise(vl.PrivateInExpectedIn,t,{identifierName:r}),this.classScope.usePrivateName(r,t)}let r=this.state.type;if(vP(r)&&(this.prodParam.hasIn||!this.match(54))){let i=vg[r];if(i>n){if(35===r&&(this.expectPlugin("pipelineOperator"),this.prodParam.inFSharpPipelineDirectBody))return e;let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let a=37===r||38===r,o=36===r;o&&(i=vg[38]),this.next(),s.right=this.parseExprOpRightExpr(r,i);let l=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(o&&(37===u||38===u)||a&&36===u)throw this.raise(vl.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,n)}}return e}parseExprOpRightExpr(e,t){if(35===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.parseFSharpPipelineBody(t)}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,53===e?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return vs.has(t.type)&&!t.extra?.parenthesized&&this.raise(vl.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(vl.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(53)&&this.raise(vl.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(92);if(r&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(30),s=this.startNode();if(vS[this.state.type]){s.operator=this.state.value,s.prefix=!0,this.state.canStartArrow=!1,this.match(68)&&this.expectPlugin("throwExpressions");let n=this.match(85);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=s.argument;"Identifier"===e.type?this.raise(vl.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(vl.DeletePrivateField,s)}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let a=this.parseUpdate(s,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?vx[e]:vx[e]&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(vl.AwaitNotInAsyncContext,n),this.parseAwait(n)}return a}parseUpdate(e,t,n){if(t){let t=this.finishNode(e,"UpdateExpression");return this.checkLVal(t.argument,t),t}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;30===this.state.type&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){let t=this.state.startLoc;this.setLoc(t);let n=this.parseExprAtom(e);return this.shouldExitDescending(n)?n:this.parseSubscripts(n,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop)return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&11===i)return this.parseBind(e,t,r);if(vC(i))return this.parseTaggedTemplateExpression(e,t,r);let s=!1;if(14===i){if(n&&(this.raise(vl.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,r);r.optionalChainMember=s=!0,this.next()}if(!n&&this.match(6))return this.parseCoverCallAndAsyncArrowHead(e,t,r,s);{let n=this.eat(0);return n||s||this.eat(12)?this.parseMember(e,t,r,n,s):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,r,i){let s=this.startNodeAt(t);return(s.object=e,s.computed=r,r?(s.property=this.parseExpression(),this.expect(1)):this.match(134)?("Super"===e.type&&this.raise(vl.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),n.optionalChainMember)?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,n){let r=this.startNodeAt(t);r.object=e,this.next();let i=this.parseNoCallExpr(e=>{throw this.raise(vl.UnsupportedBindRHS,e)});if("Super"===i.type||"Import"===i.type)throw this.raise(vl.UnsupportedBindRHS,i);return r.callee=i,n.stop=!0,this.parseSubscripts(this.finishNode(r,"BindExpression"),t,!1)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=null;this.next();let s=this.startNodeAt(t);s.callee=e;let{maybeAsyncArrow:a,optionalChainMember:o}=n;a&&(this.expressionScope.enter(new Ey(2)),i=new ET),o&&(s.optional=r),r?s.arguments=this.parseCallExpressionArguments():s.arguments=this.parseCallExpressionArguments("Super"!==e.type,s,i);let l=this.finishCallExpression(s,o);return a&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(a&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedList(s.arguments)),l}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(vl.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.state.canStartArrow}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(vl.ImportCallArity,e);else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(vl.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n){let r=[],i=!0;for(;!this.eat(7);){if(i)i=!1;else if(this.expect(8),this.match(7)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(7,!1,n,e))}return r}shouldParseAsyncArrow(){return this.match(15)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(15),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&v8(e,t.innerComments),t.callee.trailingComments&&v8(e,t.callee.trailingComments),e}parseNoCallExpr(e){let t=this.state.startLoc,n=this.match(79),r=this.parseExprAtom();return n&&"ImportExpression"===r.type&&e(r),this.parseSubscripts(r,t,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 75:return this.parseSuper();case 79:if(t=this.startNode(),this.next(),this.match(12))return this.parseImportMetaPropertyOrPhaseCall(t);if(!this.match(6))return this.raise(vl.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");if(1024&this.optionFlags)return this.parseImportCall(t);return this.finishNode(t,"Import");case 74:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 86:return this.parseDo(this.startNode(),!1);case 52:case 27:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 131:return this.parseNumericLiteral(this.state.value);case 132:return this.parseBigIntLiteral(this.state.value);case 130:return this.parseStringLiteral(this.state.value);case 80:return this.parseNullLiteral();case 81:return this.parseBooleanLiteral(!0);case 82:return this.parseBooleanLiteral(!1);case 6:return this.parseParenAndDistinguishExpression(this.state.canStartArrow);case 0:return this.parseArrayLike(1,e);case 2:return this.parseObjectLike(4,!1,e);case 64:return this.parseFunctionOrFunctionSent();case 22:n=this.parseDecorators();case 76:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 73:return this.parseNewOrNewTarget();case 21:case 20:return this.parseTemplate(!1);case 11:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr(e=>{throw this.raise(vl.UnsupportedBind,e)});if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(vl.UnsupportedBind,e)}case 134:return this.raise(vl.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 29:return this.parseTopicReferenceThenEqualsSign(50,"%");case 28:return this.parseTopicReferenceThenEqualsSign(40,"^");case 33:case 34:return this.parseTopicReference("hack");case 40:case 50:case 23:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 43:{let e=this.input.codePointAt(this.nextTokenStart());if(vF(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(vk(r)){if(this.isContextual(123)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();let{canStartArrow:e,containsEsc:t}=this.state,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){let{type:t}=this.state;if(64===t)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(vk(t))if(e&&61===this.lookaheadCharCode())return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n));else return n;if(86===t)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}if(e&&this.match(15)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1);return n}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=vt(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(vl.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(vl.PipeTopicUnconfiguredToken,t,{token:vy[r]})}testTopicReferenceConfiguration(e,t,n){if("hack"===e)return this.hasPlugin(["pipelineOperator",{topicToken:vy[n]}]);throw this.raise(vl.PipeTopicRequiresHackPipes,t)}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Ex(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(vl.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(15),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(6)&&!this.scope.allowDirectSuper?this.raise(vl.SuperNotAllowed,e):this.scope.allowSuper||this.raise(vl.UnexpectedSuper,e),this.match(6)||this.match(0)||this.match(12)||this.raise(vl.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(vt(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(12)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(99)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(vl.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(101)||this.isContextual(93)){let t=this.isContextual(101);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(97)&&(this.inModule||this.raise(vl.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,"BigIntLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,n,r,i=this.state.startLoc;this.next(),this.expressionScope.enter(new Ey(1));let s=this.state.startLoc,a=[],o=new ET,l=!0;for(;!this.match(7);){if(l)l=!1;else if(this.expect(8,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(7)){r=this.state.startLoc;break}if(this.match(17)){let e=this.state.startLoc;if(n=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(7,o,!0))}let u=this.state.lastTokEndLoc;this.expect(7);let c=this.startNodeAt(i);return e&&this.shouldParseArrow(a)&&(c=this.parseArrow(c))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(c,a,!1),c):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),r&&this.unexpected(r),n&&this.unexpected(n),this.checkExpressionErrors(o,!0),this.toReferencedList(a,!0),a.length>1?((t=this.startNodeAt(s)).expressions=a,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,u)):t=a[0],this.wrapParenthesis(i,t))}wrapParenthesis(e,t){if(!(2048&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(15))return e}parseParenItem(e){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(12)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let n=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(vl.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(6)){let t=this.parseExprList(7);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.parseNoCallExpr(e=>{this.raise(vl.ImportCallNotNewExpression,e,e)});e.callee=t,"Import"===t.type&&this.raise(vl.ImportCallNotNewExpression,t),"Super"===t.type&&this.raise(vl.SuperCallNotNewExpression,t)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:i}=this.state,s=this.startNodeAt(vt(n,1));null!==i||e||this.raise(vl.InvalidEscapeSequenceTemplate,vt(this.state.firstInvalidTemplateEscapePos,1));let a=this.match(20),o=a?-1:-2,l=r+o;s.value={raw:this.input.slice(t+1,l).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,o)},s.tail=a,this.next();let u=this.finishNode(s,"TemplateElement");return this.resetEndLocation(u,vt(this.state.lastTokEndLoc,o)),u}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n){let r=!1,i=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){let a;if(i)i=!1;else if(this.expect(8),this.match(e)){this.addTrailingCommaExtraToNode(s);break}t?a=this.parseBindingProperty():(a=this.parsePropertyDefinition(n),r=this.checkProto(a,r,n)),s.properties.push(a)}return this.next(),this.finishNode(s,t?"ObjectPattern":"ObjectExpression")}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(51))}parsePropertyDefinition(e){let t,n=[];if(this.match(22))for(this.hasPlugin("decorators")&&this.raise(vl.UnsupportedPropertyDecorator,this.state.startLoc);this.match(22);)n.push(this.parseDecorator());let r=this.startNode(),i=!1,s=!1;if(this.match(17))return n.length&&this.unexpected(),this.parseSpread();n.length&&(r.decorators=n),r.method=!1,e&&(t=this.state.startLoc);let a=this.eat(51);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let{key:e}=r,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(51),this.parsePropertyName(r)),("get"===t||"set"===t)&&(s=!0,this.resetPreviousNodeTrailingComments(e),r.kind=t,this.match(51)&&(a=!0,this.raise(vl.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,t,a,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return+("get"!==e.kind)}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise("get"===e.kind?vl.BadGetterArity:vl.BadSetterArity,e),"set"===e.kind&&n[n.length-1]?.type==="RestElement"&&this.raise(vl.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(6))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(10))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(4,r),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(25)){let n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(vl.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,n,r,i,s,a){let o=this.parseObjectMethod(e,n,r,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(1);else{let n,{type:r,value:i}=this.state;if(vw(r))n=this.parseIdentifier(!0);else switch(r){case 131:n=this.parseNumericLiteral(i);break;case 130:n=this.parseStringLiteral(i);break;case 132:n=this.parseBigIntLiteral(i);break;case 134:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(vl.UnexpectedPrivateField,e),n=this.parsePrivateName();break}default:throw this.unexpected()}e.key=n,134!==r&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,s,a=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|576*!!a|32*!!i),this.prodParam.enter(Ex(n,e.generator)),this.parseFunctionParams(e,r);let o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t){let n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!0,t,n),this.finishNode(n,"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=Ex(n,!1);return this.match(2)||(i|=24&this.prodParam.currentFlags()),this.prodParam.enter(i),this.initFunction(e,n),t&&this.setArrowFunctionParameters(e,t,r),this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(2);if(this.expressionScope.enter(new Em),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{let s=!this.isSimpleParamList(e.params);i&&s&&this.raise(vl.IllegalLanguageModeDirective,("method"===e.kind||"constructor"===e.kind)&&e.key?256&this.optionFlags?e.key.loc.end:e.key:e);let a=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!s,t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,s,5,i,r)}parseExprList(e,t,n,r){let i=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(8),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,t,n))}return i}parseExprListItem(e,t,n,r){let i;if(this.match(8))t||this.raise(vl.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(17)){let e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),e)}else if(this.match(13)){this.expectPlugin("partialApplication"),r||this.raise(vl.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,n,!0);return i}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,256&this.optionFlags&&(e.loc.identifierName=t),this.finishNode(e,"Identifier")}createIdentifierAt(e,t,n){return e.name=t,256&this.optionFlags&&(e.loc.identifierName=t),this.finishNodeAt(e,"Identifier",n)}parseIdentifierName(e){let t,{start:n,type:r}=this.state;vw(r)?t=this.state.value:this.unexpected();let i=r<=88;return e?i&&this.replaceToken(128):this.checkReservedWord(t,this.sourceToOffsetPos(n),i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10)){if(vV.has(e)){if(n&&vj.has(e))return void this.raise(vl.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?r?vK:vq:vU)(e,this.inModule))return void this.raise(vl.UnexpectedReservedWord,t,{reservedWord:e});if("yield"===e){if(this.prodParam.hasYield)return void this.raise(vl.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(vl.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(vl.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(vl.ArgumentsInClass,t)}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e,t){let n=e.index;this.setLoc(e);let r=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(vl.AwaitExpressionFormalParameter,n),this.eat(51)&&this.raise(vl.ObsoleteAwaitStar,e),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),t||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 49===e||6===e||0===e||vC(e)||98===e&&!this.state.containsEsc||133===e||52===e||this.hasPlugin("v8intrinsic")&&50===e}parseYield(e){this.setLoc(e);let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(vl.YieldInParameter,e.index);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(51),this.state.type){case 9:case 135:case 4:case 7:case 1:case 5:case 10:case 8:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,t.argument=r,this.finishNode(t,"YieldExpression")}parseImportCall(e){this.next();let t=this.parseCallExpressionArguments();if(0===t.length||t.length>2)this.raise(vl.ImportCallArity,e,e);else for(let n of t)"SpreadElement"===n.type&&this.raise(vl.ImportCallSpreadArgument,n,e);return e.source=t[0],e.options=t[1]??null,this.finishNode(e,"ImportExpression")}withTopicBindingContext(e){let t=this.state.inHackPipelineBody;this.state.inHackPipelineBody=!0;let n=this.state.seenTopicReference;this.state.seenTopicReference=!1;try{return e()}finally{this.state.inHackPipelineBody=t,this.state.seenTopicReference=n}}allowInAnd(e){let t=this.prodParam.currentFlags();if(24&~t){this.prodParam.enter(8|t|16);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t||16&~t){this.prodParam.enter(-9&t|16);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.seenTopicReference=!0}topicReferenceIsAllowedInCurrentContext(){return this.state.inHackPipelineBody}topicReferenceWasUsedInCurrentContext(){return this.state.seenTopicReference}parseFSharpPipelineBody(e){let t,n=this.state.startLoc;if(this.prodParam.enter(-17&this.prodParam.currentFlags()),this.isContextual(92)&&this.recordAwaitIfAllowed()){this.next(),t=this.parseAwait(n,!0);let e=this.state.type;vP(e)&&35!==e&&(this.prodParam.hasIn||54!==e)&&this.raise(vl.PipelineUnparenthesized,n)}else this.state.canStartArrow=!0,t=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,e);return this.prodParam.exit(),t}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(2)||this.unexpected(null,2);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,4,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(null!=t&&this.match(84)){let n=this.lookaheadCharCode();if(44===n||n===(1===e?93:4===e?125:41)||61===n)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(){}},EC={kind:1},EI={kind:2},E_=/[\uD800-\uDFFF]/u,EN=/in(?:stanceof)?/y;function EL(e){for(let t=0;t<e.length;t++){let n=e[t],{type:r}=n;"number"==typeof r&&(n.type=vm[r])}return e}var EO=class extends EP{parseTopLevel(e,t){return e.program=this.parseProgram(t,135,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,512&this.optionFlags&&(e.tokens=EL(this.tokens)),this.finishNode(e,"File")}parseProgram(e,t,n){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(vl.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}return 135===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",vt(this.state.startLoc,-1))}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),n=this.castNodeTo(e.expression,"DirectiveLiteral"),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),s=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",s),this.addExtra(n,"expressionValue",r),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(24))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(96)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(103)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(103))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(92))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(vF(e)){if(EN.lastIndex=t,EN.test(this.input)){let e=this.codePointAtPos(EN.lastIndex);if(!vB(e)&&92!==e)return!1}return!0}return 92===e||!1}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(22)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(n){case 56:return this.parseBreakContinueStatement(r,!0);case 59:return this.parseBreakContinueStatement(r,!1);case 60:return this.parseDebuggerStatement(r);case 86:return this.parseDoWhileStatement(r);case 87:return this.parseForStatement(r);case 64:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?vl.StrictFunction:this.options.annexB?vl.SloppyFunctionAnnexB:vl.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&s);case 76:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 65:return this.parseIfStatement(r);case 66:return this.parseReturnStatement(r);case 67:return this.parseSwitchStatement(r);case 68:return this.parseThrowStatement(r);case 69:return this.parseTryStatement(r);case 92:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(vl.AwaitUsingNotInAsyncContext,r):this.raise(vl.UnexpectedLexicalDeclaration,r):this.raise(vl.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,"await using");break;case 103:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(vl.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(vl.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 96:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 71:i||this.raise(vl.UnexpectedLexicalDeclaration,this.state.startLoc);case 70:{let e=this.state.value;return this.parseVarStatement(r,e)}case 88:return this.parseWhileStatement(r);case 72:return this.parseWithStatement(r);case 2:return this.parseBlock();case 9:return this.parseEmptyStatement(r);case 79:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 78:{let e;return 8&this.optionFlags||a||this.raise(vl.UnexpectedImportExport,this.state.startLoc),this.next(),e=79===n?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(vl.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&s)}let o=this.state.value,l=this.parseExpression();return vk(n)&&"Identifier"===l.type&&this.eat(10)?this.parseLabeledStatement(r,o,l,e):this.parseExpressionStatement(r,l)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(vl.ImportOutsideModule,e)}maybeTakeDecorators(e,t,n){return e&&(t.decorators?.length?(this.raise(vl.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(76)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(22))if(this.match(78))e||this.unexpected();else if(!this.canHaveLeadingDecorator())throw this.raise(vl.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,n=this.state.startLoc;if(this.match(6)){let n=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(7),t=this.wrapParenthesis(n,t);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t,n),e.expression!==t&&this.raise(vl.DecoratorArgumentsOutsideParentheses,r)}else{for(t=this.parseIdentifier(!1);this.eat(12);){let e=this.startNodeAt(n);e.object=t,this.match(134)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t,n)}}else this.state.canStartArrow=!1,e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(6)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((null==e.label||r.name===e.label.name)&&(null!=r.kind&&(t||1===r.kind)||e.label&&t))break}n===this.state.labels.length&&this.raise(vl.IllegalBreakContinue,e,{type:t?"BreakStatement":"ContinueStatement"})}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(6);let e=this.parseExpression();return this.expect(7),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(EC),e.body=this.parseStatement(),this.state.labels.pop(),this.expect(88),e.test=this.parseHeaderExpression(),this.eat(9),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(EC);let t=null;if(this.isContextual(92)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(6),this.match(9))return null!==t&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(96),r=this.isAwaitUsing(),i=r||this.isForUsing(),s=n&&this.hasFollowingBindingAtom()||i;if(this.match(70)||this.match(71)||s){let n,s=this.startNode();r?(n="await using",this.recordAwaitIfAllowed()||this.raise(vl.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):n=this.state.value,this.next(),this.parseVar(s,!0,n);let a=this.finishNode(s,"VariableDeclaration"),o=this.match(54);return(o&&i&&this.raise(vl.ForInUsing,a),(o||this.isContextual(98))&&1===a.declarations.length)?this.parseForX(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}let a=this.isContextual(91),o=new ET,l=this.parseExpression(!0,o),u=this.isContextual(98);return(u&&(n&&this.raise(vl.ForOfLet,l),null===t&&a&&"Identifier"===l.type&&this.raise(vl.ForOfAsync,l)),u||this.match(54))?(this.checkDestructuringPrivate(o),this.toAssignable(l,!0),this.checkLVal(l,{type:u?"ForOfStatement":"ForInStatement"}),this.parseForX(e,l,t)):(this.checkExpressionErrors(o,!0),null!==t&&this.unexpected(t),this.parseFor(e,l))}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|2*!!n|8*!!t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(62)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(vl.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){let t,n;this.next(),e.discriminant=this.parseHeaderExpression();let r=e.cases=[];for(this.expect(2),this.state.labels.push(EI),this.scope.enter(256);!this.match(4);)if(this.match(57)||this.match(61)){let e=this.match(57);t&&this.finishNode(t,"SwitchCase"),r.push(t=this.startNode()),t.consequent=[],this.next(),e?t.test=this.parseExpression():(n&&this.raise(vl.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!0,t.test=null),this.expect(10)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(vl.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&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(58)){let t=this.startNode();this.next(),this.match(6)?(this.expect(6),t.param=this.parseCatchClauseParam(),this.expect(7)):(t.param=null,this.scope.enter(0)),t.body=this.parseBlock(!1,!1),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(63)?this.parseBlock():null,e.handler||e.finalizer||this.raise(vl.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(EC),e.body=this.parseStatement(),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(vl.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.parseStatement(),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,r){var i;for(let e of this.state.labels)e.name===t&&this.raise(vl.LabelRedeclaration,n,{labelName:t});let s=(i=this.state.type)>=86&&i<=88?1:this.match(67)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=s;else break}return this.state.labels.push({name:t,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(2),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,4,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let s=this.state.strict,a=!1,o=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(9)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(7)?null:this.parseExpression(),this.expect(7),e.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForX(e,t,n){let r=this.match(54);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(vl.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(vl.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(7),e.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(25)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!r&&("Identifier"===e.id.type||t&&(this.match(54)||this.isContextual(98))?"const"!==n&&"using"!==n&&"await using"!==n||this.match(54)||this.isContextual(98)||this.raise(vl.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n}):this.raise(vl.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(8))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();"using"===t||"await using"===t?("ArrayPattern"===n.type||"ObjectPattern"===n.type)&&this.raise(vl.UsingDeclarationHasBindingPattern,n):"VoidPattern"===n.type&&this.raise(vl.UnexpectedVoidPattern,n),this.checkLVal(n,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=2&t,r=!!(1&t),i=!!(8&t);return this.initFunction(e,i),this.match(51)&&(n&&this.raise(vl.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(r&&!(4&t))),this.scope.enter(514),this.prodParam.enter(Ex(i,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression"),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),e}parseFunctionId(e){return e||vk(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(6),this.expressionScope.enter(new Em(3)),e.params=this.parseBindingList(7,41,2|4*!!t),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.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(25)||this.match(9)||this.match(4)}isClassMethod(){return this.match(6)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();for(i.body=[],this.expect(2);!this.match(4);){if(this.eat(9)){if(r.length>0)throw this.raise(vl.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(22)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n)}if(this.state.strict=t,this.next(),r.length)throw this.raise(vl.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);return this.isClassMethod()?(t.kind="method",t.computed=!1,t.key=n,t.static=!1,this.pushClassMethod(e,t,!1,!1,!1,!1),!0):this.isClassProperty()?(t.computed=!1,t.key=n,t.static=!1,e.body.push(this.parseClassProperty(t)),!0):(this.resetPreviousNodeTrailingComments(n),!1)}parseClassMember(e,t,n){let r=this.isContextual(102);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(2))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(51)){t.kind="method";let n=this.match(134);return(this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),n)?void this.pushClassPrivateMethod(e,t,!0,!1):(this.isNonstaticConstructor(t)&&this.raise(vl.ConstructorIsGenerator,t.key),void this.pushClassMethod(e,t,!0,!1,!1,!1))}let i=!this.state.containsEsc&&vk(this.state.type),s=this.parseClassElementName(t),a=i?s.name:null,o=this.isPrivateName(s),l=this.state.startLoc;if(this.parsePostMemberNameModifiers(t),this.isClassMethod()){if(t.kind="method",o)return void this.pushClassPrivateMethod(e,t,!1,!1);let r=this.isNonstaticConstructor(t),i=!1;r&&(t.kind="constructor",t.decorators&&t.decorators.length>0&&this.raise(vl.DecoratorConstructor,t),n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(vl.DuplicateConstructor,s),r&&this.hasPlugin("typescript")&&t.override&&this.raise(vl.OverrideOnConstructor,s),n.hadConstructor=!0,i=n.hadSuperClass),this.pushClassMethod(e,t,!1,!1,r,i)}else if(this.isClassProperty())o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t);else if("async"!==a||this.isLineTerminator())if("get"!==a&&"set"!==a||this.match(51)&&this.isLineTerminator())if("accessor"!==a||this.isLineTerminator())this.isLineTerminator()?o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(s);let n=this.match(134);this.parseClassElementName(t),this.pushClassAccessorProperty(e,t,n)}else{this.resetPreviousNodeTrailingComments(s),t.kind=a;let n=this.match(134);this.parseClassElementName(t),n?this.pushClassPrivateMethod(e,t,!1,!1):(this.isNonstaticConstructor(t)&&this.raise(vl.ConstructorIsAccessor,t.key),this.pushClassMethod(e,t,!1,!1,!1,!1)),this.checkGetterSetterParams(t)}else{this.resetPreviousNodeTrailingComments(s);let n=this.eat(51);t.optional&&this.unexpected(l),t.kind="method";let r=this.match(134);this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),r?this.pushClassPrivateMethod(e,t,n,!0):(this.isNonstaticConstructor(t)&&this.raise(vl.ConstructorIsAsync,t.key),this.pushClassMethod(e,t,n,!0,!1,!1))}}parseClassElementName(e){let{type:t,value:n}=this.state;if((128===t||130===t)&&e.static&&"prototype"===n&&this.raise(vl.StaticPrototype,this.state.startLoc),134===t){"constructor"===n&&this.raise(vl.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let r=t.body=[];this.parseBlockOrModuleBlockBody(r,void 0,!1,4),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,e.body.push(this.finishNode(t,"StaticBlock")),t.decorators?.length&&this.raise(vl.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(vl.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(vl.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.start)}pushClassMethod(e,t,n,r,i,s){e.body.push(this.parseMethod(t,n,r,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let s="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.start)}parsePostMemberNameModifiers(){}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(592),this.expressionScope.enter(new Em),this.prodParam.enter(0),e.value=this.eat(25)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(vk(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(vl.MissingClassName,this.state.startLoc)}parseClassSuper(e){this.eat(77)?(this.state.canStartArrow=!1,e.superClass=this.parseExprSubscripts()):e.superClass=null}parseExport(e,t){let n,r=this.parseMaybeImportPhase(e,!0),i=this.maybeParseExportDefaultSpecifier(e,r),s=!i||this.eat(8),a=s&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=s&&(!o||this.eat(8)),u=i||a;if(a&&!o){if(i&&this.unexpected(),t)throw this.raise(vl.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(e);if(i&&s&&!a&&!c&&this.unexpected(null,2),o&&l&&this.unexpected(null,94),u||c){if(n=!1,t)throw this.raise(vl.UnsupportedDecoratorExport,e);this.parseExportFrom(e,u)}else n=this.maybeParseExportDeclaration(e);if(u||c||n){if(this.checkNamedExport(e,!!e.source),e.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(t,e.declaration,e);else if(t)throw this.raise(vl.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(61)){let n=this.parseExportDefaultExpression();if(e.declaration=n,"ClassDeclaration"===n.type)this.maybeTakeDecorators(t,n,e);else if(t)throw this.raise(vl.UnsupportedDecoratorExport,e);return this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")&&"Identifier"===n.type&&"from"===n.name&&n.end-n.start==4&&!n.extra?.parenthesized&&this.raise(vl.ExportDefaultFromAsIdentifier,n),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportDefaultDeclaration")}throw this.unexpected(null,2)}eatExportStar(){return this.eat(51)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(89)){e.specifiers??=[];let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(2)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(91))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(64))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(76))return this.parseClass(e,!0,!0);if(this.match(22))return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(71)||this.match(70)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(vl.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(){return this.match(76)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(vk(e)){if(91===e&&!this.state.containsEsc||96===e)return!1;if((126===e||125===e)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(61))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||vk(this.state.type)&&n)return!0;if(this.match(61)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(94)?(e.source=this.parseImportSource(),this.maybeParseImportAttributes(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return!!(22===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")))||(this.isUsing()||this.isAwaitUsing()?(this.raise(vl.UsingDeclarationExport,this.state.startLoc),!0):70===e||71===e||64===e||76===e||this.isLet()||this.isAsyncFunction())}checkNamedExport(e,t){if(e.specifiers?.length)for(let n of e.specifiers){let{exported:e}=n,r="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(n,r),!t&&"ExportSpecifier"===n.type){let{local:e}=n;"Identifier"!==e.type?this.raise(vl.ExportBindingIsString,n,{localName:e.value,exportName:r}):(this.checkReservedWord(e.name,e.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){let t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){let{id:n}=t;if(!n)throw Error("Assertion failure");this.checkDuplicateExports(e,n.name)}else if("VariableDeclaration"===t.type)for(let e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(vl.DuplicateDefaultExport,e):this.raise(vl.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(2);!this.eat(4);){if(n)n=!1;else if(this.expect(8),this.eat(4))break;let r=this.isContextual(126),i=this.match(130),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,r))}return t}parseExportSpecifier(e,t){return this.eatContextual(89)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(130)){let e=this.parseStringLiteral(this.state.value),t=E_.exec(e.value);return t&&this.raise(vl.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}checkImportPhase(e){let{specifiers:t}=e,n=1===t.length?t[0].type:null;"source"===e.phase?"ImportDefaultSpecifier"!==n&&this.raise(vl.SourcePhaseImportRequiresDefault,t[0]):"defer"===e.phase&&"ImportNamespaceSpecifier"!==n&&this.raise(vl.DeferImportRequiresNamespace,t[0])}isPotentialImportPhase(e){return!e&&(this.isContextual(101)||this.isContextual(93))}applyImportPhase(e,t,n,r){!t&&("source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return(vw(i)?94!==i||102===this.lookaheadCharCode():8!==i)?(this.applyImportPhase(e,t,r,n.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(){let{type:e}=this.state;return vk(e)?94!==e||102===this.lookaheadCharCode():8!==e}parseImport(e){return this.match(130)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(8),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(94),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportPhase(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(130)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(2);let e=[],t=new Set;do{if(this.match(4))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(vl.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(130)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(10),!this.match(130))throw this.raise(vl.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(8))return this.expect(4),e}maybeParseImportAttributes(e){let t;if(this.match(72)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),t=this.parseImportAttributes()}else t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!vw(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(51)){let t=this.startNode();return this.next(),this.expectContextual(89),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(2);!this.eat(4);){if(t)t=!1;else{if(this.eat(10))throw this.raise(vl.DestructureNamedImport,this.state.startLoc);if(this.expect(8),this.eat(4))break}let n=this.startNode(),r=this.match(130),i=this.isContextual(126);n.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(89))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(vl.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.start,!0,!0),e.local||(e.local=this.cloneIdentifier(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},ED=/in(?:stanceof)?|as|satisfies/y;function EM(e){if(!e)throw Error("Assert fail")}var EF=vo`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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.",DeclaratorDefiniteAssertionRequiresTypeAnnotation:"Declarations with definite assignment assertions must also have type annotations.",DeclaratorDefiniteAssertionWithInitializer:"Declarations with initializers cannot also have definite assignment assertions.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DecoratorAbstractMethod:({kind:e})=>`Decorators can't be used with ${e.startsWith("a")?"an":"a"} ${e}.`,DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyNamespaceName:"Namespace must be given a name.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ExportAssignmentInTSNamespace:"An export assignment cannot be used in a namespace.",ExportInTSNamespace:"Export declarations are not permitted in a namespace.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportInTSNamespace:"Import declarations in a namespace cannot reference a module.",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,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.",InlineModuleDeclarationMustUseString:"`module ... {}` declarations must have a string name. Use `namespace ... {}` instead.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidNamespaceName:e=>`Namespace name cannot be '${e}'.`,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.",NamespaceExportInTSNamespace:"Global module exports may only appear at top level.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'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:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,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.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,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.",UnexpectedParameterInitializer:"A parameter initializer is only allowed in a function or constructor implementation.",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.",UnexpectedTypeDeclaration:e=>`'${e}' declarations can only be declared inside a block.`,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:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function EB(e){return"private"===e||"public"===e||"protected"===e}var Ej=EV(["declare","private","public","protected","override","abstract","readonly","static"],["in","out"]),ER=EV(["readonly"],["declare","abstract","private","protected","public","static","override"]),E$=EV(["public","private","protected","override","readonly"]),EU=EV(["private","public","protected"]),Eq=e=>class extends e{getScopeHandler(){return v3}tsIsIdentifier(){return vk(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(2)||this.match(51)||this.match(17)||this.match(134)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(102)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!vk(this.state.type)&&54!==this.state.type&&71!==this.state.type)return;let r=this.state.value;if(e.has(r)){if(n&&this.match(102)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers(e,t=EF.InvalidModifierOnTypeMember,n,r=!1){let i=(e,t,r,i)=>{t===r&&n[i]&&this.raise(EF.InvalidModifiersOrder,e,{orderedModifiers:[r,i]})},s=(e,t,r,i)=>{(n[r]&&t===i||n[i]&&t===r)&&this.raise(EF.IncompatibleModifiers,e,{modifiers:[r,i]})};for(;;){let{startLoc:a}=this.state,o=this.tsParseModifier(e,r,n.static);if(!o)break;if(EB(o))n.accessibility?this.raise(EF.DuplicateAccessibilityModifier,a,{modifier:o}):(i(a,o,o,"override"),i(a,o,o,"static"),i(a,o,o,"readonly"),n.accessibility=o);else"in"===o||"out"===o?(n[o]&&this.raise(EF.DuplicateModifier,a,{modifier:o}),n[o]=!0,i(a,o,"in","out")):(Object.hasOwn(n,o)?this.raise(EF.DuplicateModifier,a,{modifier:o}):(i(a,o,"static","readonly"),i(a,o,"static","override"),i(a,o,"override","readonly"),i(a,o,"abstract","override"),s(a,o,"declare","override"),s(a,o,"static","abstract")),n[o]=!0);e.get(o)||this.raise(t,a,{modifier:o})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(4);case"HeritageClauseElement":return this.match(2);case"TupleElementTypes":return this.match(1);case"TypeParametersOrArguments":return this.match(44)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){var r=this.tsParseDelimitedListWorker(e,t,!0,n);if(null==r)throw Error(`Unexpected ${r} value.`);return r}tsParseDelimitedListWorker(e,t,n,r){let i=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let r=t();if(null==r)return;if(i.push(r),this.eat(8)){s=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(8);return}return r&&(r.value=s),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(43));let s=this.tsParseDelimitedList(e,t,i);return n?this.expect(1):this.expect(44),s}tsParseImportType(){let e=this.startNode();return this.expect(79),this.expect(6),this.match(130)?e.source=this.parseStringLiteral(this.state.value):(this.raise(EF.UnsupportedImportTypeArgument,this.state.startLoc),e.source=this.tsParseNonConditionalType()),this.eat(8)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(7),this.eat(12)&&(e.qualifier=this.tsParseEntityName(3)),this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(2);let t=this.startNode();return this.isContextual(72)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,72),this.expect(10),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(8),this.expect(4),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(2);!this.match(4);){let e=this.state.type;vk(e)||130===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(8)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(74))if(2&e)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(12);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(83),this.match(79)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,EV(["in","out"],["const","public","private","protected","readonly","declare","abstract","override"]),EF.InvalidModifierOnTypeParameter);tsParseConstModifier=this.tsParseModifiers.bind(this,EV(["const"],["in","out"]),EF.InvalidModifierOnTypeParameterPositions);tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,EV(["in","out","const"],["public","private","protected","readonly","declare","abstract","override"]),EF.InvalidModifierOnTypeParameter);tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(77),t.default=this.tsEatThenParseType(25),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(43))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(43)||this.match(138)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(EF.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let n=15===e,r="returnType";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(6),t.params=this.tsParseBindingListForSignature(),n?t[r]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t[r]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(7,41,2);for(let t of e){let{type:e}=t;("AssignmentPattern"===e||"TSParameterProperty"===e)&&this.raise(EF.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(8)||this.isLineTerminator()||this.expect(9)}tsParseSignatureMember(e,t){return this.tsFillSignature(10,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!vk(this.state.type)&&(this.next(),this.match(10))}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(1),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(13)&&(e.optional=!0),this.match(6)||this.match(43)){if(t&&this.raise(EF.ReadonlyForMethodSignature,e),e.kind&&this.match(43)&&this.raise(EF.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(10,e),this.tsParseTypeMemberSemicolon(),"get"===e.kind)e.params.length>0&&(this.raise(vl.BadGetterArity,this.state.curPosition()),this.isThisParam(e.params[0])&&this.raise(EF.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===e.kind){if(1!==e.params.length)this.raise(vl.BadSetterArity,this.state.curPosition());else{let t=e.params[0];this.isThisParam(t)&&this.raise(EF.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(EF.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(EF.SetAccessorCannotHaveRestParameter,this.state.curPosition())}e.returnType&&this.raise(EF.SetAccessorCannotHaveReturnType,e.returnType)}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}{t&&(e.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(6)||this.match(43))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(73)){let t=this.startNode();return(this.next(),this.match(6)||this.match(43))?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(ER,void 0,e);let t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),this.match(6)||this.match(43)||this.unexpected(null,6)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(2);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(4),e}tsIsStartOfMappedType(){return(this.next(),this.eat(49))?this.isContextual(118):(this.isContextual(118)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(54))))}tsParseMappedType(){let e=this.startNode();return this.expect(2),this.match(49)?(e.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(54),e.nameType=this.eatContextual(89)?this.tsParseType():null,this.expect(1),this.match(49)?(e.optional=this.state.value,this.next(),this.expect(13)):this.eat(13)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(4),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&"TSRestType"!==n&&"TSOptionalType"!==n&&!("TSNamedTupleMember"===n&&e.optional)&&this.raise(EF.OptionalTypeBeforeRequired,e),t||="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,n,r,i=this.state.startLoc,s=this.eat(17),{startLoc:a}=this.state,o=vw(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,n=!1,t=this.parseIdentifier(!0),this.expect(10),r=this.tsParseType();else if(63===o){n=!0;let i=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(a),i),this.expect(13),this.expect(10),r=this.tsParseType()):(e=!1,r=s,this.expect(13))}else r=this.tsParseType(),n=this.eat(13),e=this.eat(10);if(e){let e;t?((e=this.startNodeAt(a)).optional=n,e.label=t,e.elementType=r,this.eat(13)&&(e.optional=!0,this.raise(EF.TupleOptionalAfterType,this.state.lastTokStartLoc))):((e=this.startNodeAt(a)).optional=n,this.raise(EF.InvalidTupleMemberLabel,r),e.label=r,e.elementType=this.tsParseType()),r=this.finishNode(e,"TSNamedTupleMember")}else if(n){let e=this.startNodeAt(a);e.typeAnnotation=r,r=this.finishNode(e,"TSOptionalType")}if(s){let e=this.startNodeAt(i);e.typeAnnotation=r,r=this.finishNode(e,"TSRestType")}return r}tsParseParenthesizedType(){let e=this.startNode();return this.expect(6),e.typeAnnotation=this.tsParseType(),this.expect(7),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(15,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 131:case 132:case 130:case 81:case 82:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.state.startLoc,t=this.parseTemplateElement(!1),n=[t];if(t.tail){let t=this.startNodeAt(e),r=this.startNodeAt(e);return r.expressions=[],r.quasis=n,t.literal=this.finishNode(r,"TemplateLiteral"),this.finishNode(t,"TSLiteralType")}{let r=[];for(;!t.tail;)r.push(this.tsParseType()),this.readTemplateContinuation(),n.push(t=this.parseTemplateElement(!1));let i=this.startNodeAt(e);return i.types=r,i.quasis=n,this.finishNode(i,"TSTemplateLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(112)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 130:case 131:case 132:case 81:case 82:return this.tsParseLiteralTypeNode();case 49:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 131!==t.type&&132!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 74:return this.tsParseThisTypeOrThisTypePredicate();case 83:return this.tsParseTypeQuery();case 79:return this.tsParseImportType();case 2:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 6:if(!(2048&this.optionFlags)){let e=this.state.startLoc;this.next();let t=this.tsParseType();return this.expect(7),this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),t}return this.tsParseParenthesizedType();case 21:case 20:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(vk(e)||84===e||80===e){let t=84===e?"TSVoidKeyword":80===e?"TSNullKeyword":function(e){switch(e){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}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(1)){let n=this.startNodeAt(e);n.elementType=t,this.expect(1),t=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(1),t=this.finishNode(n,"TSIndexedAccessType")}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(EF.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(111);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(77)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(13))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=117&&e<=119&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(111)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),s=[];do s.push(t());while(this.eat(n))return 1!==s.length||i?(r.types=s,this.finishNode(r,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),41)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),39)}tsIsStartOfFunctionType(){return!!this.match(43)||this.match(6)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(vk(this.state.type)||this.match(74))return this.next(),!0;if(this.match(2)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(4,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(1,93,1),e.length===t}catch{}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(7)||this.match(17))return!0;if(this.tsSkipParameterStart()&&(this.match(10)||this.match(8)||this.match(13)||this.match(25)||this.match(7)&&(this.next(),this.match(15))))return!0;return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(74)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=s,n.asserts=r,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(10))return this.tsParseTypeOrTypePredicateAnnotation(10)}tsTryParseTypeAnnotation(){if(this.match(10))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(10)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(112)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(105!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),(!!vk(this.state.type)||!!this.match(74))&&(e&&this.raise(vl.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(10),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){EM(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(77))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(13),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(10),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(73)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(EF.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71)?this.tsParseTypeReference():this.tsParseType())),this.expect(44),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{let t=(this.state.canStartArrow=!1,super.parseExprSubscripts());!function e(t){if(t.extra?.parenthesized)return!1;switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&e(t.object);case"TSInstantiationExpression":return e(t.expression);default:return!1}}(t)&&this.raise(EF.InvalidHeritageClauseType,t.start,{token:e});let n="extends"===e?"TSInterfaceHeritage":"TSClassImplements";if("TSInstantiationExpression"===t.type)return t.type=n,t;let r=this.startNodeAtNode(t);return r.expression=t,(this.match(43)||this.match(47))&&(r.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(r,n)});return n.length||this.raise(EF.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),t.declare&&(e.declare=!0),vk(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(EF.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(77)&&(e.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(25),this.isContextual(110)&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===v_.brace)return e();{let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(130)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(25)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(122),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(2),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(4),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(e){let t=this.startNode();return e||this.scope.enter(0),this.expect(2),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,4),e||this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseNamespaceDeclaration(e){return e.id=this.tsParseEntityName(0),"Identifier"===e.id.type&&this.checkIdentifier(e.id,1024),this.scope.enter(2048),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(!1),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){let t=this.isContextual(108);if(t)e.kind="global",e.id=this.parseIdentifier();else{e.kind="module";let{type:t,value:n}=this.state;130===t?e.id=super.parseStringLiteral(n):vk(t)?(this.raise(EF.InlineModuleDeclarationMustUseString,this.state.startLoc),e.id=this.tsParseEntityName(0)):2===t?this.raise(EF.EmptyNamespaceName,this.state.startLoc):(this.raise(EF.InvalidNamespaceName,this.state.startLoc,n),e.id=super.parseExprAtom())}return this.match(2)?(t||this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(t),this.prodParam.exit(),t||this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(25);let n=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(EF.ImportAliasHasImportType,n),e.moduleReference=n,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(115)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(115),this.expect(6),this.match(130)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(7),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 64:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 76:return e.declare=!0,this.parseClass(e,!0,!1);case 122:return this.tsParseEnumDeclaration(e,{declare:!0});case 108:return this.tsParseAmbientExternalModuleDeclaration(e);case 96:if(this.state.containsEsc)return;case 71:case 70:if(!this.match(71)||!this.isLookaheadContextual("enum"))return e.declare=!0,this.parseVarStatement(e,this.state.value,!0);return this.expect(71),this.tsParseEnumDeclaration(e,{const:!0,declare:!0});case 103:if(this.isUsing())return this.raise(EF.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 92:if(this.isAwaitUsing())return this.raise(EF.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 125:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(vk(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,r){switch(t){case 120:if(this.tsCheckLineTerminator(n)&&(this.match(76)||vk(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 123:if(this.tsCheckLineTerminator(n))return this.tsParseAmbientExternalModuleDeclaration(e);break;case 124:if(this.tsCheckLineTerminator(n)&&vk(this.state.type))return e.kind="namespace",this.tsParseNamespaceDeclaration(e);break;case 126:if(this.tsCheckLineTerminator(n)&&vk(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(43))return;let t=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(15),t});if(t)return super.parseArrowExpression(t,null,!0)}tsParseTypeArgumentsInExpression(){if(43===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(43),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(EF.EmptyTypeArguments,e):this.state.inType||this.curContext()!==v_.brace||this.reScan_lt_gt(),this.expect(44),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){var e;return(e=this.state.type)>=120&&e<=126}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){let n=t.length?null:this.state.startLoc,r={};this.tsParseModifiers(E$,void 0,r);let i=r.accessibility,s=r.override,a=r.readonly;!(4&e)&&(i||a||s)&&this.raise(EF.UnexpectedParameterModifier,n||t[0]);let o=this.state.startLoc,l=this.parseMaybeDefault(o);2&e&&this.parseFunctionParamType(l);let u=this.parseMaybeDefault(o,l);if(i||a||s){let e=n?this.startNodeAt(n):this.startNodeAtNode(t[0]);return t.length?e.decorators=t:this.setLoc(n),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(EF.UnsupportedParameterPropertyKind,n||t[0]),e.parameter=u,this.finishNode(e,"TSParameterProperty")}return t.length&&(l.decorators=t),u}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(EF.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(10)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(10));let r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;if(r&&!this.match(2)&&this.isLineTerminator()){if("TSDeclareMethod"===r&&"constructor"===e.kind)for(let t of e.params)"TSParameterProperty"===t.type?this.raise(EF.UnexpectedParameterModifier,t):"AssignmentPattern"===t.type&&this.raise(EF.UnexpectedParameterInitializer,t);else for(let t of e.params)"AssignmentPattern"===t.type&&this.raise(EF.UnexpectedParameterInitializer,t);return this.finishNode(e,r)}return r&&this.state.isAmbientContext&&(this.raise(EF.DeclareFunctionHasImplementation,this.state.startLoc),"TSDeclareFunction"===r&&e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type==="TSTypeCastExpression"&&this.raise(EF.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t){let n=super.parseArrayLike(e,t);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(31)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(14)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(43)||this.match(47)){let s,a=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(6)){s=this.state.curPosition();return}if(vC(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeArguments=a,n}if(!n&&this.eat(6)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeArguments=a,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let o=this.state.type;if(44===o||48===o||6!==o&&89!==o&&116!==o&&vx[o]&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(t);return l.expression=e,l.typeArguments=a,this.finishNode(l,"TSInstantiationExpression")});if(s&&this.unexpected(s,6),a)return"TSInstantiationExpression"===a.type&&((this.match(12)||this.match(14)&&40!==this.lookaheadCharCode())&&this.raise(EF.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(12)||this.match(14)||(a.expression=super.stopParseSubscript(e,r))),a}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let{callee:t}=e;"TSInstantiationExpression"!==t.type||t.extra?.parenthesized||(e.typeArguments=t.typeArguments,e.callee=t.expression)}parseExprOp(e,t,n){let r;if(vg[54]>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(89)||(r=this.isContextual(116)))){let i=this.startNodeAt(t);i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71))?(r&&this.raise(vl.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType());let s=this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression");return this.reScan_lt_gt(),this.parseExprOp(s,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(126)){let t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(83)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){let t;if(this.match(130))return e.importKind="value",this.scope.inTSNamespace&&this.raise(EF.ImportInTSNamespace,e),super.parseImport(e);if(vk(this.state.type)&&61===this.lookaheadCharCode()){e.importKind="value";let t=this.tsParseImportEqualsDeclaration(e);return this.scope.inTSNamespace&&"TSExternalModuleReference"===t.moduleReference.type&&this.raise(EF.ImportInTSNamespace,e),t}if(this.isContextual(126)){let n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.scope.inTSNamespace&&this.raise(EF.ImportInTSNamespace,e),this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type?this.raise(EF.TypeImportCannotSpecifyDefaultAndNamed,t):this.scope.inTSNamespace&&this.raise(EF.ImportInTSNamespace,t),t}parseExport(e,t){if(this.match(79)){let t=this.startNode();this.next();let n=null;this.isContextual(126)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind="value";let r=this.tsParseImportEqualsDeclaration(t,n);return e.attributes=[],e.declaration=r,e.exportKind="value",e.source=null,e.specifiers=[],this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(25))return e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.scope.inTSNamespace&&this.raise(EF.ExportAssignmentInTSNamespace,e),this.finishNode(e,"TSExportAssignment");if(this.eatContextual(89))return this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,8201),this.semicolon(),this.scope.inTSNamespace&&this.raise(EF.NamespaceExportInTSNamespace,e),this.finishNode(e,"TSNamespaceExportDeclaration");{let n=super.parseExport(e,t);return this.scope.inTSNamespace&&("ExportNamedDeclaration"!==n.type||n.source||!n.declaration&&!this.state.isAmbientContext)&&this.raise(EF.ExportInTSNamespace,n),n}}isAbstractClass(){return this.isContextual(120)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(125)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(r&&!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(EF.UsingDeclarationInAmbientContext,e,t),i;for(let e of i.declarations){let{id:n,init:i,definite:s}=e;s&&(i?this.raise(EF.DeclaratorDefiniteAssertionWithInitializer,n):n.typeAnnotation||this.raise(EF.DeclaratorDefiniteAssertionRequiresTypeAnnotation,n)),r&&i&&("var"===t||"let"===t||n.typeAnnotation?this.raise(EF.InitializerNotAllowedInAmbientContext,i):!function(e,t){let{type:n}=e;if(e.extra?.parenthesized)return!1;if(t){if("Literal"===n){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===n||"BooleanLiteral"===n)return!0;return!!(EK(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:n,argument:r}=e;if("-"===n&&EK(r,t))return!0}return!1}(e,t)||"TemplateLiteral"===n&&0===e.expressions.length||function(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||"TemplateLiteral"===n.type&&!(n.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(e))}(i,this.hasPlugin("estree"))&&this.raise(EF.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,i))}return i}parseStatementContent(e,t){let n=!!(2&e);if(!this.state.containsEsc)switch(this.state.type){case 71:if(this.isLookaheadContextual("enum")){let e=this.startNode();return this.next(),this.tsParseEnumDeclaration(e,{const:!0})}break;case 120:case 121:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,n=this.startNode();this.next();let r=121===e?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);if(r)return 121===e&&(r.declare=!0),r;return n.expression=this.createIdentifier(this.startNodeAtNode(n),121===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement")}break;case 122:return this.tsParseEnumDeclaration(this.startNode());case 108:if(123===this.lookaheadCharCode()){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 125:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return n||this.raise(EF.UnexpectedTypeDeclaration,e,"interface"),e;break}case 123:if(this.nextTokenIsStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,123,!1,t)}if(this.nextTokenIsIdentifierOnSameLine()){this.raise(EF.InlineModuleDeclarationMustUseString,this.state.startLoc);let e=this.startNode();return this.next(),this.tsParseDeclaration(e,124,!1,t)}break;case 124:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,124,!1,t)}break;case 126:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return n||this.raise(EF.UnexpectedTypeDeclaration,e,"type"),this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(EU)}tsHasSomeModifiers(e,t){return t.some(t=>EB(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(102)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){this.tsParseModifiers(Ej,EF.InvalidModifierOnTypeParameterPositions,t,!0);let r=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,["declare","private","public","protected","override","abstract","readonly","static"])&&this.raise(EF.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(r):r(),t.decorators&&t.decorators.length>0&&!this.hasPlugin("decorators-legacy")&&("TSAbstractMethodDefinition"===t.type||"TSDeclareMethod"===t.type?this.raise(EF.DecoratorAbstractMethod,t,{kind:"abstract method"}):("ClassProperty"===t.type&&t.abstract||"ClassProperty"===t.type&&t.declare||"TSAbstractPropertyDefinition"===t.type||"PropertyDefinition"===t.type&&t.declare)&&this.raise(EF.DecoratorAbstractMethod,t,{kind:t.declare?"declare field":"abstract field"}))}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(EF.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(EF.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(EF.IndexSignatureHasDeclare,t),t.override&&this.raise(EF.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(EF.NonAbstractClassHasAbstractMethod,t),t.override&&!n.hadSuperClass&&this.raise(EF.OverrideNotInSubClass,t),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(13)&&(e.optional=!0),e.readonly&&this.match(6)&&this.raise(EF.ClassMethodHasReadonly,e),e.declare&&this.match(6)&&this.raise(EF.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(13))return e;if(null!=n){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.next();let r=this.startNodeAt(t);r.test=e;let i=this.state.inConditionalConsequent;return this.state.inConditionalConsequent=!0,r.consequent=this.parseMaybeAssignAllowIn(),this.state.inConditionalConsequent=i,this.expect(10),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(13)&&(n.optional=!0,this.resetEndLocation(e)),this.match(10)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(121);if(n&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(EF.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=vk(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&"TSImportEqualsDeclaration"!==r.type&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n){if((!t||n)&&this.isContextual(109)){e.id=null;return}super.parseClassId(e,t,n,e.declare?1024:8331);let r=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);r&&(e.typeParameters=r)}parseClassPropertyAnnotation(e){!e.optional&&(this.eat(31)?e.definite=!0:this.eat(13)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t),e.definite&&(this.match(25)?this.raise(EF.DeclaratorDefiniteAssertionWithInitializer,e):t||this.raise(EF.DeclaratorDefiniteAssertionRequiresTypeAnnotation,e))}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(25)&&this.raise(EF.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(25)){let{key:t}=e;this.raise(EF.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(EF.PrivateElementHasAbstract,e),e.accessibility&&this.raise(EF.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(EF.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(EF.ConstructorHasTypeParameters,a);let{declare:o=!1,kind:l}=t;o&&("get"===l||"set"===l)&&this.raise(EF.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,n,r,i,s)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"===e.type||("MethodDefinition"!==e.type||null!=e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if("TSInstantiationExpression"===e.superClass.type){let t=e.superClass,n=t.expression;this.takeSurroundingComments(n,n.start,n.end);let r=t.typeArguments;this.takeSurroundingComments(r,r.start,r.end),e.superClass=n,e.superTypeArguments=r}else(this.match(43)||this.match(47))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression());this.eatContextual(109)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,r,i,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,n,r,i,s,a)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(31)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(10)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){let n,r,i,s;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(n=this.state.clone(),!(r=this.tryParse(()=>super.parseMaybeAssign(e,t),n)).error)return r.node;let{context:i}=this.state,s=i[i.length-1];(s===v_.j_oTag||s===v_.j_expr)&&i.pop()}if(!r?.error&&!this.match(43))return super.parseMaybeAssign(e,t);n&&n!==this.state||(n=this.state.clone());let a=this.tryParse(n=>{s=this.tsParseTypeParameters(this.tsParseConstModifier);let r=super.parseMaybeAssign(e,t);if(("ArrowFunctionExpression"!==r.type||r.extra?.parenthesized)&&n(),s?.params.length!==0&&this.resetStartLocationFromNode(r,s),r.typeParameters=s,this.hasPlugin("jsx")&&1===r.typeParameters.params.length&&!r.typeParameters.extra?.trailingComma){let e=r.typeParameters.params[0];e.constraint||this.raise(EF.SingleTypeParameterWithoutTrailingComma,256&this.optionFlags?vt(e.loc.end,1):e,{typeParameterName:e.name.name})}return r},n);if(!a.error&&!a.aborted)return s&&this.reportReservedArrowTypeParam(s),a.node;if(!r&&(EM(!this.hasPlugin("jsx")),!(i=this.tryParse(()=>super.parseMaybeAssign(e,t),n)).error))return i.node;if(r?.node)return this.state=r.failState,r.node;if(a.node)return this.state=a.failState,s&&this.reportReservedArrowTypeParam(s),a.node;if(i?.node)return this.state=i.failState,i.node;throw r?.error||a.error||i?.error}reportReservedArrowTypeParam(e){1===e.params.length&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(EF.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(43)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(10)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(10);return(this.canInsertSemicolon()||!this.match(15))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(13)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(EF.UnexpectedTypeCastInParameter,e):this.raise(EF.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,r){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!n)&&["expression",!0];default:return super.isValidLVal(e,t,n,r)}}parseBindingAtom(){return 74===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(43)||this.match(47)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(6)){let r=super.parseMaybeDecoratorArguments(e,t);return r.typeArguments=n,r}this.unexpected(null,6)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(8)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(31)||this.match(10)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(EF.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(44,1);if(60===e)return void this.finishOp(43,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;43===e?(this.state.pos-=1,this.readToken_lt()):44===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 47===e?(this.state.pos-=2,this.finishOp(43,1),43):e}toAssignableListItem(e,t,n){let r=e[t];"TSTypeCastExpression"===r.type&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocationFromNode(e.expression,e.typeAnnotation),e.expression}shouldParseArrow(e){return this.match(10)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(10)?!this.state.inConditionalConsequent:super.shouldParseAsyncArrow()}parseParenAndDistinguishExpression(e){let t=this.state.inConditionalConsequent;this.state.inConditionalConsequent=!1;let n=super.parseParenAndDistinguishExpression(e);return this.state.inConditionalConsequent=t,n}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(43)||this.match(47)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeArguments=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(76))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(125))if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(EF.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e);else return null;throw this.unexpected(null,76)}parseMethod(e,t,n,r,i,s,a){let o=super.parseMethod(e,t,n,r,i,s,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){let{key:e}=o;this.raise(EF.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier()}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(e,t,n,r){return!t&&r?(this.parseTypeOnlyExportSpecifier(e,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportSpecifier(e,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportSpecifier(e,t){let n=e.imported,r=!1;if(this.isContextual(89)){let t=this.parseIdentifier();if(this.isContextual(89)){let i=this.parseIdentifier();vw(this.state.type)?(r=!0,n=t,e.local=this.parseIdentifier()):e.local=i}else vw(this.state.type)?e.local=this.parseIdentifier():(r=!0,n=t)}else vw(this.state.type)&&(r=!0,n=this.parseIdentifier(!0),this.isContextual(89)||this.checkReservedWord(n.name,n.start,!0,!0));r&&t&&this.raise(EF.TypeModifierIsUsedInTypeImports,e.imported),e.imported=n,e.importKind=r?"type":"value",this.checkIdentifier(e.local??=this.eatContextual(89)?this.parseIdentifier():this.cloneIdentifier(e.imported),r?4098:4096)}parseTypeOnlyExportSpecifier(e,t){let n=e.local,r=!1;if(this.isContextual(89)){let t=this.parseIdentifier();if(this.isContextual(89)){let n=this.parseIdentifier();vw(this.state.type)?(r=!0,e.local=t,e.exported=this.parseModuleExportName()):e.exported=n}else vw(this.state.type)?e.exported=this.parseModuleExportName():(r=!0,e.local=t)}else vw(this.state.type)&&(r=!0,e.local=this.parseModuleExportName());r&&t&&this.raise(EF.TypeModifierIsUsedInTypeExports,n),e.exportKind=r?"type":"value",e.exported??=this.eatContextual(89)?this.parseModuleExportName():this.cloneIdentifier(e.local)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ImportDeclaration":e.phase??=null;return;case"ExpressionStatement":e.directive??=void 0;return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":e.decorators??=[],e.optional??=!1,e.typeAnnotation??=void 0;return;case"TSParameterProperty":e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.readonly??=!1,e.static??=!1;return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":e.declare??=!1,e.returnType??=void 0,e.typeParameters??=void 0;return;case"Property":e.optional??=!1;return;case"TSMethodSignature":case"TSPropertySignature":e.optional??=!1;case"TSIndexSignature":e.accessibility??=void 0,e.readonly??=!1,e.static??=!1;return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":e.declare??=!1,e.definite??=!1,e.readonly??=!1,e.typeAnnotation??=void 0;case"TSAbstractMethodDefinition":case"MethodDefinition":e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.optional??=!1;return;case"ClassExpression":e.id??=null;case"ClassDeclaration":e.abstract??=!1,e.declare??=!1,e.decorators??=[],e.implements??=[],e.superTypeArguments??=void 0,e.typeParameters??=void 0;return;case"TSTypeAliasDeclaration":case"VariableDeclaration":e.declare??=!1;return;case"VariableDeclarator":e.definite??=!1;return;case"TSEnumDeclaration":e.const??=!1,e.declare??=!1;return;case"TSEnumMember":e.computed??=!1;return;case"TSImportType":e.qualifier??=null,e.options??=null,e.typeArguments??=null;return;case"TSInterfaceDeclaration":e.declare??=!1,e.extends??=[];return;case"TSMappedType":e.optional??=!1,e.readonly??=void 0;return;case"TSModuleDeclaration":e.declare??=!1,e.global??="global"===e.kind;return;case"TSTypeParameter":e.const??=!1,e.in??=!1,e.out??=!1;return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(vF(e)){if(ED.lastIndex=t,ED.test(this.input)){let e=this.codePointAtPos(ED.lastIndex);if(!vB(e)&&92!==e)return!1}return!0}return 92===e||!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 34===t||39===t}};function EK(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function EV(e,t=[]){let n=new Map;for(let t of e)n.set(t,!0);for(let e of t)n.set(e,!1);return n}var EJ=vo`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Ez=["fsharp","hack"],EW=["^^","@@","^","%","#"],EX={estree:e=>class extends e{createPosition(e){return new T7(e.line,e.column)}parse(){let e=super.parse();return 512&this.optionFlags&&(e.tokens=e.tokens.map(vu)),vu(e)}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=null!==n.value?String(n.value):e,n}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){let n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAtNode(n,"ChainExpression",t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=this.castNodeTo(e,"ExpressionStatement");return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(){}cloneEstreeStringLiteral(e){let{start:t,end:n,loc:r,range:i,raw:s,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=n,o.loc=r,o.range=i,o.raw=s,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!e.expression.extra?.parenthesized}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);let s=e.directives.map(e=>this.directiveToStmt(e));e.body=s.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return"PrivateIdentifier"===e.type}getPrivateNameSV(e){return e.name}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,s,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,n,r,i,s,a),delete o.kind;let{typeParameters:l}=e;return(l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l)),e.value=this.castNodeTo(o,this.hasPlugin("typescript")&&!o.body?"TSEmptyBodyFunctionExpression":"FunctionExpression"),"ClassPrivateMethod"===s&&(e.computed=!1),this.hasPlugin("typescript")&&e.abstract)?(delete e.abstract,this.finishNode(e,"TSAbstractMethodDefinition")):"ObjectMethod"===s?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractPropertyDefinition")):this.castNodeTo(t,"PropertyDefinition"),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return t.abstract&&this.hasPlugin("typescript")?this.castNodeTo(t,"TSAbstractPropertyDefinition"):this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,n,r){return"Property"===e?"value":super.isValidLVal(e,t,n,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"Property"===e.type&&("get"===e.kind||"set"===e.kind)?this.raise(vl.PatternHasAccessor,e.key):"Property"===e.type&&e.method?this.raise(vl.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return"Import"===n.callee.type?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):"OptionalCallExpression"===n.type?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{let{declaration:e}=r;e?.type==="ClassDeclaration"&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}stopParseSubscript(e,t){let n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e):n}parseMember(e,t,n,r,i){let s=super.parseMember(e,t,n,r,i);return"OptionalMemberExpression"===s.type?this.castNodeTo(s,"MemberExpression"):s.optional=!1,s}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){let n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return vu(super.finishNodeAt(e,t,n))}finishNodeAtNode(e,t,n){return vu(super.finishNodeAtNode(e,t,n))}finishNode(e,t){let n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),vu(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),vu(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(vZ.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start)return void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(n));e+=this.input.slice(t,this.state.pos),this.finishToken(137,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;case 62:case 125:this.raise(vZ.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:125===n?"}":">"});default:vH(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,n=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===n&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(vl.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):vH(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(130,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&t<=1114111&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){let t=vW[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(vB(e)||45===e)this.finishToken(136,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(136)?e.name=this.state.value:vA(this.state.type)?e.name=vy[this.state.type]:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(10))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(12);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 2:return e=this.startNode(),this.setContext(v_.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,v_.j_oTag)).expression.type&&this.raise(vZ.AttributeIsEmpty,e),e;case 138:case 130:return this.parseExprAtom();default:throw this.raise(vZ.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(v_.j_expr),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(4))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();"SequenceExpression"!==t.type||t.extra?.parenthesized||this.raise(vZ.UnexpectedSequenceExpression,t.expressions[1]),e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){if(this.match(2)){let e=this.startNode();return this.setContext(v_.brace),this.next(),this.expect(17),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(v_.j_oTag),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXSpreadAttribute")}let e=this.startNode();return e.name=this.jsxParseNamespacedName(),e.value=this.eat(25)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){if(this.eat(139)){let t=this.startNodeAt(e);return this.finishNode(t,"JSXOpeningFragment")}let t=this.startNodeAt(e);return t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t)}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(52)&&!this.match(139);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(52),this.expect(139),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){if(this.eat(139)){let t=this.startNodeAt(e);return this.finishNode(t,"JSXClosingFragment")}let t=this.startNodeAt(e);return t.name=this.jsxParseElementName(),this.expect(139),this.finishNode(t,"JSXClosingElement")}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){t:for(;;)switch(this.state.type){case 138:if(e=this.state.startLoc,this.next(),this.eat(52)){this.setLoc(e),i=this.jsxParseClosingElementAt(e);break t}n.push(this.jsxParseElementAt(e));break;case 137:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 2:{let e=this.startNode();this.setContext(v_.brace),this.next(),this.match(17)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,v_.j_expr));break}default:this.unexpected()}v0(r)&&!v0(i)&&null!==i?this.raise(vZ.MissingClosingTagFragment,i):!v0(r)&&v0(i)?this.raise(vZ.MissingClosingTagElement,i,{openingTagName:v1(r.name)}):v0(r)||v0(i)||v1(i.name)===v1(r.name)||this.raise(vZ.MissingClosingTagElement,i,{openingTagName:v1(r.name)})}if(v0(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(43))throw this.raise(vZ.UnwrappedAdjacentJSXElements,this.state.startLoc);return v0(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(138)?this.jsxParseElement():this.match(43)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===v_.j_expr)return void this.jsxReadToken();if(t===v_.j_oTag||t===v_.j_cTag){if(vF(e))return void this.jsxReadWord();if(62===e){++this.state.pos,this.finishToken(139);return}if((34===e||39===e)&&t===v_.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(138);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(52===n&&138===e)t.splice(-2,2,v_.j_cTag),this.state.canStartJSXElement=!1;else if(138===n)t.push(v_.j_oTag);else if(139===n){let n=t[t.length-1];n===v_.j_oTag&&52===e||n===v_.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===v_.j_expr):(this.setContext(v_.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=vb[n]}},typescript:Eq,v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(50)){let e=this.state.startLoc,t=this.startNode();if(this.next(),vk(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(6))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(129)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(129),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return n.expectedNode&&n.type||(n=this.finishNode(n,"Placeholder")),n.expectedNode=t,n}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(129,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n,r){return"Placeholder"===e||super.isValidLVal(e,t,n,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let n=this.nextTokenStart();return 37===this.input.charCodeAt(n)&&37===this.input.charCodeAt(n+1)}verifyBreakContinue(e,t){e.label?.type!=="Placeholder"&&super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){return"Placeholder"!==t.type||t.extra?.parenthesized?super.parseExpressionStatement(e,t):this.match(10)?(e.label=this.finishPlaceholder(t,"Identifier"),this.next(),e.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(e,"LabeledStatement")):(this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement"))}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(77)||this.match(129)||this.match(2))e.id=s;else if(n||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,r);else throw this.raise(EJ.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);if(!this.isContextual(94)&&!this.match(8))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let r=this.startNode();return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(61)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(vy[129],this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){return!!e.specifiers?.length||super.maybeParseExportDefaultSpecifier(e,t)}checkNamedExport(){}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(94)&&!this.match(8))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(8)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(94),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(EJ.UnexpectedSpace,this.state.lastTokEndLoc)}}},EH=Object.keys(EX),EY=class extends EO{constructor(e,t,n){let r=function(e){let t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,locations:!0,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw Error("The `annexB` option can only be set to `false`.");for(let n of Object.keys(t))null!=e[n]&&(t[n]=e[n]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(null==e.startColumn||null==e.startIndex)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=n,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let i=0;r.allowAwaitOutsideFunction&&(i|=1),r.allowReturnOutsideFunction&&(i|=2),r.allowImportExportEverywhere&&(i|=8),r.allowSuperOutsideMethod&&(i|=16),r.allowUndeclaredExports&&(i|=64),r.allowNewTargetOutsideFunction&&(i|=4),r.allowYieldOutsideFunction&&(i|=32),r.ranges&&(i|=128),!0===r.locations&&(i|=256),r.tokens&&(i|=512),r.createImportExpressions&&(i|=1024),r.createParenthesizedExpressions&&(i|=2048),r.errorRecovery&&(i|=4096),r.attachComment&&(i|=8192),r.annexB&&(i|=16384),this.optionFlags=i}getScopeHandler(){return vz}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=[];let n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function EG(e,t){if(t?.sourceType!=="unambiguous")return EQ(t,e).parse();t={...t};try{t.sourceType="module";let n=EQ(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",EQ(t,e).parse()}catch{}else r.program.sourceType="script";return r}catch(n){try{return t.sourceType="script",EQ(t,e).parse()}catch{}throw n}}function EQ(e,t){let n=EY,r=new Map;if(e?.plugins){for(let t of e.plugins){let e,n;"string"==typeof t?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}!function(e){if(e.has("decorators")&&e.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");if(e.has("flow")&&e.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){let t=e.get("pipelineOperator").proposal;if(!Ez.includes(t)){let e=Ez.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===t){if(e.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=e.get("pipelineOperator").topicToken;if(!EW.includes(t)){let e=EW.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}}}if(e.has("moduleAttributes"))throw Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw Error("`importAssertions` has been removed in Babel 8, please use import attributes instead.");if(e.has("deprecatedImportAssert")?console.warn("`deprecatedImportAssert` has been removed in Babel 8, please use import attributes instead."):e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&console.warn("The 'importAttributes' plugin has been removed in Babel 8. Please migrate any usage of `assert`-style attributes to `with`."),e.has("recordAndTuple"))throw Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let e=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");if(e.has("decimal"))throw Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}(r),n=function(e){let t=[];for(let n of EH)e.has(n)&&t.push(n);let n=t.join("|"),r=E1.get(n);if(!r){for(let e of(r=EY,t))r=EX[e](r);E1.set(n,r)}return r}(r)}return new n(e,t,r)}var EZ=vE;let E0={};for(let e of Object.keys(EZ))E0[e]=vm[EZ[e]];var E1=new Map,E2=/\r\n|[\n\r\u2028\u2029]/;let{styleText:E3=(e,t)=>t}=tn;Y=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,H=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,j=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,Q=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,X=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,Z=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,en=/[\t\v\f\ufeff\p{Zs}]+/yu,z=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,G=/\/\/.*/y,B=/^#!.*/,$=/[<>.:={}]|\/(?![\/*])/y,R=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,U=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,q=/[^<>{}]+/y,et=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,ee=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,K=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,V=/^(?:return|throw|yield)$/,W=RegExp((J=/\r?\n|[\r\u2028\u2029]/y).source);var E4=function*(e,{jsx:t=!1}={}){var n,r,i,s,a,o,l,u,c,p,d,f,h,m;for({length:o}=e,s=0,a="",m=[{tag:"JS"}],n=[],d=0,f=!1,(l=B.exec(e))&&(yield{type:"HashbangComment",value:l[0]},s=l[0].length);s<o;){switch((u=m[m.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===e[s]&&(et.test(a)||K.test(a))&&(Y.lastIndex=s,l=Y.exec(e))){s=Y.lastIndex,a=l[0],f=!0,yield{type:"RegularExpressionLiteral",value:l[0],closed:void 0!==l[1]&&"\\"!==l[1]};continue}if(H.lastIndex=s,l=H.exec(e)){switch(h=l[0],c=H.lastIndex,p=h,h){case"(":"?NonExpressionParenKeyword"===a&&m.push({tag:"JSNonExpressionParen",nesting:d}),d++,f=!1;break;case")":d--,f=!0,"JSNonExpressionParen"===u.tag&&d===u.nesting&&(m.pop(),p="?NonExpressionParenEnd",f=!1);break;case"{":H.lastIndex=0,i=!ee.test(a)&&(et.test(a)||K.test(a)),n.push(i),f=!1;break;case"}":switch(u.tag){case"InterpolationInTemplate":if(n.length===u.nesting){Z.lastIndex=s,l=Z.exec(e),s=Z.lastIndex,a=l[0],"${"===l[1]?(a="?InterpolationInTemplate",f=!1,yield{type:"TemplateMiddle",value:l[0]}):(m.pop(),f=!0,yield{type:"TemplateTail",value:l[0],closed:"`"===l[1]});continue}break;case"InterpolationInJSX":if(n.length===u.nesting){m.pop(),s+=1,a="}",yield{type:"JSXPunctuator",value:"}"};continue}}p=(f=n.pop())?"?ExpressionBraceEnd":"}";break;case"]":f=!0;break;case"++":case"--":p=f?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(t&&(et.test(a)||K.test(a))){m.push({tag:"JSXTag"}),s+=1,a="<",yield{type:"JSXPunctuator",value:h};continue}f=!1;break;default:f=!1}s=c,a=p,yield{type:"Punctuator",value:h};continue}if(j.lastIndex=s,l=j.exec(e)){switch(s=j.lastIndex,p=l[0],l[0]){case"for":case"if":case"while":case"with":"."!==a&&"?."!==a&&(p="?NonExpressionParenKeyword")}a=p,f=!K.test(l[0]),yield{type:"#"===l[1]?"PrivateIdentifier":"IdentifierName",value:l[0]};continue}if(Q.lastIndex=s,l=Q.exec(e)){s=Q.lastIndex,a=l[0],f=!0,yield{type:"StringLiteral",value:l[0],closed:void 0!==l[2]};continue}if(X.lastIndex=s,l=X.exec(e)){s=X.lastIndex,a=l[0],f=!0,yield{type:"NumericLiteral",value:l[0]};continue}if(Z.lastIndex=s,l=Z.exec(e)){s=Z.lastIndex,a=l[0],"${"===l[1]?(a="?InterpolationInTemplate",m.push({tag:"InterpolationInTemplate",nesting:n.length}),f=!1,yield{type:"TemplateHead",value:l[0]}):(f=!0,yield{type:"NoSubstitutionTemplate",value:l[0],closed:"`"===l[1]});continue}break;case"JSXTag":case"JSXTagEnd":if($.lastIndex=s,l=$.exec(e)){switch(s=$.lastIndex,p=l[0],l[0]){case"<":m.push({tag:"JSXTag"});break;case">":m.pop(),"/"===a||"JSXTagEnd"===u.tag?(p="?JSX",f=!0):m.push({tag:"JSXChildren"});break;case"{":m.push({tag:"InterpolationInJSX",nesting:n.length}),p="?InterpolationInJSX",f=!1;break;case"/":"<"===a&&(m.pop(),"JSXChildren"===m[m.length-1].tag&&m.pop(),m.push({tag:"JSXTagEnd"}))}a=p,yield{type:"JSXPunctuator",value:l[0]};continue}if(R.lastIndex=s,l=R.exec(e)){s=R.lastIndex,a=l[0],yield{type:"JSXIdentifier",value:l[0]};continue}if(U.lastIndex=s,l=U.exec(e)){s=U.lastIndex,a=l[0],yield{type:"JSXString",value:l[0],closed:void 0!==l[2]};continue}break;case"JSXChildren":if(q.lastIndex=s,l=q.exec(e)){s=q.lastIndex,a=l[0],yield{type:"JSXText",value:l[0]};continue}switch(e[s]){case"<":m.push({tag:"JSXTag"}),s++,a="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":m.push({tag:"InterpolationInJSX",nesting:n.length}),s++,a="?InterpolationInJSX",f=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(en.lastIndex=s,l=en.exec(e)){s=en.lastIndex,yield{type:"WhiteSpace",value:l[0]};continue}if(J.lastIndex=s,l=J.exec(e)){s=J.lastIndex,f=!1,V.test(a)&&(a="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:l[0]};continue}if(z.lastIndex=s,l=z.exec(e)){s=z.lastIndex,W.test(l[0])&&(f=!1,V.test(a)&&(a="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:l[0],closed:void 0!==l[1]};continue}if(G.lastIndex=s,l=G.exec(e)){s=G.lastIndex,f=!1,yield{type:"SingleLineComment",value:l[0]};continue}r=String.fromCodePoint(e.codePointAt(s)),s+=r.length,a=r,f=!1,yield{type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r}}};function E5(e){return t=>E3(e,String(t??""),{validateStream:!1})}var E8={keyword:E5("cyan"),capitalized:E5("yellow"),jsxIdentifier:E5("yellow"),punctuator:E5("yellow"),number:E5("magenta"),string:E5("green"),regex:E5("magenta"),comment:E5("gray"),invalid:E5(["white","bgRed","bold"]),gutter:E5("gray"),marker:E5(["red","bold"]),message:E5(["red","bold"]),reset:E5("reset")},E6=new Set(["as","async","from","get","of","set"]),E9=/\r\n|[\n\r\u2028\u2029]/,E7=/^[()[\]{}]$/,ke=function(e){if("IdentifierName"===e.type){let t=e.value;if(tx.has(t)||tv(t,!0)||E6.has(t))return"keyword";let n=t.charCodeAt(0);if(n<128){if(n>=65&&n<=90)return"capitalized"}else{let e=String.fromCodePoint(t.codePointAt(0));if(e!==e.toLowerCase())return"capitalized"}}if("Punctuator"===e.type&&E7.test(e.value))return"uncolored";if("Invalid"===e.type&&"@"===e.value)return"punctuator";switch(e.type){case"NumericLiteral":return"number";case"StringLiteral":case"JSXString":case"NoSubstitutionTemplate":return"string";case"RegularExpressionLiteral":return"regex";case"Punctuator":case"JSXPunctuator":return"punctuator";case"MultiLineComment":case"SingleLineComment":return"comment";case"Invalid":case"JSXInvalid":return"invalid";case"JSXIdentifier":return"jsxIdentifier";default:return"uncolored"}};function kt(e){if(""===e)return"";let t="";for(let{type:n,value:r}of function*(e){for(let t of E4(e,{jsx:!0}))switch(t.type){case"TemplateHead":yield{type:"string",value:t.value.slice(0,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateMiddle":yield{type:"punctuator",value:"}"},yield{type:"string",value:t.value.slice(1,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateTail":yield{type:"punctuator",value:"}"},yield{type:"string",value:t.value.slice(1)};break;default:yield{type:ke(t),value:t.value}}}(e))n in E8?t+=r.split(E9).map(e=>E8[n](e)).join("\n"):t+=r;return t}function kn(e,t,n={}){let r=n.forceColor||"-"!==E3("red","-")&&n.highlightCode;return function(e,t,n={},r){let{defs:i,highlight:s}=r||{defs:{gutter:String,marker:String,message:String,reset:String},highlight:String},a=(n.startLine||1)-1,{start:o,end:l,markerLines:u}=function(e,t,n,r){let i={column:null,line:-1,...e.start},s={...i,...e.end},{linesAbove:a=2,linesBelow:o=3}=n||{},l=i.line-r,u=i.column,c=s.line-r,p=s.column,d=Math.max(l-(a+1),0),f=Math.min(t.length,c+o);-1===l&&(d=0),-1===c&&(f=t.length);let h=c-l,m={};if(h)for(let e=0;e<=h;e++){let n=e+l;if(null==u)m[n]=!0;else if(0===e){let e=t[n-1].length;m[n]=[u,e-u]}else if(e===h)m[n]=[0,p];else{let e=t[n-1].length;m[n]=[0,e]}}else if(u===p)null!=u?m[l]=[u,0]:m[l]=!0;else{let e=u??0,t=p??e;m[l]=[e,t-e]}return{start:d,end:f,markerLines:m}}(t,e.split(E2),n,a),c=t.start&&"number"==typeof t.start.column,p=String(l+a).length,d=s(e).split(E2,l).slice(o,l).map((e,t)=>{let r=o+1+t,s=` ${r+a}`.slice(-p),l=` ${s} |`,c=u[r],d=!u[r+1];if(!c)return` ${i.gutter(l)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(c)){let r=e.slice(0,c[0]).replace(/[^\t]/g," "),s=c[1]||1;t=["\n ",i.gutter(l.replace(/\d/g," "))," ",r,i.marker("^").repeat(s)].join(""),d&&n.message&&(t+=" "+i.message(n.message))}return[i.marker(">"),i.gutter(l),e.length>0?` ${e}`:"",t].join("")}}).join("\n");return n.message&&!c&&(d=`${" ".repeat(p+1)}${n.message}
|
|
8
|
+
${d}`),i.reset(d)}(e,t,n,r?{defs:E8,highlight:kt}:void 0)}var{assertExpressionStatement:kr}=tc;function ki(e){return{code:e=>`/* @babel/template */;
|
|
9
|
+
${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var ks=ki(e=>e.length>1?e:e[0]),ka=ki(e=>e),ko=ki(e=>{if(0===e.length)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]}),kl={code:e=>`(
|
|
10
|
+
${e}
|
|
11
|
+
)`,validate:e=>{if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(0===kl.unwrap(e).start)throw Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return kr(t),t.expression}};function ku(e,t){let{placeholderAllowlist:n=e.placeholderAllowlist,placeholderPattern:r=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:{...e.parser,...t.parser},placeholderAllowlist:n,placeholderPattern:r,preserveComments:i,syntacticPlaceholders:s}}function kc(e){if(null!=e&&"object"!=typeof e)throw Error("Unknown template options.");if(null!=e&&Object.hasOwn(e,"placeholderWhitelist")&&!Object.hasOwn(e,"placeholderAllowlist"))throw Error("The 'placeholderWhitelist' option has been renamed to 'placeholderAllowlist'. Please update your configuration.");let{placeholderAllowlist:t,placeholderPattern:n,preserveComments:r,syntacticPlaceholders:i,...s}=e||{};if(null!=t&&!(t instanceof Set))throw Error("'.placeholderAllowlist' must be a Set, null, or undefined");if(null!=n&&!(n instanceof RegExp)&&!1!==n)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=r&&"boolean"!=typeof r)throw Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=i&&"boolean"!=typeof i)throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===i&&(null!=t||null!=n))throw Error("'.placeholderAllowlist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:s,placeholderAllowlist:t||void 0,placeholderPattern:null==n?void 0:n,preserveComments:null==r?void 0:r,syntacticPlaceholders:null==i?void 0:i}}function kp(e){if(Array.isArray(e))return e.reduce((e,t,n)=>(e["$"+n]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")}var{isCallExpression:kd,isExpressionStatement:kf,isFunction:kh,isIdentifier:km,isJSXIdentifier:ky,isNewExpression:kg,isPlaceholder:kb,isStatement:kx,isStringLiteral:kS,removePropertiesDeep:kT,traverse:kv}=tc,kE=/^[_$A-Z0-9]+$/;function kk(e,t,n){let{placeholderAllowlist:r,placeholderPattern:i,preserveComments:s=!1,syntacticPlaceholders:a}=n,o=function(e,t,n){let r=(t.plugins||[]).slice();!1!==n&&r.push("placeholders"),t={allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module",...t,plugins:r};try{return EG(e,t)}catch(n){let t=n.loc;throw t&&(n.message+="\n"+kn(e,{start:t}),n.code="BABEL_TEMPLATE_PARSE_ERROR"),n}}(t,n.parser,a);kT(o,{preserveComments:s}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderAllowlist:r,placeholderPattern:i,syntacticPlaceholders:a};return kv(o,kw,l),{ast:o,...l.syntactic.placeholders.length?l.syntactic:l.legacy}}function kw(e,t,n){let r,i,s=n.syntactic.placeholders.length>0;if(kb(e)){if(!1===n.syntacticPlaceholders)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");r=e.name.name,s=!0}else if(s||n.syntacticPlaceholders)return;else if(km(e)||ky(e))r=e.name;else{if(!kS(e))return;r=e.value}if(s&&(null!=n.placeholderPattern||null!=n.placeholderAllowlist))throw Error("'.placeholderAllowlist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!s&&(!1===n.placeholderPattern||!(n.placeholderPattern||kE).test(r))&&!n.placeholderAllowlist?.has(r))return;let{node:a,key:o}=(t=t.slice())[t.length-1];kS(e)||kb(e,{expectedNode:"StringLiteral"})?i="string":kg(a)&&"arguments"===o||kd(a)&&"arguments"===o||kh(a)&&"params"===o?i="param":kf(a)&&!kb(e)?(i="statement",t=t.slice(0,-1)):i=kx(e)&&kb(e)?"statement":"other";let{placeholders:l,placeholderNames:u}=s?n.syntactic:n.legacy;l.push({name:r,type:i,resolve:e=>(function(e,t){let n=e;for(let e=0;e<t.length-1;e++){let{key:r,index:i}=t[e];n=void 0===i?n[r]:n[r][i]}let{key:r,index:i}=t[t.length-1];return{parent:n,key:r,index:i}})(e,t),isDuplicate:u.has(r)}),u.add(r)}var{blockStatement:kA,cloneNode:kP,emptyStatement:kC,expressionStatement:kI,identifier:k_,isStatement:kN,isStringLiteral:kL,stringLiteral:kO,validate:kD}=tc;function kM(e,t){let n=kP(e.ast);return t&&(e.placeholders.forEach(e=>{if(!Object.hasOwn(t,e.name)){let t=e.name;throw Error(`Error: No substitution given for "${t}". If this is not meant to be a
|
|
12
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
13
|
+
- { placeholderPattern: false, placeholderAllowlist: new Set(['${t}'])}
|
|
14
|
+
- { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw Error(`Unknown substitution "${t}" given`)})),e.placeholders.slice().reverse().forEach(e=>{try{!function(e,t,n){e.isDuplicate&&(Array.isArray(n)?n=n.map(e=>kP(e)):"object"==typeof n&&(n=kP(n)));let{parent:r,key:i,index:s}=e.resolve(t);if("string"===e.type){if("string"==typeof n&&(n=kO(n)),!n||!kL(n))throw Error("Expected string substitution")}else if("statement"===e.type)void 0===s?n?Array.isArray(n)?n=kA(n):"string"==typeof n?n=kI(k_(n)):kN(n)||(n=kI(n)):n=kC():n&&!Array.isArray(n)&&("string"==typeof n&&(n=k_(n)),kN(n)||(n=kI(n)));else if("param"===e.type){if("string"==typeof n&&(n=k_(n)),void 0===s)throw Error("Assertion failure.")}else if("string"==typeof n&&(n=k_(n)),Array.isArray(n))throw Error("Cannot replace single expression with an array.");function a(e,t,n){let r=e[t];e[t]=n,("Identifier"===r.type||"Placeholder"===r.type)&&(r.typeAnnotation&&(n.typeAnnotation=r.typeAnnotation),r.optional&&(n.optional=r.optional),r.decorators&&(n.decorators=r.decorators))}if(void 0===s)kD(r,i,n),a(r,i,n);else{let t=r[i].slice();"statement"===e.type||"param"===e.type?null==n?t.splice(s,1):Array.isArray(n)?t.splice(s,1,...n):a(t,s,n):a(t,s,n),kD(r,i,t),r[i]=t}}(e,n,(t&&t[e.name])??null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),n}function kF(e,t,n){let r;return t=e.code(t),i=>{let s=kp(i);return r||(r=kk(e,t,n)),e.unwrap(kM(r,s))}}function kB(e,t,n){let{metadata:r,names:i}=function(e,t,n){let r="BABEL_TPL$",i=t.join("");do r="$$"+r;while(i.includes(r))let{names:s,code:a}=function(e,t){let n=[],r=e[0];for(let i=1;i<e.length;i++){let s=`${t}${i-1}`;n.push(s),r+=s+e[i]}return{names:n,code:r}}(t,r);return{metadata:kk(e,e.code(a),{parser:n.parser,placeholderAllowlist:new Set(s.concat(n.placeholderAllowlist?Array.from(n.placeholderAllowlist):[])),placeholderPattern:n.placeholderPattern,preserveComments:n.preserveComments,syntacticPlaceholders:n.syntacticPlaceholders}),names:s}}(e,t,n);return t=>{let n={};return t.forEach((e,t)=>{n[i[t]]=e}),t=>{let i=kp(t);return i&&Object.keys(i).forEach(e=>{if(Object.hasOwn(n,e))throw Error("Unexpected replacement overlap.")}),e.unwrap(kM(r,i?Object.assign(i,n):n))}}}var kj=kc({placeholderPattern:!1});function kR(e,t){let n=new WeakMap,r=new WeakMap,i=t||kc(null);return Object.assign((t,...r)=>{if("string"==typeof t){if(r.length>1)throw Error("Unexpected extra params.");return k$(kF(e,t,ku(i,kc(r[0]))))}if(Array.isArray(t)){let s=n.get(t);return s||(s=kB(e,t,i),n.set(t,s)),k$(s(r))}if("object"==typeof t&&t){if(r.length>0)throw Error("Unexpected extra params.");return kR(e,ku(i,kc(t)))}throw Error(`Unexpected template param ${typeof t}`)},{ast:(t,...n)=>{if("string"==typeof t){if(n.length>1)throw Error("Unexpected extra params.");return kF(e,t,ku(ku(i,kc(n[0])),kj))()}if(Array.isArray(t)){let s=r.get(t);return s||(s=kB(e,t,ku(i,kj)),r.set(t,s)),s(n)()}throw Error(`Unexpected template param ${typeof t}`)}})}function k$(e){let t=Error();return n=>{try{return e(n)}catch(e){throw e.stack+=`
|
|
15
|
+
=============
|
|
16
|
+
${t.stack.split("\n").slice(3).join("\n")}`,e}}}var kU=kR(ks),kq=kR(ko),kK=kR(ka),kV=kR(kl),kJ=kR({code:e=>e,validate:()=>{},unwrap:e=>e.program}),kz=Object.assign(kU.bind(void 0),{smart:kU,statement:kq,statements:kK,expression:kV,program:kJ,ast:kU.ast}),kW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kX=new Uint8Array(64),kH=new Uint8Array(128);for(let e=0;e<kW.length;e++){let t=kW.charCodeAt(e);kX[e]=t,kH[t]=e}function kY(e){let t=0,n=0,r=0;do t|=(31&(r=kH[e.next()]))<<n,n+=5;while(32&r)return t}function kG(e){return 1&e?-0x80000000|-(e>>>1):e>>>1}function kQ(e,t){do{let n=31&t;(t>>>=5)>0&&(n|=32),e.write(kX[n])}while(t>0)}function kZ(e){return e<0?-e<<1|1:e<<1}function k0(e,t){return!(e.pos>=t)&&44!==e.peek()}var k1="u">typeof TextDecoder?new TextDecoder:{decode:e=>eE.from(e.buffer,e.byteOffset,e.byteLength).toString()},k2=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=k1.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+k1.decode(e.subarray(0,n)):t}},k3=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return -1===r?t.length:r}};function k4(e,t){return e[0]-t[0]}var k5=/^[\w+.-]+:\/\//,k8=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,k6=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function k9(e){return e.startsWith("/")}function k7(e){return/^[.?#]/.test(e)}function we(e){let t=k8.exec(e);return wt(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function wt(e,t,n,r,i,s,a){return{scheme:e,user:t,host:n,port:r,path:i,query:s,hash:a,type:7}}function wn(e){if(e.startsWith("//")){let t=we("http:"+e);return t.scheme="",t.type=6,t}if(k9(e)){let t=we("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(e.startsWith("file:")){let t,n;return n=(t=k6.exec(e))[2],wt("file:","",t[1]||"","",k9(n)?n:"/"+n,t[3]||"",t[4]||"")}if(k5.test(e))return we(e);let t=we("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function wr(e,t){let n=t<=4,r=e.path.split("/"),i=1,s=0,a=!1;for(let e=1;e<r.length;e++){let t=r[e];if(!t){a=!0;continue}if(a=!1,"."!==t){if(".."===t){s?(a=!0,s--,i--):n&&(r[i++]=t);continue}r[i++]=t,s++}}let o="";for(let e=1;e<i;e++)o+="/"+r[e];o&&(!a||o.endsWith("/.."))||(o+="/"),e.path=o}function wi(e,t){for(let n=t;n<e.length;n++)if(!function(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[n]))return n;return e.length}function ws(e,t){return e[0]-t[0]}var wa=!1,wo=class{constructor(e,t){let n,r,i="string"==typeof e;if(!i&&e._decodedMemo)return e;let s="string"==typeof e?JSON.parse(e):e,{version:a,file:o,names:l,sourceRoot:u,sources:c,sourcesContent:p}=s;this.version=a,this.file=o,this.names=l||[],this.sourceRoot=u,this.sources=c,this.sourcesContent=p,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;let d=(n=function(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}(t),r=u?u+"/":"",e=>(function(e,t){if(!e&&!t)return"";let n=wn(e),r=n.type;if(t&&7!==r){let e=wn(t),i=e.type;switch(r){case 1:n.hash=e.hash;case 2:n.query=e.query;case 3:case 4:wr(e,e.type),"/"===n.path?n.path=e.path:n.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(e.path)+n.path;case 5:n.user=e.user,n.host=e.host,n.port=e.port;case 6:n.scheme=e.scheme}i>r&&(r=i)}wr(n,r);let i=n.query+n.hash;switch(r){case 2:case 3:return i;case 4:{let r=n.path.slice(1);if(!r)return i||".";if(k7(t||e)&&!k7(r))return"./"+r+i;return r+i}case 5:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}})(r+(e||""),n));this.resolvedSources=c.map(d);let{mappings:f}=s;if("string"==typeof f)this._encoded=f,this._decoded=void 0;else if(Array.isArray(f))this._encoded=void 0,this._decoded=function(e,t){let n=wi(e,0);if(n===e.length)return e;t||(e=e.slice());for(let i=n;i<e.length;i=wi(e,i+1)){var r;e[i]=(r=e[i],t||(r=r.slice()),r.sort(ws))}return e}(f,i);else if(s.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(s)}`);this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function wl(e,t){var n,r,i,s,a,o;let l,{line:u,column:c,bias:p}=t;if(--u<0)throw Error("`line` must be greater than 0 (lines start at line 1)");if(c<0)throw Error("`column` must be greater than or equal to 0 (columns start at column 0)");let d=(n=e)._decoded||(n._decoded=function(e){let{length:t}=e,n=new k3(e),r=[],i=0,s=0,a=0,o=0,l=0;do{let e=n.indexOf(";"),t=[],u=!0,c=0;for(i=0;n.pos<e;){let r;(i+=kG(kY(n)))<c&&(u=!1),c=i,k0(n,e)?(s+=kG(kY(n)),a+=kG(kY(n)),o+=kG(kY(n)),k0(n,e)?(l+=kG(kY(n)),r=[i,s,a,o,l]):r=[i,s,a,o]):r=[i],t.push(r),n.pos++}u||t.sort(k4),r.push(t),n.pos=e+1}while(n.pos<=t)return r}(n._encoded));if(u>=d.length)return wu(null,null,null,null);let f=d[u],h=(r=f,i=e._decodedMemo,s=u,a=c,o=p||1,l=function(e,t,n,r){let{lastKey:i,lastNeedle:s,lastIndex:a}=n,o=0,l=e.length-1;if(r===i){if(t===s)return wa=-1!==a&&e[a][0]===t,a;t>=s?o=-1===a?0:a:l=a}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){let i=n+(r-n>>1),s=e[i][0]-t;if(0===s)return wa=!0,i;s<0?n=i+1:r=i-1}return wa=!1,n-1}(e,t,o,l)}(r,a,i,s),(wa?l=(-1===o?function(e,t,n){for(let r=n+1;r<e.length&&e[r][0]===t;n=r++);return n}:function(e,t,n){for(let r=n-1;r>=0&&e[r][0]===t;n=r--);return n})(r,a,l):-1===o&&l++,-1===l||l===r.length)?-1:l);if(-1===h)return wu(null,null,null,null);let m=f[h];if(1===m.length)return wu(null,null,null,null);let{names:y,resolvedSources:g}=e;return wu(g[m[1]],m[2]+1,m[3],5===m.length?y[m[4]]:null)}function wu(e,t,n,r){return{source:e,line:t,column:n,name:r}}var wc=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function wp(e,t){var n,r;let i=(n=e,r=t,n._indexes[r]);if(void 0!==i)return i;let{array:s,_indexes:a}=e,o=s.push(t);return a[t]=o-1}var wd=class{constructor({file:e,sourceRoot:t}={}){this._names=new wc,this._sources=new wc,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new wc,this._rangeMappings=[]}};function wf(e,t,n){let{_sources:r,_sourcesContent:i}=e;i[wp(r,t)]=n}function wh(e){let{_mappings:t,_sources:n,_sourcesContent:r,_names:i,_ignoreList:{array:s},_rangeMappings:a}=e;return wS(t),wS(a),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:n.array,sourcesContent:r,mappings:t,ignoreList:s.length>0?s:void 0,rangeMappings:a.length>0?a:void 0}}function wm(e,t,n,r,i,s,a,o,l){let{_mappings:u,_sources:c,_sourcesContent:p,_names:d,_rangeMappings:f}=t,h=wy(u,n),m=wg(h,r);if(!i){var y,g;if(y=h,(0===(g=m)||1===y[g-1].length)&&!wb(u,f,n,m-1))return;m<h.length&&wv(f,n,m),wx(h,m,[r]);return}let b=wp(c,i),x=o?wp(d,o):-1;b===p.length&&(p[b]=null!=l?l:null),(!function(e,t,n,r,i,s){if(0===t)return!1;let a=e[t-1];return 1!==a.length&&n===a[1]&&r===a[2]&&i===a[3]&&s===(5===a.length?a[4]:-1)}(h,m,b,s,a,x)||wb(u,f,n,m-1))&&(m<h.length&&wv(f,n,m),wx(h,m,o?[r,b,s,a,x]:[r,b,s,a]))}function wy(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function wg(e,t){for(let n=e.length;n>0;n--)if(t>=e[n-1][0])return n;return 0}function wb(e,t,n,r){if(0===t.length)return!1;if(r<0)for(;--n>=0;){let t=e[n];if(t.length>0){r=t.length-1;break}}return!(n<0)&&!(n>=t.length)&&wT(t[n],r)>=0}function wx(e,t,n){for(let n=e.length;n>t;n--)e[n]=e[n-1];e[t]=n}function wS(e){for(let t=e.length-1;t>=0&&!(e[t].length>0);t--)e.pop()}function wT(e,t){for(let n=e.length;n>0;n--){let r=e[n-1];if(r===t)return n-1;if(r<t)return~n}return -1}function wv(e,t,n){if(t>=e.length)return;let r=e[t];for(let e=r.length-1;e>=0&&!(r[e]<n);e--)r[e]++}var wE=((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of ta(t))tl.call(e,r)||void 0===r||ti(e,r,{get:()=>t[r],enumerable:!(n=ts(t,r))||n.enumerable});return e})(ti(null!=(L=tu())?tr(to(L)):{},"default",{value:L,enumerable:!0}),L),wk=class{_map;_rawMappings;_sourceFileName;_lastGenLine=0;_lastSourceLine=0;_lastSourceColumn=0;_inputMap=null;constructor(e,t){let n=this._map=new wd({sourceRoot:e.sourceRoot});if(this._sourceFileName=e.sourceFileName?.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new wo(e.inputSourceMap);let t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++)wf(n,t[e],this._inputMap.sourcesContent?.[e])}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(let e of Object.keys(t))wf(n,e.replace(/\\/g,"/"),t[e])}else wf(n,this._sourceFileName,t)}get(){let e,t=((e=wh(this._map)).mappings=function(e){let t=new k2,n=0,r=0,i=0,s=0;for(let a=0;a<e.length;a++){let o=e[a];if(a>0&&t.write(59),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){let a=o[e];e>0&&t.write(44),kQ(t,kZ(a[0]-l)),l=a[0],1!==a.length&&(kQ(t,kZ(a[1]-n)),kQ(t,kZ(a[2]-r)),kQ(t,kZ(a[3]-i)),n=a[1],r=a[2],i=a[3],4!==a.length&&(kQ(t,kZ(a[4]-s)),s=a[4]))}}return t.flush()}(e.mappings),e.rangeMappings&&(e.rangeMappings=function(e){if(0===e.length)return"";let t=new k2;for(let n=0;n<e.length;n++){let r=e[n];n>0&&t.write(59);let i=0;for(let e=0;e<r.length;e++){let n=r[e];kQ(t,n-i),i=n}}return t.flush()}(e.rangeMappings)),e);return t.ignoreList??=[],t}getDecoded(){let e=wh(this._map);return e.ignoreList??=[],e}getRawMappings(){return this._rawMappings||=function(e){let t=[],{_mappings:n,_sources:{array:r},_names:{array:i}}=e;for(let e=0;e<n.length;e++){let s=n[e];for(let n=0;n<s.length;n++){let a,o,l,u=s[n],c={line:e+1,column:u[0]};1!==u.length&&(a=r[u[1]],o={line:u[2]+1,column:u[3]},5===u.length&&(l=i[u[4]])),t.push({generated:c,source:a,original:o,name:l})}}return t}(this._map)}mark(e,t,n,r,i,s,a){let o;if(this._rawMappings=void 0,null!=n)if(this._inputMap){if((o=wl(this._inputMap,{line:n,column:r})).name&&(s||null!=i&&o.column===r))i=o.name;else if(s){let e=wl(this._inputMap,s);e.name&&(i=e.name)}}else o={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:n,column:r};null!=i&&i===t&&(i=null),!function(e,t,n){let{generated:r,source:i,original:s,name:a,content:o,isRange:l}=n;i?wm(e,t,r.line-1,r.column,i,s.line-1,s.column,a,o):wm(e,t,r.line-1,r.column,null,null,null,null,null),l&&function(e,t,n,r=!0){let{_mappings:i,_rangeMappings:s}=e,a=wg(wy(i,t),n)-1,o=wy(s,t),l=wT(o,a);if(r){if(l>=0)return;wx(o,~l,a)}else{if(l<0)return;o.splice(l,1)}}(t,r.line-1,r.column)}(!0,this._map,{name:i,generated:e,source:o?.source,original:o})}},ww=[];for(let e=0;e<32;e++)ww.push(" ".repeat(2*e));var wA=class{constructor(e,t){this._map=e,this._indentChar=t}_map=null;_buf="";_str="";_appendCount=0;_last=0;_canMarkIdName=!0;_indentChar="";_queuedChar=0;_position={line:1,column:0};_sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0};get(){let{_map:e,_last:t}=this;32!==this._queuedChar&&this._flush();let n=10===t?(this._buf+this._str).trimRight():this._buf+this._str;if(null===e)return{code:n,decodedMap:void 0,map:null,rawMappings:void 0};let r={code:n,decodedMap:e.getDecoded(),get map(){let t=e.get();return r.map=t,t},set map(e){Object.defineProperty(r,"map",{value:e,writable:!0})},get rawMappings(){let t=e.getRawMappings();return r.rawMappings=t,t},set rawMappings(e){Object.defineProperty(r,"rawMappings",{value:e,writable:!0})}};return r}append(e,t,n=!1){this._flush(),this._append(e,t,n)}appendChar(e){this._flush(),this._appendChar(e,1,!0)}queue(e){this._flush(),this._queuedChar=e}_flush(){let e=this._queuedChar;0!==e&&(this._appendChar(e,1,!0),this._queuedChar=0)}_appendChar(e,t,n){if(this._last=e,-1===e){let e=t>=64?this._indentChar.repeat(t):ww[t/2];this._str+=e}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);let r=32===e,i=this._position;if(10!==e){if(this._map){let e=this._sourcePosition;n&&e?(this._map.mark(i,null,e.line,e.column,r?void 0:e.identifierName,r?void 0:e.identifierNamePos,e.filename),!r&&this._canMarkIdName&&(e.identifierName=void 0,e.identifierNamePos=void 0)):this._map.mark(i,null)}i.column+=t}else i.line++,i.column=0}_append(e,t,n){let r=e.length,i=this._position,s=this._sourcePosition;this._last=-1,++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e;let a=!n&&null!==this._map;if(!t&&!a){i.column+=r;return}let{column:o,identifierName:l,identifierNamePos:u,filename:c}=s,p=s.line;(null!=l||null!=u)&&this._canMarkIdName&&(s.identifierName=void 0,s.identifierNamePos=void 0);let d=e.indexOf("\n"),f=0;for(a&&0!==d&&this._map.mark(i,e,p,o,l,u,c);-1!==d;)i.line++,i.column=0,(f=d+1)<r&&void 0!==p&&(p++,a&&this._map.mark(i,e,p,0,void 0,void 0,c)),d=e.indexOf("\n",f);i.column+=r-f}removeLastSemicolon(){59===this._queuedChar&&(this._queuedChar=0)}getLastChar(e){if(!e)return this._last;let t=this._queuedChar;return 0!==t?t:this._last}getNewlineCount(){return+(0===this._queuedChar&&10===this._last)}hasContent(){return 0!==this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);let n=e.identifierName,r=this._sourcePosition;null!=n&&(this._canMarkIdName=!1,r.identifierName=n),t(),null!=n&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,n){this._map&&this._normalizePosition(e,t,n)}_normalizePosition(e,t,n){this._flush();let r=t[e];r&&(this.setSourcePosition(r.line,Math.max(r.column+n,0)),this._sourcePosition.filename=t.filename)}setSourcePosition(e,t){let n=this._sourcePosition;n.line=e,n.column=t}getCurrentColumn(){return this._position.column+ +!!this._queuedChar}getCurrentLine(){return this._position.line}},{isMemberExpression:wP,isOptionalMemberExpression:wC,isYieldExpression:wI,isStatement:w_}=tc,wN=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function wL(e){return 154===e||199===e||207===e}var wO=(e,t,n)=>(22===n||23===n)&&t.superClass===e,wD=(e,t,n)=>{switch(n){case 109:case 133:return t.object===e;case 18:case 131:case 113:return t.callee===e;case 220:return t.tag===e;case 189:return!0}return!1};function wM(e,t,n,r){let i;if(wO(e,t,n)||wD(e,t,n)||236===n||143===n||8===n)return!0;switch(n){case 11:case 108:i=wN.get(t.operator);break;case 154:case 199:i=7}if(void 0!==i){let s=2===r?7:wN.get(e.operator);if(i>s||i===s&&11===n&&(11===s?t.left===e:t.right===e)||1===r&&108===n&&(1===s&&1!==i||1===i&&1!==s))return!0}return!1}function wF(e,t,n){switch(n){case 4:case 116:case 91:case 237:return!0}return!1}function wB(e,t,n){return(6===n||7===n)&&t.left===e||11===n&&("|"===t.operator||"&"===t.operator)&&e===t.left||wM(e,t,n,2)}function wj(e,t,n){switch(n){case 179:case 209:case 153:case 193:return!0;case 173:return t.objectType===e}return!1}function wR(e,t,n){switch(n){case 153:case 193:return!0;case 173:if(t.objectType===e)return!0}return!1}function w$(e,t,n){return!!wj(e,t,n)||217===n||159===n&&(t.checkType===e||t.extendsType===e)}function wU(e,t,n){return 11===n||108===n||236===n||143===n||wD(e,t,n)||8===n&&wI(e)||29===n&&e===t.test||wO(e,t,n)||wL(n)}function wq(e,t,n){return wD(e,t,n)||11===n&&"**"===t.operator&&t.left===e||wO(e,t,n)}function wK(e,t,n){switch(n){case 236:case 143:case 11:case 108:case 8:return!0;case 29:if(t.test===e)return!0}return!!wL(n)||wq(e,t,n)}function wV(e,t,n){switch(n){case 18:return t.callee===e;case 109:return t.object===e}return!1}var wJ=Object.defineProperty({__proto__:null,ArrowFunctionExpression:wK,AssignmentExpression:function(e,t,n,r){return(3&r)>0&&"ObjectPattern"===e.left.type||wK(e,t,n)},AwaitExpression:wU,BinaryExpression:function(e,t,n,r){return!!wM(e,t,n,0)||(128&r)>0&&"in"===e.operator},ClassExpression:function(e,t,n,r){return(5&r)>0},ConditionalExpression:wK,DoExpression:function(e,t,n,r){return(1&r)>0&&!e.async},FunctionExpression:function(e,t,n,r){return(5&r)>0},FunctionTypeAnnotation:function(e,t,n,r){return 237===n||91===n||4===n||(8&r)>0},Identifier:function(e,t,n,r,i){if(i&&i(e)!==e.name)return!1;if(6===n&&e.extra?.parenthesized&&t.left===e){let e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(64&r||(109===n||133===n)&&49&r)&&"let"===e.name?!!(wP(t,{object:e,computed:!0})||wC(t,{object:e,computed:!0,optional:!1}))&&!!(49&r)||(64&r)>0:69===n&&t.left===e&&"async"===e.name&&!t.await},IntersectionTypeAnnotation:wF,LogicalExpression:function(e,t,n){return wM(e,t,n,1)},NullableTypeAnnotation:function(e,t,n){return 4===n},ObjectExpression:function(e,t,n,r){return(3&r)>0},OptionalCallExpression:wV,OptionalIndexedAccessType:function(e,t,n){return 85===n&&t.objectType===e},OptionalMemberExpression:wV,SequenceExpression:function(e,t,n){return 142!==n&&134!==n&&(109!==n||t.property!==e)&&(133!==n||t.property!==e)&&222!==n&&(22===n||(69===n?t.right===e:61===n||!w_(t)))},SpreadElement:wq,TSAsExpression:wB,TSConditionalType:function(e,t,n){switch(n){case 153:case 193:case 209:case 210:case 179:case 217:return!0;case 173:return t.objectType===e;case 159:return t.checkType===e||t.extendsType===e}return!1},TSConstructorType:w$,TSFunctionType:w$,TSInferType:function(e,t,n){return!!wR(e,t,n)||(179===n||217===n)&&null!=e.typeParameter.constraint},TSInstantiationExpression:function(e,t,n){switch(n){case 18:case 131:case 113:case 175:return null!=t.typeArguments}return!1},TSIntersectionType:function(e,t,n){return 209===n||wR(e,t,n)},TSSatisfiesExpression:wB,TSTypeAssertion:wq,TSTypeOperator:wR,TSUnionType:wj,UnaryExpression:wq,UnionTypeAnnotation:wF,UpdateExpression:function(e,t,n){return wD(e,t,n)||wO(e,t,n)},YieldExpression:wU},Symbol.toStringTag,{value:"Module"});function wz(e,t){let n=e.quasis,r="`";for(let e=0;e<n.length-1;e++)r+=n[e].value.raw,this.token(r+"${",!0),this.print(t[e]),r="}";r+=n[n.length-1].value.raw,this.token(r+"`",!0)}var{isCallExpression:wW,isLiteral:wX,isMemberExpression:wH,isNewExpression:wY,isPattern:wG}=tc;function wQ(e){this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function wZ(e){return"number"==typeof e.start&&e.start===e.declaration.start}function w0(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}var{isFor:w1,isIfStatement:w2,isStatement:w3,isVoidPattern:w4}=tc;function w5(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function w8(e){this.tokenChar(44,e),this.newline()}var{isIdentifier:w6}=tc;function w9(e,t,n,r){if(this.print(e.typeParameters),void 0!==n||void 0!==r){let e=Ao.call(this,n,r);e&&this.sourceIdentifierName(e.name,e.pos)}this.tokenChar(40),w7.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function w7(e,t){let n=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)Ae.call(this,e[t]),(r||t<i-1)&&(this.tokenChar(44,t),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=n}function Ae(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function At(e){let t=e.kind,n=e.key;("get"===t||"set"===t)&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),("method"===t||"init"===t)&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(n),this.tokenChar(93)):this.print(n),e.optional&&this.tokenChar(63),this._buf._map?w9.call(this,e,!1,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key):w9.call(this,e,!1)}function An(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function Ar(e,t,n){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?w9.call(this,e,!1,e.id,t):w9.call(this,e,!1),n&&An.call(this,e)}function Ai(e,t){Ar.call(this,e,t,!0),this.space(),this.print(e.body)}function As(e){if(1!==e.params.length||e.typeParameters||e.returnType||e.predicate)return!0;let t=e.params[0];if(!w6(t)||t.typeAnnotation||t.optional||t.leadingComments?.length||t.trailingComments?.length)return!0;if(this.tokenMap){if(null==e.loc||null!==this.tokenMap.findMatching(e,"("))return!0;let t=this.tokenMap.findMatching(e,"=>");return t?.loc==null||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function Aa(e){return!!e.loc?.identifierName&&e.loc.identifierName!==e.name}function Ao(e,t){let n,r=e;if(!r&&t){let e=t.type;"VariableDeclarator"===e?r=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?r=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):("ClassPrivateProperty"===e||"ClassAccessorProperty"===e)&&(r=t.key)}if(r?.loc){if("Identifier"===r.type){if(!Aa(r))return;n={pos:r.loc.start,name:r.loc.identifierName}}else if("PrivateName"===r.type){if(!Aa(r.id))return;n={pos:r.loc.start,name:"#"+r.id.loc.identifierName}}else"StringLiteral"===r.type&&(n={pos:r.loc.start,name:r.value});return n}}function Al(e,t){this.tokenChar(60);let n="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(n&&=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,",")),n||=this.shouldPrintTrailingComma(">")),this.printList(e.params,n),this.tokenChar(62)}function Au(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function Ac(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function Ap(e){let{typeParameters:t}=e,n=e.params;this.print(t),this.tokenChar(40),w7.call(this,n,41),this.space();let r=e.returnType;this.print(r)}function Ad(e,t,n){let r=0;e.tokenMap?.startMatches(t,n)&&(r=1,e.token(n)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(n,void 0,e+r),this.space()})}function Af(e,t){!0!==t&&e.token(t)}function Ah(e){this.print(e.expression),this.print(e.typeArguments)}function Am(e){let{typeParameters:t}=e,n=e.params;this.print(t),this.tokenChar(40),w7.call(this,n,41),this.print(e.returnType)}function Ay(e){let t="ClassPrivateProperty"===e.type,n="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;Ab(this,e,[n&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),Ab(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(n||t)&&e.readonly&&"readonly"])}function Ag(e,t,n){e.token("{");let r=e.enterDelimited();n(),e._noLineTerminatorAfterNode=r,e.rightBrace(t)}function Ab(e,t,n){let r=new Set;for(let e of n)e&&r.add(e);for(let n of(e.tokenMap?.find(t,t=>!!r.has(t.value)&&(e.token(t.value),e.space(),r.delete(t.value),0===r.size)),r))e.word(n),e.space()}var{isClassDeclaration:Ax,isExportDefaultSpecifier:AS,isExportNamespaceSpecifier:AT,isImportDefaultSpecifier:Av,isImportNamespaceSpecifier:AE,isStatement:Ak}=tc;function Aw(e,t){let{attributes:n}=e;this.word("with"),this.space();let r=+!!t;this.token("{",void 0,r),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,r)}function AA(e){this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),e.attributes?.length?(this.print(e.source,!0),this.space(),Aw.call(this,e,!1)):this.print(e.source),this.semicolon()}function AP(e,t){Ax(t.declaration)&&wZ.call(e,t)&&e.printJoin(t.declaration.decorators)}var{isAssignmentPattern:AC,isIdentifier:AI}=tc,A_="";function AN(e){let{name:t}=e,n=this.tokenMap.find(e,e=>e.value===t);return A_=n?this._originalCode.slice(n.start,n.end):e.name}function AL(e){this.token("..."),this.print(e.argument)}function AO(e){let t=e.properties;if(this.tokenChar(123),t.length){let e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=e}this.rightBrace(e)}function AD(e){let t=e.elements,n=t.length;this.tokenChar(91);let r=this.enterDelimited();for(let e=0;e<t.length;e++){let r=t[e];r?(e>0&&this.space(),this.print(r,void 0,!0),(e<n-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,e)):this.tokenChar(44,e)}this._noLineTerminatorAfterNode=r,this.tokenChar(93)}function AM(e){let t=this.getPossibleRaw(e),n=this.format.jsescOption,r=e.value,i=r+"";n.numbers?this.number((0,wE.default)(r,n),r):null==t?this.number(i,r):this.format.minified?this.number(t.length<i.length?t:i,r):this.number(t,r)}function AF(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let n=(0,wE.default)(e.value,this.format.jsescOption);this.token(n)}function AB(e){let t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)}var Aj=new Set(["^^","@@","^","%","#"]),{isDeclareExportDeclaration:AR}=tc;function A$(e,t,n){n&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function AU(e,t){let{members:n}=t;for(let t of(e.token("{"),e.indent(),e.newline(),n))e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function Aq(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function AK(e){this.print(e.id),this.print(e.typeParameters,!0)}function AV(e){this.print(e.id),this.print(e.typeParameters),e.extends?.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type&&(e.mixins?.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),e.implements?.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))),this.space(),this.print(e.body)}function AJ(e){let t=e.variance?.kind;null!=t&&("plus"===t?this.tokenChar(43):"minus"===t&&this.tokenChar(45))}function Az(e){this.word("interface"),this.space(),AV.call(this,e)}function AW(e){this.space(),this.token("&",!1,e),this.space()}function AX(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function AH(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function AY(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function AG(e){this.space(),this.token("|",!1,e),this.space()}var{isExportDefaultDeclaration:AQ,isExportNamedDeclaration:AZ}=tc;function A0(e,t){(AQ(t)||AZ(t))&&wZ.call(this,t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeArguments)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function A1(e,t=!0){if(t&&this.printJoin(e.decorators),!this.format.preserveFormat){let t=e.key.loc?.end?.line;t&&this.catchUp(t)}Ay.call(this,e),At.call(this,e)}var A2=/(?:^|[^\\])(?:\\\\)*'/,A3=/(?:^|[^\\])(?:\\\\)*"/;function A4(){this.space()}var A5=Object.defineProperty({__proto__:null,AnyTypeAnnotation:function(){this.word("any")},ArgumentPlaceholder:function(){this.tokenChar(63)},ArrayExpression:AD,ArrayPattern:AD,ArrayTypeAnnotation:function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},ArrowFunctionExpression:function(e,t){e.async&&(this.word("async",!0),this.space()),As.call(this,e)?w9.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),An.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=2,this.print(e.body)},AssignmentExpression:w0,AssignmentPattern:function(e){this.print(e.left),("Identifier"===e.left.type||wG(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},AwaitExpression:function(e){this.word("await"),this.space(),this.print(e.argument)},BigIntLiteral:AB,BigIntLiteralTypeAnnotation:AB,BinaryExpression:function(e){this.print(e.left),this.space();let{operator:t}=e;105===t.charCodeAt(0)?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)},BindExpression:function(e){this.print(e.object),this.token("::"),this.print(e.callee)},BlockStatement:function(e){this.tokenChar(123);let t=this.enterDelimited(),n=e.directives?.length;if(n){let t=e.body.length?2:1;this.printSequence(e.directives,!0,!0,t),e.directives[n-1].trailingComments?.length||this.newline(t)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=t,this.rightBrace(e)},BooleanLiteral:function(e){this.word(e.value?"true":"false")},BooleanLiteralTypeAnnotation:function(e){this.word(e.value?"true":"false")},BooleanTypeAnnotation:function(){this.word("boolean")},BreakStatement:function(e){this.word("break"),w5(this,e.label)},CallExpression:function(e){this.print(e.callee),this.print(e.typeArguments),wQ.call(this,e)},CatchClause:function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},ClassAccessorProperty:function(e){this.printJoin(e.decorators);let t=e.key.loc?.end?.line;t&&this.catchUp(t),Ay.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(AJ.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ClassBody:function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{let t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;let n=e.tokenMap.getIndexes(t);if(!n)return null;let r=1,i=0,s=0,a=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return a(),o=>{let l;s<=o&&(s=o+1,a());let u=s===t.body.length?t.end:t.body[s].start;for(;r<n.length&&e.tokenMap.matchesOriginal(l=e._tokens[n[r]],";")&&l.start<u;)e.tokenChar(59,i++),r++}}(this,e);t?.(-1);let n=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=n,this.endsWith(10)||this.newline(),this.rightBrace(e)}},ClassDeclaration:A0,ClassExpression:A0,ClassImplements:AK,ClassMethod:function(e){A1.call(this,e),this.space(),this.print(e.body)},ClassPrivateMethod:function(e){A1.call(this,e),this.space(),this.print(e.body)},ClassPrivateProperty:function(e){this.printJoin(e.decorators),Ay.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ClassProperty:function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){let t=e.key.loc?.end?.line;t&&this.catchUp(t)}Ay.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(AJ.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ConditionalExpression:function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},ContinueStatement:function(e){this.word("continue"),w5(this,e.label)},DebuggerStatement:function(){this.word("debugger"),this.semicolon()},DeclareClass:function(e,t){AR(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),AV.call(this,e)},DeclareExportAllDeclaration:function(e){this.word("declare"),this.space(),AA.call(this,e)},DeclareExportDeclaration:function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space())},DeclareFunction:function(e,t){AR(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation?.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},DeclareInterface:function(e){this.word("declare"),this.space(),Az.call(this,e)},DeclareModule:function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},DeclareModuleExports:function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},DeclareOpaqueType:function(e,t){AR(t)||(this.word("declare"),this.space()),AY.call(this,e)},DeclareTypeAlias:function(e){this.word("declare"),this.space(),AX.call(this,e)},DeclareVariable:function(e,t){AR(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},DeclaredPredicate:function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},Decorator:function(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()},Directive:function(e){this.print(e.value),this.semicolon()},DirectiveLiteral:function(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let{value:n}=e;if(A3.test(n))if(A2.test(n))throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");else this.token(`'${n}'`);else this.token(`"${n}"`)},DoExpression:function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},DoWhileStatement:function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},EmptyStatement:function(){this.semicolon(!0)},EmptyTypeAnnotation:function(){this.word("empty")},EnumBooleanBody:function(e){let{explicitType:t}=e;A$(this,"boolean",t),AU(this,e)},EnumBooleanMember:function(e){Aq(this,e)},EnumDeclaration:function(e){let{id:t,body:n}=e;this.word("enum"),this.space(),this.print(t),this.print(n)},EnumDefaultedMember:function(e){let{id:t}=e;this.print(t),this.tokenChar(44)},EnumNumberBody:function(e){let{explicitType:t}=e;A$(this,"number",t),AU(this,e)},EnumNumberMember:function(e){Aq(this,e)},EnumStringBody:function(e){let{explicitType:t}=e;A$(this,"string",t),AU(this,e)},EnumStringMember:function(e){Aq(this,e)},EnumSymbolBody:function(e){A$(this,"symbol",!0),AU(this,e)},ExistsTypeAnnotation:function(){this.tokenChar(42)},ExportAllDeclaration:AA,ExportDefaultDeclaration:function(e){AP(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=4;let t=e.declaration;this.print(t),Ak(t)||this.semicolon()},ExportDefaultSpecifier:function(e){this.print(e.exported)},ExportNamedDeclaration:function(e){if(AP(this,e),this.word("export"),this.space(),e.declaration){let t=e.declaration;this.print(t),Ak(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());let t=e.specifiers.slice(0),n=!1;for(;;){let e=t[0];if(AS(e)||AT(e))n=!0,this.print(t.shift()),t.length&&(this.tokenChar(44),this.space());else break}let r=!1;!t.length&&(t.length||n)||(r=!0,this.tokenChar(123),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),e.attributes?.length?(this.print(e.source,!0),this.space(),Aw.call(this,e,r)):this.print(e.source)),this.semicolon()}},ExportNamespaceSpecifier:function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},ExportSpecifier:function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},ExpressionStatement:function(e){this.tokenContext|=1,this.print(e.expression),this.semicolon()},File:function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},ForInStatement:function(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=160,this.print(e.left),this.tokenContext=0,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)},ForOfStatement:function(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=64,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)},ForStatement:function(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=144,this.print(e.init),this.tokenContext=0,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)},FunctionDeclaration:Ai,FunctionExpression:Ai,FunctionTypeAnnotation:function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let n=t?.type;null!=n&&("ObjectTypeCallProperty"===n||"ObjectTypeInternalSlot"===n||"DeclareFunction"===n||"ObjectTypeProperty"===n&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},FunctionTypeParam:function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},GenericTypeAnnotation:AK,Identifier:function(e){this._buf._map&&e.loc?.identifierName&&e.loc.identifierName!==e.name&&this.sourceIdentifierName(e.loc.identifierName),this.word(this.tokenMap?A_:e.name)},IfStatement:function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&w2(function e(t){let{body:n}=t;return!1===w3(n)?t:e(n)}(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},Import:function(){this.word("import")},ImportAttribute:function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},ImportDeclaration:function(e){this.word("import"),this.space();let t="type"===e.importKind||"typeof"===e.importKind;t?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let n=e.specifiers.slice(0),r=!!n.length;for(;r;){let e=n[0];if(Av(e)||AE(e))this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}let i=!1;n.length?(i=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):t&&!r&&(i=!0,this.tokenChar(123),this.tokenChar(125)),(r||t)&&(this.space(),this.word("from"),this.space()),e.attributes?.length?(this.print(e.source,!0),this.space(),Aw.call(this,e,i)):this.print(e.source),this.semicolon()},ImportDefaultSpecifier:function(e){this.print(e.local)},ImportExpression:function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},ImportNamespaceSpecifier:function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},ImportSpecifier:function(e){("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},IndexedAccessType:function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},InferredPredicate:function(){this.tokenChar(37),this.word("checks")},InterfaceDeclaration:Az,InterfaceExtends:AK,InterfaceTypeAnnotation:function(e){this.word("interface"),e.extends?.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},InterpreterDirective:function(e){this.token(`#!${e.value}`),this._newline()},IntersectionTypeAnnotation:function(e){this.printJoin(e.types,void 0,void 0,AW)},JSXAttribute:function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},JSXClosingElement:function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},JSXClosingFragment:function(){this.token("</"),this.tokenChar(62)},JSXElement:function(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){for(let t of(this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingElement)}},JSXEmptyExpression:function(){this.printInnerComments()},JSXExpressionContainer:function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},JSXFragment:function(e){for(let t of(this.print(e.openingFragment),this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingFragment)},JSXIdentifier:function(e){this.word(e.name)},JSXMemberExpression:function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},JSXNamespacedName:function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},JSXOpeningElement:function(e){this.tokenChar(60),this.print(e.name),this.print(e.typeArguments),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,A4)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},JSXOpeningFragment:function(){this.tokenChar(60),this.tokenChar(62)},JSXSpreadAttribute:function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},JSXSpreadChild:function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},JSXText:function(e){let t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)},LabeledStatement:function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},LogicalExpression:w0,MemberExpression:function(e){if(this.print(e.object),!e.computed&&wH(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(wX(e.property)&&"number"==typeof e.property.value&&(t=!0),t){let t=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=t}else this.tokenChar(46),this.print(e.property)},MetaProperty:function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},MixedTypeAnnotation:function(){this.word("mixed")},ModuleExpression:function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},NewExpression:function(e,t){this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!wW(t,{callee:e})&&!wH(t)&&!wY(t)||(this.print(e.typeArguments),(0!==e.arguments.length||!this.tokenMap||this.tokenMap.endMatches(e,")"))&&wQ.call(this,e))},NullLiteral:function(){this.word("null")},NullLiteralTypeAnnotation:function(){this.word("null")},NullableTypeAnnotation:function(e){this.tokenChar(63),this.print(e.typeAnnotation)},NumberLiteralTypeAnnotation:AM,NumberTypeAnnotation:function(){this.word("number")},NumericLiteral:AM,ObjectExpression:AO,ObjectMethod:function(e){this.printJoin(e.decorators),At.call(this,e),this.space(),this.print(e.body)},ObjectPattern:AO,ObjectProperty:function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(AC(e.value)&&AI(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&AI(e.key)&&AI(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},ObjectTypeAnnotation:function(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},ObjectTypeCallProperty:function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},ObjectTypeIndexer:function(e){e.static&&(this.word("static"),this.space()),AJ.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},ObjectTypeInternalSlot:function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},ObjectTypeProperty:function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),("get"===e.kind||"set"===e.kind)&&(this.word(e.kind),this.space()),AJ.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},ObjectTypeSpreadProperty:function(e){this.token("..."),this.print(e.argument)},OpaqueType:AY,OptionalCallExpression:function(e){this.print(e.callee),e.optional&&this.token("?."),this.print(e.typeArguments),wQ.call(this,e)},OptionalIndexedAccessType:function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},OptionalMemberExpression:function(e){let{computed:t}=e,{optional:n,property:r}=e;if(this.print(e.object),!t&&wH(r))throw TypeError("Got a MemberExpression for MemberExpression property");wX(r)&&"number"==typeof r.value&&(t=!0),n&&this.token("?."),t?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(n||this.tokenChar(46),this.print(r))},ParenthesizedExpression:function(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)},Placeholder:function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},PrivateName:function(e){this.tokenChar(35),this.print(e.id)},Program:function(e){this.printInnerComments(!1);let t=e.directives?.length;if(t){let n=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,n),e.directives[t-1].trailingComments?.length||this.newline(n)}this.printSequence(e.body)},QualifiedTypeIdentifier:function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},RegExpLiteral:function(e){this.word(`/${e.pattern}/${e.flags}`,!1)},RestElement:AL,ReturnStatement:function(e){this.word("return"),w5(this,e.argument)},SequenceExpression:function(e){this.printList(e.expressions)},SpreadElement:AL,StaticBlock:function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},StringLiteral:AF,StringLiteralTypeAnnotation:AF,StringTypeAnnotation:function(){this.word("string")},Super:function(){this.word("super")},SwitchCase:function(e){e.test?(this.word("case"),this.space(),this.print(e.test)):this.word("default"),this.tokenChar(58),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},SwitchStatement:function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},SymbolTypeAnnotation:function(){this.word("symbol")},TSAnyKeyword:function(){this.word("any")},TSArrayType:function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},TSAsExpression:function(e){let{expression:t,typeAnnotation:n}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(n)},TSBigIntKeyword:function(){this.word("bigint")},TSBooleanKeyword:function(){this.word("boolean")},TSCallSignatureDeclaration:function(e){Am.call(this,e),Au(this,e)},TSClassImplements:Ah,TSConditionalType:function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},TSConstructSignatureDeclaration:function(e){this.word("new"),this.space(),Am.call(this,e),Au(this,e)},TSConstructorType:function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),Ap.call(this,e)},TSDeclareFunction:function(e,t){e.declare&&(this.word("declare"),this.space()),Ar.call(this,e,t,!1),this.semicolon()},TSDeclareMethod:function(e){A1.call(this,e,!1),this.semicolon()},TSEnumBody:function(e){Ag(this,e,()=>this.printList(e.members,this.shouldPrintTrailingComma("}")??!1,!0,!0,void 0,!0))},TSEnumDeclaration:function(e){let{declare:t,const:n,id:r}=e;t&&(this.word("declare"),this.space()),n&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),this.print(e.body)},TSEnumMember:function(e){let{id:t,initializer:n}=e;this.print(t),n&&(this.space(),this.tokenChar(61),this.space(),this.print(n))},TSExportAssignment:function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},TSExternalModuleReference:function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},TSFunctionType:function(e){Ap.call(this,e)},TSImportEqualsDeclaration:function(e){let{id:t,moduleReference:n}=e;this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},TSImportType:function(e){let{qualifier:t,options:n}=e;this.word("import"),this.tokenChar(40),this.print(e.source),n&&(this.tokenChar(44),this.print(n)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let r=e.typeArguments;r&&this.print(r)},TSIndexSignature:function(e){let{readonly:t,static:n}=e;n&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),w7.call(this,e.parameters,93),this.print(e.typeAnnotation),Au(this,e)},TSIndexedAccessType:function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},TSInferType:function(e){this.word("infer"),this.print(e.typeParameter)},TSInstantiationExpression:function(e){this.print(e.expression),this.print(e.typeArguments)},TSInterfaceBody:function(e){Ag(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))},TSInterfaceDeclaration:function(e){let{declare:t,id:n,typeParameters:r,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(n),this.print(r),i?.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(s)},TSInterfaceHeritage:Ah,TSIntersectionType:function(e){Ad(this,e,"&")},TSIntrinsicKeyword:function(){this.word("intrinsic")},TSLiteralType:function(e){this.print(e.literal)},TSMappedType:function(e){let{nameType:t,optional:n,readonly:r,typeAnnotation:i}=e;this.tokenChar(123);let s=this.enterDelimited();this.space(),r&&(Af(this,r),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.key.name),this.space(),this.word("in"),this.space(),this.print(e.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),n&&(Af(this,n),this.tokenChar(63)),i&&(this.tokenChar(58),this.space(),this.print(i,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=s,this.tokenChar(125)},TSMethodSignature:function(e){let{kind:t}=e;("set"===t||"get"===t)&&(this.word(t),this.space()),Ac.call(this,e),Am.call(this,e),Au(this,e)},TSModuleBlock:function(e){Ag(this,e,()=>this.printSequence(e.body,!0,!0))},TSModuleDeclaration:function(e){let{declare:t,kind:n}=e;(t&&(this.word("declare"),this.space()),"global"!==n&&(this.word(n),this.space()),this.print(e.id),e.body)?(this.space(),this.print(e.body)):this.semicolon()},TSNamedTupleMember:function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},TSNamespaceExportDeclaration:function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},TSNeverKeyword:function(){this.word("never")},TSNonNullExpression:function(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)},TSNullKeyword:function(){this.word("null")},TSNumberKeyword:function(){this.word("number")},TSObjectKeyword:function(){this.word("object")},TSOptionalType:function(e){this.print(e.typeAnnotation),this.tokenChar(63)},TSParameterProperty:function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),Ae.call(this,e.parameter)},TSParenthesizedType:function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},TSPropertySignature:function(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),Ac.call(this,e),this.print(e.typeAnnotation),Au(this,e)},TSQualifiedName:function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},TSRestType:function(e){this.token("..."),this.print(e.typeAnnotation)},TSSatisfiesExpression:function(e){let{expression:t,typeAnnotation:n}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(n)},TSStringKeyword:function(){this.word("string")},TSSymbolKeyword:function(){this.word("symbol")},TSTemplateLiteralType:function(e){wz.call(this,e,e.types)},TSThisType:function(){this.word("this")},TSTupleType:function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},TSTypeAliasDeclaration:function(e){let{declare:t,id:n,typeParameters:r,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(n),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},TSTypeAnnotation:function(e,t){this.token(("TSFunctionType"===t.type||"TSConstructorType"===t.type)&&t.returnType===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},TSTypeAssertion:function(e){let{typeAnnotation:t,expression:n}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(n)},TSTypeLiteral:function(e){Ag(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))},TSTypeOperator:function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},TSTypeParameter:function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},TSTypeParameterDeclaration:Al,TSTypeParameterInstantiation:Al,TSTypePredicate:function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},TSTypeQuery:function(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeArguments;t&&this.print(t)},TSTypeReference:function(e){let t=e.typeArguments;this.print(e.typeName,!!t),this.print(t)},TSUndefinedKeyword:function(){this.word("undefined")},TSUnionType:function(e){Ad(this,e,"|")},TSUnknownKeyword:function(){this.word("unknown")},TSVoidKeyword:function(){this.word("void")},TaggedTemplateExpression:function(e){this.print(e.tag),this.print(e.typeArguments),this.print(e.quasi)},TemplateElement:function(){throw Error("TemplateElement printing is handled in TemplateLiteral")},TemplateLiteral:function(e){wz.call(this,e,e.expressions)},ThisExpression:function(){this.word("this")},ThisTypeAnnotation:function(){this.word("this")},ThrowStatement:function(e){this.word("throw"),w5(this,e.argument)},TopicReference:function(){let{topicToken:e}=this.format;if(Aj.has(e))this.token(e);else{let t=JSON.stringify(e),n=Array.from(Aj,e=>JSON.stringify(e));throw Error(`The "topicToken" generator option must be one of ${n.join(", ")} (${t} received instead).`)}},TryStatement:function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},TupleTypeAnnotation:function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},TypeAlias:AX,TypeAnnotation:function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=8:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},TypeCastExpression:function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},TypeParameter:function(e){AJ.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},TypeParameterDeclaration:AH,TypeParameterInstantiation:AH,TypeofTypeAnnotation:function(e){this.word("typeof"),this.space(),this.print(e.argument)},UnaryExpression:function(e){let{operator:t}=e,n=t.charCodeAt(0);n>=97&&n<=122?(this.word(t),this.space()):this.tokenChar(n),this.print(e.argument)},UnionTypeAnnotation:function(e){this.printJoin(e.types,void 0,void 0,AG)},UpdateExpression:function(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))},V8IntrinsicIdentifier:function(e){this.tokenChar(37),this.word(e.name)},VariableDeclaration:function(e,t){e.declare&&(this.word("declare"),this.space());let{kind:n}=e;switch(n){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(n)}this.space();let r=!1;if(!w1(t)){for(let t of e.declarations)if(t.init){r=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,r?w8:void 0),null!=t)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()},VariableDeclarator:function(e){this.print(e.id),e.definite&&this.tokenChar(33),w4(e.id)||this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},Variance:function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},VoidPattern:function(){this.word("void")},VoidTypeAnnotation:function(){this.word("void")},WhileStatement:function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)},WithStatement:function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)},YieldExpression:function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},_classMethodHead:A1,_functionHead:Ar,_getRawIdentifier:AN,_interfaceish:AV,_methodHead:At,_param:Ae,_parameters:w7,_params:w9,_predicate:An,_printAttributes:Aw,_printTemplate:wz,_shouldPrintArrowParamsParens:As,_shouldPrintDecoratorsBeforeExport:wZ,_tsPrintClassMemberModifiers:Ay,_variance:AJ},Symbol.toStringTag,{value:"Module"}),A8=new Map,A6=0;for(let e of Object.keys(A5).sort())e.startsWith("_")||A8.set(e,[A5[e],A6++,void 0]);var{VISITOR_KEYS:A9}=tc;for(let e of Object.keys(wJ)){let t=wJ[e];A8.has(e)&&(A8.get(e)[2]=t)}function A7(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&A7(e.object);default:return!1}}var{traverseFast:Pe,VISITOR_KEYS:Pt}=tc,Pn=class{_tokens;_source;_nodesToTokenIndexes=new Map;_nodesOccurrencesCountCache=new Map;_tokensCache=new Map;constructor(e,t,n){this._tokens=t,this._source=n,Pe(e,e=>{let t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){let n=this._nodesToTokenIndexes.get(e);if(n)for(let e=0;e<n.length;e++){let r=n[e],i=this._tokens[r];if(t(i,r))return i}return null}findLastIndex(e,t){let n=this._nodesToTokenIndexes.get(e);if(n)for(let e=n.length-1;e>=0;e--){let r=n[e];if(t(this._tokens[r],r))return r}return -1}findMatching(e,t,n=0){let r=this._nodesToTokenIndexes.get(e);if(r){"number"==typeof t&&(t=String.fromCharCode(t));let i=0,s=n;if(s>1){let r=this._nodesOccurrencesCountCache.get(e);r?.test===t&&r.count<s&&(i=r.i+1,n-=r.count+1)}for(;i<r.length;i++){let a=this._tokens[r[i]];if(this.matchesOriginal(a,t)){if(0===n)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i}),a;n--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){let n=this._nodesToTokenIndexes.get(e);if(!n)return!1;let r=this._tokens[n[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){let n=this._nodesToTokenIndexes.get(e);if(!n)return!1;let r=this._tokens[n[n.length-1]];return r.end===e.end&&this.matchesOriginal(r,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];let{first:t,last:n}=this._findTokensOfNode(e,0,this._tokens.length-1),r=t,i=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}for(let t of Pt[e.type]){let n=e[t];n&&(Array.isArray(n)?yield*n:yield n)}}(e);("ExportNamedDeclaration"===e.type||"ExportDefaultDeclaration"===e.type)&&e.declaration?.type==="ClassDeclaration"&&i.next();let s=[];for(let e of i){if(null==e||null==e.start||null==e.end)continue;let t=this._findTokensOfNode(e,r,n),i=t.first;for(let e=r;e<i;e++)s.push(e);r=t.last+1}for(let e=r;e<=n;e++)s.push(e);return s}_findTokensOfNode(e,t,n){let r=this._tokensCache.get(e);if(r)return r;let i=this._findFirstTokenOfNode(e.start,t,n),s=this._findLastTokenOfNode(e.end,i,n);return this._tokensCache.set(e,{first:i,last:s}),{first:i,last:s}}_findFirstTokenOfNode(e,t,n){for(;t<=n;){let r=n+t>>1;if(e<this._tokens[r].start)n=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,n){for(;t<=n;){let r=n+t>>1;if(e<this._tokens[r].end)n=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return n}},{isExpression:Pr,isFunction:Pi,isStatement:Ps,isClassBody:Pa,isTSInterfaceBody:Po,isTSEnumMember:Pl}=tc,Pu=/e/i,Pc=/\.0+$/,Pp=/[\n\r\u2028\u2029]/,Pd=/[\n\r\u2028\u2029]|\*\//;function Pf(e){return"CommentLine"===e.type||Pp.test(e.value)}var Ph=class{constructor(e,t,n=null,r=null){this.format=e,this._tokens=n,this._originalCode=r,this._indentRepeat=e.indent.style.length,this._inputMap=t?._inputMap||null,this._buf=new wA(t,e.indent.style[0]);let{preserveFormat:i,compact:s,concise:a,retainLines:o,retainFunctionParens:l}=e;i&&(this._flags|=1),s&&(this._flags|=2),a&&(this._flags|=4),o&&(this._flags|=8),l&&(this._flags|=16),(e.auxiliaryCommentBefore||e.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let e=this._noLineTerminatorAfterNode;return null!==e&&(this._noLineTerminatorAfterNode=null),e}tokenContext=0;_tokens=null;_originalCode=null;_currentNode=null;_currentTypeId=null;_indent=0;_indentRepeat=0;_insideAux=!1;_noLineTerminator=!1;_noLineTerminatorAfterNode=null;_printAuxAfterOnNextUserNode=!1;_printedComments=new Set;_lastCommentLine=0;_innerCommentsState=0;_flags=0;tokenMap=null;_boundGetRawIdentifier=null;generate(e){return this.format.preserveFormat&&(this.tokenMap=new Pn(e,this._tokens,this._originalCode),this._boundGetRawIdentifier=AN.bind(this)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(e=this._flags){7&e||(this._indent+=this._indentRepeat)}dedent(e=this._flags){7&e||(this._indent-=this._indentRepeat)}_printSemicolonBeforeNextNode=-1;_printSemicolonBeforeNextToken=-1;semicolon(e=!1){let t=this._flags;if(32&t&&this._maybeAddAuxComment(),1&t){let e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(!(3&this._flags))if(e)this._space();else{let e=this.getLastChar(!0);0!==e&&32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=128,this._maybePrintInnerComments(e);let n=this._flags;32&n&&this._maybeAddAuxComment(),1&n&&this._catchUpToCurrentToken(e);let r=this.getLastChar();(-2===r||-3===r||47===r&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this.setLastChar(-3),this._noLineTerminator=t}number(e,t){this.word(e),!Number.isInteger(t)||function(e){if(e.length>2&&48===e.charCodeAt(0)){let t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)||Pu.test(e)||Pc.test(e)||46===e.charCodeAt(e.length-1)||this.setLastChar(-2)}token(e,t=!1,n=0,r=!1){this.tokenContext&=128,this._maybePrintInnerComments(e,n);let i=this._flags;if(32&i&&this._maybeAddAuxComment(),1&i&&this._catchUpToCurrentToken(e,n),r){let t=e.charCodeAt(0);((45===t&&"--"===e||61===t)&&33===this.getLastChar()||43===t&&43===this.getLastChar()||45===t&&45===this.getLastChar()||46===t&&-2===this.getLastChar())&&this._space()}this._append(e,t),this._noLineTerminator=!1}tokenChar(e,t=0){this.tokenContext&=128,this._maybePrintInnerComments(e,t);let n=this._flags;32&n&&this._maybeAddAuxComment(),1&n&&this._catchUpToCurrentToken(e,t),(43===e&&43===this.getLastChar()||45===e&&45===this.getLastChar()||46===e&&-2===this.getLastChar())&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t=this._flags){if(!(e<=0)&&!(10&t)){if(4&t)return void this.space();e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar(!0)===e}getLastChar(e){return this._buf.getLastChar(e)}setLastChar(e){this._buf._last=e}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,n){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,n))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;let n=this._buf._sourcePosition;n.identifierNamePos=t,n.identifierName=e}_space(){this._queue(32)}_newline(){32===this._buf._queuedChar&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(e,t=0){let n=this.tokenMap.findMatching(this._currentNode,e,t);n&&this._catchUpTo(n.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(),this._buf.append(e,t)}_appendChar(e,t){t||this._maybeIndent(),this._buf.appendChar(e)}_queue(e){this._buf.queue(e),this.setLastChar(-1)}_maybeIndent(){let e=this._shouldIndent();e>0&&this._buf._appendChar(-1,e,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(e){if(!this.format.retainLines)return;let t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){let n=this._flags;if((1&n)==0){8&n&&t?.[e]&&this.catchUp(t[e].line);return}let r=t?.[e];null!=r&&this._catchUpTo(r)}_catchUpTo({line:e,column:t,index:n}){let r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();let i=r>0?t:t-this._buf.getCurrentColumn();if(i>0){let r=this._originalCode?this._originalCode.slice(n-i,n).replace(/[^\t\v\f\uFEFF\p{Space_Separator}]/gu," "):" ".repeat(i);this._buf.append(r,!1,!0),this._buf.setSourcePosition(e,t),this.setLastChar(32)}}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,n=!1,r){let i,s;if(!e)return;this._innerCommentsState=0;let{type:a,loc:o,extra:l}=e,u=this._flags,c=!1;e._compact&&(this._flags|=4,c=!0);let p=A8.get(a);if(void 0===p)throw ReferenceError(`unknown node of type ${JSON.stringify(a)} with constructor ${JSON.stringify(e.constructor.name)}`);let[d,f,h]=p,m=this._currentNode,y=this._currentTypeId;this._currentNode=e,this._currentTypeId=f,1&u&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode),32&u&&(i=this._insideAux,this._insideAux=null==o,this._maybeAddAuxComment(this._insideAux&&!i));let g=0;n&&(128&(g=this.tokenContext)?this.tokenContext=0:g=0);let b=null!=l&&l.parenthesized,x=b&&1&u||b&&16&u&&72===f||m&&(function(e,t,n){switch(n){case 113:if(t.callee===e){let t=e;for(;;)switch(t.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":t=t.object;break;case"TaggedTemplateExpression":t=t.tag;break;case"TSInstantiationExpression":case"TSNonNullExpression":t=t.expression;break;default:return!1}return}break;case 220:if(t.tag===e){let t=e;for(;;)switch(t.type){case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"TSInstantiationExpression":case"TSNonNullExpression":t=t.expression;break;default:return!1}return}break;case 43:return!A7(e)&&!("CallExpression"===e.type&&A7(e.callee))&&"ParenthesizedExpression"!==e.type}return!1}(e,m,y)||null!=h&&h(e,m,y,this.tokenContext,1&u?this._boundGetRawIdentifier:void 0));if(!x&&b&&e.leadingComments?.length&&"CommentBlock"===e.leadingComments[0].type)switch(y){case 66:case 241:case 6:case 141:break;case 18:case 131:case 113:if(m.callee!==e)break;default:x=!0}let S=!1;!x&&this._noLineTerminator&&(e.leadingComments?.some(Pf)||8&u&&o&&o.start.line>this._buf.getCurrentLine())&&(x=!0,S=!0),!x&&(t||=!!m&&this._noLineTerminatorAfterNode===m&&function(e,t){let n=A9[e.type];for(let r=n.length-1;r>=0;r--){let i=e[n[r]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)break}return!1}(m,e))&&(e.trailingComments?.some(Pf)?Pr(e)&&(x=!0):(s=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)),x&&(this.tokenChar(40),S&&this.indent(),this._innerCommentsState=0,n||(g=this.tokenContext),128&g&&(this.tokenContext=0),s=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(e,m),this.exactSource(137===f||67===f?null:o,d.bind(this,e,m)),x?(this._printTrailingComments(e,m),S&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,m)):this._printTrailingComments(e,m,r),g&&(this.tokenContext=g),this._currentNode=m,this._currentTypeId=y,c&&(this._flags=u),32&u&&(this._insideAux=i),null!=s&&(this._noLineTerminatorAfterNode=s),this._innerCommentsState=0}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let t=e.extra;if(t?.raw!=null&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,n,r,i,s,a){if(!e?.length)return;let o=this._flags;if(null==n&&8&o){let t=e[0].loc?.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(n=!0)}n&&this.indent(o);let l=e.length;for(let n=0;n<l;n++){let u=e[n];if(u&&(t&&0===n&&this._buf.hasContent()&&this.newline(1,o),this.print(u,!1,s,a||0),null!=r&&(n<l-1?r.call(this,n,!1):i&&r.call(this,n,!0)),t))if(n+1===l)this.newline(1,o);else{let t=this._lastCommentLine;if(t>0){let r=(e[n+1].loc?.start.line||0)-t;if(r>=0){this.newline(r||1,o);continue}}this.newline(1,o)}}n&&this.dedent(o)}printAndIndentOnComments(e){let t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){"EmptyStatement"!==e.type&&this.space(),this.print(e)}_printTrailingComments(e,t,n){let{innerComments:r,trailingComments:i}=e;r?.length&&this._printComments(2,r,e,t,n),i?.length?this._printComments(2,i,e,t,n):this._lastCommentLine=0}_printLeadingComments(e,t){let n=e.leadingComments;n?.length&&this._printComments(0,n,e,t)}_maybePrintInnerComments(e,t){let n=this._innerCommentsState;switch(3&n){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((4&n)>0,this.tokenMap?.findMatching(this._currentNode,e,t))}}printInnerComments(e=!0,t){let n=this._currentNode,r=n.innerComments;if(!r?.length){this._innerCommentsState=2;return}let i=this.endsWith(32);switch(e&&this.indent(),this._printComments(1,r,n,void 0,void 0,t)){case 2:this._innerCommentsState=2;case 1:i&&this.space()}e&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(e,t,n,r){this.printJoin(e,!0,t??!1,void 0,void 0,n,r)}printList(e,t,n,r,i,s){this.printJoin(e,n,r,i??Pm,t,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,"number"==typeof e?String.fromCharCode(e):e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_shouldPrintComment(e,t){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&Pd.test(e.value))return 2;if(t&&this.tokenMap){let n=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(n&&n.start>t.start)return 2}return+(this._printedComments.add(e),!!this.format.shouldPrintComment(e.value))}_printComment(e,t){let n,r=this._noLineTerminator,i="CommentBlock"===e.type,s=i&&1!==t&&!r;switch(s&&this._buf.hasContent()&&2!==t&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}if(i){if(n=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){let t=e.loc?.start.column;if(t){let e=RegExp("\\n\\s{1,"+t+"}","g");n=n.replace(e,"\n")}if(4&this._flags)n=n.replace(/\n(?!$)/g,`
|
|
17
|
+
`);else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(e+=this._indent),n=n.replace(/\n(?!$)/g,`
|
|
18
|
+
${" ".repeat(e)}`)}}}else n=r?`/*${e.value}*/`:`//${e.value}`;this.source("start",e.loc),this._append(n,i),i||r||this._newline(),s&&3!==t&&this.newline(1)}_printComments(e,t,n,r,i=0,s){let a=n.loc,o=t.length,l=!!a,u=l?a.start.line:0,c=l?a.end.line:0,p=0,d=0,{_noLineTerminator:f,_flags:h}=this;for(let a=0;a<o;a++){let m=t[a],y=this._shouldPrintComment(m,s);if(2===y)return+(0!==a);if(l&&m.loc&&1===y){let t=m.loc.start.line,n=m.loc.end.line;if(0===e){let e=0;if(0===a?this._buf.hasContent()&&("CommentLine"===m.type||t!==n)&&(e=d=1):e=t-p,p=n,e>0&&!f&&this.newline(e,h),this._printComment(m,1),a+1===o){let e=Math.max(u-p,d);e>0&&!f&&this.newline(e,h),p=u}}else if(1===e){let e=t-(0===a?u:p);if(p=n,e>0&&!f&&this.newline(e,h),this._printComment(m,1),a+1===o){let e=Math.min(1,c-p);e>0&&!f&&this.newline(e,h),p=c}}else{let e=t-(0===a?c-i:p);p=n,e>0&&!f&&this.newline(e,h),this._printComment(m,1)}}else{if(l=!1,1!==y)continue;if(1===o){let t=m.loc?m.loc.start.line===m.loc.end.line:!Pp.test(m.value),i=t&&!Ps(n)&&!Pa(r)&&!Po(r)&&!Pl(n);0===e?this._printComment(m,i&&"ObjectExpression"!==n.type||t&&Pi(r)&&r.body===n?1:0):i&&2===e?this._printComment(m,1):this._printComment(m,0)}else 1!==e||"ObjectExpression"===n.type&&n.properties.length>1||"ClassBody"===n.type||"TSInterfaceBody"===n.type?this._printComment(m,0):this._printComment(m,0===a?2:3*(a===o-1))}}return 2===e&&l&&p&&(this._lastCommentLine=p),2}};function Pm(e,t){this.tokenChar(44,e),t||this.space()}function Py(e,t={},n){return new Ph(function(e,t,n){if(t.experimental_preserveFormat){if("string"!=typeof e)throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(n.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:{quotes:"double",wrap:!0,minimal:!0,...t.jsescOption},topicToken:t.topicToken};r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.includes("@license")||e.includes("@preserve")),"auto"===r.compact&&(r.compact="string"==typeof e&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(r.compact||r.preserveFormat)&&(r.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=r;return i&&!a(i)&&(r.auxiliaryCommentBefore=void 0),s&&!a(s)&&(r.auxiliaryCommentAfter=void 0),r}(n,t,e),t.sourceMaps?new wk(t,n):null,e.tokens,"string"==typeof n?n:null).generate(e)}var Pg=[],Pb=[],Px={};try{tt.env.DEBUG,Px={}}catch{}var PS=[],PT={useColors:void 0,formatArgs:function(){},formatters:{o(e){return this.inspectOpts.colors=this.useColors,inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},O(e){return this.inspectOpts.colors=this.useColors,inspect(e,this.inspectOpts)}},inspectOpts:{},log:function(...e){tt.stderr.write(`${formatWithOptions(this.inspectOpts,...e)}
|
|
19
|
+
`)},humanize:function(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}};for(let e of(Pg=[],Pb=[],(Px.DEBUG||"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===e[0]?Pb.push(e.slice(1)):Pg.push(e);var Pv=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],PE=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"],Pk=Object.defineProperty({__proto__:null,BindingIdentifier:["Identifier"],BlockScoped:["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],ExistentialTypeParam:["ExistsTypeAnnotation"],Expression:["Expression"],Flow:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],ForAwaitStatement:["ForOfStatement"],Generated:null,NumericLiteralTypeAnnotation:["NumberLiteralTypeAnnotation"],Pure:null,Referenced:null,ReferencedIdentifier:["Identifier","JSXIdentifier"],ReferencedMemberExpression:["MemberExpression"],RestProperty:["RestElement"],Scope:["Scopable","Pattern"],SpreadProperty:["RestElement"],Statement:["Statement"],User:null,Var:["VariableDeclaration"]},Symbol.toStringTag,{value:"Module"}),Pw=class{constructor(e,t){this.state=t,this.opts=e}queue=null;priorityQueue=null;maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}},{VISITOR_KEYS:PA}=tc;function PP(e,t){e.queue=t,e.priorityQueue=[];let n=new Set,r=!1,i=0;for(;i<t.length;){let s=t[i];if(i++,Ln.call(s),(0===s.contexts.length||s.contexts[s.contexts.length-1]!==e)&&Li.call(s,e),null===s.key)continue;let{node:a}=s;if(!n.has(a)){if(a&&n.add(a),function(e,t){let n=t.node;if(!n)return!1;let r=e.opts,i=r.denylist;return!(i?.includes(n.type)||r.shouldSkip?.(t))&&(t.shouldSkip||N7.call(t,r.enter)||t.node&&N7.call(t,r[n.type]?.enter)||(t.shouldStop=PC(t.node,r,t.scope,e.state,t,t.skipKeys),t.node&&N7.call(t,r.exit)||t.node&&N7.call(t,r[n.type]?.exit)),t.shouldStop)}(e,s)){r=!0;break}if(e.priorityQueue.length&&(r=PP(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,r))break}}for(let e=0;e<i;e++)Lr.call(t[e]);return e.queue=null,r}function PC(e,t,n,r,i,s,a){let o=PA[e.type];if(!o?.length)return!1;let l=new Pw(t,r);if(a)return!s?.[i.parentKey]&&PP(l,[i]);let u=null==i?"Program"===e.type||"File"===e.type?new Ll:void 0:i.hub;for(let t of o){if(s?.[t])continue;let n=e[t];if(n){if(Array.isArray(n)){if(!n.length)continue;let r=[];for(let s=0;s<n.length;s++){let a=N9.get({parentPath:i,parent:e,container:n,key:s,listKey:t,hub:u});r.push(a)}if(PP(l,r))return!0}else if(PP(l,[N9.get({parentPath:i,parent:e,container:e,key:t,listKey:null,hub:u})]))return!0}}return!1}var{isBinding:PI,isBlockScoped:P_,isExportDeclaration:PN,isExpression:PL,isFlow:PO,isForStatement:PD,isForXStatement:PM,isIdentifier:PF,isImportDeclaration:PB,isImportSpecifier:Pj,isJSXIdentifier:PR,isJSXMemberExpression:P$,isMemberExpression:PU,isRestElement:Pq,isReferenced:PK,isScope:PV,isStatement:PJ,isVar:Pz,isVariableDeclaration:PW,react:PX,isForOfStatement:PH}=tc,{isCompatTag:PY}=PX,PG=Object.defineProperty({__proto__:null,isBindingIdentifier:function(){let{node:e,parent:t}=this,n=this.parentPath.parent;return PF(e)&&PI(e,t,n)},isBlockScoped:function(){return P_(this.node)},isExpression:function(){return this.isIdentifier()?this.isReferencedIdentifier():PL(this.node)},isFlow:function(){let{node:e}=this;return!!PO(e)||(PB(e)?"type"===e.importKind||"typeof"===e.importKind:PN(e)?"type"===e.exportKind:!!Pj(e)&&("type"===e.importKind||"typeof"===e.importKind))},isForAwaitStatement:function(){return PH(this.node,{await:!0})},isGenerated:function(){return!this.isUser()},isPure:function(e){return this.scope.isPure(this.node,e)},isReferenced:function(){return PK(this.node,this.parent)},isReferencedIdentifier:function(e){let{node:t,parent:n}=this;return PF(t,e)?PK(t,n,this.parentPath.parent):!!PR(t,e)&&!(!P$(n)&&PY(t.name))&&PK(t,n,this.parentPath.parent)},isReferencedMemberExpression:function(){let{node:e,parent:t}=this;return PU(e)&&PK(e,t)},isRestProperty:function(){return Pq(this.node)&&this.parentPath?.isObjectPattern()},isScope:function(){return PV(this.node,this.parent)},isSpreadProperty:function(){return Pq(this.node)&&this.parentPath?.isObjectExpression()},isStatement:function(){let{node:e,parent:t}=this;return!(!PJ(e)||PW(e)&&(PM(t,{left:e})||PD(t,{init:e})))&&!0},isUser:function(){return!!this.node?.loc},isVar:function(){return Pz(this.node)}},Symbol.toStringTag,{value:"Module"}),{DEPRECATED_KEYS:PQ,DEPRECATED_ALIASES:PZ,FLIPPED_ALIAS_KEYS:P0,TYPES:P1,__internal__deprecationWarning:P2}=tc;function P3(e){return e?._exploded}function P4(e){if(P3(e))return e;if(e._exploded=!0,Object.hasOwn(e,"blacklist")){if(!Object.hasOwn(e,"denylist"))throw Error("The 'blacklist' visitor option has been renamed to 'denylist'. Please update your configuration.");delete e.blacklist}for(let t of Object.keys(e)){if(Ce(t))continue;let n=t.split("|");if(1===n.length)continue;let r=e[t];for(let i of(delete e[t],n))e[i]=r}for(let t of(P5(e),delete e.__esModule,function(e){for(let t of Object.keys(e)){if(Ce(t))continue;let n=e[t];"function"==typeof n&&(e[t]={enter:n})}}(e),P7(e),Object.keys(e))){if(Ce(t)||!(t in Pk))continue;let n=e[t];for(let e of Object.keys(n))n[e]=function(e,t){let n=PG[`is${e}`],r=function(e){if(n.call(e))return t.apply(this,arguments)};return r.toString=()=>t.toString(),r}(t,n[e]);delete e[t];let r=Pk[t];if(null!==r)for(let t of r)e[t]??={},Ct(e[t],n);else Ct(e,n)}for(let t of Object.keys(e)){if(Ce(t))continue;let n=P0[t];if(t in PQ){let e=PQ[t];P2(t,e,"Visitor "),n=[e]}else if(t in PZ){let e=PZ[t];P2(t,e,"Visitor "),n=P0[e]}if(!n)continue;let r=e[t];for(let i of(delete e[t],n)){let t=e[i];t?Ct(t,r):e[i]={...r}}}for(let t of Object.keys(e))Ce(t)||P7(e[t]);return e}function P5(e){if(!e._verified){if("function"==typeof e)throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if(("enter"===t||"exit"===t)&&P8(t,e[t]),Ce(t))continue;if(!P1.includes(t))throw Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 8.0.6`);let n=e[t];if("object"==typeof n)for(let e of Object.keys(n))if("enter"===e||"exit"===e)P8(`${t}.${e}`,n[e]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`)}e._verified=!0}}function P8(e,t){for(let n of[].concat(t))if("function"!=typeof n)throw TypeError(`Non-function found defined in ${e} with type ${typeof n}`)}function P6(e,t=[],n){let r={_verified:!0,_exploded:!0};for(let i=0;i<e.length;i++){let s=P4(e[i]),a=t[i],o=s;for(let e of((a||n)&&(o=P9(o,a,n)),Ct(r,o),Object.keys(s))){if(Ce(e))continue;let t=s[e];(a||n)&&(t=P9(t,a,n)),Ct(r[e]||={},t)}}return r}function P9(e,t,n){let r={};for(let i of["enter","exit"]){let s=e[i];Array.isArray(s)&&(s=s.map(function(e){let r=e;return t&&(r=function(n){e.call(t,n,t)}),n&&(r=n(t?.key,i,r)),r!==e&&(r.toString=()=>e.toString()),r}),r[i]=s)}return r}function P7(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function Ce(e){if(e.startsWith("_")||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e)return!0;if("blacklist"===e)throw Error("The 'blacklist' visitor option has been renamed to 'denylist'. Please update your configuration.");return!1}function Ct(e,t){for(let n of["enter","exit"])t[n]&&(e[n]=[].concat(e[n]||[],t[n]))}var Cn={FunctionParent(e){!e.isArrowFunctionExpression()&&(e.skip(),e.isMethod()&&e.requeueComputedKeyAndDecorators())},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators())}};function Cr(e){return P6([Cn,e])}var Ci=Object.defineProperty({__proto__:null,environmentVisitor:Cr,explode:P4,isExplodedVisitor:P3,merge:P6,verify:P5},Symbol.toStringTag,{value:"Module"}),{getAssignmentIdentifiers:Cs}=tc,Ca=class{constructor(e,t,n){this.newName=n,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){let t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){let{declaration:e}=t.node;if(s$(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:t,newName:n}=this,{scope:r,path:i}=e,s=i.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());s&&s.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(s);let a=r.block,o={discriminant:!0};sW(a)&&(a.computed&&(o.key=!0),t9(a)||(o.decorators=!0)),PC(a,er??=P4({ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)&&(e.skip(),e.isMethod()&&e.requeueComputedKeyAndDecorators(),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},n){let{name:r}=e.key;e.shorthand&&(r===n.oldName||r===n.newName)&&t.getBindingIdentifier(r)===n.binding.identifier&&(e.shorthand=!1)},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let n=e.isAssignmentExpression()?Cs(e.node):e.getOuterBindingIdentifiers();for(let e in n)e===t.oldName&&(n[e].name=t.newName)}}),r,this,r.path,o),r.removeOwnBinding(t),r.bindings[n]=e,this.binding.identifier.name=n,s&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))}},{VISITOR_KEYS:Co}=tc,Cl=class{identifier;scope;path;kind;constructor({identifier:e,scope:t,path:n,kind:r}){this.identifier=e,this.scope=t,this.path=n,this.kind=r,("var"===r||"hoisted"===r)&&function(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:n,key:r}=e;n&&!n.isFunctionParent();{parentPath:n,key:r}=n)if("left"===r&&n.isForXStatement()||t&&"body"===r&&n.isLoop())return!0;return!1}(n)&&this.reassign(n),this.clearValue()}constantViolations=[];constant=!0;referencePaths=[];referenced=!1;references=0;deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}},Cu=new WeakMap,Cc=new WeakMap;function Cp(){Cu=new WeakMap}function Cd(){Cc=new WeakMap}function Cf(e){let{parent:t,parentPath:n}=e;return n?n._store:Cu.get(t)}function Ch(e,t){if(t)return t._store||=new Map;let n=Cu.get(e);return n||Cu.set(e,n=new Map),n}var Cm=Object.defineProperty({__proto__:null,clear:function(){Cp(),Cd()},clearPath:Cp,clearScope:Cd,getCachedPaths:Cf,getOrCreateCachedPaths:Ch,get path(){return Cu},get scope(){return Cc}},Symbol.toStringTag,{value:"Module"}),{assignmentExpression:Cy,cloneNode:Cg,getBindingIdentifiers:Cb,identifier:Cx,isArrayExpression:CS,isBinary:CT,isCallExpression:Cv,isClass:CE,isClassBody:Ck,isClassDeclaration:Cw,isExportAllDeclaration:CA,isExportDefaultDeclaration:CP,isExportNamedDeclaration:CC,isFunctionDeclaration:CI,isIdentifier:C_,isImportDeclaration:CN,isLiteral:CL,isMemberExpression:CO,isMethod:CD,isModuleSpecifier:CM,isNullLiteral:CF,isObjectExpression:CB,isProperty:Cj,isPureish:CR,isRegExpLiteral:C$,isSuper:CU,isTaggedTemplateExpression:Cq,isTemplateLiteral:CK,isThisExpression:CV,isUnaryExpression:CJ,isVariableDeclaration:Cz,expressionStatement:CW,matchesPattern:CX,toIdentifier:CH,variableDeclaration:CY,variableDeclarator:CG,isObjectProperty:CQ,isTopicReference:CZ,isMetaProperty:C0,isPrivateName:C1,isExportDeclaration:C2,sequenceExpression:C3}=tc;function C4(e){"Program"===e.path.type&&(e.referencesSet=new Set,e.uidsSet=new Set),e.bindings=Object.create(null),e.globals=Object.create(null)}var C5={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){iT(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let n=e.get("left");if(n.isPattern()||n.isIdentifier())t.constantViolations.push(e);else if(n.isVar()){let{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",n)}},ExportDeclaration:{exit(e){let{node:t,scope:n}=e;if(CA(t))return;let r=t.declaration;if(Cw(r)||CI(r)){let t=r.id;if(!t)return;let i=n.getBinding(t.name);i?.reference(e)}else if(Cz(r))for(let t of r.declarations)for(let r of Object.keys(Cb(t))){let t=n.getBinding(r);t?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){for(let t of e.get("params"))e.scope.registerBinding("param",t);e.isFunctionExpression()&&e.node.id&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},C8=0,C6=class e{uid;path;block;inited;labels;bindings;referencesSet;globals;uidsSet;data;crawling;constructor(e){let{node:t}=e,n=Cc.get(t);if(n?.path===e)return n;Cc.set(t,this),this.uid=C8++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1}static globals=[...Pv,...PE];static contextVariables=["arguments","undefined","Infinity","NaN"];get parent(){let e,t=this.path;do{let n="key"===t.key||"decorators"===t.listKey;t=t.parentPath,n&&t.isMethod()&&(t=t.parentPath),t?.isScope()&&(e=t)}while(t&&!e)return e?.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let t=this.generateUidIdentifier(e);return this.push({id:t}),Cg(t)}generateUidIdentifier(e){return Cx(this.generateUid(e))}generateUid(e="temp"){let t;e=CH(e).replace(/^_+/,"").replace(/\d+$/g,"");let n=0;do t=`_${e}`,n>=11?t+=n-1:n>=9?t+=n-9:n>=1&&(t+=n+1),n++;while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t))let r=this.getProgramParent();return r.referencesSet.add(t),r.uidsSet.add(t),t}generateUidBasedOnNode(e,t){let n=[];!function e(t,n){switch(t?.type){default:if(CN(t)||C2(t))if((CA(t)||CC(t)||CN(t))&&t.source)e(t.source,n);else if((CC(t)||CN(t))&&t.specifiers?.length)for(let r of t.specifiers)e(r,n);else(CP(t)||CC(t))&&t.declaration&&e(t.declaration,n);else CM(t)?e(t.local,n):!CL(t)||CF(t)||C$(t)||CK(t)||n.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":e(t.object,n),e(t.property,n);break;case"Identifier":case"JSXIdentifier":n.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":e(t.callee,n);break;case"ObjectExpression":case"ObjectPattern":for(let r of t.properties)e(r,n);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":e(t.argument,n);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":e(t.key,n);break;case"ThisExpression":n.push("this");break;case"Super":n.push("super");break;case"Import":case"ImportExpression":n.push("import");break;case"DoExpression":n.push("do");break;case"YieldExpression":n.push("yield"),e(t.argument,n);break;case"AwaitExpression":n.push("await"),e(t.argument,n);break;case"AssignmentExpression":e(t.left,n);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":e(t.id,n);break;case"ParenthesizedExpression":e(t.expression,n);break;case"MetaProperty":e(t.meta,n),e(t.property,n);break;case"JSXElement":e(t.openingElement,n);break;case"JSXOpeningElement":e(t.name,n);break;case"JSXFragment":e(t.openingFragment,n);break;case"JSXOpeningFragment":n.push("Fragment");break;case"JSXNamespacedName":e(t.namespace,n),e(t.name,n)}}(e,n);let r=n.join("$");return r=r.replace(/^_/,"")||t||"ref",this.generateUid(r.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return Cx(this.generateUidBasedOnNode(e,t))}isStatic(e){if(CV(e)||CU(e)||CZ(e))return!0;if(C_(e)){let t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{let n=this.generateUidIdentifierBasedOnNode(e);return t?n:(this.push({id:n}),Cg(n))}}checkBlockScopedCollisions(e,t,n){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw Error(`Duplicate declaration '${n}'`,TypeError)}rename(e,t){let n=this.getBinding(e);n&&(t||=this.generateUidIdentifier(e).name,new Ca(n,e,t).rename())}dump(){let e="-".repeat(60);console.log(e);let t=this;do for(let e of(console.log("#",t.block.type),Object.keys(t.bindings))){let n=t.bindings[e];console.log(" -",e,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}while(t=t.parent)console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let t=e.get("declarations"),{kind:n}=e.node;for(let e of t)this.registerBinding("using"===n||"await using"===n?"const":n,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let t="type"===e.node.importKind||"typeof"===e.node.importKind;for(let n of e.get("specifiers")){let e=t||n.isImportSpecifier()&&("type"===n.node.importKind||"typeof"===n.node.importKind);this.registerBinding(e?"unknown":"module",n)}}else if(e.isExportDeclaration()){let t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}registerConstantViolation(e){for(let t of Object.keys(e.getAssignmentIdentifiers()))this.getBinding(t)?.reassign(e)}registerBinding(e,t,n=t){if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){for(let n of t.get("declarations"))this.registerBinding(e,n);return}let r=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(let t of Object.keys(i))for(let s of(r.referencesSet.add(t),i[t])){let r=this.getOwnBinding(t);if(r){if(r.identifier===s)continue;this.checkBlockScopedCollisions(r,e,t,s)}r?r.reassign(n):this.bindings[t]=new Cl({identifier:s,scope:this,path:n,kind:e})}}addGlobal(e){this.globals[e.name]=e}hasUid(e){return this.getProgramParent().uidsSet.has(e)}hasGlobal(e){let t=this;do if(t.globals[e])return!0;while(t=t.parent)return!1}hasReference(e){return this.getProgramParent().referencesSet.has(e)}isPure(e,t){if(C_(e)){let n=this.getBinding(e.name);return!!n&&(!t||n.constant)}if(CV(e)||C0(e)||CZ(e)||C1(e))return!0;if(CE(e))return!(e.superClass&&!this.isPure(e.superClass,t)||e.decorators?.length>0)&&this.isPure(e.body,t);if(Ck(e)){for(let n of e.body)if(!this.isPure(n,t))return!1;return!0}if(CT(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);else if(CS(e)){for(let n of e.elements)if(null!==n&&!this.isPure(n,t))return!1;return!0}else if(CB(e)){for(let n of e.properties)if(!this.isPure(n,t))return!1;return!0}else if(CD(e))return!(e.computed&&!this.isPure(e.key,t)||e.decorators?.length>0);else if(Cj(e))return!(e.computed&&!this.isPure(e.key,t)||e.decorators?.length>0||(CQ(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));else if(CJ(e))return this.isPure(e.argument,t);else if(CK(e)){for(let n of e.expressions)if(!this.isPure(n,t))return!1;return!0}else if(Cq(e))return CX(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(CO(e))return!e.computed&&C_(e.object)&&"Symbol"===e.object.name&&C_(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0});else if(Cv(e))return CX(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&tQ(e.arguments[0]);else return CR(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{let n=t.data[e];if(null!=n)return n}while(t=t.parent)}removeData(e){let t=this;do null!=t.data[e]&&(t.data[e]=null);while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;C4(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent)let n=t,r={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ei||=Ld.visitors.merge([{Scope(e){C4(e.scope)}},C5]),"Program"!==e.type){let t=ei[e.type];if(t)for(let n of t.enter)n.call(r,e,r)}let i=P4(ei);if(i.enter||i.exit)throw Error("Should not be used with enter/exit visitors.");for(let t of(function e(t,n,s,a,o,l,u,c){if(!s)return;let p=c||N9.get({hub:u,parentPath:t,parent:n,container:a,listKey:l,key:o});Le.call(p);let d=i[s.type];if(d?.enter)for(let e of d.enter)e.call(r,p,r);if(p.shouldSkip)return;let f=Co[s.type];if(f?.length){for(let t of f){let n=s[t];if(n)if(Array.isArray(n))for(let r=0;r<n.length;r++)e(p,s,n[r],n,r,t);else e(p,s,n,s,t,null)}if(d?.exit)for(let e of d.exit)e.call(r,p,r)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e),this.crawling=!1,r.assignments)){let e=t.getAssignmentIdentifiers();for(let r of Object.keys(e))t.scope.getBinding(r)||n.addGlobal(e[r]);t.scope.registerConstantViolation(t)}for(let e of r.references){let t=e.scope.getBinding(e.node.name);t?t.reference(e):n.addGlobal(e.node)}for(let e of r.constantViolations)e.scope.registerConstantViolation(e)}push(e){var t;let n=this.path;n.isPattern()?n=this.getPatternParent().path:n.isBlockStatement()||n.isProgram()||(n=this.getBlockParent().path),n.isSwitchStatement()&&(n=(this.getFunctionParent()||this.getProgramParent()).path);let{init:r,unique:i,kind:s="var",id:a}=e;if(!r&&!i&&("var"===s||"let"===s)&&((t=n).isFunctionExpression()&&!t.node.id||t.isArrowFunctionExpression())&&Cv(n.parent,{callee:n.node})&&n.parent.arguments.length<=n.node.params.length&&C_(a)){n.pushContainer("params",a),n.scope.registerBinding("param",n.get("params")[n.node.params.length-1]);return}(n.isLoop()||n.isCatchClause()||n.isFunction())&&(n.ensureBlock(),n=n.get("body"));let o=null==e._blockHoist?2:e._blockHoist,l=`declaration:${s}:${o}`,u=!i&&n.getData(l);if(!u){let e=CY(s,[]);e._blockHoist=o,[u]=n.unshiftContainer("body",[e]),i||n.setData(l,u)}let c=CG(a,r),p=u.node.declarations.push(c);n.scope.registerBinding(s,u.get("declarations")[p-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent)throw Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent)return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent)throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent)throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),t=this;do{for(let n of Object.keys(t.bindings))n in e==!1&&(e[n]=t.bindings[n]);t=t.parent}while(t)return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,n=this;do{let r=n.getOwnBinding(e);if(r){if(!t?.isPattern()||"param"===r.kind||"local"===r.kind)return r}else if(!r&&"arguments"===e&&n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;t=n.path}while(n=n.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){return this.getBinding(e)?.identifier}getOwnBindingIdentifier(e){let t=this.bindings[e];return t?.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(t,n){let r,i,s;if(!t)return!1;"object"==typeof n?(r=n.noGlobals,i=n.noUids,s=n.upToScope):"boolean"==typeof n&&(r=n);let a=this;do{if(s===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent)return!!(!i&&this.hasUid(t)||!r&&e.globals.includes(t)||!r&&e.contextVariables.includes(t))}parentHasBinding(e,t){return this.parent?.hasBinding(e,t)}moveBindingTo(e,t){let n=this.getBinding(e);n&&(n.scope.removeOwnBinding(e),n.scope=t,t.bindings[e]=n)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){this.getBinding(e)?.scope.removeOwnBinding(e),this.getProgramParent().uidsSet.delete(e)}hoistVariables(e=e=>this.push({id:e})){this.crawl();let t=new Set;for(let n of Object.keys(this.bindings)){let r,i=this.bindings[n];if(!i)continue;let{path:s}=i;if(!s.isVariableDeclarator())continue;let{parent:a,parentPath:o}=s;if("var"!==a.kind||t.has(a))continue;t.add(s.parent);let l=[];for(let t of a.declarations)for(let n of(r??=t.id,t.init&&l.push(Cy("=",t.id,t.init)),Object.keys(Cb(t,!1,!0,!0))))e(Cx(n),null!=t.init);if(o.parentPath.isForXStatement({left:a}))o.replaceWith(r);else if(0===l.length)o.remove();else{let e=1===l.length?l[0]:C3(l);o.parentPath.isForStatement({init:a})?o.replaceWith(e):o.replaceWith(CW(e))}}}},{VISITOR_KEYS:C9}=tc,{createFlowUnionType:C7,createTSUnionType:Ie,isFlowType:It,isTSType:In}=tc;function Ir(e){return e.every(e=>It(e))?C7(e):e.every(e=>In(e))?Ie(e):void 0}var{BOOLEAN_NUMBER_BINARY_OPERATORS:Ii,createTypeAnnotationBasedOnTypeof:Is,numberTypeAnnotation:Ia,voidTypeAnnotation:Io}=tc;function Il(e,t,n){let r=e.constantViolations.slice();return r.unshift(e.path),r.filter(e=>{let r=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return n&&"unknown"===r&&n.push(e),"before"===r})}var{BOOLEAN_BINARY_OPERATORS:Iu,BOOLEAN_UNARY_OPERATORS:Ic,NUMBER_BINARY_OPERATORS:Ip,NUMBER_UNARY_OPERATORS:Id,STRING_UNARY_OPERATORS:If,anyTypeAnnotation:Ih,arrayTypeAnnotation:Im,booleanTypeAnnotation:Iy,buildMatchMemberExpression:Ig,genericTypeAnnotation:Ib,identifier:Ix,nullLiteralTypeAnnotation:IS,numberTypeAnnotation:IT,stringTypeAnnotation:Iv,tupleTypeAnnotation:IE,unionTypeAnnotation:Ik,voidTypeAnnotation:Iw,isIdentifier:IA}=tc;function IP(e){return e.typeAnnotation}function IC(e){return e.typeAnnotation}function II(){return Ib(Ix("Array"))}function I_(){return II()}function IN(){return Ib(Ix("Function"))}IP.validParent=!0,IC.validParent=!0,I_.validParent=!0;var IL=Ig("Array.from"),IO=Ig("Object.keys"),ID=Ig("Object.values"),IM=Ig("Object.entries");function IF(e){if((e=e.resolve()).isFunction()){let{node:t}=e;if(t.async)if(t.generator)return Ib(Ix("AsyncIterator"));else return Ib(Ix("Promise"));if(t.generator)return Ib(Ix("Iterator"));if(e.node.returnType)return e.node.returnType}}var IB=Object.defineProperty({__proto__:null,ArrayExpression:II,ArrowFunctionExpression:IN,AssignmentExpression:function(){return this.get("right").getTypeAnnotation()},BinaryExpression:function(e){let t=e.operator;if(Ip.includes(t))return IT();if(Iu.includes(t))return Iy();if("+"===t){let e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?IT():t.isBaseType("string")||e.isBaseType("string")?Iv():Ik([Iv(),IT()])}},BooleanLiteral:function(){return Iy()},CallExpression:function(){let{callee:e}=this.node;return IO(e)?Im(Iv()):IL(e)||ID(e)||IA(e,{name:"Array"})?Im(Ih()):IM(e)?Im(IE([Iv(),Ih()])):IF(this.get("callee"))},ClassDeclaration:IN,ClassExpression:IN,ConditionalExpression:function(){return Ir([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},FunctionDeclaration:IN,FunctionExpression:IN,Identifier:function(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)if(t.identifier.typeAnnotation)return t.identifier.typeAnnotation;else return function(e,t,n){let r=[],i=[],s=Il(e,t,i),a=function e(t,n,r){let i=function(e,t,n){let r;for(;r=t.parentPath;){if(r.isIfStatement()||r.isConditionalExpression()){if("test"===t.key)return;return r}if(r.isFunction()&&(null==n||r.parentPath.scope.getBinding(n)!==e))return;t=r}}(t,n,r);if(!i)return;let s=[i.get("test")],a=[];for(let e=0;e<s.length;e++){let t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){let e=function(e,t){let n,r,i,s=t.node.operator,a=t.get("right").resolve(),o=t.get("left").resolve();if(o.isIdentifier({name:e})?n=a:a.isIdentifier({name:e})&&(n=o),n)return"==="===s?n.getTypeAnnotation():Ii.includes(s)?Ia():void 0;if("==="!==s&&"=="!==s||(o.isUnaryExpression({operator:"typeof"})?(r=o,i=a):a.isUnaryExpression({operator:"typeof"})&&(r=a,i=o),!r||!r.get("argument").isIdentifier({name:e})||!(i=i.resolve()).isLiteral()))return;let l=i.node.value;if("string"==typeof l)return Is(l)}(r,t);e&&a.push(e)}}return a.length?{typeAnnotation:Ir(a),ifStatement:i}:e(t,i,r)}(e,t,n);if(a){let t=Il(e,a.ifStatement);s=s.filter(e=>!t.includes(e)),r.push(a.typeAnnotation)}if(s.length)for(let e of(s.push(...i),s))r.push(e.getTypeAnnotation());if(r.length)return Ir(r)}(t,this,e.name);return"undefined"===e.name?Io():"NaN"===e.name||"Infinity"===e.name?Ia():void e.name},LogicalExpression:function(){return Ir([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},NewExpression:function(e){if("Identifier"===e.callee.type)return Ib(e.callee)},NullLiteral:function(){return IS()},NumericLiteral:function(){return IT()},ObjectExpression:function(){return Ib(Ix("Object"))},ParenthesizedExpression:function(){return this.get("expression").getTypeAnnotation()},RegExpLiteral:function(){return Ib(Ix("RegExp"))},RestElement:I_,SequenceExpression:function(){return this.get("expressions").pop().getTypeAnnotation()},StringLiteral:function(){return Iv()},TSAsExpression:IC,TSNonNullExpression:function(){return this.get("expression").getTypeAnnotation()},TaggedTemplateExpression:function(){return IF(this.get("tag"))},TemplateLiteral:function(){return Iv()},TypeCastExpression:IP,UnaryExpression:function(e){let t=e.operator;return"void"===t?Iw():Id.includes(t)?IT():If.includes(t)?Iv():Ic.includes(t)?Iy():void 0},UpdateExpression:function(e){let t=e.operator;if("++"===t||"--"===t)return IT()},VariableDeclarator:function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}},Symbol.toStringTag,{value:"Module"}),{anyTypeAnnotation:Ij,isAnyTypeAnnotation:IR,isArrayTypeAnnotation:I$,isBooleanTypeAnnotation:IU,isEmptyTypeAnnotation:Iq,isFlowBaseAnnotation:IK,isGenericTypeAnnotation:IV,isIdentifier:IJ,isMixedTypeAnnotation:Iz,isNumberTypeAnnotation:IW,isStringTypeAnnotation:IX,isTSArrayType:IH,isTSTypeAnnotation:IY,isTSTypeReference:IG,isTupleTypeAnnotation:IQ,isTypeAnnotation:IZ,isUnionTypeAnnotation:I0,isVoidTypeAnnotation:I1,stringTypeAnnotation:I2,voidTypeAnnotation:I3}=tc,I4=new WeakSet;function I5(){let e=this.node;if(!e)if(!("init"===this.key&&this.parentPath.isVariableDeclarator()))return;else{let e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?I2():"left"===e.key&&t.isForOfStatement()?Ij():I3()}if(e.typeAnnotation)return e.typeAnnotation;if(!I4.has(e)){I4.add(e);try{let t=IB[e.type];if(t)return t.call(this,e);if(t=IB[this.parentPath.type],t?.validParent)return this.parentPath.getTypeAnnotation()}finally{I4.delete(e)}}}function I8(e,t,n){if("string"===e)return IX(t);if("number"===e)return IW(t);if("boolean"===e)return IU(t);if("any"===e)return IR(t);if("mixed"===e)return Iz(t);else if("empty"===e)return Iq(t);else if("void"===e)return I1(t);else if(n)return!1;else throw Error(`Unknown base type ${e}`)}var I6=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&2===t.node.expressions.length)return t.replaceWith(t.node.expressions[+(0===e.key)]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}];function I9(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}var{arrowFunctionExpression:I7,assertExpression:_e,assignmentExpression:_t,blockStatement:_n,callExpression:_r,cloneNode:_i,expressionStatement:_s,isAssignmentExpression:_a,isCallExpression:_o,isExportNamedDeclaration:_l,isExpression:_u,isIdentifier:_c,isSequenceExpression:_p,isSuper:_d,thisExpression:_f}=tc;function _h(e,t){_b.call(this,e,t.length);let n=[];this.container.splice(e,0,...t);for(let r=0;r<t.length;r++){let t=e+r,i=this.getSibling(t);n.push(i),this.context?.queue&&Li.call(i,this.context)}let r=Lo.call(this);for(let e of n)for(let t of(Lt.call(e),e.debug("Inserted."),r))t.maybeQueue(e,!0);return n}function _m(e){return _h.call(this,this.key,e)}function _y(e){return _h.call(this,this.key+1,e)}var _g=e=>e[e.length-1];function _b(e,t){if(!this.parent)return;let n=Cf(this);if(n)for(let[,r]of n)"number"==typeof r.key&&r.container===this.container&&r.key>=e&&(r.key+=t)}function _x(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let n,r=e[t];if(r?"object"!=typeof r?n="contains a non-object node":r.type?r instanceof N9&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){let e=Array.isArray(r)?"array":typeof r;throw Error(`Node list ${n} with the index of ${t} and type of ${e}`)}}return e}var{FUNCTION_TYPES:_S,arrowFunctionExpression:_T,assignmentExpression:_v,awaitExpression:_E,blockStatement:_k,buildUndefinedNode:_w,callExpression:_A,cloneNode:_P,conditionalExpression:_C,expressionStatement:_I,getBindingIdentifiers:__,identifier:_N,inheritLeadingComments:_L,inheritTrailingComments:_O,inheritsComments:_D,isBlockStatement:_M,isEmptyStatement:_F,isExpression:_B,isExpressionStatement:_j,isIfStatement:_R,isProgram:_$,isStatement:_U,isVariableDeclaration:_q,removeComments:_K,returnStatement:_V,sequenceExpression:_J,validate:_z,yieldExpression:_W}=tc;function _X(e){if(!this.container)throw ReferenceError("Container is falsy");this.inList?_z(this.parent,this.key,[e]):_z(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),Cf(this)?.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}var _H=["Number","String","Math"],_Y=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","btoa","atob"],_G=["random"];function _Q(e){return _H.includes(e)}function _Z(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var _0=new Map([["undefined",void 0],["Infinity",1/0],["NaN",0/0]]);function _1(e,t){let{node:n}=e,{seen:r}=t;if(r.has(n)){let i=r.get(n);return i.resolved?i.value:void _Z(e,t)}{let i={resolved:!1};r.set(n,i);let s=function(e,t){if(t.confident){if(e.isSequenceExpression()){let n=e.get("expressions");return _1(n[n.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return _2(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let n=e.get("tag.object"),{node:{name:r}}=n,i=e.get("tag.property");if(n.isIdentifier()&&"String"===r&&!e.scope.getBinding(r)&&i.isIdentifier()&&"raw"===i.node.name)return _2(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let n=_1(e.get("test"),t);return t.confident?n?_1(e.get("consequent"),t):_1(e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return _1(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let n=e.get("property"),r=e.get("object");if(r.isLiteral()){let i=r.node.value,s=typeof i,a=null;if(e.node.computed){if(a=_1(n,t),!t.confident)return}else n.isIdentifier()&&(a=n.node.name);if(("number"===s||"string"===s)&&null!=a&&("number"==typeof a||"string"==typeof a))return i[a]}}if(e.isReferencedIdentifier()){let n=e.scope.getBinding(e.node.name);if(n){if(n.constantViolations.length>0||e.node.start<n.path.node.end)return void _Z(n.path,t);let r=n.path.scope;if("var"===n.kind&&r!==n.scope){let i=!r.path.parentPath.isBlockStatement();for(let s=r.parent;s;s=s.parent){if(s===e.scope){if(i)return void _Z(n.path,t);break}s.path.parentPath?.isBlockStatement()&&(i=!0)}}if(n.hasValue)return n.value}let r=e.node.name;if(_0.has(r))return n?void _Z(n.path,t):_0.get(r);if(!n)return void _Z(e,t);let i=n.path;if(!i.isVariableDeclarator())return void _Z(i,t);let s=i.get("init"),a=_1(s,t);return"object"==typeof a&&null!==a&&n.references>1?void _Z(s,t):a}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;let n=e.get("argument");if("typeof"===e.node.operator&&(n.isFunction()||n.isClass()))return"function";let r=_1(n,t);if(!t.confident)return;switch(e.node.operator){case"!":return!r;case"+":return+r;case"-":return-r;case"~":return~r;case"typeof":return typeof r}}if(e.isArrayExpression()){let n=[];for(let r of e.get("elements")){let e=r.evaluate();if(!e.confident)return void _Z(e.deopt,t);n.push(e.value)}return n}if(e.isObjectExpression()){let n={};for(let r of e.get("properties")){let e;if(r.isObjectMethod()||r.isSpreadElement())return void _Z(r,t);let i=r.get("key");if(r.node.computed){if(!(e=i.evaluate()).confident)return void _Z(e.deopt,t);e=e.value}else e=i.isIdentifier()?i.node.name:i.node.value;let s=r.get("value").evaluate();if(!s.confident)return void _Z(s.deopt,t);s=s.value,n[e]=s}return n}if(e.isLogicalExpression()){let n=t.confident,r=_1(e.get("left"),t),i=t.confident;t.confident=n;let s=_1(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":if(t.confident=i&&(!!r||a),!t.confident)return;return r||s;case"&&":if(t.confident=i&&(!r||a),!t.confident)return;return r&&s;case"??":if(t.confident=i&&(null!=r||a),!t.confident)return;return r??s}}if(e.isBinaryExpression()){let n=_1(e.get("left"),t);if(!t.confident)return;let r=_1(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return n-r;case"+":return n+r;case"/":return n/r;case"*":return n*r;case"%":return n%r;case"**":return n**r;case"<":return n<r;case">":return n>r;case"<=":return n<=r;case">=":return n>=r;case"==":return n==r;case"!=":return n!=r;case"===":return n===r;case"!==":return n!==r;case"|":return n|r;case"&":return n&r;case"^":return n^r;case"<<":return n<<r;case">>":return n>>r;case">>>":return n>>>r}}if(e.isCallExpression()){var n,r;let i,s,a=e.get("callee");if(a.isIdentifier()&&!e.scope.getBinding(a.node.name)&&(_Q(a.node.name)||(n=a.node.name,_Y.includes(n)))&&(s=ec[a.node.name]),a.isMemberExpression()){let t=a.get("object"),n=a.get("property");if(t.isIdentifier()&&n.isIdentifier()&&_Q(t.node.name)&&(r=n.node.name,!_G.includes(r))&&!e.scope.getBinding(t.node.name)){i=ec[t.node.name];let e=n.node.name;Object.hasOwn(i,e)&&(s=i[e])}if(t.isLiteral()&&n.isIdentifier()){let e=typeof t.node.value;("string"===e||"number"===e)&&(s=(i=t.node.value)[n.node.name])}}if(s){let n=e.get("arguments").map(e=>_1(e,t));if(!t.confident)return;return s.apply(i,n)}}_Z(e,t)}}(e,t);return t.confident&&(i.resolved=!0,i.value=s),s}}function _2(e,t,n,r=!1){let i="",s=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let e of t){if(!n.confident)break;i+=r?e.value.raw:e.value.cooked;let t=a[s++];t&&(i+=String(_1(t,n)))}if(n.confident)return i}var{arrowFunctionExpression:_3,assignmentExpression:_4,binaryExpression:_5,blockStatement:_8,callExpression:_6,conditionalExpression:_9,expressionStatement:_7,identifier:Ne,jsxIdentifier:Nt,logicalExpression:Nn,LOGICAL_OPERATORS:Nr,memberExpression:Ni,metaProperty:Ns,numericLiteral:Na,objectExpression:No,restElement:Nl,returnStatement:Nu,sequenceExpression:Nc,spreadElement:Np,stringLiteral:Nd,super:Nf,thisExpression:Nh,toExpression:Nm,unaryExpression:Ny,toBindingIdentifierName:Ng,isFunction:Nb,isAssignmentPattern:Nx,isRestElement:NS,getFunctionName:NT,cloneNode:Nv,variableDeclaration:NE,variableDeclarator:Nk,exportNamedDeclaration:Nw,exportSpecifier:NA,inherits:NP,buildUndefinedNode:NC}=tc,NI=Cr({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function N_(e,t=!0,n=!0,r=!0){var i,s,a;let o,l,u,c,p,d,f,h=e.findParent(e=>e.isArrowFunctionExpression()?(d??=e,!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})),m=h.isClassMethod({kind:"constructor"});if(h.isClassProperty()||h.isClassPrivateProperty())if(d)h=d;else if(n)e=(h=e.replaceWith(_6(_3([],Nm(e.node)),[]))[0].get("callee")).get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:y,argumentsPaths:g,newTargetPaths:b,superProps:x,superCalls:S}=(o=[],l=[],u=[],c=[],p=[],e.traverse(ND,{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:c,superCalls:p}),{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:c,superCalls:p});if(m&&S.length>0){if(!n)throw S[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!r)throw S[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let e=[];h.traverse(NI,{allSuperCalls:e});let t=NO(i=h,"supercall",()=>{let e=i.scope.generateUidIdentifier("args");return _3([Nl(e)],_6(Nf(),[Np(Ne(e.name))]))});e.forEach(e=>{let n=Ne(t);n.loc=e.node.callee.loc,e.get("callee").replaceWith(n)})}if(g.length>0){let e=NO(h,"arguments",()=>h.scope.path.isProgram()?_9(_5("===",Ny("typeof",Ne("arguments")),Nd("undefined")),NC(),Ne("arguments")):Ne("arguments"));g.forEach(t=>{let n=Ne(e);n.loc=t.node.loc,t.replaceWith(n)})}if(b.length>0){let e=NO(h,"newtarget",()=>Ns(Ne("new"),Ne("target")));b.forEach(t=>{let n=Ne(e);n.loc=t.node.loc,t.replaceWith(n)})}if(x.length>0){if(!n)throw x[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");x.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){let n=e.parentPath,r=n.node.operator.slice(0,-1),i=n.node.right,s=Nr.includes(r);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;n.get("left").replaceWith(Ni(o,_4("=",a,l),!0)),n.get("right").replaceWith(t(s?"=":r,Ni(o,Ne(a.name),!0),i))}else{let a=e.node.object,o=e.node.property;n.get("left").replaceWith(Ni(a,o)),n.get("right").replaceWith(t(s?"=":r,Ni(a,Ne(o.name)),i))}return s?n.replaceWith(Nn(r,n.node.left,n.node.right)):n.node.operator="=",[n.get("left"),n.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){let t=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),r=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[_4("=",n,Ni(e.node.object,r?_4("=",r,e.node.property):e.node.property,e.node.computed)),_4("=",Ni(e.node.object,r?Ne(r.name):e.node.property,e.node.computed),_5(e.parentPath.node.operator[0],Ne(n.name),Na(1)))];e.parentPath.node.prefix||i.push(Ne(n.name));let s=t.replaceWith(Nc(i))[0];return[s.get("expressions.0.right"),s.get("expressions.1.left")]}return[e];function t(e,t,n){return"="===e?_4("=",t,n):_5(e,t,n)}}(t)),[]).forEach(e=>{var t,n,r;let i=e.node.computed?"":e.get("property").node.name,s=e.parentPath,a=s.isAssignmentExpression({left:e.node}),o=s.isCallExpression({callee:e.node}),l=s.isTaggedTemplateExpression({tag:e.node}),u=(t=h,n=a,r=i,NO(t,`superprop_${n?"set":"get"}:${r||""}`,()=>{let e,i=[];if(r)e=Ni(Nf(),Ne(r));else{let n=t.scope.generateUidIdentifier("prop");i.unshift(n),e=Ni(Nf(),Ne(n.name),!0)}if(n){let n=t.scope.generateUidIdentifier("value");i.push(n),e=_4("=",e,Ne(n.name))}return _3(i,e)})),c=[];if(e.node.computed&&c.push(e.get("property").node),a){let e=s.node.right;c.push(e)}let p=_6(Ne(u),c);o?(s.unshiftContainer("arguments",Nh()),e.replaceWith(Ni(p,Ne("call"))),y.push(s.get("arguments.0"))):a?s.replaceWith(p):l?y.push(e.replaceWith(_6(Ni(p,Ne("bind"),!1),[Nh()]))[0].get("arguments.0")):e.replaceWith(p)})}return(y.length>0||!t)&&(s=h,a=m,f=NO(s,"this",e=>{if(!a||!NN(s))return Nh();s.traverse(NL,{supers:new WeakSet,thisBinding:e})}),(t||m&&NN(h))&&(y.forEach(e=>{let t=e.isJSX()?Nt(f):Ne(f);t.loc=e.node.loc,e.replaceWith(t)}),t||(f=null))),{thisBinding:f,fnPath:e}}function NN(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var NL=Cr({CallExpression(e,{supers:t,thisBinding:n}){!e.get("callee").isSuper()||t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,_4("=",Ne(n),Ne("this"))]))}});function NO(e,t,n){let r="binding:"+t,i=e.getData(r);if(!i){let s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(r,i),e.scope.push({id:s,init:n(i)})}return i}var ND=Cr({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"!==e.node.name||(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let n=e.scope;do{if(n.hasOwnBinding("arguments"))return void n.rename("arguments");if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break}while(n=n.parent)t.push(e)},MetaProperty(e,{newTargetPaths:t}){!e.get("meta").isIdentifier({name:"new"})||e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),{STATEMENT_OR_BLOCK_KEYS:NM,VISITOR_KEYS:NF,isBlockStatement:NB,isExpression:Nj,isIdentifier:NR,isLiteral:N$,isStringLiteral:NU,isType:Nq,matchesPattern:NK,toComputedKey:NV}=tc;function NJ(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function Nz(e,t){for(let n=0;n<t;n++){let t=e[n];if(function(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}(t.parent.type,t.parentKey))return!0}return!1}var NW=Symbol(),{getAssignmentIdentifiers:NX,getBindingIdentifiers:NH,getOuterBindingIdentifiers:NY,buildUndefinedNode:NG}=tc;function NQ(e,t,n){return e&&t.push(...N1(e,n)),t}function NZ(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(NG()):e.path.remove())})}function N0(e,t){let n=[];if(t.canHaveBreak){let r=[];for(let i=0;i<e.length;i++){let s=e[i],a={...t,inCaseClause:!1};s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=N1(s,a);if(o.length>0&&o.every(e=>1===e.type)){r.length>0&&o.every(e=>e.path.isBreakStatement({label:null}))?(r.forEach(e=>{e.type=1}),n.push(...r),r.some(e=>e.path.isDeclaration())&&(n.push(...o),t.shouldPreserveBreak||NZ(o,!0)),t.shouldPreserveBreak||NZ(o,!1)):(n.push(...o),t.shouldPopulateBreak||t.shouldPreserveBreak||NZ(o,!0));break}if(i===e.length-1)n.push(...o);else{r=[];for(let e=0;e<o.length;e++){let t=o[e];1===t.type&&n.push(t),0===t.type&&r.push(t)}}}}else if(e.length)for(let r=e.length-1;r>=0;r--){let i=N1(e[r],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){n.push(...i);break}}return n}function N1(e,t){let n=[];if(e.isIfStatement())n=NQ(e.get("consequent"),n,t),n=NQ(e.get("alternate"),n,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return NQ(e.get("body"),n,t);else if(e.isProgram()||e.isBlockStatement())return N0(e.get("body"),t);else if(e.isFunction())return N1(e.get("body"),t);else if(e.isTryStatement())n=NQ(e.get("block"),n,t),n=NQ(e.get("handler"),n,t);else{if(e.isCatchClause())return NQ(e.get("body"),n,t);if(e.isSwitchStatement())return function(e,t,n){let r=[];for(let i=0;i<e.length;i++){let s=N1(e[i],n),a=[],o=[];for(let e of s)0===e.type&&a.push(e),1===e.type&&o.push(e);a.length&&(r=a),t.push(...o)}return t.push(...r),t}(e.get("cases"),n,t);if(e.isSwitchCase())return N0(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?n.push({type:1,path:e}):n.push({type:0,path:e})}return n}function N2(e,t){let n=this.node,r=n[e];return Array.isArray(r)?r.map((i,s)=>N9.get({listKey:e,parentPath:this,parent:n,container:r,key:s}).setContext(t)):N9.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)}function N3(e,t){let n=this;for(let r of e)n="."===r?n.parentPath:Array.isArray(n)?n[r]:n.get(r,t);return n}var{addComment:N4,addComments:N5}=tc;function N8(e,t){if(!t?.length)return e;let n=new Set(t);return e.filter(e=>!n.has(e))}var{validate:N6}=tc;Object.assign(PT,{color:function(e,t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e)|0;return e[Math.abs(n)%e.length]}(PS,"babel")},void 0);var N9=class e{constructor(e,t){this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}contexts=[];state=null;_traverseFlags=0;get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}skipKeys=null;parentPath=null;container=null;listKey=null;key=null;node=null;type=null;_store=null;static get({hub:t,parentPath:n,parent:r,container:i,listKey:s,key:a}){if(!t&&n&&(t=n.hub),!r)throw Error("To get a node path the parent needs to exist");let o=i[a],l=Ch(r,n),u=l.get(o);return!u&&(u=new e(t,r),o&&l.set(o,u)),Ls.call(u,n,i,s,a),u}getScope(e){return this.isScope()?new C6(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let n=this.data[e];return void 0===n&&void 0!==t&&(n=this.data[e]=t),n}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){Ld(this.node,e,this.scope,t,this)}set(e,t){N6(this.node,e,t),this.node[e]=t}getPathLocation(){let e=[],t=this;do{let n=t.key;t.inList&&(n=`${t.listKey}[${n}]`),e.unshift(n)}while(t=t.parentPath)return e.join(".")}debug(e){}toString(){return Py(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}};for(let e of(Object.assign(N9.prototype,{findParent:function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},find:function(e){let t=this;do if(e(t))return t;while(t=t.parentPath)return null},getFunctionParent:function(){return this.findParent(e=>e.isFunction())},getStatementParent:function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e)if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e},getEarliestCommonAncestorFrom:function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,n){let r,i=C9[e.type];for(let e of n){let n=e[t+1];if(!r||n.listKey&&r.listKey===n.listKey&&n.key<r.key){r=n;continue}i.indexOf(r.parentKey)>i.indexOf(n.parentKey)&&(r=n)}return r})},getDeepestCommonAncestorFrom:function(e,t){let n,r;if(!e.length)return this;if(1===e.length)return e[0];let i=1/0,s=e.map(e=>{let t=[];do t.unshift(e);while((e=e.parentPath)&&e!==this)return t.length<i&&(i=t.length),t}),a=s[0];n:for(let e=0;e<i;e++){let t=a[e];for(let n of s)if(n[e]!==t)break n;n=e,r=t}if(r)if(t)return t(r,n,s);else return r;throw Error("Couldn't find intersection")},getAncestry:function(){let e=this,t=[];do t.push(e);while(e=e.parentPath)return t},isAncestor:function(e){return e.isDescendant(this)},isDescendant:function(e){return!!this.findParent(t=>t===e)},inType:function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},getTypeAnnotation:function(){let e=this.getData("typeAnnotation");return null!=e||((IZ(e=I5.call(this)||Ij())||IY(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},isBaseType:function(e,t){return I8(e,this.getTypeAnnotation(),t)},couldBeBaseType:function(e){let t=this.getTypeAnnotation();if(IR(t))return!0;if(!I0(t))return I8(e,t,!0);for(let n of t.types)if(IR(n)||I8(e,n,!0))return!0;return!1},baseTypeStrictlyMatches:function(e){let t=this.getTypeAnnotation(),n=e.getTypeAnnotation();return!!(!IR(t)&&IK(t))&&n.type===t.type},isGenericType:function(e){let t=this.getTypeAnnotation();return!!("Array"===e&&(IH(t)||I$(t)||IQ(t)))||IV(t)&&IJ(t.id,{name:e})||IG(t)&&IJ(t.typeName,{name:e})},replaceWithMultiple:function(e){Ln.call(this);let t=_x.call(this,e);_L(t[0],this.node),_O(t[t.length-1],this.node),Cf(this)?.delete(this.node),this.node=this.container[this.key]=null;let n=this.insertAfter(e);return this.node?this.requeue():this.remove(),n},replaceWithSourceString:function(e){let t;Ln.call(this);try{e=`(${e})`,t=EG(e)}catch(n){let t=n.loc;throw t&&(n.message+=" - make sure this is an expression.\n"+kn(e,{start:{line:t.line,column:t.column}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}let n=t.program.body[0].expression;return Ld.removeProperties(n),this.replaceWith(n)},replaceWith:function(e){if(Ln.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let t=e instanceof N9?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!_$(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let n="";if(this.isNodeType("Statement")&&_B(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=_I(t),n="expression"),this.isNodeType("Expression")&&_U(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let r=this.node;return r&&(_D(t,r),_K(r)),_X.call(this,t),this.type=t.type,Lt.call(this),this.requeue(),[n?this.get(n):this]},replaceExpressionWithStatements:function(e){Ln.call(this);let t=[],n=function e(t,n){let r=[],i=!0;for(let s of t)if(_F(s)||(i=!1),_B(s))r.push(s);else if(_j(s))r.push(s.expression);else if(_q(s)){if("var"!==s.kind)return;for(let e of s.declarations){let t=__(e);for(let e of Object.keys(t))n.push(_P(t[e]));e.init&&r.push(_v("=",e.id,e.init))}i=!0}else if(_R(s)){let t=s.consequent?e([s.consequent],n):_w(),i=s.alternate?e([s.alternate],n):_w();if(!t||!i)return;r.push(_C(s.test,t,i))}else if(_M(s)){let t=e(s.body,n);if(!t)return;r.push(t)}else{if(!_F(s))return;0===t.indexOf(s)&&(i=!0)}return(i&&r.push(_w()),1===r.length)?r[0]:_J(r)}(e,t);if(n){for(let e of t)this.scope.push({id:e});return this.replaceWith(n)[0].get("expressions")}let r=this.getFunctionParent(),i=r?.node.async,s=r?.node.generator,a=_T([],_k(e));this.replaceWith(_A(a,[]));let o=this.get("callee");for(let e of(o.get("body").scope.hoistVariables(e=>this.scope.push({id:e})),o.getCompletionRecords())){if(!e.isExpressionStatement())continue;let t=e.findParent(e=>e.isLoop());if(t){let n=t.getData("expressionReplacementReturnUid");n?n=_N(n.name):(n=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",_V(_P(n))),t.setData("expressionReplacementReturnUid",n)),e.get("expression").replaceWith(_v("=",_P(n),e.node.expression))}else e.replaceWith(_V(e.node.expression))}o.arrowFunctionToExpression();let l=i&&Ld.hasType(o.node.body,"AwaitExpression",_S),u=s&&Ld.hasType(o.node.body,"YieldExpression",_S);return l&&(o.set("async",!0),u||this.replaceWith(_E(this.node))),u&&(o.set("generator",!0),this.replaceWith(_W(this.node,!0))),o.get("body.body")},replaceInline:function(e){if(Ln.call(this),!Array.isArray(e))return this.replaceWith(e);if(!Array.isArray(this.container))return this.replaceWithMultiple(e);{e=_x.call(this,e);let t=_y.call(this,e);return this.remove(),t}},evaluateTruthy:function(){let e=this.evaluate();if(e.confident)return!!e.value},evaluate:function(){let e={confident:!0,deoptPath:null,seen:new Map},t=_1(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},ensureBlock:function(){let e,t,n=this.get("body"),r=n.node;if(Array.isArray(n))throw Error("Can't convert array path to a block statement");if(!r)throw Error("Can't convert node without a body");if(n.isBlockStatement())return r;let i=[],s="body";n.isStatement()?(t="body",e=0,i.push(n.node)):(s+=".body.0",this.isFunction()?(e="argument",i.push(Nu(n.node))):(e="expression",i.push(_7(n.node)))),this.node.body=_8(i);let a=this.get(s);return Ls.call(n,a,t?a.node[t]:a.node,t,e),this.node},unwrapFunctionEnvironment:function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");N_(this)},arrowFunctionToExpression:function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:n=!0}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let r=this;n||(r=r.ensureFunctionName(!1)??r);let{thisBinding:i,fnPath:s}=N_(r,n,e,t);if(s.ensureBlock(),s.node.type="FunctionExpression",!n){let e=i?null:s.scope.generateUidIdentifier("arrowCheckId");return e&&s.parentPath.scope.push({id:e,init:No([])}),s.get("body").unshiftContainer("body",_7(_6(this.hub.addHelper("newArrowCheck"),[Nh(),e?Ne(e.name):Ne(i)]))),s.replaceWith(_6(Ni(s.node,Ne("bind")),[e?Ne(e.name):Nh()]))[0].get("callee.object")}return s},splitExportDeclaration:function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let t=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),r=e.isScope()?e.scope.parent:e.scope,i=e.node.id,s=!1;i?n&&r.hasBinding(i.name)&&(s=!0,i=r.generateUidIdentifier(i.name)):(s=!0,i=r.generateUidIdentifier("default"),(t||n)&&(e.node.id=Nv(i)));let a=t?e.node:NE("var",[Nk(Nv(i),e.node)]),o=Nw(null,[NA(Nv(i),Ne("default"))]);return this.insertAfter(o),this.replaceWith(a),s&&r.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let t=Nw(null,Object.keys(e.getOuterBindingIdentifiers()).map(e=>NA(Ne(e),Ne(e))));return this.insertAfter(t),this.replaceWith(e.node),this},ensureFunctionName:function(e){var t;let n;if(this.node.id)return this;let r=NT(this.node,this.parent);if(null==r)return this;let{name:i}=r;if(!e&&/[\uD800-\uDFFF]/.test(i)||i.startsWith("get ")||i.startsWith("set "))return null;let s=Ne(i=Ng(i.replace(/[/ ]/g,"_")));NP(s,r.originalNode);let a={needsRename:!1,name:i},{scope:o}=this,l=o.getOwnBinding(i);if(l?"param"===l.kind&&(a.needsRename=!0):(o.parent.hasBinding(i)||o.hasGlobal(i))&&this.traverse(P4({"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}),a),!a.needsRename)return this.node.id=s,o.getProgramParent().referencesSet.add(s.name),this;if(o.hasBinding(s.name)&&!o.hasGlobal(s.name))return o.rename(s.name),this.node.id=s,o.getProgramParent().referencesSet.add(s.name),this;if(!Nb(this.node))return null;let u=o.generateUidIdentifier(s.name),c=[];for(let e=0,r=-1===(n=(t=this.node).params.findIndex(e=>Nx(e)||NS(e)))?t.params.length:n;e<r;e++)c.push(o.generateUidIdentifier("x"));let p=kz.expression.ast`
|
|
20
|
+
(function (${u}) {
|
|
21
|
+
function ${s}(${c}) {
|
|
22
|
+
return ${Nv(u)}.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
${Nv(s)}.toString = function () {
|
|
26
|
+
return ${Nv(u)}.toString();
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return ${Nv(s)};
|
|
30
|
+
})(${Nm(this.node)})
|
|
31
|
+
`;return this.replaceWith(p)[0].get("arguments.0")},matchesPattern:function(e,t){return NK(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return Nq(this.type,e)},canHaveVariableDeclarationOrExpression:function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},canSwapBetweenExpressionAndStatement:function(e){return"body"===this.key&&!!this.parentPath.isArrowFunctionExpression()&&(this.isExpression()?NB(e):!!this.isBlockStatement()&&Nj(e))},isCompletionRecord:function(e){let t=this,n=!0;do{let{type:r,container:i}=t;if(!n&&(t.isFunction()||"StaticBlock"===r))return!!e;if(n=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression())return!0},isStatementOrBlock:function(){return!(this.parentPath.isLabeledStatement()||NB(this.container))&&NM.includes(this.key)},referencesImport:function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?NU(this.node.property,{value:t}):this.node.property.name===t)){let t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}let n=this.scope.getBinding(this.node.name);if(n?.kind!=="module")return!1;let r=n.path,i=r.parentPath;return!!i.isImportDeclaration()&&i.node.source.value===e&&(!t||!!(r.isImportDefaultSpecifier()&&"default"===t||r.isImportNamespaceSpecifier()&&"*"===t||r.isImportSpecifier()&&NR(r.node.imported,{name:t})))},getSource:function(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},willIMaybeExecuteBefore:function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},_guessExecutionStatusRelativeTo:function(e){return function e(t,n,r){let i,s={this:NJ(t),target:NJ(n)};if(s.target.node!==s.this.node)return function(t,n,r){let i,s=r.get(t.node);if(s){if(i=s.get(n.node))return i===NW?"unknown":i}else r.set(t.node,s=new Map);s.set(n.node,NW);let a=function(t,n,r){let i;if(!n.isFunctionDeclaration())return"before"===e(t,n,r)?"before":"unknown";if(n.parentPath.isExportDeclaration())return"unknown";let s=n.scope.getBinding(n.node.id.name);if(!s.references)return"before";for(let a of s.referencePaths){if(a.find(e=>e.node===n.node))continue;if("callee"!==a.key||!a.parentPath.isCallExpression())return"unknown";let s=e(t,a,r);if(i&&i!==s)return"unknown";i=s}return i}(t,n,r);return s.set(n.node,a),a}(t,s.target,r);let a={target:n.getAncestry(),this:t.getAncestry()};if(a.target.includes(t))return"after";if(a.this.includes(n))return"before";let o={target:0,this:0};for(;!i&&o.this<a.this.length;){let e=a.this[o.this];o.target=a.target.indexOf(e),o.target>=0?i=e:o.this++}if(!i)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(Nz(a.this,o.this-1)||Nz(a.target,o.target-1))return"unknown";let l={this:a.this[o.this-1],target:a.target[o.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";let u=NF[i.type],c={this:u.indexOf(l.this.parentKey),target:u.indexOf(l.target.parentKey)};return c.target>c.this?"before":"after"}(this,e,new Map)},resolve:function(e,t){if(t?.includes(this))return this;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let n=this.scope.getBinding(this.node.name);if(!n||!n.constant||"module"===n.kind)return this;if(n.path!==this){let r=n.path.resolve(e,t);return this.find(e=>e.node===r.node)?this:r}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){let n=NV(this.node);if(!N$(n))return this;let r=n.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression())for(let n of i.get("properties")){if(!n.isProperty())continue;let i=n.get("key"),s=n.isnt("computed")&&i.isIdentifier({name:r});if(s=s||i.isLiteral({value:r}))return n.get("value").resolve(e,t)}else if(i.isArrayExpression()&&!isNaN(+r)){let n=i.get("elements")[r];if(n)return n.resolve(e,t)}}return this},isConstantExpression:function(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral()},isInStrictMode:function(){return!!(this.isProgram()?this:this.parentPath).find(e=>{let t;if(e.isProgram({sourceType:"module"})||e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(let e of t.directives)if("use strict"===e.value.value)return!0;return!1})},isDenylisted:function(){return!!this.opts.denylist?.includes(this.node.type)},skip:function(){this.shouldSkip=!0},skipKey:function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},stop:function(){this._traverseFlags|=6},setContext:function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),Lt.call(this),this},requeue:function(e=this){if(!e.removed)for(let t of(e.shouldSkip=!1,this.contexts))t.maybeQueue(e)},requeueComputedKeyAndDecorators:function(){let{context:e,node:t}=this;if(!s2(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let t of this.get("decorators"))e.maybeQueue(t)},remove:function(){I9.call(this),Ln.call(this),this.parentPath&&I6.some(e=>e(this,this.parentPath))||(this.node&&!this.opts?.noScope&&Object.keys(TW(this.node,!1,!1,!0)).forEach(e=>this.scope.removeBinding(e)),this.shareCommentsWithSiblings(),Array.isArray(this.container)?(this.container.splice(this.key,1),_b.call(this,this.key,-1)):_X.call(this,null)),this._traverseFlags|=5,this.parent&&Cf(this)?.delete(this.node),this.node=null},insertBefore:function(e){I9.call(this);let t=_x.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||_l(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||n.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return _m.call(this,t);if(this.isStatementOrBlock()){let e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(_n(n?[e]:[]));return r.unshiftContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},insertAfter:function(e){if(I9.call(this),this.isSequenceExpression())return _g(this.get("expressions")).insertAfter(e);let t=_x.call(this,e),{parentPath:n,parent:r}=this;if(n.isExpressionStatement()||n.isLabeledStatement()||_l(r)||n.isExportDefaultDeclaration()&&this.isDeclaration())return n.insertAfter(t.map(e=>_u(e)?_s(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!n.isJSXElement()||n.isForStatement()&&"init"===this.key){if(this.node){let e=this.node,{scope:r}=this;if(r.path.isPattern())return _e(e),this.replaceWith(_r(I7([],e),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return _p(t.parent)&&(_g(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(e);else if(_o(e)&&_d(e.callee))t.unshift(e),t.push(_f());else if(function(e,t){if(!_a(e)||!_c(e.left))return!1;let n=t.getBlockParent();return n.hasOwnBinding(e.left.name)&&n.getOwnBinding(e.left.name).constantViolations.length<=1}(e,r))t.unshift(e),t.push(_i(e.left));else if(r.isPure(e,!0))t.push(e);else{n.isMethod({computed:!0,key:e})&&(r=r.parent);let i=r.generateDeclaredUidIdentifier();t.unshift(_s(_t("=",_i(i),e))),t.push(_s(_i(i)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return _y.call(this,t);if(this.isStatementOrBlock()){let e=this.node,n=e&&(!this.isExpressionStatement()||null!=e.expression),[r]=this.replaceWith(_n(n?[e]:[]));return r.pushContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},unshiftContainer:function(e,t){I9.call(this);let n=_x.call(this,t),r=this.node[e],i=N9.get({parentPath:this,parent:this.node,container:r,listKey:e,key:0}).setContext(this.context);return _m.call(i,n)},pushContainer:function(e,t){I9.call(this);let n=_x.call(this,t),r=this.node[e];return N9.get({parentPath:this,parent:this.node,container:r,listKey:e,key:r.length}).setContext(this.context).replaceWithMultiple(n)},getOpposite:function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},getCompletionRecords:function(e=!1){return N1(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return N9.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)},getPrevSibling:function(){return this.getSibling(this.key-1)},getNextSibling:function(){return this.getSibling(this.key+1)},getAllNextSiblings:function(){let e=this.key;if(!Number.isInteger(e))return[];let t=[],n=this.container.length;for(let r=e+1;r<n;r++)t.push(this.getSibling(r));return t},getAllPrevSiblings:function(){let e=this.key;if(!Number.isInteger(e))return[];let t=[];for(let n=e-1;n>=0;n--)t.push(this.getSibling(n));return t},get:function(e,t=!0){!0===t&&(t=this.context);let n=e.split(".");return 1===n.length?N2.call(this,e,t):N3.call(this,n,t)},getAssignmentIdentifiers:function(){return NX(this.node)},getBindingIdentifiers:function(e){return NH(this.node,e)},getOuterBindingIdentifiers:function(e){return NY(this.node,e)},getBindingIdentifierPaths:function(e=!1,t=!1){let n=[this],r=Object.create(null);for(;n.length;){let i=n.shift();if(!i||!i.node)continue;let s=NH.keys[i.node.type];if(i.isIdentifier()){e?(r[i.node.name]=r[i.node.name]||[]).push(i):r[i.node.name]=i;continue}if(i.isExportDeclaration()){let e=i.get("declaration");e.isDeclaration()&&n.push(e);continue}if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){let t=s[e],r=i.get(t);Array.isArray(r)?n.push(...r):r.node&&n.push(r)}}return r},getOuterBindingIdentifierPaths:function(e=!1){return this.getBindingIdentifierPaths(e,!0)},shareCommentsWithSiblings:function(){if("string"==typeof this.key)return;let e=this.node;if(!e)return;let t=e.trailingComments,n=e.leadingComments;if(!t&&!n)return;let r=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=!!r.node,a=!!i.node;s&&(n&&r.addComments("trailing",N8(n,r.node.trailingComments)),t&&!a&&r.addComments("trailing",t)),a&&(t&&i.addComments("leading",N8(t,i.node.leadingComments)),n&&!s&&i.addComments("leading",n))},addComment:function(e,t,n){N4(this.node,e,t,n)},addComments:function(e,t){N5(this.node,e,t)}}),oD)){let t=`is${e}`,n=tc[t];N9.prototype[t]=function(e){return n(this.node,e)},N9.prototype[`assert${e}`]=function(t){if(!n(this.node,t))throw TypeError(`Expected node path of type ${e}`)}}for(let e of(Object.assign(N9.prototype,PG),Object.keys(Pk)))!e.startsWith("_")&&(oD.includes(e)||oD.push(e));function N7(e){if(!e)return!1;for(let t of e){if(!t)continue;let e=this.node;if(!e)return!0;let n=t.call(this.state,this,this.state);if(n&&"object"==typeof n&&"function"==typeof n.then)throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(n)throw Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e||this._traverseFlags>0)return!0}return!1}function Le(){let e,t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;)e=t.scope,t=t.parentPath;this.scope=this.getScope(e),this.scope?.init()}function Lt(){let e;if(this.opts?.noScope)return;let t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;){if(t.opts?.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope?.init()}function Ln(){if(!this.removed){if(this.parentPath&&(this.parent=this.parentPath.node),this.parent&&this.inList){let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}if(this.container&&this.node!==this.container[this.key]){let e=-1;if(Array.isArray(this.container))e=this.container.indexOf(this.node);else for(e of Object.keys(this.container))if(this.container[e]===this.node)break;-1===e?this.key=null:La.call(this,e)}}}function Lr(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function Li(e){this.contexts.push(e),this.setContext(e)}function Ls(e,t,n,r){this.listKey=n,this.container=t,this.parentPath=e||this.parentPath,La.call(this,r)}function La(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type??null}function Lo(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath);)t=e.contexts;return t}var Ll=class{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(e,t,n=TypeError){return new n(t)}},{VISITOR_KEYS:Lu,removeProperties:Lc,traverseFast:Lp}=tc;function Ld(e,t={},n,r,i,s){if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!i&&s)throw Error("visitSelf can only be used when providing a NodePath.");Lu[e.type]&&(P4(t),PC(e,t,n,r,i,void 0,s))}}Ld.visitors=Ci,Ld.verify=P5,Ld.explode=P4,Ld.cheap=function(e,t){Lp(e,t)},Ld.node=function(e,t,n,r,i,s){PC(e,t,n,r,i,s)},Ld.clearNode=function(e,t){Lc(e,t)},Ld.removeProperties=function(e,t){return Lp(e,Ld.clearNode,t),e},Ld.hasType=function(e,t,n){return!n?.includes(e.type)&&(e.type===t||Lp(e,function(e){return n?.includes(e.type)?Lp.skip:e.type===t?Lp.stop:void 0}))},Ld.cache=Cm;let Lf=e=>()=>e,{keys:Lh}=Object,Lm=e=>void 0===e;function Ly(e,t,n){if(n||(n=t,t="."),function(e,t){if("string"!=typeof e)throw Error("selector should be string!");if("object"!=typeof t)throw Error("obj should be object!")}(e,n),!e)return n;if(!Object.keys(n).length)return;let r=e.split(t).filter(Boolean);for(let[e,i]of r.entries()){let s=r.slice(e).join(t);if(!Lm(n[s])){n=n[s];break}if(!n[i]){n=void 0;break}n=n[i]}return n}let Lg=new Map,Lb=(e,t,n={})=>{let{env:r=e8,coverage:i=Lg,instrumentName:s="TYPE_CHECK"}=n,a=(({stack:e})=>e.split("\n")[3])(Error()),o=r[s],l=new Set;return o&&!a.includes("type-checker.spec.js")&&i.set(a,{covered:l,typeNames:e}),(e,n)=>{let[r,i]=t(e,n);return o&&1/0!==r&&l.add(r),i}};function Lx(e){let t=e.split(" "),n=t.pop(),r=n.split("!"),i=t.join(" ");return"+"===n?[`${i} `,Boolean]:"-"===n?[`${i} !`,Boolean]:1===r.length?[`${i} `,n]:[`${i} !`,r[1]]}let LS=e=>"string"==typeof e,{isArray:LT}=Array,Lv=e=>{let[t,n]=e.split(":"),r=LE(t);if(!n)return[r,"",""];let[i,s]=n.split(/ ->\s?/);if(s&&"!"!==s)throw Error(`☝️Looks like not: '${s}', it must be empty or '!' in checker: '${e}'`);return[r,i.trim(),s]},LE=e=>"+"===e,Lk=e=>t=>(n,...r)=>"function"==typeof t?e(t(n,...r),n):e(t,n),Lw={"=":Lk((e,t)=>t===e),">":Lk((e,t)=>t>e),"<":Lk((e,t)=>t<e),">=":Lk((e,t)=>t>=e),"<=":Lk((e,t)=>t<=e)},LA=(e,t)=>e?!t:t,LP=(e,t,n)=>{if(!t)return LA(e,!1);let{type:r}=t;return"string"==typeof n&&LA(e,r===n)},LC=(e,t,n,r)=>{if("function"!=typeof e)return!1;let i=function(e,t,n){let{name:r}=e;return tc[r]===e?e(t):e(t,n)}(e,n,r);return t?!i:i},LI=[1/0,!1],L_=(e,t={})=>{let{instrumentCoverage:n=Lb}=t,r=function(e){let t=[];for(let n of e){if(LT(n)&&1===n.length){let[e]=n,r=Lx(e);t.push(r);continue}if(LT(n)){t.push(function(e){if(3===e.length){let[t,n,r]=e;return[t,Lw[n](r)]}return e}(n));continue}if(LS(n)&&n.includes(" -> ")){let e=Lx(n);t.push(e);continue}t.push(["+",n])}return t}(e),i=[],s=new Set;for(let[e,t]of r){let[n,r,a]=Lv(e);s.add(n),i.push({result:n,selector:r,not:a,typeName:t})}return function(e){if(!e.has(!0))throw Error("☝️Looks like type checker missing successful route ('+'), it will always fail")}(s),function(e){for(let{typeName:t}of e.filter(LN))if(t.includes(":"))throw Error("☝️Looks like typeName includes ':', most likely you forget the arrow: ' -> '")}(i),n(e,(e,t)=>{for(let[n,{result:r,selector:s,typeName:a,not:o}]of i.entries()){let i=e;if(s&&(i=Ly(s,e)),LP(o,i,a)||LC(a,o,i,t))return[n,r]}return LI},t)},LN=({typeName:e})=>"string"==typeof e,{isStringLiteral:LL,isIdentifier:LO,isIfStatement:LD,isStatement:LM,isForOfStatement:LF,isVariableDeclaration:LB,isMemberExpression:Lj,isArrayExpression:LR,isObjectExpression:L$,isLabeledStatement:LU,isTryStatement:Lq,isProgram:LK,isBlockStatement:LV,isTSModuleBlock:LJ,isSwitchCase:Lz,isExpressionStatement:LW,isExportDeclaration:LX}=tc,LH=e=>LK(e.parentPath),LY=e=>LV(e.parentPath),LG=({node:e,parentPath:t})=>e===t.node.body,LQ=e=>LR(e.parentPath),LZ=({parentPath:e})=>e.isCallExpression(),L0=({parentPath:e})=>e.isReturnStatement(),L1=e=>t=>e(t.getNextSibling()),L2=e=>t=>e(t.getPrevSibling()),L3=e=>t=>e(t.parentPath),L4=L1(e=>!!e.node&&!e.isEmptyStatement()),L5=e=>L4(e.parentPath),L8=e=>LH(e)&&!L4(e),L6=e=>e.node===e.parentPath.node.body?.[0];function L9(e){let t=e.node?.loc?.start?.line;return e.node?.loc?.end?.line!==t}let L7=e=>e.node;function Oe(e){let{elements:t}=e.node,[n,r]=t;return LL(n)&&LO(r)}let Ot=e=>{let t,n=e.get("elements"),[r]=n;return(!r||!!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(r.type))&&(L$(t=n.at(-1))||(t=n.at(-2)),!!L$(t)&&t.node.properties.length)},On=e=>{let{elements:t}=e.node;if(2!==t.length)return;let[n,r]=t;return LO(n)&&LO(r)},Or=e=>{let t=e.get("elements");if(2!==t.length)return!1;let[n,r]=t;return!!LL(n)&&!!LR(r)&&!Oe(r)},Oi=e=>LD(e)||LM(e),Os=e=>LF(e)||LM(e),Oa=e=>{let t=e.find(Os);return!!LF(t)||!!LB(t)&&LF(t.parentPath)},Oo=e=>e.parentPath?.isIfStatement(),Ol=e=>{let t=e.node?.loc?.end?.line,n=e.getNextSibling().node?.loc?.start?.line;return!!n&&n-t>1},Ou=({parentPath:e})=>LU(e),Oc=e=>t=>{for(let n of e)if(n(t))return!0;return!1},Op=e=>{let t=e.node||e;return t.trailingComments?.length},Od=e=>{let{decorators:t}=e.node;return!!t&&t.length},Of=e=>e.node?.leadingComments?.length,Oh=e=>!e.node.trailingComments?.length,Om=L_([["-: parentPath -> !CallExpression"],["+",({node:e,parentPath:t})=>{let[n]=t.node.arguments;return e===n}]]),Oy=L_([["-: parentPath -> !CallExpression"],["+",function({node:e,parentPath:t}){return e===t.node.arguments.at(-1)}]]),Og=e=>Oc(e?.()||[]),{isProgram:Ob,isFile:Ox,isStatement:OS,expressionStatement:OT,program:Ov,file:OE}=tc,Ok=(e,t,n)=>{if(e)throw Error(((e,t,n=null)=>{var r=e,i=t;if("string"!=typeof r)throw Error("template should be a string!");if("object"!=typeof i)throw Error("values should be an object!");let s=e;for(let r of n?e.match(/{{(.*?)}}/g):Lh(t)){let[e,i]=function(e,t,n){if(!n)return[`{{ ${e} }}`,t[e]];let r=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[r]||"";if(!r.includes("|"))return[e,i];let[s,a]=r.split("|"),o=n[a],l=t[s];return o?[e,o(l)]:[e,l]}(r,t,n),a=Lf(i);for(;s.includes(e);)s=s.replace(e,a)}return s.includes("{{")&&(s=s.replace(/{{.*?}}/g,"")),s})(n,{path:t,type:t.type}))},Ow=(e,t,n,r)=>"function"==typeof e?e(t,n,r):function(e,t,n,r){let{print:i,split:s,condition:a,before:o=s,beforeIf:l=a,after:u=s,afterIf:c=a}=(e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;let{satisfy:t,afterSatisfy:n=t,beforeSatisfy:r=t}=e;return{afterIf:Og(n),beforeIf:Og(r),...e}})(e);l?.(t,n,r)&&o(t,n,r),i(t,n,r),c?.(t,n,r)&&u(t,n,r)}(e,t,n,r);function OA(e){let t={value:e};return(...e)=>{let[n]=e;return e.length?(t.value=n,n):t.value}}let OP="__putout_newline_after",OC=(e,t)=>e&&O_(t);function OI(e){e.__putout_newline_before=!0}function O_(e){e[OP]=!0}let ON=e=>e.getPrevSibling()[OP],OL=(e,{print:t,indent:n})=>{e&&(n.inc(),n.inc(),t.breakline(),n.dec(),n.dec())},OO=(e,t)=>()=>e(`//${t}`),OD=(e,t)=>()=>e(`/*${t}*/
|
|
32
|
+
`),OM=e=>"CommentBlock"===e.type,OF=e=>"CommentLine"===e.type;function OB(e,t){let{node:n}=e;return!!n.loc&&n.loc.start.line===t.start.line}let{isArrowFunctionExpression:Oj,isObjectProperty:OR,isVariableDeclarator:O$,isClassProperty:OU,isTSPropertySignature:Oq,isSpreadElement:OK,isClassBody:OV,isBinaryExpression:OJ,isClassMethod:Oz,isDecorator:OW}=tc,OX=Oc([OR,O$,OU,Oq,OK]),OH=e=>{let{parentPath:t}=e;return!!O$(t)&&e===t.get("init")||!!Oj(t)&&O$(t.parentPath)},OY=e=>{let{parentPath:t}=e;return e===t.get("properties")[0]||!!(OV(t)&&OU(e))&&e===t.get("body")[0]},OG=(e,t,n,{currentTraverse:r={}}={})=>{let{print:i,maybe:s,indent:a}=t;if(!n.comments)return;let{leadingComments:o}=e.node;if(!o?.length)return;if((e=>{let{printLeadingCommentLine:t,printLeadingCommentBlock:n}=e;return!!t||!!n})(r))return((e,t,n,{currentTraverse:r})=>{let{print:i}=t,{leadingComments:s=[]}=e.node,{printLeadingCommentLine:a,printLeadingCommentBlock:o}=r,l=s.length-1;for(let[r,u]of s.entries()){let{value:s}=u;if(OF(u)){a?.(e,t,n,{index:r,printComment:OO(i,s),isLast:r===l});continue}OM(u)&&o?.(e,t,n,{index:r,printComment:OD(i,s)})}})(e,t,n,{currentTraverse:r});if(e?.parentPath.node?.decorators)return;let l=e.isSwitchCase();if(!l&&Op(e.getPrevSibling()))return;let u=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),c=OX(e),p=OY(e)||!l&&!e.isClassMethod()&&!u&&!c,d=o.length-1;for(let[t,{type:n,value:r}]of o.entries()){if("CommentLine"===n){!t&&(e.isClassProperty()||e.isBinaryExpression())||s.indent(p),OL(u,{print:i,indent:a}),function(e){let{loc:t,leadingComments:n}=e.node;if(!OX(e))return!1;let[r]=n,{line:i}=r.loc.start;return!function(e){let[t]=e.node.leadingComments,{line:n}=t.loc.start;return e.getPrevSibling().node?.loc.start.line===n}(e)&&i<=t.start.line-1}(e)?s.print.breakline(!OY(e)):s.print.space(c&&!e.isClassProperty()),i(`//${r}`),t===d?(s.print.breakline(c),s.print.newline(!c),Oz(e)?a():(OJ(e)||OW(e))&&(a.inc(),a(),a.dec())):i.newline(),OH(e)&&(a.inc(),a(),a.dec());continue}if("CommentBlock"===n){s.indent(p);let t=e.isClassMethod(),n=e.isDirective(),a=e.isObjectProperty();a&&i.breakline(),i(`/*${r}*/`),(e.isStatement()||e.isTSEnumMember()||n||t||a||l)&&(i.newline(),OI(e),s.indent(t||a||l));continue}}},{isCallExpression:OQ,isMemberExpression:OZ}=tc,{assign:O0}=Object,O1=L_([["-: parentPath -> !CallExpression"],["+",function({node:e,parentPath:t}){return e===t.node.callee}]]);function O2(e){let t={type:e.type};if(OQ(e)){let{callee:n}=e.node;O0(t,{args:e.node.arguments.length}),OZ(n)&&O0(t,{name:n.property.name})}return t}let O3=()=>({type:"CommentLine"}),{isCallExpression:O4}=tc,O5=L_([["-: length -> !","=",2],["+: 0.name -> -"]]),O8=L_([["-",O5],["+: length",">",1]]),{isIfStatement:O6}=tc,O9=({type:e})=>"CommentLine"===e,O7=L_([["-: 0 -> !CallExpression"],["-: 0.name -> !","=","get"],["+: 0.args ->","=",1]]),De=L_(["+: -> UnaryExpression","+: -> IfStatement"]),Dt=L_([["-: node.object -> !Identifier"],["-: node.property -> !Identifier"],["+",Oy],["+: parentPath.parentPath -> CallExpression"]]),Dn=e=>(t,{properties:n})=>e(n),Dr=e=>{let t,[n,r]=[(t=[...function(e){var t;let n=[],r=e.get("object");for(;!r.isIdentifier()&&(n.unshift(O2(r)),(r=(t=r).isCallExpression()?t.get("callee"):t).isMemberExpression());)r=r.get("object");return n}(e),...function(e){let t=[];for(;e.isMemberExpression()&&(Op(e.get("object"))&&t.push(O3()),OZ(e=function(e,t){let n=e.parentPath;return O1(e)?(t.push(O2(n)),n.parentPath):n}(e,t))););return t.push({type:e.type}),t}(e)]).pop(),t];return Di(e,{root:n,properties:r})},Di=L_([["-",Dt],["-",(e,{root:t})=>De(t)],["-",Dn(O7)],["+",Dn(e=>e.find(O9))],["-",e=>e.find(Ds)],["-",Om],["+",(e,{properties:t})=>O8(t.filter(O4))]]),Ds=e=>{let t=e.find(O6),n=!1;return t&&t.get("test").traverse({MemberExpression(t){e===t&&(n=!0,e.stop())}}),n},{isDecorator:Da,isMemberExpression:Do,isCallExpression:Dl}=tc,Du=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,Dc=e=>{let{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function Dp(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}let Dd=e=>{let{parentPath:t}=e;if(Da(e)){let{loc:t}=e.node.trailingComments[0];return!Dp(e,t)}return!Do(t)&&!L8(e)},Df=({node:e})=>!e.body.length,Dh=(e,{write:t,maybe:n},r)=>{if(!r.comments)return;let i=e.node.comments||e.node.innerComments;if(!i)return;let s=i.length-1,a=e.isProgram();for(let[r,{type:o,value:l}]of i.entries()){if("CommentLine"===o){if(n.write.breakline(L4(e)||!a),t("//"),t(l),a&&Df(e)){n.write.newline(r<s);continue}t.newline();continue}"CommentBlock"===o&&(t("/*"),t(l),t("*/"))}};var Dm=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,Dy=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;let{stringify:Dg}=JSON,{LOG:Db,LOG_ALL:Dx,LOG_TOKENS:DS,LOG_TERM:DT,LOG_DEBUG:Dv}={};function DE(){let e=[];return(...t)=>{let[n]=t;if(t.length)return void e.push(n);let r=e.join("");return e=[],r}}let Dk=e=>e.node.extra?.parenthesized,Dw=e=>"function"==typeof e?DA(e):DP(e),DA=e=>({condition:Dk,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),DP=({print:e,condition:t,checkParens:n=!0,...r})=>({...DA(e),...r,condition:(e,r,i)=>{let s=t?.(e,r,i);return n?s||Dk(e):s}}),DC=()=>{},DI=(e,t,n,r={})=>{let{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:l}=t,{params:u=e.get("params"),braceOpen:c="(",braceClose:p=")",printSpace:d=a.space,printAfterOpen:f=DC,printBeforeClose:h=DC,printAfterClose:m=DC}=r;s&&l(e.get("typeParameters")),function(e,{print:t,braceOpen:n},r){(!D_(e)||r.roundBraces.arrow)&&t(n)}(e,{print:a,braceOpen:c},n),Dh(e,t,n),f();let y=u.length-1;for(let e=0;e<=y;e++){let t=e===y;l(u[e]),t||(a(","),d())}o.print(i?.trailingComma,","),h(),function(e,{print:t,braceClose:n},r){(!D_(e)||r.roundBraces.arrow)&&t(n)}(e,{print:a,braceClose:p},n),m()};function D_(e){if("ArrowFunctionExpression"!==e.type)return!1;let{params:t}=e.node,[n]=t;return 1===t.length&&"Identifier"===n.type}let DN=(e,t)=>{let{print:n}=t,{returnType:r}=e.node;r&&(n(":"),n.space(),n("__returnType"))},DL=Dw((e,t,n)=>{let{print:r,maybe:i}=t,{async:s}=e.node;i.print(s,"async "),DI(e,t,n),DN(e,t),r.space(),r("=>");let a=e.get("body").isJSXElement();i.print.space(!a),r("__body")}),{isExpressionStatement:DO,isFunctionDeclaration:DD}=tc,DM=({node:e})=>e.body.body.length,DF=L_([["+",L1(DD)],["+",L4],["-: -> !",L1(DO)]]),DB=L_([["+: parentPath -> !ExportDefaultDeclaration"],["+: -> !",DM]]),Dj=L_([["+: parentPath.parentPath -> TSModuleBlock"],["-: parentPath -> !BlockStatement"],["+: -> !",DM]]),DR=L_(["+: parentPath -> !ExportNamedDeclaration"]),{isExportDeclaration:D$,isClassDeclaration:DU}=tc,Dq=e=>{let t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())},DK=e=>t=>e(t.get("declaration")),DV=L_([["-: -> !",L2(D$)],["+",DK(Od)]]),DJ=L_([["-: -> !ExportNamedDeclaration"],["+",DK(DU)]]),Dz=e=>(t,n,r,i)=>{let{parentPath:s}=t,{print:a}=n;if(D$(s))return Ow(e,t,n,r);if(DJ(t)){let i=t.get("declaration");return DV(t)&&a.newline(),DW(i,n),Ow(e,t,n,r)}DW(t,n),Ow(e,t,n,r)};function DW(e,t){let{maybe:n,traverse:r,write:i}=t,{decorators:s}=e.node;if(!s)return[];for(let t of e.get("decorators"))n.write.breakline(Dq(e)),r(t),i.breakline()}let DX=(e,t,{maybe:n,traverse:r})=>{let{computed:i}=e.node;n.write(i,"["),r(t),n.write(i,"]")},DH=(e,t)=>{let n=e.get("key");DX(e,n,t)},DY=(e,{write:t})=>{let{kind:n,generator:r}=e.node;"get"===n||"set"===n?t(`${n} `):r&&t("*")},DG=({isNewline:e,printer:t})=>()=>{let{print:n}=t;if(!e)return n.space();n.breakline()},DQ=e=>!Op(e)&&L4(e),DZ={print:Dz((e,t,n)=>{let r,i,s,a,o,{print:l}=t,{node:u}=e,{accessibility:c}=u;c&&(l(c),l(" ")),u.static&&(l("static"),l(" ")),u.override&&(l("override"),l(" ")),u.async&&(l("async"),l(" ")),DY(e,t),DH(e,t),r=e.get("params").filter(Od).length,i=(e=>{let t=e.get("params"),n=0,r=0;for(let e of t){let t=e.get("decorators");if(!t.length)continue;let[i]=t;++r,Of(i)&&++n}return n===r})(e),s=DG({isNewline:r,printer:t}),a=(({isNewline:e,isAllHasComments:t,printer:n,type:r})=>()=>{if(!e)return;let{indent:i,print:s}=n;t||i[r](),s.breakline()})({type:"inc",printer:t,isNewline:r,isAllHasComments:i}),o=(({isNewline:e,printer:t,isAllHasComments:n,type:r})=>()=>{if(!e)return;let{indent:i,print:s}=t;n||i[r](),s.breakline()})({type:"dec",printer:t,isNewline:r,isAllHasComments:i}),DI(e,t,n,{printAfterOpen:a,printSpace:s,printBeforeClose:o}),DN(e,t),l.space(),l("__body")}),afterSatisfy:()=>[DQ],after(e,{print:t}){t.linebreak()}},D0=Dw((e,t,n)=>{let{print:r,maybe:i,write:s,traverse:a}=t,{node:o}=e,{generator:l,async:u}=o;i.write(u,"async "),s("function"),i.write(l,"*");let c=e.get("id");L7(c)&&(s(" "),a(c)),DI(e,t,n),DN(e,t),r.space(),r("__body")}),D1=Dw((e,t)=>{let{maybe:n,traverse:r}=t,{prefix:i,operator:s}=e.node,a=e.get("argument");n.print(i,s),n.print(/^(delete|typeof|void|throw)$/.test(s)," "),r(a),n.print(!i,s)}),D2=Dw((e,{print:t})=>{D4("await",{print:t})}),D3=Dw((e,{print:t,maybe:n})=>{let{delegate:r}=e.node;t("yield"),n.print(r,"*"),t(" "),t("__argument")});function D4(e,{print:t}){t(`${e} `),t("__argument")}let D5=Dw({condition:L_(["-: node.object -> !ObjectExpression","+: parentPath -> ArrowFunctionExpression"]),print:(e,t)=>{let{print:n,maybe:r,traverse:i}=t,s=e.get("object"),a=e.get("property"),{computed:o}=e.node,l=Dr(e);if(i(s),o)return DX(e,a,t);r.indent.inc(l),r.print.breakline(l),n("."),n("__property"),r.indent.dec(l)}}),D8=Dw((e,{print:t,maybe:n})=>{let{computed:r,optional:i}=e.node;if(t("__object"),n.print(i,"?."),n.print(!i&&!r,"."),r){t("["),t("__property"),t("]");return}t("__property")}),D6=e=>(t,n,r)=>{let{maybe:i}=n,{declare:s}=t.node;i.print(s,"declare "),e(t,n,r)},D9=e=>Me(e.parentPath.parentPath),D7=L_([["+",D9],["+",L4],["+: parentPath.parentPath -> TSModuleBlock"]]),{isFunction:Me}=tc,Mt=L_([["+: node.typeParameters -> -"],["+: node.typeParameters.params.length","<",2]]),Mn=Dz((e,t,n)=>{let{node:r}=e,{id:i,abstract:s,superClass:a}=r,{print:o,indent:l,maybe:u,traverse:c}=t;if(u.print(s,"abstract "),o("class"),u.print(i||a," "),o("__id"),o("__typeParameters"),r.superClass&&(u.print(i," "),o("extends "),o("__superClass"),o("__superTypeArguments")),r.implements){Mt(e)&&o(" "),o("implements ");let t=e.get("implements"),n=t.length-1;for(let[e,r]of t.entries())o(r),u.print(e<n,", ")}o.space(),o("{"),(({node:e})=>e.body.body.length)(e)&&o.newline(),l.inc();let p=e.get("body");for(let e of p.get("body"))l(),c(e);(({node:e})=>e.body.body.length)(e)||Dh(p,t,n),l.dec(),(({node:e})=>e.body.body.length)(e)&&l(),o("}")}),Mr={beforeIf:L_([["+: -> !",({parentPath:e})=>LX(e)]]),before:(e,{indent:t})=>{t()},print:D6((e,t,n)=>{Mn(e,t,n)}),afterIf:D7,after(e,{write:t}){t.newline(),!D9(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),O_(e))}},{isIdentifier:Mi,isObjectExpression:Ms,isArrayExpression:Ma}=tc,{isArray:Mo}=Array,Ml=e=>{let t=e.get("arguments");return Mo(t)?t:[]},Mu=L_([["-",e=>Ma(e.node?.arguments?.[0])],["+: node.arguments.length",">=",(e,{maxArgsInOneLine:t})=>t]]),Mc=L_(["-: -> !CallExpression","-: node.callee -> !MemberExpression","+: node.callee.object -> CallExpression"]),Mp=L_([["+",e=>Mc(e.get("arguments")[0])],["-: -> !",function(e){for(let t of Ml(e))if(Mi(t)&&t.node.name.length>10)return!0;return!1}],["+",LZ]]),Md=Dw((e,t,n)=>{let{print:r,maybe:i}=t,s=Ml(e);r("__callee"),r("__typeArguments"),i.print(e.node.optional,"?."),r("(");let a=Mu(e,n),o=a||Mp(e,n);(function(e,t,{maxArgs:n,multiline:r}){let{indent:i,print:s,maybe:a}=t,o=e.length-1;for(let[t,i]of(a.indent.inc(r),e.entries())){if(r&&(n&&Ma(i)?s.space():(o||n&&!Ms(i)||Mc(i))&&s.breakline()),s(i),r&&(o||n)){s(",");continue}(Mc(i)||t<o)&&s(","),t<o&&s.space()}r&&(i.dec(),a.print.breakline(o||n||Mc(e[0])))})(s,t,{maxArgs:a,multiline:o}),r(")")}),{isMemberExpression:Mf,isClassDeclaration:Mh}=tc,Mm=Dw({print(e,t,n){let{print:r,maybe:i}=t,s=e.parentPath.getPrevSibling();i.print.breakline(Mh(s)),r("new "),r("__callee"),r("__typeArguments");let a=e.get("arguments");My("(",e,t,n);let o=a.length-1;for(let[e,t]of a.entries())r(t),i.print(e<o,", ");My(")",e,t,n)}});function My(e,t,n,r){let{maybe:i,print:s}=n,{roundBraces:a}=r,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>Mf(e))(t))return s(e);i.print(a.new,e)}let{isArrayExpression:Mg}=tc,Mb=["NullLiteral","NumericLiteral","BigIntLiteral"],Mx=e=>{let{parentPath:t}=e;if(!Mg(t))return!1;let[n,r]=t.node.elements;return r===e.node&&Mb.includes(n.type)},{isStringLiteral:MS,isObjectExpression:MT}=tc,Mv=(e,{multiline:t})=>t,ME=(e,{isLast:t})=>t,Mk=(e,{trailingComma:t})=>t,Mw=L_([["+: -> !",({node:e,parentPath:t})=>e===t.node.properties.at(-1)],["-: -> !",Mv],["+",Mk]]),MA=L_([["-: -> !SpreadElement"],["+",Mw]]),MP=L_([["-: -> SpreadElement"],["-",L1(Of)],["+",Ol]]),MC=L_([["-: -> !",Mv],["+: -> SpreadElement"],["+: -> !",L1(Of)]]),{isMemberExpression:MI,isAssignmentExpression:M_,isArrowFunctionExpression:MN}=tc,ML=L_([["-",L3(M_)],["+",L3(MN)],["+",({parentPath:e})=>LW(e)]]),MO=e=>t=>e(t.get("callee")),MD=L_([["-: parentPath -> !CallExpression"],["-: parentPath -> !",MO(MI)],["+: parentPath",MO(Dr)]]),MM=L_([["+",Mx],["-: parentPath -> !ArrayExpression"],["-: parentPath.parentPath -> !ArrayExpression"],["+: parentPath.parentPath",LZ]]),MF=L_([["+",Mx],["+: parentPath.parentPath.node.elements.0 -> StringLiteral"]]),MB=L_([["-",e=>!e.node.properties.length],["-: parentPath -> ForOfStatement"],["-",e=>{let{parentPath:t}=e;return!(!t.isCallExpression()||L9(e))&&e!==t.get("arguments").at(-1)}],["-",Oa],["-",e=>LD(e.find(Oi))],["+: node.properties.0 -> SpreadElement"],["+",L9],["+",e=>e.node.properties[0].value]]),Mj=L_([["-: -> !",Mv],["+: -> !",Of]]),MR=Dw({checkParens:!1,condition:ML,print:(e,t,n)=>{let{trailingComma:r}=n,{print:i,maybe:s,indent:a}=t,o=MM(e);s.indent.inc(!o);let l=e.get("properties"),u=MB(e);i("{"),Dh(e,t,n),s.print.newline(u);let c=MD(e);for(let e of(s.indent.inc(c),l))Mj(e,{multiline:u})&&a(),i(e),e.isObjectMethod()||!Op(e)&&(s.print(MA(e,{multiline:u,trailingComma:r}),","),MC(e,{multiline:u})&&i.newline(),MP(e)&&i.linebreak());a.dec(),M$(e,{multiline:u})&&a(),o&&a.inc(),i("}"),s.indent.dec(c)}}),M$=L_([["+",MF],["-: -> !",Mv],["+: -> !",MM]]),MU=L_([["-: parentPath -> ReturnStatement"],["-: node.operator -> !",e=>"+"===e],["-: node.loc",function(e){return e?.start.line===e?.end.line}],["+: -> BinaryExpression"]]),Mq=L_([["-",Mv],["+: -> !",({node:e,parentPath:t})=>e===t.node.properties.at(-1)]]),MK=({computed:e,isAssign:t,keyPath:n,valuePath:r})=>!e&&!t&&n.node.name!==r.node.name,{isMemberExpression:MV,isSequenceExpression:MJ}=tc,Mz=e=>(t,n,r)=>{e(t,n,r),MW(t,n)};function MW(e,t){let{parentPath:n,node:r}=e,{typeAnnotation:i}=r,{write:s,traverse:a}=t;MJ(n)||!MV(n)&&i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}let{isAssignmentPattern:MX,isObjectPattern:MH}=tc;function MY(e){for(let{value:t}of e.node.properties)if(MH(t))return!0;return!1}function MG(e){for(let{value:t}of e.node.properties)if(MX(t))return!0;return!1}let{isFunction:MQ,isVariableDeclarator:MZ,isObjectProperty:M0}=tc,M1=(e,{is:t})=>t,M2=e=>!!MQ(e.parentPath)||MQ(e.parentPath.parentPath),M3=({path:e,valuePath:t,property:n})=>{if(!L9(t)||L7(n.getPrevSibling()))return!1;let{parentPath:r}=e;return(!MZ(r)||!!MG(e))&&!M0(r)},M4=L_(["-: node.value -> !AssignmentPattern","+: node.value.right -> ObjectExpression"]),M5=L2(M4),M8=L1(M4),M6=L_([["-: ->",(e,{couple:t})=>t],["+: node.value -> AssignmentPattern"],["+: -> !",M8]]),M9=L_([["-: ->",M6],["+: node.key.name.length -> !",(e,{semantics:t})=>{let{maxPropertiesLengthInOneLine:n}=t;return e>n}]]),M7=(e,{print:t})=>{let n=e=>t(`//${e}`),r=e=>t(`/*${e}*/`),{leadingComments:i}=e.node;if(i)for(let{type:e,value:s}of i)"CommentLine"===e?n(s):r(s),t.breakline()},{isAssignmentPattern:Fe,isIdentifier:Ft}=tc,Fn=e=>e.value,Fr=L_([["-: node.properties.length",">",(e,{maxPropertiesInOneLine:t})=>t],["-",(e,{maxPropertiesLengthInOneLine:t})=>{let{properties:n}=e.node;for(let{key:e,value:r}of n){if(Fe(r)){let{left:e,right:n}=r;if((Ft(e)&&Ft(n)?e.name.length+n.name.length:e.name.length)>=t)return!0}if(Ft(e)){let{name:n}=e;if(n.length>=t)return!0}}return!1}],["+: parentPath -> VariableDeclarator"]]),{isIdentifier:Fi,isAssignmentPattern:Fs,isObjectProperty:Fa,isFunction:Fo}=tc,Fl=L3(L_([["+",Fo],["-: -> !AssignmentPattern"],["+: parentPath",Fo]])),Fu=L_([["-",Fl],["-",Oa],["-: node.properties.length","=",1],["+",function(e){for(let t of e.node.properties.map(Fn).filter(Fi))if(t.name.length>4)return!0;return!1}]]),Fc=L_([["-",Fl],["+",MG]]),Fp=L_([["+",function(e){return!Fl(e)&&e.node.properties.filter(Fa).map(Fn).filter(Fs).length>1}],["+",function(e){for(let t of e.node.properties)if(t.leadingComments)return!0;return!1}],["+",function(e){for(let{computed:t}of e.node.properties)if(t)return!0;return!1}],["+",MY],["-",Fr],["+",Fc],["+",Fu],["+: parentPath -> ObjectProperty"]]),{isForOfStatement:Fd,isAssignmentPattern:Ff}=tc,Fh=(e,{couple:t})=>t,Fm=L_([["+",Fh],["+",M1],["+",M8],["+",M5],["+",L1(e=>e.node)],["-: key -> -"],["-",function(e){return Ff(e.getPrevSibling().node.value)}],["-: parentPath",function({parentPath:e}){return Fd(e.parentPath.parentPath)}],["+: node.value.right -> ObjectExpression"]]),Fy=L_([["+",M1],["+",M5],["+",Fh],["+",M8],["-: key -> -"],["+: node.value.right -> ObjectExpression"]]),Fg=L_([["-",M2],["+",M5],["+",M1]]),Fb=L_([["-: node.value -> AssignmentPattern"],["+",M8]]),Fx={print:Mz((e,t,n)=>{let r=!e.parentPath.isArrayPattern(),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}=n,{print:a,maybe:o,indent:l}=t;o.indent.inc(r),a("{");let u=e.get("properties"),c=u.length-1,p=Fp(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),d=c&&MY(e),f=!M2(e);for(let[r,i]of(o.print.newline(p&&f),u.entries())){if(Fg(i,{is:p})&&l(),i.isRestElement()){let e=p||d;a(i),o.print.newline(e);continue}let s=i.get("value"),u=i.get("key"),f=s.isAssignmentPattern(),{shorthand:h,computed:m}=i.node,y=M3({path:e,property:i,valuePath:s});if(M9(i,{couple:y,semantics:n})&&a.breakline(),M7(i,{print:a}),DH(i,t),!h||MK({computed:m,isAssign:f,keyPath:u,valuePath:s})?(a(":"),a.space(),a(s)):f&&a(s),Fm(i,{is:p,couple:y})&&a(","),Fy(i,{is:p,couple:y})){a.newline(),Fb(i)&&l();continue}r<c&&a.space()}l.dec(),o.indent(p||function(e){let t=e.get("properties"),n=t.length;for(let e of t)if(M4(e))return n>1;return!1}(e)),o.indent.inc(!r),a("}")})},{isAssignmentExpression:FS,isExpressionStatement:FT}=tc,{isReturnStatement:Fv}=tc,FE=Dw({checkParens:!1,printLeadingCommentLine:(e,t,n,{printComment:r,isLast:i})=>{let{parentPath:s}=e,{print:a,maybe:o}=t;Fv(s)||(o.print.breakline(!i),r(),a.breakline())},printLeadingCommentBlock:(e,t,n,{printComment:r})=>{let{parentPath:i}=e,{print:s}=t;Fv(i)||(r(),s.indent())},condition:(e,t,n)=>{let{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ObjectPattern"===e.node.left.type||"MemberExpression"===r.type||"LogicalExpression"===i||"BinaryExpression"===i||"UnaryExpression"===i||(!!s.assign||!!Of(e))&&Dk(e)},print(e,t){let{print:n}=t,{operator:r}=e.node;((e,{print:t,indent:n})=>{let{parentPath:r}=e;if(Fv(r)&&Of(e)){n.inc();let{leadingComments:r}=e.node;for(let{type:e,value:n}of(t.breakline(),r))t("CommentLine"===e?`//${n}`:`/*${n}*/`),t.breakline()}})(e,t),n("__left"),n.space(),n(r),((e,{print:t})=>{!function(e){let{right:t}=e.node;return!!e.parentPath.find(FT)&&FS(t)}(e)?t.space():t.breakline()})(e,t),n("__right"),(LY(e)||LH(e))&&(n(";"),n.breakline()),((e,{print:t,indent:n})=>{let{parentPath:r}=e;Fv(r)&&Of(e)&&(n.dec(),t.breakline())})(e,t)}}),{isIdentifier:Fk,isMemberExpression:Fw}=tc;function FA(e,t){!function(e){if(!(e&&"object"==typeof e))throw Error(`☝️ Looks like 'path' not object but '${typeof e}'`)}(e);let n=FC(t);return e.scope.getAllBindings()[n]}let FP=(e,t)=>FA(e,t)?.path,FC=e=>"string"==typeof e?e:Fk(e)?e.name:Fw(e)?FC(e.object):"",{isOptionalMemberExpression:FI,isMemberExpression:F_,isIdentifier:FN,isLiteral:FL}=tc,FO=e=>!!(FL(e)||FN(e)||F_(e))||FI(e),{isArrayExpression:FD,isLiteral:FM,isIdentifier:FF,isMemberExpression:FB,isTemplateElement:Fj,isRegExpLiteral:FR,isClassMethod:F$,isTemplateLiteral:FU,isJSXText:Fq,isJSXAttribute:FK,isJSXIdentifier:FV,isTSTypeReference:FJ,isTSTypeParameter:Fz,isTSAsExpression:FW,isTSLiteralType:FX}=tc;function FH(e){if(FF(e=e.node||e)||FV(e))return e.name;if(FR(e))return e.pattern;if(FU(e))return FH(e.quasis[0]);if(FM(e))return e.value;if(Fj(e))return e.value.raw;if(FB(e))return`${FH(e.object)}.${FH(e.property)}`;if(FD(e))return function e(t,n=[]){for(let r of t.elements){if(FD(r)){e(r,n);continue}n.push(FH(r))}return n.join(",")}(e);if(Fq(e))return e.value;if(FK(e))return e.name.name;if(F$(e))return FH(e.key);if(FJ(e))return FH(e.typeName);if(Fz(e))return FH(e.name);if(FW(e))return FH(e.expression);if(FX(e))return FH(e.literal);throw Error(`'operator.extract(node)' understands only Literals, Identifiers, TemplateLiteral, TemplateElement, RegExpLiteral, ArrayExpression, MemberExpression, JSXIdentifier, JSXAttribute, JSXText, TSTypeParameter, TSAsExpression, TSLiteralType and TSTypeReference🤷, found: ${e.type}`)}function FY(e){let{parentPath:t}=e;return(!!e.isIdentifier()||!!e.isLiteral())&&!!t.isObjectProperty({computed:!1})&&!function(e){let[t]=Object.keys(function(e){let{referencesSet:t}=e.scope;return t?Object.fromEntries(t.entries()):{}}(e)),n=e.scope.bindings[t];if(!n)return!1;let{referencePaths:r}=n;for(let e of r)if(e.parentPath.parentPath?.isAssignmentExpression())return!0;return!1}(e)}let FG={init:(e,t)=>FG[e]=t},{entries:FQ}=Object,FZ=e=>{if(!e.node)return;let{scope:t}=e,n=F1(e),r=F2(e);if(t&&!r.node){let r=t.getProgramParent().block;t.block!==r||n.node||(r.comments=F0(e))}if(!e.parentPath.isArrayPattern())return void e.remove();let i=e.parentPath.get("elements"),s=i.length-1;for(let[t,n]of FQ(i))if(n===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}},F0=e=>{let{leadingComments:t}=e.node;if(t?.length)return t;let{parentPath:n}=e;return e.isVariableDeclarator()&&(({node:e})=>1===e.declarations.length)(n)?n.node.leadingComments:[]},F1=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),F2=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling(),F3=(e,t,n)=>{e.traverse({ObjectProperty(e){let{node:r}=e,{key:i,value:s}=r;i.name!==s.name||i.name===t&&(i.name=n,s.name=n,r.shorthand=!0,e.stop())}})},{isNumericLiteral:F4,isStringLiteral:F5}=tc,F8=(e,t)=>{var n,r;let i,s=e.node||e;F4(s)?(n=s,i=String(r=t),n.value=r,n.raw=i,n.extra.rawValue=r,n.extra.raw=i):F5(s)&&function(e,t){let{raw:n,extra:r,value:i}=e;if(e.value=String(t),'""'===n){e.raw=n.replace(n,`"${t}"`);return}if(n||!i){e.raw="'"+String.raw`${t}`+"'";return}r&&(e.raw=r.raw.replace(i,t),e.extra.rawValue=i)}(s,t)},{isCallExpression:F6,isObjectExpression:F9}=tc,F7=(e,t,{firstLevel:n=!1}={})=>{let r=[],i=function(e){if(!F9(e))return e.node||e;return F6(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:e.node||e}}(e),s=Be({name:t,collector:r});return n?s(e):Ld(i,{noScope:!0,ObjectExpression:s}),r},Be=({name:e,collector:t})=>n=>{for(let r of n.get("properties")){if(r.isSpreadElement()||r.isRestElement())continue;let n=r.get("key");n.isConditionalExpression()||e===FH(n)&&t.push(r)}},{isObjectExpression:Bt,isObjectPattern:Bn}=tc,Br=(e,t)=>{if(!Bt(e)&&!Bn(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);for(let n of e.get("properties"))if(FH(n.get("key"))===t)return n;return null},{isArrowFunctionExpression:Bi,isStatement:Bs,isBlockStatement:Ba,blockStatement:Bo,expressionStatement:Bl}=tc,Bu=(e,t)=>{let{parentPath:n}=e;return t&&!Bs(t)||Ba(t)||!Bi(n)?{currentPath:e}:(n.node.body=Bo([Bl(e.node)]),{currentPath:n.get("body.body.0")})},{isExpression:Bc,toStatement:Bp,expressionStatement:Bd}=tc,Bf=e=>{let{type:t}=e;return["ObjectProperty"].includes(t)?e:Bc(e)?Bd(e):Bp(e)},{isSequenceExpression:Bh,isArrayExpression:Bm}=tc,By=e=>e.node||e,{isExpressionStatement:Bg}=tc,{assign:Bb}=Object,Bx=(e,t)=>{var n,r;(function(e){if(!e)throw Error("☝️ Looks like 'path' is empty in 'replaceWith()'")})(e),t=(n=(r=n=t).__putout_replaced_with?r.__putout_replaced_with:r).node?n.node:n,Bg(e.parentPath)&&(e.__putout_replaced_with=t,e=e.parentPath);let{comments:i,loc:s}=e.node,{currentPath:a}=Bu(e,t);return a.replaceWith(t),Bb(a.node,{comments:i,loc:s}),a},{matchesPattern:BS,isArrayExpression:BT,isImportDeclaration:Bv,isExportDeclaration:BE,isStatement:Bk,isSequenceExpression:Bw,expressionStatement:BA}=tc,BP=(e,t)=>{let{comments:n}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,Bk(e)&&!Bk(t)?e.insertAfter(BA(t)):BT(e.parentPath)?e.parentPath.node.elements.splice(e.key,1,e.node,t):e.insertAfter(t),e.node.comments=n},BC=e=>{for(let t of e.scope.getProgramParent().path.node.body)if(Bv(t)||BE(t))return!0;return!1},{isStringLiteral:BI,isArrayExpression:B_,isObjectExpression:BN,isTemplateLiteral:BL,isBooleanLiteral:BO}=tc,BD=L_([["-: parentPath.parentPath -> ObjectProperty"],["-: node.elements.0 -> !StringLiteral"],["-: parentPath -> !ArrayExpression"],["-: parentPath.node.elements.length","=",2],["+",e=>{let t=e.node.elements.filter(BI).length;return e.node.elements.length===t}]]),BM=L_([["-: -> !",LZ],["+: parentPath.parentPath -> ForOfStatement"]]),BF=L_([["-: node.elements.length -> -"],["+",e=>{let[t,n]=e.node.elements;return BO(t)&&BN(n)}],["-",BM],["+: node.elements.0 -> ObjectExpression"],["-: node.elements.1 -> SpreadElement"],["+",e=>{let{elements:t}=e.node,n=t.at(0),r=t.at(-1);return BI(n)&&BN(r)}]]),BB=L_([["-",function(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;let t=e.parentPath.node.elements,n=t.filter(B_).length,r=!B_(t.at(-1));if(n&&r)return!1;let{length:i}=t;return i<=3&&1!==i}],["-",e=>{let[t,n]=e.node.elements;return!!t&&!!n&&!!BN(n)&&(!!BI(t)||BL(t))}],["+: -> !",e=>{let[t,n]=e.node.elements;return!!BI(t)&&!!BI(n)&&t.value.length>20}],["+: -> !",LQ]]),Bj=L_([["+",BD],["-: -> !",BB],["+: -> !",BF]]),BR=L_([["-: -> !",LQ],["-: parentPath -> !",Or],["+: parentPath.node.elements.length","=",2]]),B$=L_([["-: -> !",Mv],["+",(e,{needsToHideIndent:t})=>t],["+: -> !",({node:e})=>BN(e.elements.at(-1))]]),{isObjectExpression:BU,isObjectProperty:Bq,isCallExpression:BK,isAwaitExpression:BV,isBooleanLiteral:BJ,isNullLiteral:Bz,isStringLiteral:BW,isSpreadElement:BX,isIdentifier:BH,isNumericLiteral:BY,isArrayExpression:BG}=tc,BQ=L_([["-: node.elements -> !",function(e){for(let t of e)if(BY(t))return!0;return!1}],["+: -> !",e=>e.find(Bq)]]),BZ=L_([["-: -> !",e=>{let{elements:t}=e.node,[n,r]=t;return BW(n)&&BW(r)}],["-: -> !",LQ],["+: parentPath.node.elements.0 -> ArrayExpression"]]),{round:B0}=Math,B1=(e,{maxElementLengthInOneLine:t})=>{let{elements:n}=e.node;for(let e of n.filter(BW))if(e.value.length>=t)return!0;return!1},B2=L_([["-: node.elements.length","<",2],["+",(e,{maxElementLengthInOneLine:t})=>{let{elements:n}=e.node,r=3*t;for(let e of n.filter(BW))if(e.value.length>=r)return!0;return!1}],["-: -> !",LZ],["-",e=>{let{elements:t}=e.node;return t.filter(BU).length}],["+",B1],["+",(e,{maxElementLengthInOneLine:t})=>{let[n]=e.node.elements;return!!BH(n)&&n.name.length>t}]]),B3=L_([["-: node.elements.0 -> ObjectExpression"],["+",e=>{let{elements:t}=e.node;return t.length>3}]]),B4=L_([["-: node.elements.0 -> !StringLiteral"],["+",(e,{maxElementsInOneLine:t})=>{let{elements:n}=e.node;return n.length>t}]]),B5=L_([["-: node.elements.length -> !","=",1],["+",({node:e,parentPath:t})=>e===t.node.body]]),B8=e=>{let{elements:t}=e.node,{length:n}=t.filter(BW);return t.length===n},B6=L_([["-: parentPath -> !ArrayExpression"],["-: -> !",B8],["-",B1],["+: node.elements.length",(e,{maxElementsInOneLine:t})=>e<=t]]),B9=L_([["-: node.elements.length -> -"],["-",e=>{let t=e.get("elements");return!!MT(t.at(-1))&&t.filter(MS).length===t.length-1}],["-",B6],["+",function(e){let[t]=e.node.elements;return BK(t)}],["+",(e,{maxElementLengthInOneLine:t})=>{let n=e.get("elements").filter(BG),{length:r}=n;if(!r||Bq(e.parentPath))return!1;for(let e of n){if(B1(e,{maxElementLengthInOneLine:t}))break;if(B8(e))return!0}return!1}],["+",B5],["+",B2],["+",B4],["+",B3],["+",Ot],["-",function(e){let t=e.get("elements");if(1!==t.length)return!1;let[n]=t;return(!n.isStringLiteral()||!(n.node.value.length>10))&&(!!(!n.isIdentifier()&&FO(n))||n.isMemberExpression())}],["-",e=>{let{elements:t}=e.node;if(t.length>1)return!1;let[n]=t;return BX(n)}],["-",On],["-",BF],["-",function(e){return e.parentPath.isForOfStatement()}],["-",e=>{let{elements:t}=e.node,[n,r]=t;return BJ(n)&&FO(r)}],["-",e=>{let{elements:t}=e.node,[n,r]=t;return Bz(n)&&FO(r)}],["-",e=>{let{elements:t}=e.node,[n,r]=t;if(FO(n))return BK(r)||BV(r)}],["-",(e,{maxElementsInOneLine:t})=>{let{node:n,parentPath:r}=e,{elements:i}=n,{length:s}=i,[a,o]=i;return!!r.isCallExpression()&&!!BW(a)&&!!BW(o)&&s<t}],["-",function(e){let{elements:t}=e.node,[n,r]=t;if(t.length>2||!BW(n)||!BW(r))return!1;let i=n.value.length;return B0(r.value.length/i)>2}],["-",e=>{let{node:t,parentPath:n}=e,{elements:r}=t,{length:i}=r,[s,a]=r;return!(i>2)&&!!n.isObjectProperty()&&!!BW(s)&&!!BW(a)&&!L9(e)}],["-",Or],["-",e=>{let{elements:t}=e.node,[n,r]=t;return LL(n)&&Lj(r)}],["-",Oe],["-",e=>{let{elements:t}=e.node,[n,r]=t;return LO(n)&&LL(r)}],["-",e=>{let{elements:t}=e.node,[n,r]=t;return FO(n)&&BU(r)}],["-",e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression()],["-",BZ],["-",BQ],["+",function(e,{maxElementLengthInOneLine:t}){if(e.get("elements").length<2)return!1;for(let n of e.get("elements"))if(n.isStringLiteral()&&n.node.value.length>t)return!0;return!1}],["+",L9]]),B7=L_([["-: -> !",Mv],["+: -> SpreadElement"],["+: -> !ObjectExpression"]]),je=({parentPath:e})=>{let{elements:t}=e.node;return 1===t.length},jt=L_([["-: -> !",LQ],["-: parentPath ->",L9],["+",On],["+",je]]),jn=L_([["-: parentPath -> !ArrayExpression"],["-: parentPath ->",L9],["+",On],["+",je]]),{isSpreadElement:jr,isCallExpression:ji}=tc,js=e=>t=>e(t.at(-1)),ja=L_([["-: -> !",Ot],["-: node.elements",js(jr)],["+: node.elements -> !",js(ji)]]),{isObjectExpression:jo}=tc,jl=L_([["+: -> !",ME],["-: -> !",(e,{needsIndentBeforeElement:t})=>t],["+",Mk]]),ju=L_([["+",jl],["+",ja]]),jc=L_([["-: -> !",Mv],["-",L1(jo)],["+: -> !ObjectExpression"]]),jp=L_([["+",L1(jo)],["-: -> SpreadElement"],["-: -> Identifier"],["+: -> !CallExpression"]]),jd=L_([["-",ME],["+",L1(jp)],["+: -> !ObjectExpression"]]),{isObjectExpression:jf}=tc,jh=L_(["-: -> SpreadElement","-: -> Identifier","+: -> !CallExpression"]),jm=L_([["-",jh],["-",L1(jf)],["+",L2(jf)]]),jy=Mz((e,{indent:t,maybe:n,print:r},i)=>{let{maxElementsInOneLine:s}=i;r("[");let a=e.get("elements");t.inc();let o=!(({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement())(e)&&a.length>s,l=a.length-1;for(let[e,t]of(n.print(o&&a.length,"\n"),a.entries()))n.indent(o),r(t),o?r(",\n"):e<l&&(r(","),r.space());t.dec(),n.indent(a.length&&o),r("]")}),jg=Mz((e,{print:t})=>{t("..."),t("__argument")}),jb=()=>{},jx=Dw({checkParens:!1,condition:(e,t,n)=>{let{parentPath:r}=e,{type:i}=r,{roundBraces:s}=n;return"ArrowFunctionExpression"===i||"ConditionalExpression"===i&&e!==r.get("test")||"LogicalExpression"===i||s.sequence},print(e,t){let{write:n,traverse:r,indent:i,maybe:s}=t,a=e.get("expressions"),o=a.length-1,l=Of(e);for(let[u,c]of(l&&(i.inc(),n.breakline(),((e,{print:t})=>{if(Of(e)){let{leadingComments:n}=e.node;for(let{type:e,value:r}of n)t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}})(e,t)),a.entries()))r(c),u<o&&(n(","),s.write.space(!l),s.print.breakline(l));l&&(i.dec(),n.breakline())}});jx.printLeadingCommentLine=jb,jx.printLeadingCommentBlock=jb;let jS=Dw({print:(e,t)=>{let{print:n}=t;n("__tag"),n("__quasi")}}),{isBinaryExpression:jT}=tc,jv=(O=(e,{print:t})=>{t("__left"),t.space(),t("+"),t.breakline(),t("__right")},(e,t,n)=>{let{indent:r,print:i}=t,s=(({parentPath:e})=>jT(e))(e);s||(r.inc(),i.breakline()),O(e,t),s||r.dec()}),jE=Dw((e,{print:t,indent:n,maybe:r})=>{let{operator:i}=e.node;if("in"===i||"instanceof"===i){t("__left"),t(" "),t(i),t(" "),t("__right");return}if(MU(e))return jv(e,{print:t,indent:n,maybe:r});t("__left"),t.space(),t(e.node.operator),((e,{print:t})=>{let{right:n}=e.node;return"UnaryExpression"===n.type&&"+"===n.operator?t(" "):t.space()})(e,{print:t}),t("__right")}),{isLogicalExpression:jk}=tc,jw=L_(["+: -> ReturnStatement","+: -> VariableDeclarator"]),jA=Dw({condition:L_(["+: parentPath -> UnaryExpression","+: parentPath -> AwaitExpression"]),print(e,{print:t,maybe:n},r){let{operator:i}=e.node;t("__left");let s=jP(e,r);n.indent.inc(s),s?t.breakline():t.space(),n.indent.dec(s),t(i),t.space(),t("__right")}}),jP=L_([["-: -> !",(e,{maxLogicalsInOneLine:t})=>{let[n,r]=(e=>{let[t]=function e(t){let n=0;do{++n;let r=t.get("right");if(jk(r)&&(n+=e(r)[0]),!function(e){let{operator:t}=e.node;return"||"===t||"&&"===t}(t=t.get("left")))break}while(t.isLogicalExpression())return[n]}(e),[n,r]=function(e){let t=0;do++t,e=e.parentPath;while(e.isLogicalExpression())return[t,{type:e.type}]}(e);return[r,t+n,t,n]})(e);return!!jw(n)&&r>t}],["+: node.operator ->","=","||"],["+: node.operator ->","=","&&"]]),jC=L_([["-: node.alternate -> ObjectExpression"],["-: node.consequent -> ObjectExpression"],["-: parentPath -> CallExpression"],["+",L9]]),jI=Dw((e,t)=>{let{print:n}=t;jC(e)?(({print:e,indent:t})=>{e("__test"),e.space(),e("?"),t.inc(),e.breakline(),e("__consequent"),e.space(),e(":"),e.breakline(),t.dec(),e("__alternate")})(t):(n("__test"),n.space(),n("?"),n.space(),n("__consequent"),n.space(),n(":"),n.space(),n("__alternate"))}),j_=Dw({print:(e,t)=>{let{print:n,maybe:r}=t,{options:i}=e.node;n("import("),n("__source"),r.print(i,","),r.print.space(i),n("__options"),n(")")}}),{isJSXElement:jN}=tc,{isClassAccessorProperty:jL}=tc,jO=Dz((e,t)=>{let{node:n}=e,{accessibility:r,declare:i,optional:s,definite:a}=n,{print:o,maybe:l}=t;jL(e)&&o("accessor ");let u=e.get("value");l.print(i,"declare "),l.print(r,`${r} `),l.print(n.static,"static "),l.print(n.readonly,"readonly "),DY(e,t),DH(e,t),l.print(s,"?"),l.print(a,"!"),MW(e,t),L7(u)&&(o.space(),o("="),o.space(),o("__value")),o(";"),o.newline()}),jD=e=>e.node.directives?e.get("directives"):[],jM=e=>!L8(e),jF=e=>e.parentPath.isSwitchCase(),{isVariableDeclaration:jB,isFunction:jj,isBlockStatement:jR}=tc,j$=L_(["-: -> ClassDeclaration","+: -> !FunctionDeclaration"]),jU=L_([L3(jR),L4]),jq=L_([["-: parentPath -> BlockStatement"],["+: -> !",L1(jB)],["+: node.declaration -> !",jj]]),jK=(e,{print:t},n)=>{let{roundBraces:r}=n,{node:i}=e;if(i){if(jW(e,{roundBraces:r}))return void t.space();t(" ")}},jV=L_([["-: -> !SequenceExpression"],["+",(e,{roundBraces:t})=>t.sequence]]),jJ=L_([["-: -> !ArrowFunctionExpression"],["+",(e,{roundBraces:t})=>t.arrow]]),jz=L_([["-: -> !UnaryExpression"],["+: node.operator",e=>"!"===e]]),jW=L_([["+: -> StringLiteral"],["+: -> TemplateLiteral"],["+: -> ArrayExpression"],["+: -> ObjectExpression"],["+",jz],["+",jV],["+",jJ]]),{isBlockStatement:jX}=tc,jH=L_([["-",L4],["+: -> !",L8]]),jY=L_(["-: node.consequent.length -> -","+: node.consequent.0 -> !BlockStatement"]),jG=(e,{write:t,traverse:n,indent:r})=>{let i=e.get("attributes");if(i.length){for(let e of(t.space(),t("with"),t.space(),t("{"),t.breakline(),r.inc(),i))r(),n(e),t.newline();r.dec(),t("}")}},{isExportNamespaceSpecifier:jQ,isVariableDeclaration:jZ,isExportNamedDeclaration:j0,isExportDefaultSpecifier:j1}=tc,j2={maxOneLineSpecifiers:2},j3=Dz({beforeIf(e){let t=e.getPrevSibling();return!ON(e)&&jZ(t)},before(e,{print:t}){t.linebreak()},print(e,t,n){let{print:r,traverse:i,indent:s,maybe:a}=t,{trailingComma:o}=n,{exportKind:l}=e.node,u=e.get("specifiers"),{maxOneLineSpecifiers:c}=j2,p=e.get("source");if(s(),r("export"),"type"===l&&u.length&&r(" type"),jQ(u[0])){r(" "),r(u[0]),r(" from "),r("__source"),jG(e,t),r(";"),a.print.newline(!L8(e));return}let d=u.length,f=!L7(p)||d>c;if(u&&!e.node.declaration){r.space();let[n,...l]=u;if(u.length)if(j1(n)&&!l.length)i(n);else{j1(n)?(i(n),r(","),r.space()):l.unshift(n),r("{"),s.inc(),a.print.newline(f);let e=d-1;for(let[t,n]of l.entries()){let s="type"===n.node.exportKind,l=t<e;a.indent(f),a.print(s,"type "),i(n),l&&!f?r(", "):f&&a.print(l||o,","),a.print.newline(f)}s.dec(),s(),r("}")}else r("{}");let c=e.get("source");L7(c)&&(r(" from "),i(c),jG(e,t)),r(";"),a.print.newline(L4(e)||e.parentPath.isTSModuleBlock());return}r(" "),r("__declaration")},afterIf:e=>!(L8(e)||e.get("declaration")[OP])&&(!!Ol(e)||LY(e)),after(e,{print:t,indent:n}){j0(e.getNextSibling())&&n(),t.newline(),O_(e)}});function j4(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}let{isExportDeclaration:j5}=tc,j8={print(e,t,n){let{print:r,maybe:i,write:s,traverse:a,indent:o}=t,{phase:l}=e.node,u="type"===e.node.importKind,c=e.get("specifiers");o(),s("import"),i.write(u," type"),i.write(l,` ${l}`);let p=!1,d=c.length-1,{defaults:f,namespaces:h,imports:m}=(e=>{let t=[],n=[],r=[];for(let i of e){if("ImportDefaultSpecifier"===i.type){t.push(i);continue}if("ImportNamespaceSpecifier"===i.type){n.push(i);continue}if("ImportSpecifier"===i.type){r.push(i);continue}}return{defaults:t,namespaces:n,imports:r}})(c);for(let e of(i.write(c.length," "),f))a(e.get("local")),i.write(d,","),i.write.space(d);for(let e of h)s("* as "),a(e.get("local"));let y=function(e,t){let{maxSpecifiersInOneLine:n,maxPropertiesLengthInOneLine:r}=t;for(let{node:t}of e)if(t.imported.name!==t.local.name||t.imported.name.length>=r)return 1;return n}(m,n),g=m.length-1;for(let[e,t]of m.entries()){let n=e===g,r=!n,{imported:l,local:u}=t.node;if(o.inc(),i.write(!p,"{"),i.write.breakline(g>=y),p=!0,"type"===t.node.importKind&&s("type "),a(t.get("imported")),l.name!==u.name&&(s(" as "),s(u.name)),g<y&&r&&(i.write(d,","),i.write.space(d)),g>=y){i.write(d,",");let t=e===d,n=e===d-1;i.write.newline(n&&f.length),i.write.newline(t)}o.dec(),i.write(n,"}")}i.write(c.length," from"),r.space(),r("__source"),jG(e,t),r(";"),L4(e)&&r.newline()},afterIf:e=>!L8(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),O_(e)}};j8.printTrailingCommentBlock=(e,t,n,{printComment:r})=>{let{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!j5(s)),r()},j8.printTrailingCommentLine=(e,t,n,{printComment:r})=>{let{print:i}=t;r(),i.breakline()};let j6={print(e,{print:t,maybe:n}){let{test:r,update:i,body:s}=e.node;if(n.indent(!Ou(e)),t("for"),t.space(),t("("),t("__init"),t(";"),n.print.space(r),t("__test"),t(";"),n.print.space(i),t("__update"),t(")"),s.body){t.space(),t("__body");return}let a=!e.get("body").isEmptyStatement();n.print.newline(a),n.indent.inc(a),t("__body"),n.indent.dec(a)},afterIf:L1(L7),after(e,{print:t}){t.linebreak(),O_(e)}},{isExpressionStatement:j9}=tc,{isTryStatement:j7,isBlockStatement:Re}=tc,Rt=L_([["+",L2(j7)],["-: ->",ON],["+: ->",({parentPath:e})=>e.node?.body?.length>2],["+: ->",L2(Re)]]),Rn=L_(["-: parentPath -> !IfStatement","+: parentPath.node.alternate -> +"]),Rr=L_([["+",Rn],["-",L8],["-: parentPath",L8],["+",Oh]]),Ri=L_(["-: node.argument -> !JSXElement","+: node.argument.leadingComments -> +"]),{isCallExpression:Rs}=tc,Ra=L_(["-: -> !MemberExpression","+: parentPath.parentPath -> ExpressionStatement"]),Ro=L_(["-: -> !CallExpression","+: parentPath -> ReturnStatement","+: parentPath -> ExpressionStatement"]),{isFunctionDeclaration:Rl,isExportDeclaration:Ru,isDoWhileStatement:Rc}=tc,Rp=L_(["ArrowFunctionExpression","ObjectMethod"]),Rd=L_([["-: -> !",({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate],["+",e=>e.find(Rp)]]),Rf=L_([["+",LY],["-",Oc([({parentPath:e})=>Rc(e),e=>!L4(e)&&!L4(e.parentPath)&&LH(e.parentPath),e=>!!e.parentPath.isIfStatement()&&!!e.parentPath.parentPath.isIfStatement()&&!L7(e.parentPath?.parentPath.getNextSibling())])],["+",Rd],["-",e=>{let{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!L4(t)}],["-",function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}],["-",({parentPath:e})=>/FunctionExpression/.test(e.type)],["-",L8],["-",function(e){return!!Rl(e.parentPath)&&!!Ru(e.parentPath?.parentPath)&&!L4(e.parentPath?.parentPath)}],["-: parentPath -> ObjectMethod"],["+: -> !",function(e){let{parentPath:t}=e;if(!t.isIfStatement())return!1;let n=t.get("alternate");return e!==n&&L7(n)}]]),Rh=L_([["-: parentPath.parentPath -> !ArrayExpression"],["+: parentPath.parentPath.node.elements.length","=",3]]),Rm=e=>jD(e).length,Ry=L_([["+",Rm],["+: node.body.length -> +"]]),Rg=L_([["-: node.body.length -> -"],["+",Rm]]),{isBlockStatement:Rb}=tc,{isBlockStatement:Rx,isStatement:RS,isExpressionStatement:RT,isReturnStatement:Rv,isContinueStatement:RE}=tc,Rk=e=>!(Rx(e)||Rv(e)||RE(e))&&!RT(e),Rw=L_([["-: -> !",LY],["+: parentPath.parentPath -> BlockStatement"]]),RA=L_([["-: -> !",LY],["-: -> !",e=>Rx(e.node.consequent)],["-",e=>e.node.consequent.body.length],["+: parentPath.parentPath -> FunctionDeclaration"]]),RP=L3(L_(["Program","BlockStatement","ExportNamedDeclaration","LabeledStatement"])),RC=L_([["+: parentPath -> SwitchCase"],["-: -> !",RP],["-: -> !",L4],["+",Oh],["+",Ol]]),RI=(e,{maxVariablesInOneLine:t})=>{let{length:n}=e.node.declarations;return n>t},R_=(e,{maxVariablesInOneLine:t})=>{let{length:n}=e.node.declarations;return n<=t},{isIfStatement:RN,isFunctionDeclaration:RL,isVariableDeclaration:RO,isExpressionStatement:RD,isAssignmentExpression:RM}=tc,RF=e=>{let t=e.getPrevSibling();return e.node.loc?.start.line===t.node?.loc?.start?.line+2},RB=L_([["-: parentPath -> !BlockStatement"],["+: parentPath.node.body.length",e=>e<3]]),Rj=L_([["-: -> !",L2(L7)],["-",RF],["-",L8],["-: -> !",L2(RO)],["+: -> !",L1(RO)]]),RR=L_([["-: ->",L2(L7)],["+",L1(RO)]]),R$=L_([["-",RR],["-",RF],["+",L1(L9)]]),RU=L_([["-",L4],["+",LY]]),Rq=L_([["-",L8],["+",L9]]),RK=L_([["-: -> !",L1(RD)],["-",RB],["+",L1(e=>RM(e.node.expression))]]),RV=L_([["-: parentPath -> !",L8],["+: -> !",LY]]),RJ=L_([["-",RV],["+",L1(RN)],["+",L1(RL)],["+",RU],["+",Rq],["+",RK],["+",R$],["+",Rj],["+",Ol],["+: parentPath -> ExportNamedDeclaration"],["+: parentPath -> TSModuleBlock"]]),Rz=L_([["-: -> !",RC],["+",RJ]]),{isBlockStatement:RW}=tc,RX=L_([["-",L6],["-",ON],["-: parentPath ->",ON],["+",L2(RW)]]),RH=L_([LH,LY,({parentPath:e})=>LJ(e),e=>Lz(e.parentPath),LG]),RY=L_([["+",RP],["+: parentPath -> SwitchCase"],["+",e=>e.parentPath.isTSModuleBlock()],["+",Oo],["+",LG]]),RG={beforeIf:RX,before(e,{print:t}){t.breakline()},print:D6((e,t,n)=>{let{kind:r}=e.node,{maybe:i,write:s,traverse:a,indent:o}=t,{maxVariablesInOneLine:l}=n;RH(e)&&o(),s(r),((e,{write:t})=>{let{declarations:n}=e.node;if(!n.length)return;let{id:r}=n[0];if("ArrayPattern"===r.type||"ObjectPattern"===r.type)return t.space();t(" ")})(e,{write:s});let u=e.get("declarations"),c=u.length-1;for(let[r,o]of(i.indent.inc(c),u.entries())){let p=o.get("id"),d=o.get("init"),f=r===c;if(a(p),L7(d)&&(s.space(),s("="),i.write.space(!MU(d)),a(d)),f)continue;let h=u[r+1];if(s(","),Of(h)){OG(h,t,n);continue}if(RI(e,{maxVariablesInOneLine:l})){s.breakline();continue}R_(e,{maxVariablesInOneLine:l})&&s.space()}i.indent.dec(c),RY(e)&&s(";"),RC(e)&&s.newline(),Rz(e)&&(o(),O_(e))}),afterIf:RJ,after(e,{print:t}){t.newline()}},{isCallExpression:RQ,isAssignmentExpression:RZ,isExpressionStatement:R0,isStatement:R1}=tc,R2=L_([["-: parentPath -> !IfStatement"],["-: parentPath.parentPath -> !IfStatement"],["-: parentPath.parentPath.parentPath -> !IfStatement"],["+: parentPath.parentPath.parentPath",L8]]),R3=Oc([function(e){return!L8(e)&&!L8(e.parentPath)},LY,L4,e=>e.findParent(L4)]),R4=L_([["-: parentPath -> !IfStatement"],["-",({node:e,parentPath:t})=>e!==t.node.consequent],["+: parentPath.node.alternate -> +"]]),R5=L_([["-",L0],["-",R2],["+",e=>{let t=e.getNextSibling();if(!L7(t)||!e.node.trailingComments)return!1;if(R1(t)&&L9(e))return!0;if(!R0(t))return!1;let{expression:n}=e.node;return!!RQ(n)||RQ(t.get("expression"))}],["+",function(e){let{expression:t}=e.node;return!!RZ(t)&&Op(e)}],["-: node.trailingComments.length -> +"],["+",R3],["+",R4]]),R8=L_([["-",L0],["+: -> !",Ou]]),{isBlockStatement:R6,isProgram:R9,isIfStatement:R7}=tc,$e=L1(L_(["+: node.expression -> StringLiteral","+: node.expression -> TemplateLiteral","+: node.expression -> ArrayExpression","+: node.expression -> BooleanLiteral"])),{isIfStatement:$t}=tc,$n=L_(["+: node.expression -> CallExpression"]),$r=L_([["-: node.expression -> AssignmentExpression"],["+",L1($n)]]),$i=L_([["-: node.trailingComments.length -> -"],["-: -> !",Of],["+",$o]]),$s=L_([["+: node.expression -> ArrayExpression"],["-",L1($i)],["-",$e],["+",Ol],["+",L1($t)]]),$a=L_([Oh,L1($t),$r]);function $o(e){let{node:t}=e,[n]=e.node.trailingComments;return!!t.loc&&t.loc.start.line===n.loc.start.line}let $l=L_([["-: -> !",Op],["+",$o]]),$u=L_([["-",$l],["-: node.expression -> !AssignmentExpression"],["+",L1(Of)]]),$c=L_([["+: -> !",Op]]),$p=(e,t,{write:n,traverse:r})=>{n("`");let i=0;for(let s of e){n(s.node.value.raw);let e=t[i++];e&&(n("${"),r(e),n("}"))}n("`")},$d=Dw(Mz((e,t)=>{let{write:n,maybe:r,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:l}=a;for(let t of e.node.decorators?e.get("decorators"):[])i(t),s(" ");n(o),r.write(l,"?")})),$f=(e,{print:t})=>{t("@"),t("__expression")};$f.printLeadingCommentLine=(e,t,n,{printComment:r})=>{let{print:i}=t;r(),i.breakline()};let $h=(e,{slash:t,quote:n})=>{let r=[];for(let[i,s]of e.entries()){let a=e[i-1];if(s===n&&a!==t){r.push(`${t}${s}`);continue}r.push(s)}return r.join("")},$m=Dw((e,{print:t})=>{t("__expression"),t("!")}),{isTSTypeAliasDeclaration:$y,isExportDeclaration:$g,isTSConditionalType:$b}=tc,$x=L1($y),$S=L1($g),$T=L_(["+: parentPath -> !ExportNamedDeclaration"]),$v=L_([["-",L4],["+: parentPath -> !",L4]]),$E=L_([["-",(e,{store:t})=>t()],["-",$v],["+: -> !",$x]]),$k={beforeIf:$T,before:(e,{indent:t})=>{t()},print:D6((e,{print:t,maybe:n,store:r})=>{let i=$b(e.get("typeAnnotation"));t("type "),t("__id"),t("__typeParameters"),t.space(),t("="),n.print.space(!i),t("__typeAnnotation"),t(";");let s=r(L8(e)||L8(e.parentPath));n.print.newline(!s)}),afterIf:$E,after(e,{print:t,maybe:n}){n.indent($S(e)),t.newline(),O_(e)}},{isTSConditionalType:$w}=tc,$A=Dw((e,{print:t,indent:n})=>{n.inc(),t.breakline(),t("__checkType"),t(" extends "),t("__extendsType"),n.inc(),t.breakline(),t("? "),t("__trueType"),t.breakline(),t(": "),t("__falseType"),n.dec(),n.dec(),Dk(e)&&t.breakline()}),$P={beforeIf:e=>!e.parentPath.isExportNamedDeclaration(),before:(e,{indent:t})=>{t()},print:D6((e,t,n)=>{let{print:r}=t;r("function "),r("__id"),DI(e,t,n);let{returnType:i}=e.node;i&&(r(":"),r.space(),r("__returnType"))}),afterIf:e=>!e.parentPath.isExportDefaultDeclaration(),after:(e,{print:t})=>{t(";"),(L4(e)||L4(e.parentPath)||e.parentPath.isExportNamedDeclaration())&&t.newline()}},$C=L3(L4),$I={print:D6((e,{print:t})=>{let{kind:n}=e.node;e.get("id").isStringLiteral()?t("module "):"namespace"===n&&t("namespace "),t("__id"),t.space(),t("__body"),$C(e)&&t.newline()}),afterSatisfy:()=>[L4],after(e,{print:t}){t.newline(),t.newline()}},{isTSTypeAliasDeclaration:$_,isExportNamedDeclaration:$N,isTSModuleBlock:$L}=tc,$O={print:D6((e,{print:t,maybe:n})=>{let{node:r}=e,{typeParameters:i}=r;if(n.indent(!$N(e.parentPath)),t("interface "),t("__id"),t("__typeParameters"),r.extends){(!i||i.length<2)&&t(" "),t("extends ");let r=e.get("extends"),s=r.length-1;for(let[e,i]of r.entries())t(i),n.print(e<s,", ")}t("__body")}),afterSatisfy:()=>[L4,L5],after(e,{print:t}){t.linebreak();let n=$N(e.parentPath);n&&$L(e.parentPath.parentPath)&&O_(e),n||$_(e)||t.newline()}},{isCallExpression:$D,isVariableDeclarator:$M}=tc,$F=Dw({condition:L_([["-",L3($D)],["-",L3($M)],["+: node.expression -> ObjectExpression"]]),print:(e,{print:t})=>{t("__expression"),t(" as "),t("__typeAnnotation")}}),$B=(e,t)=>{let{maybe:n,write:r}=t,{optional:i,readonly:s}=e.node;n.print(s,"readonly "),DH(e,t),n.print(i,"?"),MW(e,t),!function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)&&(r(";"),r.newline()),L4(e)&&Op(e)&&r.newline()};$B.printLeadingCommentLine=(e,t,n,{printComment:r})=>{let{print:i}=t;i.breakline(),r(),i.breakline()},$B.printLeadingCommentBlock=(e,t,n,{printComment:r})=>{let{print:i,maybe:s}=t;s.print.breakline(!e.getPrevSibling().node),r(),i.indent()},$B.printTrailingCommentBlock=()=>{};let $j=(e,{traverse:t})=>{t(e.get("returnType"))},$R=Dw((e,t,n)=>{let{print:r}=t;DI(e,t,n),r.space(),r("=>"),r.space(),$j(e,t)}),$$=Dw({condition:e=>e.parentPath.isTSArrayType(),print:(e,t,{maxTypesInOneLine:n})=>{let r=e.get("types"),{length:i}=r;!(({parentPath:e})=>e.isTSTypeAliasDeclaration())(e)||i<=n?function(e,{traverse:t,write:n}){let r=e.length-1;for(let[i,s]of e.entries())t(s),i<r&&(n.space(),n("|"),n.space())}(r,t):function(e,{traverse:t,write:n,indent:r}){for(let i of(r.inc(),e))n.breakline(),n("|"),n.space(),t(i);r.dec()}(r,t)}}),$U=Dw((e,{print:t})=>{t("infer "),t("__typeParameter")}),$q=L_([["-",Of],["+",e=>Op(e.get("decorators").at(-1))]]),$K=(e,{print:t,maybe:n,indent:r})=>{let{decorators:i,readonly:s,accessibility:a}=e.node,o=i?.length>1;if(n.print.breakline(o),i){for(let r of e.get("decorators"))n.indent(o),t(r);n.print.breakline(o),$q(e)?r():t(" ")}a&&(t(a),t.space()),s&&(t("readonly"),t.space()),t("__parameter"),Of(e)&&!e.node.decorators&&t.breakline()};$K.printLeadingCommentLine=(e,t,n,{printComment:r})=>{let{indent:i,print:s}=t;if(e.node.decorators){r(),s.breakline();return}if(e.parentPath.isClassMethod()){i.inc(),s.breakline(),r(),s.breakline(),i.dec();return}};let{isTSUnionType:$V}=tc,$J=()=>{},$z=Dw((e,{print:t})=>{t("typeof "),t("__exprName")}),$W=Dw((e,{print:t})=>{t("__expression"),t("__typeArguments")}),$X=(e,{print:t})=>{t("__expression"),t("__typeArguments")},{isFunction:$H}=tc,$Y=L_([["-",function(e){let t=e.get("openingElement.attributes");if(t.length>4)return!0;for(let e of t)if($G(e))return!0;return!1}],["+: parentPath -> JSXElement"],["+: parentPath -> CallExpression"],["-: parentPath.parentPath -> !CallExpression"],["+: parentPath -> ArrowFunctionExpression"]]),$G=L_([["+: -> JSXSpreadAttribute"],["-: node.value -> !JSXExpressionContainer"],["+: parentPath.node.attributes.length",">",1],["+: node.value.expression",$H]]),$Q=L_(["+: node.extra.parenthesized -> +","+: parentPath -> ReturnStatement","+: parentPath -> ParenthesizedExpression","+: parentPath -> ArrowFunctionExpression","+: parentPath -> VariableDeclarator"]),{isJSXElement:$Z,isArrowFunctionExpression:$0}=tc,$1=L_([["-: parentPath -> !CallExpression"],["+: parentPath.node.arguments.length","=",1]]);var $2=Object.freeze({__proto__:null,ArrayExpression:{beforeIf:jt,before(e,{print:t}){t.breakline()},print(e,t,n){let{print:r,maybe:i,indent:s}=t,{maxElementsInOneLine:a,trailingComma:o,maxElementLengthInOneLine:l}=n,u=Bj(e),c=B9(e,{maxElementsInOneLine:a,maxElementLengthInOneLine:l}),p=e.get("elements");r("["),i.indent.inc(u),i.print.newline(c);let d=p.length-1;for(let[t,n]of p.entries()){let a=t===d,l=B7(n,{multiline:c});if(jm(n)&&r.newline(),l&&s(),r(n),i.print(ju(e,{trailingComma:o,isLast:a,needsIndentBeforeElement:l}),","),jc(n,{multiline:c})){r.newline();continue}jd(n,{isLast:a})&&r.space()}i.indent.dec(u),function(e,t,n){let{maybe:r,indent:i}=t,{multiline:s}=n,a=BR(e);B$(e,{multiline:s,needsToHideIndent:a})&&(r.indent.dec(a),i(),r.indent.inc(a))}(e,t,{multiline:c}),ja(e)&&r.breakline(),r("]")},afterIf:jn,after(e,{print:t,indent:n}){n.dec(),t.breakline(),n.inc()}},ArrayPattern:jy,ArrowFunctionExpression:DL,AssignmentExpression:FE,AssignmentPattern:(e,{print:t,maybe:n})=>{n.print(function(e){let{parentPath:t}=e;return!!t.isObjectProperty()&&!t.node.shorthand||!!(e.parentPath.isFunction()||t.isTSParameterProperty())||t.isArrayPattern()}(e),"__left"),t.space(),t("="),t.space(),t("__right")},AwaitExpression:D2,BigIntLiteral:(e,{write:t})=>{t(e.node.raw)},BinaryExpression:jE,BlockStatement:{beforeIf:LY,before:(e,{indent:t})=>{t()},print(e,t,n){let{indent:r,maybe:i,write:s,traverse:a}=t,o=e.get("body"),l=jD(e),u=Rh(e);for(let t of(i.indent.inc(!u),s("{"),Ry(e)&&s.newline(),l))a(t);Rg(e)&&s.linebreak();let c=(e=>{if(!Rs(e.parentPath.parentPath))return!1;let t=e.find(Ra);if(t)return Dr(t);let n=e.find(Ro);return!!n&&Dr(n.get("callee"))})(e);for(let e of(i.indent.inc(c),o))a(e);Dh(e,t,n),r.dec(),i.indent(o.length),i.indent.inc(u),s("}"),i.indent.dec(c)},afterIf:Rf,after(e,{write:t}){t.newline(),O_(e.parentPath)}},BooleanLiteral:(e,{write:t})=>{t(e.node.value)},BreakStatement:{split(e,{print:t}){t.newline()},print(e,{print:t,maybe:n}){let{label:r}=e.node;n.indent(!Ou(e)),t("break"),n.print.space(r),t("__label"),t(";")},afterSatisfy:()=>[LY,L5,jF,Oo]},CallExpression:Md,CatchClause:(e,{print:t,maybe:n})=>{let{parentPath:r}=e,i=e.get("param"),s=e.get("body");t.space(),t("catch"),i.node&&(t("("),t(i),t(")")),t.space(),t(s),n.print.newline(LY(r))},ClassAccessorProperty:(e,t,n)=>{jO(e,t,n)},ClassDeclaration:Mr,ClassExpression:Mn,ClassMethod:DZ,ClassPrivateMethod:DZ,ClassPrivateProperty:jO,ClassProperty:jO,ConditionalExpression:jI,ContinueStatement:(e,{print:t,maybe:n,write:r})=>{let{label:i}=e.node;n.indent(!Ou(e)),t("continue"),n.print.space(i),t("__label"),r(";"),t.newline()},DebuggerStatement:{print(e,{print:t,indent:n}){n(),t("debugger;")},afterSatisfy:()=>[L4,LY,Oo],after(e,{print:t}){t.newline()}},Decorator:$f,Directive:(e,{print:t,maybe:n})=>{n.print.breakline(e.node.leadingComments?.length),t("__value")},DirectiveLiteral:(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()},DoWhileStatement:{beforeIf:(...e)=>!Ou(...e),before:(e,{indent:t})=>{t()},print(e,{print:t}){t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")"),t(";")},afterSatisfy:()=>[jM],after(e,{print:t}){t.newline()}},EmptyStatement:(e,{write:t,maybe:n})=>{let{parentPath:r}=e;t(";"),n.write.newline(!L8(e)&&!L8(r))},ExportAllDeclaration:(e,t)=>{let{print:n}=t,{exportKind:r}=e.node;n("export "),"type"===r&&n("type "),n("* from "),n("__source"),jG(e,t),n(";"),n.newline()},ExportDefaultDeclaration:{print(e,{print:t,traverse:n,maybe:r}){let i=e.get("declaration");t.indent(),t("export default "),n(i),r.print(j$(i),";")},afterIf:jU,after(e,{print:t}){t.newline(),jq(e)&&t.newline()}},ExportDefaultSpecifier:(e,{print:t})=>{t("__exported")},ExportNamedDeclaration:j3,ExportNamespaceSpecifier:(e,{print:t})=>{t("* as "),t("__exported")},ExportSpecifier:(e,{print:t})=>{let{local:n,exported:r}=e.node;t("__local"),r.name!==n.name&&(t(" as "),t("__exported"))},ExpressionStatement:{printLeadingCommentLine:(e,t,n,{index:r,isLast:i,printComment:s})=>{let{print:a,indent:o}=t,l=e.getPrevSibling(),{parentPath:u}=e;!Op(l)&&(!r&&!l.node&&(R7(u)||R6(u))&&o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},printLeadingCommentBlock:(e,t,n,{printComment:r})=>{let{indent:i}=t;Op(e.getPrevSibling())||(R6(e.parentPath)&&!R9(e.parentPath.parentPath)&&i(),r())},printTrailingCommentLine:(e,t,n,{isSameLine:r,printComment:i})=>{let{print:s}=t;r?s.space():s.breakline(),i(),(L4(e)||LY(e))&&s.newline()},printTrailingCommentBlock:(e,t,n,{printComment:r,isSameLine:i})=>{let{maybe:s,print:a}=t;L4(e)&&a.breakline(),s.print.space(i),r()},beforeIf:R8,before(e,{indent:t}){t()},print(e,{print:t,maybe:n,store:r}){t("__expression"),n.print(!L0(e),";"),L4(e)&&$s(e)&&(t.newline(),n.indent($a(e)),r(!0))},afterIf:R5,after(e,{print:t,maybe:n,store:r}){n.indent($u(e)),$c(e)&&t.newline(),n.markAfter(r(),e)}},ForInStatement:(e,{print:t,indent:n})=>{n(),t("for"),t.space(),t("("),t("__left"),t(" in "),t("__right"),t(")"),e.get("body").isBlockStatement()&&t.space(),t("__body")},ForOfStatement:{beforeIf(e){let{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&!L6(e)&&!ON(e)},before(e,{print:t}){t.linebreak(),OI(e)},print(e,{indent:t,print:n,maybe:r,traverse:i}){let{node:s}=e;t(),n("for"),r.print(s.await," await"),n.space(),n("("),n("__left"),n(" of "),n("__right"),n(")");let a=e.get("body");if(a.isBlockStatement()){n.space(),n("__body");let{length:t}=a.node.body;r.print.newline(!t&&!L8(e)&&!L4(e));return}t.inc(),n.newline(),i(a),t.dec(),r.markAfter(a[OP],e)},afterIf:L4,after(e,{print:t}){t.linebreak(),O_(e)}},ForStatement:j6,FunctionDeclaration:{beforeIf:DR,before:(e,{indent:t})=>{t()},print(e,t,n){let{print:r,maybe:i}=t,{async:s,generator:a}=e.node;i.print(s,"async "),r("function"),a?(r("*"),r.space()):r(" "),r("__id"),DI(e,t,n),DN(e,t),r.space(),r("__body")},afterSatisfy:()=>[L4,L5,Dj],after(e,{indent:t,maybe:n}){DF(e)&&t(),n.write.newline(DB(e)),O_(e)}},FunctionExpression:D0,Identifier:$d,IfStatement:{printTrailingCommentBlock:(e,t,n,{printComment:r})=>{let{maybe:i}=t,s=L4(e);i.print.breakline(!s),r()},printTrailingCommentLine:(e,t,n,{printComment:r})=>{let i=L4(e),{consequent:s}=e.node,a=Rb(s),{print:o}=t;o.indent(),i||a||o.space(),r(),(i||LY(e))&&o.newline()},print:(e,{indent:t,print:n,maybe:r,write:i,traverse:s})=>{let{parentPath:a}=e,o=a.get("alternate");e!==o&&t(),n("if"),n.space(),n("("),n("__test"),n(")");let l=e.get("consequent"),u=e.get("alternate"),c=l.isBlockStatement(),p=l.isVariableDeclaration();if(c)n.space(),n(l),(Oo(e.parentPath)||Rw(e))&&r.print.newline(!l.node.body.length);else{let t=!e.get("consequent").isEmptyStatement();r.print.newline(t),r.indent.inc(t),r.indent(p),n(l),r.indent.dec(t)}if(u.isBlockStatement()?(i.space(),i("else"),i.space(),s(u)):u.isIfStatement()?(u.get("consequent").isBlockStatement()?i.space():(r.write.newline(Rk(l)),t()),i("else "),s(u)):L7(u)&&(r.write.newline(p||Rk(l)),r.indent(!c),r.write.space(c),i("else"),i.splitter(),t.inc(),s(u),t.dec()),!L4(e)&&!l.isBlockStatement())return;let d=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||RS(d)||n.newline(),RA(e)&&n.newline()},afterSatisfy:()=>[L4],after:(e,{print:t})=>{t.linebreak(),O_(e)}},ImportAttribute:(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},ImportDeclaration:j8,ImportExpression:j_,InterpreterDirective:(e,{print:t})=>{t(`#!${e.node.value}
|
|
33
|
+
`),t.newline()},JSXAttribute:{condition:e=>L9(e.parentPath),before(e,{print:t,indent:n}){n.inc(),t.breakline()},print(e,{print:t,maybe:n}){let{value:r}=e.node;t("__name"),n.print(r,"="),t("__value")},after(e,{indent:t}){t.dec()}},JSXClosingElement:(e,{print:t})=>{t("</"),t("__name"),t(">")},JSXClosingFragment:(e,{write:t})=>{t("</>")},JSXElement:{condition:$Q,before(e,{write:t,indent:n,maybe:r}){let{leadingComments:i}=e.node,s=i?.length;r.write.space(!s&&(({parentPath:e})=>$0(e))(e)),n.inc(),s||(t("("),t.newline())},print(e,{print:t,traverse:n,maybe:r}){let i=$Y(e),s=$1(e);r.indent.inc(i),r.print.breakline(s),t("__openingElement"),e.get("children").map(n),t("__closingElement"),r.indent.dec(i),r.print.breakline(s)},after(e,{write:t,indent:n,maybe:r}){let{leadingComments:i}=e.node;(({parentPath:e})=>$Z(e.parentPath?.parentPath?.parentPath))(e)?(t.breakline(),n.dec()):(n.dec(),t.breakline()),r.write(!i?.length,")")}},JSXEmptyExpression:(e,t,n)=>{Dh(e,t,n)},JSXExpressionContainer:(e,{print:t})=>{t("{"),t("__expression"),t("}")},JSXFragment:{condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:n}){t("("),n.inc(),t.breakline()},print(e,{print:t,traverse:n}){t("__openingFragment"),e.get("children").map(n),t("__closingFragment")},after(e,{write:t,indent:n}){n.dec(),t.breakline(),t(")")}},JSXIdentifier:(e,{write:t})=>{t(e.node.name)},JSXMemberExpression:(e,{print:t})=>{t("__object"),t("."),t("__property")},JSXOpeningElement:(e,{print:t,maybe:n})=>{n.indent((({parentPath:e})=>{let t=e.parentPath;return!(t.isObjectProperty()||t.isCallExpression()||t.isJSXElement()||t.isJSXExpressionContainer()||t.isJSXFragment())&&!t.isLogicalExpression()})(e)),t("<"),t("__name");let r=L9(e),i=!r,s=r&&e.parentPath.parentPath.isJSXElement();for(let r of(n.indent.inc(s),e.get("attributes")))n.print.space(i),t(r);L9(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),n.indent.dec(s)},JSXOpeningFragment:(e,{write:t})=>{t("<>")},JSXSpreadAttribute:(e,{print:t,maybe:n})=>{let r=L9(e.parentPath);n.indent.inc(r),n.print.breakline(r),t("{"),t("..."),t("__argument"),t("}"),n.indent.dec(r)},JSXText:(e,{write:t,indent:n})=>{let{node:r}=e,{value:i,extra:s}=r,a=/^\s+$/.test(i),o=L4(e);if(s?.raw.includes("&"))return t(s.raw);if(a&&o){n.inc(),t.breakline(),n.dec();return}a?t.breakline():t(i)},LabeledStatement:(e,{print:t,maybe:n})=>{n.indent(!Ou(e)),t("__label"),t(":"),t.space(),t("__body")},LogicalExpression:jA,MemberExpression:D5,MetaProperty:(e,{write:t})=>{t("import.meta")},NewExpression:Mm,NullLiteral:(e,{write:t})=>{t("null")},NumericLiteral:(e,{write:t})=>{let{raw:n,extra:r,value:i}=e.node;t(n||r?.raw||i)},ObjectExpression:MR,ObjectMethod:{beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,n){let{trailingComma:r}=n,{print:i}=t;DY(e,t),DH(e,t),DI(e,t,n),DN(e,t),i.space(),i("__body"),(L4(e)||r)&&i(","),i.newline(),O_(e)},afterIf:e=>Ol(e),after(e,{print:t}){t.linebreak()}},ObjectPattern:Fx,ObjectProperty:(e,t,n)=>{let{trailingComma:r}=n,{shorthand:i}=e.node,{maybe:s,traverse:a,write:o}=t,l=e.get("value"),u=MB(e.parentPath);DH(e,t),i||(o(":"),s.write.space(!MU(l)),a(l)),Mw(e,{multiline:u,trailingComma:r})&&o(","),Mq(e,{multiline:u})&&o.space()},OptionalCallExpression:Md,OptionalMemberExpression:D8,ParenthesizedExpression:{before(e,{print:t}){t("(")},condition:e=>{let{expression:t}=e.node;return!jN(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}},PrivateName:(e,{print:t})=>{t("#"),t("__id")},Program:(e,t,n)=>{let r,i,{body:s}=e.node,{traverse:a,maybe:o,write:l}=t;a(e.get("interpreter")),Dh(e,t,n);let u=jD(e);for(let e of u)a(e),o.write.newline(s.length);e.get("body").forEach(a),(!u.length||s.length)&&(s.length&&(i=(r=s.at(-1)).node||r,i?.trailingComments?.length>1)||l.endOfFile())},RegExpLiteral:(e,{print:t})=>{let{raw:n,pattern:r}=e.node;t(n||`/${r}/`)},RestElement:jg,ReturnStatement:{beforeIf:Rt,before(e,{print:t}){t.linebreak()},print(e,t,n){let{maybe:r,print:i}=t;if(r.indent(!Ou(e)),i("return"),jK(e.get("argument"),t,n),Ri(e)){i("("),i.breakline(),i("__argument"),i(");");return}i("__argument"),i(";")},afterIf:Rr,after(e,{print:t}){t.newline()}},SequenceExpression:jx,SpreadElement:(e,t)=>{let{print:n}=t;n("..."),n("__argument"),Op(e)&&n(",")},StaticBlock:(e,{print:t,traverse:n})=>{for(let r of(t("static "),t("{"),t.breakline(),e.get("body")))n(r);t.indent(),t("}"),t.newline()},StringLiteral:(e,{write:t},n)=>{let{value:r,raw:i=`'${r}'`}=e.node;if(e.parentPath.isJSXAttribute())return void t(`"${r}"`);let s=i.slice(1,-1);t.quote(),t(((e,{escapeDoubleQuote:t,escapeSingleQuote:n})=>{let r=e.split("");return n?$h(r,{slash:"\\",quote:"'"}):t?$h(r,{slash:"\\",quote:'"'}):e})(s,n)),t.quote()},Super:(e,{write:t})=>{t("super")},SwitchStatement:{print(e,t,n){let{print:r,maybe:i,indent:s,traverse:a}=t;s(),r("switch"),r("("),r("__discriminant"),r(")"),r.space(),r("{"),r.newline();let o=e.get("cases"),l=o.length-1;for(let[e,u]of o.entries()){let o=u.get("test"),c=e===l;s(),OG(u,t,n),L7(o)?(r("case"),jK(o,t,n),a(o)):r("default"),r(":"),jY(u)&&r.newline();let p=u.get("consequent"),[d]=p,f=jX(d);for(let e of(i.indent.inc(!f),p))jX(e)&&r.space(),r(e);i.indent.dec(!f),i.print.linebreak(!c)}r.indent(),r("}"),jH(e)&&r.newline()},afterSatisfy:()=>[L4],after(e,{print:t}){t.breakline(),t.newline()}},TSAnyKeyword:(e,{write:t})=>{t("any")},TSArrayType:(e,{print:t})=>{t("__elementType"),t("[]")},TSAsExpression:$F,TSBigIntKeyword:(e,{write:t})=>{t("bigint")},TSBooleanKeyword:(e,{write:t})=>{t("boolean")},TSCallSignatureDeclaration:(e,t,n)=>{let{print:r}=t;DI(e,t,n),r(":"),r.space(),$j(e,t),r(";"),r.newline()},TSClassImplements:$X,TSConditionalType:$A,TSConstructSignatureDeclaration:(e,t,n)=>{let{write:r}=t;r("new"),DI(e,t,n),e.node.returnType&&(r(":"),r.space(),$j(e,t)),r(";"),r.newline()},TSConstructorType:(e,t,n)=>{let{print:r}=t;r("new"),r(" "),DI(e,t,n),r.space(),r("=>"),r.space(),$j(e,t)},TSDeclareFunction:$P,TSDeclareMethod:(e,t,n)=>{let{print:r}=t,{accessibility:i,abstract:s,returnType:a}=e.node;i&&(r(i),r(" ")),s&&(r("abstract"),r(" ")),r("__key"),DI(e,t,n),a&&(r(":"),r.space(),r("__returnType")),r(";"),r.newline()},TSEnumDeclaration:{beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:n,indent:r}){for(let i of(t("enum "),t("__id"),t(" "),t("{"),r.inc(),t.newline(),e.get("body.members")))n(i),t(","),t.newline();r.dec(),r(),t("}"),L8(e)||(t.newline(),O_(e))},afterSatisfy:()=>[L4,L5],after(e,{print:t}){t.linebreak()}},TSEnumMember:(e,{print:t,indent:n})=>{let{initializer:r}=e.node;n(),t("__id"),r&&(t.space(),t("="),t.space(),t("__initializer"))},TSExportAssignment:{print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[L4],after:(e,{print:t})=>{t.newline()}},TSExpressionWithTypeArguments:$X,TSExternalModuleReference:(e,{print:t})=>{t("require("),t("__expression"),t(")")},TSFunctionType:$R,TSImportEqualsDeclaration:(e,{print:t,maybe:n})=>{n.print(e.node.isExport,"export "),t("import "),t("__id"),t.space(),t("="),t.space(),t("__moduleReference"),t(";"),L8(e)||L8(e.parentPath)||t.newline()},TSImportType:j_,TSIndexSignature:(e,t)=>{let{print:n}=t;n("["),n("__parameters.0"),n("]"),MW(e,t),n(";"),n.newline()},TSIndexedAccessType:(e,{print:t})=>{t("__objectType"),t("["),t("__indexType"),t("]")},TSInferType:$U,TSInstantiationExpression:$W,TSInterfaceBody:(e,t,n)=>{var r;let i=e.get("body"),{traverse:s,write:a,indent:o,maybe:l}=t;for(let[r,u]of(a.space(),a("{"),l.write.newline(function(e){let{body:t}=e.node;if(!t.length)return!1;let[n]=t,{leadingComments:r}=n;return!r}(e)),o.inc(),Dh(e,t,n),i.entries()))(r||!u.node.leadingComments)&&o(),s(u);o.dec(),o(),a("}"),l.write.newline(!!(r=e).parentPath.parentPath.isTSModuleBlock()||r.parentPath.parentPath.parentPath?.isTSModuleBlock())},TSInterfaceDeclaration:$O,TSInterfaceHeritage:(e,{print:t})=>{t("__expression"),t("__typeArguments")},TSIntersectionType:(e,{traverse:t,write:n})=>{let r=e.get("types"),i=r.length-1;for(let[e,s]of r.entries()){let r=e===i;t(s),r||(n.space(),n("&"),n.space())}},TSLiteralType:(e,{print:t})=>{t("__literal")},TSMappedType:(e,{print:t,indent:n,maybe:r})=>{let{readonly:i,optional:s,nameType:a,typeAnnotation:o}=e.node;t("{"),t.newline(),n.inc(),n(),i&&(r.print("-"===i,"-"),t("readonly ")),t("["),t("__key"),t(" "),t("in"),t(" "),t("__constraint"),a&&(t(" as"),r.space(!$w(a)),t("__nameType")),t("]"),s&&(r.print("+"===s,"+"),r.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),n.dec(),t.breakline(),t("}")},TSMethodSignature:(e,t,n)=>{let{write:r,maybe:i}=t,{optional:s}=e.node;DY(e,t),DH(e,t),i.print(s,"?"),DI(e,t,n),e.node.returnType&&(r(":"),r.space(),$j(e,t)),r(";"),r.newline()},TSModuleBlock:(e,{print:t,traverse:n,indent:r})=>{for(let i of(t("{"),t.breakline(),r.inc(),e.get("body")))n(i);r.dec(),t("}")},TSModuleDeclaration:$I,TSNamedTupleMember:(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")},TSNeverKeyword:(e,{write:t})=>{t("never")},TSNonNullExpression:$m,TSNullKeyword:(e,{write:t})=>{t("null")},TSNumberKeyword:(e,{write:t})=>{t("number")},TSObjectKeyword:(e,{write:t})=>{t("object")},TSOptionalType:(e,{print:t})=>{t("__typeAnnotation"),t("?")},TSParameterProperty:$K,TSParenthesizedType:(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")},TSPropertySignature:$B,TSQualifiedName:(e,{print:t})=>{t("__left"),t("."),t("__right")},TSRestType:(e,{print:t})=>{t("..."),t("__typeAnnotation")},TSSatisfiesExpression:(e,{print:t})=>{t("__expression"),t(" satisfies "),t("__typeAnnotation")},TSStringKeyword:(e,{write:t})=>{t("string")},TSSymbolKeyword:(e,{write:t})=>{t("symbol")},TSTemplateLiteralType:(e,t)=>{$p(e.get("quasis"),e.get("types"),t)},TSThisType:(e,{print:t})=>{t("this")},TSTupleType:(e,{write:t,traverse:n,indent:r,maybe:i})=>{let s=e.get("elementTypes");t("["),r.inc();let a=function(e){let t;for(let n of e){if(t&&n.type!==t)return!1;({type:t}=n)}return!0}(s);i.write.newline(a&&s.length);let o=s.length-1;for(let[e,t]of s.entries())i.indent(a),n(t),i.write(e<o||a,","),i.write.newline(a),i.write.space(e<o&&!a);r.dec(),i.indent(a&&s.length),t("]")},TSTypeAliasDeclaration:$k,TSTypeAnnotation:(e,{print:t})=>{t("__typeAnnotation")},TSTypeAssertion:(e,{print:t})=>{t("<"),t("__typeAnnotation"),t(">"),t("__expression")},TSTypeLiteral:(e,{indent:t,traverse:n,write:r})=>{let i=e.get("members");r("{");let s=function(e){let{parentPath:t}=e,{length:n}=e.get("members");return!!n&&(n>1||!t.isTSTypeParameterInstantiation())}(e);for(let e of(s&&(r.newline(),t.inc()),i))t(),n(e);s&&(t.dec(),r.indent()),r("}")},TSTypeOperator:(e,{write:t,print:n})=>{let{operator:r}=e.node;t(`${r} `),n("__typeAnnotation")},TSTypeParameter:(e,{write:t,traverse:n})=>{let r=e.get("constraint");e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),L7(r)&&(t(" extends "),n(r));let i=e.get("default");L7(i)&&(t.space(),t("="),t.space(),n(i))},TSTypeParameterDeclaration:(e,t,n)=>{let{print:r,indent:i}=t,s=function({node:e}){let{params:t}=e;for(let{constraint:e}of t)if($V(e))return!0;return!1}(e),a=DG({isNewline:s,printer:t}),o=s?()=>{i.inc(),r.breakline()}:$J,l=s?()=>{r.breakline()}:$J;DI(e,t,n,{printSpace:a,braceOpen:"<",braceClose:">",printAfterOpen:o,printBeforeClose:s?()=>{i.dec(),r.breakline()}:$J,printAfterClose:l})},TSTypeParameterInstantiation:(e,t,n)=>{DI(e,t,n,{braceOpen:"<",braceClose:">"})},TSTypePredicate:(e,{print:t})=>{t("__parameterName"),t(" is "),t("__typeAnnotation")},TSTypeQuery:$z,TSTypeReference:(e,{print:t})=>{t("__typeName"),t("__typeArguments")},TSUndefinedKeyword:(e,{write:t})=>{t("undefined")},TSUnionType:$$,TSUnknownKeyword:(e,{write:t})=>{t("unknown")},TSVoidKeyword:(e,{write:t})=>{t("void")},TaggedTemplateExpression:jS,TemplateLiteral:(e,t)=>{let n=e.get("expressions");$p(e.get("quasis"),n,t)},ThisExpression:(e,{write:t})=>{t("this")},ThrowStatement:(e,{print:t,indent:n,maybe:r})=>{n(),D4("throw",{print:t}),t(";"),r.print.newline(!L8(e)),r.print.breakline(L4(e))},TryStatement:{print(e,{print:t,maybe:n}){let r=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),r.node&&(t.space(),t("finally"),t.space(),t(r),n.print.newline(!L4(e)))},afterSatisfy:()=>[L4],after(e,{print:t}){t.newline();(j9(e.getNextSibling())||Lq(e.getNextSibling()))&&t.breakline()}},UnaryExpression:D1,UpdateExpression:D1,VariableDeclaration:RG,VoidPattern:(e,{write:t})=>{t("void")},WhileStatement:{printTrailingCommentBlock:(e,t,n,{printComment:r})=>{let{maybe:i}=t,s=L4(e);i.print.breakline(!s),r()},printTrailingCommentLine:(e,t,n,{printComment:r})=>{let{print:i}=t;i.indent(),r(),i.newline()},beforeIf:(...e)=>!Ou(...e),before:(e,{indent:t})=>{t()},print(e,{print:t,indent:n}){if(t("while"),t.space(),t("("),t("__test"),t(")"),e.node.body.body){t.space(),t("__body");return}n.inc(),t.newline(),t("__body"),n.dec()},afterIf:e=>L4(e),after(e,{print:t}){t.linebreak(),O_(e)}},WithStatement:{print(e,{print:t,indent:n}){if(n(),t("with"),t.space(),t("("),t("__object"),t(")"),e.node.body.body){t.space(),t("__body");return}n.inc(),t.newline(),t("__body"),n.dec()},afterIf:e=>L4(e),after(e,{print:t}){t.linebreak(),O_(e)}},YieldExpression:D3});let $3={arrow:!0,sequence:!0,assign:!1,new:!0},$4={arrow:!0,sequence:!0,assign:!0,new:!0},$5={arrow:!1,sequence:!1,assign:!1,new:!1},{assign:$8}=Object,{freeze:$6,assign:$9}=Object,$7=(e,{traverse:t,write:n})=>{let r=r=>{if(r===e)return null;let i=Ue(e,r);return i&&"object"==typeof i?t(i):n(i)};return $9(r,n),r},Ue=(e,t)=>{if("string"==typeof t&&t.startsWith("__"))return e.get(t.replace("__",""));return t,t},Ut=e=>t=>t&&e(),Un=e=>e.slice(0,e.indexOf("(")),Ur=e=>e.includes("(")?`${Un(e)}(`:`${e}(`,Ui="__putout_processor_json",Us="__putout_processor_docker",Ua="__putout_processor_yaml",Uo="__putout_processor_toml",Ul="__putout_processor_filesystem",Uu="__putout_processor_ignore",Uc="__putout_processor_markdown",Up="__putout_processor_sql",Ud=`${Up}(__object)`,Uf=`${Ui}(__object)`,Uh=`${Ua}(__object)`,Um=`${Uo}(__object)`,Uy=`${Us}(__array)`,Ug=`${Ul}(__object)`,Ub=`${Uu}(__array)`,Ux=`${Uc}(__array)`,US=[Ui,Us,Uo,Ua,Ul,Uu],UT=(e,t=Uf)=>{let n=Ur(t);return e.endsWith(";\n")&&(e=e.slice(0,-2)),`${n}${e});
|
|
34
|
+
`},Uv=(e,t=Uf)=>{let n;e=e.trimEnd()+"\n";let r=Un(t);e=e.slice(e.indexOf(r));let i=Ur(t),s=e.length-3;return"\n"===(n=e.slice(i.length,s)).at(-1)?n:`${n}
|
|
35
|
+
`},UE=e=>!e.indexOf(Ui),Uk=e=>!e.indexOf(Uo),Uw=e=>{for(let t of US)if(!e.indexOf(t))return!0;return!1},UA=e=>!e.indexOf(Up),{isCallExpression:UP,isIdentifier:UC}=tc,UI=(e,t)=>!function(e){let{program:t}=e;if(!t)return!1;let{body:n}=e.program;if(!n.length)return!1;let{expression:r}=e.program.body[0];if(!UP(r))return!1;let{callee:i}=r;return!!UC(i)&&Uw(i.name)}(e)?t:{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}},{isCallExpression:U_,isIdentifier:UN}=tc,UL=(e,t)=>!function(e){let{program:t}=e;if(!t)return!1;let{body:n}=e.program;if(!n.length)return!1;let{expression:r}=e.program.body[0];if(!U_(r))return!1;let{callee:i}=r;return!!UN(i)&&UA(i.name)}(e)?t:{...t,semantics:{...t?.semantics,maxArgsInOneLine:1}},UO=(e,t={})=>{let n=t;for(let t of(function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e),[UI,UL]))n=t(e,n);return(e=>{let t=[];for(let{value:n}of e)t.push(n);return t})(((e,t)=>{let{getTokens:n,traverse:r}=(e=>{var t;let n,r,i,s=[],{format:a,semantics:o,visitors:l}=((e={})=>{let{format:t,semantics:n,visitors:r}=e,i={indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...t};return{format:i,semantics:((e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:3,maxElementLengthInOneLine:15,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,maxArgsInOneLine:100,trailingComma:!0,...(({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1})(e),...t,roundBraces:(({roundBraces:e})=>e&&"object"==typeof e?{...$3,...e}:"boolean"==typeof e&&e?$4:"boolean"!=typeof e||e?$3:$5)(t)}))(i,n),visitors:r}})(e),u=(t=s,n=(({newline:e="\n",store:t=DE()}={})=>({type:n,value:r})=>{if(DS)return void console.log(kn(Dg({type:n,value:r}),{},{highlightCode:!0}));if(Dx)return void console.log(kn(r,{},{highlightCode:!0}));if(Db){if(r===e)return void console.log(kn(t(),{},{highlightCode:!0}));t(r)}DT&&tt.stdout.write(r)})(),e=>{n(e),t.push(e)}),c=e=>{Dv&&s.push({type:"Debug",value:`/*__${e.replace(Dy,function(e){return" "+(e.toLowerCase()||e)}).trim().split(Dm).join("_")}*/`})},p=(r=u,e=>{r({type:"Token",value:e})}),d=(({format:e,addToken:t})=>{let n=0,r=()=>{t({type:"Indent",value:function(e,t){let n="";for(++e;--e>0;)n+=t;return n}(n,e.indent)})};return $8(r,{inc:()=>++n,dec:()=>--n,getLevel:()=>n}),r})({format:a,addToken:u}),f=(({format:e,addToken:t})=>()=>{t({type:"Newline",value:e.newline})})({format:a,addToken:u}),h=(({newline:e,indent:t})=>()=>{e(),t()})({newline:f,indent:d}),m=(({indent:e,newline:t})=>()=>{e(),t()})({indent:d,newline:f}),y=(({format:e,addToken:t})=>()=>{t({type:"Space",value:e.space})})({format:a,addToken:u}),g=(({format:e,addToken:t})=>()=>{t({type:"Splitter",value:e.splitter})})({format:a,addToken:u}),b=(({format:e,addToken:t})=>()=>{t({type:"EndOfFile",value:e.endOfFile})})({format:a,addToken:u}),x=(({addToken:e,format:t})=>()=>{e({type:"Quote",value:t.quote})})({addToken:u,format:a});$9(p,{indent:d,newline:f,linebreak:m,breakline:h,space:y,splitter:g,quote:x,endOfFile:b});let S=Ut(h),T=Ut(f),v=Ut(m),E=Ut(y),k=(({write:e})=>(t,n)=>t&&e(n))({write:p});$9(k,{newline:T,breakline:S,linebreak:v,space:E});let w={indent:Ut(d),markAfter:OC,write:k,space:E},A=Ut(d.inc),P=Ut(d.dec);$9(w.indent,{inc:A,dec:P});let C=(i={maybeNewline:T,maybeLinebreak:v,maybeSpace:E,maybeBreakline:S,indent:d,write:p,debug:c,semantics:o,visitors:l,getMainPrinter:()=>I},function e(t){let{write:n,debug:r,maybeLinebreak:s,maybeSpace:a,maybeBreakline:o,maybeNewline:l,indent:u,semantics:c,visitors:p,getMainPrinter:d}=i,f=d(),h={...$2,...p},{type:m}=t,y=h[m];if(!t.node)return;let g=$7(t,{write:n,traverse:e}),b={...f,traverse:e,print:g},x=(e,t)=>e&&g(t);$9(x,{newline:l,breakline:o,linebreak:s,space:a}),$9(b.maybe,{print:x}),Ok(!y,t,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");let S=u.getLevel();OG(t,b,c,{currentTraverse:y}),Ow(y,t,b,c),((e,t,n,{currentTraverse:r}={})=>{let{parentPath:i}=e,{write:s,maybe:a,indent:o}=t;if(!n.comments)return;let{trailingComments:l}=e.node;if(!l?.length)return;if((e=>{let{printTrailingCommentBlock:t,printTrailingCommentLine:n}=e;return!!t||!!n})(r))return((e,t,n,{currentTraverse:r})=>{let{print:i}=t,{trailingComments:s=[]}=e.node,{printTrailingCommentLine:a,printTrailingCommentBlock:o}=r,l=s.length-1;for(let[r,u]of s.entries()){let{loc:s,value:c}=u;if(OF(u)){a?.(e,t,n,{index:r,printComment:OO(i,c),isLast:r===l,isSameLine:OB(e,s)});continue}OM(u)&&o?.(e,t,n,{index:r,printComment:OD(i,c),isLast:r===l,isSameLine:OB(e,s)})}})(e,t,n,{currentTraverse:r});if(e.isDirective())return;let u=l.length-1,c=Dr(i);for(let{type:t,value:n,loc:r}of l){let i=Dp(e,r),l=function(e){let{node:t}=e,{loc:n,trailingComments:r}=t;if(e.isClassMethod()||e.node.trailingComments===e.getNextSibling().node?.leadingComments||e.isThrowStatement())return!1;let[i]=r,{line:s}=i.loc.start,a=e.getNextSibling();if(a.node&&s<a.node.loc?.start.line)return!1;if(!n)return!0;let o=n.start.line,l=n.end.line;return s===o+1&&s===l+1||s===o+2&&s===l+2}(e);if("CommentLine"===t){let t=l&&c,r=!i&&!l;a.write.breakline(l),a.write.space(i),(r||t)&&(a.indent.inc(t),o(),a.indent.dec(t)),Du(e)&&(a.write.breakline(!L4(e)),a.write.breakline(!u)),s(`//${n}`),a.write.newline(Dd(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(function(e){let{expression:t}=e.node;return Dl(t)}(e)),s(`/*${n}*/`),a.write.newline(!i||!Dc(e)&&L9(e.parentPath)))}})(t,b,c,{currentTraverse:y}),Ok(u.getLevel()!==S,t,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),r(t.type)}),I=$6({indent:d,write:p,debug:c,maybe:w,quote:x,store:OA(),traverse:C});return{getTokens:()=>s,traverse:C}})(t);if(e.parentPath){var i,s;i=e,s=r,i.parentPath.traverse({enter(e){e===i&&(s(e),e.stop())}})}else Ld(Ox(e)?e:OE(Ob(e)?e:Ov([OS(e)?e:OT(e)])),{Program(e){r(e),e.stop()}});return n()})(e,n)).join("")},UD={alignSpaces:!0},{isArray:UM}=Array,UF=(e,t={})=>{let n,[r="putout",i]=UM(n=t.printer)?n:[n,{}];return"babel"===r?((e,t)=>{let{source:n,alignSpaces:r}={...UD,...t},{code:i}=Py(e,n&&{experimental_preserveFormat:!0,retainLines:!0},n);if("\n"===i[0]&&(i=i.trimStart()),i+="\n",!r)return i;var s=i,a=s;if("string"!=typeof a)throw Error("str should be a string!");let o=s.split("\n"),l=o.length-1;for(let e=0;e<l;e++){let t=o[e];!e||function(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}(t)||(o[e]=function(e){let t="";for(let n=0;n<e.length&&" "===e[n];n++)t+=" ";return t}(o[e+1]))}return o.join("\n")})(e,{...t,...i}):UO(e,i)},{isFunctionExpression:UB,objectMethod:Uj}=tc,{assign:UR}=Object,{classPrivateMethod:U$,classMethod:UU,privateName:Uq,identifier:UK}=tc,{assign:UV}=Object,{identifier:UJ}=tc,{directive:Uz,directiveLiteral:UW}=tc,{assign:UX}=Object,UH=({type:e})=>`Comment${e}`,UY=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{isObjectExpression:UG,isExportDeclaration:UQ}=tc,UZ={convertParens:!0};function U0(e){let{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}var U1={},U2={exports:{}},U3=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r;function r(){for(var e=Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}};function U4(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function U5(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}U2.exports=U3(U4),U2.exports.strict=U3(U5),U4.proto=U4(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return U4(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return U5(this)},configurable:!0})});var U8=U2.exports;let U6=()=>{};var U9=j4(Object.freeze({__proto__:null,default:U6})),U7=j4(Object.freeze({__proto__:null,default:function(e){let t=U6();return class extends t{parseClassElement(e){let t=this._inClassMemberName;this._inClassMemberName=!0;let n=super.parseClassElement.apply(this,arguments);return this._inClassMemberName=t,n}parsePropertyName(e){let t=this.options.ecmaVersion>=8&&this._inClassMemberName&&this.type==this.privateNameToken&&!e.static;return(this._inClassMemberName=!1,t)?this.parsePrivateClassElementName(e):super.parsePropertyName(e)}}}}));let qe=U8(()=>{let{Parser:e}=U9,t=ea?es:(ea=1,es=function(e){return e.extend(U9,U9,U7)}),n=U9.default;return e.extend(n(),t)});var qt=["importMeta","importAttributes","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],qn=Object.freeze({__proto__:null,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowUndeclaredExports:!0});let{assign:qr}=Object,qi=U8(()=>U9),qs=U8(()=>U9),qa=U8(()=>U9),qo=U8(()=>U9),ql=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}},qu=["has already been declared"];function qc(e,{parser:t,printer:n,isTS:r,isJSX:i,isRecovery:s}){if("babel"===t)return((e,t)=>{let{sourceFileName:n,isTS:r,isJSX:i=!0,isFlow:s=!e.indexOf("// @flow"),isRecovery:a,printer:o}=t,l={sourceFileName:n,sourceType:"module",...qn,errorRecovery:a,plugins:[...qt,...function({isTS:e,isFlow:t,isJSX:n}){let r=[n&&"jsx"];return e||t?r.concat(["typescript"]):r}({isTS:r,isFlow:s,isJSX:i})].filter(Boolean)};"babel"===o&&qr(l,{createParenthesizedExpressions:!0,tokens:!0});let u=EG(e,l);return u.program.extra.__putout_printer=o,u})(e,{isTS:r,isJSX:i,isRecovery:s,printer:n});if("object"==typeof t)return t.parse(e,{isJSX:i,isTS:r});if("espree"===t)return(e=>{let{parse:t}=qi();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})})(e);if("acorn"===t){let t,n,r;return t=qe(),n={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,preserveParens:!0},r=Array.from(t.tokenizer(e,n)),{...t.parse(e,n),tokens:r}}if("esprima"===t)return(e=>{let{parse:t}=qs();return t(e,{loc:!0,tokens:!0,comment:!0,sourceType:"module",jsx:!0})})(e);if("tenko"===t)return(e=>{let{Tenko:t}=qa(),{ast:n}=t(e,{goalMode:"module",allowGlobalReturn:!0,exposeScopes:!0});return n})(e);if("hermes"===t)return qo().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0});return U1.createRequire("file:///Users/coderaiser/cloudcmd/node_modules/@putout/bundle/bundle/putout.js")(t).parse(e)}let{assign:qp}=Object,qd=(e,t)=>{var n=e;if("string"!=typeof n)throw Error(`☝️ Looks like type of 'source' is not 'string', but '${typeof n}'`);let{parser:r,printer:i="putout",isTS:s,isJSX:a}=t||{},{parse:o}=qf({printer:i,parser:r,isTS:s,isJSX:a});return((e,...t)=>{let[n,r]=ql(e,...t);if(n)throw n.reason="parse",n;return r})(o,e)},qf=({parser:e="babel",isTS:t,isJSX:n,printer:r})=>({parse(i){var s;let a,o,l={};return"babel"===r&&qp(l,{convertParens:!1}),s=((e,t,{isTS:n,isJSX:r,printer:i})=>{let s={parser:t,printer:i,isTS:n,isJSX:r},a={...s,isJSX:!1},o={...s,isRecovery:!0};return((e,t,n,r)=>{let[i,...s]=r,[a,o]=ql(e,t,i);if(!a)return o;if(function(e,t){for(let n of t)if(e.message.includes(n))return!0;return!1}(a,n))throw a;for(let n of s){let[r,i]=ql(e,t,n);if(!r)return i}throw a})(qc,e,qu,[s,a,o])})(i,e,{isTS:t,isJSX:n,printer:r}),a=(e=>{if("File"===e.type)return e;let{comments:t=[],tokens:n,...r}=e;return{type:"File",program:{...r,directives:[]},comments:(e=>{for(let t of e)t.type=UH(t);return e})(t),tokens:n}})(s),Ld(a,{noScope:!0,ParenthesizedExpression:(({convertParens:e})=>t=>{if(!e)return;let{expression:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)})(o={...UZ,...l}),TSParenthesizedType:(({convertParens:e})=>t=>{if(!e)return;let{typeAnnotation:n}=t.node;n.extra=n.extra||{},n.extra.parenthesized=!0,t.replaceWith(n)})(o),enter(e){let{type:t,node:n}=e;if(t.endsWith("Literal"))return(e=>{let{type:t,value:n}=e;if("Literal"===t){if(null===n){e.type="NullLiteral";return}if("string"==typeof n){e.type="StringLiteral";return}if("number"==typeof n){e.type="NumericLiteral";return}if("boolean"==typeof n){e.type="BooleanLiteral";return}if(e.regex){var r=e;for(let e of(r.type="RegExpLiteral",Object.keys(r.regex)))r[e]=r.regex[e];delete r.regex;return}}})(n),U0(n);if("JSXText"===t)return U0(n);if("BlockStatement"===t||"Program"===t)return(e=>{let{node:t}=e;if(!t.directives)for(let n of(t.directives=[],e.get("body"))){if("ExpressionStatement"!==n.type)continue;let e=n.node;if(!("directive"in e)||!e.directive)continue;let r=Uz(UW(e.directive));t.directives.push(r),n.remove()}})(e);if("Property"===t)return void(n.type="ObjectProperty");if("MethodDefinition"===t)return(e=>{let{node:t}=e,{key:n,kind:r,computed:i,loc:s}=t,{body:a,params:o,expression:l,generator:u}=t.value,c=function({kind:e,key:t,params:n,body:r,computed:i,nodeStatic:s}){return(({type:e})=>"PrivateIdentifier"===e)(t)?U$(e,Uq(UK(t.name)),n,r,i):UU(e,t,n,r,i,s)}({kind:r,key:n,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(c),UV(e.node,{loc:s,expression:l,generator:u})})(e);if("FieldDefinition"===t)return void(e.node.type="ClassPrivateProperty");if("PrivateName"===t)return(({node:e})=>{e.name&&(e.id=UJ(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)})(e);if("ImportDeclaration"===t)return(e=>{let{attributes:t=[]}=e.node;e.node.attributes=t})(e);if(UQ(e))return(e=>{let{attributes:t=[]}=e.node;UX(e.node,{attributes:t})})(e);if("ChainExpression"===t)return(e=>{let t=e.get("expression"),{expression:n}=e.node;if(t.isCallExpression()){let e=t.get("callee");n.type="OptionalCallExpression",e.isMemberExpression()&&(n.callee.type="OptionalMemberExpression")}else n.type="OptionalMemberExpression";e.replaceWith(n)})(e);if("TSAbstractMethodDefinition"===t)return(e=>{let{node:t}=e,{generator:n,async:r,params:i,id:s,returnType:a}=t.value,o={...t,abstract:!0,generator:n,async:r,params:i,id:s,returnType:a,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)})(e);if("TSInterfaceHeritage"===t)return(e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){let{object:e,property:n}=t;t.type="TSQualifiedName",t.left=e,t.right=n,delete t.object,delete t.property,t=e}})(e);if("PropertyDefinition"===t)return(e=>{let{node:t}=e;if("PrivateIdentifier"===t.key.type){let{key:e}=t;t.type="ClassPrivateProperty",t.key=UY(e);return}e.node.type="ClassProperty"})(e);if("PrivateIdentifier"===t)return void e.replaceWith(UY(e.node))},exit(e){let{node:t}=e;if((e=>{let{comments:t}=e;if(t)for(let n of(delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0,t)){let t=function({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}(n);e[t]||(e[t]=[]),delete n.leading,delete n.trailing,n.type=UH(n),e[t].push(n)}})(t),UG(t)){for(let t of e.get("properties")){var n,r;let{computed:e,key:i,method:s,value:a}=t.node;s&&UB(a)&&(t.replaceWith(Uj("method",i,a.params,a.body,e)),UR(t.node,{id:null,method:!0,generator:a.generator,loc:(n=i,r=a,n.loc&&r.loc?{start:n.loc.start,end:r.loc.end}:null),async:a.async,type:"ObjectMethod"}))}return}}}),a}}),qh=(e,t,n)=>Py(e,{comments:!1,...t},n);function qm(e,t){t||(t={});var n,r,i,s,a,o=t.vargs||(r=(n=e+"").indexOf("..."))>=0&&(r<n.indexOf(")")||n.indexOf("arguments")>=0),l=[],u=new Map,c=t.maxAge>0&&t.maxAge<1/0?function(e){return s=setTimeout(function(){i?u.delete(e):l.splice(e,1)},t.maxAge)}:0,p=t.equals?t.equals:0,d=t.maxArgs,f=t.serializer;return 1!==e.length||t.equals||o?a=p?function(){for(var t=d||arguments.length,n=l.length,r=-1;++r<n;)if(l[r].length===t){for(var i=-1;++i<t&&p(arguments[i],l[r][i]););if(i===t)return l[r].val}return l[r]=arguments,c&&c(r),arguments.val=e.apply(this,l[r])}:function(){for(var t=d||arguments.length,n=l.length,r=-1;++r<n;)if(l[r].length===t){for(var i=-1;++i<t&&arguments[i]===l[r][i];);if(i===t)return l[r].val}return l[r]=arguments,c&&c(r),arguments.val=e.apply(this,l[r])}:(a=function(t){var n;return f&&(t=f(t)),u.get(t)||(c&&c(t),u.set(t,n=e.call(this,t)),n)},i=1),a.clear=function(){s&&clearTimeout(s),u.clear(),l=[]},a.keys=function(){return i?[...u.keys()]:l.slice()},a.values=function(){return i?[...u.values()]:l.map(e=>e.val)},a}let qy=e=>(...t)=>(...n)=>e(...t,...n);var qg=(e,...t)=>((function(e){if("function"!=typeof e)throw Error("fn should be a function!")})(e),t.length)?qy(e)(...t):qy(e);let{entries:qb}=Object,{isArray:qx}=Array,{isProgram:qS}=tc,qT="__putout_runner_replace";function qv({path:e,program:t}){e.node&&(e.node[qT]=e.node[qT]||new Set),t.node[qT]=t.node[qT]||new Set}function qE({path:e,program:t,watermark:n,highWatermark:r}){qv({path:e,program:t}),e?.node[qT].add(n),t.node[qT].add(r)}let qk=e=>{delete e?.[qT]};function qw({path:e,program:t,watermark:n,highWatermark:r}){let{node:i}=e,{loc:s}=i;return!!(i?.[qT].has(n)||e.findParent(e=>e.node?.[qT]?.has(n))&&!s)||t.node[qT].has(r)}let{nanomemoize:qA=qm}=qm,qP={errorRecovery:!0,...qn,plugins:[...qt,"typescript","jsx"]},{isExpressionStatement:qC,isTSExternalModuleReference:qI}=tc,q_=e=>qC(e)||qI(e)?e.expression:e,qN=qA((e,t)=>{let n=kz(e,{...qP,...t});return(...e)=>q_(n(...e))});qN.extractExpression=q_;let qL=qA((e,t)=>q_(kz.ast(e,{...qP,...t})));function qO(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;)e.unshift("..");return e}qN.ast=(...e)=>{let t=qL(...e);return qk(t),t},qN.program=qA((e,t)=>kz.program(e,{...qP,...t})),qN.program.ast=qA((e,t)=>kz.program.ast(e,{...qP,...t})),qN.ast.fresh=(e,t)=>q_(kz.ast(e,{...qP,...t}));var qD=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,qM=function(e){return qD.exec(e).slice(1)};function qF(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return e=qO(qV(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."}function qB(e){var t=qj(e),n="/"===qJ(e,-1);return(e=qO(qV(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function qj(e){return"/"===e.charAt(0)}function qR(){var e=Array.prototype.slice.call(arguments,0);return qB(qV(e,function(e,t){if("string"!=typeof e)throw TypeError("Arguments to path.join must be strings");return e}).join("/"))}function q$(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=qF(e).substr(1),t=qF(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),s=Math.min(r.length,i.length),a=s,o=0;o<s;o++)if(r[o]!==i[o]){a=o;break}for(var l=[],o=a;o<r.length;o++)l.push("..");return(l=l.concat(i.slice(a))).join("/")}function qU(e){var t=qM(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function qq(e,t){var n=qM(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n}var qK={extname:function(e){return qM(e)[3]},basename:qq,dirname:qU,sep:"/",delimiter:":",relative:q$,join:qR,isAbsolute:qj,normalize:qB,resolve:qF};function qV(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var qJ="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)};let qz=async(e,...t)=>{var n=e;if("function"!=typeof n)throw Error("fn should be a function!");try{return[null,await e(...t)]}catch(e){return[e]}},qW=()=>{},qX=(e,t={})=>{let{module:n=U1}=t,{createRequire:r=()=>qW}=n;return r(e)},qH=async e=>{let t=await n(5561)(e);return t.default||t},qY=qX("file:///Users/coderaiser/cloudcmd/node_modules/@putout/bundle/bundle/putout.js"),{assign:qG}=Object;async function qQ(e,t){let n,r,{simpleImport:i,require:s}=t;for(let t of e){if([n,r]=await qz(i,t),!n)return r;if("ERR_UNSUPPORTED_DIR_IMPORT"===n.code){let e=s.resolve(t);if([n,r]=await qz(i,e),!n)return r}if("ERR_MODULE_NOT_FOUND"!==n.code)throw qG(n,{message:`${t}: ${n.message}`}),n}throw qG(n,{message:n.message.replace(/\simported.*/,"")}),n}function qZ(e){let t=tt.env.PUTOUT_LOAD_DIR;if(!t)return[e];let n=qR(t,e);return[n,`${n}.js`]}let q0=e=>"string"==typeof e,{isArray:q1}=Array,{entries:q2}=Object,q3=e=>{let t=[];for(let n of e){if(q0(n)){t.push([n]);continue}if(q1(n)){let[e,r]=n;t.push([e,r]);continue}t.push(...q2(n))}return t},{isArray:q4}=Array,q5=e=>"boolean"==typeof e,q8=e=>"string"==typeof e,q6=e=>"object"==typeof e,{entries:q9}=Object,{stringify:q7}=JSON,Ke=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),Kt=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${q7(e)}`),Kn=()=>Object.create(null),Kr=(e,t)=>((function(e,t){if(!(q5(t)||/^(on|off)$/.test(t)||q6(t)))throw(({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`))({rule:e,value:t})})(e,t),"on"===t||"off"!==t&&t),Ki=e=>{let t=[];for(let[n,r]of(function(e){if(q4(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e),q9(e))){if(q8(r)){t.push({rule:n,state:Kr(n,r),plugin:null,msg:"",options:Kn()});continue}if(q5(r)){t.push({rule:n,state:r,plugin:null,msg:"",options:Kn()});continue}if(q4(r)&&r.length){t.push(function(e,t){let[n]=t,r=Kr(e,n);if(3===t.length){let[,n,i]=t;return{rule:e,state:r,plugin:null,msg:n,options:i}}let[,i=""]=t;return{rule:e,state:r,plugin:null,msg:"",options:i}}(n,r));continue}if(q6(r))throw Kt(r);throw Ke(r)}return t},Ks=([e,t],n)=>{for(let r of n){if(r.rule!==e)continue;let{msg:n,options:i}=r;return{rule:e,plugin:t,msg:n,options:i}}return{rule:e,plugin:t,msg:"",options:Object.create(null)}},{keys:Ka}=Object,Ko=e=>e.includes("/")?e.split("/").shift():e,Kl=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),Ku=(e,t)=>{for(let{rule:n,state:r}of t)if(n===e)return r;for(let{rule:n,state:r}of t)if(n.includes("/")&&e.startsWith(n))return r;for(let{rule:n,state:r}of t)if(e.startsWith(`${n}/`))return r;return!0},Kc=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},Kp=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)},{entries:Kd}=Object,{isArray:Kf}=Array,{stringify:Kh}=JSON,Km=e=>"boolean"==typeof e,Ky=e=>{Kc(e);let{pluginNames:t=[],rules:n={}}=e;(({items:e,rules:t})=>{for(let n of Ka(t)){let t=!1,r=!1,i=!1;for(let[s,a={}]of e){let e=Kl(s);if(t=e===n,r=e===Ko(n),i=n.includes(e),t&&a.rules)throw Error(`Rule '${n}' cannot be applied to nested plugin '${s}'`);if(t||r||i)break}if(!t&&!r&&!i)throw Error(`No plugin found for a rule: '${n}'`)}})({rules:n,items:q3(t)}),function(e){for(let[,t]of Kd(e)){if(!Kf(t))continue;let[e]=t;if(!/^(on|off)$/.test(e)&&!Km(e))throw Error(`☝️ Looks like 'state' not 'boolean | 'on' | 'off', but: '${Kh(e)}'`)}}(n)},{entries:Kg,fromEntries:Kb}=Object,Kx=e=>e.split("/")[0],KS=({rules:e,pluginNames:t})=>{let n=(e=>{let t=[];for(let n of e){let{rule:e}=n;e.includes("/")||t.push(n)}return t})(Ki((e=>{let t=new Map;for(let[n,r]of Kg(e))t.has(n)||(n.includes("/")&&Kr(n,r)&&t.set(Kx(n),"on"),t.set(n,r));return Kb(t)})(e)));return{items:q3(t),loadedRules:n,cookedRules:Ki(e)}},KT=["find","traverse","replace","include","exclude","rules","declare","scan"];var Kv=({plugin:e,rule:t})=>{let n=Object.keys(e);for(let e of KT)if(n.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)};let{isArray:KE}=Array,Kk=e=>KE(e)?e:["on",e],Kw=({plugins:e,cookedRules:t})=>{let n=[];for(let[r,i]of e){if(!Ku(r,t))continue;let[e,s]=Kk(i);(function(e,t,n){if("on"===t)return!0;for(let{rule:t,state:r}of n)if(t.includes("/")&&e.startsWith(t))return r;return!1})(r,e,t)&&n.push(Ks([r,s],t))}return n},KA=((e,t={})=>{let{simpleImport:n=qH}=t;return async t=>{if("none"===t)return()=>{};if(t.startsWith("import:")){let e=t.replace("import:","");return await qQ([qY.resolve(e)],{simpleImport:n,require:qY})}let r=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=r.flatMap(qZ),s=Array.from(new Set([...r,...i]));return await qQ(s,{simpleImport:n,require:qY})}})("plugin"),KP=async e=>{Kc(e);let{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=KS({rules:n,pluginNames:t});return Kw({plugins:await async function({items:e,loadedRules:t}){let n=[],r=[];for(let[s,a]of e){var i;if(!Ku(s,t))continue;Kp(s);let[e]=KC(s),o=a||await KA(e);n.push((i=s).startsWith("import:")?qq(i.replace("import:","")).replace("plugin-",""):i),r.push(o)}let s=[];for(let[e,t]of n.entries()){let n=r[e];Kv({plugin:n,rule:t});let{rules:i}=n;if(i){s.push(...function(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push([`${e}/${r}`,i]);return n}(t,i));continue}s.push([t,n])}return s}({items:r,loadedRules:i}),cookedRules:s})},KC=e=>[e,"putout"],{isArray:KI}=Array,K_=e=>{Kc(e);let{pluginNames:t=[],rules:n={}}=e,{items:r,loadedRules:i,cookedRules:s}=KS({rules:n,pluginNames:t});return Kw({plugins:function({items:e,loadedRules:t}){let n=[];for(let[r,i]of e){if(Kp(r),!Ku(r,t))continue;let e=KL(r),[s,a]=KN(r),o=KO(i)||function({name:e,namespace:t}){let{loadPlugin:n}=qX("file:///Users/coderaiser/cloudcmd/node_modules/@putout/bundle/bundle/putout.js")("../load/load.js");return n({name:e,namespace:t})}({name:s,namespace:a});Kv({plugin:o,rule:r});let{rules:l}=o;if(l){n.push(...function(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push([`${e}/${r}`,i]);return n}(e,l));continue}n.push([e,o])}return n}({items:r,loadedRules:i}),cookedRules:s})},KN=e=>[e,"putout"],KL=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),KO=e=>KI(e)?e[1]:e;function KD(e,t){let n=0,r=0,i=-1,s=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,s=n):n++,r++;else{if(-1===i)return!1;r=i+1,n=++s}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}let KM="",KF=[],KB=[],Kj=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],KR={useColors:!0,formatArgs:function(e,t){let{useColors:n}=this;if(t[0]=`${(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")}+${this.humanize(e)}`,!n)return;let r=`color: ${this.color}`;t.splice(1,0,r,"color: inherit");let i=0,s=0;t[0].replace(/%[a-z%]/gi,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,r)},formatters:{j(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: ${e.message}`}}},inspectOpts:{},humanize:function(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`},log:console.debug||console.log||(()=>{})};function K$(e,t){var n;let r=null!=(n=t&&t.color)?n:function(e,t){let n=0;for(let e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e)|0;return e[Math.abs(n)%e.length]}(Kj,e);return function e(t,n){let r,i,s,a,o=(...e)=>{var t;if(!o.enabled)return;let i=Date.now(),s=i-(r||i);r=i,e[0]=(t=e[0])instanceof Error?t.stack||t.message:t,"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-z%])/gi,(t,r)=>{if("%%"===t)return"%";a++;let i=n.formatters[r];if("function"==typeof i){let n=e[a];t=i.call(o,n),e.splice(a,1),a--}return t}),n.formatArgs.call(o,s,e),o.log(...e)};return o.extend=function(t,n=":"){return e(this.namespace+n+t,{useColors:this.useColors,color:this.color,formatArgs:this.formatArgs,formatters:this.formatters,inspectOpts:this.inspectOpts,log:this.log,humanize:this.humanize})},Object.assign(o,n),o.namespace=t,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!=i?i:(s!==KM&&(s=KM,a=function(e){for(let t of KB)if(KD(e,t))return!1;for(let t of KF)if(KD(e,t))return!0;return!1}(t)),a),set:e=>{i=e}}),o}(e,Object.assign(KR,{color:r},t))}var KU=function(){let e;try{e=localStorage.getItem("debug")||localStorage.getItem("DEBUG")}catch(e){}return!e&&void 0!==tt&&"env"in tt&&(e=tt.env.DEBUG),e||""}();for(let e of(KF=[],KB=[],(KM=KU).trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===e[0]?KB.push(e.slice(1)):KF.push(e);let Kq=e=>new Proxy(K$(e,{useColors:!0}),{apply:(t,n,r)=>(globalThis.__putout_debug?.(e,...r),t(...r)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]}),{stringify:KK}=JSON,KV=Kq("putout:runner:fix");var KJ=(e,t,{path:n,pathOptions:r,rule:i,position:s,options:a})=>{e&&(KV.enabled&&KV(`${i}:`,s,(n.path||n).toString()),function(e){if("function"!=typeof e)throw Error(`☝️ Looks like 'fix' is not a 'function' but '${typeof e}' with value: '${KK(e)}'. More on writing 🐊Putout Plugins: https://git.io/JqcMn`)}(t),((e,{path:t,pathOptions:n,position:r,options:i})=>{let[s]=ql(e,...(({path:e,pathOptions:t,options:n})=>[e,{options:n,...t}])({path:t,pathOptions:n,options:i})),{scope:a}=t.path||t;if(!s&&a&&a.getProgramParent().crawl(),s)throw s.loc=s.loc||r,s.reason="fix",s})(t,{path:n,pathOptions:r,position:s,options:a}))};let Kz=e=>e.path||e[0]||e,KW=e=>{let t=Kz(e);var n=t;if(!n.node)throw Error("☝️ Looks like 'push' called without a 'path' argument.");let{node:r}=t,{loc:i}=r;if(!i)return{line:1,column:1};let{line:s,column:a}=r.loc.start;return{line:s,column:a}},{isArray:KX}=Array;var KH=e=>e?KX(e)?e:[e]:[];let{stringify:KY}=JSON,{isArray:KG}=Array,KQ=(e,t)=>{if("include-items"===e){if(!KG(t))throw Error("☝️ Looks like 'include' does not return an 'array'. More on using Includer: https://git.io/JqcMn");return}if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${KY(t)}'. More on using Includer: https://git.io/JqcMn`)},{values:KZ,entries:K0,assign:K1}=Object,K2=e=>e.node,K3=e=>Array.from(e).filter(K2),K4=e=>e,K5=Vt(),K8=Vt(K3),K6=Ve({get:e=>KZ(e),set(e,t,n){e[t]=n}}),K9=Ve({get:e=>KZ(e),set(e,t,n){e[t]=e[t]||{},K1(e[t],n)}}),K7=Ve({get:e=>KZ(e).map(K3),set(e,t,n){e[t]=e[t]||new Set,e[t].add(n)}});function Ve({set:e,get:t}){return (n={})=>{let r=(...r)=>{if(!r.length)return t(n);let[i,s]=r;if(1===r.length)return n[i];e(n,i,s)};return r.clear=()=>{n={}},r.entries=()=>K0(n),r}}function Vt(e=K4){return (t=new Set)=>{let n=(...n)=>{if(!n.length)return e(Array.from(t));let[r]=n;t.add(r)};return n.clear=()=>{let n=t;return t=new Set,e(Array.from(n))},n}}let{merge:Vn}=Ld.visitors,{assign:Vr}=Object,Vi=(e,t,n)=>{let r=[];return t[e]&&(KQ(e,t[e]),r.push(...KH(t[e]()))),n[e]&&r.push(...KH(n[e])),r};var Vs=(e,{fix:t,template:n})=>{let r=[],i={};for(let{rule:s,plugin:a,msg:o,options:l}of e){let{push:e,pull:u,store:c,upstore:p,listStore:d,pathStore:f,uplist:h}=function(e,{fix:t,rule:n,msg:r,options:i}){let s=K6(),a=K5(),o=K9(),l=K5(),u=K7(),c=K8();return{push:(s,a)=>{let o=KW(s);l({message:r||e.report(s,{options:i,...a}),position:o}),KJ(t,e.fix,{path:s,pathOptions:a,rule:n,position:o,options:i})},pull:()=>(s.clear(),a.clear(),o.clear(),u.clear(),c.clear(),l.clear()),store:s,listStore:a,upstore:o,uplist:u,pathStore:c}}(a,{fix:t,rule:s,msg:o,options:l});i[s]=u;let m=a.traverse({push:e,store:c,listStore:d,pathStore:f,upstore:p,uplist:h,generate:qh,options:l});if(!m)throw Error(`☝️ Visitors cannot be empty in "${s}"`);Vr(l,{include:Vi("include",a,l),exclude:Vi("exclude",a,l)}),r.push(...n({rule:s,visitor:m,options:l}))}return{entries:Object.entries(i),visitor:Vn(r)}};let{merge:Va}=Ld.visitors;function Vo({rule:e,find:t,ast:n,options:r,template:i,traverse:s=Ld}){let a=[],o=t(n,{traverse:Vl({rule:e,options:r,template:i,traverse:s}),generate:qh,types:tc,push:e=>{a.push(e)},options:r});return[...a,...o||[]]}let Vl=({rule:e,options:t,template:n,traverse:r})=>(i,s)=>r(i,Va(n({rule:e,visitor:s,options:t}))),Vu=new Proxy(K$("putout:compare"),{apply:(e,t,n)=>(globalThis.__putout_debug?.("putout:compare",...n),e(...n)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]}),{isArray:Vc}=Array;function Vp(e){if(Vc(e)&&e[0]){let[{type:t,name:n,value:r}]=e;return`${t}: ["${n||r}"]`}if(e&&"object"==typeof e){let{type:t,name:n,value:r}=e;return`${t}: "${n||r}"`}return`${typeof e}: "${e}"`}let{isIdentifier:Vd,isLiteral:Vf,isStringLiteral:Vh,isTemplateElement:Vm,isTSTypeReference:Vy,isJSXText:Vg,isJSXIdentifier:Vb}=tc,{isBlockStatement:Vx,isTSModuleBlock:VS,isBooleanLiteral:VT,isIdentifier:Vv,isLiteral:VE,isTemplateElement:Vk,isFunction:Vw,isImportDefaultSpecifier:VA,isExportSpecifier:VP,isExportDefaultSpecifier:VC,isRegExpLiteral:VI,isJSXText:V_,isJSXIdentifier:VN,isJSXAttribute:VL,isTSTypeReference:VO,isTSTypeParameterDeclaration:VD}=tc,{isArray:VM}=Array,VF="__object",VB="__array",Vj="__args",VR="__type_params",V$="__imports",VU="__exports",Vq="__body",VK="__jsx_children",VV="__jsx_attributes",VJ="__identifier",Vz="__bool",VW=/^__[a-z]$/,VX=/__args__[a-z]$/,VH=/^__identifier__[a-z]$/,VY=/^__bool__[a-z]$/,VG=[VF,VB,Vj,VR,Vz,VK,VV,V$,VU,Vq,"__",VJ,VW,VX,VH,VY],VQ=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),VZ=(e,t=VG)=>{for(let i of t){var n,r;if(n=e,"string"==typeof(r=i)?n===r:r.test(n))return!0}return!1},V0=e=>e===V$,V1=e=>e===VU,V2=e=>e===Vj||VX.test(e),V3=e=>e===VR,V4=e=>e===VK,V5=e=>e===VV,V8=e=>e===Vq,V6=e=>Vv(e,{name:Vq}),V9=(e,t)=>!!Vv(t,{name:VJ})&&Vv(e),V7=(e,t)=>!!Vv(t)&&!!VH.test(t.name)&&Vv(e),Je=(e,t)=>!!VI(t)&&!!VW.test(t.pattern)&&VI(e),Jt=e=>!(!e||VM(e))&&"object"==typeof e,Jn=(e,t)=>!!VM(e)&&!!VM(t)&&e.length===t.length,Jr="ObjectPattern|ObjectExpression",Ji="ArrayPattern|ArrayExpression",Js=(e,t)=>{if(!e||!Vv(t,{name:VB}))return!1;let{type:n}=e;return Ji.includes(n)},Ja=(e,t)=>{if(!e)return!1;let{type:n}=e;return!!Vv(t,{name:VF})&&Jr.includes(n)},Jo=(e,t)=>!!e&&!!V6(t)&&"BlockStatement"===e.type,Jl=(e,t)=>{if(!Vv(t,{name:"__nop"})||!Vw(e))return!1;let{body:n}=e;return!!Vx(n)&&!n.body.length},Ju=e=>!!(Vv(e)&&VW.test(e.name)||VE(e)&&VW.test(e.value)||V_(e)&&VW.test(e.value)||VN(e)&&VW.test(e.name)||Vk(e)&&VW.test(e.value.raw))||VO(e)&&VW.test(e.typeName.name),Jc=(e,{program:t}={})=>{let n=(t?qN.program.ast:qN.ast)(e)||qN.ast.fresh(e);if(e===VF)return[n,Jr];if(e===VB)return[n,Ji];let{type:r}=n;return[n,r]},Jp=(e,t)=>("object"!=typeof t||null===t)&&!VZ(t)&&t===e,{isIdentifier:Jd}=tc,{isClassBody:Jf,isBlock:Jh,isJSXText:Jm,isTemplateElement:Jy}=tc,Jg=e=>(t,n)=>e(n),Jb=[Jp,function(e,t){if(!Jy(e)||!Jy(t))return!1;let n=e.value.raw===t.value.raw,r=e.value.cooked===t.value.cooked,i=e.tail===t.tail;return n&&r&&i},function(e,t){return!!Jm(e)&&!!Jm(t)&&/^\s+$/.test(t.value)&&/^\s+$/.test(e.value)},function(e,t){return"__"===t},Jg(Jf),Jg(e=>Jh(e)&&!e.body.length),Jg(e=>!!Vv(e,{name:"__"})||V_(e,{value:"__"})),V9,(e,t)=>!!Vv(t,{name:Vz})&&VT(e),Js,Ja,Jo,(e,t)=>{if(!e||!(V6(t)||(Vx(t)||VS(t))&&V6(t.body[0].expression)))return!1;let{type:n}=e;return/BlockStatement|TSModuleBlock/.test(n)},Jl,(e,t)=>!!e&&!!(e=>{if(!VD(e))return!1;let{params:t}=e,{name:n}=t[0];return Vv(n,{name:VR})})(t)&&e.type===t.type,Je,function(e,t,{add:n,templateStore:r}){let i;return!!(e&&(Ju(t)||Vv(i=VM(t)?t[0]:t)&&VX.test(i.name)||V7(e,t)||Vv(t)&&VY.test(t.name)&&VT(e)))&&(({add:e,value:t,nodeValue:n,templateStore:r})=>{let i=(e=>{let{name:t,value:n}=e=e[0]||e;if(Vd(e)||Vb(e))return t;if(Vf(e))return n;if(Vm(e))return e.value.cooked;if(Vy(e))return e.typeName.name;if(Vg(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)})(t);return(!Vh(t)||!!Vh(n))&&(r[i]?!!(Vd(r[i])&&Vy(n))||(e(r[i],n,{plain:!0}),!0):(r[i]=n,!0))})({add:n,value:t,nodeValue:e,templateStore:r})},(e,t)=>!!VE(t,{value:"__"})&&e.type===t.type,Jg(e=>{let t=VM(e)?e[0]:e;return!!VA(t)&&Vv(t.local,{name:V$})}),Jg(e=>{let t=VM(e)?e[0]:e;return VP(t)?Vv(t.local,{name:VU}):!!VC(t)&&Vv(t.exported,{name:VU})}),Jg(e=>Vv(VM(e)?e[0]:e,{name:Vj})),Jg(e=>V_(VM(e)?e[0]:e,{value:VK})),Jg(e=>{let t=VM(e)?e[0]:e;return!!VL(t)&&VN(t.name,{name:VV})}),function(e,t,{add:n}){let r=Jt(t);return r&&n(e,t),r},function(e,t,{add:n}){let r=Jn(e,t);return r&&n(e,t),r}],Jx=(e,t,{add:n,templateStore:r,plain:i})=>{let s=-1,a=Jb.length;if(((e,t)=>{if(!Vu.enabled)return;let n=Vp(e),r=Vp(t);return Vu(`${n} = ${r}`)})(t,e),i)return((e,t,{add:n})=>!e&&e===t||!!e&&(!!(Jp(e,t)||Jd(e)&&e.name===t.name)||!!(Jt(t)&&!Array.isArray(t)||Jn(e,t))&&n(e,t,{plain:!0})))(e,t,{add:n});for(;++s<a;)if((0,Jb[s])(e,t,{add:n,templateStore:r}))return!0;return!1},{isIdentifier:JS,isStringLiteral:JT}=tc,Jv=[Ja,Js,Jl,function(e,t){return JS(e)&&Ju(t)},function(e,t){return JT(e)&&Ju(t)},V7,Je,Jo],JE=(e,t=Number(e))=>!Number.isNaN(t)&&"number"==typeof t,Jk=e=>/__proto__|prototype/.test(e);function Jw(e,t,n,r){r||(r=n||{},n=".");let i=r;var s=e;if("string"!=typeof s)throw Error("selector should be string!");let a=e.split(n).filter(Boolean),o=a.length-1;for(let[e,n]of a.entries())if(!Jk(n)){if(e===o)r[n]=t;else if(!r[n]){let t=a[e+1];r[n]=JE(t)?[]:{}}r=r[n]}return i}let JA=/\.body\.0\.expression$/,JP=/\.body\.0\.key$/,JC=/\.body\.0$/,JI=e=>e.replace(JA,"").replace(JP,"").replace(JC,""),{isIdentifier:J_,isStatement:JN,isJSXElement:JL,isJSXAttribute:JO,isStringLiteral:JD,isTemplateLiteral:JM,templateElement:JF}=tc,{extractExpression:JB}=qN,{entries:Jj}=Object,{stringify:JR}=JSON,J$=(e,t)=>{let n,r;if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${JR(t)}'`);return Jq({node:e=(r=e=(n=e).node||n).expression||r,waysFrom:JU(qN.ast(t))})};function JU(e){if(J_(e)&&VZ(e.name))return{[e.name]:[""]};let t={};return Ld(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(e.isIdentifier()&&e.parentPath?.isTSTypeReference()||e.isIdentifier()&&e.parentPath?.isTSTypeParameter())return;let{node:n}=e;if(JO(e.parentPath)&&e.parentPath.node.name===n)return;let r=[],i=FH(n);VZ(i)&&(e.find(({key:e,listKey:t})=>{"number"==typeof e?r.unshift(`${t}.${e}`):r.unshift(e)}),t[i]=t[i]||[],t[i].push(r.join(".")))}}),t}function Jq({waysFrom:e,node:t}){let n={};for(let[r,i]of Jj(e))for(let e of i)V0(r)?e=e.replace(/\.0.local$/,""):V1(r)?e=e.replace(/\.0.(local|exported)$/,""):(V2(r)||V4(r)||V5(r)||V3(r))&&(e=e.replace(/\.0$/,"")),JL(t)||(e=e.replace(/\.expression$/,"")),V8(r)&&(e=JI(e)),n[r]=n[r]||JB(Ly(e,t));return n}let JK=e=>e.replace("`","\\`");function JV({waysTo:e,values:t,path:n}){let r=JB(n.node);for(let[i,s]of Jj(e))for(let e of s){if(!e){Bx(n,t[i]);continue}if(V0(i)?e=e.replace(/\.0.local$/,""):V1(i)&&(e=e.replace(/\.0.(local|exported)$/,"")),(V2(i)||V4(i)||V5(i))&&(e=e.replace(/\.0$/,"")),JN(t[i])&&(e=e.replace(/\.expression$/,"")),JD(t[i])&&JM(r)){let{value:n}=t[i];Jw(e,JF({raw:JK(n)}),r);continue}V8(i)&&(e=JI(e));let{extra:s}=Ly(e,r);if(s){let e=t[i].extra;t[i].extra={...s,...e}}Jw(e,t[i],r)}}let{extractExpression:JJ}=qN,{keys:Jz}=Object,{isArray:JW}=Array,JX=()=>{},JH=e=>JW(e)&&!e.length,JY=e=>JW(e)?e:[e];function JG(e){return"string"==typeof e?qN.ast(e):e.node?e.node:e}function JQ(e,t,n={},r=JX){let{findUp:i=!0}=n;if(!e&&!t)return!0;if(!e||!t)return!1;let s=JJ(JG(e)),a=JJ(JG(t));if(r(s,a),V9(s,a)||s.type===t||((e,t)=>{let n=-1,r=Jv.length;for(;++n<r;)if((0,Jv[n])(e,t))return!0;return!1})(s,a))return!0;if(i&&e.node&&s.type!==a.type){let t,{type:n}=a;return J2((t=e.findParent(e=>e.type===n))?t.node:null,a)}return J2(s,a)}let JZ=(e,t,n)=>{for(let r of t=JY(t))if(JQ(e,r,n))return!0;return!1},J0=(e,t,n)=>{for(let r of t=JY(t))if(!JQ(e,r,n))return!1;return!0},J1=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function J2(e,t){let n=[e,t],r=[n],i={},s=(e,t,n={})=>r.push([e,t,n]);for(;n=r.pop();){let[e,t,{plain:r}={}]=n;if(!e||JH(e)&&!JH(t))return!1;for(let n of Jz(t)){if(!J1.includes(n)){if(!Jx(JJ(e[n]),JJ(t[n]),{add:s,templateStore:i,plain:r}))return!1}}}return!0}let J3=Kq("putout:runner:template"),{entries:J4}=Object,{stringify:J5}=JSON,J8=({rule:e,tmpl:t,fn:n,nodesExclude:r})=>"function"==typeof n&&r.length?{[t]:J9({rule:e,fn:n,nodesExclude:r,nodesInclude:[]})}:{[t]:n};var J6=({rule:e,visitor:t,options:n})=>{let r=[],i=KH(n.exclude),s=KH(n.include);for(let[n,a]of J4(t)){if(!n)continue;if(!VQ(n)){r.push(J8({rule:e,tmpl:n,fn:a,nodesExclude:i}));continue}let[t,o]=Jc(n),l=J9({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});r.push({[o]:l})}return r};let J9=({rule:e,nodesInclude:t,nodesExclude:n,fn:r})=>i=>{if(J3.enabled&&J3(e,i.toString()),n.length&&JZ(i,n)||t.length&&!J0(i,t))return;if("function"!=typeof r)throw Error(`☝️ Looks like provided visitor is not a function: ${J5(r)}. More on using Traverser: https://git.io/JqcMn`);let[s]=ql(r,i);if(s)throw s.rule=e,s};function J7(){}function ze(){ze.init.call(this)}function zt(e){return void 0===e._maxListeners?ze.defaultMaxListeners:e._maxListeners}function zn(e,t,n,r){if("function"!=typeof n)throw TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]):(a=e._events=new J7,e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),!o.warned&&(s=zt(e))&&s>0&&o.length>s){o.warned=!0;var i,s,a,o,l=Error("Possible EventEmitter memory leak detected. "+o.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,i=l,"function"==typeof console.warn?console.warn(i):console.log(i)}}else o=a[t]=n,++e._eventsCount;return e}function zr(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function zi(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function zs(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}J7.prototype=Object.create(null),ze.EventEmitter=ze,ze.usingDomains=!1,ze.prototype.domain=void 0,ze.prototype._events=void 0,ze.prototype._maxListeners=void 0,ze.defaultMaxListeners=10,ze.init=function(){this.domain=null,!ze.usingDomains||!eo.active||this instanceof eo.Domain||(this.domain=eo.active),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new J7,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ze.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},ze.prototype.getMaxListeners=function(){return zt(this)},ze.prototype.emit=function(e){var t,n,r,i,s,a,o,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(o=this.domain,l){if(t=arguments[1],o)t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t);else if(t instanceof Error)throw t;else{var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=zs(e,r),s=0;s<r;++s)i[s].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,s=zs(e,i),a=0;a<i;++a)s[a].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var s=e.length,a=zs(e,s),o=0;o<s;++o)a[o].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,s){if(t)e.call(n,r,i,s);else for(var a=e.length,o=zs(e,a),l=0;l<a;++l)o[l].call(n,r,i,s)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=Array(r-1),s=1;s<r;s++)i[s-1]=arguments[s];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,s=zs(e,i),a=0;a<i;++a)s[a].apply(n,r)}(n,c,this,i)}return!0},ze.prototype.addListener=function(e,t){return zn(this,e,t,!1)},ze.prototype.on=ze.prototype.addListener,ze.prototype.prependListener=function(e,t){return zn(this,e,t,!0)},ze.prototype.once=function(e,t){if("function"!=typeof t)throw TypeError('"listener" argument must be a function');return this.on(e,zr(this,e,t)),this},ze.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw TypeError('"listener" argument must be a function');return this.prependListener(e,zr(this,e,t)),this},ze.prototype.removeListener=function(e,t){var n,r,i,s,a;if("function"!=typeof t)throw TypeError('"listener" argument must be a function');if(!(r=this._events)||!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new J7:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){a=n[s].listener,i=s;break}if(i<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new J7,this;delete r[e]}else{for(var o=n,l=i,u=l,c=u+1,p=o.length;c<p;u+=1,c+=1)o[u]=o[c];o.pop()}r.removeListener&&this.emit("removeListener",e,a||t)}return this},ze.prototype.off=function(e,t){return this.removeListener(e,t)},ze.prototype.removeAllListeners=function(e){if(!(n=this._events))return this;if(!n.removeListener)return 0==arguments.length?(this._events=new J7,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new J7:delete n[e]),this;if(0==arguments.length){for(var t,n,r,i=Object.keys(n),s=0;s<i.length;++s)"removeListener"!==(r=i[s])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new J7,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do this.removeListener(e,t[t.length-1]);while(t[0])return this},ze.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},ze.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):zi.call(e,t)},ze.prototype.listenerCount=zi,ze.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};let za=()=>{let e=0,t=0,n=new ze;return n.reset=()=>{t=0,e=0},n.file=({i:e,n:t,percent:r,rule:i})=>{n.emit("file",{i:e,n:t,rule:i,percent:r})},n.inc=()=>{++e},n.start=r=>{++t,n.emit("start",{pluginsIndex:t,pluginsCount:e,rule:r})},n.push=r=>{n.emit("push",{pluginsIndex:t,pluginsCount:e,rule:r})},n.end=r=>{n.emit("end",{rule:r,pluginsIndex:t,pluginsCount:e})},n},zo=(e,...t)=>{let[n,r]=ql(e,...t);if(n)throw n.reason??="traverse",n;return r},zl=Kq("putout:runner:include"),zu=()=>[],zc=()=>!0,zp=({rule:e,plugin:t,msg:n,options:r})=>{let{fix:i,report:s,include:a,exclude:o=zu,filter:l=zc}=t;KQ("include",a),KQ("report",s),KQ("include-items",a());let u=zd(a(),l,e);return{rule:e,msg:n,options:{...r,exclude:[...o(),...KH(r.exclude)]},plugin:{report:s,fix:i,traverse:u}}},zd=(e,t,n)=>({push:r,options:i})=>{let s={},a=(({rule:e,filter:t,push:n,options:r})=>i=>{zl(e),t(i,{options:r})&&n(i)})({rule:n,filter:t,push:r,options:i});for(let t of e)s[t]=a;return s},zf=Kq("putout:runner:replace"),zh=(e,t)=>{zf.enabled&&zf(`${e} -> ${t}
|
|
36
|
+
`)},{isExpression:zm,isStatement:zy,isExpressionStatement:zg}=tc,zb={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:zx,entries:zS}=Object,{stringify:zT}=JSON,zv=()=>[],zE=({rule:e,plugin:t,msg:n,options:r})=>{let i=(t.match||(()=>({})))({options:r}),{report:s,exclude:a=zv,replace:o,filter:l=zA(i)}=t,u=o({options:r}),c=zw(u,i),p=()=>zx(u);return{rule:e,msg:n,options:{...r,exclude:[...a(),...KH(r.exclude)]},plugin:{report:s,fix:c,filter:l,include:p}}},zk=(e,t,n)=>{let r=qN.ast(e),i=((e,t,n)=>{var r,i,s;let a,o,{watermark:l,highWatermark:u}=(r=e,i=t,s=n,a=`${r} -> ${i}`,o=`${(e=>{let t={parentPath:e},n=[];for(;t=t.parentPath;)n.unshift(function(e,t){let n,r,{node:i}=e;for([n,r]of qb(t)){if(qx(r)){let e=r.indexOf(i);if(e>=0)return`${n}.${e}`;continue}if(r===i)break}return n}(t,t.parent));return n.join(".")})(s)}: ${a}`,{watermark:a,highWatermark:o}),c={watermark:l,highWatermark:u,program:n.findParent(qS),path:n};return{init:qg(qv,c),has:qg(qw,c),add:qg(qE,c)}})(e,t,n);if(i.init(),i.has())return;let s=JU(r),a=Jq({waysFrom:s,node:((e,{node:t})=>e.type!==t.type&&zg(t)?t.expression:t)(r,n)}),o=function(e,t,n){let r="function"==typeof e?e(t,n):e;if(!r)return null;if("object"==typeof r&&r.type)return r.__putout_replace_cooked=!0,r;if("string"!=typeof r)throw Error(`☝️ Looks like you passed 'replace' value with a wrong type. Allowed: 'string', 'node' and 'path'. Received: '${typeof r}' with value '${r}'.`);return qN.ast.fresh(r)}(t,a,n);if(!o)return zh(e,"''"),FZ(n);var l=r,u=o,c=n;if(!(!zm(l)||!zy(u)||zg(u))&&!(zg(c)||zg(c.parentPath)))throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${UF(l,zb)} -> ${UF(u,zb)}'. For code: '${c}'`);let p=JU(o),d=Bx(n,o);o.__putout_replace_cooked||(zC(p,s),JV({waysTo:p,values:a,path:d})),i.add(),n.scope.getBlockParent().crawl(),zh(e,d)},zw=(e,t)=>n=>{for(let[r,i]of zS(e)){let e=qN.ast(r);if(JQ(n,e,{findUp:!1})){let s=t[r];(!s||zP(n,e,s))&&zk(r,i,n)}}},zA=e=>t=>{for(let[n,r]of zS(e)){let e=qN.ast(n);if(JQ(t.node,e,{findUp:!1}))return zP(t,e,r)}return!0};function zP(e,t,n){let r=JU(t),{node:i}=e,s=Jq({waysFrom:r,node:i});return function(e){if("function"!=typeof e)throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(n),n(s,e)}let zC=(e,t)=>{for(let n of zx(e))if(!t[n])throw Error(`☝️ Looks like template values not linked: ${zT(zx(t))} -> ${zT(zx(e))}`)},zI="__putout_declare",z_=e=>e.scope.getProgramParent().path,zN=(e,t)=>t[e]=t[e]||{},zL=(e,t)=>{let n=z_(t);return zN(zI,n),n[zI].__putout_module_type=e,e},zO=e=>{let t=z_(e);return zN(zI,t),t[zI].__putout_module_type},{isImportDeclaration:zD,isVariableDeclaration:zM,isFunction:zF,isTSParameterProperty:zB}=tc,{keys:zj}=Object,{isArray:zR}=Array,z$=e=>e.node.source.value.includes("."),zU=["TSMethodSignature","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSParameterProperty","TSTypeAliasDeclaration","TSQualifiedName"],zq=e=>({report:zK,fix:zJ(e),traverse:zV(e)}),zK=e=>{let{name:t}=e.node,n=t.split(".").shift();return`Declare '${n}', it referenced but not defined`},zV=e=>({push:t,options:n})=>({ReferencedIdentifier:function r(i){let s,{parentPath:a,scope:o,node:l}=i;if(zB(a)&&a.node.decorators){for(let e of a.get("decorators")){let t=e.get("expression");JQ(t,"__a(__b)")&&r(t.get("callee"))}return}if(zU.includes(a.type))return!1;let{dismiss:u=[],type:c}=n,p={...e,...n.declarations},d=zj(p),{name:f}=l;if(!d.includes(f)||u.includes(f)||o.hasBinding(f)||(zN(zI,s=z_(i)),s[zI][f]))return!1;zW(function(e,t){if(t)return zL(t,e);let n=zO(e);return n?n:zL(BC(e)?"esm":"commonjs",e)}(i,c),p[f])&&t(i)}}),zJ=e=>(t,{options:n})=>{let r,i=zO(t),s={...e,...n.declarations},{name:a}=t.node,o=s[a],l=zW(i,o),u=zz(t,o);!function(e,t,n){let r=function(e,t,n){let r=zH(t),i=t.filter(zM).pop();return zR(n)&&n[1].top?t[0]:zM(e)&&r||(zD(e)||zX(e))&&r?r:zM(e)&&i&&t.at(-1)!==i?i:null}(e,t,n),[i]=t;zM(e)&&zD(r)||zX(r)?BP(r,e):zM(e)?zX(i)?i.insertAfter(e):i.insertBefore(e):r?r.isImportDeclaration()&&z$(r)?r.insertBefore(e):BP(r,e):i.insertBefore(e)}(qN.ast.fresh(l),u,o),zN(zI,r=z_(t)),r[zI][a]=!0},zz=(e,t)=>{if(zR(t)&&t[1].nearby){let t=e.find(zF);if(t)return t.get("body.body")}return e.scope.getProgramParent().path.get("body")},zW=(e,t)=>"string"==typeof t?t:zR(t)?t[0]:t[e],zX=e=>JQ(e,"const __a = require(__b)"),zH=e=>{let t=[],n=[];for(let r of e)if(r.isImportDeclaration()){if(z$(r)){n.push(r);continue}t.push(r)}return t.pop()||n.pop()},{stringify:zY}=JSON,zG=({rule:e,plugin:t,msg:n,options:r})=>((function(e){if("function"!=typeof e)throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${zY(e)}'.`)})(t.declare),{rule:e,plugin:zq(t.declare()),msg:n,options:r}),zQ=OA(),{assign:zZ}=Object,z0=()=>{},z1={renameFile:z0,removeFile:z0,createDirectory:z0,readFileContent:()=>"",writeFileContent:z0,copyFile:z0},z2=zZ({},z1),z3=(e,t)=>{z2.renameFile(e,t)},{isFile:z4,isProgram:z5}=tc,{merge:z8}=Ld.visitors,{entries:z6}=Object,z9=([e])=>e;function z7(e,t){let n=(e=>{if(e.node)return e.traverse.bind(e);let t=!z4(e)&&!z5(e);return n=>{Ld(e,{noScope:t,...n})}})(e),r=[],i=z6(t);if(!i.map(z9).find(VQ))return n(t);for(let[e,t]of i){if(!VQ(e)){r.push({[e]:t});continue}let[n,i]=Jc(e),s=We({fn:t,node:n,tmpl:e});r.push({[i]:s})}n(z8(r))}let We=({fn:e,node:t,tmpl:n})=>r=>{JQ(r,t)&&e(r,J$(r.node,n))},{arrayExpression:Wt,stringLiteral:Wn,objectProperty:Wr}=tc;function Wi(e,t){return Wr(Wn(e),t)}let{isProgram:Ws,objectExpression:Wa}=tc,{isArray:Wo}=Array,Wl=e=>Wo(e)?e:[e],Wu=e=>{let[t,n]=ql(btoa,e);return t?btoa(encodeURIComponent(e).replaceAll("%","+")):n},Wc=e=>{if(e.includes(" "))return e;let[t,n]=ql(atob,e);if(!t)return!n.includes(" ")&&n.includes("+")?decodeURIComponent(n.replaceAll("+","%")):n;return e},Wp=e=>{let t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function Wd(e){if(!e.parentPath)return null;let{parentPath:t}=e.parentPath.parentPath;return Ws(t)?null:t}let Wf=e=>F7(e,"filename");function Wh(e,t,n){let r,{exclude:i=[],crawled:s=Wf(e)}=(a=n)?Wo(a)?{exclude:a}:"function"==typeof a?{exclude:a}:a:{excluded:[]};var a,o=t;if("string"!=typeof o&&!Wo(o)&&!(o instanceof Set))throw Error("☝️ Looks like you forget to pass the 'name' of a file to 'findFile(filePath: Path|FilePath, name: string | string[] | Set<string>): FilePath'");let l=new Set,u=(r=t)instanceof Set?Array.from(r):Wl(r);for(let e of s){let{value:t}=e.node.value,n=qq(t);for(let r of u)if(t===r||Wp(r).test(n)){let t=e.parentPath;if(function({path:e,name:t,base:n,exclude:r}){if("function"==typeof r)return r(e);for(let e of r)if(t===e||Wp(e).test(n))return!0;return!1}({path:t,name:r,base:n,exclude:i}))continue;l.add(t)}}return Array.from(l)}function Wm(e){return Br(e,"filename").get("value")}function Wy(e){let{value:t}=Wm(e).node;return t}function Wg(e){return Br(e,"type").node.value.value}function Wb(e){let t=Br(e,"content");return[!!t,t?.node.value.value]}let Wx=(e,t)=>{if("string"!=typeof t)throw Error("☝️ Looks like you forget to pass the 'name' of a file to 'renameFile(filePath: FilePath, name: string)'");let n=Wy(e),r=Wm(e),i=n.split("/").pop(),s=t.split("/").pop(),a=n.replace(i,s);F8(r,a),z3(n,a)};function WS(e){let t=Wy(e);Wd(e)&&(e.remove(),z2.removeFile(t))}function WT(e,t){let n=Wg(e);if("directory"!==n){let t=Wy(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${n}'. Rename to '${t}/'`)}let[r]=Wh(Br(e,"files"),qR(Wy(e),qq(t)));r&&r.remove()}let Wv=(e,t,n)=>{WT(e,t);let r=WE(e),i=qR(Wy(e),t),s=[Wi("type",Wn("file")),Wi("filename",Wn(i)),n&&Wi("content",Wn(n))].filter(Boolean);r.node.value.elements.push(Wa(s));let a=r.get("value.elements").at(-1);return"string"==typeof n&&WP(a,n),a},WE=e=>Br(e,"files");function Wk(e){return"directory"!==Wg(e)?[]:WE(e).get("value.elements")}function Ww(e,t){let[n]=WI(e,t);if(n){if("directory"===Wg(n))return n;WS(n)}let r=WE(e),i=qR(Wy(e),t),s=Wi("type",Wn("directory")),a=Wi("files",Wt([])),o=Wi("filename",Wn(i));return r.node.value.elements.push(Wa([s,o,a])),z2.createDirectory(i),r.get("value.elements").at(-1)}let WA=e=>{let t;if("directory"===Wg(e))return"";let[n,r]=Wb(e);if(n)return Wc(r);let i=(t=Wy(e),z2.readFileContent(t)),s=Wi("content",Wn(Wu(i)));return e.node.properties.push(s),i};function WP(e,t){var n;if("directory"===Wg(e))return;n=Wy(e),z2.writeFileContent(n,t);let r=Br(e,"content");if(r)return void F8(r.node.value,Wu(t));let i=Wi("content",Wn(Wu(t)));e.node.properties.push(i)}function WC(e){if(e.program){let t;return z7(e,{[`${Ul}(__)`](e){t=e.get("arguments.0")}}),t}let t=Wd(e);if(!t)return e;let n=t;for(;t=Wd(t);)n=t;return n}function WI(e,t,{type:n}={}){let r=Wl(t),i=new Map,s=0;for(let e of r)i.set(e,null);for(let t of Wk(e)){let e=qq(Wy(t));if(r.includes(e)&&(!n||n===Wg(t))&&(i.set(e,t),++s,r.length===s))break}return i.values()}let{objectExpression:W_,arrayExpression:WN,stringLiteral:WL,isArrayExpression:WO,isStringLiteral:WD,isTemplateLiteral:WM,objectProperty:WF}=tc,WB=e=>{let t=e.endsWith("/")?"directory":"file";return WF(WL("type"),WL(t))},Wj=e=>WF(WL("filename"),WL(e)),WR=e=>WF(WL("content"),WL(e));function W$(e){let{value:t}=e.node||e;return W_([WB(t),Wj(WU(t)),t.endsWith("/")?WF(WL("files"),WN([])):null].filter(Boolean))}let WU=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e,Wq=e=>{if(!WO(e))return!1;let{elements:t}=e.node;return 2===t.length},WK=e=>{if(!WO(e))return!1;let{elements:t}=e.node;return 1===t.length};var WV=Object.freeze({__proto__:null,fix:e=>{let t=WN([]);for(let n of e.get("elements")){if(WK(n)){let[e]=n.node.elements;t.elements.push(W$(e));continue}if(Wq(n)){let[e,r]=n.node.elements,{value:i}=e,s=function(e,t){if(WD(e))return e.value;if(WM(e))return Wu(e.quasis[0].value.cooked);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}(r,n);t.elements.push(W_([WB(i),Wj(i),WR(s)]));continue}if(WD(n)){let e=W$(n);t.elements.push(e);continue}throw Error(`☝️ Looks like file '${n}' has wrong type: '${n.type}' expected: 'string | array'`)}!function(e,t){let[n,...r]=Wh(t,"*");for(let e of r){let t=Wy(e);var i=t;if(!i.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${i}'`);let r=Wg(e),s=qU(t),a=qq(t),[o]=Wh(n,s);if(!o||"directory"!==Wg(o))throw Error(`☝️ Looks like directory '${s}/' is missing`);if("directory"===r){Ww(o,a);continue}Br(o,"files").node.value.elements.push(e.node)}Bx(e,n)}(e,t)},traverse:({push:e})=>({[`${Ul}(__array)`]:t=>{e(t.get("arguments.0"))}})});let{stringLiteral:WJ,arrayExpression:Wz}=tc,{isArray:WW}=Array,WX=e=>"/"===e?e:`${e}/`;var WH=Object.freeze({__proto__:null,fix:(e,{files:t})=>{let n=[];for(let e of t){let t=Wy(e),r=Wg(e),i=Br(e,"content"),s=i?.node?.value;if(s){n.push([t,s.value]);continue}if("directory"===r){n.push(WX(t));continue}n.push(t)}let r=[];for(let e of n){if(WW(e)){r.push(Wz([WJ(e[0]),WJ(e[1])]));continue}r.push(WJ(e))}Bx(e,Wz(r))},traverse:({push:e})=>({[`${Ul}(__object)`]:t=>{let n=t.get("arguments.0"),r=Wh(n,"*");e(n,{files:r})}})});let WY=Kq("putout:runner:scanner"),WG=({rule:e,plugin:t,msg:n,options:r},{progress:i})=>{let{scan:s,report:a,fix:o}=t;i.inc();let l=WQ({scan:s,rule:e,progress:i});return{rule:e,msg:n,options:r,plugin:{report:a,fix:o,traverse:l}}},WQ=({scan:e,rule:t,progress:n})=>({push:r,options:i})=>({[`${Ul}(__)`](s){WY(t),n.start(t);let a=s.get("arguments.0"),o=OA(!1);WZ(WV,{shouldConvert:!0,path:s,isSimple:o});let l=(({rule:e,progress:t})=>({i:n,n:r})=>{++n;let i=`${Math.round(n/r*100)}%`;t.file({i:n,n:r,percent:i,rule:e})})({rule:t,progress:n}),u=Wf(a),c=(({fileProgress:e,crawled:t})=>function*(...n){let r=Wh(...n,{crawled:t}),i=r.length;for(let[t,n]of r.entries())e({i:t,n:i}),yield n})({fileProgress:l,crawled:u});e(a,{crawlFile:(...e)=>Wh(...e,{crawled:u}),push:(({push:e,rule:t,progress:n})=>(...r)=>{n.push(t),e(...r)})({push:r,rule:t,progress:n}),progress:l,trackFile:c,options:i}),WZ(WH,{shouldConvert:o(),path:s,isSimple:o}),n.end(t)}});function WZ(e,{path:t,isSimple:n,shouldConvert:r=!0}){var i;let s,a,{traverse:o,fix:l}=e;if(!r)return;let[u,c]=(s=(i=o({push:(({fix:e,isSimple:t})=>(...n)=>(t(!0),e(...n)))({fix:l,isSimple:n})}))[`${Ul}(__object)`],a=i[`${Ul}(__array)`],s?[s,`${Ul}(__object)`]:[a,`${Ul}(__array)`]);JQ(t,c)&&(zQ(z2),zZ(z2,z1),u(t),zZ(z2,zQ()))}let W0=Kq("putout:runner:find"),W1=e=>e?.removed,W2=({ast:e,fix:t,fixCount:n=2,plugins:r,progress:i=za(),traverse:s=Ld})=>{let a=[],o=U8(Vs),{pluginsFind:l,pluginsTraverse:u}=function(e,{progress:t}){let n=[],r=[];for(let i of e){let{plugin:e}=i;if(e.find){n.push(i);continue}if(e.traverse){r.push(i);continue}if(e.replace){r.push(zp(zE(i)));continue}if(e.declare){r.push(zG(i));continue}if(e.include){r.push(zp(i));continue}if(e.scan){r.push(WG(i,{progress:t}));continue}}return{pluginsFind:n,pluginsTraverse:r}}(r,{progress:i});for(let r=0;r<n&&(a=W3({ast:e,fix:t,pluginsFind:l,pluginsTraverse:u,merge:o,template:J6,traverse:s}),i.reset(),t&&a.length);r++){let{program:t}=e;qk(t)}return a},W3=({ast:e,fix:t,pluginsFind:n,pluginsTraverse:r,template:i,merge:s,traverse:a})=>[...function({ast:e,fix:t,template:n,pluginsFind:r,traverse:i}){let s=[];for(let{rule:a,plugin:o,msg:l,options:u}of r){W0(`find: ${a}`);let{report:r,find:c}=o,p=zo(Vo,{rule:a,find:c,ast:e,options:u,fix:t,template:n,traverse:i});if(p.length)for(let e of p){let n=l||r(e),{parentPath:i}=Kz(e),c=KW(e);s.push({rule:a,message:n,position:c}),W1(i)||KJ(t,o.fix,{path:e,rule:a,position:c,options:u})}}return s}({ast:e,fix:t,template:i,pluginsFind:n,traverse:a}),...function({ast:e,fix:t,template:n,pluginsTraverse:r,merge:i,traverse:s}){let{entries:a,visitor:o}=i(r,{fix:t,template:n});zo(s,e,o);let l=[];for(let[e,t]of a)for(let{message:n,position:r}of t())l.push({rule:e,message:n,position:r});return l}({ast:e,fix:t,template:i,pluginsTraverse:r,merge:s,traverse:a})],W4=(e={})=>{let{parser:t="babel",printer:n=e.printer||"putout",fix:r=!0,fixCount:i=4,loadPlugins:s=K_,loadPluginsAsync:a=KP,runPlugins:o=W2,progress:l=za()}=e;return{...e,parser:t,printer:n,fix:r,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:l}},W5=e=>e?((e,t="parser")=>{let{line:n,column:r}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:e.message.replace(/\s\(\d:\d+\)/,""),position:{line:n,column:r}}]})(e,"loader"):[],W8=(e,t)=>{let{plugins:n,rules:r,fix:i,fixCount:s,loadPlugins:a,runPlugins:o,progress:l}=t=W4(t),[u]=ql(Ky,{rules:r,pluginNames:n}),c=o({ast:e,fix:i,fixCount:s,plugins:a({pluginNames:n,rules:r}),progress:l});return[...W5(u),...c]},W6=async(e,t)=>{let{plugins:n,rules:r,fix:i,fixCount:s,loadPluginsAsync:a,runPlugins:o,progress:l}=t=W4(t),[u]=ql(Ky,{rules:r,pluginNames:n}),c=o({ast:e,fix:i,fixCount:s,plugins:await a({pluginNames:n,rules:r}),progress:l});return[...W5(u),...c]},W9=(e,t)=>{Xe(e);let{parser:n,isTS:r,isJSX:i,printer:s}=t=W4(t),a=qd(e,{parser:n,isTS:r,isJSX:i,printer:s}),o=W8(a,t);return t.fix?{code:UF(a,{printer:s,source:e}),places:o}:{code:e,places:o}},W7=async(e,t)=>{Xe(e);let{parser:n,isTS:r,isJSX:i,printer:s}=t=W4(t),a=qd(e,{parser:n,isTS:r,isJSX:i,printer:s}),o=await W6(a,t);return t.fix?{code:UF(a,{printer:s}),places:o}:{code:e,places:o}};function Xe(e){if("string"!=typeof e)throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}let{isJSXElement:Xt,jsxAttribute:Xn,jsxIdentifier:Xr,stringLiteral:Xi}=tc;function Xs(e,t){let n=null,{attributes:r}=(e.node||e).openingElement;for(let e of r)if(e.name.name===t){n=e;break}return n}function Xa(e,t){let n=Xs(e,t);return n?n.value.value:""}function Xo(e,t,n){let r=Xs(e,t);if(!r)return Xl(e,t,n);r.value.value.includes(n)||F8(r.value,`${r.value.value} ${n}`)}function Xl(e,t,n){let r=e.node||e,i=Xs(r,t);i||(i=Xn(Xr(t),Xi(n)),r.openingElement.attributes.push(i))}function Xu(e,t,n){if(!e)return;let r=Xs(e.node||e,t),{value:i}=r.value;if(!i.includes(n))return;let s=i.replace(RegExp(`\\s?${n}`),"").trim();F8(r.value,s)}function Xc(e){return Xa(e,"className")}function Xp(e){let t=0,{length:n}=e;for(;t<n&&" "===e[t];)++t;return t}let Xd=e=>e.slice(0,e.indexOf("{")),Xf=e=>e.startsWith("namespace")?`${Xd(e)}{
|
|
37
|
+
`:`namespace ${e} {
|
|
38
|
+
`,Xh="__putout_processor_wasm",Xm=((e,...t)=>{let n=(function(e,t){let n=[],r=e.length+t.length,i=0;for(let s=0;s<r;s++){let r=s%2?t.shift():e[i++];n.push(r)}return n.join("")})(e,t).split("\n").slice(1,-1);if(!n.length)return"";let[r]=n,i=Xp(r),s=[];for(let e of n){let t=Xp(e);if(t<i){s.push(e.slice(t));continue}s.push(e.slice(i))}return s.join("\n")})`
|
|
39
|
+
namespace ${Xh} {
|
|
40
|
+
__body
|
|
41
|
+
}
|
|
42
|
+
`,Xy=e=>e.replace(" ",""),Xg=e=>` ${e}`;function Xb(e){return e?Xx[e.type](e):""}var Xx={RegExp:function(e){return"/"+Xb(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(Xb).join("")},Disjunction:function(e){return Xb(e.left)+"|"+Xb(e.right)},Group:function(e){var t=Xb(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=Xb(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var n=Xb(e.assertion);if(e.negative)return"(?<!"+n+")";return"(?<="+n+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(Xb).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return Xb(e.from)+"-"+Xb(e.to)},Repetition:function(e){return""+Xb(e.expression)+Xb(e.quantifier)},Quantifier:function(e){var t=void 0,n=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+n},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){var t=e.negative?"P":"p";return"\\"+t+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},XS={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},XT=XC(XS),Xv={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"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:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",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:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"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"},XE=XC(Xv),Xk={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"},Xw=XC(Xk),XA={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",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",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",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",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_Sogdian:"Sogo",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",Sogdian:"Sogd",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"},XP=XC(XA);function XC(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)t[r[i]]=n;else t[r]=n}return t}function XI(e){return Xk.hasOwnProperty(e)||Xw.hasOwnProperty(e)}var X_=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function XN(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}var XL=void 0,XO={},XD=void 0,XM=void 0;function XF(e,t){return XO.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var XB=[[-1,1,function(e,t){XM=XF(t,t),XD=e}],[0,4,function(e,t,n,r,i,s,a,o){XM=XF(i,o),XD=He({type:"RegExp",body:t,flags:function(e){var t=new Set,n=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var o=s.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return e.split("").sort().join("")}(r)},Ht(i,o||a))}],[1,1,function(e,t){XM=XF(t,t),XD=e}],[1,0,function(){XM=null,XD=""}],[2,1,function(e,t){XM=XF(t,t),XD=e}],[2,2,function(e,t,n,r){XM=XF(n,r),XD=e+t}],[3,1,function(e,t){XM=XF(t,t),XD=e}],[4,1,function(e,t){XM=XF(t,t),XD=e}],[4,3,function(e,t,n,r,i,s){XM=XF(r,s);var a=null;i&&(a=Ht(r||i,s||i)),XD=He({type:"Disjunction",left:e,right:n},a)}],[5,1,function(e,t){if(XM=XF(t,t),0===e.length){XD=null;return}XD=1===e.length?He(e[0],XM):He({type:"Alternative",expressions:e},XM)}],[6,0,function(){XM=null,XD=[]}],[6,2,function(e,t,n,r){XM=XF(n,r),XD=e.concat(t)}],[7,1,function(e,t){XM=XF(t,t),XD=He(Object.assign({type:"Assertion"},e),XM)}],[7,2,function(e,t,n,r){XM=XF(n,r),XD=e,t&&(XD=He({type:"Repetition",expression:e,quantifier:t},XM))}],[8,1,function(e,t){XM=XF(t,t),XD={kind:"^"}}],[8,1,function(e,t){XM=XF(t,t),XD={kind:"$"}}],[8,1,function(e,t){XM=XF(t,t),XD={kind:"\\b"}}],[8,1,function(e,t){XM=XF(t,t),XD={kind:"\\B"}}],[8,3,function(e,t,n,r,i,s){XM=XF(r,s),XD={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,n,r,i,s){XM=XF(r,s),XD={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,n,r,i,s){XM=XF(r,s),XD={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,n,r,i,s){XM=XF(r,s),XD={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){XM=XF(t,t),XD=e}],[9,1,function(e,t){XM=XF(t,t),XD=e}],[9,1,function(e,t){XM=XF(t,t),XD=e}],[10,1,function(e,t){XD=X3(e,"simple",XM=XF(t,t))}],[10,1,function(e,t){XM=XF(t,t),(XD=X3(e.slice(1),"simple",XM)).escaped=!0}],[10,1,function(e,t){(XD=X3(e,"unicode",XM=XF(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){XD=X3(e,"unicode",XM=XF(t,t))}],[10,1,function(e,t){XD=function(e,t){var n="P"===e[1],r=e.indexOf("="),i=e.slice(3,-1!==r?r:-1),s=void 0,a=-1===r&&XZ(i),o=-1===r&&X0(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!XG(i))throw SyntaxError("Invalid unicode property name: "+i+".");if(!XQ(i,s=e.slice(r+1,-1)))throw SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return He({type:"UnicodeProperty",name:i,value:s,negative:n,shorthand:a,binary:o,canonicalName:X1(i)||i,canonicalValue:X2(s)||s},t)}(e,XM=XF(t,t))}],[10,1,function(e,t){XD=X3(e,"control",XM=XF(t,t))}],[10,1,function(e,t){XD=X3(e,"hex",XM=XF(t,t))}],[10,1,function(e,t){XD=X3(e,"oct",XM=XF(t,t))}],[10,1,function(e,t){var n,r,i;n=e,r=XM=XF(t,t),XD=(i=Number(n.slice(1)))>0&&i<=Xz?He({type:"Backreference",kind:"number",number:i,reference:i},r):X3(n,"decimal",r)}],[10,1,function(e,t){XD=X3(e,"meta",XM=XF(t,t))}],[10,1,function(e,t){XD=X3(e,"meta",XM=XF(t,t))}],[10,1,function(e,t){XM=XF(t,t),XD=function(e,t){var n=e.slice(3,-1),r=X7(n);if(XW.hasOwnProperty(r))return He({type:"Backreference",kind:"name",number:XW[r],reference:r,referenceRaw:n},t);var i=null,s=null,a=null,o=null;t&&(i=t.startOffset,s=t.startLine,a=t.endLine,o=t.startColumn);var l=/^[\w$<>]/,u=void 0,c=[X3(e.slice(1,2),"simple",i?{startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=2,endColumn:o+=2}:null)];for(c[0].escaped=!0,e=e.slice(2);e.length>0;){var p=null;(p=e.match(X4))||(p=e.match(X5))?(i&&(u={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),c.push(X3(p[0],"unicode",u)),e=e.slice(p[0].length)):(p=e.match(l))&&(i&&(u={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:++i,endColumn:++o}),c.push(X3(p[0],"simple",u)),e=e.slice(1))}return c}(e,t)}],[11,1,function(e,t){XM=XF(t,t),XD=e}],[11,0],[12,1,function(e,t){XM=XF(t,t),XD=e}],[12,2,function(e,t,n,r){XM=XF(n,r),e.greedy=!1,XD=e}],[13,1,function(e,t){XD=He({type:"Quantifier",kind:e,greedy:!0},XM=XF(t,t))}],[13,1,function(e,t){XD=He({type:"Quantifier",kind:e,greedy:!0},XM=XF(t,t))}],[13,1,function(e,t){XD=He({type:"Quantifier",kind:e,greedy:!0},XM=XF(t,t))}],[13,1,function(e,t){XM=XF(t,t);var n=XH(e);XD=He({type:"Quantifier",kind:"Range",from:n[0],to:n[0],greedy:!0},XM)}],[13,1,function(e,t){XM=XF(t,t),XD=He({type:"Quantifier",kind:"Range",from:XH(e)[0],greedy:!0},XM)}],[13,1,function(e,t){XM=XF(t,t);var n=XH(e);XD=He({type:"Quantifier",kind:"Range",from:n[0],to:n[1],greedy:!0},XM)}],[14,1,function(e,t){XM=XF(t,t),XD=e}],[14,1,function(e,t){XM=XF(t,t),XD=e}],[15,3,function(e,t,n,r,i,s){XM=XF(r,s);var a=String(e),o=X7(a);if(!XO.options.allowGroupNameDuplicates&&XW.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');XW[o]=e.groupNumber,XD=He({type:"Group",capturing:!0,name:o,nameRaw:a,number:e.groupNumber,expression:t},XM)}],[15,3,function(e,t,n,r,i,s){XM=XF(r,s),XD=He({type:"Group",capturing:!0,number:e.groupNumber,expression:t},XM)}],[16,3,function(e,t,n,r,i,s){XD=He({type:"Group",capturing:!1,expression:t},XM=XF(r,s))}],[17,3,function(e,t,n,r,i,s){XD=He({type:"CharacterClass",negative:!0,expressions:t},XM=XF(r,s))}],[17,3,function(e,t,n,r,i,s){XD=He({type:"CharacterClass",expressions:t},XM=XF(r,s))}],[18,0,function(){XM=null,XD=[]}],[18,1,function(e,t){XM=XF(t,t),XD=e}],[19,1,function(e,t){XM=XF(t,t),XD=[e]}],[19,2,function(e,t,n,r){XM=XF(n,r),XD=[e].concat(t)}],[19,4,function(e,t,n,r,i,s,a,o){XM=XF(i,o),XY(e,n),XD=[He({type:"ClassRange",from:e,to:n},Ht(i,a))],r&&(XD=XD.concat(r))}],[20,1,function(e,t){XM=XF(t,t),XD=e}],[20,2,function(e,t,n,r){XM=XF(n,r),XD=[e].concat(t)}],[20,4,function(e,t,n,r,i,s,a,o){XM=XF(i,o),XY(e,n),XD=[He({type:"ClassRange",from:e,to:n},Ht(i,a))],r&&(XD=XD.concat(r))}],[21,1,function(e,t){XD=X3(e,"simple",XM=XF(t,t))}],[21,1,function(e,t){XM=XF(t,t),XD=e}],[22,1,function(e,t){XM=XF(t,t),XD=e}],[22,1,function(e,t){XD=X3(e,"meta",XM=XF(t,t))}]],Xj={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},XR=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],X$=[],XU=void 0,Xq=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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-\u08bd\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\u0d05-\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-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\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-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\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\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return X6(XL.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===XL);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+XL);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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-\u08bd\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\u0d05-\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-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\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-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\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\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return X6(XL=XL.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],XK={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},XV={type:"$",value:""};XO.lexer=XU={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(XV);for(var e=this._string.slice(this._cursor),t=XK[this.getCurrentState()],n=0;n<t.length;n++){var r=Xq[t[n]],i=this._match(e,r[0]);if(""===e&&""===i&&this._cursor++,null!==i){(XL=i).length;var s=r[1].call(this);if(!s)return this.getNextToken();if(Array.isArray(s)){var a,o=s.slice(1);s=s[0],o.length>0&&(a=this._tokensQueue).unshift.apply(a,XN(o))}return this.onToken(this._toToken(s,XL))}}if(this.isEOF())return this._cursor++,XV;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,n){var r=this._string.split("\n")[t-1],i="";throw r&&(i="\n\n"+r+"\n"+" ".repeat(n)+"^\n"),SyntaxError(i+'Unexpected token: "'+e+'" '+("at "+t+":")+n+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var n=void 0;null!==(n=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+n.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var n=e.match(t);return n?(this._captureLocation(n[0]),this._cursor+=n[0].length,n[0]):null},onToken:function(e){return e}},XO.tokenizer=XU,XO.options={captureLocations:!0};var XJ={setOptions:function(e){return XO.options=e,this},getOptions:function(){return XO.options},parse:function(e,t){if(!XU)throw Error("Tokenizer instance wasn't specified.");XU.initString(e);var n=XO.options;t&&(XO.options=Object.assign({},XO.options,t)),XJ.onParseBegin(e,XU,XO.options),X$.length=0,X$.push(0);var r=XU.getNextToken(),i=null;do{r||(XO.options=n,Hr());var s=X$[X$.length-1],a=Xj[r.type];XR[s].hasOwnProperty(a)||(XO.options=n,Hn(r));var o=XR[s][a];if("s"===o[0]){var l=null;XO.options.captureLocations&&(l={startOffset:r.startOffset,endOffset:r.endOffset,startLine:r.startLine,endLine:r.endLine,startColumn:r.startColumn,endColumn:r.endColumn}),i=this.onShift(r),X$.push({symbol:Xj[i.type],semanticValue:i.value,loc:l},Number(o.slice(1))),r=XU.getNextToken()}else if("r"===o[0]){var u=XB[o.slice(1)],c="function"==typeof u[2],p=c?[]:null,d=c&&XO.options.captureLocations?[]:null;if(0!==u[1])for(var f=u[1];f-- >0;){X$.pop();var h=X$.pop();c&&(p.unshift(h.semanticValue),d&&d.unshift(h.loc))}var m={symbol:u[0]};if(c){XL=i?i.value:null,i&&i.value.length;var y=null!==d?p.concat(d):p;u[2].apply(u,XN(y)),m.semanticValue=XD,d&&(m.loc=XM)}var g=X$[X$.length-1],b=u[0];X$.push(m,XR[g][b])}else if("acc"===o){X$.pop();var x=X$.pop();if((1!==X$.length||0!==X$[0]||XU.hasMoreTokens())&&(XO.options=n,Hn(r)),x.hasOwnProperty("semanticValue"))return XO.options=n,XJ.onParseEnd(x.semanticValue),x.semanticValue;return XJ.onParseEnd(),XO.options=n,!0}}while(XU.hasMoreTokens()||X$.length>1)},setTokenizer:function(e){return XU=e,XJ},getTokenizer:function(){return XU},onParseBegin:function(e,t,n){},onParseEnd:function(e){},onShift:function(e){return e}},Xz=0,XW={},XX="";function XH(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function XY(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}XJ.onParseBegin=function(e,t){XX=e,Xz=0,XW={};var n=e.lastIndexOf("/"),r=e.slice(n);r.includes("x")&&r.includes("u")?t.pushState("xu"):(r.includes("x")&&t.pushState("x"),r.includes("u")&&t.pushState("u"))},XJ.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++Xz),e};var XG=function(e){return XS.hasOwnProperty(e)||XT.hasOwnProperty(e)||Xv.hasOwnProperty(e)||XE.hasOwnProperty(e)},XQ=function(e,t){var n,r,i;return"General_Category"===(n=e)||"gc"==n?XI(t):("Script"===(r=e)||"Script_Extensions"===r||"sc"===r||"scx"===r)&&(i=t,XA.hasOwnProperty(i)||XP.hasOwnProperty(i))},XZ=XI,X0=function(e){return Xv.hasOwnProperty(e)||XE.hasOwnProperty(e)},X1=function(e){return XT.hasOwnProperty(e)?XT[e]:XE.hasOwnProperty(e)?XE[e]:null},X2=function(e){return Xw.hasOwnProperty(e)?Xw[e]:XP.hasOwnProperty(e)?XP[e]:XE.hasOwnProperty(e)?XE[e]:null};function X3(e,t,n){var r=void 0,i=void 0;switch(t){case"decimal":r=String.fromCodePoint(i=Number(e.slice(1)));break;case"oct":r=String.fromCodePoint(i=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var s=X_(e.split("\\u").slice(1),2),a=s[0],o=s[1];r=String.fromCodePoint(i=((a=parseInt(a,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((i=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);r=String.fromCodePoint(i)}break;case"meta":switch(e){case"\\t":i=(r=" ").codePointAt(0);break;case"\\n":i=(r="\n").codePointAt(0);break;case"\\r":i=(r="\r").codePointAt(0);break;case"\\v":i=(r="\v").codePointAt(0);break;case"\\f":i=(r="\f").codePointAt(0);break;case"\\b":i=(r="\b").codePointAt(0);case"\\0":r="\0",i=0;case".":r=".",i=0/0;break;default:i=0/0}break;case"simple":i=(r=e).codePointAt(0)}return He({type:"Char",value:e,kind:t,symbol:r,codePoint:i},n)}var X4=/^\\u[0-9a-fA-F]{4}/,X5=/^\\u\{[0-9a-fA-F]{1,}\}/,X8=/\\u\{[0-9a-fA-F]{1,}\}/;function X6(e,t){if(X8.test(e)&&"u"!==t&&"xu"!==t&&"u_class"!==t)throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var X9=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function X7(e){return e.replace(RegExp(X9,"g"),function(e,t,n,r,i,s,a){return t?String.fromCodePoint(parseInt(t,16),parseInt(n,16)):r?String.fromCodePoint(parseInt(r,16)):i?String.fromCodePoint(parseInt(i,16)):s?String.fromCodePoint(parseInt(s,16)):a?String.fromCodePoint(parseInt(a,16)):e})}function He(e,t){return XO.options.captureLocations&&(e.loc={source:XX.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function Ht(e,t){return XO.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function Hn(e){"$"===e.type&&Hr(),XU.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function Hr(){throw SyntaxError("Unexpected end of input.")}XJ.default;var Hi=XJ.parse.bind(XJ);XJ.parse=function(e,t){return Hi(""+e,t)},XJ.setOptions({captureLocations:!1}),XJ.default;var Hs=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ha="expressions",Ho="expression",Hl=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.node=t,this.parentPath=n,this.parent=n?n.node:null,this.property=r,this.index=i}return Hs(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=void 0;return null!=n?(r||(r=Ha),this._enforceProp(r),this.node[r][n]=t,i=e.getForNode(t,this,r,n)):(r||(r=Ho),this._enforceProp(r),this.node[r]=t,i=e.getForNode(t,this,r,null)),i}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=Ha),this._enforceProp(t);var n=this.node[t].length;return this.setChild(e,n,t)}},{key:"insertChildAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ha;this._enforceProp(r),this.node[r].splice(n,0,t),n<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,r)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,n){for(var r=e.getForNode(t),i=0;i<t[n].length;i++)e.getForNode(t[n][i],r,n,i).index=i}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,Ha,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,Ho):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,Hu)===JSON.stringify(e.node,Hu)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=e.useLoc;return JSON.stringify(this.node,n?null:Hu,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,n,r,-1==i?null:i));var s=e.registry.get(t);return null!==n&&(s.parentPath=n,s.parent=s.parentPath.node),null!==r&&(s.property=r),i>=0&&(s.index=i),s}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function Hu(e,t){if("loc"!==e)return t}Hl.initRegistry(),Hl.traversingIndexStack=[],Hl.default,(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})()(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=n},[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=Xb(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=Xb(this._ast)),this._string}}]);var Hc=function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var n=[];return t.left&&"Disjunction"===t.left.type?n.push.apply(n,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n})(e(t.left)).concat([t.right])):n.push(t.left,t.right),n},Hp=function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},Hd=function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))};function Hf(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function Hh(e){var t=void 0,n=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,n=1):(t=e.from,e.to&&(n=e.to)),{from:t,to:n}}function Hm(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}var Hy=[function(e){return Hg(e," ")}].concat(Hm(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return Hb(t,e)}})),Hm([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return Hx(t,e)}})),[function(e){return"ClassRange"===e.type&&Hx(e.from,8192)&&Hx(e.to,8202)}]);function Hg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===n}function Hb(e,t){return Hg(e,t,"meta")}function Hx(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function HS(e,t,n){for(var r=e,i=(n?r>=0:r<t.expressions.length)&&t.expressions[r];i&&"Char"===i.type&&"simple"===i.kind&&!i.escaped&&/\d/.test(i.value);)n?r--:r++,i=(n?r>=0:r<t.expressions.length)&&t.expressions[r];return Math.abs(e-r)}function HT(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function Hv(e,t){var n=HE(e),r=HE(t);if(n===r){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return HE(e.to)-HE(t.to);if(Hk(e)&&Hk(t)||Hw(e)&&Hw(t))return e.value<t.value?-1:1}return n-r}function HE(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function Hk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function Hw(e){return"Char"===e.type&&"control"===e.kind}function HA(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function HP(e){return e.codePoint>=48&&e.codePoint<=57}function HC(e,t){return HP(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function HI(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(HC(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var H_={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var n=e.node;n.capturing?n.expression=t:e.replace(t)}};function HN(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}function HL(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}var HO=Hd;new Map([["charSurrogatePairToSingleUnicode",{shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}}],["charCodeToSimpleChar",{Char:function(e){var t=e.node,n=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==n.type||(i=(r=n).from,s=r.to,i.codePoint>=48&&i.codePoint<=57&&s.codePoint>=48&&s.codePoint<=57||i.codePoint>=65&&i.codePoint<=90&&s.codePoint>=65&&s.codePoint<=90||i.codePoint>=97&&i.codePoint<=122&&s.codePoint>=97&&s.codePoint<=122))){if((a=t.codePoint)>=32&&a<=126){var r,i,s,a,o,l,u=String.fromCodePoint(t.codePoint),c={type:"Char",kind:"simple",value:u,symbol:u,codePoint:t.codePoint};o=u,("ClassRange"===(l=n.type)||"CharacterClass"===l?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(c.escaped=!0),e.replace(c)}}}}],["charCaseInsensitiveLowerCaseTransform",{_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,n,r,i=e.node,s=e.parent;if(!isNaN(i.codePoint)&&(this._hasUFlag||!(i.codePoint>=4096))){if("ClassRange"===s.type){if(!this._AZClassRanges.has(s)&&(n=(t=s).from,r=t.to,!(n.codePoint>=65)||!(n.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(s)}var a=i.symbol.toLowerCase();a!==i.symbol&&(i.value=function(e,t){var n=e.codePointAt(0);if("decimal"===t.kind)return"\\"+n;if("oct"===t.kind)return"\\0"+n.toString(8);if("hex"===t.kind)return"\\x"+n.toString(16);if("unicode"===t.kind)if(t.isSurrogatePair){var r,i={lead:(Math.floor(((r=n)-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},s=i.lead,a=i.trail;return"\\u"+"0".repeat(4-s.length)+s+"\\u"+"0".repeat(4-a.length)+a}else{if(t.value.includes("{"))return"\\u{"+n.toString(16)+"}";var o=n.toString(16);return"\\u"+"0".repeat(4-o.length)+o}return e}(a,i),i.symbol=a,i.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,n={},r=0;r<t.expressions.length;r++){var i=e.getChild(r),s=i.jsonEncode();n.hasOwnProperty(s)&&(i.remove(),r--),n[s]=!0}}}],["quantifiersMerge",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var n=e.getPreviousSibling();if(n)if("Repetition"===n.node.type){if(!n.getChild().hasEqualSource(e.getChild()))return;var r=Hh(n.node.quantifier),i=r.from,s=r.to,a=Hh(t.quantifier),o=a.from,l=a.to;if(n.node.quantifier.greedy!==t.quantifier.greedy&&!Hf(n.node.quantifier)&&!Hf(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=i+o,s&&l?t.quantifier.to=s+l:delete t.quantifier.to,(Hf(n.node.quantifier)||Hf(t.quantifier))&&(t.quantifier.greedy=!0),n.remove()}else{if(!n.hasEqualSource(e.getChild()))return;Hd(t.quantifier),n.remove()}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){var t,n,r,i;"Range"===e.node.kind&&(0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(n=e.node).from||n.to||(n.kind="+",delete n.from),1===(i=(r=e).node).from&&1===i.to&&r.parentPath.replace(r.parentPath.node.expression))}}],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,n,r,i,s,a,o,l,u,c,p;(t=e).node.expressions.forEach(function(e,n){var r;"ClassRange"===(r=e).type&&"0"===r.from.value&&"9"===r.to.value&&t.getChild(n).replace({type:"Char",value:"\\d",kind:"meta"})}),n=e,r=this._hasIFlag,i=this._hasUFlag,s=n.node,a=null,o=null,l=null,u=null,c=null,p=null,s.expressions.forEach(function(e,t){var s,d,f;Hb(e,"\\d")?a=n.getChild(t):"ClassRange"===(s=e).type&&"a"===s.from.value&&"z"===s.to.value?o=n.getChild(t):"ClassRange"===(d=e).type&&"A"===d.from.value&&"Z"===d.to.value?l=n.getChild(t):"Char"===(f=e).type&&"_"===f.value&&"simple"===f.kind?u=n.getChild(t):r&&i&&Hx(e,383)?c=n.getChild(t):r&&i&&Hx(e,8490)&&(p=n.getChild(t))}),a&&(o&&l||r&&(o||l))&&u&&(!i||!r||c&&p)&&(a.replace({type:"Char",value:"\\w",kind:"meta"}),o&&o.remove(),l&&l.remove(),u.remove(),c&&c.remove(),p&&p.remove()),function(e){var t=e.node;if(!(t.expressions.length<Hy.length)&&Hy.every(function(e){return t.expressions.some(function(t){return e(t)})})){var n=t.expressions.find(function(e){return Hb(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=0/0,t.expressions.map(function(t,n){return Hy.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,n=e.index;if("Alternative"!==t.type)return!0;var r=t.expressions[n-1];return null==r||("Backreference"!==r.type||"number"!==r.kind)&&("Char"!==r.type||"decimal"!==r.kind)}(e)&&"Char"===(n=t.expressions[0]).type&&"\\b"!==n.value){var n,r,i,s,a=t.expressions[0],o=a.value,l=a.kind,u=a.escaped;if(t.negative){if(r=o,!/^\\[dwsDWS]$/.test(r))return;i=o,o=/[dws]/.test(i)?i.toUpperCase():i.toLowerCase()}e.replace({type:"Char",value:o,kind:l,escaped:u||(s=o,/[*[()+?$./{}|]/.test(s))})}}}],["charEscapeUnescape",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,n,r,i,s,a,o,l,u,c,p,d,f=e.node;!f.escaped||(t=e,n=this._hasXFlag,r=t.node.value,i=t.index,"CharacterClass"!==(s=t.parent).type&&"ClassRange"!==s.type?(a=r,o=i,l=s,u=n,"{"===a?function(e,t){if(null==e)return!1;var n=HS(e+1,t),r=e+n+1,i=r<t.expressions.length&&t.expressions[r];if(n){if(HT(i,"}"))return!0;if(HT(i,","))return n=HS(r+1,t),HT(i=(r=r+n+1)<t.expressions.length&&t.expressions[r],"}")}return!1}(o,l):"}"===a?function(e,t){if(null==e)return!1;var n=HS(e-1,t,!0),r=e-n-1,i=r>=0&&t.expressions[r];return!!(n&&HT(i,"{"))||!!HT(i,",")&&(n=HS(r-1,t,!0),i=(r=r-n-1)<t.expressions.length&&t.expressions[r],n&&HT(i,"{"))}(o,l):!!(u&&/[ #]/.test(a))||/[*[()+?^$./\\|]/.test(a)):(c=r,p=i,d=s,"^"===c?0===p&&!d.negative:"-"===c||/[\]\\]/.test(c)))||delete f.escaped}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,n=[];t.forEach(function(e){Hk(e)&&n.push(e.value)}),t.sort(Hv);for(var r=0;r<t.length;r++){var i,s,a=t[r];if(function(e,t,n){for(var r=0;r<t.length;r++)if(function e(t,n,r){return"ClassRange"===t.type?e(t.from,n,r)&&e(t.to,n,r):!!("\\S"===n&&(Hk(t,"\\w")||Hk(t,"\\d"))||"\\D"===n&&(Hk(t,"\\W")||Hk(t,"\\s"))||"\\w"===n&&Hk(t,"\\d")||"\\W"===n&&Hk(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===n?HA(t):"\\S"===n?!HA(t):"\\d"===n?HP(t):"\\D"===n?!HP(t):"\\w"===n?HC(t,r):"\\W"===n&&!HC(t,r))}(e,t[r],n))return!0;return!1}(a,n,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,n){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,n)&&e(t.to,n):t.codePoint>=n.from.codePoint&&t.codePoint<=n.to.codePoint)}(e,t))return!0;else if(HI(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;else if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[r-1])||(i=a,(s=t[r+1])&&"ClassRange"===s.type&&HI(i)&&s.from.codePoint===i.codePoint+1&&(s.from=i,1)))t.splice(r,1),r--;else{var o=function(e,t,n){if(!HI(e))return 0;for(var r=0;t>0;){var i=n[t],s=n[t-1];if(HI(s)&&s.codePoint===i.codePoint-1)r++,t--;else break}return r>1?(n[t]={type:"ClassRange",from:n[t],to:e},r):0}(a,r,t);t.splice(r-o+1,o),r-=o}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,n={},r=Hc(t).filter(function(e){var t=e?Hl.getForNode(e).jsonEncode():"null";return!n.hasOwnProperty(t)&&(n[t]=e,!0)});e.replace(Hp(r))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,n=e.parent;if(H_[n.type]){var r=new Map;if(function e(t,n){if(!t)return!1;var r=t.type;if("Disjunction"===r){var i=t.left,s=t.right;return e(i,n)&&e(s,n)}if("Char"===r){if("meta"===t.kind&&"."===t.symbol)return!1;var a=t.value;return n.set(a,t),!0}return"CharacterClass"===r&&!t.negative&&t.expressions.every(function(t){return e(t,n)})}(t,r)&&r.size){var i={type:"CharacterClass",expressions:Array.from(r.keys()).sort().map(function(e){return r.get(e)})};H_[n.type](e.getParent(),i)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,n=e.parent,r=e.getChild();t.capturing||r||("Repetition"===n.type?e.getParent().replace(t):"RegExp"!==n.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,n=e.parent,r=e.getChild();if(!t.capturing&&r&&function(e){var t=e.parent,n=e.index;if("Alternative"!==t.type)return!0;var r=t.expressions[n-1];return null==r||("Backreference"!==r.type||"number"!==r.kind)&&("Char"!==r.type||"decimal"!==r.kind)}(e)&&("Disjunction"!==r.node.type||"RegExp"===n.type)&&("Repetition"!==n.type||"Char"===r.node.type||"CharacterClass"===r.node.type))if("Alternative"===r.node.type){var i=e.getParent();"Alternative"===i.node.type&&i.replace({type:"Alternative",expressions:[].concat(HN(n.expressions.slice(0,e.index)),HN(r.node.expressions),HN(n.expressions.slice(e.index+1)))})}else e.replace(r.node)}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,n=1;n<t.expressions.length;){var r=e.getChild(n);if((n=Math.max(1,function(e,t,n){for(var r=e.node,i=Math.ceil(n/2),s=0;s<i;){var a=n-2*s-1,o=void 0,l=void 0;if(0===s?(o=t,l=e.getChild(a)):(o=Hl.getForNode({type:"Alternative",expressions:[].concat(HL(r.expressions.slice(n-s,n)),[t.node])}),l=Hl.getForNode({type:"Alternative",expressions:[].concat(HL(r.expressions.slice(a,n-s)))})),o.hasEqualSource(l)){for(var u=0;u<2*s+1;u++)e.getChild(a).remove();return t.replace({type:"Repetition",expression:0===s&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),a}s++}return n}(e,r,n)))>=t.expressions.length||(r=e.getChild(n),(n=Math.max(1,function(e,t,n){for(var r=e.node,i=0;i<n;){var s=e.getChild(i);if("Repetition"===s.node.type&&s.node.quantifier.greedy){var a=s.getChild(),o=void 0;if("Group"!==a.node.type||a.node.capturing||(a=a.getChild()),i+1===n?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=Hl.getForNode({type:"Alternative",expressions:[].concat(HL(r.expressions.slice(i+1,n+1)))}),a.hasEqualSource(o)){for(var l=i;l<n;l++)e.getChild(i+1).remove();return HO(s.node.quantifier),i}}i++}return n}(e,r,n)))>=t.expressions.length))break;r=e.getChild(n),n=Math.max(1,function(e,t,n){var r=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var i=t.getChild(),s=void 0;"Group"!==i.node.type||i.node.capturing||(i=i.getChild());var a=void 0;if("Alternative"===i.node.type?(a=i.node.expressions.length,s=Hl.getForNode({type:"Alternative",expressions:[].concat(HL(r.expressions.slice(n-a,n)))})):(a=1,"Group"!==(s=e.getChild(n-1)).node.type||s.node.capturing||(s=s.getChild())),s.hasEqualSource(i)){for(var o=n-a;o<n;o++)e.getChild(n-a).remove();return HO(t.node.quantifier),n-a}}return n}(e,r,n)),n++}}}]]).default;var HD="ε",HM="ε*",HF=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},HB=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Hj=HM;(function(){function e(t,n){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.in=t,this.out=n}return HB(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var n=e[t];for(var r in n)r!==Hj&&this._alphabet.add(r)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,n=void 0;try{for(var r,i=this.getAcceptingStates()[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var s=r.value;this._acceptingStateNumbers.add(s.number)}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,n=new Set;!function r(i){if(!t.has(i)){t.add(i),i.number=t.size,e._transitionTable[i.number]={},i.accepting&&e._acceptingStates.add(i);var s=i.getTransitions(),a=!0,o=!1,l=void 0;try{for(var u,c=s[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var p=u.value,d=HF(p,2),f=d[0],h=d[1],m=[];n.add(f);var y=!0,g=!1,b=void 0;try{for(var x,S=h[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=x.value;r(T),m.push(T.number)}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}e._transitionTable[i.number][f]=m}}catch(e){o=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(o)throw l}}}}(this.in),t.forEach(function(t){delete e._transitionTable[t.number][HD],e._transitionTable[t.number][Hj]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e})().default;var HR=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}return n}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function H$(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}var HU=null,Hq=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function HK(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}var HV=function(e){var t=e.getTransitionTable(),n=Object.keys(t),r=e.getAlphabet(),i=e.getAcceptingStateNumbers();HU={};var s=new Set;n.forEach(function(e){e=Number(e),i.has(e)?HU[e]=i:(s.add(e),HU[e]=s)});var a=[[s,i].filter(function(e){return e.size>0})],o=void 0,l=void 0;for(o=a[a.length-1],l=a[a.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.size!==i.size||[].concat(H$(r)).sort().join(",")!==[].concat(H$(i)).sort().join(","))return!1}return!0}(o,l);)!function(){var e={},n=!0,i=!1,s=void 0;try{for(var u,c=o[Symbol.iterator]();!(n=(u=c.next()).done);n=!0){var p=u.value,d={},f=Array.isArray(p)?p:Array.from(p),h=f[0],m=f.slice(1);d[h]=new Set([h]);var y=!0,g=!1,b=void 0;try{r:for(var x,S=m[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=x.value,v=!0,E=!1,k=void 0;try{for(var w,A=Object.keys(d)[Symbol.iterator]();!(v=(w=A.next()).done);v=!0){var P=w.value;if(function(e,t,n,r){var i=!0,s=!1,a=void 0;try{for(var o,l=r[Symbol.iterator]();!(i=(o=l.next()).done);i=!0){var u=o.value;if(!function(e,t,n,r){if(!HU[e]||!HU[t])return!1;var i=n[e][r],s=n[t][r];return!i&&!s||HU[e].has(i)&&HU[t].has(s)}(e,t,n,u))return!1}}catch(e){s=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(s)throw a}}return!0}(T,P,t,r)){d[P].add(T),d[T]=d[P];continue r}}}catch(e){E=!0,k=e}finally{try{!v&&A.return&&A.return()}finally{if(E)throw k}}d[T]=new Set([T])}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}Object.assign(e,d)}}catch(e){i=!0,s=e}finally{try{!n&&c.return&&c.return()}finally{if(i)throw s}}HU=e;var C=new Set(Object.keys(e).map(function(t){return e[t]}));a.push([].concat(H$(C))),o=a[a.length-1],l=a[a.length-2]}();var u=new Map,c=1;o.forEach(function(e){return u.set(e,c++)});var p={},d=new Set,f=!0,h=!1,m=void 0;try{for(var y,g=u.entries()[Symbol.iterator]();!(f=(y=g.next()).done);f=!0){var b=y.value,x=HR(b,2),S=x[0],T=x[1];p[T]={};var v=!0,E=!1,k=void 0;try{for(var w,A=r[Symbol.iterator]();!(v=(w=A.next()).done);v=!0){var P=w.value;!function(e,t){var n=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var l=a.value;i.has(l)&&d.add(t)}}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}}(S,T);var C=void 0,I=!0,_=!1,N=void 0;try{for(var L,O=S[Symbol.iterator]();!(I=(L=O.next()).done)&&!(C=t[L.value][P]);I=!0);}catch(e){_=!0,N=e}finally{try{!I&&O.return&&O.return()}finally{if(_)throw N}}C&&(p[T][P]=u.get(HU[C]))}}catch(e){E=!0,k=e}finally{try{!v&&A.return&&A.return()}finally{if(E)throw k}}}}catch(e){h=!0,m=e}finally{try{!f&&g.return&&g.return()}finally{if(h)throw m}}return e.setTransitionTable(p),e.setAcceptingStateNumbers(d),e},HJ=HM;(function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._nfa=t}return Hq(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,HV(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),n=Object.keys(t);this._acceptingStateNumbers=new Set;for(var r=[t[n[0]][HJ]],i=this.getAlphabet(),s=this._nfa.getAcceptingStateNumbers(),a={};r.length>0;){var o=r.shift(),l=o.join(",");a[l]={};var u=!0,c=!1,p=void 0;try{for(var d,f=i[Symbol.iterator]();!(u=(d=f.next()).done);u=!0){var h=d.value,m=[];!function(t){var n=!0,r=!1,i=void 0;try{for(var a,o=s[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var l=a.value;if(-1!==t.indexOf(l)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){r=!0,i=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw i}}}(o);var y=!0,g=!1,b=void 0;try{for(var x,S=o[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var T=t[x.value][h];if(T){var v=!0,E=!1,k=void 0;try{for(var w,A=T[Symbol.iterator]();!(v=(w=A.next()).done);v=!0){var P=w.value;t[P]&&m.push.apply(m,HK(t[P][HJ]))}}catch(e){E=!0,k=e}finally{try{!v&&A.return&&A.return()}finally{if(E)throw k}}}}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}var C=new Set(m),I=[].concat(HK(C));if(I.length>0){var _=I.join(",");a[l][h]=_,a.hasOwnProperty(_)||r.unshift(I)}}}catch(e){c=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(c)throw p}}}return this._transitionTable=this._remapStateNumbers(a)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var n={};for(var r in Object.keys(e).forEach(function(e,n){t[e]=n+1}),e){var i=e[r],s={};for(var a in i)s[a]=t[i[a]];n[t[r]]=s}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,l=!1,u=void 0;try{for(var c,p=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var d=c.value;this._acceptingStateNumbers.add(t[d])}}catch(e){l=!0,u=e}finally{try{!o&&p.return&&p.return()}finally{if(l)throw u}}return n}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,n=0,r=this.getTransitionTable();e[n];)if(!(t=r[t][e[n++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e})().default;var Hz=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),HW=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.accepting;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._transitions=new Map,this.accepting=void 0!==n&&n}return Hz(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}();HW.default;var HX=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),HH=HD;(function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),HX(t,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var n=!0,r=!1,i=void 0;try{for(var s,a=this.getTransitionsOnSymbol(HH)[Symbol.iterator]();!(n=(s=a.next()).done);n=!0)if(s.value.matches("",t))return!0}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return!1}var o=e[0],l=e.slice(1),u=this.getTransitionsOnSymbol(o),c=!0,p=!1,d=void 0;try{for(var f,h=u[Symbol.iterator]();!(c=(f=h.next()).done);c=!0)if(f.value.matches(l))return!0}catch(e){p=!0,d=e}finally{try{!c&&h.return&&h.return()}finally{if(p)throw d}}var m=!0,y=!1,g=void 0;try{for(var b,x=this.getTransitionsOnSymbol(HH)[Symbol.iterator]();!(m=(b=x.next()).done);m=!0)if(b.value.matches(e,t))return!0}catch(e){y=!0,g=e}finally{try{!m&&x.return&&x.return()}finally{if(y)throw g}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(HH),n=e._epsilonClosure=new Set;n.add(e);var r=!0,i=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var l=a.value;n.has(l)||(n.add(l),l.getEpsilonClosure().forEach(function(e){return n.add(e)}))}}catch(e){i=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(i)throw s}}}(),this._epsilonClosure}}]),t})(HW).default,(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})()(function e(t,n){var r=n.flags,i=n.groups,s=n.source;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._re=t,this._groups=i,this.flags=r,this.source=s||t.source,this.dotAll=r.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode},[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var n in t.groups={},this._groups){var r=this._groups[n];t.groups[n]=t[r]}return t}}]);let HY=({type:e,kind:t})=>"Char"!==e||"simple"!==t,HG={},HQ=HG.hasOwnProperty,HZ=(e,t)=>{for(let n in e)HQ.call(e,n)&&t(n,e[n])},H0=e=>"\\u"+("0000"+e).slice(-4),H1=(e,t)=>{let n=e.toString(16);return t?n:n.toUpperCase()},H2=HG.toString,H3=Array.isArray,H4={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},H5=/[\\\b\f\n\r\t]/,H8=/[0-9]/,H6=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,H9=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,H7=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,Ye=(e,t)=>{let n,r,i=()=>{p=c,++t.indentLevel,c=t.indent.repeat(t.indentLevel)},s={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},a=t&&t.json;a&&(s.quotes="double",s.wrap=!0),"single"!=(!(T=t)||HZ(T,(e,t)=>{s[e]=t}),t=s).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let o="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",l=t.compact,u=t.lowercaseHex,c=t.indent.repeat(t.indentLevel),p="",d=t.__inline1__,f=t.__inline2__,h=l?"":"\n",m=!0,y="binary"==t.numbers,g="octal"==t.numbers,b="decimal"==t.numbers,x="hexadecimal"==t.numbers;if(a&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(r=e)&&"[object String]"!=H2.call(r)){let r,s,o;if(r=e,"[object Map]"==H2.call(r))return 0==e.size?"new Map()":(l||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Ye(Array.from(e),t)+")");if(s=e,"[object Set]"==H2.call(s))return 0==e.size?"new Set()":"new Set("+Ye(Array.from(e),t)+")";if(Array.isArray(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+Ye(Array.from(e),t)+")";if(H3(e)){n=[],t.wrap=!0,d&&(t.__inline1__=!1,t.__inline2__=!0),f||i();var S,T,v=e;let r=v.length,s=-1;for(;++s<r;){S=v[s],m=!1,f&&(t.__inline2__=!1),n.push((l||f?"":c)+Ye(S,t))}return m?"[]":f?"["+n.join(", ")+"]":"["+h+n.join(","+h)+h+(l?"":p)+"]"}if("number"==typeof(o=e)||"[object Number]"==H2.call(o)||"bigint"==typeof e){let t;if(a)return JSON.stringify(Number(e));if(b)t=String(e);else if(x){let n=e.toString(16);u||(n=n.toUpperCase()),t="0x"+n}else y?t="0b"+e.toString(2):g&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}{let r;if("bigint"==typeof e)return a?JSON.stringify(Number(e)):e+"n";return(r=e,"[object Object]"==H2.call(r))?(n=[],t.wrap=!0,i(),HZ(e,(e,r)=>{m=!1,n.push((l?"":c)+Ye(e,t)+":"+(l?"":" ")+Ye(r,t))}),m)?"{}":"{"+h+n.join(","+h)+h+(l?"":p)+"}":a?JSON.stringify(e)||"null":String(e)}}let E=t.escapeEverything?H9:H7;return n=e.replace(E,(e,n,r,i,s,l)=>{if(n){if(t.minimal)return n;let e=n.charCodeAt(0),r=n.charCodeAt(1);return t.es6?"\\u{"+H1((e-55296)*1024+r-56320+65536,u)+"}":H0(H1(e,u))+H0(H1(r,u))}if(r)return H0(H1(r.charCodeAt(0),u));if("\0"==e&&!a&&!H8.test(l.charAt(s+1)))return"\\0";if(i)return i==o||t.escapeEverything?"\\"+i:i;if(H5.test(e))return H4[e];if(t.minimal&&!H6.test(e))return e;let c=H1(e.charCodeAt(0),u);return a||c.length>2?H0(c):"\\x"+("00"+c).slice(-2)}),"`"==o&&(n=n.replace(/\$\{/g,"\\${")),t.isScriptContext&&(n=n.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,a?"\\u003C!--":"\\x3C!--")),t.wrap&&(n=o+n+o),n};Ye.version="3.0.2";var Yt=Ye.default;let{isArray:Yn}=Array,{isBlockStatement:Yr,isFunction:Yi,isLabeledStatement:Ys,isObjectPattern:Ya,isCallExpression:Yo,isSequenceExpression:Yl,objectPattern:Yu,objectProperty:Yc}=tc,{entries:Yp}=Object,Yd=e=>e.isCallExpression()||e.isStatement(),Yf=e=>Yo(e.find(Yd)),Yh=({name:e})=>`Argument '${e}' is missing`,Ym=({declaration:e,pattern:t,params:n,index:r})=>{let i=qN.ast.fresh(e);if(Yl(i)){let{expressions:e}=i;n.push(...e.slice(n.length));return}if(Yr(i)){let e=function(e){if(!Ys(e)){let{expression:t}=e;return Yc(t,t,!1,!0)}let{label:t,body:n}=e;return Yc(t,n.expression,!1,!0)}(i.body[0]);return(t.properties.push(e),Ya(n[r]))?void 0:n.push(t)}n.push(i)},Yy=["import","export","with"],Yg=["assert"],Yb=["const","var","let"],Yx=["if"],YS=["readonly","implements","declare","module","type","namespace"],YT=["interface","static"],Yv=[...Yx,...Yb,...Yy,...YT,"async","break","continue","debugger","for","else","from","return","throw","of","while","class","extends","default"],YE=[...Yv,"as","await","new","yield","typeof","function","instanceof"],Yk=(e,t)=>W8(e,{...t,fix:!1}),Yw=async(e,t)=>await W6(e,{...t,fix:!1}),YA=e=>!e.indexOf("!"),YP=e=>e.replace(/^!/,""),YC=(e,t,n={})=>{let r=q$(e,t),i=U6(),s=function(e){for(let[t,n]of e.entries()){let r=e.indexOf(YP(n));YA(n)&&r>t&&(e[r]=n)}return Array.from(new Set(e))}(n.ignore||[]);return i.add(s),e&&i.ignores(r)};var YI=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,Y_=/[A-ZÀ-Ý\u00C0-\u00D6\u00D9-\u00DD][a-zà-ÿ]/g,YN=/[A-ZÀ-Ý\u00C0-\u00D6\u00D9-\u00DD]+/g;let YL=Symbol.for("yaml.alias"),YO=Symbol.for("yaml.document"),YD=Symbol.for("yaml.map"),YM=Symbol.for("yaml.pair"),YF=Symbol.for("yaml.scalar"),YB=Symbol.for("yaml.seq"),Yj=Symbol.for("yaml.node.type"),YR=e=>!!e&&"object"==typeof e&&e[Yj]===YL,Y$=e=>!!e&&"object"==typeof e&&e[Yj]===YO,YU=e=>!!e&&"object"==typeof e&&e[Yj]===YD,Yq=e=>!!e&&"object"==typeof e&&e[Yj]===YM,YK=e=>!!e&&"object"==typeof e&&e[Yj]===YF,YV=e=>!!e&&"object"==typeof e&&e[Yj]===YB;function YJ(e){if(e&&"object"==typeof e)switch(e[Yj]){case YD:case YB:return!0}return!1}function Yz(e){if(e&&"object"==typeof e)switch(e[Yj]){case YL:case YD:case YF:case YB:return!0}return!1}let YW=e=>(YK(e)||YJ(e))&&!!e.anchor,YX=Symbol("break visit"),YH=Symbol("skip children"),YY=Symbol("remove node");function YG(e,t){let n=Y1(t);Y$(e)?YQ(null,e.contents,n,Object.freeze([e]))===YY&&(e.contents=null):YQ(null,e,n,Object.freeze([]))}function YQ(e,t,n,r){let i=Y2(e,t,n,r);if(Yz(i)||Yq(i))return Y3(e,r,i),YQ(e,i,n,r);if("symbol"!=typeof i){if(YJ(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=YQ(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===YX)return YX;i===YY&&(t.items.splice(e,1),e-=1)}}}else if(Yq(t)){r=Object.freeze(r.concat(t));let e=YQ("key",t.key,n,r);if(e===YX)return YX;e===YY&&(t.key=null);let i=YQ("value",t.value,n,r);if(i===YX)return YX;i===YY&&(t.value=null)}}return i}async function YZ(e,t){let n=Y1(t);Y$(e)?await Y0(null,e.contents,n,Object.freeze([e]))===YY&&(e.contents=null):await Y0(null,e,n,Object.freeze([]))}async function Y0(e,t,n,r){let i=await Y2(e,t,n,r);if(Yz(i)||Yq(i))return Y3(e,r,i),Y0(e,i,n,r);if("symbol"!=typeof i){if(YJ(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await Y0(e,t.items[e],n,r);if("number"==typeof i)e=i-1;else{if(i===YX)return YX;i===YY&&(t.items.splice(e,1),e-=1)}}}else if(Yq(t)){r=Object.freeze(r.concat(t));let e=await Y0("key",t.key,n,r);if(e===YX)return YX;e===YY&&(t.key=null);let i=await Y0("value",t.value,n,r);if(i===YX)return YX;i===YY&&(t.value=null)}}return i}function Y1(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Y2(e,t,n,r){return"function"==typeof n?n(e,t,r):YU(t)?n.Map?.(e,t,r):YV(t)?n.Seq?.(e,t,r):Yq(t)?n.Pair?.(e,t,r):YK(t)?n.Scalar?.(e,t,r):YR(t)?n.Alias?.(e,t,r):void 0}function Y3(e,t,n){let r=t[t.length-1];if(YJ(r))r.items[e]=n;else if(Yq(r))"key"===e?r.key=n:r.value=n;else if(Y$(r))r.contents=n;else{let e=YR(r)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}YG.BREAK=YX,YG.SKIP=YH,YG.REMOVE=YY,YZ.BREAK=YX,YZ.SKIP=YH,YZ.REMOVE=YY;let Y4={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Y5=e=>e.replace(/[!,[\]{}]/g,e=>Y4[e]);class Y8{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Y8.defaultYaml,e),this.tags=Object.assign({},Y8.defaultTags,t)}clone(){let e=new Y8(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new Y8(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Y8.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Y8.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Y8.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Y8.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Y5(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&Yz(e.contents)){let n={};YG(e.contents,(e,t)=>{Yz(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,s]of r)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!e||t.some(e=>e.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join("\n")}}function Y6(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function Y9(e){let t=new Set;return YG(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Y7(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Ge(e,t,n,r){if(r&&"object"==typeof r)if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Ge(e,r,String(t),n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Ge(e,r,t,n);void 0===i?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Ge(e,r,t,t);void 0===n?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Ge(e,r,t,n);void 0===i?delete r[t]:i!==n&&(r[t]=i)}return e.call(t,n,r)}function Gt(e,t,n){if(Array.isArray(e))return e.map((e,t)=>Gt(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!YW(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}Y8.defaultYaml={explicit:!1,version:"1.2"},Y8.defaultTags={"!!":"tag:yaml.org,2002:"};class Gn{constructor(e){Object.defineProperty(this,Yj,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Y$(e))throw TypeError("A document argument is required");let s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},a=Gt(this,"",s);if("function"==typeof r)for(let{count:e,res:t}of s.anchors.values())r(t,e);return"function"==typeof i?Ge(i,{"":a},"",a):a}}class Gr extends Gn{constructor(e){super(YL),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,r;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],YG(e,{Node:(e,t)=>{(YR(t)||YW(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(r=i)}if(r&&t){let{anchors:e,doc:n,maxAliasCount:i}=t,s=e.get(r);if(s||(Gt(r,null,t),s=e.get(r)),s?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,n,r){if(YR(n)){let e=n.resolve(t),i=r&&e&&r.get(e);return i?i.count*i.aliasCount:0}if(YJ(n)){let i=0;for(let s of n.items){let n=e(t,s,r);n>i&&(i=n)}return i}return Yq(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(n,r,e)),s.count*s.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return r}toJSON(e,t){if(!t)return{source:this.source};let n=this.resolve(t.doc,t);if(!n)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(n).res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Y6(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let Gi=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Gs extends Gn{constructor(e){super(YF),this.value=e}toJSON(e,t){return t?.keep?this.value:Gt(this.value,e,t)}toString(){return String(this.value)}}function Ga(e,t,n){let r;if(Y$(e)&&(e=e.contents),Yz(e))return e;if(Yq(e)){let t=n.schema[YD].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:a,schema:o,sourceObjects:l}=n;if(i&&e&&"object"==typeof e){if(r=l.get(e))return r.anchor??(r.anchor=s(e)),new Gr(r.anchor);r={anchor:null,node:null},l.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,o.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new Gs(e);return r&&(r.node=t),t}u=e instanceof Map?o[YD]:Symbol.iterator in Object(e)?o[YB]:o[YD]}a&&(a(u),delete n.onTagObj);let c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new Gs(e);return t?c.tag=t:u.default||(c.tag=u.tag),r&&(r.node=c),c}function Go(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Ga(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}Gs.BLOCK_FOLDED="BLOCK_FOLDED",Gs.BLOCK_LITERAL="BLOCK_LITERAL",Gs.PLAIN="PLAIN",Gs.QUOTE_DOUBLE="QUOTE_DOUBLE",Gs.QUOTE_SINGLE="QUOTE_SINGLE";let Gl=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class Gu extends Gn{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>Yz(t)||Yq(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Gl(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(YJ(i))i.addIn(r,t);else if(void 0===i&&this.schema)this.set(n,Go(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(YJ(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&YK(i)?i.value:i:YJ(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Yq(t))return!1;let n=t.value;return null==n||e&&YK(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!YJ(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(YJ(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,Go(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let Gc=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Gp(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let Gd=(e,t,n)=>e.endsWith("\n")?Gp(n,t):n.includes("\n")?"\n"+Gp(n,t):(e.endsWith(" ")?"":" ")+n,Gf="flow",Gh="block",Gm="quoted";function Gy(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:o}={}){let l,u,c;if(!i||i<0)return e;i<s&&(s=0);let p=Math.max(1+s,1+i-t.length);if(e.length<=p)return e;let d=[],f={},h=i-t.length;"number"==typeof r&&(r>i-Math.max(2,s)?d.push(0):h=i-r);let m=!1,y=-1,g=-1,b=-1;for(n===Gh&&-1!==(y=Gg(e,y,t.length))&&(h=y+p);c=e[y+=1];){if(n===Gm&&"\\"===c){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===c)n===Gh&&(y=Gg(e,y,t.length)),h=y+t.length+p,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=y)}if(y>=h)if(l)d.push(l),h=l+p,l=void 0;else if(n===Gm){for(;" "===u||" "===u;)u=c,c=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(f[t])return e;d.push(t),f[t]=!0,h=t+p,l=void 0}else m=!0}u=c}if(m&&o&&o(),0===d.length)return e;a&&a();let x=e.slice(0,d[0]);for(let r=0;r<d.length;++r){let i=d[r],s=d[r+1]||e.length;0===i?x=`
|
|
43
|
+
${t}${e.slice(0,s)}`:(n===Gm&&f[i]&&(x+=`${e[i]}\\`),x+=`
|
|
44
|
+
${t}${e.slice(i+1,s)}`)}return x}function Gg(e,t,n){let r=t,i=t+1,s=e[i];for(;" "===s||" "===s;)if(t<i+n)s=e[++t];else{do s=e[++t];while(s&&"\n"!==s)r=t,s=e[i=t+1]}return r}let Gb=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function Gx(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),a="",o=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(a+=n.slice(o,e)+"\\ ",e+=1,o=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{a+=n.slice(o,e);let t=n.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=n.substr(e,6)}e+=5,o=e+1}break;case"n":if(r||'"'===n[e+2]||n.length<i)e+=1;else{for(a+=n.slice(o,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)a+="\n",e+=2;a+=s," "===n[e+2]&&(a+="\\"),e+=1,o=e+1}break;default:e+=1}return a=o?a+n.slice(o):n,r?a:Gy(a,s,Gm,Gb(t,!1))}function GS(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Gx(e,t);let n=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
45
|
+
${n}`)+"'";return t.implicitKey?r:Gy(r,n,Gf,Gb(t,!1))}function GT(e,t){let n,{singleQuote:r}=t.options;if(!1===r)n=Gx;else{let t=e.includes('"'),i=e.includes("'");n=t&&!i?GS:i&&!t?Gx:r?GS:Gx}return n(e,t)}try{e=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{e=/\n+(?!\n|$)/g}function Gv({comment:t,type:n,value:r},i,s,a){let o,l,u,c,{blockQuote:p,commentString:d,lineWidth:f}=i.options;if(!p||/\n[\t ]+$/.test(r))return GT(r,i);let h=i.indent||(i.forceBlockIndent||(c=r,/^(%|---|\.\.\.)/m.test(c))?" ":""),m="literal"===p||"folded"!==p&&n!==Gs.BLOCK_FOLDED&&(n===Gs.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>r)return!0;if(i-(n=t+1)<=r)return!1}return!0}(r,f,h.length));if(!r)return m?"|\n":">\n";for(l=r.length;l>0;--l){let e=r[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let y=r.substring(l),g=y.indexOf("\n");-1===g?o="-":r===y||g!==y.length-1?(o="+",a&&a()):o="",y&&(r=r.slice(0,-y.length),"\n"===y[y.length-1]&&(y=y.slice(0,-1)),y=y.replace(e,`$&${h}`));let b=!1,x=-1;for(u=0;u<r.length;++u){let e=r[u];if(" "===e)b=!0;else if("\n"===e)x=u;else break}let S=r.substring(0,x<u?x+1:u);S&&(r=r.substring(S.length),S=S.replace(/\n+/g,`$&${h}`));let T=h?"2":"1",v=(b?T:"")+o;if(t&&(v+=" "+d(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!m){let e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${h}`),t=!1,s=Gb(i,!0);"folded"!==p&&n!==Gs.BLOCK_FOLDED&&(s.onOverflow=()=>{t=!0});let a=Gy(`${S}${e}${y}`,h,Gh,s);if(!t)return`>${v}
|
|
46
|
+
${h}${a}`}return r=r.replace(/\n+/g,`$&${h}`),`|${v}
|
|
47
|
+
${h}${S}${r}${y}`}function GE(e,t,n,r){let{implicitKey:i,inFlow:s}=t,a="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:o}=e;o!==Gs.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=Gs.QUOTE_DOUBLE);let l=e=>{switch(e){case Gs.BLOCK_FOLDED:case Gs.BLOCK_LITERAL:return i||s?GT(a.value,t):Gv(a,t,n,r);case Gs.QUOTE_DOUBLE:return Gx(a.value,t);case Gs.QUOTE_SINGLE:return GS(a.value,t);case Gs.PLAIN:return function(e,t,n,r){let{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:l,indentStep:u,inFlow:c}=t;if(o&&s.includes("\n")||c&&/[[\]{},]/.test(s))return GT(s,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||c||!s.includes("\n")?GT(s,t):Gv(e,t,n,r);if(!o&&!c&&i!==Gs.PLAIN&&s.includes("\n"))return Gv(e,t,n,r);if(/^(%|---|\.\.\.)/m.test(s)){if(""===l)return t.forceBlockIndent=!0,Gv(e,t,n,r);else if(o&&l===u)return GT(s,t)}let p=s.replace(/\n+/g,`$&
|
|
48
|
+
${l}`);if(a){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(p),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return GT(s,t)}return o?p:Gy(p,l,Gf,Gb(t,!1))}(a,t,n,r);default:return null}},u=l(o);if(null===u){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(null===(u=l(r)))throw Error(`Unsupported default string type ${r}`)}return u}function Gk(e,t){let n,r=Object.assign({blockQuote:!0,commentString:Gc,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function Gw(e,t,n,r){let i;if(Yq(e))return e.toString(t,n,r);if(YR(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s=Yz(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??(i=function(e,t){let n,r;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(YK(t)){n=t.value;let i=e.filter(e=>e.identify?.(n));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}r=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else n=t,r=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!r){let e=n?.constructor?.name??(null===n?"null":typeof n);throw Error(`Tag not resolved for ${e} value`)}return r}(t.doc.schema.tags,s));let a=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],s=(YK(e)||YJ(e))&&e.anchor;s&&Y6(s)&&(n.add(s),i.push(`&${s}`));let a=e.tag??(t.default?null:t.tag);return a&&i.push(r.directives.tagString(a)),i.join(" ")}(s,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let o="function"==typeof i.stringify?i.stringify(s,t,n,r):YK(s)?GE(s,t,n,r):s.toString(t,n,r);return a?YK(s)||"{"===o[0]||"["===o[0]?`${a} ${o}`:`${a}
|
|
49
|
+
${t.indent}${o}`:o}function GA(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let GP={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Gs(Symbol("<<")),{addToJSMap:GC}),stringify:()=>"<<"};function GC(e,t,n){let r=G_(e,n);if(YV(r))for(let n of r.items)GI(e,t,n);else if(Array.isArray(r))for(let n of r)GI(e,t,n);else GI(e,t,r)}function GI(e,t,n){let r=G_(e,n);if(!YU(r))throw Error("Merge sources must be maps or map aliases");for(let[n,i]of r.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,i):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function G_(e,t){return e&&YR(t)?t.resolve(e.doc,e):t}function GN(e,t,{key:n,value:r}){if(Yz(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if((GP.identify(n)||YK(n)&&(!n.type||n.type===Gs.PLAIN)&&GP.identify(n.value))&&e?.doc.schema.tags.some(e=>e.tag===GP.tag&&e.default))GC(e,t,r);else{let i=Gt(n,"",e);if(t instanceof Map)t.set(i,Gt(r,i,e));else if(t instanceof Set)t.add(i);else{let s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(Yz(e)&&n?.doc){let t=Gk(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),GA(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),a=Gt(r,s,e);s in t?Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[s]=a}}return t}function GL(e,t,n){return new GO(Ga(e,void 0,n),Ga(t,void 0,n))}class GO{constructor(e,t=null){Object.defineProperty(this,Yj,{value:YM}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return Yz(t)&&(t=t.clone(e)),Yz(n)&&(n=n.clone(e)),new GO(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return GN(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){let s,a,o,{allNullValues:l,doc:u,indent:c,indentStep:p,options:{commentString:d,indentSeq:f,simpleKeys:h}}=n,m=Yz(e)&&e.comment||null;if(h){if(m)throw Error("With simple keys, key nodes cannot have comments");if(YJ(e)||!Yz(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let y=!h&&(!e||m&&null==t&&!n.inFlow||YJ(e)||(YK(e)?e.type===Gs.BLOCK_FOLDED||e.type===Gs.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(h||!l),indent:c+p});let g=!1,b=!1,x=Gw(e,n,()=>g=!0,()=>b=!0);if(!y&&!n.inFlow&&x.length>1024){if(h)throw Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(l||null==t)return g&&r&&r(),""===x?"?":y?`? ${x}`:x}else if(l&&!h||null==t&&y)return x=`? ${x}`,m&&!g?x+=Gd(x,n.indent,d(m)):b&&i&&i(),x;g&&(m=null),y?(m&&(x+=Gd(x,n.indent,d(m))),x=`? ${x}
|
|
50
|
+
${c}:`):(x=`${x}:`,m&&(x+=Gd(x,n.indent,d(m)))),Yz(t)?(s=!!t.spaceBefore,a=t.commentBefore,o=t.comment):(s=!1,a=null,o=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,!y&&!m&&YK(t)&&(n.indentAtStart=x.length+1),b=!1,!(!f&&p.length>=2&&!n.inFlow&&!y&&YV(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let S=!1,T=Gw(t,n,()=>S=!0,()=>b=!0),v=" ";if(m||s||a){if(v=s?"\n":"",a){let e=d(a);v+=`
|
|
51
|
+
${Gp(e,n.indent)}`}""!==T||n.inFlow?v+=`
|
|
52
|
+
${n.indent}`:"\n"===v&&o&&(v="\n\n")}else if(!y&&YJ(t)){let e=T[0],r=T.indexOf("\n"),i=-1!==r,s=n.inFlow??t.flow??0===t.items.length;if(i||!s){let t=!1;if(i&&("&"===e||"!"===e)){let n=T.indexOf(" ");"&"===e&&-1!==n&&n<r&&"!"===T[n+1]&&(n=T.indexOf(" ",n+1)),(-1===n||r<n)&&(t=!0)}t||(v=`
|
|
53
|
+
${n.indent}`)}}else(""===T||"\n"===T[0])&&(v="");return x+=v+T,n.inFlow?S&&r&&r():o&&!S?x+=Gd(x,n.indent,d(o)):b&&i&&i(),x}(this,e,t,n):JSON.stringify(this)}}function GD(e,t,n){return(t.inFlow??e.flow?function({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:s,flowCollectionPadding:a,options:{commentString:o}}=t,l=Object.assign({},t,{indent:r+=s,inFlow:!0,type:null}),u=!1,c=0,p=[];for(let n=0;n<e.length;++n){let i=e[n],s=null;if(Yz(i))i.spaceBefore&&p.push(""),GM(t,p,i.commentBefore,!1),i.comment&&(s=i.comment);else if(Yq(i)){let e=Yz(i.key)?i.key:null;e&&(e.spaceBefore&&p.push(""),GM(t,p,e.commentBefore,!1),e.comment&&(u=!0));let n=Yz(i.value)?i.value:null;n?(n.comment&&(s=n.comment),n.commentBefore&&(u=!0)):null==i.value&&e?.comment&&(s=e.comment)}s&&(u=!0);let a=Gw(i,l,()=>s=null);u||(u=p.length>c||a.includes("\n")),n<e.length-1?a+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=p.reduce((e,t)=>e+t.length+2,2)+(a.length+2)>t.options.lineWidth)),u&&(a+=",")),s&&(a+=Gd(a,r,o(s))),p.push(a),c=p.length}let{start:d,end:f}=n;if(0===p.length)return d+f;if(!u){let e=p.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${d}${a}${p.join(" ")}${a}${f}`;{let e=d;for(let t of p)e+=t?`
|
|
54
|
+
${s}${i}${t}`:"\n";return`${e}
|
|
55
|
+
${i}${f}`}}:function({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:a,onComment:o}){let l,{indent:u,options:{commentString:c}}=n,p=Object.assign({},n,{indent:s,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],a=null;if(Yz(i))!d&&i.spaceBefore&&f.push(""),GM(n,f,i.commentBefore,d),i.comment&&(a=i.comment);else if(Yq(i)){let e=Yz(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(""),GM(n,f,e.commentBefore,d))}d=!1;let o=Gw(i,p,()=>a=null,()=>d=!0);a&&(o+=Gd(o,s,c(a))),d&&a&&(d=!1),f.push(r+o)}if(0===f.length)l=i.start+i.end;else{l=f[0];for(let e=1;e<f.length;++e){let t=f[e];l+=t?`
|
|
56
|
+
${u}${t}`:"\n"}}return e?(l+="\n"+Gp(c(e),u),o&&o()):d&&a&&a(),l})(e,t,n)}function GM({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){let i=Gp(t(r),e);n.push(i.trimStart())}}function GF(e,t){let n=YK(t)?t.value:t;for(let r of e)if(Yq(r)&&(r.key===t||r.key===n||YK(r.key)&&r.key.value===n))return r}class GB extends Gu{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(YD,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,s=new this(e),a=(e,a)=>{if("function"==typeof i)a=i.call(t,e,a);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==a||r)&&s.items.push(GL(e,a,n))};if(t instanceof Map)for(let[e,n]of t)a(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))a(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){let n;n=Yq(e)?e:e&&"object"==typeof e&&"key"in e?new GO(e.key,e.value):new GO(e,e?.value);let r=GF(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);YK(r.value)&&Gi(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=GF(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=GF(this.items,e),r=n?.value;return(!t&&YK(r)?r.value:r)??void 0}has(e){return!!GF(this.items,e)}set(e,t){this.add(new GO(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))GN(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!Yq(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),GD(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let Gj={collection:"map",default:!0,nodeClass:GB,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(YU(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>GB.from(e,t,n)};class GR extends Gu{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(YB,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=G$(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=G$(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&YK(r)?r.value:r}has(e){let t=G$(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=G$(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];YK(r)&&Gi(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(Gt(e,String(r++),t));return n}toString(e,t,n){return e?GD(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof r){let n=t instanceof Set?s:String(e++);s=r.call(t,n,s)}i.items.push(Ga(s,void 0,n))}}return i}}function G$(e){let t=YK(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let GU={collection:"seq",default:!0,nodeClass:GR,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(YV(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>GR.from(e,t,n)},Gq={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>GE(e,t=Object.assign({actualString:!0},t),n,r)},GK={identify:e=>null==e,createNode:()=>new Gs(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Gs(null),stringify:({source:e},t)=>"string"==typeof e&&GK.test.test(e)?e:t.options.nullStr},GV={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Gs("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&GV.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function GJ({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(s)&&!s.includes("e")){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}let Gz={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?0/0:"-"===e[0]?-1/0:1/0,stringify:GJ},GW={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():GJ(e)}},GX={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new Gs(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:GJ},GH=e=>"bigint"==typeof e||Number.isInteger(e),GY=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function GG(e,t,n){let{value:r}=e;return GH(r)&&r>=0?n+r.toString(t):GJ(e)}let GQ={identify:e=>GH(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>GY(e,2,8,n),stringify:e=>GG(e,8,"0o")},GZ={identify:GH,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>GY(e,0,10,n),stringify:GJ},G0={identify:e=>GH(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>GY(e,2,16,n),stringify:e=>GG(e,16,"0x")},G1=[Gj,GU,Gq,GK,GV,GQ,GZ,G0,Gz,GW,GX];function G2(e){return"bigint"==typeof e||Number.isInteger(e)}let G3=({value:e})=>JSON.stringify(e),G4=[Gj,GU].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:G3},{identify:e=>null==e,createNode:()=>new Gs(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:G3},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:G3},{identify:G2,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>G2(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:G3}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),G5={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}},stringify({comment:e,type:t,value:n},r,i,s){let a;if(!n)return"";if("function"==typeof btoa){let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);a=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=Gs.BLOCK_LITERAL),t!==Gs.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(a.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=a.substr(r,e);a=i.join(t===Gs.BLOCK_LITERAL?"\n":" ")}return GE({comment:e,type:t,value:a},r,i,s)}};function G8(e,t){if(YV(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!Yq(r)){if(YU(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new GO(new Gs(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}
|
|
57
|
+
${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}
|
|
58
|
+
${t.comment}`:r.comment}r=e}e.items[n]=Yq(r)?r:new GO(r)}}else t("Expected a sequence for this tag");return e}function G6(e,t,n){let{replacer:r}=n,i=new GR(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let a,o;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e))if(2===e.length)a=e[0],o=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)o=e[a=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else a=e;i.items.push(GL(a,o,n))}return i}let G9={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:G8,createNode:G6};class G7 extends GR{constructor(){super(),this.add=GB.prototype.add.bind(this),this.delete=GB.prototype.delete.bind(this),this.get=GB.prototype.get.bind(this),this.has=GB.prototype.has.bind(this),this.set=GB.prototype.set.bind(this),this.tag=G7.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,i;if(Yq(e)?(r=Gt(e.key,"",t),i=Gt(e.value,r,t)):r=Gt(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){let r=G6(e,t,n),i=new this;return i.items=r.items,i}}G7.tag="tag:yaml.org,2002:omap";let Qe={collection:"seq",identify:e=>e instanceof Map,nodeClass:G7,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=G8(e,t),r=[];for(let{key:e}of n.items)YK(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new G7,n)},createNode:(e,t,n)=>G7.from(e,t,n)};function Qt({value:e,source:t},n){return t&&(e?Qn:Qr).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let Qn={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Gs(!0),stringify:Qt},Qr={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Gs(!1),stringify:Qt},Qi=e=>"bigint"==typeof e||Number.isInteger(e);function Qs(e,t,n,{intAsBigInt:r}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let s=parseInt(e,n);return"-"===i?-1*s:s}function Qa(e,t,n){let{value:r}=e;if(Qi(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return GJ(e)}class Qo extends GB{constructor(e){super(e),this.tag=Qo.tag}add(e){let t;t=Yq(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new GO(e.key,null):new GO(e,null),GF(this.items,t.key)||this.items.push(t)}get(e,t){let n=GF(this.items,e);return!t&&Yq(n)?YK(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=GF(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new GO(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(GL(e,null,n));return i}}Qo.tag="tag:yaml.org,2002:set";let Ql={collection:"map",identify:e=>e instanceof Set,nodeClass:Qo,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Qo.from(e,t,n),resolve(e,t){if(YU(e))if(e.hasAllNullValues(!0))return Object.assign(new Qo,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function Qu(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===n?i(-1)*s:s}function Qc(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return GJ(e);let r="";t<0&&(r="-",t*=n(-1));let i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let Qp={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Qu(e,n),stringify:Qc},Qd={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Qu(e,!1),stringify:Qc},Qf={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(Qf.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,s,a,o]=t.map(Number),l=Date.UTC(n,r-1,i,s||0,a||0,o||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=Qu(u,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Qh=[Gj,GU,Gq,GK,Qn,Qr,{identify:Qi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Qs(e,2,2,n),stringify:e=>Qa(e,2,"0b")},{identify:Qi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Qs(e,1,8,n),stringify:e=>Qa(e,8,"0")},{identify:Qi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Qs(e,0,10,n),stringify:GJ},{identify:Qi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Qs(e,2,16,n),stringify:e=>Qa(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?0/0:"-"===e[0]?-1/0:1/0,stringify:GJ},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():GJ(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new Gs(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:GJ},G5,GP,Qe,G9,Ql,Qp,Qd,Qf],Qm=new Map([["core",G1],["failsafe",[Gj,GU,Gq]],["json",G4],["yaml11",Qh],["yaml-1.1",Qh]]),Qy={binary:G5,bool:GV,float:GX,floatExp:GW,floatNaN:Gz,floatTime:Qd,int:GZ,intHex:G0,intOct:GQ,intTime:Qp,map:Gj,merge:GP,null:GK,omap:Qe,pairs:G9,seq:GU,set:Ql,timestamp:Qf},Qg={"tag:yaml.org,2002:binary":G5,"tag:yaml.org,2002:merge":GP,"tag:yaml.org,2002:omap":Qe,"tag:yaml.org,2002:pairs":G9,"tag:yaml.org,2002:set":Ql,"tag:yaml.org,2002:timestamp":Qf};function Qb(e,t,n){let r=Qm.get(t);if(r&&!e)return n&&!r.includes(GP)?r.concat(GP):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(Qm.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return n&&(i=i.concat(GP)),i.reduce((e,t)=>{let n="string"==typeof t?Qy[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(Qy).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let Qx=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class QS{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(e)?Qb(e,"compat"):e?Qb(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=r?Qg:{},this.tags=Qb(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,YD,{value:Gj}),Object.defineProperty(this,YF,{value:Gq}),Object.defineProperty(this,YB,{value:GU}),this.sortMapEntries="function"==typeof s?s:!0===s?Qx:null}clone(){let e=Object.create(QS.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class QT{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Yj,{value:YO});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Y8({version:s}),this.setSchema(s,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(QT.prototype,{[Yj]:{value:YO}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=Yz(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Qv(this.contents)&&this.contents.add(e)}addIn(e,t){Qv(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Y9(this);e.anchor=!t||n.has(t)?Y7(t||"a",n):t}return new Gr(e.anchor)}createNode(e,t,n){var r,i;let s,a,o,l;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),s=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:u,anchorPrefix:c,flow:p,keepUndefined:d,onTagObj:f,tag:h}=n??{},{onAnchor:m,setAnchors:y,sourceObjects:g}=(r=this,i=c||"a",a=[],o=new Map,l=null,{onAnchor:e=>{a.push(e),l??(l=Y9(r));let t=Y7(i,l);return l.add(t),t},setAnchors:()=>{for(let e of a){let t=o.get(e);if("object"==typeof t&&t.anchor&&(YK(t.node)||YJ(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:o}),b={aliasDuplicateObjects:u??!0,keepUndefined:d??!1,onAnchor:m,onTagObj:f,replacer:s,schema:this.schema,sourceObjects:g},x=Ga(e,h,b);return p&&YJ(x)&&(x.flow=!0),y(),x}createPair(e,t,n={}){return new GO(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!Qv(this.contents)&&this.contents.delete(e)}deleteIn(e){return Gl(e)?null!=this.contents&&(this.contents=null,!0):!!Qv(this.contents)&&this.contents.deleteIn(e)}get(e,t){return YJ(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Gl(e)?!t&&YK(this.contents)?this.contents.value:this.contents:YJ(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!YJ(this.contents)&&this.contents.has(e)}hasIn(e){return Gl(e)?void 0!==this.contents:!!YJ(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=Go(this.schema,[e],t):Qv(this.contents)&&this.contents.set(e,t)}setIn(e,t){Gl(e)?this.contents=t:null==this.contents?this.contents=Go(this.schema,Array.from(e),t):Qv(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Y8({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Y8({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new QS(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},o=Gt(this.contents,t??"",a);if("function"==typeof i)for(let{count:e,res:t}of a.anchors.values())i(t,e);return"function"==typeof s?Ge(s,{"":o},"",o):o}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let i=Gk(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=s(e.commentBefore);n.unshift(Gp(t,""))}let a=!1,o=null;if(e.contents){if(Yz(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=s(e.contents.commentBefore);n.push(Gp(t,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}let t=o?void 0:()=>a=!0,l=Gw(e.contents,i,()=>o=null,t);o&&(l+=Gd(l,"",s(o))),("|"===l[0]||">"===l[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${l}`:n.push(l)}else n.push(Gw(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=s(e.comment);t.includes("\n")?(n.push("..."),n.push(Gp(t,""))):n.push(`... ${t}`)}else n.push("...");else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&((!a||o)&&""!==n[n.length-1]&&n.push(""),n.push(Gp(s(t),"")))}return n.join("\n")+"\n"}(this,e)}}function Qv(e){if(YJ(e))return!0;throw Error("Expected a YAML collection as document contents")}class QE extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Qk extends QE{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Qw extends QE{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let QA=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){let e=Math.min(s-39,a.length-79);a="…"+a.substring(e),s-=e-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),a=n+a}if(/[^ ]/.test(a)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));let o=" ".repeat(s)+"^".repeat(e);n.message+=`:
|
|
59
|
+
|
|
60
|
+
${a}
|
|
61
|
+
${o}
|
|
62
|
+
`}};function QP(e,{flow:t,indicator:n,next:r,offset:i,onError:s,parentIndent:a,startOnNewline:o}){let l=!1,u=o,c=o,p="",d="",f=!1,h=!1,m=null,y=null,g=null,b=null,x=null,S=null,T=null;for(let i of e)switch(h&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&s(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h=!1),m&&(u&&"comment"!==i.type&&"newline"!==i.type&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!t&&("doc-start"!==n||r?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),c=!0;break;case"comment":{c||s(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";p?p+=d+e:p=e,d="",u=!1;break}case"newline":u?p?p+=i.source:S&&"seq-item-ind"===n||(l=!0):d+=i.source,u=!0,f=!0,(y||g)&&(b=i),c=!0;break;case"anchor":y&&s(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&s(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=i,T??(T=i.offset),u=!1,c=!1,h=!0;break;case"tag":g&&s(i,"MULTIPLE_TAGS","A node can have at most one tag"),g=i,T??(T=i.offset),u=!1,c=!1,h=!0;break;case n:(y||g)&&s(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),S&&s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),S=i,u="seq-item-ind"===n||"explicit-key-ind"===n,c=!1;break;case"comma":if(t){x&&s(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),x=i,u=!1,c=!1;break}default:s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),u=!1,c=!1}let v=e[e.length-1],E=v?v.offset+v.source.length:i;return h&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=a||r?.type==="block-map"||r?.type==="block-seq")&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:x,found:S,spaceBefore:l,comment:p,hasNewline:f,anchor:y,tag:g,newlineAfterProp:b,end:E,start:T??E}}function QC(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(QC(t.key)||QC(t.value))return!0}return!1;default:return!0}}function QI(e,t,n){if(t?.type==="flow-collection"){let r=t.end[0];r.indent===e&&("]"===r.source||"}"===r.source)&&QC(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Q_(e,t,n){let{uniqueKeys:r}=e.options;if(!1===r)return!1;let i="function"==typeof r?r:(e,t)=>e===t||YK(e)&&YK(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}let QN="All mapping items must start at the same column";function QL(e,t,n,r){let i="";if(e){let s=!1,a="";for(let o of e){let{source:e,type:l}=o;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=a+t:i=t,a="";break}case"newline":i&&(a+=e),s=!0;break;default:r(o,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}let QO="Block collections are not allowed within flow collections",QD=e=>e&&("block-map"===e.type||"block-seq"===e.type);function QM(e,t,n,r,i,s){let a="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){let a=new(s?.nodeClass??GB)(n.schema);n.atRoot&&(n.atRoot=!1);let o=r.offset,l=null;for(let s of r.items){let{start:u,key:c,sep:p,value:d}=s,f=QP(u,{indicator:"explicit-key-ind",next:c??p?.[0],offset:o,onError:i,parentIndent:r.indent,startOnNewline:!0}),h=!f.found;if(h){if(c&&("block-seq"===c.type?i(o,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(o,"BAD_INDENT",QN)),!f.anchor&&!f.tag&&!p){l=f.end,f.comment&&(a.comment?a.comment+="\n"+f.comment:a.comment=f.comment);continue}(f.newlineAfterProp||QC(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else f.found?.indent!==r.indent&&i(o,"BAD_INDENT",QN);n.atKey=!0;let m=f.end,y=c?e(n,c,f,i):t(n,m,u,null,f,i);n.schema.compat&&QI(r.indent,c,i),n.atKey=!1,Q_(n,a.items,y)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let g=QP(p??[],{indicator:"map-value-ind",next:d,offset:y.range[2],onError:i,parentIndent:r.indent,startOnNewline:!c||"block-scalar"===c.type});if(o=g.end,g.found){h&&(d?.type!=="block-map"||g.hasNewline||i(o,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&f.start<g.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=d?e(n,d,g,i):t(n,o,p,null,g,i);n.schema.compat&&QI(r.indent,d,i),o=l.range[2];let u=new GO(y,l);n.options.keepSourceTokens&&(u.srcToken=s),a.items.push(u)}else{h&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);let e=new GO(y);n.options.keepSourceTokens&&(e.srcToken=s),a.items.push(e)}}return l&&l<o&&i(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,o,l??o],a}(e,t,n,r,s):"block-seq"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){let a=new(s?.nodeClass??GR)(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let o=r.offset,l=null;for(let{start:s,value:u}of r.items){let c=QP(s,{indicator:"seq-item-ind",next:u,offset:o,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!c.found)if(c.anchor||c.tag||u)u?.type==="block-seq"?i(c.end,"BAD_INDENT","All sequence items must start at the same column"):i(o,"MISSING_CHAR","Sequence item without - indicator");else{l=c.end,c.comment&&(a.comment=c.comment);continue}let p=u?e(n,u,c,i):t(n,c.end,s,null,c,i);n.schema.compat&&QI(r.indent,u,i),o=p.range[2],a.items.push(p)}return a.range=[r.offset,o,l??o],a}(e,t,n,r,s):function({composeNode:e,composeEmptyNode:t},n,r,i,s){let a="{"===r.start.source,o=a?"flow map":"flow sequence",l=new(s?.nodeClass??(a?GB:GR))(n.schema);l.flow=!0;let u=n.atRoot;u&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let c=r.offset+r.start.source.length;for(let s=0;s<r.items.length;++s){let u=r.items[s],{start:p,key:d,sep:f,value:h}=u,m=QP(p,{flow:o,indicator:"explicit-key-ind",next:d??f?.[0],offset:c,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!f&&!h){0===s&&m.comma?i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):s<r.items.length-1&&i(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),c=m.end;continue}!a&&n.options.strict&&QC(d)&&i(d,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===s)m.comma&&i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(m.comma||i(m.start,"MISSING_CHAR",`Missing , between ${o} items`),m.comment){let e="";e:for(let t of p)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){let t=l.items[l.items.length-1];Yq(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(a||f||m.found){n.atKey=!0;let s=m.end,y=d?e(n,d,m,i):t(n,s,p,null,m,i);QD(d)&&i(y.range,"BLOCK_IN_FLOW",QO),n.atKey=!1;let g=QP(f??[],{flow:o,indicator:"map-value-ind",next:h,offset:y.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(g.found){if(!a&&!m.found&&n.options.strict){if(f)for(let e of f){if(e===g.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<g.found.offset-1024&&i(g.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else h&&("source"in h&&h.source?.[0]===":"?i(h,"MISSING_CHAR",`Missing space after : in ${o}`):i(g.start,"MISSING_CHAR",`Missing , or : between ${o} items`));let b=h?e(n,h,g,i):g.found?t(n,g.end,f,null,g,i):null;b?QD(h)&&i(b.range,"BLOCK_IN_FLOW",QO):g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);let x=new GO(y,b);if(n.options.keepSourceTokens&&(x.srcToken=u),a)Q_(n,l.items,y)&&i(s,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(x);else{let e=new GB(n.schema);e.flow=!0,e.items.push(x);let t=(b??y).range;e.range=[y.range[0],t[1],t[2]],l.items.push(e)}c=b?b.range[2]:g.end}else{let r=h?e(n,h,m,i):t(n,m.end,f,null,m,i);l.items.push(r),c=r.range[2],QD(h)&&i(r.range,"BLOCK_IN_FLOW",QO)}}let p=a?"}":"]",[d,...f]=r.end,h=c;if(d?.source===p)h=d.offset+d.source.length;else{let e=o[0].toUpperCase()+o.substring(1),t=u?`${e} must end with a ${p}`:`${e} in block collection must be sufficiently indented and end with a ${p}`;i(c,u?"MISSING_CHAR":"BAD_INDENT",t),d&&1!==d.source.length&&f.unshift(d)}if(f.length>0){let e=QL(f,h,n.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[r.offset,h,e.offset]}else l.range=[r.offset,h,h];return l}(e,t,n,r,s),o=a.constructor;return"!"===i||i===o.tagName?a.tag=o.tagName:i&&(a.tag=i),a}function QF(e,t,n){let r=t.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],s=i[0],a=0,o="",l=-1;for(let t=1;t<i.length;++t){let n=i[t];if(o||"-"!==n&&"+"!==n){let r=Number(n);!a&&r?a=r:-1===l&&(l=e+t)}else o=n}-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,c="",p=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case"space":u=!0;case"newline":p+=i.source.length;break;case"comment":n&&!u&&r(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=i.source.length,c=i.source.substring(1);break;case"error":r(i,"UNEXPECTED_TOKEN",i.message),p+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;r(i,"UNEXPECTED_TOKEN",e);let t=i.source;t&&"string"==typeof t&&(p+=t.length)}}}return{mode:s,indent:a,chomp:o,comment:c,length:p}}(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};let s=">"===i.mode?Gs.BLOCK_FOLDED:Gs.BLOCK_LITERAL,a=t.source?function(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(t.source):[],o=a.length;for(let e=a.length-1;e>=0;--e){let t=a[e][1];if(""===t||"\r"===t)o=e;else break}if(0===o){let e="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"",n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:s,comment:i.comment,range:[r,n,n]}}let l=t.indent+i.indent,u=t.offset+i.length,c=0;for(let t=0;t<o;++t){let[r,s]=a[t];if(""===s||"\r"===s)0===i.indent&&r.length>l&&(l=r.length);else{r.length<l&&n(u+r.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===i.indent&&(l=r.length),c=t,0!==l||e.atRoot||n(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=r.length+s.length+1}for(let e=a.length-1;e>=o;--e)a[e][0].length>l&&(o=e+1);let p="",d="",f=!1;for(let e=0;e<c;++e)p+=a[e][0].slice(l)+"\n";for(let e=c;e<o;++e){let[t,r]=a[e];u+=t.length+r.length+1;let o="\r"===r[r.length-1];if(o&&(r=r.slice(0,-1)),r&&t.length<l){let e=i.indent?"explicit indentation indicator":"first line",s=`Block scalar lines must not be less indented than their ${e}`;n(u-r.length-(o?2:1),"BAD_INDENT",s),t=""}s===Gs.BLOCK_LITERAL?(p+=d+t.slice(l)+r,d="\n"):t.length>l||" "===r[0]?(" "===d?d="\n":f||"\n"!==d||(d="\n\n"),p+=d+t.slice(l)+r,d="\n",f=!0):""===r?"\n"===d?p+="\n":d="\n":(p+=d+r,d=" ",f=!1)}switch(i.chomp){case"-":break;case"+":for(let e=o;e<a.length;++e)p+="\n"+a[e][0].slice(l);"\n"!==p[p.length-1]&&(p+="\n");break;default:p+="\n"}let h=r+i.length+t.source.length;return{value:p,type:s,comment:i.comment,range:[r,h,h]}}function QB(e,t,n){let r,i,{offset:s,type:a,source:o,end:l}=e,u=(e,t,r)=>n(s+e,t,r);switch(a){case"scalar":r=Gs.PLAIN,i=function(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Qj(e)}(o,u);break;case"single-quoted-scalar":var c,p;r=Gs.QUOTE_SINGLE,c=o,p=u,("'"!==c[c.length-1]||1===c.length)&&p(c.length,"MISSING_CHAR","Missing closing 'quote"),i=Qj(c.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":r=Gs.QUOTE_DOUBLE,i=function(e,t){let n="";for(let r=1;r<e.length-1;++r){let i=e[r];if("\r"!==i||"\n"!==e[r+1])if("\n"===i){let{fold:t,offset:i}=function(e,t){let n="",r=e[t+1];for(;(" "===r||" "===r||"\n"===r||"\r"===r)&&("\r"!==r||"\n"===e[t+2]);)"\n"===r&&(n+="\n"),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}(e,r);n+=t,r=i}else if("\\"===i){let i=e[++r],s=QR[i];if(s)n+=s;else if("\n"===i)for(i=e[r+1];" "===i||" "===i;)i=e[++r+1];else if("\r"===i&&"\n"===e[r+1])for(i=e[++r+1];" "===i||" "===i;)i=e[++r+1];else if("x"===i||"u"===i||"U"===i){let s="x"===i?2:"u"===i?4:8;n+=function(e,t,n,r){let i=e.substr(t,n),s=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):0/0;try{return String.fromCodePoint(s)}catch{let i=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}}(e,r+1,s,t),r+=s}else{let i=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),n+=i}}else if(" "===i||" "===i){let t=r,s=e[r+1];for(;" "===s||" "===s;)s=e[++r+1];"\n"!==s&&("\r"!==s||"\n"!==e[r+2])&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(o,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}let d=s+o.length,f=QL(l,d,t,n);return{value:i,type:r,comment:f.comment,range:[s,d,f.offset]}}function Qj(e){let t,n,r=/(.*?)\r?\n/sy,i=r.exec(e);if(!i)return e;try{t=RegExp("(?<![ ])[ ]+$"),n=RegExp("^[ ]+|(?<![ ])[ ]+$","g")}catch{t=/[ \t]+$/,n=/^[ \t]+|[ \t]+$/g}let s=i[1].replace(t,""),a=" ",o=r.lastIndex;for(;i=r.exec(e);){let e=i[1].replace(n,"");""===e?"\n"===a?s+=a:a="\n":(s+=a+e,a=" "),o=r.lastIndex}let l=/[ \t]*(.*)/sy;return l.lastIndex=o,i=l.exec(e),s+a+(i?.[1]??"")}let QR={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"
",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Q$(e,t,n,r){let i,s,{value:a,type:o,comment:l,range:u}="block-scalar"===t.type?QF(e,t,r):QB(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,"TAG_RESOLVE_FAILED",e)):null;i=e.options.stringKeys&&e.atKey?e.schema[YF]:c?function(e,t,n,r,i){if("!"===n)return e[YF];let s=[];for(let t of e.tags)if(!t.collection&&t.tag===n)if(!t.default||!t.test)return t;else s.push(t);for(let e of s)if(e.test?.test(t))return e;let a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[YF])}(e.schema,a,c,n,r):"scalar"===t.type?function({atKey:e,directives:t,schema:n},r,i,s){let a=n.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(r))||n[YF];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[YF];if(a.tag!==e.tag){let n=t.tagString(a.tag),r=t.tagString(e.tag);s(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${r}`,!0)}}return a}(e,a,t,r):e.schema[YF];try{let o=i.resolve(a,e=>r(n??t,"TAG_RESOLVE_FAILED",e),e.options);s=YK(o)?o:new Gs(o)}catch(e){r(n??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),s=new Gs(a)}return s.range=u,s.source=a,o&&(s.type=o),c&&(s.tag=c),i.format&&(s.format=i.format),l&&(s.comment=l),s}let QU={composeNode:Qq,composeEmptyNode:QK};function Qq(e,t,n,r){let i,s=e.atKey,{spaceBefore:a,comment:o,anchor:l,tag:u}=n,c=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:n,end:r},i){let s=new Gr(n.substring(1));""===s.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+n.length,o=QL(r,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}(e,t,r),(l||u)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=Q$(e,t,u,r),l&&(i.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{i=function(e,t,n,r,i){let s=r.tag,a=s?t.directives.tagName(s.source,e=>i(s,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===n.type){let{anchor:e,newlineAfterProp:t}=r,n=e&&s?e.offset>s.offset?e:s:e??s;n&&(!t||t.offset<n.offset)&&i(n,"MISSING_CHAR","Missing newline after block sequence props")}let o="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq";if(!s||!a||"!"===a||a===GB.tagName&&"map"===o||a===GR.tagName&&"seq"===o)return QM(e,t,n,i,a);let l=t.schema.tags.find(e=>e.tag===a&&e.collection===o);if(!l){let r=t.schema.knownTags[a];if(r?.collection!==o)return r?i(s,"BAD_COLLECTION_TYPE",`${r.tag} used for ${o} collection, but expects ${r.collection??"scalar"}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),QM(e,t,n,i,a);t.schema.tags.push(Object.assign({},r,{default:!1})),l=r}let u=QM(e,t,n,i,a,l),c=l.resolve?.(u,e=>i(s,"TAG_RESOLVE_FAILED",e),t.options)??u,p=Yz(c)?c:new Gs(c);return p.range=u.range,p.tag=a,l?.format&&(p.format=l.format),p}(QU,e,t,n,r),l&&(i.anchor=l.source.substring(1))}catch(e){r(t,"RESOURCE_EXHAUSTION",e instanceof Error?e.message:String(e))}break;default:{let e="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",e),c=!1}}return i??(i=QK(e,t.offset,void 0,null,n,r)),l&&""===i.anchor&&r(l,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!YK(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&r(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(i.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?i.comment=o:i.commentBefore=o),e.options.keepSourceTokens&&c&&(i.srcToken=t),i}function QK(e,t,n,r,{spaceBefore:i,comment:s,anchor:a,tag:o,end:l},u){let c=Q$(e,{type:"scalar",offset:function(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];n?.type==="space";)e+=n.source.length,n=t[++r];break}}return e}(t,n,r),indent:-1,source:""},o,u);return a&&(c.anchor=a.source.substring(1),""===c.anchor&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=l),c}function QV(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function QJ(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){let s=e[i];switch(s[0]){case"#":t+=(""===t?"":r?"\n\n":"\n")+(s.substring(1)||" "),n=!0,r=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class Qz{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=QV(e);r?this.warnings.push(new Qw(i,t,n)):this.errors.push(new Qk(i,t,n))},this.directives=new Y8({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=QJ(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
63
|
+
${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(YJ(i)&&!i.flow&&i.items.length>0){let e=i.items[0];Yq(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}
|
|
64
|
+
${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}
|
|
65
|
+
${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:QJ(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,r)=>{let i=QV(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:r,value:i,end:s},a){let o=new QT(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:o.directives,options:o.options,schema:o.schema},u=QP(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});u.found&&(o.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!u.hasNewline&&a(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),o.contents=i?Qq(l,i,u,a):QK(l,u.end,r,null,u,a);let c=o.contents.range[2],p=QL(s,c,!1,a);return p.comment&&(o.comment=p.comment),o.range=[n,c,p.offset],o}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Qk(QV(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new Qk(QV(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=QL(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
|
|
66
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Qk(QV(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new QT(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}function QW(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function QX(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),r))t.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}function QH(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=QH(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=QY(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=QY(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=QY(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function QY({start:e,key:t,sep:n,value:r}){let i="";for(let t of e)i+=t.source;if(t&&(i+=QH(t)),n)for(let e of n)i+=e.source;return r&&(i+=QH(r)),i}let QG=Symbol("break visit"),QQ=Symbol("skip children"),QZ=Symbol("remove item");function Q0(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let i=r(n,t);if("symbol"==typeof i)return i;for(let s of["key","value"]){let a=n[s];if(a&&"items"in a){for(let n=0;n<a.items.length;++n){let i=e(Object.freeze(t.concat([[s,n]])),a.items[n],r);if("number"==typeof i)n=i-1;else{if(i===QG)return QG;i===QZ&&(a.items.splice(n,1),n-=1)}}"function"==typeof i&&"key"===s&&(i=i(n,t))}}return"function"==typeof i?i(n,t):i}(Object.freeze([]),e,t)}function Q1(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}Q0.BREAK=QG,Q0.SKIP=QQ,Q0.REMOVE=QZ,Q0.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Q0.parentCollection=(e,t)=>{let n=Q0.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw Error("Parent collection not found")};var Q2=Object.freeze({__proto__:null,BOM:"\uFEFF",DOCUMENT:"\x02",FLOW_END:"\x18",SCALAR:"\x1f",createScalarToken:function(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:s=-1,type:a="PLAIN"}=t,o=GE({type:a,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(o[0]){case"|":case">":{let e=o.indexOf("\n"),t=o.substring(0,e),n=o.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:s,indent:r,source:t}];return QW(i,l)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:s,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:o,end:l};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:o,end:l};default:return{type:"scalar",offset:s,indent:r,source:o,end:l}}},isCollection:e=>!!e&&"items"in e,isScalar:e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type),prettyToken:function(e){switch(e){case"\uFEFF":return"<BOM>";case"\x02":return"<DOC>";case"\x18":return"<FLOW_END>";case"\x1f":return"<SCALAR>";default:return JSON.stringify(e)}},resolveAsScalar:function(e,t=!0,n){if(e){let r=(e,t,r)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new Qk([i,i+1],t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return QB(e,t,r);case"block-scalar":return QF({options:{strict:t}},e,r)}}return null},setScalarValue:function(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:s=!1,type:a}=n,o="indent"in e?e.indent:null;if(r&&"number"==typeof o&&(o+=2),!a)switch(e.type){case"single-quoted-scalar":a="QUOTE_SINGLE";break;case"double-quoted-scalar":a="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");a=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:a="PLAIN"}let l=GE({type:a,value:t},{implicitKey:i||null===o,indent:null!==o&&o>0?" ".repeat(o):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":!function(e,t){let n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=r,e.source=i}else{let{offset:t}=e,n="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:n,source:r}];for(let t of(QW(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:s,source:i})}}(e,l);break;case'"':QX(e,l,"double-quoted-scalar");break;case"'":QX(e,l,"single-quoted-scalar");break;default:QX(e,l,"scalar")}},stringify:e=>"type"in e?QH(e):QY(e),tokenType:Q1,visit:Q0});function Q3(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let Q4=new Set("0123456789ABCDEFabcdef"),Q5=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Q8=new Set(",[]{}"),Q6=new Set(" ,[]{}\n\r "),Q9=e=>!e||Q6.has(e);class Q7{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Q3(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,n=e.indexOf("#");for(;-1!==n;){let r=e[n-1];if(" "===r||" "===r){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){let n=e[t-1];if(" "===n||" "===n)t-=1;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&Q3(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Q3(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Q3(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Q9),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0)let r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&Q3(r[3]))&&(n!==this.indentNext-1||1!==this.flowLevel||"]"!==r[0]&&"}"!==r[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let i=0;for(;","===r[i];)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Q9),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||Q3(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){let e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>Q3(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;e:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t)if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);let i=e;for(;" "===r;)r=this.buffer[--e];if("\n"===r&&e>=this.pos&&e+1+n>i)t=e;else break}return yield"\x1f",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;e=this.buffer[++r];)if(":"===e){let e=this.buffer[r+1];if(Q3(e)||t&&Q8.has(e))break;n=r}else if(Q3(e)){let i=this.buffer[r+1];if("\r"===e&&("\n"===i?(r+=1,e="\n",i=this.buffer[r+1]):n=r),"#"===i||t&&Q8.has(i))break;if("\n"===e){let e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(t&&Q8.has(e))break;n=r}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(Q9),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,n=this.charAt(1);if(Q3(n)||t&&Q8.has(n)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Q3(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Q5.has(t))t=this.buffer[++e];else if("%"===t&&Q4.has(this.buffer[e+1])&&Q4.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t)let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Ze{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}function Zt(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Zn(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function Zr(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Zi(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Zs(e){if(0===e.length)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Za(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function Zo(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||Zt(t.start,"explicit-key-ind")||Zt(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,Zr(t.value)?t.value.end?Za(t.value.end,t.sep):t.value.end=t.sep:Za(t.start,t.sep),delete t.sep)}class Zl{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Q7,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=Q1(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&Zo(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===Zn(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==Zn(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t,n=Zs(Zi(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Za(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case"newline":n.push(r);break;case"space":break;case"comment":i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Zt(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Zr(t.key)&&!Zt(t.sep,"newline")){let e=Zs(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(Zt(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Zs(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Zt(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if("block-seq"===r.type){if(!t.explicitKey&&t.sep&&!Zt(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Za(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Zt(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=Zs(Zi(t));Zo(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Zs(Zi(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Zs(Zi(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function Zu(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new Ze||null,prettyErrors:t}}function Zc(e,t={}){let{lineCounter:n,prettyErrors:r}=Zu(t),i=new Zl(n?.addNewLine),s=new Qz(t),a=null;for(let t of s.compose(i.parse(e),!0,e.length))if(a){if("silent"!==a.options.logLevel){a.errors.push(new Qk(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else a=t;return r&&n&&(a.errors.forEach(QA(e,n)),a.warnings.forEach(QA(e,n))),a}var Zp=Object.freeze({__proto__:null,Alias:Gr,CST:Q2,Composer:Qz,Document:QT,Lexer:Q7,LineCounter:Ze,Pair:GO,Parser:Zl,Scalar:Gs,Schema:QS,YAMLError:QE,YAMLMap:GB,YAMLParseError:Qk,YAMLSeq:GR,YAMLWarning:Qw,isAlias:YR,isCollection:YJ,isDocument:Y$,isMap:YU,isNode:Yz,isPair:Yq,isScalar:YK,isSeq:YV,parse:function(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);let i=Zc(e,n);if(!i)return null;if(i.warnings.forEach(e=>GA(i.options.logLevel,e)),i.errors.length>0)if("silent"!==i.options.logLevel)throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:r},n))},parseAllDocuments:function(e,t={}){let{lineCounter:n,prettyErrors:r}=Zu(t),i=new Zl(n?.addNewLine),s=new Qz(t),a=Array.from(s.compose(i.parse(e)));if(r&&n)for(let t of a)t.errors.forEach(QA(e,n)),t.warnings.forEach(QA(e,n));return a.length>0?a:Object.assign([],{empty:!0},s.streamInfo())},parseDocument:Zc,stringify:function(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return Y$(e)&&!r?e.toString(n):new QT(e,r,n).toString(n)},visit:YG,visitAsync:YZ});let Zd=e=>!e.indexOf(Ua),{stringify:Zf,parse:Zh}=JSON;var Zm=Object.freeze({__proto__:null,branch:e=>{let t=[],[n,r]=ql(Zp.parse,e);return n?[]:(t.push({source:UT(Zf(r,null,2),Uh),extension:"json"}),t)},files:["*.yml","*.yaml"],find:e=>{let[t]=ql(Zp.parse,e);return function({error:e}){if(!e)return[];let{message:t,linePos:n}=e,[r]=String(e).split(":");return[{message:function(e){let[t]=e.split("\n");return t.replace(/\sat.*/g,"")}(t),rule:`${r.replace("YAML","Yaml").replace(Y_,function(e){return" "+(e[0].toLowerCase()||e[0])+e[1]}).replace(YN,function(e){return" "+e.toLowerCase()}).trim().split(YI).join("-").replace(/^-/,"").replace(/-\s*$/,"")} (yaml)`,position:function(e){let[{line:t,col:n}]=e;return{line:t,column:n}}(n)}]}({error:t})},merge:(e,t)=>{let[n]=t.filter(Zd),r=Uv(n,Uh);return Zp.stringify(Zh(r),null,{indent:2,lineWidth:1/0})}});function Zy(e){return"Document"===e.type}function Zg(e){return"Table"===e.type}function Zb(e){return"TableArray"===e.type}function Zx(e){return"KeyValue"===e.type}function ZS(e){return"InlineArray"===e.type}function ZT(e){return"InlineItem"===e.type}function Zv(e){return"InlineTable"===e.type}function ZE(e){return"Comment"===e.type}function Zk(e){return Zy(e)||Zg(e)||Zb(e)||Zv(e)||ZS(e)}function Zw(e){return{lines:e.end.line-e.start.line+1,columns:e.end.column-e.start.column}}function ZA(e,t){let n=Array.isArray(e)?e:ZC(e);if(0===n.length)return{line:1,column:t};let r=0,i=n.length-1;for(;r<i;){let e=r+i>>>1;n[e]<t?r=e+1:i=e}n[r]<t&&r++;let s=r+1;return{line:s,column:t-(n[s-2]+1||0)}}function ZP(e,t){let n=ZC(e),r=void 0===n[t.line-2]?0:n[t.line-2]+1,i=n[t.line-1]||e.length;return e.substring(r,i)}function ZC(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);10===r?t.push(n):13===r&&(10===e.charCodeAt(n+1)?(t.push(n+1),n++):t.push(n))}return t.push(e.length),t}function ZI(e){return{line:e.line,column:e.column}}function Z_(e){return{start:ZI(e.start),end:ZI(e.end)}}function ZN(){return{line:1,column:0}}var ZL=class extends Error{line;column;constructor(e,t,n){let r=`Error parsing TOML (${t.line}, ${t.column+1}):
|
|
67
|
+
`;if(e){let n=ZP(e,t),i=`${function(e,t=" "){return t.repeat(e)}(t.column)}^`;n&&(r+=`${n}
|
|
68
|
+
${i}
|
|
69
|
+
`)}super(r+=n),this.line=t.line,this.column=t.column}};let ZO=/^[\w-]+$/,ZD=/[\w,\d,",',+,\-,_]/;function ZM(e,t,n){if(!n||e[t]!==n||e[t+1]!==n||e[t+2]!==n)return!1;if("'"===n)return n;let r=0,i=t-1;for(;i>=0&&"\\"===e[i];)r++,i--;return(0===r||r%2==0)&&n}let ZF=new Int8Array(128);ZF.fill(-1);for(let e=0;e<10;e++)ZF[48+e]=e;for(let e=0;e<6;e++)ZF[65+e]=10+e,ZF[97+e]=10+e;function ZB(e){let t=e.charCodeAt(0);return t<128&&-1!==ZF[t]}function Zj(e){return e.startsWith("'''")?Z$(e.slice(3,e.length-3)):e.startsWith("'")?e.slice(1,e.length-1):e.startsWith('"""')?ZR(Z$(e.slice(3,e.length-3)),!0):e.startsWith('"')?ZR(e.slice(1,e.length-1),!1):e}function ZR(e,t){let n=e.length;if(!t&&-1===e.indexOf("\\"))return e;let r=[],i=0;for(let a=0;a<n;a++){if("\\"!==e[a])continue;if(a>i&&r.push(e.slice(i,a)),++a>=n)throw Error("Trailing backslash");let o=e[a];switch(o){case"b":r.push("\b");break;case"t":r.push(" ");break;case"n":r.push(`
|
|
70
|
+
`);break;case"f":r.push("\f");break;case"r":r.push(`\r`);break;case'"':r.push('"');break;case"\\":r.push("\\");break;case"e":r.push("\x1b");break;case"u":{var s;if(a+4>n||!ZB(e[a+1])||!ZB(e[a+2])||!ZB(e[a+3])||!ZB(e[a+4]))throw Error(`Invalid Unicode escape: \\u${e.slice(a+1,a+5)}`);let t=(s=a+1,ZF[e.charCodeAt(s)]<<12|ZF[e.charCodeAt(s+1)]<<8|ZF[e.charCodeAt(s+2)]<<4|ZF[e.charCodeAt(s+3)]);if(t>=55296&&t<=57343)throw Error(`Invalid \\u${e.slice(a+1,a+5)}: surrogates not allowed`);r.push(String.fromCharCode(t)),a+=4;break}case"U":{if(a+8>n)throw Error(`Invalid Unicode escape: \\U${e.slice(a+1,a+9)}`);for(let t=1;t<=8;t++)if(!ZB(e[a+t]))throw Error(`Invalid Unicode escape: \\U${e.slice(a+1,a+9)}`);let t=parseInt(e.slice(a+1,a+9),16);if(t>=55296&&t<=57343)throw Error(`Invalid \\U${e.slice(a+1,a+9)}: surrogates not allowed`);r.push(String.fromCodePoint(t)),a+=8;break}case"x":{if(a+2>n||!ZB(e[a+1])||!ZB(e[a+2]))throw Error(`Invalid hex escape: \\x${e.slice(a+1,a+3)}`);let t=ZF[e.charCodeAt(a+1)]<<4|ZF[e.charCodeAt(a+2)];r.push(String.fromCharCode(t)),a+=2;break}default:if(t&&(o===`
|
|
71
|
+
`||o===`\r`||" "===o||" "===o)){let t=o===`
|
|
72
|
+
`||o===`\r`,r=a;for(;r<n&&(" "===e[r]||" "===e[r]||e[r]===`
|
|
73
|
+
`||e[r]===`\r`);)(e[r]===`
|
|
74
|
+
`||e[r]===`\r`)&&(t=!0),r++;if(!t)throw Error(`Invalid escape sequence: \\${o}`);a=r-1;break}throw Error(`Invalid escape sequence: \\${o}`)}i=a+1}return 0===i?e:(i<n&&r.push(e.slice(i)),r.join(""))}function Z$(e){return 10===e.charCodeAt(0)?e.slice(1):13===e.charCodeAt(0)&&10===e.charCodeAt(1)?e.slice(2):e}var ZU=class{iterator;index;value;done;peeked;constructor(e){this.iterator=e,this.index=-1,this.value=void 0,this.done=!1,this.peeked=null}next(){if(this.done)return Zq;let e=this.peeked||this.iterator.next();return this.index+=1,this.value=e.value,this.done=e.done??!1,this.peeked=null,e}peek(){return this.done?Zq:(this.peeked||=this.iterator.next(),this.peeked)}[Symbol.iterator](){return this}};let Zq=Object.freeze({value:void 0,done:!0}),ZK=new WeakMap,ZV=new WeakMap,ZJ=new WeakMap,Zz=new WeakSet,ZW=new WeakMap;function ZX(e,t){return(e[t.line-1]??e[e.length-1])+t.column}function ZH(e){return Zx(e)?[e.key,e.value]:ZT(e)?[e.item]:Zg(e)||Zb(e)?[e.key,...e.items]:Zk(e)?e.items:[]}function ZY(e){Object.defineProperty(e,"dirty",{configurable:!0,enumerable:!1,value:!0,writable:!0})}function ZG(e,t,n){(function(e){if(Zz.has(e))return;let t=[e];for(;t.length>0;){let e=t.pop();for(let n of ZH(e))ZJ.set(n,e),t.push(n)}Zz.add(e)})(e),n&&(ZJ.set(n,t),function(e){let t=[e];for(;t.length>0;){let e=t.pop();for(let n of(ZY(e),ZH(e)))t.push(n)}}(n));let r=t;for(;r;)ZY(r),r=ZJ.get(r)}function ZQ(e){return{year:String(e.getUTCFullYear()).padStart(4,"0"),month:String(e.getUTCMonth()+1).padStart(2,"0"),day:String(e.getUTCDate()).padStart(2,"0"),hours:String(e.getUTCHours()).padStart(2,"0"),minutes:String(e.getUTCMinutes()).padStart(2,"0"),seconds:String(e.getUTCSeconds()).padStart(2,"0"),ms:e.getUTCMilliseconds()}}function ZZ(e,t,n=/\.(\d+)\s*$/){if(t&&t.includes(".")){let r=t.match(n),i=r?r[1].length:3;return"."+String(e).padStart(3,"0").slice(0,i)}return e>0?"."+String(e).padStart(3,"0").replace(/0+$/,""):""}function Z0(e){if("Z"===e)return 0;let t="+"===e[0]?1:-1,[n,r]=e.slice(1).split(":");return t*(60*parseInt(n)+parseInt(r))}var Z1=class e{static IS_DATE_ONLY=/^\d{4}-\d{2}-\d{2}$/;static IS_TIME_ONLY=/^\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;static IS_LOCAL_DATETIME_T=/^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;static IS_LOCAL_DATETIME_SPACE=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;static IS_OFFSET_DATETIME_T=/^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})$/;static IS_OFFSET_DATETIME_SPACE=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})$/;static IS_FULL_DATE=/(\d{4})-(\d+)-(\d+)/;static IS_FULL_TIME=/(\d+):(\d+)(?::(\d+))?/;static createDateWithOriginalFormat(t,n){if(e.IS_DATE_ONLY.test(n)){if(0!==t.getUTCHours()||0!==t.getUTCMinutes()||0!==t.getUTCSeconds()||0!==t.getUTCMilliseconds()){if(t instanceof Z5)return t;let e=t.toISOString().replace("Z","");return new Z4(e=e.replace(/\.000$/,""),!1)}return new Z2(t.toISOString().split("T")[0])}if(e.IS_TIME_ONLY.test(n)){if(t instanceof Z3)return t;{let e=ZQ(t),r=ZZ(e.ms,n);return new Z3(`${e.hours}:${e.minutes}:${e.seconds}${r}`,n)}}if(e.IS_LOCAL_DATETIME_T.test(n)){let e=ZQ(t),r=ZZ(e.ms,n);return new Z4(`${e.year}-${e.month}-${e.day}T${e.hours}:${e.minutes}:${e.seconds}${r}`,!1,n)}if(e.IS_LOCAL_DATETIME_SPACE.test(n)){let e=ZQ(t),r=ZZ(e.ms,n);return new Z4(`${e.year}-${e.month}-${e.day} ${e.hours}:${e.minutes}:${e.seconds}${r}`,!0,n)}if(e.IS_OFFSET_DATETIME_T.test(n)||e.IS_OFFSET_DATETIME_SPACE.test(n)){let r=n.match(/([+-]\d{2}:\d{2}|[Zz])$/),i=r?"z"===r[1]?"Z":r[1]:"Z",s=e.IS_OFFSET_DATETIME_SPACE.test(n),a=ZQ(new Date(t.getTime()+6e4*Z0(i))),o=s?" ":"T",l=ZZ(a.ms,n,/\.(\d+)(?:[Zz]|[+-]\d{2}:\d{2})\s*$/);return new Z5(`${a.year}-${a.month}-${a.day}${o}${a.hours}:${a.minutes}:${a.seconds}${l}${i}`,s)}return t}},Z2=class extends Date{constructor(e){super(e)}toISOString(){let e=ZQ(this);return`${e.year}-${e.month}-${e.day}`}},Z3=class extends Date{originalFormat;constructor(e,t){let n=e;/:\d{2}:\d{2}/.test(e)||(n=e+":00"),super(`0000-01-01T${n}Z`),this.originalFormat=t}toISOString(){let e=ZQ(this);return`${e.hours}:${e.minutes}:${e.seconds}${ZZ(e.ms,this.originalFormat)}`}},Z4=class extends Date{useSpaceSeparator=!1;originalFormat;constructor(e,t=!1,n){let r=e;/\d{2}:\d{2}:\d{2}/.test(e)||(r=e.replace(/(\d{2}:\d{2})([\s\-+TZ]|$)/,"$1:00$2")),super(r.replace(" ","T")+"Z"),this.useSpaceSeparator=t,this.originalFormat=n||e}toISOString(){let e=ZQ(this),t=this.useSpaceSeparator?" ":"T";return`${e.year}-${e.month}-${e.day}${t}${e.hours}:${e.minutes}:${e.seconds}${ZZ(e.ms,this.originalFormat)}`}},Z5=class extends Date{useSpaceSeparator=!1;originalOffset;originalFormat;constructor(e,t=!1){let n=e;/\d{2}:\d{2}:\d{2}/.test(e)||(n=e.replace(/(\d{2}:\d{2})([\s\-+TZ]|$)/,"$1:00$2")),super(n.replace(" ","T")),this.useSpaceSeparator=t,this.originalFormat=e;let r=e.match(/([+-]\d{2}:\d{2}|[Zz])$/);r&&(this.originalOffset="z"===r[1]?"Z":r[1])}toISOString(){if(this.originalOffset){let e=ZQ(new Date(this.getTime()+6e4*Z0(this.originalOffset))),t=this.useSpaceSeparator?" ":"T",n=ZZ(e.ms,this.originalFormat,/\.(\d+)(?:[Zz]|[+-]\d{2}:\d{2})\s*$/);return`${e.year}-${e.month}-${e.day}${t}${e.hours}:${e.minutes}:${e.seconds}${n}${this.originalOffset}`}let e=super.toISOString();return this.useSpaceSeparator?e.replace("T"," "):e}};let Z8="true",Z6=/e/i,Z9=/_/g,Z7=/^[+-]?inf$/,eee=/^[+-]?nan$/,eet=/^[+-]?0x/i,een=/^[+-]?0o/i,eer=/^[+-]?0b/i;function eei(e,t,n){for(let i=0;i<e.length;i++){var r;if(!((r=e.charCodeAt(i))>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57||95===r||45===r))throw new ZL(t,{line:n.line,column:n.column+i},`Invalid bare key char '${e[i]}'`)}}function ees(e,t,n){if(e.startsWith('"""')||e.startsWith("'''"))throw new ZL(t,n,"Multiline strings cannot be keys")}function eea(e,t,n){try{return Zj(e)}catch(e){throw new ZL(t,n,e.message)}}function eeo(e,t,n,r=!0){if(e.endsWith("_")||(r?/^[+-]?_/.test(e):e.startsWith("_")))throw new ZL(t,n,"Underscore must be between digits");if(/__/.test(e))throw new ZL(t,n,"Consecutive underscores not allowed")}function eel(e,t,n,r){let i=e.replace(Z9,"");if(/^[+-]?0\d/.test(i)&&!eet.test(e)&&!een.test(e)&&!eer.test(e))throw new ZL(t,n,`Leading zeros are not allowed in ${r}`)}function eeu(e,t,n,r){if(/_[eE]/.test(e))throw new ZL(n,r,"Underscore before exponent is not allowed");if(/[eE][+-]?_/.test(e))throw new ZL(n,r,"Underscore at start of exponent is not allowed");if(/[eE][+-]?$/.test(e))throw new ZL(n,r,`Invalid float "${t}": incomplete exponent`);if(/[eE][+-]?.*\./.test(e))throw new ZL(n,r,`Invalid float "${t}": decimal point not allowed in exponent`)}function eec(e,t,n,r,i,s){if(2!==e.length)throw new ZL(i,s,`"${r}": hour must be 2 digits`);if(2!==t.length)throw new ZL(i,s,`"${r}": minute must be 2 digits`);if(n&&2!==n.length)throw new ZL(i,s,`"${r}": second must be 2 digits`)}function eep(e,t,n,r,i,s){if(void 0!==e){let t=parseInt(e,10);if(t<0||t>23)throw new ZL(i,s,`"${r}": hour must be 00-23`)}if(void 0!==t){let e=parseInt(t,10);if(e<0||e>59)throw new ZL(i,s,`"${r}": minute must be 00-59`)}if(void 0!==n){let e=parseInt(n,10);if(e<0||e>60)throw new ZL(i,s,`"${r}": second must be 00-60`)}}function eed(e,t,n,r,i,s,a){if(RegExp("^[+\\-]?"+(r[0]+r[1].toUpperCase()).replace(/([[\]])/g,"\\$1")).test(e))throw new ZL(t,n,`${s} prefix must be lowercase "${r}"`);if(RegExp("^[+\\-]?"+r+"_","i").test(e))throw new ZL(t,n,"Underscore must be between digits");let o=RegExp("^[+\\-]?"+r,"i"),l=e.replace(o,"");if(!l||"_"===l||l.startsWith("_"))throw new ZL(t,n,`Incomplete ${s.toLowerCase()} number`);let u=l.replace(/_/g,"");if(!i.test(u))throw new ZL(t,n,a??`Invalid ${s.toLowerCase()} digits`);if(/^[+-]/.test(e))throw new ZL(t,n,`${s} numbers cannot have a sign prefix`)}function*eef(e,t){let n=new ZU(function*(e){let t=e.length,n=0,r={reference:null,mixed:!1},i=[],s=(e,t)=>({start:ZA(i,e),end:ZA(i,t)});for(;n<t;){let r=e.charCodeAt(n);if((r<=31||127===r)&&9!==r&&13!==r&&10!==r)throw new ZL(e,ZA(i,n),`Control char 0x${r.toString(16).toUpperCase().padStart(2,"0")} not allowed`);if(13===r&&(n+1>=t||10!==e.charCodeAt(n+1)))throw new ZL(e,ZA(i,n),"Standalone CR; must be CRLF or LF");if(32!==r&&9!==r&&13!==r)if(10===r)a(n);else if(91===r||93===r)yield{type:"Bracket",raw:e[n],loc:s(n,n+1)};else if(123===r||125===r)yield{type:"Curly",raw:e[n],loc:s(n,n+1)};else if(61===r)yield{type:"Equal",raw:"=",loc:s(n,n+1)};else if(44===r)yield{type:"Comma",raw:",",loc:s(n,n+1)};else if(46===r)yield{type:"Dot",raw:".",loc:s(n,n+1)};else if(35===r)yield function(){let r=n;for(;n+1<t;){let t=e.charCodeAt(n+1);if(10===t||13===t)break;n++;let r=e.charCodeAt(n);if((r<=31||127===r)&&9!==r)throw new ZL(e,ZA(i,n),`Control char 0x${r.toString(16).toUpperCase().padStart(2,"0")} not allowed`)}return{type:"Comment",raw:e.slice(r,n+1),loc:s(r,n+1)}}();else{let r=ZM(e,n,"'")||ZM(e,n,'"');r?yield function(r){let o=n,l=r+r+r;for(n+=3;n<t;){if(ZM(e,n,r)){let t=3;for(;e[n+t]===r;)t++;if(t>=6)throw new ZL(e,ZA(i,n),`Invalid multiline string: ${t} consecutive ${r} characters`);if(3===t){n+=2;break}n+=t-3+2;break}let s=e.charCodeAt(n);if(13===s&&(n+1>=t||10!==e.charCodeAt(n+1)))throw new ZL(e,ZA(i,n),"Standalone CR in multiline string; must be CRLF or LF");if((s<=31||127===s)&&9!==s&&10!==s&&13!==s){let t='"'===r?"multiline basic strings":"multiline literal strings",a=`0x${s.toString(16).toUpperCase().padStart(2,"0")}`,o="";0===s?o="Null":127===s&&(o="DEL");let l=o?`${o} (${a}) not allowed in ${t}`:`Control char ${a} not allowed in ${t}`;throw new ZL(e,ZA(i,n),l)}10===s&&a(n),n++}if(n>=t){if('"'===r){let r=0,s=t-1;for(;s>=0&&"\\"===e[s];)r++,s--;if(r>0&&r%2!=0)throw new ZL(e,ZA(i,n),`Unterminated multiline ${l} (possible escape issue)`)}throw new ZL(e,ZA(i,n),`Unterminated multiline ${l}`)}return{type:"Literal",raw:e.slice(o,n+1),loc:s(o,n+1)}}(r):yield function(){let r=e[n];if(!ZD.test(r))throw new ZL(e,ZA(i,n),`Unexpected char "${r}"`);let a=n,o='"'===r,l="'"===r;for(;n<t&&!(n+1>=t);){let r=e.charCodeAt(n+1);if(!(o||l)&&(32===r||9===r||10===r||13===r||44===r||46===r||93===r||125===r||61===r||35===r))break;if(n++,!(o||l)){let t=e.charCodeAt(n);if(t<=31||127===t)throw new ZL(e,ZA(i,n),`Control char 0x${t.toString(16).toUpperCase().padStart(2,"0")} not allowed in unquoted value`)}if(o||l){let t=e.charCodeAt(n);if((t<=31||127===t)&&9!==t){let r=o?"basic strings":"literal strings",s=`0x${t.toString(16).toUpperCase().padStart(2,"0")}`,a="";10===t?a="Newline":13===t?a="Carriage return":0===t?a="Null":127===t&&(a="DEL");let l=a?`${a} (${s}) not allowed in ${r}`:`Control char ${s} not allowed in ${r}`;throw new ZL(e,ZA(i,n),l)}}let s=e[n];if('"'!==s||l||(o=!o),"'"!==s||o||(l=!l),n+1>=t)break;if(o&&"\\"===s){let t=e[n+1];('"'===t||"\\"===t)&&n++}}if(o||l)throw new ZL(e,ZA(i,a),`Expected close of string with ${o?'"':"'"}`);return{type:"Literal",raw:e.slice(a,n+1),loc:s(a,n+1)}}()}n++}function a(t){i.push(t);let n=t>0&&13===e.charCodeAt(t-1)?`\r
|
|
75
|
+
`:`
|
|
76
|
+
`;null===r.reference?r.reference=n:r.reference!==n&&(r.mixed=!0)}}(e)),r=function(e){let t=[0];for(let n=0;n<e.length;n++)10===e.charCodeAt(n)&&t.push(n+1);return n=>{let r=[n];for(;r.length>0;){let n=r.pop(),i=[ZX(t,n.loc.start),ZX(t,n.loc.end)];if(Object.defineProperty(n,"range",{configurable:!0,enumerable:!1,value:i}),ZV.set(n,e),ZW.set(n,ZH(n).slice()),Zx(n))r.push(n.value),r.push(n.key);else if(ZT(n))r.push(n.item);else if(Zg(n)||Zb(n)){r.push(n.key);let e=n.items;for(let t=e.length-1;t>=0;t--)r.push(e[t])}else if(Zk(n)){let e=n.items;for(let t=e.length-1;t>=0;t--)r.push(e[t])}}}}(e);for(;!n.next().done;)for(let t of eem(n,e))r(t),yield t}function eeh(e){return{type:"Comment",loc:e.value.loc,raw:e.value.raw}}function eem(e,t){if("Comment"===e.value.type)return[eeh(e)];if("Bracket"===e.value.type)return[function(e,t){let n,r=e.peek().done||"Bracket"!==e.peek().value.type?"Table":"TableArray",i="Table"===r;if(i&&"["!==e.value.raw)throw new ZL(t,e.value.loc.start,`Expected table opening "[", found ${e.value.raw}`);if(!i){let n=e.peek();if(n.done)throw new ZL(t,e.value.loc.start,'Expected "[[" for Array of Tables, found end of input');if("["!==e.value.raw||"["!==n.value.raw)throw new ZL(t,e.value.loc.start,`Expected "[[", found ${e.value.raw+n.value.raw}`);let r=e.value,i=n.value;if(r.loc.end.line!==i.loc.start.line||r.loc.end.column!==i.loc.start.column)throw new ZL(t,r.loc.start,'"[[" brackets must be adjacent (no whitespace)')}let s=i?{type:"TableKey",loc:e.value.loc}:{type:"TableArrayKey",loc:e.value.loc};if(e.next(),"TableArray"===r&&e.next(),e.done)throw new ZL(t,s.loc.start,"Expected table key, reached end of file");if("Bracket"===e.value.type&&"]"===e.value.raw)throw new ZL(t,e.value.loc.start,"TableArray"===r?"Array of Tables header [[]] requires a table name":"Table header [] requires a table name");let a=e.value.raw;for(ees(a,t,e.value.loc.start),a.startsWith('"')||a.startsWith("'")||eei(a,t,e.value.loc.start),n=[eea(e.value.raw,t,e.value.loc.start)],s.item={type:"Key",loc:e.value.loc,raw:e.value.raw,value:n};!e.peek().done&&"Dot"===e.peek().value.type;){e.next();let n=e.value;e.next();let r=e.value.raw;r.startsWith('"')||r.startsWith("'")||eei(r,t,e.value.loc.start);let i=" ".repeat(n.loc.start.column-s.item.loc.end.column),a=" ".repeat(e.value.loc.start.column-n.loc.end.column);s.item.loc.end=e.value.loc.end,s.item.raw+=`${i}.${a}${e.value.raw}`;try{s.item.value.push(Zj(e.value.raw))}catch(n){throw new ZL(t,e.value.loc.start,n.message)}}if(e.next(),!e.done){let n=s.loc.start.line;if(e.value.loc.start.line!==n)throw new ZL(t,e.value.loc.start,i?"Table header must be single-line":"Array of Tables header must be single-line")}if(i&&(e.done||"]"!==e.value.raw))throw new ZL(t,e.done?s.item.loc.end:e.value.loc.start,`Expected table closing "]", found ${e.done?"end of file":e.value.raw}`);if(!i&&(e.done||e.peek().done||"]"!==e.value.raw||"]"!==e.peek().value.raw))throw new ZL(t,e.done||e.peek().done?s.item.loc.end:e.value.loc.start,`Expected "]]" closing, found ${e.done||e.peek().done?"end of file":e.value.raw+e.peek().value.raw}`);if(!i){let n=e.value,r=e.peek().value;if(n.loc.end.line!==r.loc.start.line||n.loc.end.column!==r.loc.start.column)throw new ZL(t,n.loc.start,'"]]" brackets must be adjacent (no whitespace)')}if(i||e.next(),s.loc.end=e.value.loc.end,!e.peek().done){let n=e.peek().value;if(n.loc.start.line===s.loc.end.line&&"Comment"!==n.type)throw new ZL(t,n.loc.start,`Extra content after ${i?"table":"Array of Tables"} header`)}let o=[];for(;!e.peek().done&&"Bracket"!==e.peek().value.type;){e.next();let n=eem(e,t);for(let e=0;e<n.length;e++)o.push(n[e])}return{type:i?"Table":"TableArray",loc:{start:ZI(s.loc.start),end:o.length?ZI(o[o.length-1].loc.end):ZI(s.loc.end)},key:s,items:o}}(e,t)];if("Literal"===e.value.type)return function(e,t){let n,r=e.value.raw;if(r.endsWith(":"))throw new ZL(t,{line:e.value.loc.start.line,column:e.value.loc.start.column+[...r].length-1},"Use '=' to separate keys and values, not ':'");ees(r,t,e.value.loc.start),r.startsWith('"')||r.startsWith("'")||eei(r,t,e.value.loc.start),n=[eea(e.value.raw,t,e.value.loc.start)];let i={type:"Key",loc:e.value.loc,raw:e.value.raw,value:n};for(;!e.peek().done&&"Dot"===e.peek().value.type;){e.next();let n=e.value;e.next();let r=e.value.raw;ees(r,t,e.value.loc.start),r.startsWith('"')||r.startsWith("'")||eei(r,t,e.value.loc.start);let s=ZP(t,i.loc.end),a=ZP(t,n.loc.end),o=s.slice(i.loc.end.column,n.loc.start.column),l=a.slice(n.loc.end.column,e.value.loc.start.column);i.loc.end=e.value.loc.end,i.raw+=`${o}.${l}${e.value.raw}`,i.value.push(eea(e.value.raw,t,e.value.loc.start))}if(e.next(),!e.done&&e.value.loc.start.line!==i.loc.end.line)throw new ZL(t,e.value.loc.start,'"=" must be on same line as key');if(e.done||"Equal"!==e.value.type)throw e.done||":"!==e.value.raw?new ZL(t,e.done?i.loc.end:e.value.loc.start,'Expected "=" for key-value'):new ZL(t,e.value.loc.start,"Use '=' to separate keys and values, not ':'");let s=e.value.loc.start.column,a=e.value.loc.start.line;if(e.next(),e.done)throw new ZL(t,i.loc.start,"Expected value, reached EOF");if(e.value.loc.start.line!==a)throw new ZL(t,e.value.loc.start,"Value must be on same line as '='");if(e.done)throw new ZL(t,i.loc.start,"Expected value for key-value");let o=function e(t,n){if("Literal"===t.value.type){let e,r=t.value.raw;return'"'===r[0]||"'"===r[0]?[(e=eea(t.value.raw,n,t.value.loc.start),{type:"String",loc:t.value.loc,raw:t.value.raw,value:e})]:r===Z8||"false"===r?[{type:"Boolean",loc:t.value.loc,value:t.value.raw===Z8}]:/^\d/.test(r)&&(/^\d{1,}-\d{1,}/.test(r)||/^\d{1,}:\d{1,}/.test(r))?[function(e,t){let n=e.value.loc,r=e.value.raw,i;if(!e.peek().done&&"Literal"===e.peek().value.type&&Z1.IS_FULL_DATE.test(r)&&/^\d/.test(e.peek().value.raw)&&Z1.IS_FULL_TIME.test(e.peek().value.raw)){let t=n.start;e.next(),n={start:t,end:e.value.loc.end},r+=` ${e.value.raw}`}if(!e.peek().done&&"Dot"===e.peek().value.type){let i=n.start;if(e.next(),e.peek().done||"Literal"!==e.peek().value.type)throw new ZL(t,e.value.loc.end,"Expected fractional value for DateTime");e.next(),n={start:i,end:e.value.loc.end},r+=`.${e.value.raw}`}if(function(e,t,n){if(/\.([Zz]|[+-])/.test(e))throw new ZL(t,n,`"${e}": fractional seconds needs digit after dot`);if(/[+-]$/.test(e))throw new ZL(t,n,`"${e}": offset needs HH:MM`);let r=/\d{2}:\d{2}/.test(e)?e.match(/([+-])(\d+)(:?)(\d*)$/):null;if(r){let e=r[0],i=r[2],s=r[3],a=r[4];if(":"!==s)throw new ZL(t,n,`Offset "${e}": missing colon separator`);if(2!==i.length)throw new ZL(t,n,`Offset "${e}": hour must be 2 digits`);if(!a||0===a.length)throw new ZL(t,n,`Offset "${e}": minute required`);if(2!==a.length)throw new ZL(t,n,`Offset "${e}": minute must be 2 digits`);let o=parseInt(i,10);if(o<0||o>23)throw new ZL(t,n,`Offset "${e}": hour must be 00-23`);let l=parseInt(a,10);if(l<0||l>59)throw new ZL(t,n,`Offset "${e}": minute must be 00-59`)}if(!/^\d{4}-\d{2}-\d{2}(?:[Tt ]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})?)?$/.test(e)&&!/^\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/.test(e))throw/^\d{4}-\d{2}-\d{2}T$/.test(e)?new ZL(t,n,`"${e}": 'T' requires time component`):/^\d{4}-\d{2}-\d{2}[a-su-zA-SU-Z]/.test(e)?new ZL(t,n,`Invalid date "${e}": unexpected character after date`):/^\d{4}-\d{2}-\d{2}\d{2}:\d{2}/.test(e)?new ZL(t,n,`"${e}": missing 'T' or space separator`):new ZL(t,n,`Invalid datetime "${e}"`);let i=e.match(/^(\d+)-/);if(i&&4!==i[1].length)throw new ZL(t,n,`"${e}": year must be 4 digits`);let s=e.match(/^(\d+)-(\d+)-(\d+)/);if(s){let[,,r,i]=s;if(2!==r.length)throw new ZL(t,n,`"${e}": month must be 2 digits`);if(2!==i.length)throw new ZL(t,n,`"${e}": day must be 2 digits`)}let a=e.match(/[T ](\d+):(\d+)(?::(\d+))?/);if(a){let[,r,i,s]=a;eec(r,i,s,e,t,n)}let o=e.match(/^(\d+):(\d+)(?::(\d+))?/);if(o&&!s){let[,r,i,s]=o;eec(r,i,s,e,t,n)}let l=e.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?/),u=e.match(/^(\d{2}):(\d{2})(?::(\d{2}))?/);if(l){var c;let[,r,i,s,a,o,u]=l,p=parseInt(i,10);if(p<1||p>12)throw new ZL(t,n,`"${e}": month must be 01-12`);let d=parseInt(s,10);if(d<1||d>31)throw new ZL(t,n,`"${e}": day must be 01-31`);if(d>(c=parseInt(r,10),2===p?c%4==0&&c%100!=0||c%400==0?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][p-1]))throw new ZL(t,n,`"${e}": day ${s} invalid for ${r}-${i}`);eep(a,o,u,e,t,n)}else if(u){let[,r,i,s]=u;eep(r,i,s,e,t,n)}}(r,t,n.start),Z1.IS_FULL_DATE.test(r))i=Z1.IS_DATE_ONLY.test(r)?new Z2(r):Z1.IS_LOCAL_DATETIME_T.test(r)?new Z4(r,!1):Z1.IS_LOCAL_DATETIME_SPACE.test(r)?new Z4(r,!0):Z1.IS_OFFSET_DATETIME_T.test(r)?new Z5(r,!1):Z1.IS_OFFSET_DATETIME_SPACE.test(r)?new Z5(r,!0):new Date(r.replace(" ","T"));else if(Z1.IS_TIME_ONLY.test(r))i=new Z3(r,r);else{let[e]=new Date().toISOString().split("T");i=new Date(`${e}T${r}`)}return{type:"DateTime",loc:n,raw:r,value:i}}(t,n)]:!t.peek().done&&"Dot"===t.peek().value.type||Z7.test(r)||eee.test(r)||Z6.test(r)&&!eet.test(r)?[function(e,t){let n=e.value.loc,r=e.value.raw,i;if(Z7.test(r))i=r.startsWith("-")?-1/0:1/0;else if(eee.test(r)){let e=new Float64Array(1),t=new DataView(e.buffer);r.startsWith("-")?(t.setUint32(0,0,!0),t.setUint32(4,0xfff80000,!0)):(t.setUint32(0,0,!0),t.setUint32(4,0x7ff80000,!0)),i=e[0];let s=r.startsWith("+")?"+":r.startsWith("-")?"-":void 0;return{type:"Float",loc:n,raw:r,value:i,nanSign:s}}else if(e.peek().done||"Dot"!==e.peek().value.type){if(eeo(r,t,n.start),eeu(r,r,t,n.start),!e.peek().done&&"Dot"===e.peek().value.type)throw new ZL(t,e.peek().value.loc.start,`Float "${r}.": dot after exponent`);eel(r,t,n.start,"the integer part of a float"),i=Number(r.replace(Z9,""))}else{let s=n.start;{if(Z6.test(r)&&!eet.test(r))throw new ZL(t,n.start,`Float "${r}": dot after exponent`);let e=r;eel(e,t,n.start,"the integer part of a float");let i=e.replace(/^[+-]/,"");if(""===i||"_"===i)throw new ZL(t,n.start,"Float: digit required before dot");eeo(e,t,n.start)}if(e.next(),e.peek().done||"Literal"!==e.peek().value.type)throw new ZL(t,e.value.loc.end,"Expected fraction value for Float");e.next(),r+=`.${e.value.raw}`,n={start:s,end:e.value.loc.end};{let n=e.value.raw;if(!/^\d/.test(n))throw new ZL(t,e.value.loc.start,`Float: fraction must start with digit, found "${n}"`);eeo(n,t,e.value.loc.start,!1),eeu(n,r,t,e.value.loc.start)}i=Number(r.replace(Z9,""))}if(Number.isNaN(i)&&!eee.test(r))throw new ZL(t,n.start,`Invalid float "${r}"`);return{type:"Float",loc:n,raw:r,value:i}}(t,n)]:[function(e,t){let n=e.value.raw,r=e.value.loc;if(/^\d{1,}-\d{1,}/.test(n)||/^\d{1,}:\d{1,}/.test(n)||/^\d{6}-\d{2}$/.test(n))throw new ZL(t,r.start,`Invalid integer "${n}"`);if("-0"===n||"+0"===n)return{type:"Integer",loc:r,raw:n,value:0};if(/^[+-]{2,}/.test(n))throw new ZL(t,r.start,"Double sign is not allowed in integers");eel(n,t,r.start,"decimal integers"),eeo(n,t,r.start),function(e,t,n){if(eet.test(e)||een.test(e)||eer.test(e))return;let r=e.replace(/^[+-]/,"").replace(/_/g,"");if(!/^[0-9]+$/.test(r))throw new ZL(t,n,`Invalid integer "${e}"`)}(n,t,r.start);let i=10;eet.test(n)?(i=16,eed(n,t,r.start,"0x",/^[0-9a-fA-F]+$/,"Hexadecimal")):een.test(n)?(i=8,eed(n,t,r.start,"0o",/^[0-7]+$/,"Octal","Invalid octal digits (must be 0-7)")):eer.test(n)&&(i=2,eed(n,t,r.start,"0b",/^[01]+$/,"Binary","Invalid binary digits (must be 0 or 1)"));let s=parseInt(n.replace(Z9,"").replace(een,"").replace(eer,""),i);if(Number.isNaN(s))throw new ZL(t,r.start,`Invalid integer "${n}"`);return{type:"Integer",loc:r,raw:n,value:s}}(t,n)]}if("Curly"===t.value.type){let[e,r]=function(e,t){if("{"!==e.value.raw)throw new ZL(t,e.value.loc.start,'Expected "{" for inline table');let n={type:"InlineTable",loc:e.value.loc,items:[]},r=[];for(e.next();!e.done&&("Curly"!==e.value.type||"}"!==e.value.raw);){if("Comment"===e.value.type){r.push(eeh(e)),e.next();continue}if("Comma"===e.value.type){let r=n.items[n.items.length-1];if(!r)throw new ZL(t,e.value.loc.start,"Leading comma in inline table");if(r.comma)throw new ZL(t,e.value.loc.start,"Consecutive commas in inline table");r.comma=!0,r.loc.end=e.value.loc.start,e.next();continue}let i=n.items[n.items.length-1];if(i&&!i.comma)throw new ZL(t,e.value.loc.start,"Missing comma between inline table items");let s=eem(e,t),a=s[0];if("KeyValue"===a.type){n.items.push({type:"InlineItem",loc:Z_(a.loc),item:a,comma:!1});for(let e=1;e<s.length;e++)r.push(s[e])}e.next()}if(e.done||"Curly"!==e.value.type||"}"!==e.value.raw)throw new ZL(t,e.done?n.loc.start:e.value.loc.start,'Expected "}"');n.loc.end=e.value.loc.end;{let e=eey(n.items);void 0!==e&&ZK.set(n,e)}return[n,r]}(t,n);return[e,...r]}if("Bracket"===t.value.type){let[r,i]=function(t,n){if("["!==t.value.raw)throw new ZL(n,t.value.loc.start,'Expected "[" for inline array');let r={type:"InlineArray",loc:t.value.loc,items:[]},i=[];for(t.next();!t.done&&("Bracket"!==t.value.type||"]"!==t.value.raw);){if("Comma"===t.value.type){let e=r.items[r.items.length-1];if(!e)throw new ZL(n,t.value.loc.start,"Leading comma in array");if(e.comma)throw new ZL(n,t.value.loc.start,"Consecutive commas in array");e.comma=!0,e.loc.end=t.value.loc.start}else if("Comment"===t.value.type)i.push(eeh(t));else{let s=r.items[r.items.length-1];if(s&&!s.comma)throw new ZL(n,t.value.loc.start,"Missing comma between array elements");let a=e(t,n),o=a[0];r.items.push({type:"InlineItem",loc:Z_(o.loc),item:o,comma:!1});for(let e=1;e<a.length;e++)i.push(a[e])}t.next()}if(t.done||"Bracket"!==t.value.type||"]"!==t.value.raw)throw new ZL(n,t.done?r.loc.start:t.value.loc.start,'Expected "]"');r.loc.end=t.value.loc.end;{let e=eey(r.items);void 0!==e&&ZK.set(r,e)}return[r,i]}(t,n);return[r,...i]}throw"Dot"===t.value.type?new ZL(n,t.value.loc.start,"Number cannot start with a dot"):new ZL(n,t.value.loc.start,"Unrecognized token type")}(e,t),l=o[0];if(!e.peek().done){let n=e.peek().value;if("Dot"===n.type&&n.loc.start.line===l.loc.end.line&&("Float"===l.type||"Integer"===l.type))throw new ZL(t,n.loc.start,"Invalid number: multiple decimal points not allowed");if(("Literal"===n.type||"Bracket"===n.type)&&n.loc.start.line===l.loc.end.line)throw new ZL(t,n.loc.start,"Key/value pairs must be separated by a newline")}return o[0]={type:"KeyValue",key:i,value:l,loc:{start:ZI(i.loc.start),end:ZI(l.loc.end)},equals:s},o}(e,t);throw"Equal"===e.value.type?new ZL(t,e.value.loc.start,"Missing key before '='"):new ZL(t,e.value.loc.start,`Unexpected token "${e.value.type}"`)}function eey(e){for(let t=1;t<e.length;t++){let n=e[t-1],r=e[t];if(n.loc.end.line===r.loc.start.line){let e=r.loc.start.column-n.loc.end.column;if(e>=1)return e}}}function eeg(e){return e[e.length-1]}function eeb(){return Object.create(null)}function eex(e){return"number"==typeof e&&e%1==0&&isFinite(e)&&!Object.is(e,-0)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff}function eeS(e){return"[object Date]"===Object.prototype.toString.call(e)}let eeT=new Set(["Temporal.PlainDate","Temporal.PlainTime","Temporal.PlainDateTime","Temporal.ZonedDateTime","PlainDate","PlainTime","PlainDateTime","ZonedDateTime"]);function eev(e){var t;return"object"==typeof e&&!!e&&eeT.has(null==(t=e.constructor)?void 0:t.name)&&"function"==typeof e.equals}function eeE(e){var t;let n=(null==(t=e.constructor)?void 0:t.name)??"";if("Temporal.ZonedDateTime"===n||"ZonedDateTime"===n){let t=e.toString(),n=t.match(/\[(.+)\]$/);if(n&&!/^[+-]\d{2}:\d{2}$/.test(n[1]))throw Error(`ZonedDateTime with IANA timezone "${t}" cannot be represented in TOML. TOML only supports offset-based timezones (+05:30, Z).`);return t.replace(/\[.*\]$/,"").replace(/(\+00:00)$/,"Z")}let r=e.toString();if(/\[.*\]/.test(r))throw Error(`Temporal value contains unsupported annotation: "${r}". TOML only supports ISO 8601 calendar.`);return r}function eek(e){return null!=e&&"function"==typeof e[Symbol.iterator]}let eew="function"==typeof String.prototype.isWellFormed?String.prototype.isWellFormed:void 0;function eeA(e,t){if(void 0!==eew&&eew.call(e))return;let n=function(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!(n<55296||n>57343)){if(n<=56319){let n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){t++;continue}}return{index:t,code:n}}}}(e);if(!n)return;let r=n.code.toString(16).toUpperCase().padStart(4,"0");throw Error(`${t} contains a lone surrogate (U+${r}) at index ${n.index}. Unpaired surrogates are not Unicode scalar values and cannot be encoded as TOML.`)}function eeP(e,t){function n(e,t){for(let n of e)r(n,t)}function r(e,i){let s=t[e.type];switch(s&&"function"==typeof s&&s(e,i),s&&s.enter&&s.enter(e,i),e.type){case"Document":case"InlineArray":case"InlineTable":n(e.items,e);break;case"Table":case"TableArray":r(e.key,e),n(e.items,e);break;case"TableKey":case"TableArrayKey":case"InlineItem":r(e.item,e);break;case"KeyValue":r(e.key,e),r(e.value,e);break;case"Key":case"String":case"Integer":case"Float":case"Boolean":case"DateTime":case"Comment":break;default:throw Error(`Unrecognized node type "${e.type}"`)}s&&s.exit&&s.exit(e,i)}eek(e)?n(e,null):r(e,null)}function eeC(e){return 65279===e.charCodeAt(0)}function eeI(e){return eeC(e)?e.slice(1):e}let ee_="auto",eeN="auto";function eeL(e){let t=0;for(;t<e.length&&" "===e[t];)t++;return t}let eeO=new Map([[`
|
|
77
|
+
`,`
|
|
78
|
+
`],[`\r
|
|
79
|
+
`,`\r
|
|
80
|
+
`],["\\n",`
|
|
81
|
+
`],["\\r\\n",`\r
|
|
82
|
+
`],["LF",`
|
|
83
|
+
`],["CRLF",`\r
|
|
84
|
+
`],["UNIX",`
|
|
85
|
+
`],["DOS",`\r
|
|
86
|
+
`]]);function eeD(e){let t=eeO.get(e)??eeO.get(e.toUpperCase());if(void 0===t)throw TypeError("Invalid newLine value: expected LF or CRLF");return t}var eeM=class e{newLine;trailingNewline;trailingComma;bracketSpacing;leadingBom;inlineTableStart;truncateZeroTimeInDates;useTabsForIndentation;indentWidth;minimumDecimals;updateOrder;multilineTable;multilineArray;constructor(e,t,n,r,i,s,a,o,l,u,c,p,d){this.newLine=null==e?`
|
|
87
|
+
`:eeD(e),this.trailingNewline=t??1,this.trailingComma=n??!1,this.bracketSpacing=r??!0,this.inlineTableStart=i??1,this.truncateZeroTimeInDates=s??!1,this.useTabsForIndentation=a??!1,this.indentWidth=this.useTabsForIndentation?1:c??2,this.minimumDecimals=o??0,this.leadingBom=l??!1,this.updateOrder=u??!1,this.multilineTable=p??"auto",this.multilineArray=d??"auto"}static default(){return new e(`
|
|
88
|
+
`,1,!1,!0,1,!1,!1,0,!1,!1,2,ee_,eeN)}static autoDetectFormat(t){return e.autoDetectFormatWithCst(t)}static autoDetectFormatWithCst(t,n){let r,i=e.default();i.leadingBom=eeC(t);let s=eeI(t),a=[];i.newLine=(r=s.indexOf(`
|
|
89
|
+
`))>0&&s[r-1]===`\r`?`\r
|
|
90
|
+
`:`
|
|
91
|
+
`,i.trailingNewline=function(e){let t=0,n=e.length;for(;n>0&&e[n-1]===`
|
|
92
|
+
`;)t++,--n>0&&e[n-1]===`\r`&&n--;return t}(s);try{a=Array.isArray(n)?n:Array.from(n??eef(s)),i.trailingComma=function(e){for(let t of e){let e=function e(t){if(!t||"object"!=typeof t)return null;if("InlineArray"===t.type&&t.items&&Array.isArray(t.items)||"InlineTable"===t.type&&t.items&&Array.isArray(t.items))return function(e){if(0===e.length)return null;let t=e[e.length-1];return!!t&&"object"==typeof t&&"comma"in t&&!0===t.comma}(t.items);if("KeyValue"===t.type&&t.value)return e(t.value);if(t.items&&Array.isArray(t.items))for(let n of t.items){let t=e(n);if(null!==t)return t}return null}(t);if(null!==e)return e}return!1}(a),i.bracketSpacing=function(e,t){for(let n of t){let t=function e(t,n){if(!t||"object"!=typeof t)return null;if(("InlineArray"===t.type||"InlineTable"===t.type)&&t.loc){let e=function(e,t){if(!e||!e.start||!e.end)return null;let n=t.split(/\r?\n/),r=e.start.line-1,i=e.end.line-1,s=e.start.column,a=e.end.column,o="";if(r===i){var l;o=(null==(l=n[r])?void 0:l.substring(s,a+1))||""}else{n[r]&&(o+=n[r].substring(s));for(let e=r+1;e<i;e++)o+=`
|
|
93
|
+
`+(n[e]||"");n[i]&&(o+=`
|
|
94
|
+
`+n[i].substring(0,a+1))}let u=o.match(/^\[(\s*)/),c=o.match(/^\{(\s*)/);return u?u[1].length>0:c?c[1].length>0:null}(t.loc,n);if(null!==e)return e}if(t.items&&Array.isArray(t.items))for(let r of t.items){let t=e(r,n);if(null!==t)return t;if(r.item){let t=e(r.item,n);if(null!==t)return t}}for(let r of["value","key","item"])if(t[r]){let i=e(t[r],n);if(null!==i)return i}return null}(n,e);if(null!==t)return t}return!0}(s,a)}catch{i.trailingComma=!1,i.bracketSpacing=!0}return i.useTabsForIndentation=function(e){let t=e.split(/\r?\n/),n=0,r=0;for(let e of t)if(0!==e.length&&(" "===e[0]?n++:" "===e[0]&&r++,n+r>=5))break;return n>0&&n>=r}(s),i.indentWidth=i.useTabsForIndentation?1:function(e,t){let n=e.split(/\r?\n/),r=[],i=new Set(["Table","TableArray","InlineTable","InlineArray"]),s=new Set(["Table","TableArray","InlineTable","InlineArray","KeyValue","InlineItem","Comment"]),a=(e,t)=>{var o,l,u;if(!e||"object"!=typeof e)return;if(void 0!==t&&s.has(e.type)&&(null==(o=e.loc)||null==(o=o.start)?void 0:o.line)>t){let t=eeL(n[e.loc.start.line-1]??"");t>0&&r.push(t)}let c=i.has(e.type)&&(null==(l=e.loc)||null==(l=l.end)?void 0:l.line)>(null==(u=e.loc)||null==(u=u.start)?void 0:u.line)?e.loc.start.line:t;if(Array.isArray(e.items))for(let t of e.items)a(t,c);e.item&&a(e.item,c),e.value&&a(e.value,c)};for(let e of Array.isArray(t)?t:Array.from(t??[]))a(e);if(r.length>0)return Math.min(...r);let o=n.filter(e=>e.trim().length>0&&!e.trimStart().startsWith("#")).map(eeL).filter(e=>e>0);return o.length>0?Math.min(...o):2}(s,a),i.inlineTableStart=1,i.truncateZeroTimeInDates=!1,i.minimumDecimals=0,i.updateOrder=!1,i.multilineTable=ee_,i.multilineArray=eeN,i}static autoDetectFormatWithAst(t,n){return e.autoDetectFormatWithCst(t,n)}};let eeF=new WeakMap,eeB=new WeakSet,eej=new WeakSet;function eeR(e,t,n,r){let i="array"===e?r.multilineArray:r.multilineTable;return"boolean"==typeof i?i:"number"==typeof i?t>=i:"parent"===i&&n}function ee$(e,t){eeF.set(e,t),t&&0===e.items.length&&(e.loc.end.line=e.loc.start.line+1,e.loc.end.column=e.loc.start.column+1)}function eeU(e){return eeF.get(e)}let eeq=new WeakSet,eeK=new WeakSet,eeV=new WeakMap,eeJ=new WeakMap,eez=new WeakMap,eeW=new WeakSet,eeX=new WeakSet,eeH=new WeakMap,eeY=e=>(eeH.has(e)||eeH.set(e,new WeakMap),eeH.get(e)),eeG=new WeakMap;function eeQ(e){return eeG.has(e)||eeG.set(e,new WeakMap),eeG.get(e)}function eeZ(e,t,n,r,i,s,a,o=!1){let l,u;if(!Zk(t))throw Error(`Unsupported parent type "${t.type}" for insert`);r=null!=r&&"number"==typeof r?r:t.items.length,ZS(t)||Zv(t)?{shift:l,offset:u}=function(e,t,n,r){if(!ZT(t))throw Error(`Incompatible child type "${t.type}"`);let i=ee1(e),s=null==n?eeg(e.items):e.items[n-1],a=null==n||n===e.items.length,o=null==n?void 0:e.items[n];e.items.splice(n,0,t);let l=!!s,u=!a;return l&&(s.comma=!0),u&&(t.comma=!0),function(e,t,n,r={}){let{useNewLine:i=!1,skipCommaSpace:s=2,skipBracketSpace:a=1,hasCommaHandling:o=!1,isLastElement:l=!1,hasSeparatingCommaBefore:u=!1,hasSeparatingCommaAfter:c=!1,hasTrailingComma:p=!1,indentWidth:d=2}=r,f=n>0?e.items[n-1]:void 0,h=f?{line:f.loc.end.line,column:i?ZE(f)?e.loc.start.column:f.loc.start.column:f.loc.end.column}:ZI(e.loc.start);if(!f&&i){let t=e.items.find((e,t)=>t>n&&!ZE(e));t?h.column=t.loc.start.column:e.loc.end.line>e.loc.start.line&&(h.column=(ZS(e)||Zv(e)?eeJ.get(e):void 0)??e.loc.end.column-1+d)}let m=0;if(i)m=1;else{let e=u||!o&&!!f;e&&o?h.column+=s:(e||o&&!f)&&(h.column+=a)}h.line+=m;let y={lines:h.line-t.loc.start.line,columns:h.column-t.loc.start.column},g=Zw(t.loc);if(!o)return{shift:y,offset:{lines:g.lines+(m-1),columns:g.columns}};let b=0;u&&p&&!c&&l&&(b=-1);let x=g.columns+(u||c?s:0)+(p?1+b:0);return i&&l&&f&&e.loc.end.line===f.loc.end.line&&(x=g.columns-(f.loc.end.column-f.loc.start.column)),{shift:y,offset:{lines:g.lines+(m-1),columns:x}}}(e,t,n,{useNewLine:ee9(e,t)&&!(s&&o&&o.loc.start.line===s.loc.end.line&&o.loc.start.column>=s.loc.end.column)&&!(!0!==eeU(e)&&Zv(e)&&!o&&s&&s.loc.end.line===e.loc.end.line),skipCommaSpace:i,hasCommaHandling:!0,isLastElement:a,hasSeparatingCommaBefore:l,hasSeparatingCommaAfter:u,hasTrailingComma:a&&!0===t.comma,indentWidth:r})}(t,n,r,eeV.get(e)??2):{shift:l,offset:u}=function(e,t,n,r){let i;if(!(Zx(n)||Zg(n)||Zb(n)||ZE(n)))throw Error(`Incompatible child type "${n.type}"`);let s=t.items[r-1],a=Zy(t)&&!t.items.length,o=Zy(t)&&!a&&void 0===s;if(t.items.splice(r,0,n),void 0!==s)if(eeK.has(e))i=s;else{let e=!1;for(let n=0;n<r;n++)if(ZE(t.items[n])){e=!0;break}if(e){let e=-1,n=-1;for(let s=0;s<r;s++){let r=t.items[s],a=r.loc.end;(a.line>e||a.line===e&&a.column>n)&&(e=a.line,n=a.column,i=r)}}else i=s}let l=i?{line:i.loc.end.line,column:ZE(i)?t.loc.start.column:i.loc.start.column}:ZI(t.loc.start),u=Zg(n)||Zb(n),c=0;a||o||(c=u?2:1),l.line+=c;let p={lines:l.line-n.loc.start.line,columns:l.column-n.loc.start.column},d=Zw(n.loc),f=!eeK.has(e)&&void 0===s&&(Zg(t)||Zb(t)||Zy(t))&&eez.has(t),h=f&&!eeW.has(t);f&&(eez.delete(t),eeW.delete(t));let m=f&&!h,y=0;if(m){let n=Zg(t)||Zb(t)?eeQ(e).get(t.key):eeY(e).get(t);y=n?-n.lines:1}let g=h||m?c-2:c-1,b={lines:o?d.lines+1:d.lines+g,columns:d.columns};return{shift:{lines:p.lines+y,columns:p.columns},offset:b}}(e,t,n,r),ee6(n,l,{first_line_only:o});let c=t.items[r-1],p=c&&eeQ(e).get(c);if(p&&(u.lines+=p.lines,u.columns+=p.columns,eeQ(e).delete(c)),(Zv(t)||ZS(t))&&0!==u.lines&&Zk(e)&&e!==t){let r=n.loc.start.line,i=e.items,s=ee0(t,i);for(let e=0;e<i.length;e++){let t=i[e];if(!ZE(t))continue;let n=t.loc.start.line;n<s.loc.start.line||n>s.loc.end.line||n<r&&(t.loc.start.line-=u.lines,t.loc.end.line-=u.lines)}}eeQ(e).set(n,u),ZG(e,t,n),eeq.add(e)}function ee0(e,t){for(let n of t){if(!Zx(n))continue;let t=n.value;if(!ZS(t)&&!Zv(t))continue;let r=!1,i=t=>{t===e&&(r=!0)};if(eeP(t,{InlineArray:i,InlineTable:i}),r)return t}return e}function ee1(e){return ZK.get(e)??2}function ee2(e,t,n,r){var i;let s,a;if(!Zk(t))throw Error(`Unsupported parent type "${t.type}" for remove`);ZG(e,t);let o=t.items.indexOf(n);if(o<0){if((o=t.items.findIndex(e=>{var t;return("TableKey"===(t=e).type||"TableArrayKey"===t.type||ZT(t))&&e.item===n}))<0)throw Error("Node not found in parent for removal");n=t.items[o]}let l=t.items[o-1],u=t.items[o+1];t.items.splice(o,1);let c=Zw(n.loc);u&&ZE(u)&&u.loc.start.line===n.loc.end.line&&(c=Zw({start:n.loc.start,end:u.loc.end}),u=t.items[o+1],t.items.splice(o,1));let p=l&&ZT(l)||u&&ZT(u),d=l?eeQ(e).get(l):void 0,f=l&&l.loc.end.line===n.loc.start.line+((null==d?void 0:d.lines)??0),h=u&&u.loc.start.line===n.loc.end.line,m=p&&(f||h),y={lines:-(c.lines-!!m),columns:m?-c.columns:0};if((Zy(t)||Zg(t)||Zb(t))&&u&&!m&&u.loc.start.line>n.loc.end.line){let r=Zg(n)||Zb(n),i=Zg(u)||Zb(u),s=-1;for(let e=0;e<o;e++){let n=t.items[e].loc.end.line;n>s&&(s=n)}let a=l?eeQ(e).get(l):void 0,c=eeQ(e).get(n),p=l?r?n.loc.start.line+((null==a?void 0:a.lines)??0)-s-1:0:i?u.loc.start.line+((null==c?void 0:c.lines)??0)-n.loc.end.line-1:0;p>0&&(y.lines-=p)}let g=(Zv(t)||ZS(t))&&t.loc.end.line>t.loc.start.line,b=g&&n.loc.start.line===t.loc.start.line;g&&!b&&void 0===l&&void 0===u&&n.loc.start.line>t.loc.start.line&&t.loc.end.line>n.loc.end.line&&eej.add(t),void 0===l&&void 0===u&&(!g||b)&&(y.lines=0,y.columns=0,(Zv(t)||ZS(t))&&eeX.add(t),(Zg(t)||Zb(t)||Zy(t))&&eez.set(t,!0)),(void 0!==l||void 0!==u)&&(Zg(t)||Zb(t)||Zy(t))&&eeW.add(t);let x=ZS(t)||Zv(t)?ee1(t):2;if(p&&f&&(y.columns-=x),p&&!l&&u&&(ee9(t)||(y.columns-=x)),p&&l&&!u&&(l.comma=!!n.comma,f)){let t=l?(null==(i=eeQ(e).get(l))?void 0:i.columns)??0:0;y.columns=l.loc.end.column-n.loc.end.column-t}l?(s=l,a=eeQ(e)):(Zg(t)||Zb(t))&&"key"in t?(s=t.key,a=eeQ(e)):(s=t,a=eeY(e));let S=eeQ(e),T=a.get(s);T&&(y.lines+=T.lines,y.columns+=T.columns);let v=S.get(n);if(v&&(y.lines+=v.lines,m&&(y.columns+=v.columns)),a.set(s,y),eeq.add(e),g&&Zk(e)&&e!==t){let r=n.loc.start.line,i=e.items,s=ee0(t,i),a=[];for(let e=0;e<i.length;e++){let n=i[e];if(!ZE(n))continue;let o=n.loc.start.line;o<s.loc.start.line||o>s.loc.end.line||(o===r&&(o<t.loc.end.line||n.loc.start.column<t.loc.end.column)?a.push(e):0!==y.lines&&o<r&&(n.loc.start.line-=y.lines,n.loc.end.line-=y.lines))}for(let e=a.length-1;e>=0;e--)i.splice(a[e],1)}}function ee3(e){let t=e.loc.start.line,n=e.loc.start.column;if("key"in e){let r=e.key.loc.end;(r.line>t||r.line===t&&r.column>n)&&(t=r.line,n=r.column)}for(let r=0;r<e.items.length;r++){let i=e.items[r].loc.end;(i.line>t||i.line===t&&i.column>n)&&(t=i.line,n=i.column)}e.loc.end={line:t,column:n}}function ee4(e,t,n=!0){if(!n||!t.items.length)return;ee7({lines:0,columns:1},eeY(e),t);let r=eeg(t.items);ee7({lines:0,columns:1},eeQ(e),r),eeq.add(e)}function ee5(e,t,n=!1){if(!n||!t.items.length)return;let r=eeg(t.items);r.comma=!0,ee7({lines:0,columns:1},eeQ(e),r),eeq.add(e)}function ee8(e){if(!eeq.has(e))return;let t=eeY(e),n=eeQ(e),r=0,i={};function s(e){e.loc.start.line+=r;let n=i[e.loc.start.line]||0;e.loc.start.column+=n;let s=t.get(e);s&&(r+=s.lines,i[e.loc.start.line]=(i[e.loc.start.line]||0)+s.columns)}function a(e){e.loc.end.line+=r;let t=i[e.loc.end.line]||0;e.loc.end.column+=t;let s=n.get(e);s&&(r+=s.lines,i[e.loc.end.line]=(i[e.loc.end.line]||0)+s.columns)}function o(e){e.loc.start.line+=r,e.loc.start.column+=i[e.loc.start.line]||0}function l(e){e.loc.end.line+=r,e.loc.end.column+=i[e.loc.end.line]||0}(function e(u){switch(u.type){case"Document":s(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u),ee3(u);break;case"Table":s(u),e(u.key);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u),ee3(u);break;case"TableArray":s(u),e(u.key);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u),ee3(u);break;case"TableKey":case"TableArrayKey":case"InlineItem":s(u),e(u.item),a(u);break;case"KeyValue":{let t=u.loc.start.line+r,o=n.get(u.key);u.equals+=(i[t]||0)+(o?o.columns:0),s(u),e(u.key),e(u.value),a(u);break}case"InlineArray":if(!t.get(u)&&!n.get(u)){o(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);l(u);break}s(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u);break;case"InlineTable":if(!t.get(u)&&!n.get(u)){o(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);l(u);break}s(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u);break;case"Key":case"String":case"Integer":case"Float":case"Boolean":case"DateTime":case"Comment":s(u),a(u);break;default:throw Error(`Unrecognized node type "${u.type}"`)}})(e),eeq.delete(e),eeH.delete(e),eeG.delete(e)}function ee6(e,t,n={}){let{lines:r,columns:i}=t;if(0===r&&0===i)return e;let{first_line_only:s=!1,shift_generated_multiline_end:a=!1}=n,o=e.loc.start.line,l=e.type;if("Key"===l||"String"===l||"Integer"===l||"Float"===l||"Boolean"===l||"DateTime"===l||"Comment"===l)return s&&e.loc.start.line!==o||(e.loc.start.column+=i,e.loc.end.line===e.loc.start.line&&(e.loc.end.column+=i)),e.loc.start.line+=r,e.loc.end.line+=r,e;if("KeyValue"===l){let t=e.value.type;if("String"===t||"Integer"===t||"Float"===t||"Boolean"===t||"DateTime"===t){let t=!s||e.loc.start.line===o;t&&(e.loc.start.column+=i,e.loc.end.line===e.loc.start.line&&(e.loc.end.column+=i)),e.loc.start.line+=r,e.loc.end.line+=r,t&&(e.equals+=i);let n=e.key;s&&n.loc.start.line!==o||(n.loc.start.column+=i,n.loc.end.column+=i),n.loc.start.line+=r,n.loc.end.line+=r;let a=e.value;return s&&a.loc.start.line!==o||(a.loc.start.column+=i,a.loc.end.line===a.loc.start.line&&(a.loc.end.column+=i)),a.loc.start.line+=r,a.loc.end.line+=r,e}}let u=e=>{if(!s||e.loc.start.line===o){var t,n;e.loc.start.column+=i;let r=(!s||a)&&e.loc.end.line!==e.loc.start.line&&((ZS(e)||Zv(e))&&void 0!==eeU(e)&&!eeB.has(e)||ZT(e)&&((ZS(e.item)||Zv(e.item))&&void 0!==eeU(e.item)&&(t=e.item,!eeB.has(t))||Zx(e.item)&&(ZS(e.item.value)||Zv(e.item.value))&&void 0!==eeU(e.item.value)&&(n=e.item.value,!eeB.has(n)))||Zx(e)&&(ZS(e.value)||Zv(e.value))&&void 0!==eeU(e.value));(e.loc.end.line===e.loc.start.line||r)&&(e.loc.end.column+=i)}e.loc.start.line+=r,e.loc.end.line+=r};return eeP(e,{Table:u,TableKey:u,TableArray:u,TableArrayKey:u,KeyValue(e){let t=!s||e.loc.start.line===o;u(e),t&&(e.equals+=i)},Key:u,String:u,Integer:u,Float:u,Boolean:u,DateTime:u,InlineArray:u,InlineItem:u,InlineTable:u,Comment:u}),e}function ee9(e,t){let n=eeU(e);if(!0===n)return!0;if(void 0!==n||!e.items.length)return!1;let r=t?e.items.filter(e=>e!==t):e.items;return r.length?e.loc.end.line>e.loc.start.line&&r.every((e,t)=>0===t||e.loc.start.line>r[t-1].loc.start.line):e.loc.end.line>e.loc.start.line}function ee7(e,t,n,r){let i=t.get(n);i&&(e.lines+=i.lines,e.columns+=i.columns),t.set(n,e)}function ete(){return{type:"Document",loc:{start:ZN(),end:ZN()},items:[]}}function ett(e){var t;let n,r=(n=etr(t=e),{type:"TableKey",loc:{start:ZN(),end:{line:1,column:n.length+2}},item:{type:"Key",loc:{start:{line:1,column:1},end:{line:1,column:n.length+1}},value:t,raw:n}});return{type:"Table",loc:Z_(r.loc),key:r,items:[]}}function etn(e){return JSON.stringify(e).replace(/\x7f/g,"\\u007f")}function etr(e){return e.map(e=>(eeA(e,`Key ${JSON.stringify(e)}`),ZO.test(e)?e:etn(e))).join(".")}function eti(e){let t=e.toString();return{type:"Integer",loc:{start:ZN(),end:{line:1,column:t.length}},raw:t,value:e}}function ets(e,t=1){let n,r;if(1/0===e)n="inf";else if(-1/0===e)n="-inf";else if(Number.isNaN(e)){let t=!!(0x80000000&new DataView(new Float64Array([e]).buffer).getUint32(4,!0));r=t?"-":void 0,n=t?"-nan":"nan"}else if(Object.is(e,-0))n="-0."+"0".repeat(Math.max(t,1));else{let r=(n=e.toString()).search(/[eE]/);if(-1!==r){let e=n.slice(0,r),i=n.slice(r),s=e.indexOf(".");if(-1===s)n=`${e}.${"0".repeat(Math.max(t,1))}${i}`;else{let r=e.length-s-1;n=r<t?`${e}${"0".repeat(t-r)}${i}`:`${e}${i}`}}else{let e=n.indexOf(".");if(-1===e)n+="."+"0".repeat(Math.max(t,1));else{let r=n.length-e-1;r<t&&(n+="0".repeat(t-r))}}}return{type:"Float",loc:{start:ZN(),end:{line:1,column:n.length}},raw:n,value:e,...void 0===r?{}:{nanSign:r}}}function eta(e){return{type:"InlineItem",loc:Z_(e.loc),item:e,comma:!1}}function eto(e,t){let n=ett(e.key.value);for(let t of e.value.items)eeZ(n,n,t.item,void 0,void 0,void 0,void 0,!0);return ee8(n),etc(n,1,t),n}function etl(e){let t=eeU(e);return void 0===t?e.items.length?e.items.some((t,n)=>{let r=e.items[n-1];return t.loc.start.line>((null==r?void 0:r.loc.end.line)??e.loc.start.line)}):e.loc.end.line>e.loc.start.line:t}function etu(e){return Math.max(e,2)}function etc(e,t,n=!0){for(let r of Zx(e)?[e]:e.items)Zx(r)&&(ZS(r.value)||Zv(r.value))&&function e(t,n,r,i=!0){let s=etl(t),a=!1;if(s){let s=n+r;for(let n of t.items)ee6(n,{lines:0,columns:s-n.loc.start.column}),ZT(n)&&(ZS(n.item)||Zv(n.item)?e(n.item,n.item.loc.start.column,etu(r),i)&&(n.loc.end={...n.item.loc.end},a=!0):Zx(n.item)&&(ZS(n.item.value)||Zv(n.item.value))&&e(n.item.value,n.item.loc.start.column,r,i)&&(n.item.loc.end={...n.item.value.loc.end},n.loc.end={...n.item.loc.end},a=!0));t.loc.end.column=n+1,a=!0}for(let n of t.items)if(ZT(n)){if(ZS(n.item)||Zv(n.item))e(n.item,n.item.loc.start.column,etu(r),i)&&(n.loc.end={...n.item.loc.end},a=!0);else if(Zx(n.item)&&(ZS(n.item.value)||Zv(n.item.value))){let t=n.item.value,s=n.item.loc.start.column,o=etl(t);e(t,s,r,i)&&(o&&(t.loc.end.column=s+1),n.item.loc.end={...t.loc.end},n.loc.end={...n.item.loc.end},a=!0)}}let o=ZK.get(t)??2;for(let e=1;e<t.items.length;e++){let n=t.items[e-1],r=t.items[e];n.loc.end.line===r.loc.start.line&&ee6(r,{lines:0,columns:n.loc.end.column+(n.comma?o:1)-r.loc.start.column})}if(a&&!s&&t.items.length>0){let e=t.items[t.items.length-1];t.loc.end={line:e.loc.end.line,column:e.loc.end.column+ +!!e.comma+(i?2:1)}}return a}(r.value,r.loc.start.column,t,n)}function etp(e){return Math.max(0,e.length-1)}function etd(e,t,n){let r=[];for(let t=0;t<e.items.length;t++){let i=e.items[t];if(Zx(i)&&Zv(i.value)){let t=[...e.key.item.value,...i.key.value];etp(t)<(n.inlineTableStart??1)&&r.push({item:i,nestedTableKey:t})}}for(let{item:i,nestedTableKey:s}of r){let r=ett(s);for(let e of i.value.items)eeZ(r,r,e.item);ee8(r),ee2(e,e,i),function(e){if(e.items.length>0){let t=e.items[e.items.length-1];e.loc.end.line=t.loc.end.line,e.loc.end.column=t.loc.end.column}else e.loc.end.line=e.key.loc.end.line,e.loc.end.column=e.key.loc.end.column}(e),t.push({table:r,parent:e}),etd(r,t,n)}r.length>0&&ee8(e)}function etf(e){return e.items.length>0&&e.loc.end.line-e.loc.start.line+1>e.items.length}function eth(e){return ZS(e)||Zv(e)}function*etm(e,t,n=0,r=!1){for(let i of Object.keys(e)){let s=e[i];if(void 0===s)continue;let a=ety(s);void 0!==a&&(yield function(e,t,n=!1){let r=function(e){let t=etr(e);return{type:"Key",loc:{start:ZN(),end:{line:1,column:t.length}},raw:t,value:e}}(e),{column:i}=r.loc.end;return ee6(t,{lines:1-t.loc.start.line,columns:i+3-t.loc.start.column},{first_line_only:!0,shift_generated_multiline_end:n}),{type:"KeyValue",loc:{start:ZI(r.loc.start),end:ZI(t.loc.end)},key:r,equals:i+1,value:t}}([i],function e(t,n,r,i){var s;let a,o=n.minimumDecimals??0;if(null===t)throw Error('"null" values are not supported');if(void 0===t)throw Error('"undefined" values are not supported inside arrays');return"string"==typeof t?(eeA(t,"String value"),a="",a=etn(s=t),{type:"String",loc:{start:ZN(),end:{line:1,column:a.length}},raw:a,value:s}):"bigint"==typeof t?eti(t):eex(t)?o>0?ets(t,o):eti(t):"number"==typeof t&&(!eex(t)||!isFinite(t)||Object.is(t,-0))?ets(t,Math.max(o,1)):"boolean"==typeof t?{type:"Boolean",loc:{start:ZN(),end:{line:1,column:t?4:5}},value:t}:eev(t)?function(e,t=!1){var n;let r=(null==(n=e.constructor)?void 0:n.name)??"",i;if("Temporal.PlainDate"===r||"PlainDate"===r)i=eeE(e);else if("Temporal.PlainTime"===r||"PlainTime"===r)i=eeE(e);else if("Temporal.PlainDateTime"===r||"PlainDateTime"===r){if(t){let t=globalThis.Temporal;if(!t)throw Error("Temporal API is not available in this runtime. Set temporal: false or use a runtime with Temporal support.");let n=t.PlainDate.from(e.toString().split("T")[0]);if(n.toString()+"T00:00:00"===e.toString().slice(0,19))return i=eeE(n),{type:"DateTime",loc:{start:ZN(),end:{line:1,column:i.length}},raw:i,value:n}}i=eeE(e)}else i=eeE(e);return{type:"DateTime",loc:{start:ZN(),end:{line:1,column:i.length}},raw:i,value:e}}(t,n.truncateZeroTimeInDates):eeS(t)?function(e,t=!1){!t||e instanceof Z3||0!==e.getUTCHours()||0!==e.getUTCMinutes()||0!==e.getUTCSeconds()||0!==e.getUTCMilliseconds()||(e=new Z2(e.toISOString().split("T")[0]));let n=e.toISOString();return{type:"DateTime",loc:{start:ZN(),end:{line:1,column:n.length}},raw:n,value:e}}(t,n.truncateZeroTimeInDates):Array.isArray(t)?function(t,n,r,i){var s;let a={type:"InlineArray",loc:{start:ZN(),end:{line:1,column:2}},items:[]},o=!(0===t.length&&r>0)&&eeR("array",r,i,n);for(let i of(ee$(a,o),s=n.indentWidth,eeV.set(a,s),t)){let t=e(i,n,r+1,o),s=eta(t);o||"InlineArray"!==t.type&&"InlineTable"!==t.type||!0!==eeU(t)||eeB.add(t),function(e,t,n){if(!ZT(t)||!eth(t.item)||!etf(e))return;let r=e.items.find(e=>eth(e.item)&&e.item.type===t.item.type&&etf(e.item));if(!r||!eth(r.item))return;let i=t.item,s=r.item,a=s.items.length>0?s.items[0].loc.start.column-s.loc.start.column:n,o=s.items.length>0?s.items[0].loc.start.line-s.loc.start.line:1,l=s.items.length>0?s.loc.end.line-s.items[s.items.length-1].loc.end.line:1,u=i.loc.start.line,c=i.loc.start.column,p=u+o;for(let e of i.items)ee6(e,{lines:p-e.loc.start.line,columns:c+a-e.loc.start.column}),p=e.loc.end.line+1;i.loc.end={line:p-1+l,column:s.loc.end.column},eeB.add(i),t.loc={start:ZI(i.loc.start),end:ZI(i.loc.end)}}(a,s,n.indentWidth),eeZ(a,a,s)}return ee4(a,a,n.bracketSpacing),ee5(a,a,n.trailingComma),ee8(a),a}(t,n,r,i):function(t,n,r,i){var s,a;if(!((s=t=ety(t))&&"object"==typeof s&&!eeS(s)&&!eev(s)&&!Array.isArray(s)))return e(t,n,r,i);let o={type:"InlineTable",loc:{start:ZN(),end:{line:1,column:2}},items:[]},l=!(0===Object.keys(t).length&&r>0)&&eeR("table",r,i,n);for(let e of(ee$(o,l),a=n.indentWidth,eeV.set(o,a),etm(t,n,r+1,l)))eeZ(o,o,eta(e));return ee4(o,o,n.bracketSpacing),ee5(o,o,n.trailingComma),ee8(o),o}(t,n,r,i)}(a,t,n,r),n>0&&!r))}}function ety(e){return!e||eeS(e)||eev(e)?e:"function"==typeof e.toJSON?e.toJSON():e}let etg=/(\r\n|\n)/g;function etb(e,t,n){if(t.start.line===t.end.line){let r=etS(e,t.start.line),i=r.substring(0,t.start.column),s=i.length<t.start.column?i.padEnd(t.start.column," "):i,a=r.substring(t.end.column);e[t.start.line-1]=s+n+a;return}let r=n.split(etg).filter(e=>e!==`
|
|
95
|
+
`&&e!==`\r
|
|
96
|
+
`),i=t.end.line-t.start.line+1;if(r.length!==i)throw Error(`Mismatch between location and raw string, expected ${i} lines for "${n}"`);for(let n=t.start.line;n<=t.end.line;n++){let i=etS(e,n),s=n===t.start.line,a=n===t.end.line,o="";if(s){let e=i.substring(0,t.start.column);o=e.length<t.start.column?e.padEnd(t.start.column," "):e}let l=a?i.substring(t.end.column):"";e[n-1]=o+r[n-t.start.line]+l}}function etx(e,t,n,r){let i=etS(e,t),s=i.length<n?i.padEnd(n," "):i.substring(0,n),a=i.substring(n+1);e[t-1]=s+r+a}function etS(e,t){if(!e[t-1])for(let n=0;n<t;n++)e[n]||(e[n]="");return e[t-1]}function etT(e,t,n,r,i){let s=t.length>0?[...t]:[],a=Array(n.length),o=Array(n.length);for(let e=0;e<n.length;e++)s.push(n[e]),a[e]=etw(s),o[e]=etA(s);let l=a[n.length-1],u=o[n.length-1];if("KeyValue"===r&&n.length>1)for(let e=1;e<n.length;e++){let t=a[e-1];if(i.inline_tables.has(o[e-1]))throw Error(`Cannot extend inline table at ${t}`)}if(("Table"===r||"TableArray"===r)&&i.inline_tables.has(u))throw Error(`Cannot extend inline table at ${l}`);if("Table"===r||"TableArray"===r)for(let e=1;e<n.length;e++){let t=a[e-1];if(i.inline_tables.has(o[e-1]))throw Error(`Cannot extend inline table at ${t}`)}if("KeyValue"===r&&n.length>1)for(let e=1;e<n.length;e++){let t=a[e-1];if(i.table_arrays.has(o[e-1]))throw Error(`Cannot traverse Array of Tables at ${t}`)}if(("Table"===r||"TableArray"===r)&&i.implicit_tables.has(u))throw Error(`Implicit table already defined: ${l}`);if("KeyValue"===r&&i.implicit_tables.has(u))throw Error(`Table already defined: ${l}`);if("KeyValue"===r&&n.length>1)for(let e=1;e<=n.length;e++){let t=a[e-1];if(i.tables.has(o[e-1]))throw Error(`Cannot extend explicit table ${t} with dotted keys`)}let c=0;for(let t of n){if(!(t in e))return;if(etk(e[t]))throw Error(`Value already defined for ${a[c]}`);let r=a[c];if(Array.isArray(e[t])&&!i.table_arrays.has(o[c]))throw Error(`Cannot add to static array at ${r}`);let s=c++<n.length-1;e=Array.isArray(e[t])&&s?eeg(e[t]):e[t]}if(e&&"Table"===r&&i.defined.has(u)||e&&"KeyValue"===r&&1===n.length&&i.defined.has(u)&&!etk(e))throw Error(`Table already defined: ${l}`);if(e&&"TableArray"===r&&!i.table_arrays.has(u))throw Error(`Cannot add Array of Tables to table at ${l}`)}function etv(e,t){let n=etE(e,t.slice(0,-1)),r=eeg(t);return n[r]||(n[r]=eeb()),n[r]}function etE(e,t){return t.reduce((e,t)=>(e[t]||(e[t]=eeb()),Array.isArray(e[t])?eeg(e[t]):e[t]),e)}function etk(e){return"object"!=typeof e&&!eeS(e)}function etw(e){return e.join(".")}function etA(e){return JSON.stringify(e)}function etP(e,t){let n=eeI("string"==typeof e?e:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e));return function(e,t="",n={}){let{integersAsBigInt:r="asNeeded",temporal:i=!1}=n,s=eeb(),a=new Set,o=new Set,l=new Set,u=new Set,c=new Set,p=s,d=[],f={tables:a,table_arrays:o,defined:l,implicit_tables:u,inline_tables:c};for(let n of e)switch(n.type){case"Table":for(let e of(function(e){let n=e.key.item.value;try{etT(s,[],n,e.type,f)}catch(n){throw new ZL(t,e.key.loc.start,n.message)}let r=etA(n);a.add(r),l.add(r),p=etv(s,n),d=n}(n),n.items))"KeyValue"===e.type&&h(e);break;case"TableArray":for(let e of(function(e){let n=e.key.item.value;try{etT(s,[],n,e.type,f)}catch(n){throw new ZL(t,e.key.loc.start,n.message)}let r=etA(n);o.add(r),l.add(r),p=function(e,t){let n=etE(e,t.slice(0,-1)),r=eeg(t);n[r]||(n[r]=[]);let i=eeb();return n[eeg(t)].push(i),i}(s,n),d=n}(n),n.items))"KeyValue"===e.type&&h(e);break;case"KeyValue":h(n)}return s;function h(e){let n,s=e.key.value;try{etT(p,d,s,e.type,f)}catch(n){throw new ZL(t,e.key.loc.start,n.message)}if(s.length>1)for(let e=1;e<s.length;e++){let t=etA(d.concat(s.slice(0,e)));u.add(t),l.add(t)}try{n=function e(t,n={}){let{integersAsBigInt:r="asNeeded",temporal:i=!1}=n;switch(t.type){case"InlineTable":let s=eeb(),a=new Set,o=new Map;return t.items.forEach(({item:t})=>{let n=t.key.value,l=e(t.value,{integersAsBigInt:r,temporal:i}),u=etw(n),c=etA(n);if(a.has(c))throw Error(`Duplicate key "${u}" in inline table`);for(let e=1;e<n.length;e++){let t=etw(n.slice(0,e));if(a.has(etA(n.slice(0,e))))throw Error(`Key "${u}" conflicts with key: "${t}"`)}if(o.has(c)){let e=o.get(c);throw Error(`Key "${u}" conflicts with key: "${e}"`)}a.add(c);for(let e=1;e<n.length;e++){let t=etA(n.slice(0,e));o.has(t)||o.set(t,u)}(n.length>1?etv(s,n.slice(0,-1)):s)[eeg(n)]=l}),s;case"InlineArray":return t.items.map(t=>e(t.item,{integersAsBigInt:r,temporal:i}));case"DateTime":if(i){if(void 0===globalThis.Temporal)throw Error("Temporal API is not available in this runtime. Set temporal: false or use a runtime with Temporal support.");return function(e){var t,n,r,i,s,a;if(null!=(t=e.constructor)&&null!=(t=t.name)&&null!=(n=t.startsWith)&&n.call(t,"Temporal.")||(null==(r=e.constructor)?void 0:r.name)==="PlainDate"||(null==(i=e.constructor)?void 0:i.name)==="PlainTime"||(null==(s=e.constructor)?void 0:s.name)==="PlainDateTime"||(null==(a=e.constructor)?void 0:a.name)==="ZonedDateTime")return e;let o=globalThis.Temporal;if(e instanceof Z2)return o.PlainDate.from(e.toISOString());if(e instanceof Z3)return o.PlainTime.from(e.toISOString());if(e instanceof Z4)return o.PlainDateTime.from(e.toISOString().replace(" ","T"));if(e instanceof Z5){let t=e.toISOString().replace(" ","T"),n=t.match(/([+-]\d{2}:\d{2}|Z)$/),r=n?n[1]:"Z",i=t.replace(/([+-]\d{2}:\d{2}|Z)$/,"");return o.ZonedDateTime.from(`${i}${r}[${"Z"===r?"+00:00":r}]`)}return o.PlainDateTime.from(e.toISOString().replace("Z",""))}(t.value)}return t.value;case"String":case"Float":case"Boolean":return t.value;case"Integer":return function(e,t="asNeeded"){let n,r=e.replace(/_/g,""),i=r;if(/^[+-]?0x/i.test(r)||/^[+-]?0o/i.test(r)||/^[+-]?0b/i.test(r)){let e="+"===r[0]||"-"===r[0]?r[0]:"";i=e+r.slice(+!!e).toLowerCase()}try{n=BigInt(i)}catch{return Number(r)}return!0===t?n:!1===t||n>=BigInt(-0x1fffffffffffff)&&n<=BigInt(0x1fffffffffffff)?Number(n):n}(t.raw,r);default:throw Error(`Unrecognized value type "${t.type}"`)}}(e.value,{integersAsBigInt:r,temporal:i})}catch(n){throw new ZL(t,e.value.loc.start,n.message)}if("InlineTable"===e.value.type){let t=d.concat(s);c.add(etA(t)),function e(t,n,r){for(let i of t.items){let t=i.item;if("InlineTable"===t.value.type){let i=n.concat(t.key.value);r.add(etA(i)),e(t.value,i,r)}}}(e.value,t,c)}(s.length>1?etv(p,s.slice(0,-1)):p)[eeg(s)]=n,l.add(etA(d.concat(s)))}}(eef(n),n,{integersAsBigInt:(null==t?void 0:t.integersAsBigInt)??"asNeeded",temporal:(null==t?void 0:t.temporal)??!1})}let{stringify:etC,parse:etI}=JSON;var et_=Object.freeze({__proto__:null,branch:e=>{let t=[],[n,r]=ql(etP,e);return n?[]:(t.push({source:UT(etC(r,null,4),Um),extension:"json"}),t)},files:["*.toml"],find:e=>{let[t]=ql(etP,e);return function({error:e}){if(!e)return[];let{message:t,line:n,column:r}=e;return[{message:t.split("\n").pop(),rule:"toml-parse-error (toml)",position:{line:n,column:r}}]}({error:t})},merge:(e,t)=>{let n,r,[i]=t.filter(Uk);return r=function(e,t){let n=[],r=e=>{let t={line:e.loc.end.line,column:e.loc.end.column-1},n=e.items[e.items.length-1];return n&&(n.loc.end.line>t.line||n.loc.end.line===t.line&&n.loc.end.column>t.column)&&(t.line=n.loc.end.line,t.column=n.loc.end.column+ +!!n.comma),t};function i(e){switch(e.type){case"Document":for(let t=0;t<e.items.length;t++)i(e.items[t]);break;case"Table":i(e.key);for(let t=0;t<e.items.length;t++)i(e.items[t]);break;case"TableKey":etb(n,e.loc,"["+e.item.raw+"]");break;case"TableArray":i(e.key);for(let t=0;t<e.items.length;t++)i(e.items[t]);break;case"TableArrayKey":etb(n,e.loc,"[["+e.item.raw+"]]");break;case"KeyValue":etx(n,e.loc.start.line,e.equals,"="),i(e.key),i(e.value);break;case"Key":case"String":case"Integer":case"Float":case"DateTime":case"Comment":etb(n,e.loc,e.raw);break;case"Boolean":etb(n,e.loc,e.value.toString());break;case"InlineArray":{let{start:t}=e.loc,s=r(e);etx(n,t.line,t.column,"["),etx(n,s.line,s.column,"]");for(let t=0;t<e.items.length;t++)i(e.items[t]);break}case"InlineTable":{let{start:t}=e.loc,s=r(e);etx(n,t.line,t.column,"{"),etx(n,s.line,s.column,"}");for(let t=0;t<e.items.length;t++)i(e.items[t]);break}case"InlineItem":if(i(e.item),e.comma){let t=e.loc.end;etx(n,t.line,t.column,",")}break;default:{let t=e.type;throw Error(`toTOML: Unrecognized node type: ${String(t)}`)}}}if(eek(e))for(let t of e)i(t);else i(e);if(t.useTabsForIndentation){let t=new Set,r=e=>{if("String"===e.type&&e.loc.end.line>e.loc.start.line)for(let n=e.loc.start.line+1;n<=e.loc.end.line;n++)t.add(n);if(Zk(e))for(let t of e.items)r(t);Zx(e)&&r(e.value),ZT(e)&&r(e.item)};if(eek(e))for(let t of e)r(t);else r(e);for(let e=0;e<n.length;e++){if(t.has(e+1))continue;let r=n[e],i=r.match(/^( +)/);if(i){let t=i[1],s=" ".repeat(t.length);n[e]=s+r.substring(t.length)}}}return n.join(t.newLine)+t.newLine.repeat(t.trailingNewline)}(function(e,t=eeM.default(),n=0,r=!1){var i;e=ety(e);let s=ete();for(let a of(eeK.add(s),i=t.indentWidth,eeV.set(s,i),etm(e,t,n,r)))eeZ(s,s,a);for(let e of(ee8(s),0===t.inlineTableStart||(s.items.filter(e=>{if(!Zx(e))return!1;let n=Zv(e.value),r=ZS(e.value)&&e.value.items.length>0&&e.value.items.every(e=>Zv(e.item));if(n||r){let n=etp(e.key.value);return void 0===t.inlineTableStart||n<t.inlineTableStart}return!1}).forEach(e=>{ee2(s,s,e),Zv(e.value)?0===e.value.items.length?eeZ(s,s,ett(e.key.value)):eeZ(s,s,eto(e,t.bracketSpacing)):(function(e,t){let n=ete();for(let t of e.value.items){let r=function(e){let t=function(e){let t=etr(e);return{type:"TableArrayKey",loc:{start:ZN(),end:{line:1,column:t.length+4}},item:{type:"Key",loc:{start:{line:1,column:2},end:{line:1,column:t.length+2}},value:e,raw:t}}}(e);return{type:"TableArray",loc:Z_(t.loc),key:t,items:[]}}(e.key.value);for(let e of(eeZ(n,n,r),t.item.items))eeZ(n,r,e.item,void 0,void 0,void 0,void 0,!0)}for(let e of(ee8(n),n.items))(Zg(e)||Zb(e))&&etc(e,1,t);return n.items})(e,t.bracketSpacing).forEach(e=>{eeZ(s,s,e)})}),ee8(s)),function(e,t){if(void 0===t.inlineTableStart||0===t.inlineTableStart)return;let n=[];for(let r of e.items)if(Zx(r)&&Zv(r.value)){if(etp(r.key.value)<t.inlineTableStart){let i=eto(r,t.bracketSpacing);ee2(e,e,r),eeZ(e,e,i),etd(i,n,t)}}else("Table"===r.type||Zb(r))&&etd(r,n,t);let r=new Map;for(let{table:t,parent:i}of n){let n=e.items.indexOf(i),s=(r.get(i)??0)+1;r.set(i,s),eeZ(e,e,t,n+s)}ee8(e)}(s,t),s.items))("Table"===e.type||"TableArray"===e.type||Zx(e)&&(ZS(e.value)||Zv(e.value)))&&etc(e,t.indentWidth,t.bracketSpacing);let a=0,o=0;for(let e of s.items)0===o&&e.loc.start.line>1?a=1-e.loc.start.line:e.loc.start.line+a>o+2&&(a+=o+2-(e.loc.start.line+a)),ee6(e,{lines:a,columns:0}),o=e.loc.end.line;return s}(etI(Uv(i,Um)),n=function(e,t){if(e){if(e instanceof eeM)return e;{let n=function(e){if(!e||"object"!=typeof e)return{};let t=e=>"boolean"==typeof e?null:`expected boolean, got ${typeof e}`,n=e=>null==e||"boolean"==typeof e||"auto"===e||"parent"===e||"number"==typeof e&&Number.isInteger(e)&&e>=0?null:`expected boolean, non-negative integer, "auto" or "parent", got ${typeof e}`,r={newLine:e=>"string"==typeof e?null:`expected string, got ${typeof e}`,trailingNewline:e=>"boolean"==typeof e||"number"==typeof e?null:`expected boolean or number, got ${typeof e}`,trailingComma:t,bracketSpacing:t,leadingBom:t,inlineTableStart:e=>null==e||"number"==typeof e&&Number.isInteger(e)&&e>=0?null:`expected non-negative integer or undefined, got ${typeof e}`,truncateZeroTimeInDates:t,useTabsForIndentation:t,indentWidth:e=>null==e||"number"==typeof e&&Number.isInteger(e)&&e>0?null:`expected positive integer or undefined, got ${typeof e}`,minimumDecimals:e=>null==e||"number"==typeof e&&Number.isInteger(e)&&e>=0?null:`expected non-negative integer or undefined, got ${typeof e}`,updateOrder:t,multilineTable:n,multilineArray:n},i={},s=[],a=[];for(let t in e){let n=Object.prototype.hasOwnProperty.call(r,t)?r[t]:void 0;if(n){let r=e[t],s=n(r);s?a.push(`${t} (${s})`):i[t]=r}else Object.prototype.hasOwnProperty.call(e,t)&&s.push(t)}if(s.length>0&&console.warn(`toml-patch: Ignoring unsupported format properties: ${s.join(", ")}. Supported properties are: ${Object.keys(r).join(", ")}`),a.length>0)throw TypeError(`Invalid types for format properties: ${a.join(", ")}`);return"newLine"in i&&(i.newLine=eeD(i.newLine)),i}(e);return new eeM(n.newLine??t.newLine,n.trailingNewline??t.trailingNewline,n.trailingComma??t.trailingComma,n.bracketSpacing??t.bracketSpacing,"inlineTableStart"in n?n.inlineTableStart:t.inlineTableStart,n.truncateZeroTimeInDates??t.truncateZeroTimeInDates,n.useTabsForIndentation??t.useTabsForIndentation,n.minimumDecimals??t.minimumDecimals,n.leadingBom??t.leadingBom,n.updateOrder??t.updateOrder,n.indentWidth??t.indentWidth,n.multilineTable??t.multilineTable,n.multilineArray??t.multilineArray)}}return t}({bracketSpacing:!1},eeM.default())).items,n),n.leadingBom?`\uFEFF${r}`:r}});function etN(e){if(e)throw e}var etL=Object.prototype.hasOwnProperty,etO=Object.prototype.toString,etD=Object.defineProperty,etM=Object.getOwnPropertyDescriptor,etF=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===etO.call(e)},etB=function(e){if(!e||"[object Object]"!==etO.call(e))return!1;var t,n=etL.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&etL.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||etL.call(e,t)},etj=function(e,t){etD&&"__proto__"===t.name?etD(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},etR=function(e,t){if("__proto__"===t){if(!etL.call(e,t))return;else if(etM)return etM(e,t).value}return e[t]},et$=(function e(){var t,n,r,i,s,a,o=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[1]||{},l=2),(null==o||"object"!=typeof o&&"function"!=typeof o)&&(o={});l<u;++l)if(t=arguments[l],null!=t)for(n in t)r=etR(o,n),o!==(i=etR(t,n))&&(c&&i&&(etB(i)||(s=etF(i)))?(s?(s=!1,a=r&&etF(r)?r:[]):a=r&&etB(r)?r:{},etj(o,{name:n,newValue:e(c,a,i)})):void 0!==i&&etj(o,{name:n,newValue:i}));return o}).default;function etU(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function etq(e,t){let n;return function(...t){let s,a=e.length>t.length;a&&t.push(r);try{s=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}}function etK(e){return e&&"object"==typeof e?"position"in e||"type"in e?etJ(e.position):"start"in e||"end"in e?etJ(e):"line"in e||"column"in e?etV(e):"":""}function etV(e){return etz(e&&e.line)+":"+etz(e&&e.column)}function etJ(e){return etV(e&&e.start)+"-"+etV(e&&e.end)}function etz(e){return e&&"number"==typeof e?e:1}class etW extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(s=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=etK(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}etW.prototype.file="",etW.prototype.name="",etW.prototype.reason="",etW.prototype.message="",etW.prototype.stack="",etW.prototype.column=void 0,etW.prototype.line=void 0,etW.prototype.ancestors=void 0,etW.prototype.cause=void 0,etW.prototype.fatal=void 0,etW.prototype.place=void 0,etW.prototype.ruleId=void 0,etW.prototype.source=void 0;let etX=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');etQ(e);let r=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else a<0&&(n=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(i=s):(o=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},etH=function(e){let t;if(etQ(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},etY=function(e){let t;etQ(e);let n=e.length,r=-1,i=0,s=-1,a=0;for(;n--;){let o=e.codePointAt(n);if(47===o){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===o?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1)}return s<0||r<0||0===a||1===a&&s===r-1&&s===i+1?"":e.slice(s,r)},etG=function(...e){var t;let n,r,i,s=-1;for(;++s<e.length;)etQ(e[s]),e[s]&&(i=void 0===i?e[s]:i+"/"+e[s]);return void 0===i?".":(etQ(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(i.length<2||2!==s||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",s=0):s=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,o=0;continue}}else if(i.length>0){i="",s=0,a=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&o>-1?o++:o=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function etQ(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function etZ(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let et0=["history","path","basename","stem","extname","dirname"];class et1{constructor(e){var t;let n,r;n=e?etZ(e)?{path:e}:"string"==typeof e||(t=e)&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t?{value:e}:e:{},this.cwd="cwd"in n?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<et0.length;){let e=et0[i];e in n&&void 0!==n[e]&&null!==n[e]&&(this[e]="history"===e?[...n[e]]:n[e])}for(r in n)et0.includes(r)||(this[r]=n[r])}get basename(){return"string"==typeof this.path?etX(this.path):void 0}set basename(e){et3(e,"basename"),et2(e,"basename"),this.path=etG(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?etH(this.path):void 0}set dirname(e){et4(this.basename,"dirname"),this.path=etG(e||"",this.basename)}get extname(){return"string"==typeof this.path?etY(this.path):void 0}set extname(e){if(et2(e,"extname"),et4(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=etG(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){etZ(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!etZ(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),et3(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?etX(this.path,this.extname):void 0}set stem(e){et3(e,"stem"),et2(e,"stem"),this.path=etG(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new etW(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function et2(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function et3(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function et4(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let et5=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},et8={}.hasOwnProperty,et6=new class e extends et5{constructor(){let e,t;super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(s,...a){let o=e[++n],l=-1;if(s)return void r(s);for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,o?etq(o,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}})}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data(et$(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(ene("data",this.frozen),this.namespace[e]=t,this):et8.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ene("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=enr(e),n=this.parser||this.Parser;return et9("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),et9("process",this.parser||this.Parser),et7("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let s=enr(e),a=n.parse(s);function o(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(a,s,function(e,t,r){var i,s;if(e||!t||!r)return o(e);let a=n.stringify(t,r);"string"==typeof(i=a)||(s=i)&&"object"==typeof s&&"byteLength"in s&&"byteOffset"in s?r.value=a:r.result=a,o(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),et9("processSync",this.parser||this.Parser),et7("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,etN(e),t=r}),enn("processSync","process",n),t}run(e,t,n){ent(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,s){let a=enr(t);r.run(e,a,function(t,r,a){let o=r||e;t?s(t):i?i(o):n(void 0,o,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){etN(e),n=t,r=!0}),enn("runSync","run",r),n}stringify(e,t){this.freeze();let n=enr(t),r=this.compiler||this.Compiler;return et7("stringify",r),ent(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ene("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?s(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=et$(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;a(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...s]=t,a=n[i][1];etU(a)&&etU(r)&&(r=et$(!0,a,r)),n[i]=[e,r,...s]}}}}().freeze();function et9(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function et7(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ene(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ent(e){if(!etU(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function enn(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function enr(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new et1(e)}let eni={};function ens(e,t){return ena(e,"boolean"!=typeof eni.includeImageAlt||eni.includeImageAlt,"boolean"!=typeof eni.includeHtml||eni.includeHtml)}function ena(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eno(e.children,t,n)}return Array.isArray(e)?eno(e,t,n):""}function eno(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ena(e[i],t,n);return r.join("")}let enl=document.createElement("i");function enu(e){let t="&"+e+";";enl.innerHTML=t;let n=enl.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function enc(e,t,n,r){let i,s=e.length,a=0;if(t=t<0?-t>s?0:s+t:t>s?s:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)(i=r.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function enp(e,t){return e.length>0?(enc(e,e.length,0,t),e):t}let end={}.hasOwnProperty;function enf(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(end.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];if(s)for(r in s){end.call(i,r)||(i[r]=[]);let e=s[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);enc(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}function enh(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function enm(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let eny=enC(/[A-Za-z]/),eng=enC(/[\dA-Za-z]/),enb=enC(/[#-'*+\--9=?A-Z^-~]/);function enx(e){return null!==e&&(e<32||127===e)}let enS=enC(/\d/),enT=enC(/[\dA-Fa-f]/),env=enC(/[!-/:-@[-`{-~]/);function enE(e){return null!==e&&e<-2}function enk(e){return null!==e&&(e<0||32===e)}function enw(e){return -2===e||-1===e||32===e}let enA=enC(/\p{P}|\p{S}/u),enP=enC(/\s/);function enC(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function enI(e,t,n,r){let i=r?r-1:1/0,s=0;return function(r){return enw(r)?(e.enter(n),function r(a){return enw(a)&&s++<i?(e.consume(a),r):(e.exit(n),t(a))}(r)):t(r)}}let en_={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),enI(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return enE(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},enN={tokenize:function(e){let t,n,r,i=this,s=[],a=0;return o;function o(t){if(a<s.length){let n=s[a];return i.containerState=n[1],e.attempt(n[0].continuation,l,u)(t)}return u(t)}function l(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&g();let r=i.events.length,s=r;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){n=i.events[s][1].end;break}y(a);let o=r;for(;o<i.events.length;)i.events[o][1].end={...n},o++;return enc(i.events,s+1,0,i.events.slice(r)),i.events.length=o,u(e)}return o(e)}function u(n){if(a===s.length){if(!t)return d(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(enL,c,p)(n)}function c(e){return t&&g(),y(a),d(e)}function p(e){return i.parser.lazy[i.now().line]=a!==s.length,r=i.now().offset,h(e)}function d(t){return i.containerState={},e.attempt(enL,f,h)(t)}function f(e){return a++,s.push([i.currentConstruct,i.containerState]),d(e)}function h(r){if(null===r){t&&g(),y(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),y(0),e.consume(n);return}return enE(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,o):(e.consume(n),t)}(r)}function m(e,s){let o=i.sliceStream(e);if(s&&o.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,n,s=t.events.length;for(;s--;)if(t.events[s][1].start.offset<r&&(!t.events[s][1].end||t.events[s][1].end.offset>r))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(y(a),s=o;s<i.events.length;)i.events[s][1].end={...n},s++;enc(i.events,l+1,0,i.events.slice(o)),i.events.length=s}}function y(t){let n=s.length;for(;n-- >t;){let t=s[n];i.containerState=t[1],t[0].exit.call(i,e)}s.length=t}function g(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},enL={tokenize:function(e,t,n){return enI(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function enO(e){return null===e||enk(e)||enP(e)?1:enA(e)?2:void 0}function enD(e,t,n){let r=[],i=-1;for(;++i<e.length;){let s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}let enM={name:"attention",resolveAll:function(e,t){let n,r,i,s,a,o,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let p={...e[n][1].end},d={...e[c][1].start};enF(p,-o),enF(d,o),s={type:o>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:d},i={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:o>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=enp(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=enp(l,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=enp(l,enD(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=enp(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=enp(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,enc(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,s=enO(i);return function(a){return n=a,e.enter("attentionSequence"),function a(o){if(o===n)return e.consume(o),a;let l=e.exit("attentionSequence"),u=enO(o),c=!u||2===u&&s||r.includes(o),p=!s||2===s&&u||r.includes(i);return l._open=!!(42===n?c:c&&(s||!p)),l._close=!!(42===n?p:p&&(u||!c)),t(o)}(a)}}};function enF(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let enB={partial:!0,tokenize:function(e,t,n){return function(t){return enw(t)?enI(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||enE(e)?t(e):n(e)}}},enj={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return enw(t)?enI(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(enj,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return enw(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},enR={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return env(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},en$={name:"characterReference",tokenize:function(e,t,n){let r,i,s=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=eng,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=enT,u):(e.enter("characterReferenceValue"),r=7,i=enS,u(t))}function u(o){if(59===o&&a){let r=e.exit("characterReferenceValue");return i!==eng||enu(s.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return i(o)&&a++<r?(e.consume(o),u):n(o)}}},enU={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},enq={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,s={partial:!0,tokenize:function(e,t,n){let s=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),enw(t)?enI(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s>=o?(e.exit("codeFencedFenceSequence"),enw(i)?enI(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||enE(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},a=0,o=0;return function(t){var s;let u;return s=t,a=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=s,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o<3?n(i):(e.exit("codeFencedFenceSequence"),enw(i)?enI(e,l,"whitespace")(i):l(i))}(s)};function l(s){return null===s||enE(s)?(e.exit("codeFencedFence"),i.interrupt?t(s):e.check(enU,c,h)(s)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||enE(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):enw(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),enI(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(s))}function u(t){return null===t||enE(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||enE(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(s,h,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d}function d(t){return a>0&&enw(t)?enI(e,f,"linePrefix",a+1)(t):f(t)}function f(t){return null===t||enE(t)?e.check(enU,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||enE(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},enK={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),enI(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?s(n):enE(n)?e.attempt(enV,t,s)(n):(e.enter("codeFlowValue"),function n(r){return null===r||enE(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function s(n){return e.exit("codeIndented"),t(n)}}},enV={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):enE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):enI(e,s,"linePrefix",5)(t)}function s(e){let s=r.events[r.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):enE(e)?i(e):n(e)}}};class enJ{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&enz(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),enz(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),enz(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);enz(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);enz(this.left,t.reverse())}}}function enz(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function enW(e){let t,n,r,i,s,a,o,l={},u=-1,c=new enJ(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[r][1].type&&(r+=2),r<a.length&&"content"===a[r][1].type))for(;++r<a.length&&"content"!==a[r][1].type;)"chunkText"===a[r][1].type&&(a[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],s=e.get(t)[2],a=t-1,o=[],l=i._tokenizer;!l&&(l=s.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],p={},d=-1,f=i,h=0,m=0,y=[0];for(;f;){for(;e.get(++a)[1]!==f;);o.push(a),!f._tokenizer&&(n=s.sliceStream(f),f.next||n.push(null),r&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++d<u.length;)"exit"===u[d][0]&&"enter"===u[d-1][0]&&u[d][1].type===u[d-1][1].type&&u[d][1].start.line!==u[d][1].end.line&&(m=d+1,y.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):y.pop(),d=y.length;d--;){let t=u.slice(y[d],y[d+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)p[h+c[d][0]]=h+c[d][1],h+=c[d][1]-c[d][0]-1;return p}(c,u)),u=l[u],o=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(s=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,s))}}return enc(e,0,1/0,c.slice(0)),!o}let enX={resolve:function(e){return enW(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):enE(t)?e.check(enH,s,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},enH={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),enI(e,i,"linePrefix")};function i(i){if(null===i||enE(i))return n(i);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function enY(e,t,n,r,i,s,a,o,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(s),e.consume(t),e.exit(s),p):null===t||32===t||41===t||enx(t)?n(t):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),h(t))};function p(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(o),p(t)):null===t||60===t||enE(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(i){return!c&&(null===i||41===i||enk(i))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||enx(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function enG(e,t,n,r,i,s){let a,o=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(s),u};function u(p){return l>999||null===p||91===p||93===p&&!a||94===p&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):93===p?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):enE(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||enE(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!enw(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function enQ(e,t,n,r,i,s){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(s),l(n))}function l(t){return t===a?(e.exit(s),o(a)):null===t?n(t):enE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),enI(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||enE(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function enZ(e,t){let n;return function r(i){return enE(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):enw(i)?enI(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}let en0={partial:!0,tokenize:function(e,t,n){return function(t){return enk(t)?enZ(e,r)(t):n(t)};function r(t){return enQ(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return enw(t)?enI(e,s,"whitespace")(t):s(t)}function s(e){return null===e||enE(e)?t(e):n(e)}}},en1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],en2=["pre","script","style","textarea"],en3={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(enB,t,n)}}},en4={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return enE(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},en5={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&enc(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,s,a=e.length,o=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(i=a);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+o+2][1].end},end:{...e[i-2][1].start}};return s=enp(s=[["enter",l,t],["enter",u,t]],e.slice(r+1,r+o+3)),s=enp(s,[["enter",c,t]]),s=enp(s,enD(t.parser.constructs.insideSpan.null,e.slice(r+o+4,i-3),t)),s=enp(s,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),s=enp(s,e.slice(i+1)),s=enp(s,[["exit",l,t]]),enc(e,r,e.length,s),e},tokenize:function(e,t,n){let r,i,s=this,a=s.events.length;for(;a--;)if(("labelImage"===s.events[a][1].type||"labelLink"===s.events[a][1].type)&&!s.events[a][1]._balanced){r=s.events[a][1];break}return function(t){return r?r._inactive?c(t):(i=s.parser.defined.includes(enm(s.sliceSerialize({start:r.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(en8,u,i?u:c)(t):91===t?e.attempt(en6,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(en9,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},en8={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return enk(t)?enZ(e,i)(t):i(t)}function i(t){return 41===t?u(t):enY(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return enk(t)?enZ(e,o)(t):u(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?enQ(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return enk(t)?enZ(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},en6={tokenize:function(e,t,n){let r=this;return function(t){return enG.call(r,e,i,s,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(enm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},en9={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},en7={name:"labelStartImage",resolveAll:en5.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):n(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ere={name:"labelStartLink",resolveAll:en5.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ert={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),enI(e,t,"linePrefix")}}},ern={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(s){var a;return e.enter("thematicBreak"),r=a=s,function s(a){return a===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),enw(n)?enI(e,s,"whitespace")(n):s(n))}(a)):i>=3&&(null===a||enE(a))?(e.exit("thematicBreak"),t(a)):n(a)}(a)}}},err={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(enB,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,enI(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!enw(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ers,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,enI(e,e.attempt(err,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:enS(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ern,n,o)(t):o(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return enS(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):n(i)}(t)}return n(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(enB,r.interrupt?n:l,e.attempt(eri,c,u))}function l(e){return r.containerState.initialBlankLine=!0,s++,c(e)}function u(t){return enw(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},eri={partial:!0,tokenize:function(e,t,n){let r=this;return enI(e,function(e){let i=r.events[r.events.length-1];return!enw(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},ers={partial:!0,tokenize:function(e,t,n){let r=this;return enI(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},era={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var a;let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,a=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),enw(n)?enI(e,s,"lineSuffix")(n):s(n))}(a)):n(t)};function s(r){return null===r||enE(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},ero={tokenize:function(e){let t=this,n=e.attempt(enB,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,enI(e,e.attempt(this.parser.constructs.flow,r,e.attempt(enX,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},erl={resolveAll:erd()},eru=erp("string"),erc=erp("text");function erp(e){return{resolveAll:erd("text"===e?erf:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,s,a);return s;function s(e){return l(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function erd(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function erf(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],s=t.sliceStream(i),a=s.length,o=-1,l=0;for(;a--;){let e=s[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let s={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...s.start},i.start.offset===i.end.offset?Object.assign(i,s):(e.splice(n,0,["enter",s,t],["exit",s,t]),n+=2)}n++}return e}var erh=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,enG.call(i,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function s(t){return(r=enm(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return enk(t)?enZ(e,o)(t):o(t)}function o(t){return enY(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(en0,u,u)(t)}function u(t){return enw(t)?enI(e,c,"whitespace")(t):c(t)}function c(s){return null===s||enE(s)?(e.exit("definition"),i.parser.defined.push(r),t(s)):n(s)}}}},disable:{null:[]},document:{42:err,43:err,45:err,48:err,49:err,50:err,51:err,52:err,53:err,54:err,55:err,56:err,57:err,62:enj},flow:{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,s=3;return"whitespace"===e[3][1].type&&(s+=2),i-2>s&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4),i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},enc(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var s;return e.enter("atxHeading"),s=i,e.enter("atxHeadingSequence"),function i(s){return 35===s&&r++<6?(e.consume(s),i):null===s||enk(s)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||enE(r)?(e.exit("atxHeading"),t(r)):enw(r)?enI(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||enk(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(s)):n(s)}(s)}}},42:ern,45:[era,ern],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,s,a,o,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,f):63===a?(e.consume(a),r=3,l.interrupt?t:L):eny(a)?(e.consume(a),s=String.fromCharCode(a),h):n(a)}function c(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,a=0,d):eny(i)?(e.consume(i),r=4,l.interrupt?t:L):n(i)}function p(r){return 45===r?(e.consume(r),l.interrupt?t:L):n(r)}function d(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:k:d:n(r)}function f(t){return eny(t)?(e.consume(t),s=String.fromCharCode(t),h):n(t)}function h(a){if(null===a||47===a||62===a||enk(a)){let o=47===a,u=s.toLowerCase();return!o&&!i&&en2.includes(u)?(r=1,l.interrupt?t(a):k(a)):en1.includes(s.toLowerCase())?(r=6,o)?(e.consume(a),m):l.interrupt?t(a):k(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return enw(n)?(e.consume(n),t):v(n)}(a):y(a))}return 45===a||eng(a)?(e.consume(a),s+=String.fromCharCode(a),h):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:k):n(r)}function y(t){return 47===t?(e.consume(t),v):58===t||95===t||eny(t)?(e.consume(t),g):enw(t)?(e.consume(t),y):v(t)}function g(t){return 45===t||46===t||58===t||95===t||eng(t)?(e.consume(t),g):b(t)}function b(t){return 61===t?(e.consume(t),x):enw(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,S):enw(t)?(e.consume(t),x):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||enk(n)?b(n):(e.consume(n),t)}(t)}function S(t){return t===o?(e.consume(t),o=null,T):null===t||enE(t)?n(t):(e.consume(t),S)}function T(e){return 47===e||62===e||enw(e)?y(e):n(e)}function v(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||enE(t)?k(t):enw(t)?(e.consume(t),E):n(t)}function k(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),O):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),N):enE(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(en3,D,w)(t)):null===t||enE(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),k)}function w(t){return e.check(en4,A,D)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||enE(t)?w(t):(e.enter("htmlFlowData"),k(t))}function C(t){return 45===t?(e.consume(t),L):k(t)}function I(t){return 47===t?(e.consume(t),s="",_):k(t)}function _(t){if(62===t){let n=s.toLowerCase();return en2.includes(n)?(e.consume(t),O):k(t)}return eny(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),_):k(t)}function N(t){return 93===t?(e.consume(t),L):k(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===r?(e.consume(t),L):k(t)}function O(t){return null===t||enE(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),O)}function D(n){return e.exit("htmlFlow"),t(n)}}},61:era,95:ern,96:enq,126:enq},flowInitial:{[-2]:enK,[-1]:enK,32:enK},insideSpan:{null:[enM,erl]},string:{38:en$,92:enR},text:{[-5]:ert,[-4]:ert,[-3]:ert,33:en7,38:en$,42:enM,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eny(t)?(e.consume(t),s):64===t?n(t):o(t)}function s(t){return 43===t||45===t||46===t||eng(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||eng(n))&&r++<32?(e.consume(n),t):(r=0,o(n))}(t)):o(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||enx(r)?n(r):(e.consume(r),a)}function o(t){return 64===t?(e.consume(t),l):enb(t)?(e.consume(t),o):n(t)}function l(i){return eng(i)?function i(s){return 46===s?(e.consume(s),r=0,l):62===s?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(s),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(s){if((45===s||eng(s))&&r++<63){let n=45===s?t:i;return e.consume(s),n}return n(s)}(s)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,s,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),S):63===t?(e.consume(t),b):eny(t)?(e.consume(t),v):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,f):eny(t)?(e.consume(t),g):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),p):enE(t)?(s=c,_(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),d):c(t)}function d(e){return 62===e?I(e):45===e?p(e):c(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):enE(t)?(s=h,_(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),y):h(t)}function y(t){return 62===t?I(t):93===t?(e.consume(t),y):h(t)}function g(t){return null===t||62===t?I(t):enE(t)?(s=g,_(t)):(e.consume(t),g)}function b(t){return null===t?n(t):63===t?(e.consume(t),x):enE(t)?(s=b,_(t)):(e.consume(t),b)}function x(e){return 62===e?I(e):b(e)}function S(t){return eny(t)?(e.consume(t),T):n(t)}function T(t){return 45===t||eng(t)?(e.consume(t),T):function t(n){return enE(n)?(s=t,_(n)):enw(n)?(e.consume(n),t):I(n)}(t)}function v(t){return 45===t||eng(t)?(e.consume(t),v):47===t||62===t||enk(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),I):58===t||95===t||eny(t)?(e.consume(t),k):enE(t)?(s=E,_(t)):enw(t)?(e.consume(t),E):I(t)}function k(t){return 45===t||46===t||58===t||95===t||eng(t)?(e.consume(t),k):function t(n){return 61===n?(e.consume(n),w):enE(n)?(s=t,_(n)):enw(n)?(e.consume(n),t):E(n)}(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):enE(t)?(s=w,_(t)):enw(t)?(e.consume(t),w):(e.consume(t),P)}function A(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):enE(t)?(s=A,_(t)):(e.consume(t),A)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||enk(t)?E(t):(e.consume(t),P)}function C(e){return 47===e||62===e||enk(e)?E(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function _(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return enw(t)?enI(e,L,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),s(t)}}}],91:ere,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return enE(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},enR],93:en5,95:enM,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,s=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),s++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",o(a))}(l)):enE(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||enE(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}}});let erm=/[\0\t\n\r]/g,ery=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function erg(e){return e.replace(ery,erb)}function erb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return enh(n.slice(t?2:1),t?16:10)}return enu(n)||e}let erx={}.hasOwnProperty;function erS(e){return{line:e.line,column:e.column,offset:e.offset}}function erT(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+etK({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+etK({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+etK({start:t.start,end:t.end})+") is still open")}function erv(e){let t=this;t.parser=function(n){var r,i;let s,a,o,l;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(y,i),htmlFlowData:u,htmlText:r(y,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(g),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=enh(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=enu(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=erS(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=enm(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(p),hardBreakTrailing:a(p),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=erg(t),n.identifier=enm(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=erS(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=enm(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(erx.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:o,buffer:i,resume:l,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,s,a,o=t-1,l=-1,u=!1;for(;++o<=n;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||s||(s=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=o;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}s&&(!i||s<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",r,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(o,0,["enter",i,t[2]]),o++,n++,s=void 0,a=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];erx.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||erT).call(a,void 0,e[0])}for(r.position={start:erS(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:erS(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){s.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:erS(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||erT).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+etK({start:e.start,end:e.end})+"): it’s not open");n.position.end=erS(e.end)}function l(){return ens(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:erS(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=erS(e.end)}function p(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function y(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!enW(e););return e}((function(e){let t={constructs:enf([erh,...(e||{}).extensions||[]]),content:n(en_),defined:[],document:n(enN),flow:n(ero),lazy:{},string:n(eru),text:n(erc)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},s=[],a=[],o=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){enE(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),o.push(n),n},exit:function(e){let t=o.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:h(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,y()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let s,a=e[r];if("string"==typeof a)s=a;else switch(a){case -5:s="\r";break;case -4:s="\n";break;case -3:s="\r\n";break;case -2:s=t?" ":" ";break;case -1:if(!t&&n)continue;s=" ";break;default:s=String.fromCharCode(a)}n=-2===a,i.push(s)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(a=enp(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=enD(s,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,s=t.end._index,a=t.end._bufferIndex;if(r===s)n=[e[r].slice(i,a)];else{if(n=e.slice(r,s),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[s].slice(0,a))}return n}(a,e)}function d(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:s}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:s}}function f(e,t){t.restore()}function h(e,t){return function(n,i,s){var a;let c,p,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(a=n,function(e){let t=null!==e&&a[e],n=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,p=0,0===e.length)?s:g(e[p])}function g(e){return function(n){let i,s,a,c,p;return(i=d(),s=u.previous,a=u.currentConstruct,c=u.events.length,p=Array.from(o),h={from:c,restore:function(){r=i,u.previous=s,u.currentConstruct=a,u.events.length=c,o=p,y()}},f=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x():e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,b,x)(n)}}function b(t){return e(f,h),i}function x(e){return(h.restore(),++p<c.length)?g(c[p]):s}}}function m(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&enc(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((a=1,o="",l=!0,function(e,t,n){let r,i,u,c,p,d=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,o="",l&&(65279===e.charCodeAt(0)&&u++,l=void 0);u<e.length;){if(erm.lastIndex=u,c=(r=erm.exec(e))&&void 0!==r.index?r.index:e.length,p=e.charCodeAt(c),!r){o=e.slice(u);break}if(10===p&&u===c&&s)d.push(-3),s=void 0;else switch(s&&(d.push(-5),s=void 0),u<c&&(d.push(e.slice(u,c)),a+=c-u),p){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:s=!0,a=1}u=c+1}return n&&(s&&d.push(-5),o&&d.push(o),d.push(null)),d})(n,r,!0))))}}function erE(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let erk=function(e){var t,n;if(null==e)return erA;if("function"==typeof e)return erw(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=erk(e[n]);return erw(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,erw(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,erw(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function erw(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function erA(){return!0}let erP=[],erC="skip";function erI(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let s=erk(i),a=r?-1:1;(function e(i,o,l){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,p,d,f=erP;if((!t||s(i,o,l[l.length-1]||void 0))&&!1===(f=Array.isArray(u=n(i,l))?u:"number"==typeof u?[!0,u]:null==u?erP:[u])[0])return f;if("children"in i&&i.children&&i.children&&f[0]!==erC)for(p=(r?i.children.length:-1)+a,d=l.concat(i);p>-1&&p<i.children.length;){if(!1===(c=e(i.children[p],p,d)())[0])return c;p="number"==typeof c[1]?c[1]:p+a}return f}})(e,void 0,[])()}let er_="phrasing",erN=["autolink","link","image","label"];function erL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function erO(e){this.config.enter.autolinkProtocol.call(this,e)}function erD(e){this.config.exit.autolinkProtocol.call(this,e)}function erM(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function erF(e){this.config.exit.autolinkEmail.call(this,e)}function erB(e){this.exit(e)}function erj(e){!function(e,t,n){let r=erk((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),s=-1;for(;++s<i.length;)erI(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){let e=t[a],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[s][0],a=i[s][1],o=0,l=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let p=r.exec(e.value);for(;p;){let n=p.index,i={index:p.index,input:p.input,stack:[...t,e]},s=a(...p,i);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?r.lastIndex=n+1:(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=n+p[0].length,u=!0),!r.global)break;p=r.exec(e.value)}return u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,erR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,er$]],{ignore:["link","linkReference"]})}function erR(e,t,n,r,i){let s,a="";if(!erU(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="http://"),(s=n.split(".")).length<2||s[s.length-1]&&(/_/.test(s[s.length-1])||!/[a-zA-Z\d]/.test(s[s.length-1]))||s[s.length-2]&&(/_/.test(s[s.length-2])||!/[a-zA-Z\d]/.test(s[s.length-2])))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=erE(e,"("),s=erE(e,")");for(;-1!==r&&i>s;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),s++;return[e,n]}(n+r);if(!o[0])return!1;let l={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function er$(e,t,n,r){return!(!erU(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function erU(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||enP(n)||enA(n))&&(!t||47!==n)}function erq(){this.buffer()}function erK(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function erV(){this.buffer()}function erJ(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function erz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=enm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function erW(e){this.exit(e)}function erX(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=enm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function erH(e){this.exit(e)}function erY(e,t,n,r){let i=n.createTracker(r),s=i.move("[^"),a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),o(),a(),s+=i.move("]")}function erG(e,t,n){return 0===t?e:erQ(e,t,n)}function erQ(e,t,n){return(n?"":" ")+e}erY.peek=function(){return"["};let erZ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function er0(e){this.enter({type:"delete",children:[]},e)}function er1(e){this.exit(e)}function er2(e,t,n,r){let i=n.createTracker(r),s=n.enter("strikethrough"),a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function er3(e){return e.length}function er4(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}er2.peek=function(){return"~"};let er5={}.hasOwnProperty,er8={}.hasOwnProperty;function er6(e,t,n){return">"+(n?"":" ")+e}function er9(e,t){return er7(e,t.inConstruct,!0)&&!er7(e,t.notInConstruct,!1)}function er7(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function eie(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&er9(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function eit(e,t){return!!(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ein(e,t,n){return(n?"":" ")+e}function eir(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function eii(e){return"&#x"+e.toString(16).toUpperCase()+";"}function eis(e,t,n){let r=enO(e),i=enO(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function eia(e,t,n,r){let i=function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),s=n.enter("emphasis"),a=n.createTracker(r),o=a.move(i),l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()})),u=l.charCodeAt(0),c=eis(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=eii(u)+l.slice(1));let p=l.charCodeAt(l.length-1),d=eis(r.after.charCodeAt(0),p,i);d.inside&&(l=l.slice(0,-1)+eii(p));let f=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+l+f}function eio(e,t,n,r){let i,s,a;"function"==typeof t&&"function"!=typeof n?(s=void 0,a=t,i=n):(s=t,a=n,i=r),erI(e,s,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},i)}function eil(e,t){let n=!1;return eio(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,!1}),!!((!e.depth||e.depth<3)&&ens(e)&&(t.options.setext||n))}function eiu(e){return e.value||""}function eic(e,t,n,r){let i=eir(n),s='"'===i?"Quote":"Apostrophe",a=n.enter("image"),o=n.enter("label"),l=n.createTracker(r),u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),a(),u}function eip(e,t,n,r){let i=e.referenceType,s=n.enter("imageReference"),a=n.enter("label"),o=n.createTracker(r),l=o.move("!["),u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();let c=n.stack;n.stack=[],a=n.enter("reference");let p=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),"full"!==i&&u&&u===p?"shortcut"===i?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(p+"]"),l}function eid(e,t,n){let r=e.value||"",i="`",s=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){let e,t=n.unsafe[s],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function eif(e,t){let n=ens(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function eih(e,t,n,r){let i,s,a=eir(n),o='"'===a?"Quote":"Apostrophe",l=n.createTracker(r);if(eif(e,n)){let t=n.stack;n.stack=[],i=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()})),r+=l.move(">"),i(),n.stack=t,r}i=n.enter("link"),s=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),i(),u}function eim(e,t,n,r){let i=e.referenceType,s=n.enter("linkReference"),a=n.enter("label"),o=n.createTracker(r),l=o.move("["),u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();let c=n.stack;n.stack=[],a=n.enter("reference");let p=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),"full"!==i&&u&&u===p?"shortcut"===i?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(p+"]"),l}function eiy(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eig(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}eia.peek=function(e,t,n){return n.options.emphasis||"*"},eiu.peek=function(){return"<"},eic.peek=function(){return"!"},eip.peek=function(){return"!"},eid.peek=function(){return"`"},eih.peek=function(e,t,n){return eif(e,n)?"<":"["},eim.peek=function(){return"["};let eib=erk(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function eix(e,t,n,r){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),s=n.enter("strong"),a=n.createTracker(r),o=a.move(i+i),l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()})),u=l.charCodeAt(0),c=eis(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=eii(u)+l.slice(1));let p=l.charCodeAt(l.length-1),d=eis(r.after.charCodeAt(0),p,i);d.inside&&(l=l.slice(0,-1)+eii(p));let f=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},o+l+f}eix.peek=function(e,t,n){return n.options.strong||"*"};let eiS={blockquote:function(e,t,n,r){let i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);let a=n.indentLines(n.containerFlow(e,s.current()),er6);return i(),a},break:eie,code:function(e,t,n,r){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),s=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(eit(e,n)){let e=n.enter("codeIndented"),t=n.indentLines(s,ein);return e(),t}let o=n.createTracker(r),l=i.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),i=r,s=0,a=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++s>a&&(a=s):s=1,i=r+t.length,r=n.indexOf(t,i);return a}(s,i)+1,3)),u=n.enter("codeFenced"),c=o.move(l);if(e.lang){let t=n.enter(`codeFencedLang${a}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...o.current()})),t()}return c+=o.move("\n"),s&&(c+=o.move(s+"\n")),c+=o.move(l),u(),c},definition:function(e,t,n,r){let i=eir(n),s='"'===i?"Quote":"Apostrophe",a=n.enter("definition"),o=n.enter("label"),l=n.createTracker(r),u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),a(),u},emphasis:eia,hardBreak:eie,heading:function(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if(eil(e,n)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}let a="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(u)&&(u=eii(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),o(),u},html:eiu,image:eic,imageReference:eip,inlineCode:eid,link:eih,linkReference:eim,list:function(e,t,n,r){let i=n.enter("list"),s=n.bulletCurrent,a=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):eiy(n),o=e.ordered?"."===a?")":".":function(e){let t=eiy(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),l=!!t&&!!n.bulletLastUsed&&a===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),eig(n)===a&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;let u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),u},listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),s=n.bulletCurrent||eiy(n);t&&"list"===t.type&&t.ordered&&(s=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+s);let a=s.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?s:s+" ".repeat(a-s.length))+e});return l(),u},paragraph:function(e,t,n,r){let i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,r);return s(),i(),a},root:function(e,t,n,r){return(e.children.some(function(e){return eib(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:eix,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(eig(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}},eiT=[function(e,t,n,r){if("code"===t.type&&eit(t,r)&&("list"===e.type||e.type===t.type&&eit(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&eil(t,r)))return;return+!!n.spread}}],eiv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],eiE=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:eiv},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:eiv},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:eiv},{atBreak:!0,character:"+",after:"(?:[ \r\n])"},{atBreak:!0,character:"-",after:"(?:[ \r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:eiv},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:eiv},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:eiv},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:eiv},{atBreak:!0,character:"~"}];function eik(e){return e.label||!e.identifier?e.label||"":erg(e.identifier)}function eiw(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}let eiA=/\r?\n|\r/g;function eiP(e,t){let n,r=[],i=0,s=0;for(;n=eiA.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,s++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,s,!e))}}function eiC(e,t){return e-t}function eiI(e,t){let n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],s=[],a=e+t,o=-1,l=0;for(;n=r.exec(a);)i.push(n.index);for(;++o<i.length;)l!==i[o]&&s.push(e.slice(l,i[o])),s.push("\\"),l=i[o];return s.push(e.slice(l)),s.join("")}function ei_(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,s=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1];return i+=n.length-1,s=1===n.length?s+a.length:1+a.length+r,t},current:function(){return{now:{line:i,column:s},lineShift:r}},shift:function(e){r+=e}}}function eiN(e){throw Error("Cannot handle value `"+e+"`, expected node")}function eiL(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function eiO(e,t){if("definition"===e.type&&e.type===t.type)return 0}function eiD(e,t){return function(e,t,n){let r,i=t.indexStack,s=e.children||[],a=[],o=-1,l=n.before;i.push(-1);let u=t.createTracker(n);for(;++o<s.length;){let c,p=s[o];if(i[i.length-1]=o,o+1<s.length){let n=t.handle.handlers[s[o+1].type];n&&n.peek&&(n=n.peek),c=n?n(s[o+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else c=n.after;a.length>0&&("\r"===l||"\n"===l)&&"html"===p.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",(u=t.createTracker(n)).move(a.join("")));let d=t.handle(p,e,t,{...u.current(),after:c,before:l});r&&r===d.slice(0,1)&&(d=eii(r.charCodeAt(0))+d.slice(1));let f=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,r=void 0,f&&(a.length>0&&f.before&&l===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+eii(l.charCodeAt(0))),f.after&&(r=c)),u.move(d),a.push(d),l=d.slice(-1)}return i.pop(),a.join("")}(e,this,t)}function eiM(e,t){return function(e,t,n){let r=t.indexStack,i=e.children||[],s=t.createTracker(n),a=[],o=-1;for(r.push(-1);++o<i.length;){let n=i[o];r[r.length-1]=o,a.push(s.move(t.handle(n,e,t,{before:"\n",after:"\n",...s.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),o<i.length-1&&a.push(s.move(function(e,t,n,r){let i=r.join.length;for(;i--;){let s=r.join[i](e,t,n,r);if(!0===s||1===s)break;if("number"==typeof s)return"\n".repeat(1+s);if(!1===s)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}(n,i[o+1],e,t)))}return r.pop(),a.join("")}(e,this,t)}function eiF(e,t){return function(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),i=[],s=[],a={},o=-1;for(;++o<e.unsafe.length;){let t,n=e.unsafe[o];if(!er9(e.stack,n))continue;let s=e.compilePattern(n);for(;t=s.exec(r);){let e="before"in n||!!n.atBreak,r="after"in n,s=t.index+(e?t[1].length:0);i.includes(s)?(a[s].before&&!e&&(a[s].before=!1),a[s].after&&!r&&(a[s].after=!1)):(i.push(s),a[s]={before:e,after:r})}}i.sort(eiC);let l=n.before?n.before.length:0,u=r.length-(n.after?n.after.length:0);for(o=-1;++o<i.length;){let e=i[o];!(e<l)&&!(e>=u)&&(!(e+1<u)||i[o+1]!==e+1||!a[e].after||a[e+1].before||a[e+1].after)&&(i[o-1]!==e-1||!a[e].before||a[e-1].before||a[e-1].after)&&(l!==e&&s.push(eiI(r.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(s.push(eii(r.charCodeAt(e))),l++):s.push("\\"))}return s.push(eiI(r.slice(l,u),n.after)),s.join("")}(this,e,t)}function eiB(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function eij(e){this.exit(e),this.data.inTable=void 0}function eiR(e){this.enter({type:"tableRow",children:[]},e)}function ei$(e){this.exit(e)}function eiU(e){this.enter({type:"tableCell",children:[]},e)}function eiq(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,eiK));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function eiK(e,t){return"|"===t?t:e}function eiV(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function eiJ(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,s=-1;for(;++s<i.length;){let e=i[s];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function eiz(e,t,n,r){let i=e.children[0],s="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let l=eiS.listItem(e,t,n,{...r,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}let eiW={tokenize:function(e,t,n){let r=0;return function t(s){return(87===s||119===s)&&r<3?(r++,e.consume(s),t):46===s&&3===r?(e.consume(s),i):n(s)};function i(e){return null===e?n(e):t(e)}},partial:!0},eiX={tokenize:function(e,t,n){let r,i,s;return a;function a(t){return 46===t||95===t?e.check(eiY,l,o)(t):null===t||enk(t)||enP(t)||45!==t&&enA(t)?l(t):(s=!0,e.consume(t),a)}function o(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!s?n(e):t(e)}},partial:!0},eiH={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?s(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(eiY,t,s)(a):null===a||enk(a)||enP(a)?t(a):(e.consume(a),i)}function s(t){return 41===t&&r++,e.consume(t),i}},partial:!0},eiY={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),s):93===a?(e.consume(a),i):60===a||null===a||enk(a)||enP(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||enk(e)||enP(e)?t(e):r(e)}function s(t){return eny(t)?function t(i){return 59===i?(e.consume(i),r):eny(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},eiG={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eng(e)?n(e):t(e)}},partial:!0},eiQ={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!ei3.call(r,r.previous)||ei6(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eiW,e.attempt(eiX,e.attempt(eiH,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:ei3},eiZ={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",s=!1;return function(t){return(72===t||104===t)&&ei4.call(r,r.previous)&&!ei6(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):n(t)};function a(t){if(eny(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),s)?l:(s=!0,o):n(t)}function l(t){return null===t||enx(t)||enk(t)||enP(t)||enA(t)?n(t):e.attempt(eiX,e.attempt(eiH,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ei4},ei0={name:"emailAutolink",tokenize:function(e,t,n){let r,i,s=this;return function(t){return!ei8(t)||!ei5.call(s,s.previous)||ei6(s.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return ei8(r)?(e.consume(r),t):64===r?(e.consume(r),a):n(r)}(t))};function a(t){return 46===t?e.check(eiG,l,o)(t):45===t||95===t||eng(t)?(i=!0,e.consume(t),a):l(t)}function o(t){return e.consume(t),r=!0,a}function l(a){return i&&r&&eny(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:ei5},ei1={},ei2=48;for(;ei2<123;)ei1[ei2]=ei0,58==++ei2?ei2=65:91===ei2&&(ei2=97);function ei3(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||enk(e)}function ei4(e){return!eny(e)}function ei5(e){return!(47===e||ei8(e))}function ei8(e){return 43===e||45===e||46===e||95===e||eng(e)}function ei6(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ei1[43]=ei0,ei1[45]=ei0,ei1[46]=ei0,ei1[95]=ei0,ei1[72]=[ei0,eiZ],ei1[104]=[ei0,eiZ],ei1[87]=[ei0,eiQ],ei1[119]=[ei0,eiQ];let ei9={tokenize:function(e,t,n){let r=this;return enI(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ei7(e,t,n){let r,i=this,s=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;s--;){let e=i.events[s][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(s){if(!r||!r._balanced)return n(s);let o=enm(i.sliceSerialize({start:r.end,end:i.now()}));return 94===o.codePointAt(0)&&a.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s)):n(s)}}function ese(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function est(e,t,n){let r,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(a>999||93===o&&!r||null===o||91===o||enk(o))return n(o);if(93===o){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return s.includes(enm(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return enk(o)||(r=!0),a++,e.consume(o),92===o?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function esn(e,t,n){let r,i,s=this,a=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||enk(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=enm(s.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return enk(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),enI(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function esr(e,t,n){return e.check(enB,t,e.attempt(ei9,t,n))}function esi(e){e.exit("gfmFootnoteDefinition")}class ess{constructor(){this.map=[],this.index=new Map}add(e,t,n){!function(e,t,n,r){if(0===n&&0===r.length)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let s=[t,n,r];e.map.push(s),e.index.set(t,s)}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}}function esa(e,t,n){let r,i=this,s=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let{type:e}=i.events[t][1];if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,s="tableHead"===r||"tableRow"===r?b:o;return s===b&&i.parser.lazy[i.now().line]?n(e):s(e)};function o(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,a+=1),l(n)}function l(t){return null===t?n(t):enE(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):enw(t)?enI(e,l,"whitespace")(t):(a+=1,r&&(r=!1,s+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||enk(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,enw(t))?enI(e,d,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t)}function d(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return enw(t)?enI(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||enE(t)?g(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(n))}(t)):n(t)}function y(t){return enw(t)?enI(e,g,"whitespace")(t):g(t)}function g(i){if(124===i)return d(i);if(null===i||enE(i))return r&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function b(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||enE(n)?(e.exit("tableRow"),t(n)):enw(n)?enI(e,x,"whitespace")(n):(e.enter("data"),S(n))}function S(t){return null===t||124===t||enk(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?T:S)}function T(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function eso(e,t){let n,r,i,s=-1,a=!0,o=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,p=0,d=new ess;for(;++s<e.length;){let f=e[s],h=f[1];"enter"===f[0]?"tableHead"===h.type?(c=!1,0!==p&&(esu(d,t,p,n,r),r=void 0,p=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(s,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,i=void 0,l=[0,0,0,0],u=[0,s+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},d.add(s,0,[["enter",r,t]])),o="tableDelimiterRow"===h.type?2:r?3:1):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(a=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=esl(d,t,l,o,void 0,i),l=[0,0,0,0]),u[2]=s)):"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(u[0]=u[1],i=esl(d,t,l,o,void 0,i)),u=[(l=u)[1],s,0,0])):"tableHead"===h.type?(c=!0,p=s):"tableRow"===h.type||"tableDelimiterRow"===h.type?(p=s,0!==l[1]?(u[0]=u[1],i=esl(d,t,l,o,s,i)):0!==u[1]&&(i=esl(d,t,u,o,s,i)),o=0):o&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=s)}for(0!==p&&esu(d,t,p,n,r),d.consume(t.events),s=-1;++s<t.events.length;){let e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,s))}return e}function esl(e,t,n,r,i,s){0!==n[0]&&(s.end=Object.assign({},esc(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let a=esc(t.events,n[1]);if(s={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",s,t]]),0!==n[2]){let i=esc(t.events,n[2]),s=esc(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},s)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(s.end=Object.assign({},esc(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function esu(e,t,n,r,i){let s=[],a=esc(t.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),r.end=Object.assign({},a),s.push(["exit",r,t]),e.add(n+1,0,s)}function esc(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let esp={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return enk(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return enE(r)?t(r):enw(r)?e.check({tokenize:esd},t,n)(r):n(r)}}};function esd(e,t,n){return enI(e,function(e){return null===e?n(e):t(e)},"whitespace")}let esf={};function esh(e){let t,n,r,i=e||esf,s=this.data(),a=s.micromarkExtensions||(s.micromarkExtensions=[]),o=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),l=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);a.push(enf([{text:ei1},{document:{91:{name:"gfmFootnoteDefinition",tokenize:esn,continuation:{tokenize:esr},exit:esi}},text:{91:{name:"gfmFootnoteCall",tokenize:est},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ei7,resolveTo:ese}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,s=this.events,a=0;return function(o){return 126===i&&"characterEscape"!==s[s.length-1][1].type?r(o):(e.enter("strikethroughSequenceTemporary"),function s(o){let l=enO(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);let u=e.exit("strikethroughSequenceTemporary"),c=enO(o);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&enc(a,a.length,0,enD(o,e.slice(r+1,n),t)),enc(a,a.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),enc(e,r-1,n-r+3,a),n=r+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:esa,resolveAll:eso}}},{text:{91:esp}}])),o.push([{transforms:[erj],enter:{literalAutolink:erL,literalAutolinkEmail:erO,literalAutolinkHttp:erO,literalAutolinkWww:erO},exit:{literalAutolink:erB,literalAutolinkEmail:erF,literalAutolinkHttp:erD,literalAutolinkWww:erM}},{enter:{gfmFootnoteCallString:erq,gfmFootnoteCall:erK,gfmFootnoteDefinitionLabelString:erV,gfmFootnoteDefinition:erJ},exit:{gfmFootnoteCallString:erz,gfmFootnoteCall:erW,gfmFootnoteDefinitionLabelString:erX,gfmFootnoteDefinition:erH}},{canContainEols:["delete"],enter:{strikethrough:er0},exit:{strikethrough:er1}},{enter:{table:eiB,tableData:eiU,tableHeader:eiU,tableRow:eiR},exit:{codeText:eiq,table:eij,tableData:ei$,tableHeader:ei$,tableRow:ei$}},{exit:{taskListCheckValueChecked:eiV,taskListCheckValueUnchecked:eiV,paragraph:eiJ}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:er_,notInConstruct:erN},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:er_,notInConstruct:erN},{character:":",before:"[ps]",after:"\\/",inConstruct:er_,notInConstruct:erN}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let s=n.createTracker(i),a=s.move("[^"),o=n.enter("footnoteDefinition"),l=n.enter("label");return a+=s.move(n.safe(n.associationId(e),{before:a,after:"]"})),l(),a+=s.move("]:"),e.children&&e.children.length>0&&(s.shift(4),a+=s.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,s.current()),r?erQ:erG))),o(),a},footnoteReference:erY},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:erZ}],handlers:{delete:er2}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=eiS.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return o(function(e,t,n){let r=e.children,i=-1,s=[],a=t.enter("table");for(;++i<r.length;)s[i]=l(r[i],t,n);return a(),s}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){let i=o([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){let i=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...r,before:s,after:s});return a(),i(),o}function o(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||er3,s=[],a=[],o=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],s=-1;for(e[c].length>u&&(u=e[c].length);++s<e[c].length;){var p;let a=null==(p=e[c][s])?"":String(p);if(!1!==n.alignDelimiters){let e=i(a);r[s]=e,(void 0===l[s]||e>l[s])&&(l[s]=e)}t.push(a)}a[c]=t,o[c]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)s[d]=er4(r[d]);else{let e=er4(r);for(;++d<u;)s[d]=e}d=-1;let f=[],h=[];for(;++d<u;){let e=s[d],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length),a=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[d]&&(l[d]=i),h[d]=i),f[d]=a}a.splice(1,0,f),o.splice(1,0,h),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=o[c];d=-1;let r=[];for(;++d<u;){let i=e[d]||"",a="",o="";if(!1!==n.alignDelimiters){let e=l[d]-(t[d]||0),n=s[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=a=" ".repeat(e/2):o=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||d)&&r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(i),!1!==n.alignDelimiters&&r.push(o),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||d!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,s=[],o=t.enter("tableRow");for(;++i<r.length;)s[i]=a(r[i],e,t,n);return o(),s}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eiz}}]})}var esm={exports:{}};function esy(e){for(var t,n,r,i,s=1,a=[].slice.call(arguments),o=0,l=e.length,u="",c=!1,p=!1,d=function(){return a[s++]};o<l;++o)if(t=e[o],c)switch(c=!1,"."==t?(p=!1,t=e[++o]):"0"==t&&"."==e[o+1]?(p=!0,o+=2,t=e[o]):p=!0,i=function(){for(var n="";/\d/.test(e[o]);)n+=e[o++],t=e[o];return n.length>0?parseInt(n):null}(),t){case"b":u+=parseInt(d(),10).toString(2);break;case"c":"string"==typeof(n=d())||n instanceof String?u+=n:u+=String.fromCharCode(parseInt(n,10));break;case"d":u+=parseInt(d(),10);break;case"f":r=String(parseFloat(d()).toFixed(i||6)),u+=p?r:r.replace(/^0/,"");break;case"j":u+=JSON.stringify(d());break;case"o":u+="0"+parseInt(d(),10).toString(8);break;case"s":u+=d();break;case"x":u+="0x"+parseInt(d(),10).toString(16);break;case"X":u+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?c=!0:u+=t;return u}(D=esm.exports=esy).format=esy,D.vsprintf=function(e,t){return esy.apply(null,[e].concat(t))},"u">typeof console&&"function"==typeof console.log&&(D.printf=function(){console.log(esy.apply(null,arguments))});var esg=esm.exports.default;let esb=Object.assign(esx(Error),{eval:esx(EvalError),range:esx(RangeError),reference:esx(ReferenceError),syntax:esx(SyntaxError),type:esx(TypeError),uri:esx(URIError)});function esx(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){return new e(n?esg(n,...r):n)}}let esS={}.hasOwnProperty,esT={yaml:"-",toml:"+"};function esv(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=function(e){let t=e;if("string"==typeof t){if(!esS.call(esT,t))throw esb("Missing matter definition for `%s`",t);t={type:t,marker:esT[t]}}else if("object"!=typeof t)throw esb("Expected matter to be an object, not `%j`",t);if(!esS.call(t,"type"))throw esb("Missing `type` in matter `%j`",t);if(!esS.call(t,"fence")&&!esS.call(t,"marker"))throw esb("Missing `marker` or `fence` in matter `%j`",t);return t}(r[n]);return t}function esE(e,t){return e.marker?esk(e.marker,t).repeat(3):esk(e.fence,t)}function esk(e,t){return"string"==typeof e?e:e[t]}function esw(e){let t=this.resume(),n=this.stack[this.stack.length-1];this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function esA(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function esP(e,t){return e.marker?esC(e.marker,t).repeat(3):esC(e.fence,t)}function esC(e,t){return"string"==typeof e?e:e[t]}function esI(e){let t=e||"yaml",n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){let t=esv(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=esE(e,"open").charCodeAt(0),s=function(e){let t,n=e.anywhere,r=e.type,i=r+"Fence",s=i+"Sequence",a=r+"Value",o={tokenize:function(e,n,r){let a=0;return function(n){return n===t.charCodeAt(a)?(e.enter(i),e.enter(s),function n(i){return a===t.length?(e.exit(s),enw(i))?(e.enter("whitespace"),function t(n){return enw(n)?(e.consume(n),t):(e.exit("whitespace"),o(n))}(i)):o(i):i===t.charCodeAt(a++)?(e.consume(i),n):r(i)}(n)):r(n)};function o(t){return null===t||enE(t)?(e.exit(i),n(t)):r(t)}},partial:!0},l=0;return{tokenize:function(u,c,p){let d=this;return function(a){let o=d.now();return 1===o.column&&(1===o.line||n)&&(t=esE(e,"open"),l=0,a===t.charCodeAt(l))?(u.enter(r),u.enter(i),u.enter(s),function e(n){return l===t.length?(u.exit(s),enw(n))?(u.enter("whitespace"),function e(t){return enw(t)?(u.consume(t),e):(u.exit("whitespace"),f(t))}(n)):f(n):n===t.charCodeAt(l++)?(u.consume(n),e):p(n)}(a)):p(a)};function f(n){return enE(n)?(u.exit(i),u.enter("lineEnding"),u.consume(n),u.exit("lineEnding"),t=esE(e,"close"),l=0,u.attempt(o,y,h)):p(n)}function h(e){return null===e||enE(e)?m(e):(u.enter(a),function e(t){return null===t||enE(t)?(u.exit(a),m(t)):(u.consume(t),e)}(e))}function m(e){return null===e?p(e):(u.enter("lineEnding"),u.consume(e),u.exit("lineEnding"),u.attempt(o,y,h))}function y(e){return u.exit(r),c(e)}},concrete:!0}}(e),a=n[i];Array.isArray(a)?a.push(s):n[i]=[s]}return{flow:n}}(t)),i.push(function(e){let t=esv(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=function(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}(e),r[e.type]=esw,r[e.type+"Value"]=esA}return{enter:n,exit:r}}(t)),s.push(function(e){let t=[],n={},r=esv(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=function(e){let t=esP(e,"open"),n=esP(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+n}}(e);let s=esP(e,"open");t.push({atBreak:!0,character:s.charAt(0),after:function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(s.charAt(1))})}return{unsafe:t,handlers:n}}(t))}let{stringLiteral:es_,templateLiteral:esN,templateElement:esL}=tc,esO=e=>{if(!e.includes("\n"))return es_(e);let t=((e,t=4)=>{let n=e.split("\n"),r=[""],i=" ".repeat(2*t),s=" ".repeat(t);for(let e of n)r.push(`${i}${e}`);return r.push(s),r.join("\n")})(e);return esN([esL({raw:t.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replaceAll("${","\\${"),cooked:t})],[])},{stringLiteral:esD,identifier:esM,callExpression:esF}=tc,{identifier:esB,callExpression:esj}=tc,{identifier:esR,callExpression:es$,stringLiteral:esU}=tc,{stringLiteral:esq,identifier:esK,callExpression:esV}=tc,{identifier:esJ,callExpression:esz,stringLiteral:esW}=tc,{identifier:esX,callExpression:esH}=tc,{identifier:esY,callExpression:esG,stringLiteral:esQ}=tc,esZ=e=>{let{type:t}=e,n=es0[t];return n?n(e):esQ("")},es0={text:e=>esO(e.value),strong:e=>esj(esB("bold"),e.children.map(esZ)),emphasis:e=>esG(esY("italic"),e.children.map(esZ)),delete:e=>esG(esY("strike"),e.children.map(esZ)),inlineCode:({value:e})=>{let t=e.includes("`")?` ${e} `:e;return esH(esX("code"),[esO(t)])},link:e=>{let t=e.children.map(esZ),[n]=t,r=[];return 1===t.length?r.push(n):r.push(es$(esR("paragraph"),t)),r.push(esU(e.url)),e.title&&r.push(esU(e.title)),es$(esR("link"),r)},image:e=>{let t=[esW(e.alt||""),esW(e.url)];return e.title&&t.push(esW(e.title)),esz(esJ("image"),t)},linkReference:e=>{let t=[...e.children.map(esZ),esq(e.label)];return esV(esK("linkReference"),t)},imageReference:e=>{let{alt:t="",label:n}=e;return esF(esM("imageReference"),[esD(t),esD(n)])},break:()=>esG(esY("br"),[]),html:e=>esG(esY("html"),[esQ(e.value)])},{templateLiteral:es1,templateElement:es2,identifier:es3,callExpression:es4}=tc,{stringLiteral:es5,identifier:es8,callExpression:es6}=tc,{identifier:es9,callExpression:es7}=tc,eae=e=>es7(es9("paragraph"),e.children.map(esZ)),{identifier:eat,callExpression:ean}=tc,ear=e=>ean(eat("blockquote"),function(e){let t=[];for(let n of e){if("blockquote"===n.type){t.push(ear(n));continue}if("list"===n.type){t.push(eaE(n));continue}t.push(eae(n))}return t}(e.children)),{identifier:eai,callExpression:eas}=tc,{identifier:eaa,callExpression:eao,numericLiteral:eal}=tc,{identifier:eau,callExpression:eac,stringLiteral:eap}=tc,{arrayExpression:ead,identifier:eaf,callExpression:eah,stringLiteral:eam}=tc,eay=e=>e||"",{identifier:eag,callExpression:eab,arrayExpression:eax}=tc,{identifier:eaS,callExpression:eaT,booleanLiteral:eav}=tc;function eaE(e){let{type:t}=e,n=eaP[t];return n?n(e):eak(eaw("raw"),[eaA(e.type)])}let{callExpression:eak,identifier:eaw,stringLiteral:eaA}=tc,eaP={heading:e=>{let{depth:t}=e;return eao(eaa("heading"),[eal(t),...e.children.map(esZ)])},paragraph:eae,blockquote:ear,list:e=>eak(eaw(e.ordered?"ol":"ul"),e.children.map(eaE)),listItem:e=>{let{children:t}=e,n=[];for(let e of t){if("list"===e.type){n.push(eaE(e));continue}if(e.children){n.push(...e.children.map(esZ));continue}n.push(eaE(e))}return"boolean"==typeof e.checked&&n.push(eav(e.checked)),eaT(eaS("li"),n)},code:e=>{let{value:t}=e,n=e.lang||"";return es6(es8("codeblock"),[es5(n),esO(t)])},thematicBreak:()=>eak(eaw("hr"),[]),html:e=>eas(eai("html"),[esO(e.value)]),table:e=>{let t=[eam(e.align.map(eay).join(",")),ead(e.children.map(eaE))];return eah(eaf("table"),t)},tableRow:e=>eab(eag("tr"),[eax(e.children.map(eaE))]),tableCell:e=>eak(eaw("td"),e.children.map(esZ)),definition:e=>{let t=[eap(e.label),eap(e.url)];return e.title&&t.push(eap(e.title)),eac(eau("definition"),t)},yaml:({value:e})=>{let t=es2({raw:e,cooked:e},!0);return es4(es3("yaml"),[es1([t],[])])}},{arrayExpression:eaC,expressionStatement:eaI,file:ea_,program:eaN}=tc,{isCallExpression:eaL,isStringLiteral:eaO}=tc,eaD=e=>{let t=e.node.arguments,n=0;for(let e of t)n+=eaM(e);return n},eaM=e=>{if(eaO(e))return e.value.length;if(eaL(e)){let{name:t}=e.callee;if("code"===t)return 2+eaM(e.arguments[0]);if("bold"===t)return 4+eaM(e.arguments[0]);if("italic"===t)return 2+eaM(e.arguments[0]);if("strike"===t)return 4+eaM(e.arguments[0])}return 0},{isStringLiteral:eaF}=tc,eaB=e=>(t,{write:n,traverse:r})=>{let i=t.get("arguments");for(let t of(n(e),i))r(t);n(e)},eaj=L_([["-: -> !CallExpression"],["-",e=>{let{name:t}=e.node.callee;return"heading"===t}],["-",e=>{let{name:t}=e.node.callee;return"table"===t}],["+: -> !",e=>{let{name:t}=e.node.callee;return"paragraph"===t}]]),{isCallExpression:eaR,isIdentifier:ea$}=tc;function eaU(e){let t=0,n=e.parentPath;for(;n;){if(eaR(n)&&n.node.callee){let{name:e}=n.node.callee;("ul"===e||"ol"===e)&&++t}n=n.parentPath}return t}let eaq=(e,t=4)=>{let n=[],r=e.split("\n").slice(1,-1),i=2*t;for(let e of r)n.push(e.slice(i));return n.join("\n")},{isIdentifier:eaK,isTemplateLiteral:eaV}=tc,eaJ=e=>eaK(e,{name:"ul"});function eaz(e){if(!e||!eaV(e))return!1;let[t]=e.node.quasis;return"\n"===eaq(t.value.cooked)}let{isStringLiteral:eaW}=tc,{isStringLiteral:eaX}=tc,{isTemplateLiteral:eaH}=tc,eaY=L_([["-: -> !CallExpression"],["+: node.callee.name","=","paragraph"]]),{isCallExpression:eaG}=tc,{isCallExpression:eaQ,isStringLiteral:eaZ}=tc,ea0=eaB("`"),{isCallExpression:ea1}=tc,ea2={blockquote:(e,{maybe:t,write:n,traverse:r})=>{let i=e.get("arguments"),s=i.length-1;for(let[a,o]of(t.write.newline(e.getPrevSibling().node),i.entries())){let{callee:e}=o.node;if(n("> "),e&&"paragraph"===e.name){let e=o.get("arguments");for(let[t,i]of e.entries())!eaz(i)&&(r(i),eaz(e[t+1])&&(n.newline(),n("> ")))}else r(o);eaJ(o)||t.write.newline(a<s),a<s&&(n(">"),n.newline())}t.write.newline(L4(e))},bold:eaB("**"),italic:eaB("*"),strike:eaB("~~"),code:ea0,heading:function(e,{write:t,traverse:n}){let r=e.getPrevSibling(),[i,...s]=e.get("arguments");for(let e of(eaj(r)&&t.newline(),t("#".repeat(i.node.value)+" "),s))n(e);L4(e)&&t.newline()},br(e,{write:t}){t(" \n")},html:(e,{write:t,maybe:n})=>{n.write.newline(e.getPrevSibling().node);let{node:r}=e.get("arguments")[0];if(eaW(r)){t(r.value),t.newline();return}let{quasis:i}=r,[s]=i,{cooked:a}=s.value;t(eaq(a)),t.newline()},link:(e,{write:t,traverse:n})=>{let r=e.get("arguments"),i=r.length,s=r.at(-1),a=i>=2&&r.at(-2),o=i-1,l=-1;eaX(s)&&eaX(a)&&i>=3&&(o=i-2,l=i-1);let u=r[o].node.value,c=l>=0?r[l].node.value:"";for(let e of(t("["),r.slice(0,o)))n(e);t(c?`](${u} "${c}")`:`](${u})`)},linkReference:(e,{write:t,traverse:n})=>{let r=e.get("arguments"),i=r.at(-1).node.value;for(let e of(t("["),r.slice(0,-1)))n(e);t(`][${i}]`)},imageReference:(e,{write:t})=>{let n=e.get("arguments"),r=n[0].node.value,i=n[1].node.value;t(`![${r}][${i}]`)},image:(e,{write:t})=>{let[n,r="",i=""]=(e=>{let t=[];for(let n of e)t.push(n.node.value);return t})(e.get("arguments"));t(i?``:``)},definition:(e,{write:t})=>{let n=e.get("arguments"),r=n[0].node.value,i=n[1].node.value,s=n.length>=3?n[2].node.value:"";t(s?`[${r}]: ${i} "${s}"`:`[${r}]: ${i}`)},paragraph:(e,{print:t,traverse:n})=>{for(let t of e.get("arguments"))n(t);eaG(e.parentPath)||L4(e)&&t.newline()},hr(e,{write:t}){t("---")},li(e,{write:t,traverse:n}){let r=e.get("arguments"),i=r.at(-1);if(i&&"BooleanLiteral"===i.node.type){for(let e of(t(i.node.value?"[x] ":"[ ] "),r.slice(0,-1)))n(e);return}for(let e of r)ea1(e)&&("ul"===e.node.callee.name||"ol"===e.node.callee.name)&&t.newline(),n(e)},ul:(e,{write:t,traverse:n,maybe:r})=>{let i=e.get("arguments"),s=eaU(e),a=" ".repeat(s),o=(e=>{let{callee:t}=e.parentPath.node;return ea$(t,{name:"blockquote"})})(e),{length:l}=i,u=l-1;for(let[e,s]of i.entries())r.write(e&&o,"> "),t(`${a}- `),n(s),(!o||e<u)&&t.newline()},ol:(e,{write:t,traverse:n})=>{let r=e.get("arguments"),i=eaU(e),s=" ".repeat(i),a=1;for(let e of r)t(`${s}${a++}. `),n(e),t.newline()},codeblock:(e,{write:t,maybe:n})=>{let[r,i]=e.get("arguments"),s=function(e){if(eaH(e)){let{quasis:t}=e.node,[n]=t;return eaq(n.value.cooked)}return e.node.value}(i);t("```"+r.node.value+"\n"+s+"\n```");let a=e.getNextSibling();n.print.newline(eaY(a))},table:(e,{write:t,traverse:n,store:r,maybe:i})=>{let s=e.get("arguments"),a=[],o=0,[l]=s;if(l&&eaF(l)){let e=s[0].node.value;if(e)for(let t of e.split(","))a.push(t||null);o=1}let u=s[o].get("elements"),c=function(e){let t=[];for(let n of e){let[e]=n.get("arguments"),r=e.get("elements");for(let e=0;e<r.length;e++){let n=eaD(r[e]);(!t[e]||n>t[e])&&(t[e]=n)}}return t}(u);r(c);for(let e=0;e<u.length;e++)n(u[e]),!e&&a.length>0&&function(e,t,n){for(let[r,i]of(n("|"),e.entries())){let e=Math.max(t[r]+2,3);switch(i){case"left":n(":"),n("-".repeat(e));break;case"center":n(":"),n("-".repeat(e-1)),n(":");break;case"right":n("-".repeat(e)),n(":");break;default:n("-".repeat(e))}n("|")}n("\n")}(a,c,t);i.write.newline(L4(e))},tr:(e,{write:t,traverse:n,store:r,maybe:i})=>{let[s]=e.get("arguments"),a=s.get("elements"),o=r();for(let[e,r]of(t("|"),a.entries())){if(t(" "),n(r),o){let n=function(e){let t=e.node.arguments,n=0;for(let e of t)n+=function e(t){if(eaZ(t))return t.value.length;if(eaQ(t)){let{name:n}=t.callee,[r]=t.arguments;if("code"===n)return 2+e(r);if("bold"===n)return 4+e(r);if("italic"===n)return 2+e(r);if("strike"===n)return 4+e(r);if("link"===n||"image"===n)return 1/0}return 0}(e);return n}(r),i=o[e]-n;i>0&&t(" ".repeat(i))}t(" |")}i.write.newline(L4(e))},td:(e,{traverse:t})=>{for(let n of e.get("arguments"))t(n)},raw(e,{write:t}){t(e.get("arguments")[0].node.value)},yaml(e,{write:t}){let n=e.get("arguments")[0].node.quasis[0].value.raw;t("---\n"),t(n),t("\n---")}},ea3={ArrayExpression:(e,{write:t,traverse:n})=>{let r=e.get("elements"),i=r.length-1;for(let[e,s]of r.entries())n(s),e<i&&t("\n")},CallExpression:(e,t)=>{let{name:n}=e.node.callee;if(!ea2[n])throw Error(`${n} not supported yet`);ea2[n](e,t)},StringLiteral:(e,{write:t})=>{t(e.node.value)},ExpressionStatement:(e,{print:t})=>{t("__expression")},TemplateLiteral:(e,{write:t})=>{for(let n of e.node.quasis)t(eaq(n.value.cooked))}};function ea4(e){let t=this;t.compiler=function(n){var r;let i,s;return r={...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]},!function e(t,n){var r,i,s,a;let o,l=-1;if(n.extensions)for(;++l<n.extensions.length;)e(t,n.extensions[l]);for(o in n)if(er8.call(n,o))switch(o){case"extensions":break;case"unsafe":case"join":r=t[o],(i=n[o])&&r.push(...i);break;case"handlers":s=t[o],(a=n[o])&&Object.assign(s,a);break;default:t.options[o]=n[o]}return t}(i={associationId:eik,containerPhrasing:eiD,containerFlow:eiM,createTracker:ei_,compilePattern:eiw,enter:function(e){return i.stack.push(e),function(){i.stack.pop()}},handlers:{...eiS},handle:void 0,indentLines:eiP,indexStack:[],join:[...eiT],options:{},safe:eiF,stack:[],unsafe:[...eiE]},r||{}),i.options.tightDefinitions&&i.join.push(eiO),i.handle=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,s=r.handlers;if(t&&er5.call(t,e)){let n=String(t[e]);i=er5.call(s,n)?s[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:eiN,unknown:eiL,handlers:i.handlers}),(s=i.handle(n,void 0,i,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0}))&&10!==s.charCodeAt(s.length-1)&&13!==s.charCodeAt(s.length-1)&&(s+="\n"),s}}let ea5=/\s*([a-zA-Z\d-]+)(\s+([\s\S]*))?\s*/,ea8=RegExp("(\\s*\\/\\*"+ea5.source+"\\*\\/\\s*)"),ea6=RegExp("(\\s*\x3c!--"+ea5.source+"--\x3e\\s*)");function ea9(e){var t,n;if((t=e)&&"object"==typeof t&&"type"in t&&("html"===e.type||"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type)){let t=e.value.match("html"===e.type?ea6:ea8);if(t&&t[0].length===e.value.length){let r,i=(n=t[3]||"",r={},n.replace(/\s+([-\w]+)(?:=(?:"((?:\\[\s\S]|[^"])*)"|'((?:\\[\s\S]|[^'])*)'|((?:\\[\s\S]|[^"'\s])+)))?/gi,function(e,t,n,i,s){let a=void 0===n?void 0===i?s:i:n,o=Number(a);return"true"===a||void 0===a?a=!0:"false"===a?a=!1:a.trim()&&!Number.isNaN(o)&&(a=o),r[t]=a,""}).replace(/\s+/g,"")?void 0:r);if(i)return{name:t[2],attributes:(t[4]||"").trim(),parameters:i,node:e}}}}function ea7(e,t){let n=e.indexOf("\r",t),r=e.indexOf("\n",t);return -1===r?n:-1===n||n+1===r?r:n<r?n:r}let eoe={}.hasOwnProperty,eot=["comment","html","mdxFlowExpression","mdxTextExpression"];function eon(){var e;return e={name:"lint",source:"remark-lint"},function(t,n){!function(e,t){let n,r;if(!t||"object"!=typeof t)throw Error("Expected `options`");let{file:i,marker:s,name:a,test:o}=t,{enable:l,disable:u,known:c,reset:p,source:d}=t;if(l||(l=[]),u||(u=[]),!i)throw Error("Expected `file` in `options`");if(!s)throw Error("Expected `marker` in `options`");if(!a)throw Error("Expected `name` in `options`");let f="string"==typeof d?[d]:d||[a],h=(n=String(i),r=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;r.length<e.line;){let e=r[r.length-1],t=ea7(n,e),i=-1===t?n.length+1:t+1;if(e===i)break;r.push(i)}let t=(e.line>1?r[e.line-2]:0)+e.column-1;if(t<r[e.line-1])return t}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=n.length){let t=0;for(;;){let i=r[t];if(void 0===i){let e=ea7(n,r[t-1]);i=-1===e?n.length+1:e+1,r[t]=i}if(i>e)return{line:t+1,column:e-(t>0?r[t-1]:0)+1,offset:e};t++}}}}).toOffset,m=!p,y=function(e){let t=e&&e.position&&e.position.end&&e.position.end.offset,n=0,r=!1,i=[];return eio(e,function(e){s(e.position&&e.position.start&&e.position.start.offset),"children"in e||s(e.position&&e.position.end&&e.position.end.offset)}),"number"==typeof t&&n!==t&&(s(),s(t)),i;function s(e){null==e?r=!0:n<e&&(r&&(i.push([n,e]),r=!1),n=e)}}(e),g={},b=[];function x(e,t,n){n&&(v(e,!1,t),v(n,!0,t))}function S(e,t){v(e,!1,t),t||(p=!0)}function T(e,t){v(e,!0,t),t||(p=!1)}function v(e,t,n){var r;let i,s=n?g[n]||(g[n]=[]):b;if(((i=(r=n)?g[r]:b)&&i.length>0?i[i.length-1].state:r?p?l.includes(r):!u.includes(r):!p)!==t&&s.push({state:t,point:e}),!n)for(n in g)eoe.call(g,n)&&v(e,t,n)}function E(e,t,n){if(e.line&&e.column&&t&&t.length>0){let n=t.length;for(;n--;){let r=t[n];if(r.point&&(r.point.line<e.line||r.point.line===e.line&&r.point.column<=e.column))return!0===r.state}}return n?(e.ruleId,p?l.includes(e.ruleId):!u.includes(e.ruleId)):!!(m||p)}eio(e,o,function(e,t,n){let r,o=e.position&&e.position.start,l=s(e);if(!o||!l||l.name!==a)return;let u=(r=String(l.attributes||"").trim())?r.split(/[ \t\n\r\f]+/g):[],p=u.shift(),d="enable"===p?T:"disable"===p?S:"ignore"===p?x:void 0;d||i.fail("Unknown keyword `"+p+"`: expected `'enable'`, `'disable'`, or `'ignore'`",e);let f=n&&void 0!==t&&n.children[t+1]||void 0,h=f&&f.position&&f.position.end;if(0===u.length)d(o,void 0,h);else{let t=-1;for(;++t<u.length;){let n=u[t];(function(e,t,n){let r=!c||c.includes(e);return r||i.message("Cannot "+t+" `'"+e+"'`, it’s not known",{ancestors:[n],place:n.position,ruleId:"known",source:"unified-message-control"}),r})(n,p,e)&&d(o,n,h)}}}),i.messages=i.messages.filter(function(e){var t=e;let n=y.length;if(!t.source||!f.includes(t.source))return!0;t.line||(t.line=1),t.column||(t.column=1);let r=h(t);for(;n--;)if(y[n][0]<=r&&y[n][1]>r)return!1;return(!t.ruleId||E(t,g[t.ruleId],!0))&&E(t,b,!1)})}(t,{...e,file:n,marker:ea9,test:eot})}}var eor={exports:{}},eoi=eor.exports;eor.exports=function(){var e=[],t=[],n={},r={},i={};function s(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,r){if(!e.length||n.hasOwnProperty(e))return t;for(var i=r.length;i--;){var s=r[i];if(s[0].test(t))return function(e,t){return e.replace(t[0],function(n,r){var i,s,o=(i=t[1],s=arguments,i.replace(/\$(\d{1,2})/g,function(e,t){return s[t]||""}));return""===n?a(e[r-1],o):a(n,o)})}(t,s)}return t}function l(e,t,n){return function(r){var i=r.toLowerCase();return t.hasOwnProperty(i)?a(r,i):e.hasOwnProperty(i)?a(r,e[i]):o(i,r,n)}}function u(e,t,n,r){return function(r){var i=r.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&o(i,i,n)===i}}function c(e,t,n){var r=1===t?c.singular(e):c.plural(e);return(n?t+" ":"")+r}return c.plural=l(i,r,e),c.isPlural=u(i,r,e),c.singular=l(r,i,t),c.isSingular=u(r,i,t),c.addPluralRule=function(t,n){e.push([s(t),n])},c.addSingularRule=function(e,n){t.push([s(e),n])},c.addUncountableRule=function(e){if("string"==typeof e){n[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),i[e=e.toLowerCase()]=t,r[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c}();var eos=eor.exports.default;function eoa(e,t){let n="string"==typeof e?e:e.origin,r="string"==typeof e?void 0:e.url,i=n.split(":"),s=i[1]?i[0]:void 0,a=i[1];return Object.defineProperty(o,"name",{value:n}),o;function o(e){let[n,i]=function(e,t){if(Array.isArray(t)){let[n,r]=t;switch(n){case!1:case 0:case"off":return[0,r];case!0:case 1:case"on":case"warn":return[1,r];case 2:case"error":return[2,r];default:if("number"==typeof n)throw Error("Incorrect severity `"+n+"` for `"+e+"`, expected 0, 1, or 2")}}return[1,t]}(a,e),o=2===n;if(n)return function(e,n,l){let u=n.messages.length-1;etq(t,function(e){let t=n.messages;if(e&&!t.includes(e))try{n.fail(e)}catch{}for(;++u<t.length;)Object.assign(t[u],{fatal:o,ruleId:a,source:s,url:r});l()})(e,n,i)}}}let eoo=eou("end"),eol=eou("start");function eou(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function eoc(e,t){return e<3?"atx":"atx"===t||"setext"===t?t:void 0}function eop(e){return"atx"===e?"ATX":"atx-closed"===e?"ATX (closed)":"setext"}function eod(e){return'"'===e?'`"`':"'"===e?"`'`":"`'('` and `')'`"}let eof={plugins:[function(){this.use(eon)},[eoa({origin:"remark-lint:blockquote-indentation",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-blockquote-indentation#readme"},function(e,t,n){let r;null==n||"consistent"===n||("number"==typeof n?r=n:t.fail("Unexpected value `"+n+"` for `options`, expected `number` or `'consistent'`")),erI(e,function(e,n){if(eib(e))return erC;if("blockquote"!==e.type)return;let i=eol(e),s=eol(e.children[0]);if(s&&i){let a=s.column-i.column;if(r){let i=r-a,o=Math.abs(i);0!==i&&t.message("Unexpected `"+a+"` "+eos("space",a)+" between block quote marker and content, expected `"+r+"` "+eos("space",r)+", "+(i>0?"add":"remove")+" `"+o+"` "+eos("space",o),{ancestors:[...n,e],place:s})}else r=a}})}),"consistent"],[eoa({origin:"remark-lint:checkbox-character-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-checkbox-character-style#readme"},function(e,t,n){let r,i,s,a,o=String(t);null==n||"consistent"===n||("object"==typeof n?("X"===n.checked||"x"===n.checked?r=n.checked:n.checked&&"consistent"!==n.checked&&t.fail("Unexpected value `"+n.checked+"` for `options.checked`, expected `'X'`, `'x'`, or `'consistent'`")," "===n.unchecked||" "===n.unchecked?s=n.unchecked:n.unchecked&&"consistent"!==n.unchecked&&t.fail("Unexpected value `"+n.unchecked+"` for `options.unchecked`, expected `'\\t'`, `' '`, or `'consistent'`")):t.fail("Unexpected value `"+n+"` for `options`, expected an object or `'consistent'`")),erI(e,function(e,n){if(eib(e))return erC;if("listItem"!==e.type)return;let l=e.children[0],u=eol(l);if(!l||!u||"boolean"!=typeof e.checked||"number"!=typeof u.offset)return;u.offset-=2,u.column-=2;let c=/\[([\t Xx])]/.exec(o.slice(u.offset-2,u.offset+1));if(!c)return;let p=c[1],d=" "===p?"\\t":p,f=e.checked?r:s;if(f)p!==f&&t.message("Unexpected "+(e.checked?"":"un")+"checked checkbox value `"+d+"`, expected `"+(" "===f?"\\t":f)+"`",{ancestors:[...n,e],cause:e.checked?i:a,place:u});else{let t=new etW((e.checked?"C":"Unc")+"hecked checkbox style `'"+d+"'` first defined for `'consistent'` here",{ancestors:[...n,e],place:u,ruleId:"checkbox-character-style",source:"remark-lint"});e.checked?(r=p,i=t):(s=p,a=t)}})}),"consistent"],[eoa({origin:"remark-lint:code-block-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-code-block-style#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("indented"===n||"fenced"===n?i=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'fenced'`, `'indented'`, or `'consistent'`")),erI(e,function(e,n){if(eib(e))return erC;if("code"!==e.type)return;let a=eoo(e),o=eol(e);if(!o||!a||"number"!=typeof o.offset||"number"!=typeof a.offset)return;let l=e.lang||/^ {0,3}([`~])/.test(s.slice(o.offset,a.offset))?"fenced":"indented";i?i!==l&&t.message("Unexpected "+l+" code block, expected "+i+" code blocks",{ancestors:[...n,e],cause:r,place:{start:o,end:a}}):(i=l,r=new etW("Code block style `'"+l+"'` first defined for `'consistent'` here",{ancestors:[...n,e],place:{start:o,end:a},source:"remark-lint",ruleId:"code-block-style"}))})}),"consistent"],[eoa({origin:"remark-lint:emphasis-marker",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-emphasis-marker#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("*"===n||"_"===n?i=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'*'`, `'_'`, or `'consistent'`")),erI(e,"emphasis",function(e,n){let a=eol(e);if(a&&"number"==typeof a.offset){let o=s.charAt(a.offset);if("*"!==o&&"_"!==o)return;i?o!==i&&t.message("Unexpected emphasis marker `"+o+"`, expected `"+i+"`",{ancestors:[...n,e],cause:r,place:e.position}):(i=o,r=new etW("Emphasis marker style `'"+o+"'` first defined for `'consistent'` here",{ancestors:[...n,e],place:e.position,ruleId:"emphasis-marker",source:"remark-lint"}))}})}),"consistent"],[eoa({origin:"remark-lint:fenced-code-marker",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-marker#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("`"===n||"~"===n?i=n:t.fail("Unexpected value `"+n+"` for `options`, expected ``'`'``, `'~'`, or `'consistent'`")),erI(e,function(e,n){if(eib(e))return erC;if("code"!==e.type)return;let a=eol(e);if(a&&"number"==typeof a.offset){let o=s.slice(a.offset,a.offset+4).replace(/^\s+/,"").charAt(0);if("`"!==o&&"~"!==o)return;i?o!==i&&t.message("Unexpected fenced code marker "+("~"===o?"`~`":"`` ` ``")+", expected "+("~"===i?"`~`":"`` ` ``"),{ancestors:[...n,e],cause:r,place:e.position}):(i=o,r=new etW("Fenced code marker style "+("~"===o?"`'~'`":"``'`'``")+" first defined for `'consistent'` here",{ancestors:[...n,e],place:e.position,ruleId:"fenced-code-marker",source:"remark-lint"}))}})}),"consistent"],[eoa({origin:"remark-lint:heading-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-heading-style#readme"},function(e,t,n){let r,i;null==n||"consistent"===n||("atx"===n||"atx-closed"===n||"setext"===n?i=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'atx'`, `'atx-closed'`, `'setext'`, or `'consistent'`")),erI(e,function(e,n){if(eib(e))return erC;if("heading"!==e.type)return;let s=function(e){let t=eol(e),n=eoo(e);if(t&&n)return{start:t,end:n}}(e),a=function(e,t){let n=e.children[e.children.length-1],r=e.depth,i=e.position&&e.position.end,s=n&&n.position&&n.position.end;if(i)return n?s&&s.line+1===i.line?"setext":s&&s.column+r<i.column?"atx-closed":eoc(r,t):i.column-1<=2*r?eoc(r,t):"atx-closed"}(e,i);a&&(i?s&&a!==i&&t.message("Unexpected "+eop(a)+" heading, expected "+eop(i),{ancestors:[...n,e],cause:r,place:s}):r=new etW("Heading style "+eop(i=a)+" first defined for `'consistent'` here",{ancestors:[...n,e],place:s,ruleId:"heading-style",source:"remark-lint"}))})}),"consistent"],[eoa({origin:"remark-lint:link-title-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("("===n?r="()":'"'===n||"'"===n||"()"===n?r=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'\"'`, `\"'\"`, `'()'`, or `'consistent'`")),erI(e,function(e,n){if("definition"===e.type||"image"===e.type||"link"===e.type){if(!e.title)return;let a=eoo(e),o=a?a.offset:void 0;if(!o)return;"definition"!==e.type&&o--;let l=s.charCodeAt(o-1);for(;9===l||32===l;)o--,l=s.charCodeAt(o-1);let u=34===l?'"':39===l?"'":41===l?"()":void 0;u&&(r?u!==r&&t.message("Unexpected title markers "+eod(u)+", expected "+eod(r),{ancestors:[...n,e],cause:i,place:e.position}):i=new etW("Title marker style "+eod(r=u)+" first defined for `'consistent'` here",{ancestors:[...n,e],place:e.position,ruleId:"link-title-style",source:"remark-lint"}))}})}),"consistent"],eoa({origin:"remark-lint:list-item-content-indent",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent#readme"},function(e,t){let n,r=String(t);erI(e,function(e,i){let s;if(eib(e))return erC;if("listItem"!==e.type)return;let a=-1;for(;++a<e.children.length;){let o=e.children[a],l=eol(o);if(!l||"number"!=typeof l.offset)continue;let u=l.column;if(0===a&&"boolean"==typeof e.checked){let e=l.offset-1;for(;e>0&&91!==r.charCodeAt(e);)e--;u-=l.offset-e}if(s){if(u!==s){let r=s-u,a=Math.abs(r);t.message("Unexpected unaligned list item child, expected to align with first child, "+(r>0?"add":"remove")+" `"+a+"` "+eos("space",a),{ancestors:[...i,e,o],cause:n,place:l})}}else s=u,n=new etW("Alignment of first child first defined here",{ancestors:[...i,e,o],place:l,ruleId:"list-item-content-indent",source:"remark-lint"})}})}),[eoa({origin:"remark-lint:ordered-list-marker-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("."===n||")"===n?r=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'.'`, `')'`, or `'consistent'`")),erI(e,function(e,n){if(eib(e))return erC;if("listItem"!==e.type)return;let a=n.at(-1);if(!a||"list"!==a.type||!a.ordered)return;let o=eol(e);if(o&&"number"==typeof o.offset){let a=o.offset,l=s.charCodeAt(a);for(;enS(l);)a++,l=s.charCodeAt(a);let u=41===l?")":46===l?".":void 0;if(!u)return;let c={line:o.line,column:o.column+(a-o.offset),offset:o.offset+(a-o.offset)};r?u!==r&&t.message("Unexpected ordered list marker `"+u+"`, expected `"+r+"`",{ancestors:[...n,e],cause:i,place:c}):i=new etW("Ordered list marker style `"+(r=u)+"` first defined for `'consistent'` here",{ancestors:[...n,e],place:c,ruleId:"ordered-list-marker-style",source:"remark-lint"})}})}),"consistent"],[eoa({origin:"remark-lint:ordered-list-marker-value",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-value#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("one"===n||"ordered"===n||"single"===n?r=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'one'`, `'ordered'`, `'single'`, or `'consistent'`"));let a=[];if(erI(e,function(e,t){if(eib(e))return erC;if("list"!==e.type||!e.ordered)return;let n=[];for(let t of e.children){let e,r=eol(t);if(r&&"number"==typeof r.offset){let t=r.offset,n=s.charCodeAt(t);for(;enS(n);)t++,n=s.charCodeAt(t);e=s.slice(r.offset,t)}n.push(e)}a.push({ancestors:[...t,e],counters:n})}),!r)for(let e of a){let[t,n]=e.counters;if(t&&n){let s=n===String(Number(t)+1)?"ordered":n===t?"single":void 0;if(s){let t=e.ancestors.at(-1);t.type,i=new etW("Ordered list marker style `"+(r=s)+"` first defined for `'consistent'` here",{ancestors:e.ancestors,place:t.position,ruleId:"ordered-list-marker-value",source:"remark-lint"})}break}}for(let e of(r||(r="ordered",i=new etW("Ordered list marker style `ordered` assumed for `'consistent'`",{ruleId:"ordered-list-marker-value",source:"remark-lint"})),a)){let n="one"===r?1:e.counters[0],s=e.ancestors.at(-1);if(s.type,!n)continue;let a=Number(n),o=-1;for(;++o<e.counters.length;){let n=s.children[o],l=e.counters[o];if(!l)continue;let u=eol(n);u.offset;let c=String("one"===r?1:"single"===r?a:a+o);l!==c&&t.message("Unexpected ordered list item value `"+l+"`, expected `"+c+"`",{ancestors:[...e.ancestors,n],cause:i,place:{line:u.line,column:u.column+l.length,offset:u.offset+l.length}})}}}),"consistent"],[eoa({origin:"remark-lint:rule-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||(/[^-_* ]/.test(n)||" "===n.at(0)||" "===n.at(-1)||n.replaceAll(" ","").length<3?t.fail("Unexpected value `"+n+"` for `options`, expected thematic rule or `'consistent'`"):r=n),erI(e,function(e,n){if(eib(e))return erC;if("thematicBreak"!==e.type)return;let a=eoo(e),o=eol(e);if(o&&a&&"number"==typeof o.offset&&"number"==typeof a.offset){let l={start:o,end:a},u=s.slice(o.offset,a.offset);r?u!==r&&t.message("Unexpected thematic rule `"+u+"`, expected `"+r+"`",{ancestors:[...n,e],cause:i,place:l}):i=new etW("Thematic rule style `"+(r=u)+"` first defined for `'consistent'` here",{ancestors:[...n,e],place:l,ruleId:"rule-style",source:"remark-lint"})}})}),"consistent"],[eoa({origin:"remark-lint:strong-marker",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker#readme"},function(e,t,n){let r,i,s=String(t);null==n||"consistent"===n||("*"===n||"_"===n?i=n:t.fail("Unexpected value `"+n+"` for `options`, expected `'*'`, `'_'`, or `'consistent'`")),erI(e,"strong",function(e,n){let a=eol(e);if(a&&"number"==typeof a.offset){let o=s.charAt(a.offset);if("*"!==o&&"_"!==o)return;i?o!==i&&t.message("Unexpected strong marker `"+o+"`, expected `"+i+"`",{ancestors:[...n,e],cause:r,place:e.position}):(i=o,r=new etW("Strong marker style `'"+o+"'` first defined for `'consistent'` here",{ancestors:[...n,e],place:e.position,ruleId:"strong-marker",source:"remark-lint"}))}})}),"consistent"],[eoa({origin:"remark-lint:table-cell-padding",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding#readme"},function(e,t,n){let r,i,s,a,o=String(t);function l(e,n,s){if(!n.size)return;let a=n.size[e];if(void 0===a)return;let o=s[n.column]-n.size.middle,l=+("compact"!==r),u=l;if("center"===n.align?u+=Math.ceil(o/2):("right"===n.align?"left"===e:"right"===e)&&(u+=o),0===n.size.middle){if("right"===e)return;u=Math.max(u,s[n.column]+2*l)}if(a<l||a>u){let r=l-a,s=Math.abs(r),o=u-a,c=Math.abs(o);t.message("Unexpected `"+a+"` "+eos("space",a)+" between cell "+("left"===e?"edge":"content")+" and "+("left"===e?"content":"edge")+", expected "+(l===u?"":"between `"+l+"` (unaligned) and ")+"`"+u+"` "+(l===u?"":"(aligned) ")+eos("space",u)+", "+(r<0?"remove":"add")+(r===o?"":" between `"+c+"` and")+" `"+s+"` "+eos("space",s),{ancestors:n.ancestors,cause:i,place:"left"===e?n.size.leftPoint:n.size.rightPoint})}}function u(e,t,n){if(t&&e&&"number"==typeof t.offset&&"number"==typeof e.offset){let r,i,a=e.offset;if(124===o.charCodeAt(a))for(r=0,a++;32===o.charCodeAt(a);)r++,a++;let l=t.offset;if(n){for(;32===o.charCodeAt(l-1);)l--;l>a&&124===o.charCodeAt(l-1)?l--:l=t.offset}let u=l;if(124===o.charCodeAt(l))for(i=0;l-1>a&&32===o.charCodeAt(l-1);)i++,l--;let c=s?s(o.slice(a,l)):l-a;return{left:r,leftPoint:{line:e.line,column:e.column+(a-e.offset),offset:a},middle:c,right:i,rightPoint:{line:t.line,column:t.column-(t.offset-u),offset:u}}}}n&&"object"==typeof n?(s=n.stringLength,a=n.style):a=n,null==a||"consistent"===a||("compact"===a||"padded"===a?r=a:t.fail("Unexpected value `"+a+"` for `style`, expected `'compact'`, `'padded'`, or `'consistent'`")),erI(e,function(e,t){if(eib(e))return erC;if("table"!==e.type)return;let n=function(e){let t=e.at(-1);t.type;let n=t.align||[],r=[],i=-1;for(;++i<t.children.length;){let s=t.children[i],a=-1;for(;++a<s.children.length;){let t=s.children[a];r.push({align:n[a],ancestors:[...e,s,t],column:a,size:u(eol(t),eoo(t),a===s.children.length-1)})}if(0===i){let t=function(e,t){let n=e.at(-1);n.type;let r=eoo(n.children[0]);if(!r||"number"!=typeof r.offset)return;let i=r.offset;if(13===o.charCodeAt(i)&&i++,10!==o.charCodeAt(i))return;i++;let s=[],a=r.line+1,l=o.charCodeAt(i);for(;9===l||32===l||62===l;)i++,l=o.charCodeAt(i);if(45!==l&&58!==l&&124!==l)return;let c=o.indexOf("\n",i);-1===c&&(c=o.length),13===o.charCodeAt(c-1)&&c--;let p=0,d=i,f=o.indexOf("|",i+ +(124===l));for((-1===f||f>c)&&(f=c);d!==f;){let n=o.indexOf("|",f+1);if((-1===n||n>c)&&(n=c),n===c){let e=c,t=o.charCodeAt(e-1);for(;9===t||32===t;)e--,t=o.charCodeAt(e-1);f+1===e&&(f=c)}s.push({align:t[p],ancestors:e,column:p,size:u({line:a,column:d-i+1,offset:d},{line:a,column:f-i+1,offset:f},f===c)}),d=f,f=n,p++}return s}(e,n);t&&r.push(...t)}}return r}([...t,e]),s=[];for(let e of n)e.size&&(void 0===s[e.column]||e.size.middle>s[e.column])&&(s[e.column]=e.size.middle);if(!r){for(let e of n)if(e.size&&e.size.middle&&e.size.middle===s[e.column]){let t=e.ancestors.at(-1);i=new etW("Cell padding style `'"+(r=e.size.left?"padded":"compact")+"'` first defined for `'consistent'` here",{ancestors:e.ancestors,place:t.position,ruleId:"table-cell-padding",source:"remark-lint"})}}if(r){for(let e of n)l("left",e,s),l("right",e,s);return erC}})}),"consistent"]]},eoh=eoa("remark-lint:run",(e,t,n)=>{for(let{fix:r,traverse:i,report:s,name:a}of n.plugins){let o=[];for(let l of(i(e,{push:o.push.bind(o)}),o)){if(n.fix){r(l,e);continue}let i=s(l);t.message(`putout: ${a}: ${i}`,l)}}});function eom({reason:e,line:t,column:n,source:r,ruleId:i}){let{message:s,rule:a}=function({reason:e,ruleId:t,source:n}){let[r,i,s]=e.split(": ");return"putout"===r?{rule:`${i} (${n})`,message:s}:{message:e,rule:`${t} (${n})`}}({reason:e,ruleId:i,source:r});return{message:s,rule:a,position:{line:t,column:n}}}let eoy={bullet:"-",listItemIndent:"one",fences:!0,tightDefinitions:!0,handlers:{text:({value:e})=>e}},eog=({list:e,visit:t})=>n=>{t(n,"code",t=>{let{lang:n,value:r}=t,i=t.position.start.line;if(/^(js|javascript)$/.test(n))return void e.push({startLine:i,source:r,extension:"js"});if("jsx"===n)return void e.push({startLine:i,source:r,extension:"jsx"});if(/^(ts|typescript)$/.test(n))return void e.push({startLine:i,source:r,extension:"ts"});if("tsx"===n)return void e.push({startLine:i,source:r,extension:"tsx"});if("json"===n){let t=UT(r);e.push({startLine:i,source:t,extension:"json"})}})},eob=({list:e,visit:t})=>n=>{t(n,"code",t=>{let{lang:n}=t;if(e.length){if(/^(jsx?|javascript)$/.test(n)||/^(tsx?|typescript)$/.test(n)){t.value=e.shift();return}"json"===n&&(t.value=Uv(e.shift()).slice(0,-1))}})};var eox=Object.freeze({__proto__:null,branch:e=>{let t=[{startLine:0,source:UT(UO(ea_(eaN([eaI(eaC(et6().use(erv).use(esh).use(esI,["yaml"]).parse(e).children.map(eaE)))]))),Ux),extension:"md"}];return et6().use(erv).use(eog,{list:t,visit:eio}).use(ea4).processSync(e),t},files:["*.md"],find:async(e,t={})=>{let{plugins:n=[]}=t;if(!e.length)return[];let{messages:r}=await et6().use(erv).use(eof).use(eoh,{fix:!1,plugins:n}).use(ea4,eoy).use(esI,["yaml","toml"]).process(e);return r.map(eom)},fix:async(e,t={})=>{let{plugins:n=[]}=t,{value:r}=await et6().use(erv).use(eof).use(ea4,eoy).use(esI,["yaml","toml"]).use(eoh,{fix:!0,plugins:n}).process(e);return r},merge:(e,t)=>{let[n,...r]=t,i=UO(EG(Uv(n,Ux)),{visitors:ea3}),{value:s}=et6().use(erv).use(eob,{list:r,rawSource:e,visit:eio}).use(ea4,eoy).processSync(i);return s}}),eoS=RegExp(/(^[ \t]*\n)/,"gm"),eoT=(function(e){return e.replace(eoS,"")}).default,eov=Object.freeze({__proto__:null,branch:e=>[{source:UT(e)}],files:["*.json"],merge:(e,t)=>{let[n]=t.filter(UE);return eoT(Uv(n))}});let eoE=({source:e})=>e,eok={json:eoA(eov),yaml:eoA(Zm),toml:eoA(et_),markdown:eoA(eox)},eow=e=>{let t=eok[e];return t||{branch:eoP,merge:eoC}};function eoA(e){return{branch:t=>{let[n]=e.branch(t).map(eoE);return{ast:qd(n)}},merge:(t,n)=>{let r=UF(t,n);return e.merge("",[r])}}}function eoP(e){return{ast:qd(e,{isTS:!0})}}let eoC=(e,t)=>UF(e,t),eoI=e=>e.endsWith(".json")?"json":/\.ya?ml$/.test(e)?"yaml":e.endsWith("toml")?"toml":e.endsWith("md")?"markdown":/\.[cm]?ts(x)?$/.test(e)?"typescript":"js",{join:eo_}=qK,eoN=e=>e&&"object"==typeof e,{entries:eoL}=Object,eoO=(e,{message:t})=>t;function eoD(e,{dirPath:t,matchInputFilename:n,inputFilename:r,outputFilename:i,ast:s,options:a,rawOptions:o}){let[l]=ql(W8,s,a);if(l)throw Error(`${r}: ${l.message}`,{cause:l});let u=function(e,t,n){let{merge:r}=eow(eoI(e));return r(t,n)}(i,s,o),c=function({dirPath:e,matchInputFilename:t,outputFilename:n,inputFile:r}){if(t===n)return r;let i=eo_(Wy(e),n),[s]=Wh(e,i);return s||Wv(e,n)}({dirPath:t,matchInputFilename:n,outputFilename:i,inputFile:e});WP(c,u),e!==c&&WS(e)}function eoM(e,t){let{filename:n}=t;if(!n)return e.split(" -> ");let{ext:r,name:i}=qK.parse(n);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",r)).split(" -> ")}let{parse:eoF}=JSON;var eoB=Object.freeze({__proto__:null,createScan:({type:e,mask:t,rename:n}={})=>(r,{push:i,trackFile:s})=>{for(let a of s(r,t)){if(e&&!function(e,t){let n=function(e){let t,n=Wd(e);do{let e=Wy(n);[t]=Wh(n,qR(e,"package.json"))}while(!t&&(n=Wd(n)))return t}(t);if("commonjs"===e&&!n)return!0;if(!n)return!1;let r=WA(n);return!!r&&(eoF(r).type||"commonjs")===e}(e,a))continue;let t=Wy(a),r=n(t);i(a,{from:t,to:r})}},fix:(e,{to:t})=>{Wx(e,t)},report:(e,{from:t,to:n})=>`Rename '${t}' to '${n}'`}),eoj=Object.freeze({__proto__:null,createScan:e=>(t,{push:n,options:r,trackFile:i})=>{let s,a=r.from||e.from,o=r.to||e.to,l=r.mask||e.mask,u=r.near||e.near,c=u?(s=u,e=>{for(let t of Wk(Wd(e)))if("file"===Wg(t)&&qq(Wy(t))===s)return!0;return!1}):()=>!0;if(!a||!o)return{};for(let e of i(t,l||a).filter(c))n(e,{from:a,to:o,mask:l})},fix:(e,{from:t,to:n})=>{let r=Wy(e).replace(t,n);Wx(e,r)},report:(e,{mask:t,from:n,to:r})=>t?`Rename '${t}' to '${t.replace(n,r)}'`:`Rename '${n}' to '${r}'`}),eoR={};let eo$="[^\\\\/]",eoU="[^/]",eoq="(?:\\/|$)",eoK="(?:^|\\/)",eoV=`\\.{1,2}${eoq}`,eoJ=`(?!${eoK}${eoV})`,eoz=`(?!\\.{0,1}${eoq})`,eoW=`(?!${eoV})`,eoX=`${eoU}*?`,eoH={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:eoU,END_ANCHOR:eoq,DOTS_SLASH:eoV,NO_DOT:"(?!\\.)",NO_DOTS:eoJ,NO_DOT_SLASH:eoz,NO_DOTS_SLASH:eoW,QMARK_NO_DOT:"[^.\\/]",STAR:eoX,START_ANCHOR:eoK,SEP:"/"},eoY={...eoH,SLASH_LITERAL:"[\\\\/]",QMARK:eo$,STAR:`${eo$}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};var eoG={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?eoY:eoH};eoG.default,function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=eoG;e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("u">typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return!1},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${e})${i}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r}}(eoR),eoR.default;let{CHAR_ASTERISK:eoQ,CHAR_AT:eoZ,CHAR_BACKWARD_SLASH:eo0,CHAR_COMMA:eo1,CHAR_DOT:eo2,CHAR_EXCLAMATION_MARK:eo3,CHAR_FORWARD_SLASH:eo4,CHAR_LEFT_CURLY_BRACE:eo5,CHAR_LEFT_PARENTHESES:eo8,CHAR_LEFT_SQUARE_BRACKET:eo6,CHAR_PLUS:eo9,CHAR_QUESTION_MARK:eo7,CHAR_RIGHT_CURLY_BRACE:ele,CHAR_RIGHT_PARENTHESES:elt,CHAR_RIGHT_SQUARE_BRACKET:eln}=eoG,elr=e=>e===eo4||e===eo0,eli=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)},{MAX_LENGTH:els,POSIX_REGEX_SOURCE:ela,REGEX_NON_SPECIAL_CHARS:elo,REGEX_SPECIAL_CHARS_BACKREF:ell,REPLACEMENTS:elu}=eoG,elc=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map(e=>eoR.escapeRegex(e)).join("..")}return n},elp=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,eld=e=>{let t=[],n=0,r=0,i=0,s="",a=!1;for(let o of e){if(!0===a){s+=o,a=!1;continue}if("\\"===o){s+=o,a=!0;continue}if('"'===o){i=+(1!==i),s+=o;continue}if(0===i){if("["===o)n++;else if("]"===o&&n>0)n--;else if(0===n){if("("===o)r++;else if(")"===o&&r>0)r--;else if("|"===o&&0===r){t.push(s),s="";continue}}}s+=o}return t.push(s),t},elf=e=>{let t=e.trim(),n=!0;for(;!0===n;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if((e=>{let t=!1;for(let n of e){if(!0===t){t=!1;continue}if("\\"===n){t=!0;continue}if(/[?*+@!()[\]{}]/.test(n))return!1}return!0})(t))return t.replace(/\\(.)/g,"$1")},elh=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let n=0,r=0,i=0,s=!1;for(let a=1;a<e.length;a++){let o=e[a];if(!0===s){s=!1;continue}if("\\"===o){s=!0;continue}if('"'===o){i=+(1!==i);continue}if(1!==i){if("["===o){n++;continue}if("]"===o&&n>0){n--;continue}if(!(n>0)){if("("===o){r++;continue}if(")"===o&&0==--r){if(!0===t&&a!==e.length-1)return;return{type:e[0],body:e.slice(2,a),end:a}}}}}},elm=e=>{let t=0,n=[];for(;t<e.length;){let r=elh(e.slice(t),!1);if(!r||"*"!==r.type)return;let i=eld(r.body).map(e=>e.trim());if(1!==i.length)return;let s=elf(i[0]);if(!s||1!==s.length)return;n.push(s),t+=r.end+1}if(!(n.length<1))return n},ely=e=>{let t=0,n=e.trim(),r=elh(n);for(;r;)t++,r=elh(n=r.body.trim());return t},elg=(e,t)=>{let n;if("string"!=typeof e)throw TypeError("Expected a string");e=elu[e]||e;let r={...t},i="number"==typeof r.maxLength?Math.min(els,r.maxLength):els,s=e.length;if(s>i)throw SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${i}`);let a={type:"bos",value:"",output:r.prepend||""},o=[a],l=r.capture?"":"?:",u=eoG.globChars(r.windows),c=eoG.extglobChars(u),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:g,NO_DOTS_SLASH:b,QMARK:x,QMARK_NO_DOT:S,STAR:T,START_ANCHOR:v}=u,E=e=>`(${l}(?:(?!${v}${e.dot?m:p}).)*?)`,k=r.dot?"":y,w=r.dot?x:S,A=!0===r.bash?E(r):T;r.capture&&(A=`(${A})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);let P={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};s=(e=eoR.removePrefix(e,P)).length;let C=[],I=[],_=[],N=a,L=()=>P.index===s-1,O=P.peek=(t=1)=>e[P.index+t],D=P.advance=()=>e[++P.index]||"",M=()=>e.slice(P.index+1),F=(e="",t=0)=>{P.consumed+=e,P.index+=t},B=e=>{P.output+=null!=e.output?e.output:e.value,F(e.value)},j=()=>{let e=1;for(;"!"===O()&&("("!==O(2)||"?"===O(3));)D(),P.start++,e++;return e%2!=0&&(P.negated=!0,P.start++,!0)},R=e=>{P[e]++,_.push(e)},$=e=>{P[e]--,_.pop()},U=e=>{if("globstar"===N.type){let t=P.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||C.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(P.output=P.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=A,P.output+=N.output)}if(C.length&&"paren"!==e.type&&(C[C.length-1].inner+=e.value),(e.value||e.output)&&B(e),N&&"text"===N.type&&"text"===e.type){N.output=(N.output||N.value)+e.value,N.value+=e.value;return}e.prev=N,o.push(e),N=e},q=(e,t)=>{let n={...c[t],conditions:1,inner:""};n.prev=N,n.parens=P.parens,n.output=P.output,n.startIndex=P.index,n.tokensIndex=o.length;let i=(r.capture?"(":"")+n.open;R("parens"),U({type:e,value:t,output:P.output?"":h}),U({type:"paren",extglob:!0,value:D(),output:i}),C.push(n)},K=i=>{let s,a=e.slice(i.startIndex,P.index+1),l=((e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};let n="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:eoG.DEFAULT_MAX_EXTGLOB_RECURSION,r=eld(e).map(e=>e.trim());if(r.length>1&&(r.some(e=>""===e)||r.some(e=>/^[*?]+$/.test(e))||(e=>{let t=e.map(elf).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){let r=t[e],i=t[n],s=r[0];if(s&&r===s.repeat(r.length)&&i===s.repeat(i.length)&&(r===i||r.startsWith(i)||i.startsWith(r)))return!0}return!1})(r)))return{risky:!0};let i=[],s=!1,a=!0;for(let e of r){let t=elm(e);if(t){s=!0,i.push(...t);continue}let r=elf(e);if(r&&1===r.length){i.push(r);continue}if(a=!1,ely(e)>n)return{risky:!0}}if(s){var o;let e;return a?{risky:!0,safeOutput:(e=1===(o=[...new Set(i)]).length?eoR.escapeRegex(o[0]):`[${o.map(e=>eoR.escapeRegex(e)).join("")}]`,`${e}*`)}:{risky:!0}}return{risky:!1}})(e.slice(i.startIndex+2,P.index),r);if(("plus"===i.type||"star"===i.type)&&l.risky){let e=l.safeOutput?(i.output?"":h)+(r.capture?`(${l.safeOutput})`:l.safeOutput):void 0,t=o[i.tokensIndex];t.type="text",t.value=a,t.output=e||eoR.escapeRegex(a);for(let e=i.tokensIndex+1;e<o.length;e++)o[e].value="",o[e].output="",delete o[e].suffix;P.output=i.output+t.output,P.backtrack=!0,U({type:"paren",extglob:!0,value:n,output:""}),$("parens");return}let u=i.close+(r.capture?")":"");if("negate"===i.type){let e=A;if(i.inner&&i.inner.length>1&&i.inner.includes("/")&&(e=E(r)),(e!==A||L()||/^\)+$/.test(M()))&&(u=i.close=`)$))${e}`),i.inner.includes("*")&&(s=M())&&/^\.[^\\/.]+$/.test(s)){let n=elg(s,{...t,fastpaths:!1}).output;u=i.close=`)${n})${e})`}"bos"===i.prev.type&&(P.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:n,output:u}),$("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=!1,i=e.replace(ell,(e,t,r,i,s,a)=>"\\"===i?(n=!0,e):"?"===i?t?t+i+(s?x.repeat(s.length):""):0===a?w+(s?x.repeat(s.length):""):x.repeat(r.length):"."===i?p.repeat(r.length):"*"===i?t?t+i+(s?A:""):A:t?e:`\\${e}`);return(!0===n&&(i=!0===r.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),i===e&&!0===r.contains)?P.output=e:P.output=eoR.wrapOutput(i,P,t),P}for(;!L();){if("\0"===(n=D()))continue;if("\\"===n){let e=O();if("/"===e&&!0!==r.bash||"."===e||";"===e)continue;if(!e){U({type:"text",value:n+="\\"});continue}let t=/^\\+/.exec(M()),i=0;if(t&&t[0].length>2&&(i=t[0].length,P.index+=i,i%2!=0&&(n+="\\")),!0===r.unescape?n=D():n+=D(),0===P.brackets){U({type:"text",value:n});continue}}if(P.brackets>0&&("]"!==n||"["===N.value||"[^"===N.value)){if(!1!==r.posix&&":"===n){let e=N.value.slice(1);if(e.includes("[")&&(N.posix=!0,e.includes(":"))){let e=N.value.lastIndexOf("["),t=N.value.slice(0,e),n=ela[N.value.slice(e+2)];if(n){N.value=t+n,P.backtrack=!0,D(),a.output||1!==o.indexOf(N)||(a.output=h);continue}}}("["===n&&":"!==O()||"-"===n&&"]"===O())&&(n=`\\${n}`),"]"===n&&("["===N.value||"[^"===N.value)&&(n=`\\${n}`),!0===r.posix&&"!"===n&&"["===N.value&&(n="^"),N.value+=n,B({value:n});continue}if(1===P.quotes&&'"'!==n){n=eoR.escapeRegex(n),N.value+=n,B({value:n});continue}if('"'===n){P.quotes=+(1!==P.quotes),!0===r.keepQuotes&&U({type:"text",value:n});continue}if("("===n){R("parens"),U({type:"paren",value:n});continue}if(")"===n){if(0===P.parens&&!0===r.strictBrackets)throw SyntaxError(elp("opening","("));let e=C[C.length-1];if(e&&P.parens===e.parens+1){K(C.pop());continue}U({type:"paren",value:n,output:P.parens?")":"\\)"}),$("parens");continue}if("["===n){if(!0!==r.nobracket&&M().includes("]"))R("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw SyntaxError(elp("closing","]"));n=`\\${n}`}U({type:"bracket",value:n});continue}if("]"===n){if(!0===r.nobracket||N&&"bracket"===N.type&&1===N.value.length){U({type:"text",value:n,output:`\\${n}`});continue}if(0===P.brackets){if(!0===r.strictBrackets)throw SyntaxError(elp("opening","["));U({type:"text",value:n,output:`\\${n}`});continue}$("brackets");let e=N.value.slice(1);if(!0===N.posix||"^"!==e[0]||e.includes("/")||(n=`/${n}`),N.value+=n,B({value:n}),!1===r.literalBrackets||eoR.hasRegexChars(e))continue;let t=eoR.escapeRegex(N.value);if(P.output=P.output.slice(0,-N.value.length),!0===r.literalBrackets){P.output+=t,N.value=t;continue}N.value=`(${l}${t}|${N.value})`,P.output+=N.value;continue}if("{"===n&&!0!==r.nobrace){R("braces");let e={type:"brace",value:n,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};I.push(e),U(e);continue}if("}"===n){let e=I[I.length-1];if(!0===r.nobrace||!e){U({type:"text",value:n,output:n});continue}let t=")";if(!0===e.dots){let e=o.slice(),n=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=elc(n,r),P.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let r=P.output.slice(0,e.outputIndex),i=P.tokens.slice(e.tokensIndex);for(let s of(e.value=e.output="\\{",n=t="\\}",P.output=r,i))P.output+=s.output||s.value}U({type:"brace",value:n,output:t}),$("braces"),I.pop();continue}if("|"===n){C.length>0&&C[C.length-1].conditions++,U({type:"text",value:n});continue}if(","===n){let e=n,t=I[I.length-1];t&&"braces"===_[_.length-1]&&(t.comma=!0,e="|"),U({type:"comma",value:n,output:e});continue}if("/"===n){if("dot"===N.type&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",o.pop(),N=a;continue}U({type:"slash",value:n,output:f});continue}if("."===n){if(P.braces>0&&"dot"===N.type){"."===N.value&&(N.output=p);let e=I[I.length-1];N.type="dots",N.output+=n,N.value+=n,e.dots=!0;continue}if(P.braces+P.parens===0&&"bos"!==N.type&&"slash"!==N.type){U({type:"text",value:n,output:p});continue}U({type:"dot",value:n,output:p});continue}if("?"===n){if(!(N&&"("===N.value)&&!0!==r.noextglob&&"("===O()&&"?"!==O(2)){q("qmark",n);continue}if(N&&"paren"===N.type){let e=O(),t=n;("("!==N.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(M()))||(t=`\\${n}`),U({type:"text",value:n,output:t});continue}if(!0!==r.dot&&("slash"===N.type||"bos"===N.type)){U({type:"qmark",value:n,output:S});continue}U({type:"qmark",value:n,output:x});continue}if("!"===n){if(!0!==r.noextglob&&"("===O()&&("?"!==O(2)||!/[!=<:]/.test(O(3)))){q("negate",n);continue}if(!0!==r.nonegate&&0===P.index){j();continue}}if("+"===n){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){q("plus",n);continue}if(N&&"("===N.value||!1===r.regex){U({type:"plus",value:n,output:d});continue}if(N&&("bracket"===N.type||"paren"===N.type||"brace"===N.type)||P.parens>0){U({type:"plus",value:n});continue}U({type:"plus",value:d});continue}if("@"===n){if(!0!==r.noextglob&&"("===O()&&"?"!==O(2)){U({type:"at",extglob:!0,value:n,output:""});continue}U({type:"text",value:n});continue}if("*"!==n){("$"===n||"^"===n)&&(n=`\\${n}`);let e=elo.exec(M());e&&(n+=e[0],P.index+=e[0].length),U({type:"text",value:n});continue}if(N&&("globstar"===N.type||!0===N.star)){N.type="star",N.star=!0,N.value+=n,N.output=A,P.backtrack=!0,P.globstar=!0,F(n);continue}let t=M();if(!0!==r.noextglob&&/^\([^?]/.test(t)){q("star",n);continue}if("star"===N.type){if(!0===r.noglobstar){F(n);continue}let i=N.prev,s=i.prev,a="slash"===i.type||"bos"===i.type,o=s&&("star"===s.type||"globstar"===s.type);if(!0===r.bash&&(!a||t[0]&&"/"!==t[0])){U({type:"star",value:n,output:""});continue}let l=P.braces>0&&("comma"===i.type||"brace"===i.type),u=C.length&&("pipe"===i.type||"paren"===i.type);if(!a&&"paren"!==i.type&&!l&&!u){U({type:"star",value:n,output:""});continue}for(;"/**"===t.slice(0,3);){let n=e[P.index+4];if(n&&"/"!==n)break;t=t.slice(3),F("/**",3)}let c=L()||P.parens>0&&t===")".repeat(P.parens)&&!C.some(e=>"negate"===e.type);if("bos"===i.type&&L()){N.type="globstar",N.value+=n,N.output=E(r),P.output=N.output,P.globstar=!0,F(n);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!o&&c){P.output=P.output.slice(0,-(i.output+N.output).length),i.output=`(?:${i.output}`,N.type="globstar",N.output=E(r)+(r.strictSlashes?")":"|$)"),N.value+=n,P.globstar=!0,P.output+=i.output+N.output,F(n);continue}if("slash"===i.type&&"bos"!==i.prev.type&&"/"===t[0]){let e=void 0!==t[1]?"|$":"";P.output=P.output.slice(0,-(i.output+N.output).length),i.output=`(?:${i.output}`,N.type="globstar",N.output=`${E(r)}${f}|${f}${e})`,N.value+=n,P.output+=i.output+N.output,P.globstar=!0,F(n+D()),U({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){N.type="globstar",N.value+=n,N.output=`(?:^|${f}|${E(r)}${f})`,P.output=N.output,P.globstar=!0,F(n+D()),U({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-N.output.length),N.type="globstar",N.output=E(r),N.value+=n,P.output+=N.output,P.globstar=!0,F(n);continue}let i={type:"star",value:n,output:A};if(!0===r.bash){i.output=".*?",("bos"===N.type||"slash"===N.type)&&(i.output=k+i.output),U(i);continue}if(N&&("bracket"===N.type||"paren"===N.type)&&!0===r.regex){i.output=n,U(i);continue}(P.index===P.start||"slash"===N.type||"dot"===N.type)&&("dot"===N.type?(P.output+=g,N.output+=g):!0===r.dot?(P.output+=b,N.output+=b):(P.output+=k,N.output+=k),"*"!==O()&&(P.output+=h,N.output+=h)),U(i)}for(;P.brackets>0;){if(!0===r.strictBrackets)throw SyntaxError(elp("closing","]"));P.output=eoR.escapeLast(P.output,"["),$("brackets")}for(;P.parens>0;){if(!0===r.strictBrackets)throw SyntaxError(elp("closing",")"));P.output=eoR.escapeLast(P.output,"("),$("parens")}for(;P.braces>0;){if(!0===r.strictBrackets)throw SyntaxError(elp("closing","}"));P.output=eoR.escapeLast(P.output,"{"),$("braces")}if(!0!==r.strictSlashes&&("star"===N.type||"bracket"===N.type)&&U({type:"maybe_slash",value:"",output:`${f}?`}),!0===P.backtrack)for(let e of(P.output="",P.tokens))P.output+=null!=e.output?e.output:e.value,e.suffix&&(P.output+=e.suffix);return P};elg.fastpaths=(e,t)=>{let n={...t},r="number"==typeof n.maxLength?Math.min(els,n.maxLength):els,i=e.length;if(i>r)throw SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=elu[e]||e;let{DOT_LITERAL:s,SLASH_LITERAL:a,ONE_CHAR:o,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:c,NO_DOTS_SLASH:p,STAR:d,START_ANCHOR:f}=eoG.globChars(n.windows),h=n.dot?c:u,m=n.dot?p:u,y=n.capture?"":"?:",g=!0===n.bash?".*?":d;n.capture&&(g=`(${g})`);let b=e=>!0===e.noglobstar?g:`(${y}(?:(?!${f}${e.dot?l:s}).)*?)`,x=e=>{switch(e){case"*":return`${h}${o}${g}`;case".*":return`${s}${o}${g}`;case"*.*":return`${h}${g}${s}${o}${g}`;case"*/*":return`${h}${g}${a}${o}${m}${g}`;case"**":return h+b(n);case"**/*":return`(?:${h}${b(n)}${a})?${m}${o}${g}`;case"**/*.*":return`(?:${h}${b(n)}${a})?${m}${g}${s}${o}${g}`;case"**/.*":return`(?:${h}${b(n)}${a})?${s}${o}${g}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=x(t[1]);if(!n)return;return n+s+t[2]}}},S=x(eoR.removePrefix(e,{negated:!1,prefix:""}));return S&&!0!==n.strictSlashes&&(S+=`${a}?`),S},elg.default;let elb=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>elb(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let i=t||{},s=i.windows,a=r?elb.compileRe(e,t):elb.makeRe(e,t,!1,!0),o=a.state;delete a.state;let l=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};l=elb(i.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:c,output:p}=elb.test(n,a,t,{glob:e,posix:s}),d={glob:e,state:o,regex:a,posix:s,input:n,output:p,match:c,isMatch:u};return("function"==typeof i.onResult&&i.onResult(d),!1===u)?(d.isMatch=!1,!!r&&d):l(n)?("function"==typeof i.onIgnore&&i.onIgnore(d),d.isMatch=!1,!!r&&d):("function"==typeof i.onMatch&&i.onMatch(d),!r||d)};return n&&(u.state=o),u};function elx(e,t,n=!1){return t&&(null===t.windows||void 0===t.windows)&&(t={...t,windows:eoR.isWindows()}),elb(e,t,n)}elb.test=(e,t,n,{glob:r,posix:i}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=n||{},a=s.format||(i?eoR.toPosixSlashes:null),o=e===r,l=o&&a?a(e):e;return!1===o&&(o=(l=a?a(e):e)===r),(!1===o||!0===s.capture)&&(o=!0===s.matchBase||!0===s.basename?elb.matchBase(e,t,n,i):t.exec(l)),{isMatch:!!o,match:o,output:l}},elb.matchBase=(e,t,n,r=n&&n.windows)=>(t instanceof RegExp?t:elb.makeRe(t,n)).test(eoR.basename(e,{windows:r})),elb.isMatch=(e,t,n)=>elb(t,n)(e),elb.parse=(e,t)=>Array.isArray(e)?e.map(e=>elb.parse(e,t)):elg(e,{...t,fastpaths:!1}),elb.scan=(e,t)=>((e,t)=>{let n,r,i=t||{},s=e.length-1,a=!0===i.parts||!0===i.tokens||!0===i.scanToEnd,o=[],l=[],u=[],c=e,p=-1,d=0,f=0,h=!1,m=!1,y=!1,g=!1,b=!1,x=!1,S=!1,T=!1,v=!1,E=!1,k=0,w={value:"",depth:0,isGlob:!1},A=()=>p>=s,P=()=>c.charCodeAt(p+1),C=()=>(n=r,c.charCodeAt(++p));for(;p<s;){let e;if((r=C())===eo0){S=w.backslashes=!0,(r=C())===eo5&&(x=!0);continue}if(!0===x||r===eo5){for(k++;!0!==A()&&(r=C());){if(r===eo0){S=w.backslashes=!0,C();continue}if(r===eo5){k++;continue}if(!0!==x&&r===eo2&&(r=C())===eo2||!0!==x&&r===eo1){if(h=w.isBrace=!0,y=w.isGlob=!0,E=!0,!0===a)continue;break}if(r===ele&&0==--k){x=!1,h=w.isBrace=!0,E=!0;break}}if(!0===a)continue;break}if(r===eo4){if(o.push(p),l.push(w),w={value:"",depth:0,isGlob:!1},!0===E)continue;if(n===eo2&&p===d+1){d+=2;continue}f=p+1;continue}if(!0!==i.noext&&!0==(r===eo9||r===eoZ||r===eoQ||r===eo7||r===eo3)&&P()===eo8){if(y=w.isGlob=!0,g=w.isExtglob=!0,E=!0,r===eo3&&p===d&&(v=!0),!0===a){let e=0;for(;!0!==A()&&(r=C());){if(r===eo0){S=w.backslashes=!0,C();continue}if(r===eo8){e++;continue}if(r===elt&&0==--e){E=!0;break}}continue}break}if(r===eoQ){if(n===eoQ&&(b=w.isGlobstar=!0),y=w.isGlob=!0,E=!0,!0===a)continue;break}if(r===eo7){if(y=w.isGlob=!0,E=!0,!0===a)continue;break}if(r===eo6){for(;!0!==A()&&(e=C());){if(e===eo0){S=w.backslashes=!0,C();continue}if(e===eln){m=w.isBracket=!0,y=w.isGlob=!0,E=!0;break}}if(!0===a)continue;break}if(!0!==i.nonegate&&r===eo3&&p===d){T=w.negated=!0,d++;continue}if(!0!==i.noparen&&r===eo8){if(y=w.isGlob=!0,!0===a){let e=1;for(;!0!==A()&&(r=C());){if(r===eo0){S=w.backslashes=!0,C();continue}if(r===eo8){e++;continue}if(r===elt&&0==--e){E=!0;break}}continue}break}if(!0===y){if(E=!0,!0===a)continue;break}}!0===i.noext&&(g=!1,y=!1);let I=c,_="",N="";d>0&&(_=c.slice(0,d),c=c.slice(d),f-=d),I&&!0===y&&f>0?(I=c.slice(0,f),N=c.slice(f)):!0===y?(I="",N=c):I=c,I&&""!==I&&"/"!==I&&I!==c&&elr(I.charCodeAt(I.length-1))&&(I=I.slice(0,-1)),!0===i.unescape&&(N&&(N=eoR.removeBackslashes(N)),I&&!0===S&&(I=eoR.removeBackslashes(I)));let L={prefix:_,input:e,start:d,base:I,glob:N,isBrace:h,isBracket:m,isGlob:y,isExtglob:g,isGlobstar:b,negated:T,negatedExtglob:v};if(!0===i.tokens&&(L.maxDepth=0,elr(r)||l.push(w),L.tokens=l),!0===i.parts||!0===i.tokens){let t;for(let n=0;n<o.length;n++){let r=void 0!==t?t+1:d,s=o[n],a=e.slice(r,s);i.tokens&&(0===n&&0!==d?(l[n].isPrefix=!0,l[n].value=_):l[n].value=a,eli(l[n]),L.maxDepth+=l[n].depth),s>=d&&(u.push(a),t=s)}let n=void 0!==t?t+1:d,r=e.slice(n);u.push(r),i.tokens&&t&&t+1<e.length&&(l[l.length-1].value=r,eli(l[l.length-1]),L.maxDepth+=l[l.length-1].depth),L.slashes=o,L.parts=u}return L})(e,t),elb.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let i=t||{},s=i.contains?"":"^",a=i.contains?"":"$",o=`${s}(?:${e.output})${a}`;e&&!0===e.negated&&(o=`^(?!${o}).*$`);let l=elb.toRegex(o,t);return!0===r&&(l.state=e),l},elb.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return!1!==t.fastpaths&&("."===e[0]||"*"===e[0])&&(i.output=elg.fastpaths(e,t)),i.output||(i=elg(e,t)),elb.compileRe(i,t,n,r)},elb.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},elb.constants=eoG,elb.default,Object.assign(elx,elb);var elS=elx.default;let{stringLiteral:elT}=tc,elv=({node:e})=>e.value,elE=e=>`'${e}'`,elk=({path:e,name:t,matchedElements:n})=>{e.node.elements.push(elT(t)),n.map(FZ)},elw=({node:e})=>!!e,elA=[],{parenthesizedExpression:elP,tsParenthesizedType:elC}=tc;function elI(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function el_(e,t=elI(e)){if("babel"!==t)return e.node.extra?.parenthesized;let{type:n}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(n)}let elN=(e,t)=>{let n=Wd(e);if(!n)return null;let[r]=WI(n,t,{type:"file"});return r||elN(n,t)},{stringLiteral:elL,isArrayExpression:elO}=tc,elD=({path:e,sortedElements:t})=>{e.node.elements=t};function elM(e,{separate:t}={}){let n=[],r=[],i=[],s=[],a=[];for(let t of e){let e=elB(t);if(e){if(e.startsWith("*")){n.push(t);continue}if(e.startsWith(".")){r.push(t);continue}if(e.startsWith("!")){a.push(t);continue}if(e.includes(".")){i.push(t);continue}e.startsWith("#")||s.push(t)}}return[n,r,i,s,a].flatMap(elF({separate:t}))}let elF=({separate:e}={})=>t=>e?t.length?[...t,elL("")]:[]:t,elB=({value:e})=>e?e.startsWith("**/")?e.slice(3):e:"",elj=({name:e})=>`Sort '${e}'`,elR=({sortedPath:e})=>{e.node.value.properties.sort(elq)},el$=e=>e.key.value,elU=(e,t)=>e.localeCompare(t),elq=(e,t)=>elU(e.key.value,t.key.value),{isArray:elK}=Array,elV=e=>elK(e)?e:[e],elJ=e=>`Remove files: '${Wy(e)}'`,elz=e=>{WS(e)},elW=({from:e,to:t})=>`Rename property: '${e}' -> '${t}'`,elX=({path:e,to:t})=>{t?F8(e.node.key,t):FZ(e)},elH={instrumentName:"PUTOUT_INSTRUMENT"};var elY=Object.freeze({__proto__:null,__docker:Uy,__docker_name:Us,__filesystem:Ug,__filesystem_name:Ul,__ignore:Ub,__ignore_name:Uu,__json:Uf,__json_name:Ui,__markdown:Ux,__markdown_name:Uc,__sql:Ud,__sql_name:Up,__toml:Um,__toml_name:Uo,__wasm:Xm,__wasm_name:Xh,__yaml:Uh,__yaml_name:Ua,addArgs:e=>{let t;return{report:Yh,fix:Ym,traverse:(t=e,({push:e,options:n})=>{let r={...n.args,...t};return{ReferencedIdentifier(t){for(let[n,i]of Yp(r)){let[r,s,a,o]=function(e){let[t,n,r]=e;if(Yn(n)||"string"==typeof n)return[t,"",n,r];let{type:i="",include:s,exclude:a}=n;return[t,i,s,a]}(i);if(t.node.name!==n||t.scope.hasBinding(n)||"call"===s&&!Yf(t))continue;let l=t.find(Yi);if(!l||!JZ(t.scope.path,a)||JZ(t.scope.path,o))continue;let{params:u}=l.node,[c,p]=function(e){for(let[t,n]of e.entries())if(Ya(n))return[t,n];return[-1,null]}(u);if(Ya(p))return void e({name:n,index:c,declaration:r,path:t,params:u,pattern:p});if(u.length>=3)return;e({name:n,index:c,declaration:r,path:t,params:u,pattern:Yu([])})}}}})}},addAttribute:Xl,addAttributeValue:Xo,addClassName:(e,t)=>{Xo(e,"className",t)},addParens:e=>{let t=elI(e);if(el_(e,t))return e;if("babel"!==t){let{extra:t={}}=e.node;return t.parenthesized=!0,e.node.extra=t,e}let{node:n}=e;return e.type.startsWith("TS")?e.replaceWith(elC(n)):(e.replaceWith(elP(n)),e)},compare:JQ,compareAll:J0,compareAny:JZ,compute:function e(t){let{node:n}=t;if(!t.evaluate)throw Error("☝️ Looks like argument of 'compute' is not 'path'");let{confident:r,value:i}=t.evaluate();if(r)return[!0,i];if(t.isBinaryExpression())return function(t){let{operator:n}=t.node,r=t.get("left"),i=t.get("right"),[s,a]=e(r);if(!s)return[!1];let[o,l]=e(i);if(!o)return[!1];let u=`return a ${n} b`;return[!0,(FG[n]||FG.init(n,Function("a","op","b",u)))(a,n,l)]}(t);if(FY(t))return[!0,FH(n)];let s=function(e){var t;let n,{node:r}=e;return e.isIdentifier()?FP(e,FH(r)):(n=(t=e).get("object"),t.isMemberExpression()&&!t.node.computed&&n.isIdentifier())?FP(e,FH(r.object)):null}(t);if(!s)return[!1];let a=s.get("init");return a.isObjectExpression()&&t.isMemberExpression()?function(t,n){let r=FH(t.node.property);for(let t of n.get("properties")){let n=t.get("key");if(!FY(n))break;if(FH(n)!==r)continue;let[i,s]=e(t.get("value"));if(!i)break;return[!0,s]}return[!1]}(t,a):[!1]},contains:(e,t)=>{let n=!1,r=e=>{n=!0,e.stop()},i={};for(let e of t)i[e]=r;return z7(e,i),n},containsClassName:(e,t)=>Xc(e).includes(t),copyFile:(e,t)=>{let n=Wy(t),r=Wy(e),i=qR(n,r.split("/").pop()),[s,a]=Wb(e),o=Wa([Wi("type",Wn("file")),Wi("filename",Wn(i)),s&&Wi("content",Wn(a))].filter(Boolean));WT(t,i),WE(t).node.value.elements.push(o),z2.copyFile(r,i)},crawlDirectory:Wf,createDirectory:Ww,createFile:Wv,createNestedDirectory:(e,t)=>{let n=WC(e);if(qU(t)===Wy(e))return Ww(e,qq(t));let r=t,i=Wy(n),s=[],a=r;for(;r!==i;)if(s.unshift(r),a=r,(r=qU(r))===a){for(let[e,t]of(r=i,s.entries()))s[e]=qR(i,t);s.shift();break}let o=Wh(n,s).at(-1)||n,l=Wy(o),u=s.length,c=s.indexOf(l)+1;for(;c<u;c++)o=Ww(o,qq(s[c]));return o},createTypeChecker:(e,t={})=>{let{create:n=L_}=t;return n(e,elH)},declare:zq,extract:FH,findBinding:(e,t)=>{let n=e.findParent(e=>e.scope.bindings[t]);return n?n.scope.bindings[t]:null},findFile:Wh,findFileUp:elN,findVarsWays:JU,fromBase64:Wc,fromJS:Uv,getAttributeNode:Xs,getAttributePath:(e,t)=>{for(let n of e.get("openingElement.attributes"))if(n.node.name.name===t)return n;return null},getAttributeValue:Xa,getBinding:FA,getBindingPath:FP,getClassName:Xc,getExportDefault:e=>{for(let t of e.scope.getProgramParent().path.get("body"))if(t.isExportDefaultDeclaration())return t;return null},getFile:WI,getFileContent:Wb,getFileType:Wg,getFilename:Wy,getLiteralRaw:e=>{var t;let{raw:n,extra:r,value:i}=e.node||e;if("string"==typeof n)return n;return r&&"string"==typeof r.raw?r.raw:`'${(t=i).includes("\\'")?t:t.replaceAll("'","\\'")}'`},getParentDirectory:Wd,getPathAfterImports:e=>{let t=e.length,n=0;for(;n<t-1&&Bv(e[n]);)++n;return e[n]},getPathAfterRequires:e=>{let t;for(t of e)if(!function(e){if(!e.isVariableDeclaration())return!1;let t=e.get("declarations.0.init");return!!t.isCallExpression()&&t.get("callee").isIdentifier({name:"require"})}(t))break;return t},getProperties:(e,t)=>{let n={};for(let r of e.get("properties")){if(r.isSpreadElement())continue;let e=FH(r.get("key"));if(t.includes(e)){n[`${e}Path`]=r;continue}}return n},getProperty:Br,getRootDirectory:WC,getStringFromRegExp:function({pattern:e}){return Yt(e,{quotes:"single",escapeseq:!0})},getTemplateValues:J$,getValues:Jq,hasAttributeValue:(e,t,n="")=>Xa(e,t)===n,hasDataName:(e,t="")=>Xa(e,"data-name")===t,hasParens:el_,hasTagName:(e,t)=>{let n=e.node||e;return!!Xt(e)&&n.openingElement.name.name===t},ignore:({name:e,property:t,list:n,type:r=Ub})=>{let i;return{report:(i=e,({name:e,matchedElements:t})=>{let n="";if(t.length){let e=t.map(elv).map(elE).join(", ");n=` instead of ${e}`}return`Add '${e}'${n} to '${i}'`}),fix:elk,traverse:(({type:e,property:t,list:n})=>({push:r,options:i})=>{let{dismiss:s=[]}=i,a=function(e,t){let n=[];for(let r of e)t.includes(r)||n.push(r);return n}([...n,...i.list||[]],s);return a.length?{[e]:e=>{let[n,i]=function(e,{property:t}){if(!t){let[t]=e.get("arguments");return[t,t.get("elements")]}let[n]=F7(e,t);if(!n)return[null,elA];let r=n.get("value");return[r,r.get("elements")]}(e,{property:t});if(!n)return;let s=i.map(elv);for(let e of new Set(a).difference(new Set(s))){let t=elS(e),s=[];for(let e of i.filter(elw)){let{value:n}=e.node;t(n)&&s.push(e)}r({path:n,matchedElements:s,elements:i,name:e})}}}:{}})({type:r,property:t,list:n})}},insertAfter:BP,insertBefore:(e,t)=>{if(e.insertBefore(t),Bw(e)&&BT(e.parentPath)){let{key:t}=e;e.parentPath.node.elements.splice(t,1,...e.node.expressions)}},isConditionKeyword:e=>Yx.includes(e),isDeclarationKeyword:e=>Yb.includes(e),isDocker:e=>!e.indexOf(Us),isESM:BC,isJSON:UE,isJSONGroup:Uw,isKeyword:e=>YE.includes(e),isLegacyKeyword:e=>Yg.includes(e),isModuleDeclarationKeyword:e=>Yy.includes(e),isModuleExports:e=>BS(e.node||e,"module.exports"),isSQL:UA,isSimple:FO,isSimpleRegExp:e=>{let t=!1,n=XJ.parse(e);return"Alternative"===n.body.type&&(XJ.traverse(n,{RegExp({node:e}){let{expressions:n}=e.body;t=!!n.find(HY)}}),!t)},isStatementKeyword:e=>Yv.includes(e),isTOML:Uk,isTSKeyword:e=>{let t=YS.includes(e),n=YT.includes(e);return t||n},isTemplate:VQ,matchFiles:e=>{let{filename:t}=e,n=e.files||e,r=e.exclude||[];return function(e){for(let[,t]of eoL(e))if(!eoN(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(n),{fix:eoD,scan:(({files:e,exclude:t,defaultFilename:n})=>(r,{push:i,progress:s,options:a})=>{let o=[],l=Wy(r);for(let[i,s]of(a.filename=a.filename||n,eoL(e))){let[e]=eoM(i,a);for(let n of Wh(r,e,t)){let e=Wd(n),t=Wy(n),[r,u=r]=eoM(i,{filename:t});YC(l,t,a)||o.push({dirPath:e,matchInputFilename:r,rawOptions:s,inputFile:n,inputFilename:t,outputFilename:u})}}let u=o.length;for(let[e,t]of o.entries()){var c,p;let{dirPath:n,matchInputFilename:r,inputFile:a,inputFilename:o,outputFilename:l,rawOptions:d}=t;s({i:e,n:u});let{ast:f}=function(e,t){let{branch:n}=eow(eoI(e));return n(t)}(o,WA(a)||"{}"),h=(c=o,(p=d).plugins?p:{plugins:[[`match-file: ${c}`,p]]}),[m,y]=ql(Yk,f,h);if(m)throw Error(`${o}: ${m.message}`,{cause:m});if(!y.length)continue;let{message:g}=y[0];i(a,{dirPath:n,matchInputFilename:r,inputFilename:o,outputFilename:l,message:g,options:h,rawOptions:d,ast:f})}})({defaultFilename:t,files:n,exclude:r}),report:eoO}},moveFile:(e,t)=>{if(e===t)return;let n=Wy(t),r=Wy(e),i=WE(t),s=Br(e,"filename"),a=qR(n,r.split("/").pop());WT(t,a),F8(s.get("value"),a),i.node.value.elements.push(e.node),e.remove(),z3(r,a)},parseTemplate:Jc,readDirectory:Wk,readFileContent:WA,remove:FZ,removeAttributeValue:Xu,removeClassName:(e,t)=>{Xu(e,"className",t)},removeEmptyDirectory:e=>{if("directory"!==Wg(e))return;let t=e;for(;!Wk(e).length&&"/"!==Wy(e)&&(t=Wd(e));)WS(e),e=t},removeFile:WS,removeFiles:e=>({report:elJ,fix:elz,scan:((e=[])=>(t,{push:n,trackFile:r,options:i})=>{let{names:s,dismiss:a}=i,o=[elV(e),elV(s)],l=o.flat().filter(Boolean);if(l.length){for(let e of r(t,new Set(l).difference(new Set(a))))n(e,{names:o})}})(e)}),removeParens:e=>{let t=elI(e);if(!el_(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;let{node:n}=e;return e.parentPath.replaceWith(n),e},rename:(e,t,n)=>{let r=e.scope.getAllBindings()[t];if(!r)return;let i=r.path;F3(i,t,n),i.scope.rename(t,n)},renameFile:Wx,renameFiles:({type:e,mask:t,rename:n,from:r,to:i,near:s}={})=>{if(n){let{report:r,fix:i,createScan:s}=eoB;return{report:r,fix:i,scan:s({type:e,mask:t,rename:n})}}let{report:a,fix:o,createScan:l}=eoj;return{fix:o,report:a,scan:l({mask:t,from:r,to:i,near:s})}},renameProperties:e=>{let t;return{report:elW,fix:elX,traverse:(t=e,({push:e})=>({[Uf](n){for(let[r,i]of t)for(let t of F7(n,r))e({path:t,from:r,to:i})}}))}},renameProperty:F3,replaceWith:Bx,replaceWithMultiple:(e,t)=>{let{node:n}=e,{trailingComments:r,comments:i,leadingComments:s}=n;delete e.node.trailingComments;let a=e.parentPath.node.comments,o=t.filter(Boolean).map(By).map(Bf);var l=o;for(let e of l)for(let t of l)e!==t&&e.leadingComments===t.leadingComments&&delete t.leadingComments;let{currentPath:u}=Bu(e),c=u.replaceWithMultiple(o);if(!c.length)return c;s||Bh(e)||delete c[0].node.leadingComments;let p=c.at(0),d=c.at(-1);p.node.comments=i||a,d.node.trailingComments=r;let f=p.parentPath;if(Bh(f)&&Bm(f.parentPath)){let{parentPath:e,key:t,node:n}=f;e.node.elements.splice(t,1,...n.expressions)}return c},setAttributeValue:(e,t,n)=>{let r=Xs(e,t);if(!r)return Xl(e,t,n);F8(r.value,n)},setLiteralValue:F8,setValues:JV,sortIgnore:({name:e,property:t,type:n=Ub})=>({report:(({name:e,property:t})=>()=>t?`Sort '${t}' section of '${e}'`:`Sort '${e}'`)({name:e,property:t}),fix:elD,traverse:(({type:e,property:t})=>({push:n})=>({[e]:e=>{let r=function(e,{property:t}){if(!t){let[t]=e.get("arguments");return t.node.elements?t:null}let[n]=F7(e,t);if(!n)return null;let r=n.get("value");return elO(r)?r:null}(e,{property:t});if(!r)return;let{elements:i}=r.node,s=function(e,{separate:t}){let n=[],r=[];for(let t of e){let{value:e}=t;if(e.startsWith("**/")){n.push(t);continue}r.push(t)}let i=[...elM(n,{separate:t}),...elM(r,{separate:t})];return i.length?i.at(-1).value?i:i.slice(0,-1):e}(i,{separate:!t});for(let[e,{value:t}]of i.entries())if(s[e].value!==t){n({path:r,sortedElements:s});break}}}))({type:n,property:t})}),sortProperties:e=>{let t;return{report:elj,fix:elR,traverse:(t=e,({push:e})=>({[Uf]:n=>{let[r]=F7(n,"rules"),i=r.node.value.properties.map(el$),s=i.toSorted(elU);!function(e,t){for(let[n,r]of e.entries())if(r!==t[n])return!1;return!0}(i,s)&&e({name:t,path:n,sortedPath:r})}}))}},superTraverse:z7,toBase64:Wu,toExpression:Bf,toJS:UT,transformRegExp:(e,t)=>{var n=t;if(!n)throw Error("☝️ Looks like RegExpTransformer is missing");let{report:r,traverse:i,fix:s}=t,a=XJ.parse(e,{captureLocations:!0}),o=[];return XJ.traverse(a,i({push:e=>{let{start:t}=(e.path||e).node.loc;o.push({position:t,message:r(e)}),s(e)}})),[XJ.generate(a),o]},traverse:z7,traverseProperties:F7,unwrapNamespace:(e,t=Xm)=>{if(!e.startsWith("namespace"))return e;let n=Xd(t);e=e.slice(e.indexOf(n));let r=Xf(t),i=e.length-2;return e.slice(r.length,i).split("\n").map(Xy).join("\n")},wrapInNamespace:(e,t=Xm)=>{let n=Xf(t),r=e.split("\n").map(Xg).join("\n");return`${n}${r}
|
|
97
|
+
}`},writeFileContent:WP});let elG=({source:e,error:t,highlightCode:n=!0})=>{let{message:r,loc:i}=t;return i?kn(e,{start:i},{highlightCode:n,message:r}):r};Object.assign(W9,Object.freeze({__proto__:null,codeframe:elG,findPlaces:Yk,findPlacesAsync:Yw,generate:qh,operator:elY,parse:qd,print:UF,putoutAsync:W7,template:qN,transform:W8,transformAsync:W6,traverse:Ld,types:tc}));let elQ=["input","img","br","hr","meta","link","col","area","base"],elZ=(e,t,n)=>{let r="";if("string"==typeof t&&t.length>2){let e=t.slice(2).split("")[0];r=e?e.toUpperCase():""}return`on${r}${t&&t.length>3?t.slice(3):""}={${n}}`},el0=function(e,t){var n;return n=e=e.replace(/<!DOCTYPE html>|<!DOCTYPE>/gi,""),e=(e=(e=(e=(e=(e=(e=(e=(e=`<div>${n}</div>`).replaceAll(RegExp(`<(${elQ.join("|")})(?=[s>/])([^>]*)s*/?>`,"gi"),(e,t,n)=>`<${t}${n||""}/>`).replace(/\/\/>/g,"/>")).replaceAll(/(\bon\w+)=['"]([^'"]+)['"]/g,elZ)).replaceAll(/class=/g,"className=")).replaceAll(/<!--[\s\S]*?-->/g,"")).replaceAll("</img>","")).replaceAll(/style\s*=\s*(".*?")/gi,(e,t)=>`style={${function(e){let t=e.replace(/['"]/g,"").trim();if(!t)return"{}";let n=t.split(";").filter(e=>e.trim()).map(e=>{let[t,n]=e.split(":").map(e=>e.trim());if(!t||!n)return"";let r=t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());return`${r}: "${n}"`}).filter(Boolean);return`{${n.join(", ")}}`}(t)}}`)).replaceAll('xmlns:xlink="http://www.w3.org/1999/xlink"',"")).replace(/for=/gi,"htmlFor=").replace(/\b(autocomplete)\b/gi,"autoComplete").replace(/\b(tabindex)\b/ig,"tabIndex").replace(/\b(stroke-width)\b/ig,"strokeWidth").replace(/\b(stroke-linejoin)\b/ig,"strokeLinejoin").replace(/\b(stroke-linecap)\b/ig,"strokeLinecap")},el1=["*.html"],el2=e=>[{source:el0(e).trim().slice(5,-6)}],el3=(e,[t])=>{var n;return((n=t).endsWith(";\n")?n.slice(0,-2):n).replaceAll("className","class")},{CloudCmd:el4}=globalThis;globalThis.CloudCmdPutout={putout:el,processorHtml:eu},el4.Putout={init:()=>{}}})()})();
|
|
98
|
+
//# sourceMappingURL=putout.js.map
|