prscan 1.0.0 → 1.0.2
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/bundle/index.js +23 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +1 -0
- package/dist/cli/cli.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/cli.ts +1 -0
package/bundle/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import{createRequire as __WEBPACK_EXTERNAL_createRequire}from"module";var __webpack_modules__={5350:function(r,s,l){r=l.nmd(r);(function(s,p){if(true){p(r,l(2164),l(5360));r.exports=def(r)}else{}function def(r){return"default"in r.exports?r.exports.default:r.exports}})(this,(function(r,s,l){"use strict";var p=Object.create;var d=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf;var T=Object.prototype.hasOwnProperty;var __commonJS=(r,s)=>function __require(){return s||(0,r[y(r)[0]])((s={exports:{}}).exports,s),s.exports};var __export=(r,s)=>{for(var l in s)d(r,l,{get:s[l],enumerable:true})};var __copyProps=(r,s,l,p)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let g of y(s))if(!T.call(r,g)&&g!==l)d(r,g,{get:()=>s[g],enumerable:!(p=m(s,g))||p.enumerable})}return r};var __toESM=(r,s,l)=>(l=r!=null?p(g(r)):{},__copyProps(s||!r||!r.__esModule?d(l,"default",{value:r,enumerable:true}):l,r));var __toCommonJS=r=>__copyProps(d({},"__esModule",{value:true}),r);var b=__commonJS({"umd:@jridgewell/sourcemap-codec"(r,l){l.exports=s}});var E=__commonJS({"umd:@jridgewell/trace-mapping"(r,s){s.exports=l}});var S={};__export(S,{GenMapping:()=>O,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap});r.exports=__toCommonJS(S);var _=class{constructor(){this._indexes={__proto__:null};this.array=[]}};function cast(r){return r}function get(r,s){return cast(r)._indexes[s]}function put(r,s){const l=get(r,s);if(l!==void 0)return l;const{array:p,_indexes:d}=cast(r);const m=p.push(s);return d[s]=m-1}function remove(r,s){const l=get(r,s);if(l===void 0)return;const{array:p,_indexes:d}=cast(r);for(let r=l+1;r<p.length;r++){const s=p[r];p[r-1]=s;d[s]--}d[s]=void 0;p.pop()}var x=__toESM(b());var w=__toESM(E());var v=0;var A=1;var P=2;var k=3;var C=4;var I=-1;var O=class{constructor({file:r,sourceRoot:s}={}){this._names=new _;this._sources=new _;this._sourcesContent=[];this._mappings=[];this.file=r;this.sourceRoot=s;this._ignoreList=new _}};function cast2(r){return r}function addSegment(r,s,l,p,d,m,y,g){return addSegmentInternal(false,r,s,l,p,d,m,y,g)}function addMapping(r,s){return addMappingInternal(false,r,s)}var maybeAddSegment=(r,s,l,p,d,m,y,g)=>addSegmentInternal(true,r,s,l,p,d,m,y,g);var maybeAddMapping=(r,s)=>addMappingInternal(true,r,s);function setSourceContent(r,s,l){const{_sources:p,_sourcesContent:d}=cast2(r);const m=put(p,s);d[m]=l}function setIgnore(r,s,l=true){const{_sources:p,_sourcesContent:d,_ignoreList:m}=cast2(r);const y=put(p,s);if(y===d.length)d[y]=null;if(l)put(m,y);else remove(m,y)}function toDecodedMap(r){const{_mappings:s,_sources:l,_sourcesContent:p,_names:d,_ignoreList:m}=cast2(r);removeEmptyFinalLines(s);return{version:3,file:r.file||void 0,names:d.array,sourceRoot:r.sourceRoot||void 0,sources:l.array,sourcesContent:p,mappings:s,ignoreList:m.array}}function toEncodedMap(r){const s=toDecodedMap(r);return Object.assign({},s,{mappings:(0,x.encode)(s.mappings)})}function fromMap(r){const s=new w.TraceMap(r);const l=new O({file:s.file,sourceRoot:s.sourceRoot});putAll(cast2(l)._names,s.names);putAll(cast2(l)._sources,s.sources);cast2(l)._sourcesContent=s.sourcesContent||s.sources.map((()=>null));cast2(l)._mappings=(0,w.decodedMappings)(s);if(s.ignoreList)putAll(cast2(l)._ignoreList,s.ignoreList);return l}function allMappings(r){const s=[];const{_mappings:l,_sources:p,_names:d}=cast2(r);for(let r=0;r<l.length;r++){const m=l[r];for(let l=0;l<m.length;l++){const y=m[l];const g={line:r+1,column:y[v]};let T=void 0;let b=void 0;let E=void 0;if(y.length!==1){T=p.array[y[A]];b={line:y[P]+1,column:y[k]};if(y.length===5)E=d.array[y[C]]}s.push({generated:g,source:T,original:b,name:E})}}return s}function addSegmentInternal(r,s,l,p,d,m,y,g,T){const{_mappings:b,_sources:E,_sourcesContent:S,_names:_}=cast2(s);const x=getIndex(b,l);const w=getColumnIndex(x,p);if(!d){if(r&&skipSourceless(x,w))return;return insert(x,w,[p])}assert(m);assert(y);const v=put(E,d);const A=g?put(_,g):I;if(v===S.length)S[v]=T!=null?T:null;if(r&&skipSource(x,w,v,m,y,A)){return}return insert(x,w,g?[p,v,m,y,A]:[p,v,m,y])}function assert(r){}function getIndex(r,s){for(let l=r.length;l<=s;l++){r[l]=[]}return r[s]}function getColumnIndex(r,s){let l=r.length;for(let p=l-1;p>=0;l=p--){const l=r[p];if(s>=l[v])break}return l}function insert(r,s,l){for(let l=r.length;l>s;l--){r[l]=r[l-1]}r[s]=l}function removeEmptyFinalLines(r){const{length:s}=r;let l=s;for(let s=l-1;s>=0;l=s,s--){if(r[s].length>0)break}if(l<s)r.length=l}function putAll(r,s){for(let l=0;l<s.length;l++)put(r,s[l])}function skipSourceless(r,s){if(s===0)return true;const l=r[s-1];return l.length===1}function skipSource(r,s,l,p,d,m){if(s===0)return false;const y=r[s-1];if(y.length===1)return false;return l===y[A]&&p===y[P]&&d===y[k]&&m===(y.length===5?y[C]:I)}function addMappingInternal(r,s,l){const{generated:p,source:d,original:m,name:y,content:g}=l;if(!d){return addSegmentInternal(r,s,p.line-1,p.column,null,null,null,null,null)}assert(m);return addSegmentInternal(r,s,p.line-1,p.column,d,m.line-1,m.column,y,g)}}))},5662:function(r){(function(s,l){true?r.exports=l():0})(this,(function(){"use strict";const r=/^[\w+.-]+:\/\//;const s=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const l=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(s){return r.test(s)}function isSchemeRelativeUrl(r){return r.startsWith("//")}function isAbsolutePath(r){return r.startsWith("/")}function isFileUrl(r){return r.startsWith("file:")}function isRelative(r){return/^[.?#]/.test(r)}function parseAbsoluteUrl(r){const l=s.exec(r);return makeUrl(l[1],l[2]||"",l[3],l[4]||"",l[5]||"/",l[6]||"",l[7]||"")}function parseFileUrl(r){const s=l.exec(r);const p=s[2];return makeUrl("file:","",s[1]||"","",isAbsolutePath(p)?p:"/"+p,s[3]||"",s[4]||"")}function makeUrl(r,s,l,p,d,m,y){return{scheme:r,user:s,host:l,port:p,path:d,query:m,hash:y,type:7}}function parseUrl(r){if(isSchemeRelativeUrl(r)){const s=parseAbsoluteUrl("http:"+r);s.scheme="";s.type=6;return s}if(isAbsolutePath(r)){const s=parseAbsoluteUrl("http://foo.com"+r);s.scheme="";s.host="";s.type=5;return s}if(isFileUrl(r))return parseFileUrl(r);if(isAbsoluteUrl(r))return parseAbsoluteUrl(r);const s=parseAbsoluteUrl("http://foo.com/"+r);s.scheme="";s.host="";s.type=r?r.startsWith("?")?3:r.startsWith("#")?2:4:1;return s}function stripPathFilename(r){if(r.endsWith("/.."))return r;const s=r.lastIndexOf("/");return r.slice(0,s+1)}function mergePaths(r,s){normalizePath(s,s.type);if(r.path==="/"){r.path=s.path}else{r.path=stripPathFilename(s.path)+r.path}}function normalizePath(r,s){const l=s<=4;const p=r.path.split("/");let d=1;let m=0;let y=false;for(let r=1;r<p.length;r++){const s=p[r];if(!s){y=true;continue}y=false;if(s===".")continue;if(s===".."){if(m){y=true;m--;d--}else if(l){p[d++]=s}continue}p[d++]=s;m++}let g="";for(let r=1;r<d;r++){g+="/"+p[r]}if(!g||y&&!g.endsWith("/..")){g+="/"}r.path=g}function resolve(r,s){if(!r&&!s)return"";const l=parseUrl(r);let p=l.type;if(s&&p!==7){const r=parseUrl(s);const d=r.type;switch(p){case 1:l.hash=r.hash;case 2:l.query=r.query;case 3:case 4:mergePaths(l,r);case 5:l.user=r.user;l.host=r.host;l.port=r.port;case 6:l.scheme=r.scheme}if(d>p)p=d}normalizePath(l,p);const d=l.query+l.hash;switch(p){case 2:case 3:return d;case 4:{const p=l.path.slice(1);if(!p)return d||".";if(isRelative(s||r)&&!isRelative(p)){return"./"+p+d}return p+d}case 5:return l.path+d;default:return l.scheme+"//"+l.user+l.host+l.port+l.path+d}}return resolve}))},2164:function(r,s,l){r=l.nmd(r);(function(s,l){if(true){l(r);r.exports=def(r)}else{}function def(r){return"default"in r.exports?r.exports.default:r.exports}})(this,(function(r){"use strict";var s=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var __export=(r,l)=>{for(var p in l)s(r,p,{get:l[p],enumerable:true})};var __copyProps=(r,m,y,g)=>{if(m&&typeof m==="object"||typeof m==="function"){for(let T of p(m))if(!d.call(r,T)&&T!==y)s(r,T,{get:()=>m[T],enumerable:!(g=l(m,T))||g.enumerable})}return r};var __toCommonJS=r=>__copyProps(s({},"__esModule",{value:true}),r);var m={};__export(m,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes});r.exports=__toCommonJS(m);var y=",".charCodeAt(0);var g=";".charCodeAt(0);var T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b=new Uint8Array(64);var E=new Uint8Array(128);for(let r=0;r<T.length;r++){const s=T.charCodeAt(r);b[r]=s;E[s]=r}function decodeInteger(r,s){let l=0;let p=0;let d=0;do{const s=r.next();d=E[s];l|=(d&31)<<p;p+=5}while(d&32);const m=l&1;l>>>=1;if(m){l=-2147483648|-l}return s+l}function encodeInteger(r,s,l){let p=s-l;p=p<0?-p<<1|1:p<<1;do{let s=p&31;p>>>=5;if(p>0)s|=32;r.write(b[s])}while(p>0);return s}function hasMoreVlq(r,s){if(r.pos>=s)return false;return r.peek()!==y}var S=1024*16;var _=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(r){const s=Buffer.from(r.buffer,r.byteOffset,r.byteLength);return s.toString()}}:{decode(r){let s="";for(let l=0;l<r.length;l++){s+=String.fromCharCode(r[l])}return s}};var x=class{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(S)}write(r){const{buffer:s}=this;s[this.pos++]=r;if(this.pos===S){this.out+=_.decode(s);this.pos=0}}flush(){const{buffer:r,out:s,pos:l}=this;return l>0?s+_.decode(r.subarray(0,l)):s}};var w=class{constructor(r){this.pos=0;this.buffer=r}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(r){const{buffer:s,pos:l}=this;const p=s.indexOf(r,l);return p===-1?s.length:p}};var v=[];function decodeOriginalScopes(r){const{length:s}=r;const l=new w(r);const p=[];const d=[];let m=0;for(;l.pos<s;l.pos++){m=decodeInteger(l,m);const r=decodeInteger(l,0);if(!hasMoreVlq(l,s)){const s=d.pop();s[2]=m;s[3]=r;continue}const y=decodeInteger(l,0);const g=decodeInteger(l,0);const T=g&1;const b=T?[m,r,0,0,y,decodeInteger(l,0)]:[m,r,0,0,y];let E=v;if(hasMoreVlq(l,s)){E=[];do{const r=decodeInteger(l,0);E.push(r)}while(hasMoreVlq(l,s))}b.vars=E;p.push(b);d.push(b)}return p}function encodeOriginalScopes(r){const s=new x;for(let l=0;l<r.length;){l=_encodeOriginalScopes(r,l,s,[0])}return s.flush()}function _encodeOriginalScopes(r,s,l,p){const d=r[s];const{0:m,1:g,2:T,3:b,4:E,vars:S}=d;if(s>0)l.write(y);p[0]=encodeInteger(l,m,p[0]);encodeInteger(l,g,0);encodeInteger(l,E,0);const _=d.length===6?1:0;encodeInteger(l,_,0);if(d.length===6)encodeInteger(l,d[5],0);for(const r of S){encodeInteger(l,r,0)}for(s++;s<r.length;){const d=r[s];const{0:m,1:y}=d;if(m>T||m===T&&y>=b){break}s=_encodeOriginalScopes(r,s,l,p)}l.write(y);p[0]=encodeInteger(l,T,p[0]);encodeInteger(l,b,0);return s}function decodeGeneratedRanges(r){const{length:s}=r;const l=new w(r);const p=[];const d=[];let m=0;let y=0;let g=0;let T=0;let b=0;let E=0;let S=0;let _=0;do{const r=l.indexOf(";");let s=0;for(;l.pos<r;l.pos++){s=decodeInteger(l,s);if(!hasMoreVlq(l,r)){const r=d.pop();r[2]=m;r[3]=s;continue}const x=decodeInteger(l,0);const w=x&1;const A=x&2;const P=x&4;let k=null;let C=v;let I;if(w){const r=decodeInteger(l,y);g=decodeInteger(l,y===r?g:0);y=r;I=[m,s,0,0,r,g]}else{I=[m,s,0,0]}I.isScope=!!P;if(A){const r=T;const s=b;T=decodeInteger(l,T);const p=r===T;b=decodeInteger(l,p?b:0);E=decodeInteger(l,p&&s===b?E:0);k=[T,b,E]}I.callsite=k;if(hasMoreVlq(l,r)){C=[];do{S=m;_=s;const r=decodeInteger(l,0);let p;if(r<-1){p=[[decodeInteger(l,0)]];for(let s=-1;s>r;s--){const r=S;S=decodeInteger(l,S);_=decodeInteger(l,S===r?_:0);const s=decodeInteger(l,0);p.push([s,S,_])}}else{p=[[r]]}C.push(p)}while(hasMoreVlq(l,r))}I.bindings=C;p.push(I);d.push(I)}m++;l.pos=r+1}while(l.pos<s);return p}function encodeGeneratedRanges(r){if(r.length===0)return"";const s=new x;for(let l=0;l<r.length;){l=_encodeGeneratedRanges(r,l,s,[0,0,0,0,0,0,0])}return s.flush()}function _encodeGeneratedRanges(r,s,l,p){const d=r[s];const{0:m,1:g,2:T,3:b,isScope:E,callsite:S,bindings:_}=d;if(p[0]<m){catchupLine(l,p[0],m);p[0]=m;p[1]=0}else if(s>0){l.write(y)}p[1]=encodeInteger(l,d[1],p[1]);const x=(d.length===6?1:0)|(S?2:0)|(E?4:0);encodeInteger(l,x,0);if(d.length===6){const{4:r,5:s}=d;if(r!==p[2]){p[3]=0}p[2]=encodeInteger(l,r,p[2]);p[3]=encodeInteger(l,s,p[3])}if(S){const{0:r,1:s,2:m}=d.callsite;if(r!==p[4]){p[5]=0;p[6]=0}else if(s!==p[5]){p[6]=0}p[4]=encodeInteger(l,r,p[4]);p[5]=encodeInteger(l,s,p[5]);p[6]=encodeInteger(l,m,p[6])}if(_){for(const r of _){if(r.length>1)encodeInteger(l,-r.length,0);const s=r[0][0];encodeInteger(l,s,0);let p=m;let d=g;for(let s=1;s<r.length;s++){const m=r[s];p=encodeInteger(l,m[1],p);d=encodeInteger(l,m[2],d);encodeInteger(l,m[0],0)}}}for(s++;s<r.length;){const d=r[s];const{0:m,1:y}=d;if(m>T||m===T&&y>=b){break}s=_encodeGeneratedRanges(r,s,l,p)}if(p[0]<T){catchupLine(l,p[0],T);p[0]=T;p[1]=0}else{l.write(y)}p[1]=encodeInteger(l,b,p[1]);return s}function catchupLine(r,s,l){do{r.write(g)}while(++s<l)}function decode(r){const{length:s}=r;const l=new w(r);const p=[];let d=0;let m=0;let y=0;let g=0;let T=0;do{const r=l.indexOf(";");const s=[];let b=true;let E=0;d=0;while(l.pos<r){let p;d=decodeInteger(l,d);if(d<E)b=false;E=d;if(hasMoreVlq(l,r)){m=decodeInteger(l,m);y=decodeInteger(l,y);g=decodeInteger(l,g);if(hasMoreVlq(l,r)){T=decodeInteger(l,T);p=[d,m,y,g,T]}else{p=[d,m,y,g]}}else{p=[d]}s.push(p);l.pos++}if(!b)sort(s);p.push(s);l.pos=r+1}while(l.pos<=s);return p}function sort(r){r.sort(sortComparator)}function sortComparator(r,s){return r[0]-s[0]}function encode(r){const s=new x;let l=0;let p=0;let d=0;let m=0;for(let T=0;T<r.length;T++){const b=r[T];if(T>0)s.write(g);if(b.length===0)continue;let E=0;for(let r=0;r<b.length;r++){const g=b[r];if(r>0)s.write(y);E=encodeInteger(s,g[0],E);if(g.length===1)continue;l=encodeInteger(s,g[1],l);p=encodeInteger(s,g[2],p);d=encodeInteger(s,g[3],d);if(g.length===4)continue;m=encodeInteger(s,g[4],m)}}return s.flush()}}))},5360:function(r,s,l){r=l.nmd(r);(function(s,p){if(true){p(r,l(5662),l(2164));r.exports=def(r)}else{}function def(r){return"default"in r.exports?r.exports.default:r.exports}})(this,(function(r,s,l){"use strict";var p=Object.create;var d=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf;var T=Object.prototype.hasOwnProperty;var __commonJS=(r,s)=>function __require(){return s||(0,r[y(r)[0]])((s={exports:{}}).exports,s),s.exports};var __export=(r,s)=>{for(var l in s)d(r,l,{get:s[l],enumerable:true})};var __copyProps=(r,s,l,p)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let g of y(s))if(!T.call(r,g)&&g!==l)d(r,g,{get:()=>s[g],enumerable:!(p=m(s,g))||p.enumerable})}return r};var __toESM=(r,s,l)=>(l=r!=null?p(g(r)):{},__copyProps(s||!r||!r.__esModule?d(l,"default",{value:r,enumerable:true}):l,r));var __toCommonJS=r=>__copyProps(d({},"__esModule",{value:true}),r);var b=__commonJS({"umd:@jridgewell/sourcemap-codec"(r,s){s.exports=l}});var E=__commonJS({"umd:@jridgewell/resolve-uri"(r,l){l.exports=s}});var S={};__export(S,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>R,LEAST_UPPER_BOUND:()=>D,TraceMap:()=>M,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment});r.exports=__toCommonJS(S);var _=__toESM(b());var x=__toESM(E());function stripFilename(r){if(!r)return"";const s=r.lastIndexOf("/");return r.slice(0,s+1)}function resolver(r,s){const l=stripFilename(r);const p=s?s+"/":"";return r=>(0,x.default)(p+(r||""),l)}var w=0;var v=1;var A=2;var P=3;var k=4;var C=1;var I=2;function maybeSort(r,s){const l=nextUnsortedSegmentLine(r,0);if(l===r.length)return r;if(!s)r=r.slice();for(let p=l;p<r.length;p=nextUnsortedSegmentLine(r,p+1)){r[p]=sortSegments(r[p],s)}return r}function nextUnsortedSegmentLine(r,s){for(let l=s;l<r.length;l++){if(!isSorted(r[l]))return l}return r.length}function isSorted(r){for(let s=1;s<r.length;s++){if(r[s][w]<r[s-1][w]){return false}}return true}function sortSegments(r,s){if(!s)r=r.slice();return r.sort(sortComparator)}function sortComparator(r,s){return r[w]-s[w]}function buildBySources(r,s){const l=s.map((()=>[]));for(let s=0;s<r.length;s++){const p=r[s];for(let r=0;r<p.length;r++){const d=p[r];if(d.length===1)continue;const m=d[v];const y=d[A];const g=d[P];const T=l[m];const b=T[y]||(T[y]=[]);b.push([g,s,d[w]])}}for(let r=0;r<l.length;r++){const s=l[r];for(let r=0;r<s.length;r++){const l=s[r];if(l)l.sort(sortComparator)}}return l}var O=false;function binarySearch(r,s,l,p){while(l<=p){const d=l+(p-l>>1);const m=r[d][w]-s;if(m===0){O=true;return d}if(m<0){l=d+1}else{p=d-1}}O=false;return l-1}function upperBound(r,s,l){for(let p=l+1;p<r.length;l=p++){if(r[p][w]!==s)break}return l}function lowerBound(r,s,l){for(let p=l-1;p>=0;l=p--){if(r[p][w]!==s)break}return l}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(r,s,l,p){const{lastKey:d,lastNeedle:m,lastIndex:y}=l;let g=0;let T=r.length-1;if(p===d){if(s===m){O=y!==-1&&r[y][w]===s;return y}if(s>=m){g=y===-1?0:y}else{T=y}}l.lastKey=p;l.lastNeedle=s;return l.lastIndex=binarySearch(r,s,g,T)}function parse(r){return typeof r==="string"?JSON.parse(r):r}var FlattenMap=function(r,s){const l=parse(r);if(!("sections"in l)){return new M(l,s)}const p=[];const d=[];const m=[];const y=[];const g=[];recurse(l,s,p,d,m,y,g,0,0,Infinity,Infinity);const T={version:3,file:l.file,names:y,sources:d,sourcesContent:m,mappings:p,ignoreList:g};return presortedDecodedMap(T)};function recurse(r,s,l,p,d,m,y,g,T,b,E){const{sections:S}=r;for(let r=0;r<S.length;r++){const{map:_,offset:x}=S[r];let w=b;let v=E;if(r+1<S.length){const s=S[r+1].offset;w=Math.min(b,g+s.line);if(w===b){v=Math.min(E,T+s.column)}else if(w<b){v=T+s.column}}addSection(_,s,l,p,d,m,y,g+x.line,T+x.column,w,v)}}function addSection(r,s,l,p,d,m,y,g,T,b,E){const S=parse(r);if("sections"in S)return recurse(...arguments);const _=new M(S,s);const x=p.length;const C=m.length;const I=decodedMappings(_);const{resolvedSources:O,sourcesContent:N,ignoreList:L}=_;append(p,O);append(m,_.names);if(N)append(d,N);else for(let r=0;r<O.length;r++)d.push(null);if(L)for(let r=0;r<L.length;r++)y.push(L[r]+x);for(let r=0;r<I.length;r++){const s=g+r;if(s>b)return;const p=getLine(l,s);const d=r===0?T:0;const m=I[r];for(let r=0;r<m.length;r++){const l=m[r];const y=d+l[w];if(s===b&&y>=E)return;if(l.length===1){p.push([y]);continue}const g=x+l[v];const T=l[A];const S=l[P];p.push(l.length===4?[y,g,T,S]:[y,g,T,S,C+l[k]])}}}function append(r,s){for(let l=0;l<s.length;l++)r.push(s[l])}function getLine(r,s){for(let l=r.length;l<=s;l++)r[l]=[];return r[s]}var N="`line` must be greater than 0 (lines start at line 1)";var L="`column` must be greater than or equal to 0 (columns start at column 0)";var D=-1;var R=1;var M=class{constructor(r,s){const l=typeof r==="string";if(!l&&r._decodedMemo)return r;const p=parse(r);const{version:d,file:m,names:y,sourceRoot:g,sources:T,sourcesContent:b}=p;this.version=d;this.file=m;this.names=y||[];this.sourceRoot=g;this.sources=T;this.sourcesContent=b;this.ignoreList=p.ignoreList||p.x_google_ignoreList||void 0;const E=resolver(s,g);this.resolvedSources=T.map(E);const{mappings:S}=p;if(typeof S==="string"){this._encoded=S;this._decoded=void 0}else if(Array.isArray(S)){this._encoded=void 0;this._decoded=maybeSort(S,l)}else if(p.sections){throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`)}else{throw new Error(`invalid source map: ${JSON.stringify(p)}`)}this._decodedMemo=memoizedState();this._bySources=void 0;this._bySourceMemos=void 0}};function cast(r){return r}function encodedMappings(r){var s,l;return(l=(s=cast(r))._encoded)!=null?l:s._encoded=(0,_.encode)(cast(r)._decoded)}function decodedMappings(r){var s;return(s=cast(r))._decoded||(s._decoded=(0,_.decode)(cast(r)._encoded))}function traceSegment(r,s,l){const p=decodedMappings(r);if(s>=p.length)return null;const d=p[s];const m=traceSegmentInternal(d,cast(r)._decodedMemo,s,l,R);return m===-1?null:d[m]}function originalPositionFor(r,s){let{line:l,column:p,bias:d}=s;l--;if(l<0)throw new Error(N);if(p<0)throw new Error(L);const m=decodedMappings(r);if(l>=m.length)return OMapping(null,null,null,null);const y=m[l];const g=traceSegmentInternal(y,cast(r)._decodedMemo,l,p,d||R);if(g===-1)return OMapping(null,null,null,null);const T=y[g];if(T.length===1)return OMapping(null,null,null,null);const{names:b,resolvedSources:E}=r;return OMapping(E[T[v]],T[A]+1,T[P],T.length===5?b[T[k]]:null)}function generatedPositionFor(r,s){const{source:l,line:p,column:d,bias:m}=s;return generatedPosition(r,l,p,d,m||R,false)}function allGeneratedPositionsFor(r,s){const{source:l,line:p,column:d,bias:m}=s;return generatedPosition(r,l,p,d,m||D,true)}function eachMapping(r,s){const l=decodedMappings(r);const{names:p,resolvedSources:d}=r;for(let r=0;r<l.length;r++){const m=l[r];for(let l=0;l<m.length;l++){const y=m[l];const g=r+1;const T=y[0];let b=null;let E=null;let S=null;let _=null;if(y.length!==1){b=d[y[1]];E=y[2]+1;S=y[3]}if(y.length===5)_=p[y[4]];s({generatedLine:g,generatedColumn:T,source:b,originalLine:E,originalColumn:S,name:_})}}}function sourceIndex(r,s){const{sources:l,resolvedSources:p}=r;let d=l.indexOf(s);if(d===-1)d=p.indexOf(s);return d}function sourceContentFor(r,s){const{sourcesContent:l}=r;if(l==null)return null;const p=sourceIndex(r,s);return p===-1?null:l[p]}function isIgnored(r,s){const{ignoreList:l}=r;if(l==null)return false;const p=sourceIndex(r,s);return p===-1?false:l.includes(p)}function presortedDecodedMap(r,s){const l=new M(clone(r,[]),s);cast(l)._decoded=r.mappings;return l}function decodedMap(r){return clone(r,decodedMappings(r))}function encodedMap(r){return clone(r,encodedMappings(r))}function clone(r,s){return{version:r.version,file:r.file,names:r.names,sourceRoot:r.sourceRoot,sources:r.sources,sourcesContent:r.sourcesContent,mappings:s,ignoreList:r.ignoreList||r.x_google_ignoreList}}function OMapping(r,s,l,p){return{source:r,line:s,column:l,name:p}}function GMapping(r,s){return{line:r,column:s}}function traceSegmentInternal(r,s,l,p,d){let m=memoizedBinarySearch(r,p,s,l);if(O){m=(d===D?upperBound:lowerBound)(r,p,m)}else if(d===D)m++;if(m===-1||m===r.length)return-1;return m}function sliceGeneratedPositions(r,s,l,p,d){let m=traceSegmentInternal(r,s,l,p,R);if(!O&&d===D)m++;if(m===-1||m===r.length)return[];const y=O?p:r[m][w];if(!O)m=lowerBound(r,y,m);const g=upperBound(r,y,m);const T=[];for(;m<=g;m++){const s=r[m];T.push(GMapping(s[C]+1,s[I]))}return T}function generatedPosition(r,s,l,p,d,m){var y,g;l--;if(l<0)throw new Error(N);if(p<0)throw new Error(L);const{sources:T,resolvedSources:b}=r;let E=T.indexOf(s);if(E===-1)E=b.indexOf(s);if(E===-1)return m?[]:GMapping(null,null);const S=(y=cast(r))._bySourceMemos||(y._bySourceMemos=T.map(memoizedState));const _=(g=cast(r))._bySources||(g._bySources=buildBySources(decodedMappings(r),S));const x=_[E][l];if(x==null)return m?[]:GMapping(null,null);const w=S[E];if(m)return sliceGeneratedPositions(x,w,l,p,d);const v=traceSegmentInternal(x,w,l,p,d);if(v===-1)return GMapping(null,null);const A=x[v];return GMapping(A[C]+1,A[I])}}))},7197:r=>{function peg$subclass(r,s){function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor}function peg$SyntaxError(r,s,l,p){this.message=r;this.expected=s;this.found=l;this.location=p;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(r,s){var l={literal:function(r){return'"'+literalEscape(r.text)+'"'},class:function(r){var s="",l;for(l=0;l<r.parts.length;l++){s+=r.parts[l]instanceof Array?classEscape(r.parts[l][0])+"-"+classEscape(r.parts[l][1]):classEscape(r.parts[l])}return"["+(r.inverted?"^":"")+s+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function hex(r){return r.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+hex(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+hex(r)}))}function classEscape(r){return r.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+hex(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+hex(r)}))}function describeExpectation(r){return l[r.type](r)}function describeExpected(r){var s=new Array(r.length),l,p;for(l=0;l<r.length;l++){s[l]=describeExpectation(r[l])}s.sort();if(s.length>0){for(l=1,p=1;l<s.length;l++){if(s[l-1]!==s[l]){s[p]=s[l];p++}}s.length=p}switch(s.length){case 1:return s[0];case 2:return s[0]+" or "+s[1];default:return s.slice(0,-1).join(", ")+", or "+s[s.length-1]}}function describeFound(r){return r?'"'+literalEscape(r)+'"':"end of input"}return"Expected "+describeExpected(r)+" but "+describeFound(s)+" found."};function peg$parse(r,s){s=s!==void 0?s:{};var l={},p={resolution:peg$parseresolution},d=peg$parseresolution,m="/",y=peg$literalExpectation("/",false),peg$c2=function(r,s){return{from:r,descriptor:s}},peg$c3=function(r){return{descriptor:r}},g="@",T=peg$literalExpectation("@",false),peg$c6=function(r,s){return{fullName:r,description:s}},peg$c7=function(r){return{fullName:r}},peg$c8=function(){return text()},b=/^[^\/@]/,E=peg$classExpectation(["/","@"],true,false),S=/^[^\/]/,_=peg$classExpectation(["/"],true,false),x=0,w=0,v=[{line:1,column:1}],A=0,P=[],k=0,C;if("startRule"in s){if(!(s.startRule in p)){throw new Error("Can't start parsing from rule \""+s.startRule+'".')}d=p[s.startRule]}function text(){return r.substring(w,x)}function location(){return peg$computeLocation(w,x)}function expected(s,l){l=l!==void 0?l:peg$computeLocation(w,x);throw peg$buildStructuredError([peg$otherExpectation(s)],r.substring(w,x),l)}function error(r,s){s=s!==void 0?s:peg$computeLocation(w,x);throw peg$buildSimpleError(r,s)}function peg$literalExpectation(r,s){return{type:"literal",text:r,ignoreCase:s}}function peg$classExpectation(r,s,l){return{type:"class",parts:r,inverted:s,ignoreCase:l}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(r){return{type:"other",description:r}}function peg$computePosDetails(s){var l=v[s],p;if(l){return l}else{p=s-1;while(!v[p]){p--}l=v[p];l={line:l.line,column:l.column};while(p<s){if(r.charCodeAt(p)===10){l.line++;l.column=1}else{l.column++}p++}v[s]=l;return l}}function peg$computeLocation(r,s){var l=peg$computePosDetails(r),p=peg$computePosDetails(s);return{start:{offset:r,line:l.line,column:l.column},end:{offset:s,line:p.line,column:p.column}}}function peg$fail(r){if(x<A){return}if(x>A){A=x;P=[]}P.push(r)}function peg$buildSimpleError(r,s){return new peg$SyntaxError(r,null,null,s)}function peg$buildStructuredError(r,s,l){return new peg$SyntaxError(peg$SyntaxError.buildMessage(r,s),r,s,l)}function peg$parseresolution(){var s,p,d,g;s=x;p=peg$parsespecifier();if(p!==l){if(r.charCodeAt(x)===47){d=m;x++}else{d=l;if(k===0){peg$fail(y)}}if(d!==l){g=peg$parsespecifier();if(g!==l){w=s;p=peg$c2(p,g);s=p}else{x=s;s=l}}else{x=s;s=l}}else{x=s;s=l}if(s===l){s=x;p=peg$parsespecifier();if(p!==l){w=s;p=peg$c3(p)}s=p}return s}function peg$parsespecifier(){var s,p,d,m;s=x;p=peg$parsefullName();if(p!==l){if(r.charCodeAt(x)===64){d=g;x++}else{d=l;if(k===0){peg$fail(T)}}if(d!==l){m=peg$parsedescription();if(m!==l){w=s;p=peg$c6(p,m);s=p}else{x=s;s=l}}else{x=s;s=l}}else{x=s;s=l}if(s===l){s=x;p=peg$parsefullName();if(p!==l){w=s;p=peg$c7(p)}s=p}return s}function peg$parsefullName(){var s,p,d,b,E;s=x;if(r.charCodeAt(x)===64){p=g;x++}else{p=l;if(k===0){peg$fail(T)}}if(p!==l){d=peg$parseident();if(d!==l){if(r.charCodeAt(x)===47){b=m;x++}else{b=l;if(k===0){peg$fail(y)}}if(b!==l){E=peg$parseident();if(E!==l){w=s;p=peg$c8();s=p}else{x=s;s=l}}else{x=s;s=l}}else{x=s;s=l}}else{x=s;s=l}if(s===l){s=x;p=peg$parseident();if(p!==l){w=s;p=peg$c8()}s=p}return s}function peg$parseident(){var s,p,d;s=x;p=[];if(b.test(r.charAt(x))){d=r.charAt(x);x++}else{d=l;if(k===0){peg$fail(E)}}if(d!==l){while(d!==l){p.push(d);if(b.test(r.charAt(x))){d=r.charAt(x);x++}else{d=l;if(k===0){peg$fail(E)}}}}else{p=l}if(p!==l){w=s;p=peg$c8()}s=p;return s}function peg$parsedescription(){var s,p,d;s=x;p=[];if(S.test(r.charAt(x))){d=r.charAt(x);x++}else{d=l;if(k===0){peg$fail(_)}}if(d!==l){while(d!==l){p.push(d);if(S.test(r.charAt(x))){d=r.charAt(x);x++}else{d=l;if(k===0){peg$fail(_)}}}}else{p=l}if(p!==l){w=s;p=peg$c8()}s=p;return s}C=d();if(C!==l&&x===r.length){return C}else{if(C!==l&&x<r.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(P,A<r.length?r.charAt(A):null,A<r.length?peg$computeLocation(A,A+1):peg$computeLocation(A,A))}}r.exports={SyntaxError:peg$SyntaxError,parse:peg$parse}},469:r=>{function peg$subclass(r,s){function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor}function peg$SyntaxError(r,s,l,p){this.message=r;this.expected=s;this.found=l;this.location=p;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(r,s){var l={literal:function(r){return'"'+literalEscape(r.text)+'"'},class:function(r){var s="",l;for(l=0;l<r.parts.length;l++){s+=r.parts[l]instanceof Array?classEscape(r.parts[l][0])+"-"+classEscape(r.parts[l][1]):classEscape(r.parts[l])}return"["+(r.inverted?"^":"")+s+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function hex(r){return r.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+hex(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+hex(r)}))}function classEscape(r){return r.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+hex(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+hex(r)}))}function describeExpectation(r){return l[r.type](r)}function describeExpected(r){var s=new Array(r.length),l,p;for(l=0;l<r.length;l++){s[l]=describeExpectation(r[l])}s.sort();if(s.length>0){for(l=1,p=1;l<s.length;l++){if(s[l-1]!==s[l]){s[p]=s[l];p++}}s.length=p}switch(s.length){case 1:return s[0];case 2:return s[0]+" or "+s[1];default:return s.slice(0,-1).join(", ")+", or "+s[s.length-1]}}function describeFound(r){return r?'"'+literalEscape(r)+'"':"end of input"}return"Expected "+describeExpected(r)+" but "+describeFound(s)+" found."};function peg$parse(r,s){s=s!==void 0?s:{};var l={},p={Start:peg$parseStart},d=peg$parseStart,peg$c0=function(r){return r?r:[]},peg$c1=function(r,s,l){return[{command:r,type:s}].concat(l||[])},peg$c2=function(r,s){return[{command:r,type:s||";"}]},peg$c3=function(r){return r},m=";",y=peg$literalExpectation(";",false),g="&",T=peg$literalExpectation("&",false),peg$c8=function(r,s){return s?{chain:r,then:s}:{chain:r}},peg$c9=function(r,s){return{type:r,line:s}},b="&&",E=peg$literalExpectation("&&",false),S="||",_=peg$literalExpectation("||",false),peg$c14=function(r,s){return s?{...r,then:s}:r},peg$c15=function(r,s){return{type:r,chain:s}},x="|&",w=peg$literalExpectation("|&",false),v="|",A=peg$literalExpectation("|",false),P="=",k=peg$literalExpectation("=",false),peg$c22=function(r,s){return{name:r,args:[s]}},peg$c23=function(r){return{name:r,args:[]}},C="(",I=peg$literalExpectation("(",false),O=")",N=peg$literalExpectation(")",false),peg$c28=function(r,s){return{type:`subshell`,subshell:r,args:s}},L="{",D=peg$literalExpectation("{",false),R="}",M=peg$literalExpectation("}",false),peg$c33=function(r,s){return{type:`group`,group:r,args:s}},peg$c34=function(r,s){return{type:`command`,args:s,envs:r}},peg$c35=function(r){return{type:`envs`,envs:r}},peg$c36=function(r){return r},peg$c37=function(r){return r},F=/^[0-9]/,B=peg$classExpectation([["0","9"]],false,false),peg$c40=function(r,s,l){return{type:`redirection`,subtype:s,fd:r!==null?parseInt(r):null,args:[l]}},j=">>",$=peg$literalExpectation(">>",false),U=">&",G=peg$literalExpectation(">&",false),q=">",W=peg$literalExpectation(">",false),H="<<<",V=peg$literalExpectation("<<<",false),K="<&",z=peg$literalExpectation("<&",false),Y="<",J=peg$literalExpectation("<",false),peg$c53=function(r){return{type:`argument`,segments:[].concat(...r)}},peg$c54=function(r){return r},X="$'",Q=peg$literalExpectation("$'",false),Z="'",ee=peg$literalExpectation("'",false),peg$c59=function(r){return[{type:`text`,text:r}]},te='""',re=peg$literalExpectation('""',false),peg$c62=function(){return{type:`text`,text:``}},se='"',ne=peg$literalExpectation('"',false),peg$c65=function(r){return r},peg$c66=function(r){return{type:`arithmetic`,arithmetic:r,quoted:true}},peg$c67=function(r){return{type:`shell`,shell:r,quoted:true}},peg$c68=function(r){return{type:`variable`,...r,quoted:true}},peg$c69=function(r){return{type:`text`,text:r}},peg$c70=function(r){return{type:`arithmetic`,arithmetic:r,quoted:false}},peg$c71=function(r){return{type:`shell`,shell:r,quoted:false}},peg$c72=function(r){return{type:`variable`,...r,quoted:false}},peg$c73=function(r){return{type:`glob`,pattern:r}},ie=/^[^']/,ae=peg$classExpectation(["'"],true,false),peg$c76=function(r){return r.join(``)},oe=/^[^$"]/,le=peg$classExpectation(["$",'"'],true,false),ce="\\\n",ue=peg$literalExpectation("\\\n",false),peg$c81=function(){return``},pe="\\",de=peg$literalExpectation("\\",false),fe=/^[\\$"`]/,he=peg$classExpectation(["\\","$",'"',"`"],false,false),peg$c86=function(r){return r},me="\\a",ye=peg$literalExpectation("\\a",false),peg$c89=function(){return"a"},ge="\\b",Te=peg$literalExpectation("\\b",false),peg$c92=function(){return"\b"},be=/^[Ee]/,Ee=peg$classExpectation(["E","e"],false,false),peg$c95=function(){return""},Se="\\f",_e=peg$literalExpectation("\\f",false),peg$c98=function(){return"\f"},xe="\\n",we=peg$literalExpectation("\\n",false),peg$c101=function(){return"\n"},ve="\\r",Ae=peg$literalExpectation("\\r",false),peg$c104=function(){return"\r"},Pe="\\t",ke=peg$literalExpectation("\\t",false),peg$c107=function(){return"\t"},Ce="\\v",Ie=peg$literalExpectation("\\v",false),peg$c110=function(){return"\v"},Oe=/^[\\'"?]/,Ne=peg$classExpectation(["\\","'",'"',"?"],false,false),peg$c113=function(r){return String.fromCharCode(parseInt(r,16))},Le="\\x",De=peg$literalExpectation("\\x",false),Re="\\u",Me=peg$literalExpectation("\\u",false),Fe="\\U",Be=peg$literalExpectation("\\U",false),peg$c120=function(r){return String.fromCodePoint(parseInt(r,16))},je=/^[0-7]/,$e=peg$classExpectation([["0","7"]],false,false),Ue=/^[0-9a-fA-f]/,Ge=peg$classExpectation([["0","9"],["a","f"],["A","f"]],false,false),qe=peg$anyExpectation(),We="{}",He=peg$literalExpectation("{}",false),peg$c128=function(){return"{}"},Ve="-",Ke=peg$literalExpectation("-",false),ze="+",Ye=peg$literalExpectation("+",false),Je=".",Xe=peg$literalExpectation(".",false),peg$c135=function(r,s,l){return{type:`number`,value:(r==="-"?-1:1)*parseFloat(s.join(``)+`.`+l.join(``))}},peg$c136=function(r,s){return{type:`number`,value:(r==="-"?-1:1)*parseInt(s.join(``))}},peg$c137=function(r){return{type:`variable`,...r}},peg$c138=function(r){return{type:`variable`,name:r}},peg$c139=function(r){return r},Qe="*",Ze=peg$literalExpectation("*",false),et="/",tt=peg$literalExpectation("/",false),peg$c144=function(r,s,l){return{type:s===`*`?`multiplication`:`division`,right:l}},peg$c145=function(r,s){return s.reduce(((r,s)=>({left:r,...s})),r)},peg$c146=function(r,s,l){return{type:s===`+`?`addition`:`subtraction`,right:l}},rt="$((",st=peg$literalExpectation("$((",false),nt="))",it=peg$literalExpectation("))",false),peg$c151=function(r){return r},at="$(",ot=peg$literalExpectation("$(",false),peg$c154=function(r){return r},ct="${",ut=peg$literalExpectation("${",false),pt=":-",dt=peg$literalExpectation(":-",false),peg$c159=function(r,s){return{name:r,defaultValue:s}},ft=":-}",ht=peg$literalExpectation(":-}",false),peg$c162=function(r){return{name:r,defaultValue:[]}},mt=":+",yt=peg$literalExpectation(":+",false),peg$c165=function(r,s){return{name:r,alternativeValue:s}},Tt=":+}",bt=peg$literalExpectation(":+}",false),peg$c168=function(r){return{name:r,alternativeValue:[]}},peg$c169=function(r){return{name:r}},Et="$",St=peg$literalExpectation("$",false),peg$c172=function(r){return s.isGlobPattern(r)},peg$c173=function(r){return r},_t=/^[a-zA-Z0-9_]/,xt=peg$classExpectation([["a","z"],["A","Z"],["0","9"],"_"],false,false),peg$c176=function(){return text()},wt=/^[$@*?#a-zA-Z0-9_\-]/,vt=peg$classExpectation(["$","@","*","?","#",["a","z"],["A","Z"],["0","9"],"_","-"],false,false),At=/^[()}<>$|&; \t"']/,Pt=peg$classExpectation(["(",")","}","<",">","$","|","&",";"," ","\t",'"',"'"],false,false),kt=/^[<>&; \t"']/,Ct=peg$classExpectation(["<",">","&",";"," ","\t",'"',"'"],false,false),It=/^[ \t]/,Ot=peg$classExpectation([" ","\t"],false,false),Nt=0,Lt=0,Dt=[{line:1,column:1}],Rt=0,Mt=[],Ft=0,Bt;if("startRule"in s){if(!(s.startRule in p)){throw new Error("Can't start parsing from rule \""+s.startRule+'".')}d=p[s.startRule]}function text(){return r.substring(Lt,Nt)}function location(){return peg$computeLocation(Lt,Nt)}function expected(s,l){l=l!==void 0?l:peg$computeLocation(Lt,Nt);throw peg$buildStructuredError([peg$otherExpectation(s)],r.substring(Lt,Nt),l)}function error(r,s){s=s!==void 0?s:peg$computeLocation(Lt,Nt);throw peg$buildSimpleError(r,s)}function peg$literalExpectation(r,s){return{type:"literal",text:r,ignoreCase:s}}function peg$classExpectation(r,s,l){return{type:"class",parts:r,inverted:s,ignoreCase:l}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(r){return{type:"other",description:r}}function peg$computePosDetails(s){var l=Dt[s],p;if(l){return l}else{p=s-1;while(!Dt[p]){p--}l=Dt[p];l={line:l.line,column:l.column};while(p<s){if(r.charCodeAt(p)===10){l.line++;l.column=1}else{l.column++}p++}Dt[s]=l;return l}}function peg$computeLocation(r,s){var l=peg$computePosDetails(r),p=peg$computePosDetails(s);return{start:{offset:r,line:l.line,column:l.column},end:{offset:s,line:p.line,column:p.column}}}function peg$fail(r){if(Nt<Rt){return}if(Nt>Rt){Rt=Nt;Mt=[]}Mt.push(r)}function peg$buildSimpleError(r,s){return new peg$SyntaxError(r,null,null,s)}function peg$buildStructuredError(r,s,l){return new peg$SyntaxError(peg$SyntaxError.buildMessage(r,s),r,s,l)}function peg$parseStart(){var r,s,p;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseShellLine();if(p===l){p=null}if(p!==l){Lt=r;s=peg$c0(p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseShellLine(){var r,s,p,d,m;r=Nt;s=peg$parseCommandLine();if(s!==l){p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){d=peg$parseShellLineType();if(d!==l){m=peg$parseShellLineThen();if(m===l){m=null}if(m!==l){Lt=r;s=peg$c1(s,d,m);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}if(r===l){r=Nt;s=peg$parseCommandLine();if(s!==l){p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){d=peg$parseShellLineType();if(d===l){d=null}if(d!==l){Lt=r;s=peg$c2(s,d);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}}return r}function peg$parseShellLineThen(){var r,s,p,d,m;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseShellLine();if(p!==l){d=[];m=peg$parseS();while(m!==l){d.push(m);m=peg$parseS()}if(d!==l){Lt=r;s=peg$c3(p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseShellLineType(){var s;if(r.charCodeAt(Nt)===59){s=m;Nt++}else{s=l;if(Ft===0){peg$fail(y)}}if(s===l){if(r.charCodeAt(Nt)===38){s=g;Nt++}else{s=l;if(Ft===0){peg$fail(T)}}}return s}function peg$parseCommandLine(){var r,s,p;r=Nt;s=peg$parseCommandChain();if(s!==l){p=peg$parseCommandLineThen();if(p===l){p=null}if(p!==l){Lt=r;s=peg$c8(s,p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseCommandLineThen(){var r,s,p,d,m,y,g;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseCommandLineType();if(p!==l){d=[];m=peg$parseS();while(m!==l){d.push(m);m=peg$parseS()}if(d!==l){m=peg$parseCommandLine();if(m!==l){y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){Lt=r;s=peg$c9(p,m);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseCommandLineType(){var s;if(r.substr(Nt,2)===b){s=b;Nt+=2}else{s=l;if(Ft===0){peg$fail(E)}}if(s===l){if(r.substr(Nt,2)===S){s=S;Nt+=2}else{s=l;if(Ft===0){peg$fail(_)}}}return s}function peg$parseCommandChain(){var r,s,p;r=Nt;s=peg$parseCommand();if(s!==l){p=peg$parseCommandChainThen();if(p===l){p=null}if(p!==l){Lt=r;s=peg$c14(s,p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseCommandChainThen(){var r,s,p,d,m,y,g;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseCommandChainType();if(p!==l){d=[];m=peg$parseS();while(m!==l){d.push(m);m=peg$parseS()}if(d!==l){m=peg$parseCommandChain();if(m!==l){y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){Lt=r;s=peg$c15(p,m);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseCommandChainType(){var s;if(r.substr(Nt,2)===x){s=x;Nt+=2}else{s=l;if(Ft===0){peg$fail(w)}}if(s===l){if(r.charCodeAt(Nt)===124){s=v;Nt++}else{s=l;if(Ft===0){peg$fail(A)}}}return s}function peg$parseVariableAssignment(){var s,p,d,m,y,g;s=Nt;p=peg$parseEnvVariable();if(p!==l){if(r.charCodeAt(Nt)===61){d=P;Nt++}else{d=l;if(Ft===0){peg$fail(k)}}if(d!==l){m=peg$parseStrictValueArgument();if(m!==l){y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){Lt=s;p=peg$c22(p,m);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;p=peg$parseEnvVariable();if(p!==l){if(r.charCodeAt(Nt)===61){d=P;Nt++}else{d=l;if(Ft===0){peg$fail(k)}}if(d!==l){m=[];y=peg$parseS();while(y!==l){m.push(y);y=peg$parseS()}if(m!==l){Lt=s;p=peg$c23(p);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}return s}function peg$parseCommand(){var s,p,d,m,y,g,T,b,E,S,_;s=Nt;p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){if(r.charCodeAt(Nt)===40){d=C;Nt++}else{d=l;if(Ft===0){peg$fail(I)}}if(d!==l){m=[];y=peg$parseS();while(y!==l){m.push(y);y=peg$parseS()}if(m!==l){y=peg$parseShellLine();if(y!==l){g=[];T=peg$parseS();while(T!==l){g.push(T);T=peg$parseS()}if(g!==l){if(r.charCodeAt(Nt)===41){T=O;Nt++}else{T=l;if(Ft===0){peg$fail(N)}}if(T!==l){b=[];E=peg$parseS();while(E!==l){b.push(E);E=peg$parseS()}if(b!==l){E=[];S=peg$parseRedirectArgument();while(S!==l){E.push(S);S=peg$parseRedirectArgument()}if(E!==l){S=[];_=peg$parseS();while(_!==l){S.push(_);_=peg$parseS()}if(S!==l){Lt=s;p=peg$c28(y,E);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){if(r.charCodeAt(Nt)===123){d=L;Nt++}else{d=l;if(Ft===0){peg$fail(D)}}if(d!==l){m=[];y=peg$parseS();while(y!==l){m.push(y);y=peg$parseS()}if(m!==l){y=peg$parseShellLine();if(y!==l){g=[];T=peg$parseS();while(T!==l){g.push(T);T=peg$parseS()}if(g!==l){if(r.charCodeAt(Nt)===125){T=R;Nt++}else{T=l;if(Ft===0){peg$fail(M)}}if(T!==l){b=[];E=peg$parseS();while(E!==l){b.push(E);E=peg$parseS()}if(b!==l){E=[];S=peg$parseRedirectArgument();while(S!==l){E.push(S);S=peg$parseRedirectArgument()}if(E!==l){S=[];_=peg$parseS();while(_!==l){S.push(_);_=peg$parseS()}if(S!==l){Lt=s;p=peg$c33(y,E);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){d=[];m=peg$parseVariableAssignment();while(m!==l){d.push(m);m=peg$parseVariableAssignment()}if(d!==l){m=[];y=peg$parseS();while(y!==l){m.push(y);y=peg$parseS()}if(m!==l){y=[];g=peg$parseArgument();if(g!==l){while(g!==l){y.push(g);g=peg$parseArgument()}}else{y=l}if(y!==l){g=[];T=peg$parseS();while(T!==l){g.push(T);T=peg$parseS()}if(g!==l){Lt=s;p=peg$c34(d,y);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){d=[];m=peg$parseVariableAssignment();if(m!==l){while(m!==l){d.push(m);m=peg$parseVariableAssignment()}}else{d=l}if(d!==l){m=[];y=peg$parseS();while(y!==l){m.push(y);y=peg$parseS()}if(m!==l){Lt=s;p=peg$c35(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}}}return s}function peg$parseCommandString(){var r,s,p,d,m;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=[];d=peg$parseValueArgument();if(d!==l){while(d!==l){p.push(d);d=peg$parseValueArgument()}}else{p=l}if(p!==l){d=[];m=peg$parseS();while(m!==l){d.push(m);m=peg$parseS()}if(d!==l){Lt=r;s=peg$c36(p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseArgument(){var r,s,p;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseRedirectArgument();if(p!==l){Lt=r;s=peg$c37(p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}if(r===l){r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseValueArgument();if(p!==l){Lt=r;s=peg$c37(p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}}return r}function peg$parseRedirectArgument(){var s,p,d,m,y;s=Nt;p=[];d=peg$parseS();while(d!==l){p.push(d);d=peg$parseS()}if(p!==l){if(F.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(B)}}if(d===l){d=null}if(d!==l){m=peg$parseRedirectType();if(m!==l){y=peg$parseValueArgument();if(y!==l){Lt=s;p=peg$c40(d,m,y);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseRedirectType(){var s;if(r.substr(Nt,2)===j){s=j;Nt+=2}else{s=l;if(Ft===0){peg$fail($)}}if(s===l){if(r.substr(Nt,2)===U){s=U;Nt+=2}else{s=l;if(Ft===0){peg$fail(G)}}if(s===l){if(r.charCodeAt(Nt)===62){s=q;Nt++}else{s=l;if(Ft===0){peg$fail(W)}}if(s===l){if(r.substr(Nt,3)===H){s=H;Nt+=3}else{s=l;if(Ft===0){peg$fail(V)}}if(s===l){if(r.substr(Nt,2)===K){s=K;Nt+=2}else{s=l;if(Ft===0){peg$fail(z)}}if(s===l){if(r.charCodeAt(Nt)===60){s=Y;Nt++}else{s=l;if(Ft===0){peg$fail(J)}}}}}}}return s}function peg$parseValueArgument(){var r,s,p;r=Nt;s=[];p=peg$parseS();while(p!==l){s.push(p);p=peg$parseS()}if(s!==l){p=peg$parseStrictValueArgument();if(p!==l){Lt=r;s=peg$c37(p);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseStrictValueArgument(){var r,s,p;r=Nt;s=[];p=peg$parseArgumentSegment();if(p!==l){while(p!==l){s.push(p);p=peg$parseArgumentSegment()}}else{s=l}if(s!==l){Lt=r;s=peg$c53(s)}r=s;return r}function peg$parseArgumentSegment(){var r,s;r=Nt;s=peg$parseCQuoteString();if(s!==l){Lt=r;s=peg$c54(s)}r=s;if(r===l){r=Nt;s=peg$parseSglQuoteString();if(s!==l){Lt=r;s=peg$c54(s)}r=s;if(r===l){r=Nt;s=peg$parseDblQuoteString();if(s!==l){Lt=r;s=peg$c54(s)}r=s;if(r===l){r=Nt;s=peg$parsePlainString();if(s!==l){Lt=r;s=peg$c54(s)}r=s}}}return r}function peg$parseCQuoteString(){var s,p,d,m;s=Nt;if(r.substr(Nt,2)===X){p=X;Nt+=2}else{p=l;if(Ft===0){peg$fail(Q)}}if(p!==l){d=peg$parseCQuoteStringText();if(d!==l){if(r.charCodeAt(Nt)===39){m=Z;Nt++}else{m=l;if(Ft===0){peg$fail(ee)}}if(m!==l){Lt=s;p=peg$c59(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseSglQuoteString(){var s,p,d,m;s=Nt;if(r.charCodeAt(Nt)===39){p=Z;Nt++}else{p=l;if(Ft===0){peg$fail(ee)}}if(p!==l){d=peg$parseSglQuoteStringText();if(d!==l){if(r.charCodeAt(Nt)===39){m=Z;Nt++}else{m=l;if(Ft===0){peg$fail(ee)}}if(m!==l){Lt=s;p=peg$c59(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseDblQuoteString(){var s,p,d,m;s=Nt;if(r.substr(Nt,2)===te){p=te;Nt+=2}else{p=l;if(Ft===0){peg$fail(re)}}if(p!==l){Lt=s;p=peg$c62()}s=p;if(s===l){s=Nt;if(r.charCodeAt(Nt)===34){p=se;Nt++}else{p=l;if(Ft===0){peg$fail(ne)}}if(p!==l){d=[];m=peg$parseDblQuoteStringSegment();while(m!==l){d.push(m);m=peg$parseDblQuoteStringSegment()}if(d!==l){if(r.charCodeAt(Nt)===34){m=se;Nt++}else{m=l;if(Ft===0){peg$fail(ne)}}if(m!==l){Lt=s;p=peg$c65(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}return s}function peg$parsePlainString(){var r,s,p;r=Nt;s=[];p=peg$parsePlainStringSegment();if(p!==l){while(p!==l){s.push(p);p=peg$parsePlainStringSegment()}}else{s=l}if(s!==l){Lt=r;s=peg$c65(s)}r=s;return r}function peg$parseDblQuoteStringSegment(){var r,s;r=Nt;s=peg$parseArithmetic();if(s!==l){Lt=r;s=peg$c66(s)}r=s;if(r===l){r=Nt;s=peg$parseSubshell();if(s!==l){Lt=r;s=peg$c67(s)}r=s;if(r===l){r=Nt;s=peg$parseVariable();if(s!==l){Lt=r;s=peg$c68(s)}r=s;if(r===l){r=Nt;s=peg$parseDblQuoteStringText();if(s!==l){Lt=r;s=peg$c69(s)}r=s}}}return r}function peg$parsePlainStringSegment(){var r,s;r=Nt;s=peg$parseArithmetic();if(s!==l){Lt=r;s=peg$c70(s)}r=s;if(r===l){r=Nt;s=peg$parseSubshell();if(s!==l){Lt=r;s=peg$c71(s)}r=s;if(r===l){r=Nt;s=peg$parseVariable();if(s!==l){Lt=r;s=peg$c72(s)}r=s;if(r===l){r=Nt;s=peg$parseGlob();if(s!==l){Lt=r;s=peg$c73(s)}r=s;if(r===l){r=Nt;s=peg$parsePlainStringText();if(s!==l){Lt=r;s=peg$c69(s)}r=s}}}}return r}function peg$parseSglQuoteStringText(){var s,p,d;s=Nt;p=[];if(ie.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(ae)}}while(d!==l){p.push(d);if(ie.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(ae)}}}if(p!==l){Lt=s;p=peg$c76(p)}s=p;return s}function peg$parseDblQuoteStringText(){var s,p,d;s=Nt;p=[];d=peg$parseDblQuoteEscapedChar();if(d===l){if(oe.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(le)}}}if(d!==l){while(d!==l){p.push(d);d=peg$parseDblQuoteEscapedChar();if(d===l){if(oe.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(le)}}}}}else{p=l}if(p!==l){Lt=s;p=peg$c76(p)}s=p;return s}function peg$parseDblQuoteEscapedChar(){var s,p,d;s=Nt;if(r.substr(Nt,2)===ce){p=ce;Nt+=2}else{p=l;if(Ft===0){peg$fail(ue)}}if(p!==l){Lt=s;p=peg$c81()}s=p;if(s===l){s=Nt;if(r.charCodeAt(Nt)===92){p=pe;Nt++}else{p=l;if(Ft===0){peg$fail(de)}}if(p!==l){if(fe.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(he)}}if(d!==l){Lt=s;p=peg$c86(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}return s}function peg$parseCQuoteStringText(){var s,p,d;s=Nt;p=[];d=peg$parseCQuoteEscapedChar();if(d===l){if(ie.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(ae)}}}while(d!==l){p.push(d);d=peg$parseCQuoteEscapedChar();if(d===l){if(ie.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(ae)}}}}if(p!==l){Lt=s;p=peg$c76(p)}s=p;return s}function peg$parseCQuoteEscapedChar(){var s,p,d;s=Nt;if(r.substr(Nt,2)===me){p=me;Nt+=2}else{p=l;if(Ft===0){peg$fail(ye)}}if(p!==l){Lt=s;p=peg$c89()}s=p;if(s===l){s=Nt;if(r.substr(Nt,2)===ge){p=ge;Nt+=2}else{p=l;if(Ft===0){peg$fail(Te)}}if(p!==l){Lt=s;p=peg$c92()}s=p;if(s===l){s=Nt;if(r.charCodeAt(Nt)===92){p=pe;Nt++}else{p=l;if(Ft===0){peg$fail(de)}}if(p!==l){if(be.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(Ee)}}if(d!==l){Lt=s;p=peg$c95();s=p}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===Se){p=Se;Nt+=2}else{p=l;if(Ft===0){peg$fail(_e)}}if(p!==l){Lt=s;p=peg$c98()}s=p;if(s===l){s=Nt;if(r.substr(Nt,2)===xe){p=xe;Nt+=2}else{p=l;if(Ft===0){peg$fail(we)}}if(p!==l){Lt=s;p=peg$c101()}s=p;if(s===l){s=Nt;if(r.substr(Nt,2)===ve){p=ve;Nt+=2}else{p=l;if(Ft===0){peg$fail(Ae)}}if(p!==l){Lt=s;p=peg$c104()}s=p;if(s===l){s=Nt;if(r.substr(Nt,2)===Pe){p=Pe;Nt+=2}else{p=l;if(Ft===0){peg$fail(ke)}}if(p!==l){Lt=s;p=peg$c107()}s=p;if(s===l){s=Nt;if(r.substr(Nt,2)===Ce){p=Ce;Nt+=2}else{p=l;if(Ft===0){peg$fail(Ie)}}if(p!==l){Lt=s;p=peg$c110()}s=p;if(s===l){s=Nt;if(r.charCodeAt(Nt)===92){p=pe;Nt++}else{p=l;if(Ft===0){peg$fail(de)}}if(p!==l){if(Oe.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(Ne)}}if(d!==l){Lt=s;p=peg$c86(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=peg$parseHexCodeString()}}}}}}}}}return s}function peg$parseHexCodeString(){var s,p,d,m,y,g,T,b,E,S,_,x;s=Nt;if(r.charCodeAt(Nt)===92){p=pe;Nt++}else{p=l;if(Ft===0){peg$fail(de)}}if(p!==l){d=peg$parseHexCodeChar0();if(d!==l){Lt=s;p=peg$c113(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===Le){p=Le;Nt+=2}else{p=l;if(Ft===0){peg$fail(De)}}if(p!==l){d=Nt;m=Nt;y=peg$parseHexCodeChar0();if(y!==l){g=peg$parseHexCodeChar();if(g!==l){y=[y,g];m=y}else{Nt=m;m=l}}else{Nt=m;m=l}if(m===l){m=peg$parseHexCodeChar0()}if(m!==l){d=r.substring(d,Nt)}else{d=m}if(d!==l){Lt=s;p=peg$c113(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===Re){p=Re;Nt+=2}else{p=l;if(Ft===0){peg$fail(Me)}}if(p!==l){d=Nt;m=Nt;y=peg$parseHexCodeChar();if(y!==l){g=peg$parseHexCodeChar();if(g!==l){T=peg$parseHexCodeChar();if(T!==l){b=peg$parseHexCodeChar();if(b!==l){y=[y,g,T,b];m=y}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}if(m!==l){d=r.substring(d,Nt)}else{d=m}if(d!==l){Lt=s;p=peg$c113(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===Fe){p=Fe;Nt+=2}else{p=l;if(Ft===0){peg$fail(Be)}}if(p!==l){d=Nt;m=Nt;y=peg$parseHexCodeChar();if(y!==l){g=peg$parseHexCodeChar();if(g!==l){T=peg$parseHexCodeChar();if(T!==l){b=peg$parseHexCodeChar();if(b!==l){E=peg$parseHexCodeChar();if(E!==l){S=peg$parseHexCodeChar();if(S!==l){_=peg$parseHexCodeChar();if(_!==l){x=peg$parseHexCodeChar();if(x!==l){y=[y,g,T,b,E,S,_,x];m=y}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}if(m!==l){d=r.substring(d,Nt)}else{d=m}if(d!==l){Lt=s;p=peg$c120(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}}}return s}function peg$parseHexCodeChar0(){var s;if(je.test(r.charAt(Nt))){s=r.charAt(Nt);Nt++}else{s=l;if(Ft===0){peg$fail($e)}}return s}function peg$parseHexCodeChar(){var s;if(Ue.test(r.charAt(Nt))){s=r.charAt(Nt);Nt++}else{s=l;if(Ft===0){peg$fail(Ge)}}return s}function peg$parsePlainStringText(){var s,p,d,m,y;s=Nt;p=[];d=Nt;if(r.charCodeAt(Nt)===92){m=pe;Nt++}else{m=l;if(Ft===0){peg$fail(de)}}if(m!==l){if(r.length>Nt){y=r.charAt(Nt);Nt++}else{y=l;if(Ft===0){peg$fail(qe)}}if(y!==l){Lt=d;m=peg$c86(y);d=m}else{Nt=d;d=l}}else{Nt=d;d=l}if(d===l){d=Nt;if(r.substr(Nt,2)===We){m=We;Nt+=2}else{m=l;if(Ft===0){peg$fail(He)}}if(m!==l){Lt=d;m=peg$c128()}d=m;if(d===l){d=Nt;m=Nt;Ft++;y=peg$parseSpecialShellChars();Ft--;if(y===l){m=void 0}else{Nt=m;m=l}if(m!==l){if(r.length>Nt){y=r.charAt(Nt);Nt++}else{y=l;if(Ft===0){peg$fail(qe)}}if(y!==l){Lt=d;m=peg$c86(y);d=m}else{Nt=d;d=l}}else{Nt=d;d=l}}}if(d!==l){while(d!==l){p.push(d);d=Nt;if(r.charCodeAt(Nt)===92){m=pe;Nt++}else{m=l;if(Ft===0){peg$fail(de)}}if(m!==l){if(r.length>Nt){y=r.charAt(Nt);Nt++}else{y=l;if(Ft===0){peg$fail(qe)}}if(y!==l){Lt=d;m=peg$c86(y);d=m}else{Nt=d;d=l}}else{Nt=d;d=l}if(d===l){d=Nt;if(r.substr(Nt,2)===We){m=We;Nt+=2}else{m=l;if(Ft===0){peg$fail(He)}}if(m!==l){Lt=d;m=peg$c128()}d=m;if(d===l){d=Nt;m=Nt;Ft++;y=peg$parseSpecialShellChars();Ft--;if(y===l){m=void 0}else{Nt=m;m=l}if(m!==l){if(r.length>Nt){y=r.charAt(Nt);Nt++}else{y=l;if(Ft===0){peg$fail(qe)}}if(y!==l){Lt=d;m=peg$c86(y);d=m}else{Nt=d;d=l}}else{Nt=d;d=l}}}}}else{p=l}if(p!==l){Lt=s;p=peg$c76(p)}s=p;return s}function peg$parseArithmeticPrimary(){var s,p,d,m,y,g;s=Nt;if(r.charCodeAt(Nt)===45){p=Ve;Nt++}else{p=l;if(Ft===0){peg$fail(Ke)}}if(p===l){if(r.charCodeAt(Nt)===43){p=ze;Nt++}else{p=l;if(Ft===0){peg$fail(Ye)}}}if(p===l){p=null}if(p!==l){d=[];if(F.test(r.charAt(Nt))){m=r.charAt(Nt);Nt++}else{m=l;if(Ft===0){peg$fail(B)}}if(m!==l){while(m!==l){d.push(m);if(F.test(r.charAt(Nt))){m=r.charAt(Nt);Nt++}else{m=l;if(Ft===0){peg$fail(B)}}}}else{d=l}if(d!==l){if(r.charCodeAt(Nt)===46){m=Je;Nt++}else{m=l;if(Ft===0){peg$fail(Xe)}}if(m!==l){y=[];if(F.test(r.charAt(Nt))){g=r.charAt(Nt);Nt++}else{g=l;if(Ft===0){peg$fail(B)}}if(g!==l){while(g!==l){y.push(g);if(F.test(r.charAt(Nt))){g=r.charAt(Nt);Nt++}else{g=l;if(Ft===0){peg$fail(B)}}}}else{y=l}if(y!==l){Lt=s;p=peg$c135(p,d,y);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.charCodeAt(Nt)===45){p=Ve;Nt++}else{p=l;if(Ft===0){peg$fail(Ke)}}if(p===l){if(r.charCodeAt(Nt)===43){p=ze;Nt++}else{p=l;if(Ft===0){peg$fail(Ye)}}}if(p===l){p=null}if(p!==l){d=[];if(F.test(r.charAt(Nt))){m=r.charAt(Nt);Nt++}else{m=l;if(Ft===0){peg$fail(B)}}if(m!==l){while(m!==l){d.push(m);if(F.test(r.charAt(Nt))){m=r.charAt(Nt);Nt++}else{m=l;if(Ft===0){peg$fail(B)}}}}else{d=l}if(d!==l){Lt=s;p=peg$c136(p,d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;p=peg$parseVariable();if(p!==l){Lt=s;p=peg$c137(p)}s=p;if(s===l){s=Nt;p=peg$parseIdentifier();if(p!==l){Lt=s;p=peg$c138(p)}s=p;if(s===l){s=Nt;if(r.charCodeAt(Nt)===40){p=C;Nt++}else{p=l;if(Ft===0){peg$fail(I)}}if(p!==l){d=[];m=peg$parseS();while(m!==l){d.push(m);m=peg$parseS()}if(d!==l){m=peg$parseArithmeticExpression();if(m!==l){y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){if(r.charCodeAt(Nt)===41){g=O;Nt++}else{g=l;if(Ft===0){peg$fail(N)}}if(g!==l){Lt=s;p=peg$c139(m);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}}}}return s}function peg$parseArithmeticTimesExpression(){var s,p,d,m,y,g,T,b;s=Nt;p=peg$parseArithmeticPrimary();if(p!==l){d=[];m=Nt;y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){if(r.charCodeAt(Nt)===42){g=Qe;Nt++}else{g=l;if(Ft===0){peg$fail(Ze)}}if(g===l){if(r.charCodeAt(Nt)===47){g=et;Nt++}else{g=l;if(Ft===0){peg$fail(tt)}}}if(g!==l){T=[];b=peg$parseS();while(b!==l){T.push(b);b=peg$parseS()}if(T!==l){b=peg$parseArithmeticPrimary();if(b!==l){Lt=m;y=peg$c144(p,g,b);m=y}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}while(m!==l){d.push(m);m=Nt;y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){if(r.charCodeAt(Nt)===42){g=Qe;Nt++}else{g=l;if(Ft===0){peg$fail(Ze)}}if(g===l){if(r.charCodeAt(Nt)===47){g=et;Nt++}else{g=l;if(Ft===0){peg$fail(tt)}}}if(g!==l){T=[];b=peg$parseS();while(b!==l){T.push(b);b=peg$parseS()}if(T!==l){b=peg$parseArithmeticPrimary();if(b!==l){Lt=m;y=peg$c144(p,g,b);m=y}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}if(d!==l){Lt=s;p=peg$c145(p,d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseArithmeticExpression(){var s,p,d,m,y,g,T,b;s=Nt;p=peg$parseArithmeticTimesExpression();if(p!==l){d=[];m=Nt;y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){if(r.charCodeAt(Nt)===43){g=ze;Nt++}else{g=l;if(Ft===0){peg$fail(Ye)}}if(g===l){if(r.charCodeAt(Nt)===45){g=Ve;Nt++}else{g=l;if(Ft===0){peg$fail(Ke)}}}if(g!==l){T=[];b=peg$parseS();while(b!==l){T.push(b);b=peg$parseS()}if(T!==l){b=peg$parseArithmeticTimesExpression();if(b!==l){Lt=m;y=peg$c146(p,g,b);m=y}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}while(m!==l){d.push(m);m=Nt;y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){if(r.charCodeAt(Nt)===43){g=ze;Nt++}else{g=l;if(Ft===0){peg$fail(Ye)}}if(g===l){if(r.charCodeAt(Nt)===45){g=Ve;Nt++}else{g=l;if(Ft===0){peg$fail(Ke)}}}if(g!==l){T=[];b=peg$parseS();while(b!==l){T.push(b);b=peg$parseS()}if(T!==l){b=peg$parseArithmeticTimesExpression();if(b!==l){Lt=m;y=peg$c146(p,g,b);m=y}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}else{Nt=m;m=l}}if(d!==l){Lt=s;p=peg$c145(p,d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseArithmetic(){var s,p,d,m,y,g;s=Nt;if(r.substr(Nt,3)===rt){p=rt;Nt+=3}else{p=l;if(Ft===0){peg$fail(st)}}if(p!==l){d=[];m=peg$parseS();while(m!==l){d.push(m);m=peg$parseS()}if(d!==l){m=peg$parseArithmeticExpression();if(m!==l){y=[];g=peg$parseS();while(g!==l){y.push(g);g=peg$parseS()}if(y!==l){if(r.substr(Nt,2)===nt){g=nt;Nt+=2}else{g=l;if(Ft===0){peg$fail(it)}}if(g!==l){Lt=s;p=peg$c151(m);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseSubshell(){var s,p,d,m;s=Nt;if(r.substr(Nt,2)===at){p=at;Nt+=2}else{p=l;if(Ft===0){peg$fail(ot)}}if(p!==l){d=peg$parseShellLine();if(d!==l){if(r.charCodeAt(Nt)===41){m=O;Nt++}else{m=l;if(Ft===0){peg$fail(N)}}if(m!==l){Lt=s;p=peg$c154(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}return s}function peg$parseVariable(){var s,p,d,m,y,g;s=Nt;if(r.substr(Nt,2)===ct){p=ct;Nt+=2}else{p=l;if(Ft===0){peg$fail(ut)}}if(p!==l){d=peg$parseIdentifier();if(d!==l){if(r.substr(Nt,2)===pt){m=pt;Nt+=2}else{m=l;if(Ft===0){peg$fail(dt)}}if(m!==l){y=peg$parseCommandString();if(y!==l){if(r.charCodeAt(Nt)===125){g=R;Nt++}else{g=l;if(Ft===0){peg$fail(M)}}if(g!==l){Lt=s;p=peg$c159(d,y);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===ct){p=ct;Nt+=2}else{p=l;if(Ft===0){peg$fail(ut)}}if(p!==l){d=peg$parseIdentifier();if(d!==l){if(r.substr(Nt,3)===ft){m=ft;Nt+=3}else{m=l;if(Ft===0){peg$fail(ht)}}if(m!==l){Lt=s;p=peg$c162(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===ct){p=ct;Nt+=2}else{p=l;if(Ft===0){peg$fail(ut)}}if(p!==l){d=peg$parseIdentifier();if(d!==l){if(r.substr(Nt,2)===mt){m=mt;Nt+=2}else{m=l;if(Ft===0){peg$fail(yt)}}if(m!==l){y=peg$parseCommandString();if(y!==l){if(r.charCodeAt(Nt)===125){g=R;Nt++}else{g=l;if(Ft===0){peg$fail(M)}}if(g!==l){Lt=s;p=peg$c165(d,y);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===ct){p=ct;Nt+=2}else{p=l;if(Ft===0){peg$fail(ut)}}if(p!==l){d=peg$parseIdentifier();if(d!==l){if(r.substr(Nt,3)===Tt){m=Tt;Nt+=3}else{m=l;if(Ft===0){peg$fail(bt)}}if(m!==l){Lt=s;p=peg$c168(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.substr(Nt,2)===ct){p=ct;Nt+=2}else{p=l;if(Ft===0){peg$fail(ut)}}if(p!==l){d=peg$parseIdentifier();if(d!==l){if(r.charCodeAt(Nt)===125){m=R;Nt++}else{m=l;if(Ft===0){peg$fail(M)}}if(m!==l){Lt=s;p=peg$c169(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}else{Nt=s;s=l}if(s===l){s=Nt;if(r.charCodeAt(Nt)===36){p=Et;Nt++}else{p=l;if(Ft===0){peg$fail(St)}}if(p!==l){d=peg$parseIdentifier();if(d!==l){Lt=s;p=peg$c169(d);s=p}else{Nt=s;s=l}}else{Nt=s;s=l}}}}}}return s}function peg$parseGlob(){var r,s,p;r=Nt;s=peg$parseGlobText();if(s!==l){Lt=Nt;p=peg$c172(s);if(p){p=void 0}else{p=l}if(p!==l){Lt=r;s=peg$c173(s);r=s}else{Nt=r;r=l}}else{Nt=r;r=l}return r}function peg$parseGlobText(){var s,p,d,m,y;s=Nt;p=[];d=Nt;m=Nt;Ft++;y=peg$parseGlobSpecialShellChars();Ft--;if(y===l){m=void 0}else{Nt=m;m=l}if(m!==l){if(r.length>Nt){y=r.charAt(Nt);Nt++}else{y=l;if(Ft===0){peg$fail(qe)}}if(y!==l){Lt=d;m=peg$c86(y);d=m}else{Nt=d;d=l}}else{Nt=d;d=l}if(d!==l){while(d!==l){p.push(d);d=Nt;m=Nt;Ft++;y=peg$parseGlobSpecialShellChars();Ft--;if(y===l){m=void 0}else{Nt=m;m=l}if(m!==l){if(r.length>Nt){y=r.charAt(Nt);Nt++}else{y=l;if(Ft===0){peg$fail(qe)}}if(y!==l){Lt=d;m=peg$c86(y);d=m}else{Nt=d;d=l}}else{Nt=d;d=l}}}else{p=l}if(p!==l){Lt=s;p=peg$c76(p)}s=p;return s}function peg$parseEnvVariable(){var s,p,d;s=Nt;p=[];if(_t.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(xt)}}if(d!==l){while(d!==l){p.push(d);if(_t.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(xt)}}}}else{p=l}if(p!==l){Lt=s;p=peg$c176()}s=p;return s}function peg$parseIdentifier(){var s,p,d;s=Nt;p=[];if(wt.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(vt)}}if(d!==l){while(d!==l){p.push(d);if(wt.test(r.charAt(Nt))){d=r.charAt(Nt);Nt++}else{d=l;if(Ft===0){peg$fail(vt)}}}}else{p=l}if(p!==l){Lt=s;p=peg$c176()}s=p;return s}function peg$parseSpecialShellChars(){var s;if(At.test(r.charAt(Nt))){s=r.charAt(Nt);Nt++}else{s=l;if(Ft===0){peg$fail(Pt)}}return s}function peg$parseGlobSpecialShellChars(){var s;if(kt.test(r.charAt(Nt))){s=r.charAt(Nt);Nt++}else{s=l;if(Ft===0){peg$fail(Ct)}}return s}function peg$parseS(){var s,p;s=[];if(It.test(r.charAt(Nt))){p=r.charAt(Nt);Nt++}else{p=l;if(Ft===0){peg$fail(Ot)}}if(p!==l){while(p!==l){s.push(p);if(It.test(r.charAt(Nt))){p=r.charAt(Nt);Nt++}else{p=l;if(Ft===0){peg$fail(Ot)}}}}else{s=l}return s}Bt=d();if(Bt!==l&&Nt===r.length){return Bt}else{if(Bt!==l&&Nt<r.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(Mt,Rt<r.length?r.charAt(Rt):null,Rt<r.length?peg$computeLocation(Rt,Rt+1):peg$computeLocation(Rt,Rt))}}r.exports={SyntaxError:peg$SyntaxError,parse:peg$parse}},3898:r=>{function peg$subclass(r,s){function ctor(){this.constructor=r}ctor.prototype=s.prototype;r.prototype=new ctor}function peg$SyntaxError(r,s,l,p){this.message=r;this.expected=s;this.found=l;this.location=p;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(r,s){var l={literal:function(r){return'"'+literalEscape(r.text)+'"'},class:function(r){var s="",l;for(l=0;l<r.parts.length;l++){s+=r.parts[l]instanceof Array?classEscape(r.parts[l][0])+"-"+classEscape(r.parts[l][1]):classEscape(r.parts[l])}return"["+(r.inverted?"^":"")+s+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function hex(r){return r.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+hex(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+hex(r)}))}function classEscape(r){return r.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(r){return"\\x0"+hex(r)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(r){return"\\x"+hex(r)}))}function describeExpectation(r){return l[r.type](r)}function describeExpected(r){var s=new Array(r.length),l,p;for(l=0;l<r.length;l++){s[l]=describeExpectation(r[l])}s.sort();if(s.length>0){for(l=1,p=1;l<s.length;l++){if(s[l-1]!==s[l]){s[p]=s[l];p++}}s.length=p}switch(s.length){case 1:return s[0];case 2:return s[0]+" or "+s[1];default:return s.slice(0,-1).join(", ")+", or "+s[s.length-1]}}function describeFound(r){return r?'"'+literalEscape(r)+'"':"end of input"}return"Expected "+describeExpected(r)+" but "+describeFound(s)+" found."};function peg$parse(r,s){s=s!==void 0?s:{};var l={},p={Start:peg$parseStart},d=peg$parseStart,peg$c0=function(r){return[].concat(...r)},m="-",y=peg$literalExpectation("-",false),peg$c3=function(r){return r},peg$c4=function(r){return Object.assign({},...r)},g="#",T=peg$literalExpectation("#",false),b=peg$anyExpectation(),peg$c8=function(){return{}},E=":",S=peg$literalExpectation(":",false),peg$c11=function(r,s){return{[r]:s}},_=",",x=peg$literalExpectation(",",false),peg$c14=function(r,s){return s},peg$c15=function(r,s,l){return Object.assign({},...[r].concat(s).map((r=>({[r]:l}))))},peg$c16=function(r){return r},peg$c17=function(r){return r},w=peg$otherExpectation("correct indentation"),v=" ",A=peg$literalExpectation(" ",false),peg$c21=function(r){return r.length===Re*De},peg$c22=function(r){return r.length===(Re+1)*De},peg$c23=function(){Re++;return true},peg$c24=function(){Re--;return true},peg$c25=function(){return text()},P=peg$otherExpectation("pseudostring"),k=/^[^\r\n\t ?:,\][{}#&*!|>'"%@`\-]/,C=peg$classExpectation(["\r","\n","\t"," ","?",":",",","]","[","{","}","#","&","*","!","|",">","'",'"',"%","@","`","-"],true,false),I=/^[^\r\n\t ,\][{}:#"']/,O=peg$classExpectation(["\r","\n","\t"," ",",","]","[","{","}",":","#",'"',"'"],true,false),peg$c31=function(){return text().replace(/^ *| *$/g,"")},N="--",L=peg$literalExpectation("--",false),D=/^[a-zA-Z\/0-9]/,R=peg$classExpectation([["a","z"],["A","Z"],"/",["0","9"]],false,false),M=/^[^\r\n\t :,]/,F=peg$classExpectation(["\r","\n","\t"," ",":",","],true,false),B="null",j=peg$literalExpectation("null",false),peg$c40=function(){return null},$="true",U=peg$literalExpectation("true",false),peg$c43=function(){return true},G="false",q=peg$literalExpectation("false",false),peg$c46=function(){return false},W=peg$otherExpectation("string"),H='"',V=peg$literalExpectation('"',false),peg$c50=function(){return""},peg$c51=function(r){return r},peg$c52=function(r){return r.join(``)},K=/^[^"\\\0-\x1F\x7F]/,z=peg$classExpectation(['"',"\\",["\0",""],""],true,false),Y='\\"',J=peg$literalExpectation('\\"',false),peg$c57=function(){return`"`},X="\\\\",Q=peg$literalExpectation("\\\\",false),peg$c60=function(){return`\\`},Z="\\/",ee=peg$literalExpectation("\\/",false),peg$c63=function(){return`/`},te="\\b",re=peg$literalExpectation("\\b",false),peg$c66=function(){return`\b`},se="\\f",ne=peg$literalExpectation("\\f",false),peg$c69=function(){return`\f`},ie="\\n",ae=peg$literalExpectation("\\n",false),peg$c72=function(){return`\n`},oe="\\r",le=peg$literalExpectation("\\r",false),peg$c75=function(){return`\r`},ce="\\t",ue=peg$literalExpectation("\\t",false),peg$c78=function(){return`\t`},pe="\\u",de=peg$literalExpectation("\\u",false),peg$c81=function(r,s,l,p){return String.fromCharCode(parseInt(`0x${r}${s}${l}${p}`))},fe=/^[0-9a-fA-F]/,he=peg$classExpectation([["0","9"],["a","f"],["A","F"]],false,false),me=peg$otherExpectation("blank space"),ye=/^[ \t]/,ge=peg$classExpectation([" ","\t"],false,false),Te=peg$otherExpectation("white space"),be=/^[ \t\n\r]/,Ee=peg$classExpectation([" ","\t","\n","\r"],false,false),Se="\r\n",_e=peg$literalExpectation("\r\n",false),xe="\n",we=peg$literalExpectation("\n",false),ve="\r",Ae=peg$literalExpectation("\r",false),Pe=0,ke=0,Ce=[{line:1,column:1}],Ie=0,Oe=[],Ne=0,Le;if("startRule"in s){if(!(s.startRule in p)){throw new Error("Can't start parsing from rule \""+s.startRule+'".')}d=p[s.startRule]}function text(){return r.substring(ke,Pe)}function location(){return peg$computeLocation(ke,Pe)}function expected(s,l){l=l!==void 0?l:peg$computeLocation(ke,Pe);throw peg$buildStructuredError([peg$otherExpectation(s)],r.substring(ke,Pe),l)}function error(r,s){s=s!==void 0?s:peg$computeLocation(ke,Pe);throw peg$buildSimpleError(r,s)}function peg$literalExpectation(r,s){return{type:"literal",text:r,ignoreCase:s}}function peg$classExpectation(r,s,l){return{type:"class",parts:r,inverted:s,ignoreCase:l}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(r){return{type:"other",description:r}}function peg$computePosDetails(s){var l=Ce[s],p;if(l){return l}else{p=s-1;while(!Ce[p]){p--}l=Ce[p];l={line:l.line,column:l.column};while(p<s){if(r.charCodeAt(p)===10){l.line++;l.column=1}else{l.column++}p++}Ce[s]=l;return l}}function peg$computeLocation(r,s){var l=peg$computePosDetails(r),p=peg$computePosDetails(s);return{start:{offset:r,line:l.line,column:l.column},end:{offset:s,line:p.line,column:p.column}}}function peg$fail(r){if(Pe<Ie){return}if(Pe>Ie){Ie=Pe;Oe=[]}Oe.push(r)}function peg$buildSimpleError(r,s){return new peg$SyntaxError(r,null,null,s)}function peg$buildStructuredError(r,s,l){return new peg$SyntaxError(peg$SyntaxError.buildMessage(r,s),r,s,l)}function peg$parseStart(){var r;r=peg$parsePropertyStatements();return r}function peg$parseItemStatements(){var r,s,p;r=Pe;s=[];p=peg$parseItemStatement();while(p!==l){s.push(p);p=peg$parseItemStatement()}if(s!==l){ke=r;s=peg$c0(s)}r=s;return r}function peg$parseItemStatement(){var s,p,d,g,T;s=Pe;p=peg$parseSamedent();if(p!==l){if(r.charCodeAt(Pe)===45){d=m;Pe++}else{d=l;if(Ne===0){peg$fail(y)}}if(d!==l){g=peg$parseB();if(g!==l){T=peg$parseExpression();if(T!==l){ke=s;p=peg$c3(T);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}return s}function peg$parsePropertyStatements(){var r,s,p;r=Pe;s=[];p=peg$parsePropertyStatement();while(p!==l){s.push(p);p=peg$parsePropertyStatement()}if(s!==l){ke=r;s=peg$c4(s)}r=s;return r}function peg$parsePropertyStatement(){var s,p,d,m,y,w,v,A,P;s=Pe;p=peg$parseB();if(p===l){p=null}if(p!==l){d=Pe;if(r.charCodeAt(Pe)===35){m=g;Pe++}else{m=l;if(Ne===0){peg$fail(T)}}if(m!==l){y=[];w=Pe;v=Pe;Ne++;A=peg$parseEOL();Ne--;if(A===l){v=void 0}else{Pe=v;v=l}if(v!==l){if(r.length>Pe){A=r.charAt(Pe);Pe++}else{A=l;if(Ne===0){peg$fail(b)}}if(A!==l){v=[v,A];w=v}else{Pe=w;w=l}}else{Pe=w;w=l}if(w!==l){while(w!==l){y.push(w);w=Pe;v=Pe;Ne++;A=peg$parseEOL();Ne--;if(A===l){v=void 0}else{Pe=v;v=l}if(v!==l){if(r.length>Pe){A=r.charAt(Pe);Pe++}else{A=l;if(Ne===0){peg$fail(b)}}if(A!==l){v=[v,A];w=v}else{Pe=w;w=l}}else{Pe=w;w=l}}}else{y=l}if(y!==l){m=[m,y];d=m}else{Pe=d;d=l}}else{Pe=d;d=l}if(d===l){d=null}if(d!==l){m=[];y=peg$parseEOL_ANY();if(y!==l){while(y!==l){m.push(y);y=peg$parseEOL_ANY()}}else{m=l}if(m!==l){ke=s;p=peg$c8();s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;p=peg$parseSamedent();if(p!==l){d=peg$parseName();if(d!==l){m=peg$parseB();if(m===l){m=null}if(m!==l){if(r.charCodeAt(Pe)===58){y=E;Pe++}else{y=l;if(Ne===0){peg$fail(S)}}if(y!==l){w=peg$parseB();if(w===l){w=null}if(w!==l){v=peg$parseExpression();if(v!==l){ke=s;p=peg$c11(d,v);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;p=peg$parseSamedent();if(p!==l){d=peg$parseLegacyName();if(d!==l){m=peg$parseB();if(m===l){m=null}if(m!==l){if(r.charCodeAt(Pe)===58){y=E;Pe++}else{y=l;if(Ne===0){peg$fail(S)}}if(y!==l){w=peg$parseB();if(w===l){w=null}if(w!==l){v=peg$parseExpression();if(v!==l){ke=s;p=peg$c11(d,v);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;p=peg$parseSamedent();if(p!==l){d=peg$parseLegacyName();if(d!==l){m=peg$parseB();if(m!==l){y=peg$parseLegacyLiteral();if(y!==l){w=[];v=peg$parseEOL_ANY();if(v!==l){while(v!==l){w.push(v);v=peg$parseEOL_ANY()}}else{w=l}if(w!==l){ke=s;p=peg$c11(d,y);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;p=peg$parseSamedent();if(p!==l){d=peg$parseLegacyName();if(d!==l){m=[];y=Pe;w=peg$parseB();if(w===l){w=null}if(w!==l){if(r.charCodeAt(Pe)===44){v=_;Pe++}else{v=l;if(Ne===0){peg$fail(x)}}if(v!==l){A=peg$parseB();if(A===l){A=null}if(A!==l){P=peg$parseLegacyName();if(P!==l){ke=y;w=peg$c14(d,P);y=w}else{Pe=y;y=l}}else{Pe=y;y=l}}else{Pe=y;y=l}}else{Pe=y;y=l}if(y!==l){while(y!==l){m.push(y);y=Pe;w=peg$parseB();if(w===l){w=null}if(w!==l){if(r.charCodeAt(Pe)===44){v=_;Pe++}else{v=l;if(Ne===0){peg$fail(x)}}if(v!==l){A=peg$parseB();if(A===l){A=null}if(A!==l){P=peg$parseLegacyName();if(P!==l){ke=y;w=peg$c14(d,P);y=w}else{Pe=y;y=l}}else{Pe=y;y=l}}else{Pe=y;y=l}}else{Pe=y;y=l}}}else{m=l}if(m!==l){y=peg$parseB();if(y===l){y=null}if(y!==l){if(r.charCodeAt(Pe)===58){w=E;Pe++}else{w=l;if(Ne===0){peg$fail(S)}}if(w!==l){v=peg$parseB();if(v===l){v=null}if(v!==l){A=peg$parseExpression();if(A!==l){ke=s;p=peg$c15(d,m,A);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}}}}return s}function peg$parseExpression(){var s,p,d,g,T,b,E;s=Pe;p=Pe;Ne++;d=Pe;g=peg$parseEOL();if(g!==l){T=peg$parseExtradent();if(T!==l){if(r.charCodeAt(Pe)===45){b=m;Pe++}else{b=l;if(Ne===0){peg$fail(y)}}if(b!==l){E=peg$parseB();if(E!==l){g=[g,T,b,E];d=g}else{Pe=d;d=l}}else{Pe=d;d=l}}else{Pe=d;d=l}}else{Pe=d;d=l}Ne--;if(d!==l){Pe=p;p=void 0}else{p=l}if(p!==l){d=peg$parseEOL_ANY();if(d!==l){g=peg$parseIndent();if(g!==l){T=peg$parseItemStatements();if(T!==l){b=peg$parseDedent();if(b!==l){ke=s;p=peg$c16(T);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;p=peg$parseEOL();if(p!==l){d=peg$parseIndent();if(d!==l){g=peg$parsePropertyStatements();if(g!==l){T=peg$parseDedent();if(T!==l){ke=s;p=peg$c16(g);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;p=peg$parseLiteral();if(p!==l){d=[];g=peg$parseEOL_ANY();if(g!==l){while(g!==l){d.push(g);g=peg$parseEOL_ANY()}}else{d=l}if(d!==l){ke=s;p=peg$c17(p);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}}return s}function peg$parseSamedent(){var s,p,d;Ne++;s=Pe;p=[];if(r.charCodeAt(Pe)===32){d=v;Pe++}else{d=l;if(Ne===0){peg$fail(A)}}while(d!==l){p.push(d);if(r.charCodeAt(Pe)===32){d=v;Pe++}else{d=l;if(Ne===0){peg$fail(A)}}}if(p!==l){ke=Pe;d=peg$c21(p);if(d){d=void 0}else{d=l}if(d!==l){p=[p,d];s=p}else{Pe=s;s=l}}else{Pe=s;s=l}Ne--;if(s===l){p=l;if(Ne===0){peg$fail(w)}}return s}function peg$parseExtradent(){var s,p,d;s=Pe;p=[];if(r.charCodeAt(Pe)===32){d=v;Pe++}else{d=l;if(Ne===0){peg$fail(A)}}while(d!==l){p.push(d);if(r.charCodeAt(Pe)===32){d=v;Pe++}else{d=l;if(Ne===0){peg$fail(A)}}}if(p!==l){ke=Pe;d=peg$c22(p);if(d){d=void 0}else{d=l}if(d!==l){p=[p,d];s=p}else{Pe=s;s=l}}else{Pe=s;s=l}return s}function peg$parseIndent(){var r;ke=Pe;r=peg$c23();if(r){r=void 0}else{r=l}return r}function peg$parseDedent(){var r;ke=Pe;r=peg$c24();if(r){r=void 0}else{r=l}return r}function peg$parseName(){var r;r=peg$parsestring();if(r===l){r=peg$parsepseudostring()}return r}function peg$parseLegacyName(){var r,s,p;r=peg$parsestring();if(r===l){r=Pe;s=[];p=peg$parsepseudostringLegacy();if(p!==l){while(p!==l){s.push(p);p=peg$parsepseudostringLegacy()}}else{s=l}if(s!==l){ke=r;s=peg$c25()}r=s}return r}function peg$parseLiteral(){var r;r=peg$parsenull();if(r===l){r=peg$parseboolean();if(r===l){r=peg$parsestring();if(r===l){r=peg$parsepseudostring()}}}return r}function peg$parseLegacyLiteral(){var r;r=peg$parsenull();if(r===l){r=peg$parsestring();if(r===l){r=peg$parsepseudostringLegacy()}}return r}function peg$parsepseudostring(){var s,p,d,m,y,g;Ne++;s=Pe;if(k.test(r.charAt(Pe))){p=r.charAt(Pe);Pe++}else{p=l;if(Ne===0){peg$fail(C)}}if(p!==l){d=[];m=Pe;y=peg$parseB();if(y===l){y=null}if(y!==l){if(I.test(r.charAt(Pe))){g=r.charAt(Pe);Pe++}else{g=l;if(Ne===0){peg$fail(O)}}if(g!==l){y=[y,g];m=y}else{Pe=m;m=l}}else{Pe=m;m=l}while(m!==l){d.push(m);m=Pe;y=peg$parseB();if(y===l){y=null}if(y!==l){if(I.test(r.charAt(Pe))){g=r.charAt(Pe);Pe++}else{g=l;if(Ne===0){peg$fail(O)}}if(g!==l){y=[y,g];m=y}else{Pe=m;m=l}}else{Pe=m;m=l}}if(d!==l){ke=s;p=peg$c31();s=p}else{Pe=s;s=l}}else{Pe=s;s=l}Ne--;if(s===l){p=l;if(Ne===0){peg$fail(P)}}return s}function peg$parsepseudostringLegacy(){var s,p,d,m,y;s=Pe;if(r.substr(Pe,2)===N){p=N;Pe+=2}else{p=l;if(Ne===0){peg$fail(L)}}if(p===l){p=null}if(p!==l){if(D.test(r.charAt(Pe))){d=r.charAt(Pe);Pe++}else{d=l;if(Ne===0){peg$fail(R)}}if(d!==l){m=[];if(M.test(r.charAt(Pe))){y=r.charAt(Pe);Pe++}else{y=l;if(Ne===0){peg$fail(F)}}while(y!==l){m.push(y);if(M.test(r.charAt(Pe))){y=r.charAt(Pe);Pe++}else{y=l;if(Ne===0){peg$fail(F)}}}if(m!==l){ke=s;p=peg$c31();s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}return s}function peg$parsenull(){var s,p;s=Pe;if(r.substr(Pe,4)===B){p=B;Pe+=4}else{p=l;if(Ne===0){peg$fail(j)}}if(p!==l){ke=s;p=peg$c40()}s=p;return s}function peg$parseboolean(){var s,p;s=Pe;if(r.substr(Pe,4)===$){p=$;Pe+=4}else{p=l;if(Ne===0){peg$fail(U)}}if(p!==l){ke=s;p=peg$c43()}s=p;if(s===l){s=Pe;if(r.substr(Pe,5)===G){p=G;Pe+=5}else{p=l;if(Ne===0){peg$fail(q)}}if(p!==l){ke=s;p=peg$c46()}s=p}return s}function peg$parsestring(){var s,p,d,m;Ne++;s=Pe;if(r.charCodeAt(Pe)===34){p=H;Pe++}else{p=l;if(Ne===0){peg$fail(V)}}if(p!==l){if(r.charCodeAt(Pe)===34){d=H;Pe++}else{d=l;if(Ne===0){peg$fail(V)}}if(d!==l){ke=s;p=peg$c50();s=p}else{Pe=s;s=l}}else{Pe=s;s=l}if(s===l){s=Pe;if(r.charCodeAt(Pe)===34){p=H;Pe++}else{p=l;if(Ne===0){peg$fail(V)}}if(p!==l){d=peg$parsechars();if(d!==l){if(r.charCodeAt(Pe)===34){m=H;Pe++}else{m=l;if(Ne===0){peg$fail(V)}}if(m!==l){ke=s;p=peg$c51(d);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}Ne--;if(s===l){p=l;if(Ne===0){peg$fail(W)}}return s}function peg$parsechars(){var r,s,p;r=Pe;s=[];p=peg$parsechar();if(p!==l){while(p!==l){s.push(p);p=peg$parsechar()}}else{s=l}if(s!==l){ke=r;s=peg$c52(s)}r=s;return r}function peg$parsechar(){var s,p,d,m,y,g;if(K.test(r.charAt(Pe))){s=r.charAt(Pe);Pe++}else{s=l;if(Ne===0){peg$fail(z)}}if(s===l){s=Pe;if(r.substr(Pe,2)===Y){p=Y;Pe+=2}else{p=l;if(Ne===0){peg$fail(J)}}if(p!==l){ke=s;p=peg$c57()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===X){p=X;Pe+=2}else{p=l;if(Ne===0){peg$fail(Q)}}if(p!==l){ke=s;p=peg$c60()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===Z){p=Z;Pe+=2}else{p=l;if(Ne===0){peg$fail(ee)}}if(p!==l){ke=s;p=peg$c63()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===te){p=te;Pe+=2}else{p=l;if(Ne===0){peg$fail(re)}}if(p!==l){ke=s;p=peg$c66()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===se){p=se;Pe+=2}else{p=l;if(Ne===0){peg$fail(ne)}}if(p!==l){ke=s;p=peg$c69()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===ie){p=ie;Pe+=2}else{p=l;if(Ne===0){peg$fail(ae)}}if(p!==l){ke=s;p=peg$c72()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===oe){p=oe;Pe+=2}else{p=l;if(Ne===0){peg$fail(le)}}if(p!==l){ke=s;p=peg$c75()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===ce){p=ce;Pe+=2}else{p=l;if(Ne===0){peg$fail(ue)}}if(p!==l){ke=s;p=peg$c78()}s=p;if(s===l){s=Pe;if(r.substr(Pe,2)===pe){p=pe;Pe+=2}else{p=l;if(Ne===0){peg$fail(de)}}if(p!==l){d=peg$parsehexDigit();if(d!==l){m=peg$parsehexDigit();if(m!==l){y=peg$parsehexDigit();if(y!==l){g=peg$parsehexDigit();if(g!==l){ke=s;p=peg$c81(d,m,y,g);s=p}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}else{Pe=s;s=l}}}}}}}}}}return s}function peg$parsehexDigit(){var s;if(fe.test(r.charAt(Pe))){s=r.charAt(Pe);Pe++}else{s=l;if(Ne===0){peg$fail(he)}}return s}function peg$parseB(){var s,p;Ne++;s=[];if(ye.test(r.charAt(Pe))){p=r.charAt(Pe);Pe++}else{p=l;if(Ne===0){peg$fail(ge)}}if(p!==l){while(p!==l){s.push(p);if(ye.test(r.charAt(Pe))){p=r.charAt(Pe);Pe++}else{p=l;if(Ne===0){peg$fail(ge)}}}}else{s=l}Ne--;if(s===l){p=l;if(Ne===0){peg$fail(me)}}return s}function peg$parseS(){var s,p;Ne++;s=[];if(be.test(r.charAt(Pe))){p=r.charAt(Pe);Pe++}else{p=l;if(Ne===0){peg$fail(Ee)}}if(p!==l){while(p!==l){s.push(p);if(be.test(r.charAt(Pe))){p=r.charAt(Pe);Pe++}else{p=l;if(Ne===0){peg$fail(Ee)}}}}else{s=l}Ne--;if(s===l){p=l;if(Ne===0){peg$fail(Te)}}return s}function peg$parseEOL_ANY(){var r,s,p,d,m,y;r=Pe;s=peg$parseEOL();if(s!==l){p=[];d=Pe;m=peg$parseB();if(m===l){m=null}if(m!==l){y=peg$parseEOL();if(y!==l){m=[m,y];d=m}else{Pe=d;d=l}}else{Pe=d;d=l}while(d!==l){p.push(d);d=Pe;m=peg$parseB();if(m===l){m=null}if(m!==l){y=peg$parseEOL();if(y!==l){m=[m,y];d=m}else{Pe=d;d=l}}else{Pe=d;d=l}}if(p!==l){s=[s,p];r=s}else{Pe=r;r=l}}else{Pe=r;r=l}return r}function peg$parseEOL(){var s;if(r.substr(Pe,2)===Se){s=Se;Pe+=2}else{s=l;if(Ne===0){peg$fail(_e)}}if(s===l){if(r.charCodeAt(Pe)===10){s=xe;Pe++}else{s=l;if(Ne===0){peg$fail(we)}}if(s===l){if(r.charCodeAt(Pe)===13){s=ve;Pe++}else{s=l;if(Ne===0){peg$fail(Ae)}}}}return s}const De=2;let Re=0;Le=d();if(Le!==l&&Pe===r.length){return Le}else{if(Le!==l&&Pe<r.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(Oe,Ie<r.length?r.charAt(Ie):null,Ie<r.length?peg$computeLocation(Ie,Ie+1):peg$computeLocation(Ie,Ie))}}r.exports={SyntaxError:peg$SyntaxError,parse:peg$parse}},6992:(r,s,l)=>{var p;p={value:true};p=s["do"]=p=p=p=p=p=p=p=p=p=p=p=p=p=p=p=p=void 0;var d=l(7466);p={enumerable:true,get:function(){return d.parseShell}};p={enumerable:true,get:function(){return d.stringifyShell}};p={enumerable:true,get:function(){return d.stringifyArgument}};p={enumerable:true,get:function(){return d.stringifyArgumentSegment}};p={enumerable:true,get:function(){return d.stringifyArithmeticExpression}};p={enumerable:true,get:function(){return d.stringifyCommand}};p={enumerable:true,get:function(){return d.stringifyCommandChain}};p={enumerable:true,get:function(){return d.stringifyCommandChainThen}};p={enumerable:true,get:function(){return d.stringifyCommandLine}};p={enumerable:true,get:function(){return d.stringifyCommandLineThen}};p={enumerable:true,get:function(){return d.stringifyEnvSegment}};p={enumerable:true,get:function(){return d.stringifyRedirectArgument}};p={enumerable:true,get:function(){return d.stringifyShellLine}};p={enumerable:true,get:function(){return d.stringifyValueArgument}};var m=l(5380);p={enumerable:true,get:function(){return m.parseResolution}};p={enumerable:true,get:function(){return m.stringifyResolution}};var y=l(3988);Object.defineProperty(s,"do",{enumerable:true,get:function(){return y.parseSyml}});p={enumerable:true,get:function(){return y.stringifySyml}}},5380:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.parseResolution=parseResolution;s.stringifyResolution=stringifyResolution;const p=l(7197);function parseResolution(r){const s=r.match(/^\*{1,2}\/(.*)/);if(s)throw new Error(`The override for '${r}' includes a glob pattern. Glob patterns have been removed since their behaviours don't match what you'd expect. Set the override to '${s[1]}' instead.`);try{return(0,p.parse)(r)}catch(r){if(r.location)r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`);throw r}}function stringifyResolution(r){let s=``;if(r.from){s+=r.from.fullName;if(r.from.description)s+=`@${r.from.description}`;s+=`/`}s+=r.descriptor.fullName;if(r.descriptor.description)s+=`@${r.descriptor.description}`;return s}},7466:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.parseShell=parseShell;s.stringifyShellLine=stringifyShellLine;s.stringifyShell=stringifyShellLine;s.stringifyCommandLine=stringifyCommandLine;s.stringifyCommandLineThen=stringifyCommandLineThen;s.stringifyCommandChain=stringifyCommandChain;s.stringifyCommandChainThen=stringifyCommandChainThen;s.stringifyCommand=stringifyCommand;s.stringifyEnvSegment=stringifyEnvSegment;s.stringifyArgument=stringifyArgument;s.stringifyRedirectArgument=stringifyRedirectArgument;s.stringifyValueArgument=stringifyValueArgument;s.stringifyArgumentSegment=stringifyArgumentSegment;s.stringifyArithmeticExpression=stringifyArithmeticExpression;s.stringifyShellLine=stringifyShellLine;s.stringifyShell=stringifyShellLine;const p=l(469);function parseShell(r,s={isGlobPattern:()=>false}){try{return(0,p.parse)(r,s)}catch(r){if(r.location)r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`);throw r}}function stringifyShellLine(r,{endSemicolon:s=false}={}){return r.map((({command:l,type:p},d)=>`${stringifyCommandLine(l)}${p===`;`?d!==r.length-1||s?`;`:``:` &`}`)).join(` `)}function stringifyCommandLine(r){return`${stringifyCommandChain(r.chain)}${r.then?` ${stringifyCommandLineThen(r.then)}`:``}`}function stringifyCommandLineThen(r){return`${r.type} ${stringifyCommandLine(r.line)}`}function stringifyCommandChain(r){return`${stringifyCommand(r)}${r.then?` ${stringifyCommandChainThen(r.then)}`:``}`}function stringifyCommandChainThen(r){return`${r.type} ${stringifyCommandChain(r.chain)}`}function stringifyCommand(r){switch(r.type){case`command`:return`${r.envs.length>0?`${r.envs.map((r=>stringifyEnvSegment(r))).join(` `)} `:``}${r.args.map((r=>stringifyArgument(r))).join(` `)}`;case`subshell`:return`(${stringifyShellLine(r.subshell)})${r.args.length>0?` ${r.args.map((r=>stringifyRedirectArgument(r))).join(` `)}`:``}`;case`group`:return`{ ${stringifyShellLine(r.group,{endSemicolon:true})} }${r.args.length>0?` ${r.args.map((r=>stringifyRedirectArgument(r))).join(` `)}`:``}`;case`envs`:return r.envs.map((r=>stringifyEnvSegment(r))).join(` `);default:throw new Error(`Unsupported command type: "${r.type}"`)}}function stringifyEnvSegment(r){return`${r.name}=${r.args[0]?stringifyValueArgument(r.args[0]):``}`}function stringifyArgument(r){switch(r.type){case`redirection`:return stringifyRedirectArgument(r);case`argument`:return stringifyValueArgument(r);default:throw new Error(`Unsupported argument type: "${r.type}"`)}}function stringifyRedirectArgument(r){return`${r.subtype} ${r.args.map((r=>stringifyValueArgument(r))).join(` `)}`}function stringifyValueArgument(r){return r.segments.map((r=>stringifyArgumentSegment(r))).join(``)}const d=new Map([[`\f`,`\\f`],[`\n`,`\\n`],[`\r`,`\\r`],[`\t`,`\\t`],[`\v`,`\\v`],[`\0`,`\\0`]]);const m=new Map([[`\\`,`\\\\`],[`$`,`\\$`],[`"`,`\\"`],...Array.from(d,(([r,s])=>[r,`"$'${s}'"`]))]);const getEscapedControlChar=r=>d.get(r)??`\\x${r.charCodeAt(0).toString(16).padStart(2,`0`)}`;const getEscapedDblChar=r=>m.get(r)??`"$'${getEscapedControlChar(r)}'"`;function stringifyArgumentSegment(r){const doubleQuoteIfRequested=(r,s)=>s?`"${r}"`:r;const quoteIfNeeded=r=>{if(r===``)return`''`;if(!r.match(/[()}<>$|&;"'\n\t ]/))return r;if(!r.match(/['\t\p{C}]/u))return`'${r}'`;if(!r.match(/'/)){return`$'${r.replace(/[\t\p{C}]/u,getEscapedControlChar)}'`}else{return`"${r.replace(/["$\t\p{C}]/u,getEscapedDblChar)}"`}};switch(r.type){case`text`:return quoteIfNeeded(r.text);case`glob`:return r.pattern;case`shell`:return doubleQuoteIfRequested(`$(${stringifyShellLine(r.shell)})`,r.quoted);case`variable`:return doubleQuoteIfRequested(typeof r.defaultValue===`undefined`?typeof r.alternativeValue===`undefined`?`\${${r.name}}`:r.alternativeValue.length===0?`\${${r.name}:+}`:`\${${r.name}:+${r.alternativeValue.map((r=>stringifyValueArgument(r))).join(` `)}}`:r.defaultValue.length===0?`\${${r.name}:-}`:`\${${r.name}:-${r.defaultValue.map((r=>stringifyValueArgument(r))).join(` `)}}`,r.quoted);case`arithmetic`:return`$(( ${stringifyArithmeticExpression(r.arithmetic)} ))`;default:throw new Error(`Unsupported argument segment type: "${r.type}"`)}}function stringifyArithmeticExpression(r){const getOperator=r=>{switch(r){case`addition`:return`+`;case`subtraction`:return`-`;case`multiplication`:return`*`;case`division`:return`/`;default:throw new Error(`Can't extract operator from arithmetic expression of type "${r}"`)}};const parenthesizeIfRequested=(r,s)=>s?`( ${r} )`:r;const stringifyAndParenthesizeIfNeeded=r=>parenthesizeIfRequested(stringifyArithmeticExpression(r),![`number`,`variable`].includes(r.type));switch(r.type){case`number`:return String(r.value);case`variable`:return r.name;default:return`${stringifyAndParenthesizeIfNeeded(r.left)} ${getOperator(r.type)} ${stringifyAndParenthesizeIfNeeded(r.right)}`}}},3988:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.PreserveOrdering=void 0;s.stringifySyml=stringifySyml;s.parseSyml=parseSyml;const p=l(1885);const d=l(3898);const m=/^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/;const y=[`__metadata`,`version`,`resolution`,`dependencies`,`peerDependencies`,`dependenciesMeta`,`peerDependenciesMeta`,`binaries`];class PreserveOrdering{constructor(r){this.data=r}}s.PreserveOrdering=PreserveOrdering;function stringifyString(r){if(r.match(m)){return r}else{return JSON.stringify(r)}}function isRemovableField(r){if(typeof r===`undefined`)return true;if(typeof r===`object`&&r!==null&&!Array.isArray(r))return Object.keys(r).every((s=>isRemovableField(r[s])));return false}function stringifyValue(r,s,l){if(r===null)return`null\n`;if(typeof r===`number`||typeof r===`boolean`)return`${r.toString()}\n`;if(typeof r===`string`)return`${stringifyString(r)}\n`;if(Array.isArray(r)){if(r.length===0)return`[]\n`;const l=` `.repeat(s);const p=r.map((r=>`${l}- ${stringifyValue(r,s+1,false)}`)).join(``);return`\n${p}`}if(typeof r===`object`&&r){const[p,d]=r instanceof PreserveOrdering?[r.data,false]:[r,true];const m=` `.repeat(s);const g=Object.keys(p);if(d){g.sort(((r,s)=>{const l=y.indexOf(r);const p=y.indexOf(s);if(l===-1&&p===-1)return r<s?-1:r>s?+1:0;if(l!==-1&&p===-1)return-1;if(l===-1&&p!==-1)return+1;return l-p}))}const T=g.filter((r=>!isRemovableField(p[r]))).map(((r,d)=>{const y=p[r];const g=stringifyString(r);const T=stringifyValue(y,s+1,true);const b=d>0||l?m:``;const E=g.length>1024?`? ${g}\n${b}:`:`${g}:`;const S=T.startsWith(`\n`)?T:` ${T}`;return`${b}${E}${S}`})).join(s===0?`\n`:``)||`\n`;if(!l){return`${T}`}else{return`\n${T}`}}throw new Error(`Unsupported value type (${r})`)}function stringifySyml(r){try{const s=stringifyValue(r,0,false);return s!==`\n`?s:``}catch(r){if(r.location)r.message=r.message.replace(/(\.)?$/,` (line ${r.location.start.line}, column ${r.location.start.column})$1`);throw r}}stringifySyml.PreserveOrdering=PreserveOrdering;function parseViaPeg(r){if(!r.endsWith(`\n`))r+=`\n`;return(0,d.parse)(r)}const g=/^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;function parseViaJsYaml(r){if(g.test(r))return parseViaPeg(r);const s=(0,p.safeLoad)(r,{schema:p.FAILSAFE_SCHEMA,json:true});if(s===undefined||s===null)return{};if(typeof s!==`object`)throw new Error(`Expected an indexed object, got a ${typeof s} instead. Does your file follow Yaml's rules?`);if(Array.isArray(s))throw new Error(`Expected an indexed object, got an array instead. Does your file follow Yaml's rules?`);return s}function parseSyml(r){return parseViaJsYaml(r)}},1885:(r,s,l)=>{var p=l(1004);r.exports=p},1004:(r,s,l)=>{var p=l(3296);var d=l(7418);function deprecated(r){return function(){throw new Error("Function "+r+" is deprecated and cannot be used.")}}r.exports.Type=l(5543);r.exports.Schema=l(3696);r.exports.FAILSAFE_SCHEMA=l(2590);r.exports.JSON_SCHEMA=l(8057);r.exports.CORE_SCHEMA=l(2864);r.exports.DEFAULT_SAFE_SCHEMA=l(6588);r.exports.DEFAULT_FULL_SCHEMA=l(2944);r.exports.load=p.load;r.exports.loadAll=p.loadAll;r.exports.safeLoad=p.safeLoad;r.exports.safeLoadAll=p.safeLoadAll;r.exports.dump=d.dump;r.exports.safeDump=d.safeDump;r.exports.YAMLException=l(1386);r.exports.MINIMAL_SCHEMA=l(2590);r.exports.SAFE_SCHEMA=l(6588);r.exports.DEFAULT_SCHEMA=l(2944);r.exports.scan=deprecated("scan");r.exports.parse=deprecated("parse");r.exports.compose=deprecated("compose");r.exports.addConstructor=deprecated("addConstructor")},3866:r=>{function isNothing(r){return typeof r==="undefined"||r===null}function isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,s){var l,p,d,m;if(s){m=Object.keys(s);for(l=0,p=m.length;l<p;l+=1){d=m[l];r[d]=s[d]}}return r}function repeat(r,s){var l="",p;for(p=0;p<s;p+=1){l+=r}return l}function isNegativeZero(r){return r===0&&Number.NEGATIVE_INFINITY===1/r}r.exports.isNothing=isNothing;r.exports.isObject=isObject;r.exports.toArray=toArray;r.exports.repeat=repeat;r.exports.isNegativeZero=isNegativeZero;r.exports.extend=extend},7418:(r,s,l)=>{var p=l(3866);var d=l(1386);var m=l(2944);var y=l(6588);var g=Object.prototype.toString;var T=Object.prototype.hasOwnProperty;var b=9;var E=10;var S=13;var _=32;var x=33;var w=34;var v=35;var A=37;var P=38;var k=39;var C=42;var I=44;var O=45;var N=58;var L=61;var D=62;var R=63;var M=64;var F=91;var B=93;var j=96;var $=123;var U=124;var G=125;var q={};q[0]="\\0";q[7]="\\a";q[8]="\\b";q[9]="\\t";q[10]="\\n";q[11]="\\v";q[12]="\\f";q[13]="\\r";q[27]="\\e";q[34]='\\"';q[92]="\\\\";q[133]="\\N";q[160]="\\_";q[8232]="\\L";q[8233]="\\P";var W=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function compileStyleMap(r,s){var l,p,d,m,y,g,b;if(s===null)return{};l={};p=Object.keys(s);for(d=0,m=p.length;d<m;d+=1){y=p[d];g=String(s[y]);if(y.slice(0,2)==="!!"){y="tag:yaml.org,2002:"+y.slice(2)}b=r.compiledTypeMap["fallback"][y];if(b&&T.call(b.styleAliases,g)){g=b.styleAliases[g]}l[y]=g}return l}function encodeHex(r){var s,l,m;s=r.toString(16).toUpperCase();if(r<=255){l="x";m=2}else if(r<=65535){l="u";m=4}else if(r<=4294967295){l="U";m=8}else{throw new d("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+l+p.repeat("0",m-s.length)+s}function State(r){this.schema=r["schema"]||m;this.indent=Math.max(1,r["indent"]||2);this.noArrayIndent=r["noArrayIndent"]||false;this.skipInvalid=r["skipInvalid"]||false;this.flowLevel=p.isNothing(r["flowLevel"])?-1:r["flowLevel"];this.styleMap=compileStyleMap(this.schema,r["styles"]||null);this.sortKeys=r["sortKeys"]||false;this.lineWidth=r["lineWidth"]||80;this.noRefs=r["noRefs"]||false;this.noCompatMode=r["noCompatMode"]||false;this.condenseFlow=r["condenseFlow"]||false;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(r,s){var l=p.repeat(" ",s),d=0,m=-1,y="",g,T=r.length;while(d<T){m=r.indexOf("\n",d);if(m===-1){g=r.slice(d);d=T}else{g=r.slice(d,m+1);d=m+1}if(g.length&&g!=="\n")y+=l;y+=g}return y}function generateNextLine(r,s){return"\n"+p.repeat(" ",r.indent*s)}function testImplicitResolving(r,s){var l,p,d;for(l=0,p=r.implicitTypes.length;l<p;l+=1){d=r.implicitTypes[l];if(d.resolve(s)){return true}}return false}function isWhitespace(r){return r===_||r===b}function isPrintable(r){return 32<=r&&r<=126||161<=r&&r<=55295&&r!==8232&&r!==8233||57344<=r&&r<=65533&&r!==65279||65536<=r&&r<=1114111}function isNsChar(r){return isPrintable(r)&&!isWhitespace(r)&&r!==65279&&r!==S&&r!==E}function isPlainSafe(r,s){return isPrintable(r)&&r!==65279&&r!==I&&r!==F&&r!==B&&r!==$&&r!==G&&r!==N&&(r!==v||s&&isNsChar(s))}function isPlainSafeFirst(r){return isPrintable(r)&&r!==65279&&!isWhitespace(r)&&r!==O&&r!==R&&r!==N&&r!==I&&r!==F&&r!==B&&r!==$&&r!==G&&r!==v&&r!==P&&r!==C&&r!==x&&r!==U&&r!==L&&r!==D&&r!==k&&r!==w&&r!==A&&r!==M&&r!==j}function needIndentIndicator(r){var s=/^\n* /;return s.test(r)}var H=1,V=2,K=3,z=4,Y=5;function chooseScalarStyle(r,s,l,p,d){var m;var y,g;var T=false;var b=false;var S=p!==-1;var _=-1;var x=isPlainSafeFirst(r.charCodeAt(0))&&!isWhitespace(r.charCodeAt(r.length-1));if(s){for(m=0;m<r.length;m++){y=r.charCodeAt(m);if(!isPrintable(y)){return Y}g=m>0?r.charCodeAt(m-1):null;x=x&&isPlainSafe(y,g)}}else{for(m=0;m<r.length;m++){y=r.charCodeAt(m);if(y===E){T=true;if(S){b=b||m-_-1>p&&r[_+1]!==" ";_=m}}else if(!isPrintable(y)){return Y}g=m>0?r.charCodeAt(m-1):null;x=x&&isPlainSafe(y,g)}b=b||S&&(m-_-1>p&&r[_+1]!==" ")}if(!T&&!b){return x&&!d(r)?H:V}if(l>9&&needIndentIndicator(r)){return Y}return b?z:K}function writeScalar(r,s,l,p){r.dump=function(){if(s.length===0){return"''"}if(!r.noCompatMode&&W.indexOf(s)!==-1){return"'"+s+"'"}var m=r.indent*Math.max(1,l);var y=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-m);var g=p||r.flowLevel>-1&&l>=r.flowLevel;function testAmbiguity(s){return testImplicitResolving(r,s)}switch(chooseScalarStyle(s,g,r.indent,y,testAmbiguity)){case H:return s;case V:return"'"+s.replace(/'/g,"''")+"'";case K:return"|"+blockHeader(s,r.indent)+dropEndingNewline(indentString(s,m));case z:return">"+blockHeader(s,r.indent)+dropEndingNewline(indentString(foldString(s,y),m));case Y:return'"'+escapeString(s,y)+'"';default:throw new d("impossible error: invalid scalar style")}}()}function blockHeader(r,s){var l=needIndentIndicator(r)?String(s):"";var p=r[r.length-1]==="\n";var d=p&&(r[r.length-2]==="\n"||r==="\n");var m=d?"+":p?"":"-";return l+m+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,s){var l=/(\n+)([^\n]*)/g;var p=function(){var p=r.indexOf("\n");p=p!==-1?p:r.length;l.lastIndex=p;return foldLine(r.slice(0,p),s)}();var d=r[0]==="\n"||r[0]===" ";var m;var y;while(y=l.exec(r)){var g=y[1],T=y[2];m=T[0]===" ";p+=g+(!d&&!m&&T!==""?"\n":"")+foldLine(T,s);d=m}return p}function foldLine(r,s){if(r===""||r[0]===" ")return r;var l=/ [^ ]/g;var p;var d=0,m,y=0,g=0;var T="";while(p=l.exec(r)){g=p.index;if(g-d>s){m=y>d?y:g;T+="\n"+r.slice(d,m);d=m+1}y=g}T+="\n";if(r.length-d>s&&y>d){T+=r.slice(d,y)+"\n"+r.slice(y+1)}else{T+=r.slice(d)}return T.slice(1)}function escapeString(r){var s="";var l,p;var d;for(var m=0;m<r.length;m++){l=r.charCodeAt(m);if(l>=55296&&l<=56319){p=r.charCodeAt(m+1);if(p>=56320&&p<=57343){s+=encodeHex((l-55296)*1024+p-56320+65536);m++;continue}}d=q[l];s+=!d&&isPrintable(l)?r[m]:d||encodeHex(l)}return s}function writeFlowSequence(r,s,l){var p="",d=r.tag,m,y;for(m=0,y=l.length;m<y;m+=1){if(writeNode(r,s,l[m],false,false)){if(m!==0)p+=","+(!r.condenseFlow?" ":"");p+=r.dump}}r.tag=d;r.dump="["+p+"]"}function writeBlockSequence(r,s,l,p){var d="",m=r.tag,y,g;for(y=0,g=l.length;y<g;y+=1){if(writeNode(r,s+1,l[y],true,true)){if(!p||y!==0){d+=generateNextLine(r,s)}if(r.dump&&E===r.dump.charCodeAt(0)){d+="-"}else{d+="- "}d+=r.dump}}r.tag=m;r.dump=d||"[]"}function writeFlowMapping(r,s,l){var p="",d=r.tag,m=Object.keys(l),y,g,T,b,E;for(y=0,g=m.length;y<g;y+=1){E="";if(y!==0)E+=", ";if(r.condenseFlow)E+='"';T=m[y];b=l[T];if(!writeNode(r,s,T,false,false)){continue}if(r.dump.length>1024)E+="? ";E+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,s,b,false,false)){continue}E+=r.dump;p+=E}r.tag=d;r.dump="{"+p+"}"}function writeBlockMapping(r,s,l,p){var m="",y=r.tag,g=Object.keys(l),T,b,S,_,x,w;if(r.sortKeys===true){g.sort()}else if(typeof r.sortKeys==="function"){g.sort(r.sortKeys)}else if(r.sortKeys){throw new d("sortKeys must be a boolean or a function")}for(T=0,b=g.length;T<b;T+=1){w="";if(!p||T!==0){w+=generateNextLine(r,s)}S=g[T];_=l[S];if(!writeNode(r,s+1,S,true,true,true)){continue}x=r.tag!==null&&r.tag!=="?"||r.dump&&r.dump.length>1024;if(x){if(r.dump&&E===r.dump.charCodeAt(0)){w+="?"}else{w+="? "}}w+=r.dump;if(x){w+=generateNextLine(r,s)}if(!writeNode(r,s+1,_,true,x)){continue}if(r.dump&&E===r.dump.charCodeAt(0)){w+=":"}else{w+=": "}w+=r.dump;m+=w}r.tag=y;r.dump=m||"{}"}function detectType(r,s,l){var p,m,y,b,E,S;m=l?r.explicitTypes:r.implicitTypes;for(y=0,b=m.length;y<b;y+=1){E=m[y];if((E.instanceOf||E.predicate)&&(!E.instanceOf||typeof s==="object"&&s instanceof E.instanceOf)&&(!E.predicate||E.predicate(s))){r.tag=l?E.tag:"?";if(E.represent){S=r.styleMap[E.tag]||E.defaultStyle;if(g.call(E.represent)==="[object Function]"){p=E.represent(s,S)}else if(T.call(E.represent,S)){p=E.represent[S](s,S)}else{throw new d("!<"+E.tag+'> tag resolver accepts not "'+S+'" style')}r.dump=p}return true}}return false}function writeNode(r,s,l,p,m,y){r.tag=null;r.dump=l;if(!detectType(r,l,false)){detectType(r,l,true)}var T=g.call(r.dump);if(p){p=r.flowLevel<0||r.flowLevel>s}var b=T==="[object Object]"||T==="[object Array]",E,S;if(b){E=r.duplicates.indexOf(l);S=E!==-1}if(r.tag!==null&&r.tag!=="?"||S||r.indent!==2&&s>0){m=false}if(S&&r.usedDuplicates[E]){r.dump="*ref_"+E}else{if(b&&S&&!r.usedDuplicates[E]){r.usedDuplicates[E]=true}if(T==="[object Object]"){if(p&&Object.keys(r.dump).length!==0){writeBlockMapping(r,s,r.dump,m);if(S){r.dump="&ref_"+E+r.dump}}else{writeFlowMapping(r,s,r.dump);if(S){r.dump="&ref_"+E+" "+r.dump}}}else if(T==="[object Array]"){var _=r.noArrayIndent&&s>0?s-1:s;if(p&&r.dump.length!==0){writeBlockSequence(r,_,r.dump,m);if(S){r.dump="&ref_"+E+r.dump}}else{writeFlowSequence(r,_,r.dump);if(S){r.dump="&ref_"+E+" "+r.dump}}}else if(T==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,s,y)}}else{if(r.skipInvalid)return false;throw new d("unacceptable kind of an object to dump "+T)}if(r.tag!==null&&r.tag!=="?"){r.dump="!<"+r.tag+"> "+r.dump}}return true}function getDuplicateReferences(r,s){var l=[],p=[],d,m;inspectNode(r,l,p);for(d=0,m=p.length;d<m;d+=1){s.duplicates.push(l[p[d]])}s.usedDuplicates=new Array(m)}function inspectNode(r,s,l){var p,d,m;if(r!==null&&typeof r==="object"){d=s.indexOf(r);if(d!==-1){if(l.indexOf(d)===-1){l.push(d)}}else{s.push(r);if(Array.isArray(r)){for(d=0,m=r.length;d<m;d+=1){inspectNode(r[d],s,l)}}else{p=Object.keys(r);for(d=0,m=p.length;d<m;d+=1){inspectNode(r[p[d]],s,l)}}}}}function dump(r,s){s=s||{};var l=new State(s);if(!l.noRefs)getDuplicateReferences(r,l);if(writeNode(l,0,r,true,true))return l.dump+"\n";return""}function safeDump(r,s){return dump(r,p.extend({schema:y},s))}r.exports.dump=dump;r.exports.safeDump=safeDump},1386:r=>{function YAMLException(r,s){Error.call(this);this.name="YAMLException";this.reason=r;this.mark=s;this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"");if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(r){var s=this.name+": ";s+=this.reason||"(unknown reason)";if(!r&&this.mark){s+=" "+this.mark.toString()}return s};r.exports=YAMLException},3296:(r,s,l)=>{var p=l(3866);var d=l(1386);var m=l(1458);var y=l(6588);var g=l(2944);var T=Object.prototype.hasOwnProperty;var b=1;var E=2;var S=3;var _=4;var x=1;var w=2;var v=3;var A=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var P=/[\x85\u2028\u2029]/;var k=/[,\[\]\{\}]/;var C=/^(?:!|!!|![a-z\-]+!)$/i;var I=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(r){return Object.prototype.toString.call(r)}function is_EOL(r){return r===10||r===13}function is_WHITE_SPACE(r){return r===9||r===32}function is_WS_OR_EOL(r){return r===9||r===32||r===10||r===13}function is_FLOW_INDICATOR(r){return r===44||r===91||r===93||r===123||r===125}function fromHexCode(r){var s;if(48<=r&&r<=57){return r-48}s=r|32;if(97<=s&&s<=102){return s-97+10}return-1}function escapedHexLen(r){if(r===120){return 2}if(r===117){return 4}if(r===85){return 8}return 0}function fromDecimalCode(r){if(48<=r&&r<=57){return r-48}return-1}function simpleEscapeSequence(r){return r===48?"\0":r===97?"":r===98?"\b":r===116?"\t":r===9?"\t":r===110?"\n":r===118?"\v":r===102?"\f":r===114?"\r":r===101?"":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"
":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function charFromCodepoint(r){if(r<=65535){return String.fromCharCode(r)}return String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}var O=new Array(256);var N=new Array(256);for(var L=0;L<256;L++){O[L]=simpleEscapeSequence(L)?1:0;N[L]=simpleEscapeSequence(L)}function State(r,s){this.input=r;this.filename=s["filename"]||null;this.schema=s["schema"]||g;this.onWarning=s["onWarning"]||null;this.legacy=s["legacy"]||false;this.json=s["json"]||false;this.listener=s["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(r,s){return new d(s,new m(r.filename,r.input,r.position,r.line,r.position-r.lineStart))}function throwError(r,s){throw generateError(r,s)}function throwWarning(r,s){if(r.onWarning){r.onWarning.call(null,generateError(r,s))}}var D={YAML:function handleYamlDirective(r,s,l){var p,d,m;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(l.length!==1){throwError(r,"YAML directive accepts exactly one argument")}p=/^([0-9]+)\.([0-9]+)$/.exec(l[0]);if(p===null){throwError(r,"ill-formed argument of the YAML directive")}d=parseInt(p[1],10);m=parseInt(p[2],10);if(d!==1){throwError(r,"unacceptable YAML version of the document")}r.version=l[0];r.checkLineBreaks=m<2;if(m!==1&&m!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,s,l){var p,d;if(l.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}p=l[0];d=l[1];if(!C.test(p)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(T.call(r.tagMap,p)){throwError(r,'there is a previously declared suffix for "'+p+'" tag handle')}if(!I.test(d)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}r.tagMap[p]=d}};function captureSegment(r,s,l,p){var d,m,y,g;if(s<l){g=r.input.slice(s,l);if(p){for(d=0,m=g.length;d<m;d+=1){y=g.charCodeAt(d);if(!(y===9||32<=y&&y<=1114111)){throwError(r,"expected valid JSON character")}}}else if(A.test(g)){throwError(r,"the stream contains non-printable characters")}r.result+=g}}function mergeMappings(r,s,l,d){var m,y,g,b;if(!p.isObject(l)){throwError(r,"cannot merge mappings; the provided source object is unacceptable")}m=Object.keys(l);for(g=0,b=m.length;g<b;g+=1){y=m[g];if(!T.call(s,y)){s[y]=l[y];d[y]=true}}}function storeMappingPair(r,s,l,p,d,m,y,g){var b,E;if(Array.isArray(d)){d=Array.prototype.slice.call(d);for(b=0,E=d.length;b<E;b+=1){if(Array.isArray(d[b])){throwError(r,"nested arrays are not supported inside keys")}if(typeof d==="object"&&_class(d[b])==="[object Object]"){d[b]="[object Object]"}}}if(typeof d==="object"&&_class(d)==="[object Object]"){d="[object Object]"}d=String(d);if(s===null){s={}}if(p==="tag:yaml.org,2002:merge"){if(Array.isArray(m)){for(b=0,E=m.length;b<E;b+=1){mergeMappings(r,s,m[b],l)}}else{mergeMappings(r,s,m,l)}}else{if(!r.json&&!T.call(l,d)&&T.call(s,d)){r.line=y||r.line;r.position=g||r.position;throwError(r,"duplicated mapping key")}s[d]=m;delete l[d]}return s}function readLineBreak(r){var s;s=r.input.charCodeAt(r.position);if(s===10){r.position++}else if(s===13){r.position++;if(r.input.charCodeAt(r.position)===10){r.position++}}else{throwError(r,"a line break is expected")}r.line+=1;r.lineStart=r.position}function skipSeparationSpace(r,s,l){var p=0,d=r.input.charCodeAt(r.position);while(d!==0){while(is_WHITE_SPACE(d)){d=r.input.charCodeAt(++r.position)}if(s&&d===35){do{d=r.input.charCodeAt(++r.position)}while(d!==10&&d!==13&&d!==0)}if(is_EOL(d)){readLineBreak(r);d=r.input.charCodeAt(r.position);p++;r.lineIndent=0;while(d===32){r.lineIndent++;d=r.input.charCodeAt(++r.position)}}else{break}}if(l!==-1&&p!==0&&r.lineIndent<l){throwWarning(r,"deficient indentation")}return p}function testDocumentSeparator(r){var s=r.position,l;l=r.input.charCodeAt(s);if((l===45||l===46)&&l===r.input.charCodeAt(s+1)&&l===r.input.charCodeAt(s+2)){s+=3;l=r.input.charCodeAt(s);if(l===0||is_WS_OR_EOL(l)){return true}}return false}function writeFoldedLines(r,s){if(s===1){r.result+=" "}else if(s>1){r.result+=p.repeat("\n",s-1)}}function readPlainScalar(r,s,l){var p,d,m,y,g,T,b,E,S=r.kind,_=r.result,x;x=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(x)||is_FLOW_INDICATOR(x)||x===35||x===38||x===42||x===33||x===124||x===62||x===39||x===34||x===37||x===64||x===96){return false}if(x===63||x===45){d=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(d)||l&&is_FLOW_INDICATOR(d)){return false}}r.kind="scalar";r.result="";m=y=r.position;g=false;while(x!==0){if(x===58){d=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(d)||l&&is_FLOW_INDICATOR(d)){break}}else if(x===35){p=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(p)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||l&&is_FLOW_INDICATOR(x)){break}else if(is_EOL(x)){T=r.line;b=r.lineStart;E=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=s){g=true;x=r.input.charCodeAt(r.position);continue}else{r.position=y;r.line=T;r.lineStart=b;r.lineIndent=E;break}}if(g){captureSegment(r,m,y,false);writeFoldedLines(r,r.line-T);m=y=r.position;g=false}if(!is_WHITE_SPACE(x)){y=r.position+1}x=r.input.charCodeAt(++r.position)}captureSegment(r,m,y,false);if(r.result){return true}r.kind=S;r.result=_;return false}function readSingleQuotedScalar(r,s){var l,p,d;l=r.input.charCodeAt(r.position);if(l!==39){return false}r.kind="scalar";r.result="";r.position++;p=d=r.position;while((l=r.input.charCodeAt(r.position))!==0){if(l===39){captureSegment(r,p,r.position,true);l=r.input.charCodeAt(++r.position);if(l===39){p=r.position;r.position++;d=r.position}else{return true}}else if(is_EOL(l)){captureSegment(r,p,d,true);writeFoldedLines(r,skipSeparationSpace(r,false,s));p=d=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;d=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,s){var l,p,d,m,y,g;g=r.input.charCodeAt(r.position);if(g!==34){return false}r.kind="scalar";r.result="";r.position++;l=p=r.position;while((g=r.input.charCodeAt(r.position))!==0){if(g===34){captureSegment(r,l,r.position,true);r.position++;return true}else if(g===92){captureSegment(r,l,r.position,true);g=r.input.charCodeAt(++r.position);if(is_EOL(g)){skipSeparationSpace(r,false,s)}else if(g<256&&O[g]){r.result+=N[g];r.position++}else if((y=escapedHexLen(g))>0){d=y;m=0;for(;d>0;d--){g=r.input.charCodeAt(++r.position);if((y=fromHexCode(g))>=0){m=(m<<4)+y}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(m);r.position++}else{throwError(r,"unknown escape sequence")}l=p=r.position}else if(is_EOL(g)){captureSegment(r,l,p,true);writeFoldedLines(r,skipSeparationSpace(r,false,s));l=p=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;p=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,s){var l=true,p,d=r.tag,m,y=r.anchor,g,T,E,S,_,x={},w,v,A,P;P=r.input.charCodeAt(r.position);if(P===91){T=93;_=false;m=[]}else if(P===123){T=125;_=true;m={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=m}P=r.input.charCodeAt(++r.position);while(P!==0){skipSeparationSpace(r,true,s);P=r.input.charCodeAt(r.position);if(P===T){r.position++;r.tag=d;r.anchor=y;r.kind=_?"mapping":"sequence";r.result=m;return true}else if(!l){throwError(r,"missed comma between flow collection entries")}v=w=A=null;E=S=false;if(P===63){g=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(g)){E=S=true;r.position++;skipSeparationSpace(r,true,s)}}p=r.line;composeNode(r,s,b,false,true);v=r.tag;w=r.result;skipSeparationSpace(r,true,s);P=r.input.charCodeAt(r.position);if((S||r.line===p)&&P===58){E=true;P=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,s);composeNode(r,s,b,false,true);A=r.result}if(_){storeMappingPair(r,m,x,v,w,A)}else if(E){m.push(storeMappingPair(r,null,x,v,w,A))}else{m.push(w)}skipSeparationSpace(r,true,s);P=r.input.charCodeAt(r.position);if(P===44){l=true;P=r.input.charCodeAt(++r.position)}else{l=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,s){var l,d,m=x,y=false,g=false,T=s,b=0,E=false,S,_;_=r.input.charCodeAt(r.position);if(_===124){d=false}else if(_===62){d=true}else{return false}r.kind="scalar";r.result="";while(_!==0){_=r.input.charCodeAt(++r.position);if(_===43||_===45){if(x===m){m=_===43?v:w}else{throwError(r,"repeat of a chomping mode identifier")}}else if((S=fromDecimalCode(_))>=0){if(S===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!g){T=s+S-1;g=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(_)){do{_=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(_));if(_===35){do{_=r.input.charCodeAt(++r.position)}while(!is_EOL(_)&&_!==0)}}while(_!==0){readLineBreak(r);r.lineIndent=0;_=r.input.charCodeAt(r.position);while((!g||r.lineIndent<T)&&_===32){r.lineIndent++;_=r.input.charCodeAt(++r.position)}if(!g&&r.lineIndent>T){T=r.lineIndent}if(is_EOL(_)){b++;continue}if(r.lineIndent<T){if(m===v){r.result+=p.repeat("\n",y?1+b:b)}else if(m===x){if(y){r.result+="\n"}}break}if(d){if(is_WHITE_SPACE(_)){E=true;r.result+=p.repeat("\n",y?1+b:b)}else if(E){E=false;r.result+=p.repeat("\n",b+1)}else if(b===0){if(y){r.result+=" "}}else{r.result+=p.repeat("\n",b)}}else{r.result+=p.repeat("\n",y?1+b:b)}y=true;g=true;b=0;l=r.position;while(!is_EOL(_)&&_!==0){_=r.input.charCodeAt(++r.position)}captureSegment(r,l,r.position,false)}return true}function readBlockSequence(r,s){var l,p=r.tag,d=r.anchor,m=[],y,g=false,T;if(r.anchor!==null){r.anchorMap[r.anchor]=m}T=r.input.charCodeAt(r.position);while(T!==0){if(T!==45){break}y=r.input.charCodeAt(r.position+1);if(!is_WS_OR_EOL(y)){break}g=true;r.position++;if(skipSeparationSpace(r,true,-1)){if(r.lineIndent<=s){m.push(null);T=r.input.charCodeAt(r.position);continue}}l=r.line;composeNode(r,s,S,false,true);m.push(r.result);skipSeparationSpace(r,true,-1);T=r.input.charCodeAt(r.position);if((r.line===l||r.lineIndent>s)&&T!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndent<s){break}}if(g){r.tag=p;r.anchor=d;r.kind="sequence";r.result=m;return true}return false}function readBlockMapping(r,s,l){var p,d,m,y,g=r.tag,T=r.anchor,b={},S={},x=null,w=null,v=null,A=false,P=false,k;if(r.anchor!==null){r.anchorMap[r.anchor]=b}k=r.input.charCodeAt(r.position);while(k!==0){p=r.input.charCodeAt(r.position+1);m=r.line;y=r.position;if((k===63||k===58)&&is_WS_OR_EOL(p)){if(k===63){if(A){storeMappingPair(r,b,S,x,w,null);x=w=v=null}P=true;A=true;d=true}else if(A){A=false;d=true}else{throwError(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}r.position+=1;k=p}else if(composeNode(r,l,E,false,true)){if(r.line===m){k=r.input.charCodeAt(r.position);while(is_WHITE_SPACE(k)){k=r.input.charCodeAt(++r.position)}if(k===58){k=r.input.charCodeAt(++r.position);if(!is_WS_OR_EOL(k)){throwError(r,"a whitespace character is expected after the key-value separator within a block mapping")}if(A){storeMappingPair(r,b,S,x,w,null);x=w=v=null}P=true;A=false;d=false;x=r.tag;w=r.result}else if(P){throwError(r,"can not read an implicit mapping pair; a colon is missed")}else{r.tag=g;r.anchor=T;return true}}else if(P){throwError(r,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{r.tag=g;r.anchor=T;return true}}else{break}if(r.line===m||r.lineIndent>s){if(composeNode(r,s,_,true,d)){if(A){w=r.result}else{v=r.result}}if(!A){storeMappingPair(r,b,S,x,w,v,m,y);x=w=v=null}skipSeparationSpace(r,true,-1);k=r.input.charCodeAt(r.position)}if(r.lineIndent>s&&k!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndent<s){break}}if(A){storeMappingPair(r,b,S,x,w,null)}if(P){r.tag=g;r.anchor=T;r.kind="mapping";r.result=b}return P}function readTagProperty(r){var s,l=false,p=false,d,m,y;y=r.input.charCodeAt(r.position);if(y!==33)return false;if(r.tag!==null){throwError(r,"duplication of a tag property")}y=r.input.charCodeAt(++r.position);if(y===60){l=true;y=r.input.charCodeAt(++r.position)}else if(y===33){p=true;d="!!";y=r.input.charCodeAt(++r.position)}else{d="!"}s=r.position;if(l){do{y=r.input.charCodeAt(++r.position)}while(y!==0&&y!==62);if(r.position<r.length){m=r.input.slice(s,r.position);y=r.input.charCodeAt(++r.position)}else{throwError(r,"unexpected end of the stream within a verbatim tag")}}else{while(y!==0&&!is_WS_OR_EOL(y)){if(y===33){if(!p){d=r.input.slice(s-1,r.position+1);if(!C.test(d)){throwError(r,"named tag handle cannot contain such characters")}p=true;s=r.position+1}else{throwError(r,"tag suffix cannot contain exclamation marks")}}y=r.input.charCodeAt(++r.position)}m=r.input.slice(s,r.position);if(k.test(m)){throwError(r,"tag suffix cannot contain flow indicator characters")}}if(m&&!I.test(m)){throwError(r,"tag name cannot contain such characters: "+m)}if(l){r.tag=m}else if(T.call(r.tagMap,d)){r.tag=r.tagMap[d]+m}else if(d==="!"){r.tag="!"+m}else if(d==="!!"){r.tag="tag:yaml.org,2002:"+m}else{throwError(r,'undeclared tag handle "'+d+'"')}return true}function readAnchorProperty(r){var s,l;l=r.input.charCodeAt(r.position);if(l!==38)return false;if(r.anchor!==null){throwError(r,"duplication of an anchor property")}l=r.input.charCodeAt(++r.position);s=r.position;while(l!==0&&!is_WS_OR_EOL(l)&&!is_FLOW_INDICATOR(l)){l=r.input.charCodeAt(++r.position)}if(r.position===s){throwError(r,"name of an anchor node must contain at least one character")}r.anchor=r.input.slice(s,r.position);return true}function readAlias(r){var s,l,p;p=r.input.charCodeAt(r.position);if(p!==42)return false;p=r.input.charCodeAt(++r.position);s=r.position;while(p!==0&&!is_WS_OR_EOL(p)&&!is_FLOW_INDICATOR(p)){p=r.input.charCodeAt(++r.position)}if(r.position===s){throwError(r,"name of an alias node must contain at least one character")}l=r.input.slice(s,r.position);if(!T.call(r.anchorMap,l)){throwError(r,'unidentified alias "'+l+'"')}r.result=r.anchorMap[l];skipSeparationSpace(r,true,-1);return true}function composeNode(r,s,l,p,d){var m,y,g,x=1,w=false,v=false,A,P,k,C,I;if(r.listener!==null){r.listener("open",r)}r.tag=null;r.anchor=null;r.kind=null;r.result=null;m=y=g=_===l||S===l;if(p){if(skipSeparationSpace(r,true,-1)){w=true;if(r.lineIndent>s){x=1}else if(r.lineIndent===s){x=0}else if(r.lineIndent<s){x=-1}}}if(x===1){while(readTagProperty(r)||readAnchorProperty(r)){if(skipSeparationSpace(r,true,-1)){w=true;g=m;if(r.lineIndent>s){x=1}else if(r.lineIndent===s){x=0}else if(r.lineIndent<s){x=-1}}else{g=false}}}if(g){g=w||d}if(x===1||_===l){if(b===l||E===l){C=s}else{C=s+1}I=r.position-r.lineStart;if(x===1){if(g&&(readBlockSequence(r,I)||readBlockMapping(r,I,C))||readFlowCollection(r,C)){v=true}else{if(y&&readBlockScalar(r,C)||readSingleQuotedScalar(r,C)||readDoubleQuotedScalar(r,C)){v=true}else if(readAlias(r)){v=true;if(r.tag!==null||r.anchor!==null){throwError(r,"alias node should not have any properties")}}else if(readPlainScalar(r,C,b===l)){v=true;if(r.tag===null){r.tag="?"}}if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else if(x===0){v=g&&readBlockSequence(r,I)}}if(r.tag!==null&&r.tag!=="!"){if(r.tag==="?"){if(r.result!==null&&r.kind!=="scalar"){throwError(r,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+r.kind+'"')}for(A=0,P=r.implicitTypes.length;A<P;A+=1){k=r.implicitTypes[A];if(k.resolve(r.result)){r.result=k.construct(r.result);r.tag=k.tag;if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}break}}}else if(T.call(r.typeMap[r.kind||"fallback"],r.tag)){k=r.typeMap[r.kind||"fallback"][r.tag];if(r.result!==null&&k.kind!==r.kind){throwError(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+k.kind+'", not "'+r.kind+'"')}if(!k.resolve(r.result)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=k.construct(r.result);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else{throwError(r,"unknown tag !<"+r.tag+">")}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||v}function readDocument(r){var s=r.position,l,p,d,m=false,y;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap={};r.anchorMap={};while((y=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);y=r.input.charCodeAt(r.position);if(r.lineIndent>0||y!==37){break}m=true;y=r.input.charCodeAt(++r.position);l=r.position;while(y!==0&&!is_WS_OR_EOL(y)){y=r.input.charCodeAt(++r.position)}p=r.input.slice(l,r.position);d=[];if(p.length<1){throwError(r,"directive name must not be less than one character in length")}while(y!==0){while(is_WHITE_SPACE(y)){y=r.input.charCodeAt(++r.position)}if(y===35){do{y=r.input.charCodeAt(++r.position)}while(y!==0&&!is_EOL(y));break}if(is_EOL(y))break;l=r.position;while(y!==0&&!is_WS_OR_EOL(y)){y=r.input.charCodeAt(++r.position)}d.push(r.input.slice(l,r.position))}if(y!==0)readLineBreak(r);if(T.call(D,p)){D[p](r,p,d)}else{throwWarning(r,'unknown document directive "'+p+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(m){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,_,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&P.test(r.input.slice(s,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position<r.length-1){throwError(r,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(r,s){r=String(r);s=s||{};if(r.length!==0){if(r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13){r+="\n"}if(r.charCodeAt(0)===65279){r=r.slice(1)}}var l=new State(r,s);var p=r.indexOf("\0");if(p!==-1){l.position=p;throwError(l,"null byte is not allowed in input")}l.input+="\0";while(l.input.charCodeAt(l.position)===32){l.lineIndent+=1;l.position+=1}while(l.position<l.length-1){readDocument(l)}return l.documents}function loadAll(r,s,l){if(s!==null&&typeof s==="object"&&typeof l==="undefined"){l=s;s=null}var p=loadDocuments(r,l);if(typeof s!=="function"){return p}for(var d=0,m=p.length;d<m;d+=1){s(p[d])}}function load(r,s){var l=loadDocuments(r,s);if(l.length===0){return undefined}else if(l.length===1){return l[0]}throw new d("expected a single document in the stream, but found more")}function safeLoadAll(r,s,l){if(typeof s==="object"&&s!==null&&typeof l==="undefined"){l=s;s=null}return loadAll(r,s,p.extend({schema:y},l))}function safeLoad(r,s){return load(r,p.extend({schema:y},s))}r.exports.loadAll=loadAll;r.exports.load=load;r.exports.safeLoadAll=safeLoadAll;r.exports.safeLoad=safeLoad},1458:(r,s,l)=>{var p=l(3866);function Mark(r,s,l,p,d){this.name=r;this.buffer=s;this.position=l;this.line=p;this.column=d}Mark.prototype.getSnippet=function getSnippet(r,s){var l,d,m,y,g;if(!this.buffer)return null;r=r||4;s=s||75;l="";d=this.position;while(d>0&&"\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(d-1))===-1){d-=1;if(this.position-d>s/2-1){l=" ... ";d+=5;break}}m="";y=this.position;while(y<this.buffer.length&&"\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(y))===-1){y+=1;if(y-this.position>s/2-1){m=" ... ";y-=5;break}}g=this.buffer.slice(d,y);return p.repeat(" ",r)+l+g+m+"\n"+p.repeat(" ",r+this.position-d+l.length)+"^"};Mark.prototype.toString=function toString(r){var s,l="";if(this.name){l+='in "'+this.name+'" '}l+="at line "+(this.line+1)+", column "+(this.column+1);if(!r){s=this.getSnippet();if(s){l+=":\n"+s}}return l};r.exports=Mark},3696:(r,s,l)=>{var p=l(3866);var d=l(1386);var m=l(5543);function compileList(r,s,l){var p=[];r.include.forEach((function(r){l=compileList(r,s,l)}));r[s].forEach((function(r){l.forEach((function(s,l){if(s.tag===r.tag&&s.kind===r.kind){p.push(l)}}));l.push(r)}));return l.filter((function(r,s){return p.indexOf(s)===-1}))}function compileMap(){var r={scalar:{},sequence:{},mapping:{},fallback:{}},s,l;function collectType(s){r[s.kind][s.tag]=r["fallback"][s.tag]=s}for(s=0,l=arguments.length;s<l;s+=1){arguments[s].forEach(collectType)}return r}function Schema(r){this.include=r.include||[];this.implicit=r.implicit||[];this.explicit=r.explicit||[];this.implicit.forEach((function(r){if(r.loadKind&&r.loadKind!=="scalar"){throw new d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}}));this.compiledImplicit=compileList(this,"implicit",[]);this.compiledExplicit=compileList(this,"explicit",[]);this.compiledTypeMap=compileMap(this.compiledImplicit,this.compiledExplicit)}Schema.DEFAULT=null;Schema.create=function createSchema(){var r,s;switch(arguments.length){case 1:r=Schema.DEFAULT;s=arguments[0];break;case 2:r=arguments[0];s=arguments[1];break;default:throw new d("Wrong number of arguments for Schema.create function")}r=p.toArray(r);s=p.toArray(s);if(!r.every((function(r){return r instanceof Schema}))){throw new d("Specified list of super schemas (or a single Schema object) contains a non-Schema object.")}if(!s.every((function(r){return r instanceof m}))){throw new d("Specified list of YAML types (or a single Type object) contains a non-Type object.")}return new Schema({include:r,explicit:s})};r.exports=Schema},2864:(r,s,l)=>{var p=l(3696);r.exports=new p({include:[l(8057)]})},2944:(r,s,l)=>{var p=l(3696);r.exports=p.DEFAULT=new p({include:[l(6588)],explicit:[l(4710),l(4661),l(5420)]})},6588:(r,s,l)=>{var p=l(3696);r.exports=new p({include:[l(2864)],implicit:[l(6888),l(6700)],explicit:[l(8859),l(7111),l(3289),l(3856)]})},2590:(r,s,l)=>{var p=l(3696);r.exports=new p({explicit:[l(1983),l(1795),l(4810)]})},8057:(r,s,l)=>{var p=l(3696);r.exports=new p({include:[l(2590)],implicit:[l(5899),l(6134),l(2769),l(1550)]})},5543:(r,s,l)=>{var p=l(1386);var d=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var m=["scalar","sequence","mapping"];function compileStyleAliases(r){var s={};if(r!==null){Object.keys(r).forEach((function(l){r[l].forEach((function(r){s[String(r)]=l}))}))}return s}function Type(r,s){s=s||{};Object.keys(s).forEach((function(s){if(d.indexOf(s)===-1){throw new p('Unknown option "'+s+'" is met in definition of "'+r+'" YAML type.')}}));this.tag=r;this.kind=s["kind"]||null;this.resolve=s["resolve"]||function(){return true};this.construct=s["construct"]||function(r){return r};this.instanceOf=s["instanceOf"]||null;this.predicate=s["predicate"]||null;this.represent=s["represent"]||null;this.defaultStyle=s["defaultStyle"]||null;this.styleAliases=compileStyleAliases(s["styleAliases"]||null);if(m.indexOf(this.kind)===-1){throw new p('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}r.exports=Type},8859:(r,s,l)=>{var p;try{var d=__WEBPACK_EXTERNAL_createRequire(import.meta.url);p=d("buffer").Buffer}catch(r){}var m=l(5543);var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(r){if(r===null)return false;var s,l,p=0,d=r.length,m=y;for(l=0;l<d;l++){s=m.indexOf(r.charAt(l));if(s>64)continue;if(s<0)return false;p+=6}return p%8===0}function constructYamlBinary(r){var s,l,d=r.replace(/[\r\n=]/g,""),m=d.length,g=y,T=0,b=[];for(s=0;s<m;s++){if(s%4===0&&s){b.push(T>>16&255);b.push(T>>8&255);b.push(T&255)}T=T<<6|g.indexOf(d.charAt(s))}l=m%4*6;if(l===0){b.push(T>>16&255);b.push(T>>8&255);b.push(T&255)}else if(l===18){b.push(T>>10&255);b.push(T>>2&255)}else if(l===12){b.push(T>>4&255)}if(p){return p.from?p.from(b):new p(b)}return b}function representYamlBinary(r){var s="",l=0,p,d,m=r.length,g=y;for(p=0;p<m;p++){if(p%3===0&&p){s+=g[l>>18&63];s+=g[l>>12&63];s+=g[l>>6&63];s+=g[l&63]}l=(l<<8)+r[p]}d=m%3;if(d===0){s+=g[l>>18&63];s+=g[l>>12&63];s+=g[l>>6&63];s+=g[l&63]}else if(d===2){s+=g[l>>10&63];s+=g[l>>4&63];s+=g[l<<2&63];s+=g[64]}else if(d===1){s+=g[l>>2&63];s+=g[l<<4&63];s+=g[64];s+=g[64]}return s}function isBinary(r){return p&&p.isBuffer(r)}r.exports=new m("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},6134:(r,s,l)=>{var p=l(5543);function resolveYamlBoolean(r){if(r===null)return false;var s=r.length;return s===4&&(r==="true"||r==="True"||r==="TRUE")||s===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}r.exports=new p("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"})},1550:(r,s,l)=>{var p=l(3866);var d=l(5543);var m=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!m.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var s,l,p,d;s=r.replace(/_/g,"").toLowerCase();l=s[0]==="-"?-1:1;d=[];if("+-".indexOf(s[0])>=0){s=s.slice(1)}if(s===".inf"){return l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(s===".nan"){return NaN}else if(s.indexOf(":")>=0){s.split(":").forEach((function(r){d.unshift(parseFloat(r,10))}));s=0;p=1;d.forEach((function(r){s+=r*p;p*=60}));return l*s}return l*parseFloat(s,10)}var y=/^[-+]?[0-9]+e/;function representYamlFloat(r,s){var l;if(isNaN(r)){switch(s){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(s){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(s){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(p.isNegativeZero(r)){return"-0.0"}l=r.toString(10);return y.test(l)?l.replace("e",".e"):l}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||p.isNegativeZero(r))}r.exports=new d("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},2769:(r,s,l)=>{var p=l(3866);var d=l(5543);function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var s=r.length,l=0,p=false,d;if(!s)return false;d=r[l];if(d==="-"||d==="+"){d=r[++l]}if(d==="0"){if(l+1===s)return true;d=r[++l];if(d==="b"){l++;for(;l<s;l++){d=r[l];if(d==="_")continue;if(d!=="0"&&d!=="1")return false;p=true}return p&&d!=="_"}if(d==="x"){l++;for(;l<s;l++){d=r[l];if(d==="_")continue;if(!isHexCode(r.charCodeAt(l)))return false;p=true}return p&&d!=="_"}for(;l<s;l++){d=r[l];if(d==="_")continue;if(!isOctCode(r.charCodeAt(l)))return false;p=true}return p&&d!=="_"}if(d==="_")return false;for(;l<s;l++){d=r[l];if(d==="_")continue;if(d===":")break;if(!isDecCode(r.charCodeAt(l))){return false}p=true}if(!p||d==="_")return false;if(d!==":")return true;return/^(:[0-5]?[0-9])+$/.test(r.slice(l))}function constructYamlInteger(r){var s=r,l=1,p,d,m=[];if(s.indexOf("_")!==-1){s=s.replace(/_/g,"")}p=s[0];if(p==="-"||p==="+"){if(p==="-")l=-1;s=s.slice(1);p=s[0]}if(s==="0")return 0;if(p==="0"){if(s[1]==="b")return l*parseInt(s.slice(2),2);if(s[1]==="x")return l*parseInt(s,16);return l*parseInt(s,8)}if(s.indexOf(":")!==-1){s.split(":").forEach((function(r){m.unshift(parseInt(r,10))}));s=0;d=1;m.forEach((function(r){s+=r*d;d*=60}));return l*s}return l*parseInt(s,10)}function isInteger(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1===0&&!p.isNegativeZero(r))}r.exports=new d("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(r){return r>=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0"+r.toString(8):"-0"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},5420:(r,s,l)=>{var p;try{var d=__WEBPACK_EXTERNAL_createRequire(import.meta.url);p=d("esprima")}catch(r){if(typeof window!=="undefined")p=window.esprima}var m=l(5543);function resolveJavascriptFunction(r){if(r===null)return false;try{var s="("+r+")",l=p.parse(s,{range:true});if(l.type!=="Program"||l.body.length!==1||l.body[0].type!=="ExpressionStatement"||l.body[0].expression.type!=="ArrowFunctionExpression"&&l.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(r){return false}}function constructJavascriptFunction(r){var s="("+r+")",l=p.parse(s,{range:true}),d=[],m;if(l.type!=="Program"||l.body.length!==1||l.body[0].type!=="ExpressionStatement"||l.body[0].expression.type!=="ArrowFunctionExpression"&&l.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}l.body[0].expression.params.forEach((function(r){d.push(r.name)}));m=l.body[0].expression.body.range;if(l.body[0].expression.body.type==="BlockStatement"){return new Function(d,s.slice(m[0]+1,m[1]-1))}return new Function(d,"return "+s.slice(m[0],m[1]))}function representJavascriptFunction(r){return r.toString()}function isFunction(r){return Object.prototype.toString.call(r)==="[object Function]"}r.exports=new m("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},4661:(r,s,l)=>{var p=l(5543);function resolveJavascriptRegExp(r){if(r===null)return false;if(r.length===0)return false;var s=r,l=/\/([gim]*)$/.exec(r),p="";if(s[0]==="/"){if(l)p=l[1];if(p.length>3)return false;if(s[s.length-p.length-1]!=="/")return false}return true}function constructJavascriptRegExp(r){var s=r,l=/\/([gim]*)$/.exec(r),p="";if(s[0]==="/"){if(l)p=l[1];s=s.slice(1,s.length-p.length-1)}return new RegExp(s,p)}function representJavascriptRegExp(r){var s="/"+r.source+"/";if(r.global)s+="g";if(r.multiline)s+="m";if(r.ignoreCase)s+="i";return s}function isRegExp(r){return Object.prototype.toString.call(r)==="[object RegExp]"}r.exports=new p("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},4710:(r,s,l)=>{var p=l(5543);function resolveJavascriptUndefined(){return true}function constructJavascriptUndefined(){return undefined}function representJavascriptUndefined(){return""}function isUndefined(r){return typeof r==="undefined"}r.exports=new p("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:resolveJavascriptUndefined,construct:constructJavascriptUndefined,predicate:isUndefined,represent:representJavascriptUndefined})},4810:(r,s,l)=>{var p=l(5543);r.exports=new p("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})},6700:(r,s,l)=>{var p=l(5543);function resolveYamlMerge(r){return r==="<<"||r===null}r.exports=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},5899:(r,s,l)=>{var p=l(5543);function resolveYamlNull(r){if(r===null)return true;var s=r.length;return s===1&&r==="~"||s===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function isNull(r){return r===null}r.exports=new p("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},7111:(r,s,l)=>{var p=l(5543);var d=Object.prototype.hasOwnProperty;var m=Object.prototype.toString;function resolveYamlOmap(r){if(r===null)return true;var s=[],l,p,y,g,T,b=r;for(l=0,p=b.length;l<p;l+=1){y=b[l];T=false;if(m.call(y)!=="[object Object]")return false;for(g in y){if(d.call(y,g)){if(!T)T=true;else return false}}if(!T)return false;if(s.indexOf(g)===-1)s.push(g);else return false}return true}function constructYamlOmap(r){return r!==null?r:[]}r.exports=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},3289:(r,s,l)=>{var p=l(5543);var d=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var s,l,p,m,y,g=r;y=new Array(g.length);for(s=0,l=g.length;s<l;s+=1){p=g[s];if(d.call(p)!=="[object Object]")return false;m=Object.keys(p);if(m.length!==1)return false;y[s]=[m[0],p[m[0]]]}return true}function constructYamlPairs(r){if(r===null)return[];var s,l,p,d,m,y=r;m=new Array(y.length);for(s=0,l=y.length;s<l;s+=1){p=y[s];d=Object.keys(p);m[s]=[d[0],p[d[0]]]}return m}r.exports=new p("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},1795:(r,s,l)=>{var p=l(5543);r.exports=new p("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})},3856:(r,s,l)=>{var p=l(5543);var d=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var s,l=r;for(s in l){if(d.call(l,s)){if(l[s]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}r.exports=new p("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},1983:(r,s,l)=>{var p=l(5543);r.exports=new p("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})},6888:(r,s,l)=>{var p=l(5543);var d=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var m=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(d.exec(r)!==null)return true;if(m.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var s,l,p,y,g,T,b,E=0,S=null,_,x,w;s=d.exec(r);if(s===null)s=m.exec(r);if(s===null)throw new Error("Date resolve error");l=+s[1];p=+s[2]-1;y=+s[3];if(!s[4]){return new Date(Date.UTC(l,p,y))}g=+s[4];T=+s[5];b=+s[6];if(s[7]){E=s[7].slice(0,3);while(E.length<3){E+="0"}E=+E}if(s[9]){_=+s[10];x=+(s[11]||0);S=(_*60+x)*6e4;if(s[9]==="-")S=-S}w=new Date(Date.UTC(l,p,y,g,T,b,E));if(S)w.setTime(w.getTime()-S);return w}function representYamlTimestamp(r){return r.toISOString()}r.exports=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},5388:r=>{function isBuffer(r){return Buffer.isBuffer(r)||r instanceof Uint8Array}function isEncoding(r){return Buffer.isEncoding(r)}function alloc(r,s,l){return Buffer.alloc(r,s,l)}function allocUnsafe(r){return Buffer.allocUnsafe(r)}function allocUnsafeSlow(r){return Buffer.allocUnsafeSlow(r)}function byteLength(r,s){return Buffer.byteLength(r,s)}function compare(r,s){return Buffer.compare(r,s)}function concat(r,s){return Buffer.concat(r,s)}function copy(r,s,l,p,d){return toBuffer(r).copy(s,l,p,d)}function equals(r,s){return toBuffer(r).equals(s)}function fill(r,s,l,p,d){return toBuffer(r).fill(s,l,p,d)}function from(r,s,l){return Buffer.from(r,s,l)}function includes(r,s,l,p){return toBuffer(r).includes(s,l,p)}function indexOf(r,s,l,p){return toBuffer(r).indexOf(s,l,p)}function lastIndexOf(r,s,l,p){return toBuffer(r).lastIndexOf(s,l,p)}function swap16(r){return toBuffer(r).swap16()}function swap32(r){return toBuffer(r).swap32()}function swap64(r){return toBuffer(r).swap64()}function toBuffer(r){if(Buffer.isBuffer(r))return r;return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function toString(r,s,l,p){return toBuffer(r).toString(s,l,p)}function write(r,s,l,p,d){return toBuffer(r).write(s,l,p,d)}function readDoubleBE(r,s){return toBuffer(r).readDoubleBE(s)}function readDoubleLE(r,s){return toBuffer(r).readDoubleLE(s)}function readFloatBE(r,s){return toBuffer(r).readFloatBE(s)}function readFloatLE(r,s){return toBuffer(r).readFloatLE(s)}function readInt32BE(r,s){return toBuffer(r).readInt32BE(s)}function readInt32LE(r,s){return toBuffer(r).readInt32LE(s)}function readUInt32BE(r,s){return toBuffer(r).readUInt32BE(s)}function readUInt32LE(r,s){return toBuffer(r).readUInt32LE(s)}function writeDoubleBE(r,s,l){return toBuffer(r).writeDoubleBE(s,l)}function writeDoubleLE(r,s,l){return toBuffer(r).writeDoubleLE(s,l)}function writeFloatBE(r,s,l){return toBuffer(r).writeFloatBE(s,l)}function writeFloatLE(r,s,l){return toBuffer(r).writeFloatLE(s,l)}function writeInt32BE(r,s,l){return toBuffer(r).writeInt32BE(s,l)}function writeInt32LE(r,s,l){return toBuffer(r).writeInt32LE(s,l)}function writeUInt32BE(r,s,l){return toBuffer(r).writeUInt32BE(s,l)}function writeUInt32LE(r,s,l){return toBuffer(r).writeUInt32LE(s,l)}r.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,readDoubleBE:readDoubleBE,readDoubleLE:readDoubleLE,readFloatBE:readFloatBE,readFloatLE:readFloatLE,readInt32BE:readInt32BE,readInt32LE:readInt32LE,readUInt32BE:readUInt32BE,readUInt32LE:readUInt32LE,writeDoubleBE:writeDoubleBE,writeDoubleLE:writeDoubleLE,writeFloatBE:writeFloatBE,writeFloatLE:writeFloatLE,writeInt32BE:writeInt32BE,writeInt32LE:writeInt32LE,writeUInt32BE:writeUInt32BE,writeUInt32LE:writeUInt32LE}},9940:function(r){(function(s,l){true?r.exports=l():0})(this,(function(){"use strict";var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(r){return r&&r["default"]||r}var load=function(r,s,l={}){var p,d,m;for(p in s){m=s[p];l[p]=(d=r[p])!=null?d:m}return l};var overwrite=function(r,s,l={}){var p,d;for(p in r){d=r[p];if(s[p]!==void 0){l[p]=d}}return l};var s={load:load,overwrite:overwrite};var l;l=class DLList{constructor(r,s){this.incr=r;this.decr=s;this._first=null;this._last=null;this.length=0}push(r){var s;this.length++;if(typeof this.incr==="function"){this.incr()}s={value:r,prev:this._last,next:null};if(this._last!=null){this._last.next=s;this._last=s}else{this._first=this._last=s}return void 0}shift(){var r;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}r=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return r}first(){if(this._first!=null){return this._first.value}}getArray(){var r,s,l;r=this._first;l=[];while(r!=null){l.push((s=r,r=r.next,s.value))}return l}forEachShift(r){var s;s=this.shift();while(s!=null){r(s),s=this.shift()}return void 0}debug(){var r,s,l,p,d;r=this._first;d=[];while(r!=null){d.push((s=r,r=r.next,{value:s.value,prev:(l=s.prev)!=null?l.value:void 0,next:(p=s.next)!=null?p.value:void 0}))}return d}};var p=l;var d;d=class Events{constructor(r){this.instance=r;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(r,s)=>this._addListener(r,"many",s);this.instance.once=(r,s)=>this._addListener(r,"once",s);this.instance.removeAllListeners=(r=null)=>{if(r!=null){return delete this._events[r]}else{return this._events={}}}}_addListener(r,s,l){var p;if((p=this._events)[r]==null){p[r]=[]}this._events[r].push({cb:l,status:s});return this.instance}listenerCount(r){if(this._events[r]!=null){return this._events[r].length}else{return 0}}async trigger(r,...s){var l,p;try{if(r!=="debug"){this.trigger("debug",`Event triggered: ${r}`,s)}if(this._events[r]==null){return}this._events[r]=this._events[r].filter((function(r){return r.status!=="none"}));p=this._events[r].map((async r=>{var l,p;if(r.status==="none"){return}if(r.status==="once"){r.status="none"}try{p=typeof r.cb==="function"?r.cb(...s):void 0;if(typeof(p!=null?p.then:void 0)==="function"){return await p}else{return p}}catch(r){l=r;{this.trigger("error",l)}return null}}));return(await Promise.all(p)).find((function(r){return r!=null}))}catch(r){l=r;{this.trigger("error",l)}return null}}};var m=d;var y,g,T;y=p;g=m;T=class Queues{constructor(r){var s;this.Events=new g(this);this._length=0;this._lists=function(){var l,p,d;d=[];for(s=l=1,p=r;1<=p?l<=p:l>=p;s=1<=p?++l:--l){d.push(new y((()=>this.incr()),(()=>this.decr())))}return d}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(r){return this._lists[r.options.priority].push(r)}queued(r){if(r!=null){return this._lists[r].length}else{return this._length}}shiftAll(r){return this._lists.forEach((function(s){return s.forEachShift(r)}))}getFirst(r=this._lists){var s,l,p;for(s=0,l=r.length;s<l;s++){p=r[s];if(p.length>0){return p}}return[]}shiftLastFrom(r){return this.getFirst(this._lists.slice(r).reverse()).shift()}};var b=T;var E;E=class BottleneckError extends Error{};var S=E;var _,x,w,v,A;v=10;x=5;A=s;_=S;w=class Job{constructor(r,s,l,p,d,m,y,g){this.task=r;this.args=s;this.rejectOnDrop=d;this.Events=m;this._states=y;this.Promise=g;this.options=A.load(l,p);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===p.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((r,s)=>{this._resolve=r;this._reject=s}));this.retryCount=0}_sanitizePriority(r){var s;s=~~r!==r?x:r;if(s<0){return 0}else if(s>v-1){return v-1}else{return s}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:r,message:s="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(r!=null?r:new _(s))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(r){var s;s=this._states.jobStatus(this.options.id);if(!(s===r||r==="DONE"&&s===null)){throw new _(`Invalid job status ${s}, expected ${r}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(r,s){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:r,blocked:s})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(r,s,l,p){var d,m,y;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}m={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",m);try{y=await(r!=null?r.schedule(this.options,this.task,...this.args):this.task(...this.args));if(s()){this.doDone(m);await p(this.options,m);this._assertStatus("DONE");return this._resolve(y)}}catch(r){d=r;return this._onFailure(d,m,s,l,p)}}doExpire(r,s,l){var p,d;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");d={args:this.args,options:this.options,retryCount:this.retryCount};p=new _(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(p,d,r,s,l)}async _onFailure(r,s,l,p,d){var m,y;if(l()){m=await this.Events.trigger("failed",r,s);if(m!=null){y=~~m;this.Events.trigger("retry",`Retrying ${this.options.id} after ${y} ms`,s);this.retryCount++;return p(y)}else{this.doDone(s);await d(this.options,s);this._assertStatus("DONE");return this._reject(r)}}}doDone(r){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",r)}};var P=w;var k,C,I;I=s;k=S;C=class LocalDatastore{constructor(r,s,l){this.instance=r;this.storeOptions=s;this.clientId=this.instance._randomIndex();I.load(l,l,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var r;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(r=this.heartbeat=setInterval((()=>{var r,s,l,p,d;p=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&p>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=p;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&p>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:r,reservoirIncreaseMaximum:l,reservoir:d}=this.storeOptions);this._lastReservoirIncrease=p;s=l!=null?Math.min(r,l-d):r;if(s>0){this.storeOptions.reservoir+=s;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?r.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(r){await this.yieldLoop();return this.instance.Events.trigger("message",r.toString())}async __disconnect__(r){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(r=0){return new this.Promise((function(s,l){return setTimeout(s,r)}))}computePenalty(){var r;return(r=this.storeOptions.penalty)!=null?r:15*this.storeOptions.minTime||5e3}async __updateSettings__(r){await this.yieldLoop();I.overwrite(r,r,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(r){await this.yieldLoop();return this._nextRequest+this.timeout<r}computeCapacity(){var r,s;({maxConcurrent:r,reservoir:s}=this.storeOptions);if(r!=null&&s!=null){return Math.min(r-this._running,s)}else if(r!=null){return r-this._running}else if(s!=null){return s}else{return null}}conditionsCheck(r){var s;s=this.computeCapacity();return s==null||r<=s}async __incrementReservoir__(r){var s;await this.yieldLoop();s=this.storeOptions.reservoir+=r;this.instance._drainAll(this.computeCapacity());return s}async __currentReservoir__(){await this.yieldLoop();return this.storeOptions.reservoir}isBlocked(r){return this._unblockTime>=r}check(r,s){return this.conditionsCheck(r)&&this._nextRequest-s<=0}async __check__(r){var s;await this.yieldLoop();s=Date.now();return this.check(r,s)}async __register__(r,s,l){var p,d;await this.yieldLoop();p=Date.now();if(this.conditionsCheck(s)){this._running+=s;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=s}d=Math.max(this._nextRequest-p,0);this._nextRequest=p+d+this.storeOptions.minTime;return{success:true,wait:d,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(r,s){var l,p,d;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&s>this.storeOptions.maxConcurrent){throw new k(`Impossible to add a job having a weight of ${s} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}p=Date.now();d=this.storeOptions.highWater!=null&&r===this.storeOptions.highWater&&!this.check(s,p);l=this.strategyIsBlock()&&(d||this.isBlocked(p));if(l){this._unblockTime=p+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:d,blocked:l,strategy:this.storeOptions.strategy}}async __free__(r,s){await this.yieldLoop();this._running-=s;this._done+=s;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var O=C;var N,L;N=S;L=class States{constructor(r){this.status=r;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(r){var s,l;s=this._jobs[r];l=s+1;if(s!=null&&l<this.status.length){this.counts[s]--;this.counts[l]++;return this._jobs[r]++}else if(s!=null){this.counts[s]--;return delete this._jobs[r]}}start(r){var s;s=0;this._jobs[r]=s;return this.counts[s]++}remove(r){var s;s=this._jobs[r];if(s!=null){this.counts[s]--;delete this._jobs[r]}return s!=null}jobStatus(r){var s;return(s=this.status[this._jobs[r]])!=null?s:null}statusJobs(r){var s,l,p,d,m;if(r!=null){l=this.status.indexOf(r);if(l<0){throw new N(`status must be one of ${this.status.join(", ")}`)}p=this._jobs;d=[];for(s in p){m=p[s];if(m===l){d.push(s)}}return d}else{return Object.keys(this._jobs)}}statusCounts(){return this.counts.reduce(((r,s,l)=>{r[this.status[l]]=s;return r}),{})}};var D=L;var R,M;R=p;M=class Sync{constructor(r,s){this.schedule=this.schedule.bind(this);this.name=r;this.Promise=s;this._running=0;this._queue=new R}isEmpty(){return this._queue.length===0}async _tryToRun(){var r,s,l,p,d,m,y;if(this._running<1&&this._queue.length>0){this._running++;({task:y,args:r,resolve:d,reject:p}=this._queue.shift());s=await async function(){try{m=await y(...r);return function(){return d(m)}}catch(r){l=r;return function(){return p(l)}}}();this._running--;this._tryToRun();return s()}}schedule(r,...s){var l,p,d;d=p=null;l=new this.Promise((function(r,s){d=r;return p=s}));this._queue.push({task:r,args:s,resolve:d,reject:p});this._tryToRun();return l}};var F=M;var B="2.19.5";var j={version:B};var $=Object.freeze({version:B,default:j});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var U,G,q,W,H,V;V=s;U=m;W=require$$2;q=require$$3;H=require$$4;G=function(){class Group{constructor(r={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=r;V.load(this.limiterOptions,this.defaults,this);this.Events=new U(this);this.instances={};this.Bottleneck=pe;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new W(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new q(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(r=""){var s;return(s=this.instances[r])!=null?s:(()=>{var s;s=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",s,r);return s})()}async deleteKey(r=""){var s,l;l=this.instances[r];if(this.connection){s=await this.connection.__runCommand__(["del",...H.allKeys(`${this.id}-${r}`)])}if(l!=null){delete this.instances[r];await l.disconnect()}return l!=null||s>0}limiters(){var r,s,l,p;s=this.instances;l=[];for(r in s){p=s[r];l.push({key:r,limiter:p})}return l}keys(){return Object.keys(this.instances)}async clusterKeys(){var r,s,l,p,d,m,y,g,T;if(this.connection==null){return this.Promise.resolve(this.keys())}m=[];r=null;T=`b_${this.id}-`.length;s="_settings".length;while(r!==0){[g,l]=await this.connection.__runCommand__(["scan",r!=null?r:0,"match",`b_${this.id}-*_settings`,"count",1e4]);r=~~g;for(p=0,y=l.length;p<y;p++){d=l[p];m.push(d.slice(T,-s))}}return m}_startAutoCleanup(){var r;clearInterval(this.interval);return typeof(r=this.interval=setInterval((async()=>{var r,s,l,p,d,m;d=Date.now();l=this.instances;p=[];for(s in l){m=l[s];try{if(await m._store.__groupCheck__(d)){p.push(this.deleteKey(s))}else{p.push(void 0)}}catch(s){r=s;p.push(m.Events.trigger("error",r))}}return p}),this.timeout/2)).unref==="function"?r.unref():void 0}updateSettings(r={}){V.overwrite(r,this.defaults,this);V.overwrite(r,r,this.limiterOptions);if(r.timeout!=null){return this._startAutoCleanup()}}disconnect(r=true){var s;if(!this.sharedConnection){return(s=this.connection)!=null?s.disconnect(r):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(r);var K=G;var z,Y,J;J=s;Y=m;z=function(){class Batcher{constructor(r={}){this.options=r;J.load(this.options,this.defaults,this);this.Events=new Y(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((r,s)=>this._resolve=r))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(r){var s;this._arr.push(r);s=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return s}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(r);var X=z;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var Q=getCjsExportFromNamespace($);var Z,ee,te,re,se,ne,ie,ae,oe,le,ce,ue=[].splice;ne=10;ee=5;ce=s;ie=b;re=P;se=O;ae=require$$4$1;te=m;oe=D;le=F;Z=function(){class Bottleneck{constructor(r={},...s){var l,p;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(r,s);ce.load(r,this.instanceDefaults,this);this._queues=new ie(ne);this._scheduled={};this._states=new oe(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new te(this);this._submitLock=new le("submit",this.Promise);this._registerLock=new le("register",this.Promise);p=ce.load(r,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){l=ce.load(r,this.redisStoreDefaults,{});return new ae(this,p,l)}else if(this.datastore==="local"){l=ce.load(r,this.localStoreDefaults,{});return new se(this,p,l)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.ref==="function"?r.ref():void 0:void 0}));this._queues.on("zero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.unref==="function"?r.unref():void 0:void 0}))}_validateOptions(r,s){if(!(r!=null&&typeof r==="object"&&s.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=true){return this._store.__disconnect__(r)}chain(r){this._limiter=r;return this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){if(this._scheduled[r]!=null){clearTimeout(this._scheduled[r].expiration);delete this._scheduled[r];return true}else{return false}}async _free(r,s,l,p){var d,m;try{({running:m}=await this._store.__free__(r,l.weight));this.Events.trigger("debug",`Freed ${l.id}`,p);if(m===0&&this.empty()){return this.Events.trigger("idle")}}catch(r){d=r;return this.Events.trigger("error",d)}}_run(r,s,l){var p,d,m;s.doRun();p=this._clearGlobalState.bind(this,r);m=this._run.bind(this,r,s);d=this._free.bind(this,r,s);return this._scheduled[r]={timeout:setTimeout((()=>s.doExecute(this._limiter,p,m,d)),l),expiration:s.options.expiration!=null?setTimeout((function(){return s.doExpire(p,m,d)}),l+s.options.expiration):void 0,job:s}}_drainOne(r){return this._registerLock.schedule((()=>{var s,l,p,d,m;if(this.queued()===0){return this.Promise.resolve(null)}m=this._queues.getFirst();({options:d,args:s}=p=m.first());if(r!=null&&d.weight>r){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${d.id}`,{args:s,options:d});l=this._randomIndex();return this._store.__register__(l,d.weight,d.expiration).then((({success:r,wait:y,reservoir:g})=>{var T;this.Events.trigger("debug",`Drained ${d.id}`,{success:r,args:s,options:d});if(r){m.shift();T=this.empty();if(T){this.Events.trigger("empty")}if(g===0){this.Events.trigger("depleted",T)}this._run(l,p,y);return this.Promise.resolve(d.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(r,s=0){return this._drainOne(r).then((l=>{var p;if(l!=null){p=r!=null?r-l:r;return this._drainAll(p,s+l)}else{return this.Promise.resolve(s)}})).catch((r=>this.Events.trigger("error",r)))}_dropAllQueued(r){return this._queues.shiftAll((function(s){return s.doDrop({message:r})}))}stop(r={}){var s,l;r=ce.load(r,this.stopDefaults);l=r=>{var s;s=()=>{var s;s=this._states.counts;return s[0]+s[1]+s[2]+s[3]===r};return new this.Promise(((r,l)=>{if(s()){return r()}else{return this.on("done",(()=>{if(s()){this.removeAllListeners("done");return r()}}))}}))};s=r.dropWaitingJobs?(this._run=function(s,l){return l.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var s,p,d;p=this._scheduled;for(s in p){d=p[s];if(this.jobStatus(d.job.options.id)==="RUNNING"){clearTimeout(d.timeout);clearTimeout(d.expiration);d.job.doDrop({message:r.dropErrorMessage})}}this._dropAllQueued(r.dropErrorMessage);return l(0)}))))):this.schedule({priority:ne-1,weight:0},(()=>l(1)));this._receive=function(s){return s._reject(new Bottleneck.prototype.BottleneckError(r.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return s}async _addToQueue(r){var s,l,p,d,m,y,g;({args:s,options:d}=r);try{({reachedHWM:m,blocked:l,strategy:g}=await this._store.__submit__(this.queued(),d.weight))}catch(l){p=l;this.Events.trigger("debug",`Could not queue ${d.id}`,{args:s,options:d,error:p});r.doDrop({error:p});return false}if(l){r.doDrop();return true}else if(m){y=g===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(d.priority):g===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(d.priority+1):g===Bottleneck.prototype.strategy.OVERFLOW?r:void 0;if(y!=null){y.doDrop()}if(y==null||g===Bottleneck.prototype.strategy.OVERFLOW){if(y==null){r.doDrop()}return m}}r.doQueue(m,l);this._queues.push(r);await this._drainAll();return m}_receive(r){if(this._states.jobStatus(r.options.id)!=null){r._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`));return false}else{r.doReceive();return this._submitLock.schedule(this._addToQueue,r)}}submit(...r){var s,l,p,d,m,y,g;if(typeof r[0]==="function"){m=r,[l,...r]=m,[s]=ue.call(r,-1);d=ce.load({},this.jobDefaults)}else{y=r,[d,l,...r]=y,[s]=ue.call(r,-1);d=ce.load(d,this.jobDefaults)}g=(...r)=>new this.Promise((function(s,p){return l(...r,(function(...r){return(r[0]!=null?p:s)(r)}))}));p=new re(g,r,d,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);p.promise.then((function(r){return typeof s==="function"?s(...r):void 0})).catch((function(r){if(Array.isArray(r)){return typeof s==="function"?s(...r):void 0}else{return typeof s==="function"?s(r):void 0}}));return this._receive(p)}schedule(...r){var s,l,p;if(typeof r[0]==="function"){[p,...r]=r;l={}}else{[l,p,...r]=r}s=new re(p,r,l,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(s);return s.promise}wrap(r){var s,l;s=this.schedule.bind(this);l=function(...l){return s(r.bind(this),...l)};l.withOptions=function(l,...p){return s(l,r,...p)};return l}async updateSettings(r={}){await this._store.__updateSettings__(ce.overwrite(r,this.storeDefaults));ce.overwrite(r,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}Bottleneck.default=Bottleneck;Bottleneck.Events=te;Bottleneck.version=Bottleneck.prototype.version=Q.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=S;Bottleneck.Group=Bottleneck.prototype.Group=K;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=X;Bottleneck.prototype.jobDefaults={priority:ee,weight:1,expiration:null,id:"<no-id>"};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(r);var pe=Z;var de=pe;return de}))},7628:r=>{var s=Object.prototype.toString;var l=typeof Buffer!=="undefined"&&typeof Buffer.alloc==="function"&&typeof Buffer.allocUnsafe==="function"&&typeof Buffer.from==="function";function isArrayBuffer(r){return s.call(r).slice(8,-1)==="ArrayBuffer"}function fromArrayBuffer(r,s,p){s>>>=0;var d=r.byteLength-s;if(d<0){throw new RangeError("'offset' is out of bounds")}if(p===undefined){p=d}else{p>>>=0;if(p>d){throw new RangeError("'length' is out of bounds")}}return l?Buffer.from(r.slice(s,s+p)):new Buffer(new Uint8Array(r.slice(s,s+p)))}function fromString(r,s){if(typeof s!=="string"||s===""){s="utf8"}if(!Buffer.isEncoding(s)){throw new TypeError('"encoding" must be a valid string encoding')}return l?Buffer.from(r,s):new Buffer(r,s)}function bufferFrom(r,s,p){if(typeof r==="number"){throw new TypeError('"value" argument must not be a number')}if(isArrayBuffer(r)){return fromArrayBuffer(r,s,p)}if(typeof r==="string"){return fromString(r,s)}return l?Buffer.from(r):new Buffer(r)}r.exports=bufferFrom},1896:(r,s,l)=>{function isArray(r){if(Array.isArray){return Array.isArray(r)}return objectToString(r)==="[object Array]"}s.isArray=isArray;function isBoolean(r){return typeof r==="boolean"}s.isBoolean=isBoolean;function isNull(r){return r===null}s.isNull=isNull;function isNullOrUndefined(r){return r==null}s.isNullOrUndefined=isNullOrUndefined;function isNumber(r){return typeof r==="number"}s.isNumber=isNumber;function isString(r){return typeof r==="string"}s.isString=isString;function isSymbol(r){return typeof r==="symbol"}s.isSymbol=isSymbol;function isUndefined(r){return r===void 0}s.isUndefined=isUndefined;function isRegExp(r){return objectToString(r)==="[object RegExp]"}s.isRegExp=isRegExp;function isObject(r){return typeof r==="object"&&r!==null}s.isObject=isObject;function isDate(r){return objectToString(r)==="[object Date]"}s.isDate=isDate;function isError(r){return objectToString(r)==="[object Error]"||r instanceof Error}s.isError=isError;function isFunction(r){return typeof r==="function"}s.isFunction=isFunction;function isPrimitive(r){return r===null||typeof r==="boolean"||typeof r==="number"||typeof r==="string"||typeof r==="symbol"||typeof r==="undefined"}s.isPrimitive=isPrimitive;s.isBuffer=l(181).Buffer.isBuffer;function objectToString(r){return Object.prototype.toString.call(r)}},8547:(r,s,l)=>{s.formatArgs=formatArgs;s.save=save;s.load=load;s.useColors=useColors;s.storage=localstorage();s.destroy=(()=>{let r=false;return()=>{if(!r){r=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();s.colors=["#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"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let r;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(s){s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff);if(!this.useColors){return}const l="color: "+this.color;s.splice(1,0,l,"color: inherit");let p=0;let d=0;s[0].replace(/%[a-zA-Z%]/g,(r=>{if(r==="%%"){return}p++;if(r==="%c"){d=p}}));s.splice(d,0,l)}s.log=console.debug||console.log||(()=>{});function save(r){try{if(r){s.storage.setItem("debug",r)}else{s.storage.removeItem("debug")}}catch(r){}}function load(){let r;try{r=s.storage.getItem("debug")||s.storage.getItem("DEBUG")}catch(r){}if(!r&&typeof process!=="undefined"&&"env"in process){r=process.env.DEBUG}return r}function localstorage(){try{return localStorage}catch(r){}}r.exports=l(3710)(s);const{formatters:p}=r.exports;p.j=function(r){try{return JSON.stringify(r)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}},3710:(r,s,l)=>{function setup(r){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=l(975);createDebug.destroy=destroy;Object.keys(r).forEach((s=>{createDebug[s]=r[s]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(r){let s=0;for(let l=0;l<r.length;l++){s=(s<<5)-s+r.charCodeAt(l);s|=0}return createDebug.colors[Math.abs(s)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(r){let s;let l=null;let p;let d;function debug(...r){if(!debug.enabled){return}const l=debug;const p=Number(new Date);const d=p-(s||p);l.diff=d;l.prev=s;l.curr=p;s=p;r[0]=createDebug.coerce(r[0]);if(typeof r[0]!=="string"){r.unshift("%O")}let m=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((s,p)=>{if(s==="%%"){return"%"}m++;const d=createDebug.formatters[p];if(typeof d==="function"){const p=r[m];s=d.call(l,p);r.splice(m,1);m--}return s}));createDebug.formatArgs.call(l,r);const y=l.log||createDebug.log;y.apply(l,r)}debug.namespace=r;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(r);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(l!==null){return l}if(p!==createDebug.namespaces){p=createDebug.namespaces;d=createDebug.enabled(r)}return d},set:r=>{l=r}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(r,s){const l=createDebug(this.namespace+(typeof s==="undefined"?":":s)+r);l.log=this.log;return l}function enable(r){createDebug.save(r);createDebug.namespaces=r;createDebug.names=[];createDebug.skips=[];const s=(typeof r==="string"?r:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const r of s){if(r[0]==="-"){createDebug.skips.push(r.slice(1))}else{createDebug.names.push(r)}}}function matchesTemplate(r,s){let l=0;let p=0;let d=-1;let m=0;while(l<r.length){if(p<s.length&&(s[p]===r[l]||s[p]==="*")){if(s[p]==="*"){d=p;m=l;p++}else{l++;p++}}else if(d!==-1){p=d+1;m++;l=m}else{return false}}while(p<s.length&&s[p]==="*"){p++}return p===s.length}function disable(){const r=[...createDebug.names,...createDebug.skips.map((r=>"-"+r))].join(",");createDebug.enable("");return r}function enabled(r){for(const s of createDebug.skips){if(matchesTemplate(r,s)){return false}}for(const s of createDebug.names){if(matchesTemplate(r,s)){return true}}return false}function coerce(r){if(r instanceof Error){return r.stack||r.message}return r}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}r.exports=setup},8143:(r,s,l)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){r.exports=l(8547)}else{r.exports=l(9855)}},9855:(r,s,l)=>{const p=l(2018);const d=l(9023);s.init=init;s.log=log;s.formatArgs=formatArgs;s.save=save;s.load=load;s.useColors=useColors;s.destroy=d.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");s.colors=[6,2,3,4,5,1];try{const r=l(2131);if(r&&(r.stderr||r).level>=2){s.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(r){}s.inspectOpts=Object.keys(process.env).filter((r=>/^debug_/i.test(r))).reduce(((r,s)=>{const l=s.substring(6).toLowerCase().replace(/_([a-z])/g,((r,s)=>s.toUpperCase()));let p=process.env[s];if(/^(yes|on|true|enabled)$/i.test(p)){p=true}else if(/^(no|off|false|disabled)$/i.test(p)){p=false}else if(p==="null"){p=null}else{p=Number(p)}r[l]=p;return r}),{});function useColors(){return"colors"in s.inspectOpts?Boolean(s.inspectOpts.colors):p.isatty(process.stderr.fd)}function formatArgs(s){const{namespace:l,useColors:p}=this;if(p){const p=this.color;const d="[3"+(p<8?p:"8;5;"+p);const m=` ${d};1m${l} [0m`;s[0]=m+s[0].split("\n").join("\n"+m);s.push(d+"m+"+r.exports.humanize(this.diff)+"[0m")}else{s[0]=getDate()+l+" "+s[0]}}function getDate(){if(s.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...r){return process.stderr.write(d.formatWithOptions(s.inspectOpts,...r)+"\n")}function save(r){if(r){process.env.DEBUG=r}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(r){r.inspectOpts={};const l=Object.keys(s.inspectOpts);for(let p=0;p<l.length;p++){r.inspectOpts[l[p]]=s.inspectOpts[l[p]]}}r.exports=l(3710)(s);const{formatters:m}=r.exports;m.o=function(r){this.inspectOpts.colors=this.useColors;return d.inspect(r,this.inspectOpts).split("\n").map((r=>r.trim())).join(" ")};m.O=function(r){this.inspectOpts.colors=this.useColors;return d.inspect(r,this.inspectOpts)}},4880:(r,s,l)=>{const{Transform:p,PassThrough:d}=l(2203);const m=l(3106);const y=l(696);r.exports=r=>{const s=(r.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s)){return r}const l=s==="br";if(l&&typeof m.createBrotliDecompress!=="function"){r.destroy(new Error("Brotli is not supported on Node.js < 12"));return r}let g=true;const T=new p({transform(r,s,l){g=false;l(null,r)},flush(r){r()}});const b=new d({autoDestroy:false,destroy(s,l){r.destroy();l(s)}});const E=l?m.createBrotliDecompress():m.createUnzip();E.once("error",(s=>{if(g&&!r.readable){b.end();return}b.destroy(s)}));y(r,b);r.pipe(T).pipe(E).pipe(b);return b}},1077:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});function isTLSSocket(r){return r.encrypted}const deferToConnect=(r,s)=>{let l;if(typeof s==="function"){const r=s;l={connect:r}}else{l=s}const p=typeof l.connect==="function";const d=typeof l.secureConnect==="function";const m=typeof l.close==="function";const onConnect=()=>{if(p){l.connect()}if(isTLSSocket(r)&&d){if(r.authorized){l.secureConnect()}else if(!r.authorizationError){r.once("secureConnect",l.secureConnect)}}if(m){r.once("close",l.close)}};if(r.writable&&!r.connecting){onConnect()}else if(r.connecting){r.once("connect",onConnect)}else if(r.destroyed&&m){l.close(r._hadError)}};s["default"]=deferToConnect;r.exports=deferToConnect;r.exports["default"]=deferToConnect},9041:(r,s,l)=>{var p=l(7324);var d=l(333);var m=l(5099);var y=l(2086);var g=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]);var onuncork=function(r,s){if(r._corked)r.once("uncork",s);else s()};var autoDestroy=function(r,s){if(r._autoDestroy)r.destroy(s)};var destroyer=function(r,s){return function(l){if(l)autoDestroy(r,l.message==="premature close"?null:l);else if(s&&!r._ended)r.end()}};var end=function(r,s){if(!r)return s();if(r._writableState&&r._writableState.finished)return s();if(r._writableState)return r.end(s);r.end();s()};var toStreams2=function(r){return new p.Readable({objectMode:true,highWaterMark:16}).wrap(r)};var Duplexify=function(r,s,l){if(!(this instanceof Duplexify))return new Duplexify(r,s,l);p.Duplex.call(this,l);this._writable=null;this._readable=null;this._readable2=null;this._autoDestroy=!l||l.autoDestroy!==false;this._forwardDestroy=!l||l.destroy!==false;this._forwardEnd=!l||l.end!==false;this._corked=1;this._ondrain=null;this._drained=false;this._forwarding=false;this._unwrite=null;this._unread=null;this._ended=false;this.destroyed=false;if(r)this.setWritable(r);if(s)this.setReadable(s)};m(Duplexify,p.Duplex);Duplexify.obj=function(r,s,l){if(!l)l={};l.objectMode=true;l.highWaterMark=16;return new Duplexify(r,s,l)};Duplexify.prototype.cork=function(){if(++this._corked===1)this.emit("cork")};Duplexify.prototype.uncork=function(){if(this._corked&&--this._corked===0)this.emit("uncork")};Duplexify.prototype.setWritable=function(r){if(this._unwrite)this._unwrite();if(this.destroyed){if(r&&r.destroy)r.destroy();return}if(r===null||r===false){this.end();return}var s=this;var l=d(r,{writable:true,readable:false},destroyer(this,this._forwardEnd));var ondrain=function(){var r=s._ondrain;s._ondrain=null;if(r)r()};var clear=function(){s._writable.removeListener("drain",ondrain);l()};if(this._unwrite)process.nextTick(ondrain);this._writable=r;this._writable.on("drain",ondrain);this._unwrite=clear;this.uncork()};Duplexify.prototype.setReadable=function(r){if(this._unread)this._unread();if(this.destroyed){if(r&&r.destroy)r.destroy();return}if(r===null||r===false){this.push(null);this.resume();return}var s=this;var l=d(r,{writable:false,readable:true},destroyer(this));var onreadable=function(){s._forward()};var onend=function(){s.push(null)};var clear=function(){s._readable2.removeListener("readable",onreadable);s._readable2.removeListener("end",onend);l()};this._drained=true;this._readable=r;this._readable2=r._readableState?r:toStreams2(r);this._readable2.on("readable",onreadable);this._readable2.on("end",onend);this._unread=clear;this._forward()};Duplexify.prototype._read=function(){this._drained=true;this._forward()};Duplexify.prototype._forward=function(){if(this._forwarding||!this._readable2||!this._drained)return;this._forwarding=true;var r;while(this._drained&&(r=y(this._readable2))!==null){if(this.destroyed)continue;this._drained=this.push(r)}this._forwarding=false};Duplexify.prototype.destroy=function(r){if(this.destroyed)return;this.destroyed=true;var s=this;process.nextTick((function(){s._destroy(r)}))};Duplexify.prototype._destroy=function(r){if(r){var s=this._ondrain;this._ondrain=null;if(s)s(r);else this.emit("error",r)}if(this._forwardDestroy){if(this._readable&&this._readable.destroy)this._readable.destroy();if(this._writable&&this._writable.destroy)this._writable.destroy()}this.emit("close")};Duplexify.prototype._write=function(r,s,l){if(this.destroyed)return l();if(this._corked)return onuncork(this,this._write.bind(this,r,s,l));if(r===g)return this._finish(l);if(!this._writable)return l();if(this._writable.write(r)===false)this._ondrain=l;else l()};Duplexify.prototype._finish=function(r){var s=this;this.emit("preend");onuncork(this,(function(){end(s._forwardEnd&&s._writable,(function(){if(s._writableState.prefinished===false)s._writableState.prefinished=true;s.emit("prefinish");onuncork(s,r)}))}))};Duplexify.prototype.end=function(r,s,l){if(typeof r==="function")return this.end(null,null,r);if(typeof s==="function")return this.end(r,null,s);this._ended=true;if(r)this.write(r);if(!this._writableState.ending)this.write(g);return p.Writable.prototype.end.call(this,l)};r.exports=Duplexify},333:(r,s,l)=>{var p=l(5369);var noop=function(){};var d=global.Bare?queueMicrotask:process.nextTick.bind(process);var isRequest=function(r){return r.setHeader&&typeof r.abort==="function"};var isChildProcess=function(r){return r.stdio&&Array.isArray(r.stdio)&&r.stdio.length===3};var eos=function(r,s,l){if(typeof s==="function")return eos(r,null,s);if(!s)s={};l=p(l||noop);var m=r._writableState;var y=r._readableState;var g=s.readable||s.readable!==false&&r.readable;var T=s.writable||s.writable!==false&&r.writable;var b=false;var onlegacyfinish=function(){if(!r.writable)onfinish()};var onfinish=function(){T=false;if(!g)l.call(r)};var onend=function(){g=false;if(!T)l.call(r)};var onexit=function(s){l.call(r,s?new Error("exited with error code: "+s):null)};var onerror=function(s){l.call(r,s)};var onclose=function(){d(onclosenexttick)};var onclosenexttick=function(){if(b)return;if(g&&!(y&&(y.ended&&!y.destroyed)))return l.call(r,new Error("premature close"));if(T&&!(m&&(m.ended&&!m.destroyed)))return l.call(r,new Error("premature close"))};var onrequest=function(){r.req.on("finish",onfinish)};if(isRequest(r)){r.on("complete",onfinish);r.on("abort",onclose);if(r.req)onrequest();else r.on("request",onrequest)}else if(T&&!m){r.on("end",onlegacyfinish);r.on("close",onlegacyfinish)}if(isChildProcess(r))r.on("exit",onexit);r.on("end",onend);r.on("finish",onfinish);if(s.error!==false)r.on("error",onerror);r.on("close",onclose);return function(){b=true;r.removeListener("complete",onfinish);r.removeListener("abort",onclose);r.removeListener("request",onrequest);if(r.req)r.req.removeListener("finish",onfinish);r.removeListener("end",onlegacyfinish);r.removeListener("close",onlegacyfinish);r.removeListener("finish",onfinish);r.removeListener("exit",onexit);r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("close",onclose)}};r.exports=eos},1571:(r,s,l)=>{r.exports=l(4434)},6932:r=>{r.exports=class FixedFIFO{constructor(r){if(!(r>0)||(r-1&r)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r);this.mask=r-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(r){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=r;this.top=this.top+1&this.mask;return true}shift(){const r=this.buffer[this.btm];if(r===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},3082:(r,s,l)=>{const p=l(6932);r.exports=class FastFIFO{constructor(r){this.hwm=r||16;this.head=new p(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(r){this.length++;if(!this.head.push(r)){const s=this.head;this.head=s.next=new p(2*this.head.buffer.length);this.head.push(r)}}shift(){if(this.length!==0)this.length--;const r=this.tail.shift();if(r===undefined&&this.tail.next){const r=this.tail.next;this.tail.next=null;this.tail=r;return this.tail.shift()}return r}peek(){const r=this.tail.peek();if(r===undefined&&this.tail.next)return this.tail.next.peek();return r}isEmpty(){return this.length===0}}},5091:(r,s,l)=>{var p=l(3106);var d=l(9595);var m=l(7737);var y=l(9009);var g=l(8126);var T=l(5969);var isCompressed=function(r){if(g(r))return 1;if(T(r))return 2;return 0};var gunzip=function(r){if(r===undefined)r=3;return d({newline:false,maxBuffer:10},(function(s,l){if(r<0)return l(new Error("Maximum recursion reached"));switch(isCompressed(s)){case 1:l(null,y(p.createGunzip(),gunzip(r-1)));break;case 2:l(null,y(p.createInflate(),gunzip(r-1)));break;default:l(null,m())}}))};r.exports=gunzip},332:r=>{const s=new Set([200,203,204,206,300,301,308,404,405,410,414,501]);const l=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const p=new Set([500,502,503,504]);const d={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const m={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(r){const s=parseInt(r,10);return isFinite(s)?s:0}function isErrorResponse(r){if(!r){return true}return p.has(r.status)}function parseCacheControl(r){const s={};if(!r)return s;const l=r.trim().split(/,/);for(const r of l){const[l,p]=r.split(/=/,2);s[l.trim()]=p===undefined?true:p.trim().replace(/^"|"$/g,"")}return s}function formatCacheControl(r){let s=[];for(const l in r){const p=r[l];s.push(p===true?l:l+"="+p)}if(!s.length){return undefined}return s.join(", ")}r.exports=class CachePolicy{constructor(r,s,{shared:l,cacheHeuristic:p,immutableMinTimeToLive:d,ignoreCargoCult:m,_fromObject:y}={}){if(y){this._fromObject(y);return}if(!s||!s.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(r);this._responseTime=this.now();this._isShared=l!==false;this._ignoreCargoCult=!!m;this._cacheHeuristic=undefined!==p?p:.1;this._immutableMinTtl=undefined!==d?d:24*3600*1e3;this._status="status"in s?s.status:200;this._resHeaders=s.headers;this._rescc=parseCacheControl(s.headers["cache-control"]);this._method="method"in r?r.method:"GET";this._url=r.url;this._host=r.headers.host;this._noAuthorization=!r.headers.authorization;this._reqHeaders=s.headers.vary?r.headers:null;this._reqcc=parseCacheControl(r.headers["cache-control"]);if(this._ignoreCargoCult&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(s.headers["cache-control"]==null&&/no-cache/.test(s.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&l.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||s.has(this._status)))}_hasExplicitExpiration(){return!!(this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires)}_assertRequestHasHeaders(r){if(!r||!r.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(r){const s=this.evaluateRequest(r);return!s.revalidation}_evaluateRequestHitResult(r){return{response:{headers:this.responseHeaders()},revalidation:r}}_evaluateRequestRevalidation(r,s){return{synchronous:s,headers:this.revalidationHeaders(r)}}_evaluateRequestMissResult(r){return{response:undefined,revalidation:this._evaluateRequestRevalidation(r,true)}}evaluateRequest(r){this._assertRequestHasHeaders(r);if(this._rescc["must-revalidate"]){return this._evaluateRequestMissResult(r)}if(!this._requestMatches(r,false)){return this._evaluateRequestMissResult(r)}const s=parseCacheControl(r.headers["cache-control"]);if(s["no-cache"]||/no-cache/.test(r.headers.pragma)){return this._evaluateRequestMissResult(r)}if(s["max-age"]&&this.age()>toNumberOrZero(s["max-age"])){return this._evaluateRequestMissResult(r)}if(s["min-fresh"]&&this.maxAge()-this.age()<toNumberOrZero(s["min-fresh"])){return this._evaluateRequestMissResult(r)}if(this.stale()){const l="max-stale"in s&&(true===s["max-stale"]||s["max-stale"]>this.age()-this.maxAge());if(l){return this._evaluateRequestHitResult(undefined)}if(this.useStaleWhileRevalidate()){return this._evaluateRequestHitResult(this._evaluateRequestRevalidation(r,false))}return this._evaluateRequestMissResult(r)}return this._evaluateRequestHitResult(undefined)}_requestMatches(r,s){return!!((!this._url||this._url===r.url)&&this._host===r.headers.host&&(!r.method||this._method===r.method||s&&"HEAD"===r.method)&&this._varyMatches(r))}_allowsStoringAuthenticated(){return!!(this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"])}_varyMatches(r){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const s=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const l of s){if(r.headers[l]!==this._reqHeaders[l])return false}return true}_copyWithoutHopByHopHeaders(r){const s={};for(const l in r){if(d[l])continue;s[l]=r[l]}if(r.connection){const l=r.connection.trim().split(/\s*,\s*/);for(const r of l){delete s[r]}}if(s.warning){const r=s.warning.split(/,/).filter((r=>!/^\s*1[0-9][0-9]/.test(r)));if(!r.length){delete s.warning}else{s.warning=r.join(",").trim()}}return s}responseHeaders(){const r=this._copyWithoutHopByHopHeaders(this._resHeaders);const s=this.age();if(s>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){r.warning=(r.warning?`${r.warning}, `:"")+'113 - "rfc7234 5.5.4"'}r.age=`${Math.round(s)}`;r.date=new Date(this.now()).toUTCString();return r}date(){const r=Date.parse(this._resHeaders.date);if(isFinite(r)){return r}return this._responseTime}age(){let r=this._ageValue();const s=(this.now()-this._responseTime)/1e3;return r+s}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const r=this._rescc.immutable?this._immutableMinTtl:0;const s=this.date();if(this._resHeaders.expires){const l=Date.parse(this._resHeaders.expires);if(Number.isNaN(l)||l<s){return 0}return Math.max(r,(l-s)/1e3)}if(this._resHeaders["last-modified"]){const l=Date.parse(this._resHeaders["last-modified"]);if(isFinite(l)&&s>l){return Math.max(r,(s-l)/1e3*this._cacheHeuristic)}}return r}timeToLive(){const r=this.maxAge()-this.age();const s=r+toNumberOrZero(this._rescc["stale-if-error"]);const l=r+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.round(Math.max(0,r,s,l)*1e3)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){const r=toNumberOrZero(this._rescc["stale-while-revalidate"]);return r>0&&this.maxAge()+r>this.age()}static fromObject(r){return new this(undefined,undefined,{_fromObject:r})}_fromObject(r){if(this._responseTime)throw Error("Reinitialized");if(!r||r.v!==1)throw Error("Invalid serialization");this._responseTime=r.t;this._isShared=r.sh;this._cacheHeuristic=r.ch;this._immutableMinTtl=r.imm!==undefined?r.imm:24*3600*1e3;this._ignoreCargoCult=!!r.icc;this._status=r.st;this._resHeaders=r.resh;this._rescc=r.rescc;this._method=r.m;this._url=r.u;this._host=r.h;this._noAuthorization=r.a;this._reqHeaders=r.reqh;this._reqcc=r.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,icc:this._ignoreCargoCult,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(r){this._assertRequestHasHeaders(r);const s=this._copyWithoutHopByHopHeaders(r.headers);delete s["if-range"];if(!this._requestMatches(r,true)||!this.storable()){delete s["if-none-match"];delete s["if-modified-since"];return s}if(this._resHeaders.etag){s["if-none-match"]=s["if-none-match"]?`${s["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const l=s["accept-ranges"]||s["if-match"]||s["if-unmodified-since"]||this._method&&this._method!="GET";if(l){delete s["if-modified-since"];if(s["if-none-match"]){const r=s["if-none-match"].split(/,/).filter((r=>!/^\s*W\//.test(r)));if(!r.length){delete s["if-none-match"]}else{s["if-none-match"]=r.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!s["if-modified-since"]){s["if-modified-since"]=this._resHeaders["last-modified"]}return s}revalidatedPolicy(r,s){this._assertRequestHasHeaders(r);if(this._useStaleIfError()&&isErrorResponse(s)){return{policy:this,modified:false,matches:true}}if(!s||!s.headers){throw Error("Response headers missing")}let l=false;if(s.status!==undefined&&s.status!=304){l=false}else if(s.headers.etag&&!/^\s*W\//.test(s.headers.etag)){l=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===s.headers.etag}else if(this._resHeaders.etag&&s.headers.etag){l=this._resHeaders.etag.replace(/^\s*W\//,"")===s.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){l=this._resHeaders["last-modified"]===s.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!s.headers.etag&&!s.headers["last-modified"]){l=true}}const p={shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl,ignoreCargoCult:this._ignoreCargoCult};if(!l){return{policy:new this.constructor(r,s,p),modified:s.status!=304,matches:false}}const d={};for(const r in this._resHeaders){d[r]=r in s.headers&&!m[r]?s.headers[r]:this._resHeaders[r]}const y=Object.assign({},s,{status:this._status,method:this._method,headers:d});return{policy:new this.constructor(r,y,p),modified:false,matches:true}}}},6886:(r,s,l)=>{const{URL:p}=l(7016);const d=l(4434);const m=l(4756);const y=l(5675);const g=l(5018);const T=l(1440);const b=Symbol("currentStreamCount");const E=Symbol("request");const S=Symbol("cachedOriginSet");const _=Symbol("gracefullyClosing");const x=Symbol("length");const w=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"];const getSortedIndex=(r,s,l)=>{let p=0;let d=r.length;while(p<d){const m=p+d>>>1;if(l(r[m],s)){p=m+1}else{d=m}}return p};const compareSessions=(r,s)=>r.remoteSettings.maxConcurrentStreams>s.remoteSettings.maxConcurrentStreams;const closeCoveredSessions=(r,s)=>{for(let l=0;l<r.length;l++){const p=r[l];if(p[S].length>0&&p[S].length<s[S].length&&p[S].every((r=>s[S].includes(r)))&&p[b]+s[b]<=s.remoteSettings.maxConcurrentStreams){gracefullyClose(p)}}};const closeSessionIfCovered=(r,s)=>{for(let l=0;l<r.length;l++){const p=r[l];if(s[S].length>0&&s[S].length<p[S].length&&s[S].every((r=>p[S].includes(r)))&&s[b]+p[b]<=p.remoteSettings.maxConcurrentStreams){gracefullyClose(s);return true}}return false};const gracefullyClose=r=>{r[_]=true;if(r[b]===0){r.close()}};class Agent extends d{constructor({timeout:r=0,maxSessions:s=Number.POSITIVE_INFINITY,maxEmptySessions:l=10,maxCachedTlsSessions:p=100}={}){super();this.sessions={};this.queue={};this.timeout=r;this.maxSessions=s;this.maxEmptySessions=l;this._emptySessionCount=0;this._sessionCount=0;this.settings={enablePush:false,initialWindowSize:1024*1024*32};this.tlsSessionCache=new g({maxSize:p})}get protocol(){return"https:"}normalizeOptions(r){let s="";for(let l=0;l<w.length;l++){const p=w[l];s+=":";if(r&&r[p]!==undefined){s+=r[p]}}return s}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(const r in this.queue){for(const s in this.queue[r]){const l=this.queue[r][s];if(!l.completed){l.completed=true;l()}}}}_isBetterSession(r,s){return r>s}_accept(r,s,l,p){let d=0;while(d<s.length&&r[b]<r.remoteSettings.maxConcurrentStreams){s[d].resolve(r);d++}s.splice(0,d);if(s.length>0){this.getSession(l,p,s);s.length=0}}getSession(r,s,l){return new Promise(((d,m)=>{if(Array.isArray(l)&&l.length>0){l=[...l];d()}else{l=[{resolve:d,reject:m}]}try{if(typeof r==="string"){r=new p(r)}else if(!(r instanceof p)){throw new TypeError("The `origin` argument needs to be a string or an URL object")}if(s){const{servername:l}=s;const{hostname:p}=r;if(l&&p!==l){throw new Error(`Origin ${p} differs from servername ${l}`)}}}catch(r){for(let s=0;s<l.length;s++){l[s].reject(r)}return}const g=this.normalizeOptions(s);const T=r.origin;if(g in this.sessions){const r=this.sessions[g];let p=-1;let d=-1;let m;for(let s=0;s<r.length;s++){const l=r[s];const y=l.remoteSettings.maxConcurrentStreams;if(y<p){break}if(!l[S].includes(T)){continue}const g=l[b];if(g>=y||l[_]||l.destroyed){continue}if(!m){p=y}if(this._isBetterSession(g,d)){m=l;d=g}}if(m){this._accept(m,l,T,s);return}}if(g in this.queue){if(T in this.queue[g]){this.queue[g][T].listeners.push(...l);return}}else{this.queue[g]={[x]:0}}const removeFromQueue=()=>{if(g in this.queue&&this.queue[g][T]===entry){delete this.queue[g][T];if(--this.queue[g][x]===0){delete this.queue[g]}}};const entry=async()=>{this._sessionCount++;const p=`${T}:${g}`;let d=false;let m;try{const w={...s};if(w.settings===undefined){w.settings=this.settings}if(w.session===undefined){w.session=this.tlsSessionCache.get(p)}const v=w.createConnection||this.createConnection;m=await v.call(this,r,w);w.createConnection=()=>m;const A=y.connect(r,w);A[b]=0;A[_]=false;const getOriginSet=()=>{const{socket:r}=A;let s;if(r.servername===false){r.servername=r.remoteAddress;s=A.originSet;r.servername=false}else{s=A.originSet}return s};const isFree=()=>A[b]<A.remoteSettings.maxConcurrentStreams;A.socket.once("session",(r=>{this.tlsSessionCache.set(p,r)}));A.once("error",(r=>{for(let s=0;s<l.length;s++){l[s].reject(r)}this.tlsSessionCache.delete(p)}));A.setTimeout(this.timeout,(()=>{A.destroy()}));A.once("close",(()=>{this._sessionCount--;if(d){this._emptySessionCount--;const r=this.sessions[g];if(r.length===1){delete this.sessions[g]}else{r.splice(r.indexOf(A),1)}}else{removeFromQueue();const r=new Error("Session closed without receiving a SETTINGS frame");r.code="HTTP2WRAPPER_NOSETTINGS";for(let s=0;s<l.length;s++){l[s].reject(r)}}this._processQueue()}));const processListeners=()=>{const r=this.queue[g];if(!r){return}const s=A[S];for(let l=0;l<s.length;l++){const p=s[l];if(p in r){const{listeners:s,completed:l}=r[p];let d=0;while(d<s.length&&isFree()){s[d].resolve(A);d++}r[p].listeners.splice(0,d);if(r[p].listeners.length===0&&!l){delete r[p];if(--r[x]===0){delete this.queue[g];break}}if(!isFree()){break}}}};A.on("origin",(()=>{A[S]=getOriginSet()||[];A[_]=false;closeSessionIfCovered(this.sessions[g],A);if(A[_]||!isFree()){return}processListeners();if(!isFree()){return}closeCoveredSessions(this.sessions[g],A)}));A.once("remoteSettings",(()=>{if(entry.destroyed){const r=new Error("Agent has been destroyed");for(let s=0;s<l.length;s++){l[s].reject(r)}A.destroy();return}if(A.setLocalWindowSize){A.setLocalWindowSize(1024*1024*4)}A[S]=getOriginSet()||[];if(A.socket.encrypted){const r=A[S][0];if(r!==T){const s=new Error(`Requested origin ${T} does not match server ${r}`);for(let r=0;r<l.length;r++){l[r].reject(s)}A.destroy();return}}removeFromQueue();{const r=this.sessions;if(g in r){const s=r[g];s.splice(getSortedIndex(s,A,compareSessions),0,A)}else{r[g]=[A]}}d=true;this._emptySessionCount++;this.emit("session",A);this._accept(A,l,T,s);if(A[b]===0&&this._emptySessionCount>this.maxEmptySessions){this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions)}A.on("remoteSettings",(()=>{if(!isFree()){return}processListeners();if(!isFree()){return}closeCoveredSessions(this.sessions[g],A)}))}));A[E]=A.request;A.request=(r,s)=>{if(A[_]){throw new Error("The session is gracefully closing. No new streams are allowed.")}const l=A[E](r,s);A.ref();if(A[b]++===0){this._emptySessionCount--}l.once("close",(()=>{if(--A[b]===0){this._emptySessionCount++;A.unref();if(this._emptySessionCount>this.maxEmptySessions||A[_]){A.close();return}}if(A.destroyed||A.closed){return}if(isFree()&&!closeSessionIfCovered(this.sessions[g],A)){closeCoveredSessions(this.sessions[g],A);processListeners();if(A[b]===0){this._processQueue()}}}));return l}}catch(r){removeFromQueue();this._sessionCount--;for(let s=0;s<l.length;s++){l[s].reject(r)}}};entry.listeners=l;entry.completed=false;entry.destroyed=false;this.queue[g][T]=entry;this.queue[g][x]++;this._processQueue()}))}request(r,s,l,p){return new Promise(((d,m)=>{this.getSession(r,s,[{reject:m,resolve:r=>{try{const s=r.request(l,p);T(s);d(s)}catch(r){m(r)}}}])}))}async createConnection(r,s){return Agent.connect(r,s)}static connect(r,s){s.ALPNProtocols=["h2"];const l=r.port||443;const p=r.hostname;if(typeof s.servername==="undefined"){s.servername=p}const d=m.connect(l,p,s);if(s.socket){d._peername={family:undefined,address:undefined,port:l}}return d}closeEmptySessions(r=Number.POSITIVE_INFINITY){let s=0;const{sessions:l}=this;for(const p in l){const d=l[p];for(let l=0;l<d.length;l++){const p=d[l];if(p[b]===0){s++;p.close();if(s>=r){return s}}}}return s}destroy(r){const{sessions:s,queue:l}=this;for(const l in s){const p=s[l];for(let s=0;s<p.length;s++){p[s].destroy(r)}}for(const r in l){const s=l[r];for(const r in s){s[r].destroyed=true}}this.queue={};this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}}Agent.kCurrentStreamCount=b;Agent.kGracefullyClosing=_;r.exports={Agent:Agent,globalAgent:new Agent}},3072:(r,s,l)=>{const{URL:p,urlToHttpOptions:d}=l(7016);const m=l(8611);const y=l(5692);const g=l(7191);const T=l(5018);const{Agent:b,globalAgent:E}=l(6886);const S=l(1388);const _=l(5313);const x=l(1440);const w=new T({maxSize:100});const v=new Map;const installSocket=(r,s,l)=>{s._httpMessage={shouldKeepAlive:true};const onFree=()=>{r.emit("free",s,l)};s.on("free",onFree);const onClose=()=>{r.removeSocket(s,l)};s.on("close",onClose);const onTimeout=()=>{const{freeSockets:l}=r;for(const r of Object.values(l)){if(r.includes(s)){s.destroy();return}}};s.on("timeout",onTimeout);const onRemove=()=>{r.removeSocket(s,l);s.off("close",onClose);s.off("free",onFree);s.off("timeout",onTimeout);s.off("agentRemove",onRemove)};s.on("agentRemove",onRemove);r.emit("free",s,l)};const createResolveProtocol=(r,s=new Map,l=undefined)=>async p=>{const d=`${p.host}:${p.port}:${p.ALPNProtocols.sort()}`;if(!r.has(d)){if(s.has(d)){const r=await s.get(d);return{alpnProtocol:r.alpnProtocol}}const{path:m}=p;p.path=p.socketPath;const y=g(p,l);s.set(d,y);try{const l=await y;r.set(d,l.alpnProtocol);s.delete(d);p.path=m;return l}catch(r){s.delete(d);p.path=m;throw r}}return{alpnProtocol:r.get(d)}};const A=createResolveProtocol(w,v);r.exports=async(r,s,l)=>{if(typeof r==="string"){r=d(new p(r))}else if(r instanceof p){r=d(r)}else{r={...r}}if(typeof s==="function"||s===undefined){l=s;s=r}else{s=Object.assign(r,s)}s.ALPNProtocols=s.ALPNProtocols||["h2","http/1.1"];if(!Array.isArray(s.ALPNProtocols)||s.ALPNProtocols.length===0){throw new Error("The `ALPNProtocols` option must be an Array with at least one entry")}s.protocol=s.protocol||"https:";const g=s.protocol==="https:";s.host=s.hostname||s.host||"localhost";s.session=s.tlsSession;s.servername=s.servername||_(s.headers&&s.headers.host||s.host);s.port=s.port||(g?443:80);s._defaultAgent=g?y.globalAgent:m.globalAgent;const T=s.resolveProtocol||A;let{agent:w}=s;if(w!==undefined&&w!==false&&w.constructor.name!=="Object"){throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties")}if(g){s.resolveSocket=true;let{socket:r,alpnProtocol:p,timeout:d}=await T(s);if(d){if(r){r.destroy()}const l=new Error(`Timed out resolving ALPN: ${s.timeout} ms`);l.code="ETIMEDOUT";l.ms=s.timeout;throw l}if(r&&s.createConnection){r.destroy();r=undefined}delete s.resolveSocket;const m=p==="h2";if(w){w=m?w.http2:w.https;s.agent=w}if(w===undefined){w=m?E:y.globalAgent}if(r){if(w===false){r.destroy()}else{const l=(m?b:y.Agent).prototype.createConnection;if(w.createConnection===l){if(m){s._reuseSocket=r}else{installSocket(w,r,s)}}else{r.destroy()}}}if(m){return x(new S(s,l))}}else if(w){s.agent=w.http}if(s.headers){s.headers={...s.headers};if(s.headers[":authority"]){if(!s.headers.host){s.headers.host=s.headers[":authority"]}delete s.headers[":authority"]}delete s.headers[":method"];delete s.headers[":scheme"];delete s.headers[":path"]}return x(m.request(s,l))};r.exports.protocolCache=w;r.exports.resolveProtocol=A;r.exports.createResolveProtocol=createResolveProtocol},1388:(r,s,l)=>{const{URL:p,urlToHttpOptions:d}=l(7016);const m=l(5675);const{Writable:y}=l(2203);const{Agent:g,globalAgent:T}=l(6886);const b=l(2001);const E=l(95);const{ERR_INVALID_ARG_TYPE:S,ERR_INVALID_PROTOCOL:_,ERR_HTTP_HEADERS_SENT:x}=l(9614);const w=l(617);const v=l(5845);const A=l(7578);const{HTTP2_HEADER_STATUS:P,HTTP2_HEADER_METHOD:k,HTTP2_HEADER_PATH:C,HTTP2_HEADER_AUTHORITY:I,HTTP2_METHOD_CONNECT:O}=m.constants;const N=Symbol("headers");const L=Symbol("origin");const D=Symbol("session");const R=Symbol("options");const M=Symbol("flushedHeaders");const F=Symbol("jobs");const B=Symbol("pendingAgentPromise");class ClientRequest extends y{constructor(r,s,l){super({autoDestroy:false,emitClose:false});if(typeof r==="string"){r=d(new p(r))}else if(r instanceof p){r=d(r)}else{r={...r}}if(typeof s==="function"||s===undefined){l=s;s=r}else{s=Object.assign(r,s)}if(s.h2session){this[D]=s.h2session;if(this[D].destroyed){throw new Error("The session has been closed already")}this.protocol=this[D].socket.encrypted?"https:":"http:"}else if(s.agent===false){this.agent=new g({maxEmptySessions:0})}else if(typeof s.agent==="undefined"||s.agent===null){this.agent=T}else if(typeof s.agent.request==="function"){this.agent=s.agent}else{throw new S("options.agent",["http2wrapper.Agent-like Object","undefined","false"],s.agent)}if(this.agent){this.protocol=this.agent.protocol}if(s.protocol&&s.protocol!==this.protocol){throw new _(s.protocol,this.protocol)}if(!s.port){s.port=s.defaultPort||this.agent&&this.agent.defaultPort||443}s.host=s.hostname||s.host||"localhost";delete s.hostname;const{timeout:m}=s;s.timeout=undefined;this[N]=Object.create(null);this[F]=[];this[B]=undefined;this.socket=null;this.connection=null;this.method=s.method||"GET";if(!(this.method==="CONNECT"&&(s.path==="/"||s.path===undefined))){this.path=s.path}this.res=null;this.aborted=false;this.reusedSocket=false;const{headers:y}=s;if(y){for(const r in y){this.setHeader(r,y[r])}}if(s.auth&&!("authorization"in this[N])){this[N].authorization="Basic "+Buffer.from(s.auth).toString("base64")}s.session=s.tlsSession;s.path=s.socketPath;this[R]=s;this[L]=new p(`${this.protocol}//${s.servername||s.host}:${s.port}`);const b=s._reuseSocket;if(b){s.createConnection=(...r)=>{if(b.destroyed){return this.agent.createConnection(...r)}return b};this.agent.getSession(this[L],this[R]).catch((()=>{}))}if(m){this.setTimeout(m)}if(l){this.once("response",l)}this[M]=false}get method(){return this[N][k]}set method(r){if(r){this[N][k]=r.toUpperCase()}}get path(){const r=this.method==="CONNECT"?I:C;return this[N][r]}set path(r){if(r){const s=this.method==="CONNECT"?I:C;this[N][s]=r}}get host(){return this[L].hostname}set host(r){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(r,s,l){if(this._mustNotHaveABody){l(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();const callWrite=()=>this._request.write(r,s,l);if(this._request){callWrite()}else{this[F].push(callWrite)}}_final(r){this.flushHeaders();const callEnd=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){r();return}this._request.end(r)};if(this._request){callEnd()}else{this[F].push(callEnd)}}abort(){if(this.res&&this.res.complete){return}if(!this.aborted){process.nextTick((()=>this.emit("abort")))}this.aborted=true;this.destroy()}async _destroy(r,s){if(this.res){this.res._dump()}if(this._request){this._request.destroy()}else{process.nextTick((()=>{this.emit("close")}))}try{await this[B]}catch(s){if(this.aborted){r=s}}s(r)}async flushHeaders(){if(this[M]||this.destroyed){return}this[M]=true;const r=this.method===O;const onStream=s=>{this._request=s;if(this.destroyed){s.destroy();return}if(!r){E(s,this,["timeout","continue"])}s.once("error",(r=>{this.destroy(r)}));s.once("aborted",(()=>{const{res:r}=this;if(r){r.aborted=true;r.emit("aborted");r.destroy()}else{this.destroy(new Error("The server aborted the HTTP/2 stream"))}}));const onResponse=(l,p,d)=>{const m=new b(this.socket,s.readableHighWaterMark);this.res=m;m.url=`${this[L].origin}${this.path}`;m.req=this;m.statusCode=l[P];m.headers=l;m.rawHeaders=d;m.once("end",(()=>{m.complete=true;m.socket=null;m.connection=null}));if(r){m.upgrade=true;if(this.emit("connect",m,s,Buffer.alloc(0))){this.emit("close")}else{s.destroy()}}else{s.on("data",(r=>{if(!m._dumped&&!m.push(r)){s.pause()}}));s.once("end",(()=>{if(!this.aborted){m.push(null)}}));if(!this.emit("response",m)){m._dump()}}};s.once("response",onResponse);s.once("headers",(r=>this.emit("information",{statusCode:r[P]})));s.once("trailers",((r,s,l)=>{const{res:p}=this;if(p===null){onResponse(r,s,l);return}p.trailers=r;p.rawTrailers=l}));s.once("close",(()=>{const{aborted:r,res:s}=this;if(s){if(r){s.aborted=true;s.emit("aborted");s.destroy()}const finish=()=>{s.emit("close");this.destroy();this.emit("close")};if(s.readable){s.once("end",finish)}else{finish()}return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated"));this.emit("close");return}this.destroy();this.emit("close")}));this.socket=new Proxy(s,A);for(const r of this[F]){r()}this[F].length=0;this.emit("socket",this.socket)};if(!(I in this[N])&&!r){this[N][I]=this[L].host}if(this[D]){try{onStream(this[D].request(this[N]))}catch(r){this.destroy(r)}}else{this.reusedSocket=true;try{const r=this.agent.request(this[L],this[R],this[N]);this[B]=r;onStream(await r);this[B]=false}catch(r){this[B]=false;this.destroy(r)}}}get connection(){return this.socket}set connection(r){this.socket=r}getHeaderNames(){return Object.keys(this[N])}hasHeader(r){if(typeof r!=="string"){throw new S("name","string",r)}return Boolean(this[N][r.toLowerCase()])}getHeader(r){if(typeof r!=="string"){throw new S("name","string",r)}return this[N][r.toLowerCase()]}get headersSent(){return this[M]}removeHeader(r){if(typeof r!=="string"){throw new S("name","string",r)}if(this.headersSent){throw new x("remove")}delete this[N][r.toLowerCase()]}setHeader(r,s){if(this.headersSent){throw new x("set")}w(r);v(r,s);const l=r.toLowerCase();if(l==="connection"){if(s.toLowerCase()==="keep-alive"){return}throw new Error(`Invalid 'connection' header: ${s}`)}if(l==="host"&&this.method==="CONNECT"){this[N][I]=s}else{this[N][l]=s}}setNoDelay(){}setSocketKeepAlive(){}setTimeout(r,s){const applyTimeout=()=>this._request.setTimeout(r,s);if(this._request){applyTimeout()}else{this[F].push(applyTimeout)}return this}get maxHeadersCount(){if(!this.destroyed&&this._request){return this._request.session.localSettings.maxHeaderListSize}return undefined}set maxHeadersCount(r){}}r.exports=ClientRequest},2001:(r,s,l)=>{const{Readable:p}=l(2203);class IncomingMessage extends p{constructor(r,s){super({emitClose:false,autoDestroy:true,highWaterMark:s});this.statusCode=null;this.statusMessage="";this.httpVersion="2.0";this.httpVersionMajor=2;this.httpVersionMinor=0;this.headers={};this.trailers={};this.req=null;this.aborted=false;this.complete=false;this.upgrade=null;this.rawHeaders=[];this.rawTrailers=[];this.socket=r;this._dumped=false}get connection(){return this.socket}set connection(r){this.socket=r}_destroy(r,s){if(!this.readableEnded){this.aborted=true}s();this.req._request.destroy(r)}setTimeout(r,s){this.req.setTimeout(r,s);return this}_dump(){if(!this._dumped){this._dumped=true;this.removeAllListeners("data");this.resume()}}_read(){if(this.req){this.req._request.resume()}}}r.exports=IncomingMessage},6207:(r,s,l)=>{const p=l(5675);const{Agent:d,globalAgent:m}=l(6886);const y=l(1388);const g=l(2001);const T=l(3072);const{HttpOverHttp2:b,HttpsOverHttp2:E}=l(5367);const S=l(2586);const{Http2OverHttp:_,Http2OverHttps:x}=l(6311);const w=l(617);const v=l(5845);const request=(r,s,l)=>new y(r,s,l);const get=(r,s,l)=>{const p=new y(r,s,l);p.end();return p};r.exports={...p,ClientRequest:y,IncomingMessage:g,Agent:d,globalAgent:m,request:request,get:get,auto:T,proxies:{HttpOverHttp2:b,HttpsOverHttp2:E,Http2OverHttp2:S,Http2OverHttp:_,Http2OverHttps:x},validateHeaderName:w,validateHeaderValue:v}},9456:r=>{r.exports=r=>{const{username:s,password:l}=r.proxyOptions.url;if(s||l){const r=`${s}:${l}`;const p=`Basic ${Buffer.from(r).toString("base64")}`;return{"proxy-authorization":p,authorization:p}}return{}}},5367:(r,s,l)=>{const p=l(4756);const d=l(8611);const m=l(5692);const y=l(2365);const{globalAgent:g}=l(6886);const T=l(4607);const b=l(6864);const E=l(9456);const createConnection=(r,s,l)=>{(async()=>{try{const{proxyOptions:d}=r;const{url:b,headers:S,raw:_}=d;const x=await g.request(b,d,{...E(r),...S,":method":"CONNECT",":authority":`${s.host}:${s.port}`});x.once("error",l);x.once("response",(d=>{const g=d[":status"];if(g!==200){l(new T(g,""));return}const b=r instanceof m.Agent;if(_&&b){s.socket=x;const r=p.connect(s);r.once("close",(()=>{x.destroy()}));l(null,r);return}const E=new y(x);E.encrypted=false;E._handle.getpeername=r=>{r.family=undefined;r.address=undefined;r.port=undefined};l(null,E)}))}catch(r){l(r)}})()};class HttpOverHttp2 extends d.Agent{constructor(r){super(r);b(this,r.proxyOptions)}createConnection(r,s){createConnection(this,r,s)}}class HttpsOverHttp2 extends m.Agent{constructor(r){super(r);b(this,r.proxyOptions)}createConnection(r,s){createConnection(this,r,s)}}r.exports={HttpOverHttp2:HttpOverHttp2,HttpsOverHttp2:HttpsOverHttp2}},6311:(r,s,l)=>{const p=l(8611);const d=l(5692);const m=l(1480);const y=l(9456);const getStream=r=>new Promise(((s,l)=>{const onConnect=(p,d,m)=>{d.unshift(m);r.off("error",l);s([d,p.statusCode,p.statusMessage])};r.once("error",l);r.once("connect",onConnect)}));class Http2OverHttp extends m{async _getProxyStream(r){const{proxyOptions:s}=this;const{url:l,headers:m}=this.proxyOptions;const g=l.protocol==="https:"?d:p;const T=g.request({...s,hostname:l.hostname,port:l.port,path:r,headers:{...y(this),...m,host:r},method:"CONNECT"}).end();return getStream(T)}}r.exports={Http2OverHttp:Http2OverHttp,Http2OverHttps:Http2OverHttp}},2586:(r,s,l)=>{const{globalAgent:p}=l(6886);const d=l(1480);const m=l(9456);const getStatusCode=r=>new Promise(((s,l)=>{r.once("error",l);r.once("response",(p=>{r.off("error",l);s(p[":status"])}))}));class Http2OverHttp2 extends d{async _getProxyStream(r){const{proxyOptions:s}=this;const l={...m(this),...s.headers,":method":"CONNECT",":authority":r};const d=await p.request(s.url,s,l);const y=await getStatusCode(d);return[d,y,""]}}r.exports=Http2OverHttp2},1480:(r,s,l)=>{const{Agent:p}=l(6886);const d=l(2365);const m=l(4607);const y=l(6864);class Http2OverHttpX extends p{constructor(r){super(r);y(this,r.proxyOptions)}async createConnection(r,s){const l=`${r.hostname}:${r.port||443}`;const[p,y,g]=await this._getProxyStream(l);if(y!==200){throw new m(y,g)}if(this.proxyOptions.raw){s.socket=p}else{const r=new d(p);r.encrypted=false;r._handle.getpeername=r=>{r.family=undefined;r.address=undefined;r.port=undefined};return r}return super.createConnection(r,s)}}r.exports=Http2OverHttpX},6864:(r,s,l)=>{const{URL:p}=l(7016);const d=l(8158);r.exports=(r,s)=>{d("proxyOptions",s,["object"]);d("proxyOptions.headers",s.headers,["object","undefined"]);d("proxyOptions.raw",s.raw,["boolean","undefined"]);d("proxyOptions.url",s.url,[p,"string"]);const l=new p(s.url);r.proxyOptions={raw:true,...s,headers:{...s.headers},url:l}}},4607:r=>{class UnexpectedStatusCodeError extends Error{constructor(r,s=""){super(`The proxy server rejected the request with status code ${r} (${s||"empty status message"})`);this.statusCode=r;this.statusMessage=s}}r.exports=UnexpectedStatusCodeError},5313:(r,s,l)=>{const{isIP:p}=l(9278);const d=l(2613);const getHost=r=>{if(r[0]==="["){const s=r.indexOf("]");d(s!==-1);return r.slice(1,s)}const s=r.indexOf(":");if(s===-1){return r}return r.slice(0,s)};r.exports=r=>{const s=getHost(r);if(p(s)){return""}return s}},8158:r=>{const checkType=(r,s,l)=>{const p=l.some((r=>{const l=typeof r;if(l==="string"){return typeof s===r}return s instanceof r}));if(!p){const p=l.map((r=>typeof r==="string"?r:r.name));throw new TypeError(`Expected '${r}' to be a type of ${p.join(" or ")}, got ${typeof s}`)}};r.exports=checkType},1440:r=>{r.exports=r=>{if(r.listenerCount("error")!==0){return r}r.__destroy=r._destroy;r._destroy=(...s)=>{const l=s.pop();r.__destroy(...s,(async r=>{await Promise.resolve();l(r)}))};const onError=s=>{Promise.resolve().then((()=>{r.emit("error",s)}))};r.once("error",onError);Promise.resolve().then((()=>{r.off("error",onError)}));return r}},9614:r=>{const makeError=(s,l,p)=>{r.exports[l]=class NodeError extends s{constructor(...r){super(typeof p==="string"?p:p(r));this.name=`${super.name} [${l}]`;this.code=l}}};makeError(TypeError,"ERR_INVALID_ARG_TYPE",(r=>{const s=r[0].includes(".")?"property":"argument";let l=r[1];const p=Array.isArray(l);if(p){l=`${l.slice(0,-1).join(", ")} or ${l.slice(-1)}`}return`The "${r[0]}" ${s} must be ${p?"one of":"of"} type ${l}. Received ${typeof r[2]}`}));makeError(TypeError,"ERR_INVALID_PROTOCOL",(r=>`Protocol "${r[0]}" not supported. Expected "${r[1]}"`));makeError(Error,"ERR_HTTP_HEADERS_SENT",(r=>`Cannot ${r[0]} headers after they are sent to the client`));makeError(TypeError,"ERR_INVALID_HTTP_TOKEN",(r=>`${r[0]} must be a valid HTTP token [${r[1]}]`));makeError(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",(r=>`Invalid value "${r[0]} for header "${r[1]}"`));makeError(TypeError,"ERR_INVALID_CHAR",(r=>`Invalid character in ${r[0]} [${r[1]}]`));makeError(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")},4960:r=>{r.exports=r=>{switch(r){case":method":case":scheme":case":authority":case":path":return true;default:return false}}},2365:(r,s,l)=>{const p=l(2203);const d=l(4756);const m=new d.TLSSocket(new p.PassThrough)._handle._parentWrap.constructor;r.exports=m},95:r=>{r.exports=(r,s,l)=>{for(const p of l){r.on(p,((...r)=>s.emit(p,...r)))}}},7578:(r,s,l)=>{const{ERR_HTTP2_NO_SOCKET_MANIPULATION:p}=l(9614);const d={has(r,s){const l=r.session===undefined?r:r.session.socket;return s in r||s in l},get(r,s){switch(s){case"on":case"once":case"end":case"emit":case"destroy":return r[s].bind(r);case"writable":case"destroyed":return r[s];case"readable":if(r.destroyed){return false}return r.readable;case"setTimeout":{const{session:s}=r;if(s!==undefined){return s.setTimeout.bind(s)}return r.setTimeout.bind(r)}case"write":case"read":case"pause":case"resume":throw new p;default:{const l=r.session===undefined?r:r.session.socket;const p=l[s];return typeof p==="function"?p.bind(l):p}}},getPrototypeOf(r){if(r.session!==undefined){return Reflect.getPrototypeOf(r.session.socket)}return Reflect.getPrototypeOf(r)},set(r,s,l){switch(s){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":r[s]=l;return true;case"setTimeout":{const{session:s}=r;if(s===undefined){r.setTimeout=l}else{s.setTimeout=l}return true}case"write":case"read":case"pause":case"resume":throw new p;default:{const p=r.session===undefined?r:r.session.socket;p[s]=l;return true}}}};r.exports=d},617:(r,s,l)=>{const{ERR_INVALID_HTTP_TOKEN:p}=l(9614);const d=l(4960);const m=/^[\^`\-\w!#$%&*+.|~]+$/;r.exports=r=>{if(typeof r!=="string"||!m.test(r)&&!d(r)){throw new p("Header name",r)}}},5845:(r,s,l)=>{const{ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:d}=l(9614);const m=/[^\t\u0020-\u007E\u0080-\u00FF]/;r.exports=(r,s)=>{if(typeof s==="undefined"){throw new p(s,r)}if(m.test(s)){throw new d("header content",r)}}},5099:(r,s,l)=>{try{var p=l(9023);if(typeof p.inherits!=="function")throw"";r.exports=p.inherits}catch(s){r.exports=l(4304)}},4304:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,s){if(s){r.super_=s;r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,s){if(s){r.super_=s;var TempCtor=function(){};TempCtor.prototype=s.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},5969:r=>{r.exports=function(r){if(!r||r.length<2)return false;return r[0]===120&&(r[1]===1||r[1]===156||r[1]===218)}},8126:r=>{r.exports=function(r){if(!r||r.length<3){return false}return r[0]===31&&r[1]===139&&r[2]===8}},8812:r=>{var s={}.toString;r.exports=Array.isArray||function(r){return s.call(r)=="[object Array]"}},9957:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;s.matchToToken=function(r){var s={type:"invalid",value:r[0],closed:undefined};if(r[1])s.type="string",s.closed=!!(r[3]||r[4]);else if(r[5])s.type="comment";else if(r[6])s.type="comment",s.closed=!!r[7];else if(r[8])s.type="regex";else if(r[9])s.type="number";else if(r[10])s.type="name";else if(r[11])s.type="punctuator";else if(r[12])s.type="whitespace";return s}},4905:r=>{const s={};const l=s.hasOwnProperty;const forOwn=(r,s)=>{for(const p in r){if(l.call(r,p)){s(p,r[p])}}};const extend=(r,s)=>{if(!s){return r}forOwn(s,((s,l)=>{r[s]=l}));return r};const forEach=(r,s)=>{const l=r.length;let p=-1;while(++p<l){s(r[p])}};const fourHexEscape=r=>"\\u"+("0000"+r).slice(-4);const hexadecimal=(r,s)=>{let l=r.toString(16);if(s)return l;return l.toUpperCase()};const p=s.toString;const d=Array.isArray;const isBuffer=r=>typeof Buffer==="function"&&Buffer.isBuffer(r);const isObject=r=>p.call(r)=="[object Object]";const isString=r=>typeof r=="string"||p.call(r)=="[object String]";const isNumber=r=>typeof r=="number"||p.call(r)=="[object Number]";const isBigInt=r=>typeof r=="bigint";const isFunction=r=>typeof r=="function";const isMap=r=>p.call(r)=="[object Map]";const isSet=r=>p.call(r)=="[object Set]";const m={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const y=/[\\\b\f\n\r\t]/;const g=/[0-9]/;const T=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;const b=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g;const E=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g;const jsesc=(r,s)=>{const increaseIndentation=()=>{v=w;++s.indentLevel;w=s.indent.repeat(s.indentLevel)};const l={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:false,__inline2__:false};const p=s&&s.json;if(p){l.quotes="double";l.wrap=true}s=extend(l,s);if(s.quotes!="single"&&s.quotes!="double"&&s.quotes!="backtick"){s.quotes="single"}const S=s.quotes=="double"?'"':s.quotes=="backtick"?"`":"'";const _=s.compact;const x=s.lowercaseHex;let w=s.indent.repeat(s.indentLevel);let v="";const A=s.__inline1__;const P=s.__inline2__;const k=_?"":"\n";let C;let I=true;const O=s.numbers=="binary";const N=s.numbers=="octal";const L=s.numbers=="decimal";const D=s.numbers=="hexadecimal";if(p&&r&&isFunction(r.toJSON)){r=r.toJSON()}if(!isString(r)){if(isMap(r)){if(r.size==0){return"new Map()"}if(!_){s.__inline1__=true;s.__inline2__=false}return"new Map("+jsesc(Array.from(r),s)+")"}if(isSet(r)){if(r.size==0){return"new Set()"}return"new Set("+jsesc(Array.from(r),s)+")"}if(isBuffer(r)){if(r.length==0){return"Buffer.from([])"}return"Buffer.from("+jsesc(Array.from(r),s)+")"}if(d(r)){C=[];s.wrap=true;if(A){s.__inline1__=false;s.__inline2__=true}if(!P){increaseIndentation()}forEach(r,(r=>{I=false;if(P){s.__inline2__=false}C.push((_||P?"":w)+jsesc(r,s))}));if(I){return"[]"}if(P){return"["+C.join(", ")+"]"}return"["+k+C.join(","+k)+k+(_?"":v)+"]"}else if(isNumber(r)||isBigInt(r)){if(p){return JSON.stringify(Number(r))}let s;if(L){s=String(r)}else if(D){let l=r.toString(16);if(!x){l=l.toUpperCase()}s="0x"+l}else if(O){s="0b"+r.toString(2)}else if(N){s="0o"+r.toString(8)}if(isBigInt(r)){return s+"n"}return s}else if(isBigInt(r)){if(p){return JSON.stringify(Number(r))}return r+"n"}else if(!isObject(r)){if(p){return JSON.stringify(r)||"null"}return String(r)}else{C=[];s.wrap=true;increaseIndentation();forOwn(r,((r,l)=>{I=false;C.push((_?"":w)+jsesc(r,s)+":"+(_?"":" ")+jsesc(l,s))}));if(I){return"{}"}return"{"+k+C.join(","+k)+k+(_?"":v)+"}"}}const R=s.escapeEverything?b:E;C=r.replace(R,((r,l,d,b,E,_)=>{if(l){if(s.minimal)return l;const r=l.charCodeAt(0);const p=l.charCodeAt(1);if(s.es6){const s=(r-55296)*1024+p-56320+65536;const l=hexadecimal(s,x);return"\\u{"+l+"}"}return fourHexEscape(hexadecimal(r,x))+fourHexEscape(hexadecimal(p,x))}if(d){return fourHexEscape(hexadecimal(d.charCodeAt(0),x))}if(r=="\0"&&!p&&!g.test(_.charAt(E+1))){return"\\0"}if(b){if(b==S||s.escapeEverything){return"\\"+b}return b}if(y.test(r)){return m[r]}if(s.minimal&&!T.test(r)){return r}const w=hexadecimal(r.charCodeAt(0),x);if(p||w.length>2){return fourHexEscape(w)}return"\\x"+("00"+w).slice(-2)}));if(S=="`"){C=C.replace(/\$\{/g,"\\${")}if(s.isScriptContext){C=C.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,p?"\\u003C!--":"\\x3C!--")}if(s.wrap){C=S+C+S}return C};jsesc.version="3.0.2";r.exports=jsesc},696:r=>{const s=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(r,l)=>{if(l._readableState.autoDestroy){throw new Error("The second stream must have the `autoDestroy` option set to `false`")}const p=new Set(Object.keys(r).concat(s));const d={};for(const s of p){if(s in l){continue}d[s]={get(){const l=r[s];const p=typeof l==="function";return p?l.bind(r):l},set(l){r[s]=l},enumerable:true,configurable:false}}Object.defineProperties(l,d);r.once("aborted",(()=>{l.destroy();l.emit("aborted")}));r.once("close",(()=>{if(r.complete){if(l.readable){l.once("end",(()=>{l.emit("close")}))}else{l.emit("close")}}else{l.emit("close")}}));return l}},975:r=>{var s=1e3;var l=s*60;var p=l*60;var d=p*24;var m=d*7;var y=d*365.25;r.exports=function(r,s){s=s||{};var l=typeof r;if(l==="string"&&r.length>0){return parse(r)}else if(l==="number"&&isFinite(r)){return s.long?fmtLong(r):fmtShort(r)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function parse(r){r=String(r);if(r.length>100){return}var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!g){return}var T=parseFloat(g[1]);var b=(g[2]||"ms").toLowerCase();switch(b){case"years":case"year":case"yrs":case"yr":case"y":return T*y;case"weeks":case"week":case"w":return T*m;case"days":case"day":case"d":return T*d;case"hours":case"hour":case"hrs":case"hr":case"h":return T*p;case"minutes":case"minute":case"mins":case"min":case"m":return T*l;case"seconds":case"second":case"secs":case"sec":case"s":return T*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return T;default:return undefined}}function fmtShort(r){var m=Math.abs(r);if(m>=d){return Math.round(r/d)+"d"}if(m>=p){return Math.round(r/p)+"h"}if(m>=l){return Math.round(r/l)+"m"}if(m>=s){return Math.round(r/s)+"s"}return r+"ms"}function fmtLong(r){var m=Math.abs(r);if(m>=d){return plural(r,m,d,"day")}if(m>=p){return plural(r,m,p,"hour")}if(m>=l){return plural(r,m,l,"minute")}if(m>=s){return plural(r,m,s,"second")}return r+" ms"}function plural(r,s,l,p){var d=s>=l*1.5;return Math.round(r/l)+" "+p+(d?"s":"")}},5369:(r,s,l)=>{var p=l(4365);r.exports=p(once);r.exports.strict=p(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(r){var f=function(){if(f.called)return f.value;f.called=true;return f.value=r.apply(this,arguments)};f.called=false;return f}function onceStrict(r){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=r.apply(this,arguments)};var s=r.name||"Function wrapped with `once`";f.onceError=s+" shouldn't be called more than once";f.called=false;return f}},9595:(r,s,l)=>{var p=l(9041);var d=l(7737);var m=l(7628);var noop=function(){};var isObject=function(r){return!Buffer.isBuffer(r)&&typeof r!=="string"};var peek=function(r,s){if(typeof r==="number")r={maxBuffer:r};if(typeof r==="function")return peek(null,r);if(!r)r={};var l=typeof r.maxBuffer==="number"?r.maxBuffer:65535;var y=r.strict;var g=r.newline!==false;var T=[];var b=0;var E=p.obj();var S=d.obj({highWaterMark:1},(function(r,s,p){if(isObject(r))return ready(r,null,p);if(!Buffer.isBuffer(r))r=m(r);if(g){var d=Array.prototype.indexOf.call(r,10);if(d>0&&r[d-1]===13)d--;if(d>-1){T.push(r.slice(0,d));return ready(Buffer.concat(T),r.slice(d),p)}}T.push(r);b+=r.length;if(b<l)return p();if(y)return p(new Error("No newline found"));ready(Buffer.concat(T),null,p)}));var onpreend=function(){if(y)return E.destroy(new Error("No newline found"));E.cork();ready(Buffer.concat(T),null,(function(r){if(r)return E.destroy(r);E.uncork()}))};var ready=function(r,l,p){E.removeListener("preend",onpreend);s(r,(function(s,d){if(s)return p(s);E.setWritable(d);E.setReadable(d);if(r)d.write(r);if(l)d.write(l);l=T=S=null;p()}))};E.on("preend",onpreend);E.setWritable(S);return E};r.exports=peek},2737:r=>{let s=process||{},l=s.argv||[],p=s.env||{};let d=!(!!p.NO_COLOR||l.includes("--no-color"))&&(!!p.FORCE_COLOR||l.includes("--color")||s.platform==="win32"||(s.stdout||{}).isTTY&&p.TERM!=="dumb"||!!p.CI);let formatter=(r,s,l=r)=>p=>{let d=""+p,m=d.indexOf(s,r.length);return~m?r+replaceClose(d,s,l,m)+s:r+d+s};let replaceClose=(r,s,l,p)=>{let d="",m=0;do{d+=r.substring(m,p)+l;m=p+s.length;p=r.indexOf(s,m)}while(~p);return d+r.substring(m)};let createColors=(r=d)=>{let s=r?formatter:()=>String;return{isColorSupported:r,reset:s("[0m","[0m"),bold:s("[1m","[22m","[22m[1m"),dim:s("[2m","[22m","[22m[2m"),italic:s("[3m","[23m"),underline:s("[4m","[24m"),inverse:s("[7m","[27m"),hidden:s("[8m","[28m"),strikethrough:s("[9m","[29m"),black:s("[30m","[39m"),red:s("[31m","[39m"),green:s("[32m","[39m"),yellow:s("[33m","[39m"),blue:s("[34m","[39m"),magenta:s("[35m","[39m"),cyan:s("[36m","[39m"),white:s("[37m","[39m"),gray:s("[90m","[39m"),bgBlack:s("[40m","[49m"),bgRed:s("[41m","[49m"),bgGreen:s("[42m","[49m"),bgYellow:s("[43m","[49m"),bgBlue:s("[44m","[49m"),bgMagenta:s("[45m","[49m"),bgCyan:s("[46m","[49m"),bgWhite:s("[47m","[49m"),blackBright:s("[90m","[39m"),redBright:s("[91m","[39m"),greenBright:s("[92m","[39m"),yellowBright:s("[93m","[39m"),blueBright:s("[94m","[39m"),magentaBright:s("[95m","[39m"),cyanBright:s("[96m","[39m"),whiteBright:s("[97m","[39m"),bgBlackBright:s("[100m","[49m"),bgRedBright:s("[101m","[49m"),bgGreenBright:s("[102m","[49m"),bgYellowBright:s("[103m","[49m"),bgBlueBright:s("[104m","[49m"),bgMagentaBright:s("[105m","[49m"),bgCyanBright:s("[106m","[49m"),bgWhiteBright:s("[107m","[49m")}};r.exports=createColors();r.exports.createColors=createColors},6591:r=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,s,l,p){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var d=arguments.length;var m,y;switch(d){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,s)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,s,l)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,s,l,p)}));default:m=new Array(d-1);y=0;while(y<m.length){m[y++]=arguments[y]}return process.nextTick((function afterTick(){r.apply(null,m)}))}}},8953:(r,s,l)=>{var p=l(5369);var d=l(333);var m=l(9896);var noop=function(){};var y=/^v?\.0/.test(process.version);var isFn=function(r){return typeof r==="function"};var isFS=function(r){if(!y)return false;if(!m)return false;return(r instanceof(m.ReadStream||noop)||r instanceof(m.WriteStream||noop))&&isFn(r.close)};var isRequest=function(r){return r.setHeader&&isFn(r.abort)};var destroyer=function(r,s,l,m){m=p(m);var y=false;r.on("close",(function(){y=true}));d(r,{readable:s,writable:l},(function(r){if(r)return m(r);y=true;m()}));var g=false;return function(s){if(y)return;if(g)return;g=true;if(isFS(r))return r.close(noop);if(isRequest(r))return r.abort();if(isFn(r.destroy))return r.destroy();m(s||new Error("stream was destroyed"))}};var call=function(r){r()};var pipe=function(r,s){return r.pipe(s)};var pump=function(){var r=Array.prototype.slice.call(arguments);var s=isFn(r[r.length-1]||noop)&&r.pop()||noop;if(Array.isArray(r[0]))r=r[0];if(r.length<2)throw new Error("pump requires two streams per minimum");var l;var p=r.map((function(d,m){var y=m<r.length-1;var g=m>0;return destroyer(d,y,g,(function(r){if(!l)l=r;if(r)p.forEach(call);if(y)return;p.forEach(call);s(l)}))}));r.reduce(pipe)};r.exports=pump},9009:(r,s,l)=>{var p=l(8953);var d=l(5099);var m=l(9041);var toArray=function(r){if(!r.length)return[];return Array.isArray(r[0])?r[0]:Array.prototype.slice.call(r)};var define=function(r){var Pumpify=function(){var s=toArray(arguments);if(!(this instanceof Pumpify))return new Pumpify(s);m.call(this,null,null,r);if(s.length)this.setPipeline(s)};d(Pumpify,m);Pumpify.prototype.setPipeline=function(){var r=toArray(arguments);var s=this;var l=false;var d=r[0];var m=r[r.length-1];m=m.readable?m:null;d=d.writable?d:null;var onclose=function(){r[0].emit("error",new Error("stream was destroyed"))};this.on("close",onclose);this.on("prefinish",(function(){if(!l)s.cork()}));p(r,(function(r){s.removeListener("close",onclose);if(r)return s.destroy(r.message==="premature close"?null:r);l=true;if(s._autoDestroy===false)s._autoDestroy=true;s.uncork()}));if(this.destroyed)return onclose();this.setWritable(d);this.setReadable(m)};return Pumpify};r.exports=define({autoDestroy:false,destroy:false});r.exports.obj=define({autoDestroy:false,destroy:false,objectMode:true,highWaterMark:16});r.exports.ctor=define},5018:r=>{class QuickLRU{constructor(r={}){if(!(r.maxSize&&r.maxSize>0)){throw new TypeError("`maxSize` must be a number greater than 0")}this.maxSize=r.maxSize;this.onEviction=r.onEviction;this.cache=new Map;this.oldCache=new Map;this._size=0}_set(r,s){this.cache.set(r,s);this._size++;if(this._size>=this.maxSize){this._size=0;if(typeof this.onEviction==="function"){for(const[r,s]of this.oldCache.entries()){this.onEviction(r,s)}}this.oldCache=this.cache;this.cache=new Map}}get(r){if(this.cache.has(r)){return this.cache.get(r)}if(this.oldCache.has(r)){const s=this.oldCache.get(r);this.oldCache.delete(r);this._set(r,s);return s}}set(r,s){if(this.cache.has(r)){this.cache.set(r,s)}else{this._set(r,s)}return this}has(r){return this.cache.has(r)||this.oldCache.has(r)}peek(r){if(this.cache.has(r)){return this.cache.get(r)}if(this.oldCache.has(r)){return this.oldCache.get(r)}}delete(r){const s=this.cache.delete(r);if(s){this._size--}return this.oldCache.delete(r)||s}clear(){this.cache.clear();this.oldCache.clear();this._size=0}*keys(){for(const[r]of this){yield r}}*values(){for(const[,r]of this){yield r}}*[Symbol.iterator](){for(const r of this.cache){yield r}for(const r of this.oldCache){const[s]=r;if(!this.cache.has(s)){yield r}}}get size(){let r=0;for(const s of this.oldCache.keys()){if(!this.cache.has(s)){r++}}return Math.min(this._size+r,this.maxSize)}}r.exports=QuickLRU},8156:(r,s,l)=>{var p=l(6591);var d=Object.keys||function(r){var s=[];for(var l in r){s.push(l)}return s};r.exports=Duplex;var m=Object.create(l(1896));m.inherits=l(5099);var y=l(1554);var g=l(1958);m.inherits(Duplex,y);{var T=d(g.prototype);for(var b=0;b<T.length;b++){var E=T[b];if(!Duplex.prototype[E])Duplex.prototype[E]=g.prototype[E]}}function Duplex(r){if(!(this instanceof Duplex))return new Duplex(r);y.call(this,r);g.call(this,r);if(r&&r.readable===false)this.readable=false;if(r&&r.writable===false)this.writable=false;this.allowHalfOpen=true;if(r&&r.allowHalfOpen===false)this.allowHalfOpen=false;this.once("end",onend)}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function onend(){if(this.allowHalfOpen||this._writableState.ended)return;p.nextTick(onEndNT,this)}function onEndNT(r){r.end()}Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){if(this._readableState===undefined||this._writableState===undefined){return false}return this._readableState.destroyed&&this._writableState.destroyed},set:function(r){if(this._readableState===undefined||this._writableState===undefined){return}this._readableState.destroyed=r;this._writableState.destroyed=r}});Duplex.prototype._destroy=function(r,s){this.push(null);this.end();p.nextTick(s,r)}},86:(r,s,l)=>{r.exports=PassThrough;var p=l(1548);var d=Object.create(l(1896));d.inherits=l(5099);d.inherits(PassThrough,p);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);p.call(this,r)}PassThrough.prototype._transform=function(r,s,l){l(null,r)}},1554:(r,s,l)=>{var p=l(6591);r.exports=Readable;var d=l(8812);var m;Readable.ReadableState=ReadableState;var y=l(4434).EventEmitter;var EElistenerCount=function(r,s){return r.listeners(s).length};var g=l(6722);var T=l(755).Buffer;var b=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return T.from(r)}function _isUint8Array(r){return T.isBuffer(r)||r instanceof b}var E=Object.create(l(1896));E.inherits=l(5099);var S=l(9023);var _=void 0;if(S&&S.debuglog){_=S.debuglog("stream")}else{_=function(){}}var x=l(4692);var w=l(9058);var v;E.inherits(Readable,g);var A=["error","close","destroy","pause","resume"];function prependListener(r,s,l){if(typeof r.prependListener==="function")return r.prependListener(s,l);if(!r._events||!r._events[s])r.on(s,l);else if(d(r._events[s]))r._events[s].unshift(l);else r._events[s]=[l,r._events[s]]}function ReadableState(r,s){m=m||l(8156);r=r||{};var p=s instanceof m;this.objectMode=!!r.objectMode;if(p)this.objectMode=this.objectMode||!!r.readableObjectMode;var d=r.highWaterMark;var y=r.readableHighWaterMark;var g=this.objectMode?16:16*1024;if(d||d===0)this.highWaterMark=d;else if(p&&(y||y===0))this.highWaterMark=y;else this.highWaterMark=g;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new x;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=r.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(r.encoding){if(!v)v=l(6095).I;this.decoder=new v(r.encoding);this.encoding=r.encoding}}function Readable(r){m=m||l(8156);if(!(this instanceof Readable))return new Readable(r);this._readableState=new ReadableState(r,this);this.readable=true;if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy}g.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(r){if(!this._readableState){return}this._readableState.destroyed=r}});Readable.prototype.destroy=w.destroy;Readable.prototype._undestroy=w.undestroy;Readable.prototype._destroy=function(r,s){this.push(null);s(r)};Readable.prototype.push=function(r,s){var l=this._readableState;var p;if(!l.objectMode){if(typeof r==="string"){s=s||l.defaultEncoding;if(s!==l.encoding){r=T.from(r,s);s=""}p=true}}else{p=true}return readableAddChunk(this,r,s,false,p)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,s,l,p,d){var m=r._readableState;if(s===null){m.reading=false;onEofChunk(r,m)}else{var y;if(!d)y=chunkInvalid(m,s);if(y){r.emit("error",y)}else if(m.objectMode||s&&s.length>0){if(typeof s!=="string"&&!m.objectMode&&Object.getPrototypeOf(s)!==T.prototype){s=_uint8ArrayToBuffer(s)}if(p){if(m.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,m,s,true)}else if(m.ended){r.emit("error",new Error("stream.push() after EOF"))}else{m.reading=false;if(m.decoder&&!l){s=m.decoder.write(s);if(m.objectMode||s.length!==0)addChunk(r,m,s,false);else maybeReadMore(r,m)}else{addChunk(r,m,s,false)}}}else if(!p){m.reading=false}}return needMoreData(m)}function addChunk(r,s,l,p){if(s.flowing&&s.length===0&&!s.sync){r.emit("data",l);r.read(0)}else{s.length+=s.objectMode?1:l.length;if(p)s.buffer.unshift(l);else s.buffer.push(l);if(s.needReadable)emitReadable(r)}maybeReadMore(r,s)}function chunkInvalid(r,s){var l;if(!_isUint8Array(s)&&typeof s!=="string"&&s!==undefined&&!r.objectMode){l=new TypeError("Invalid non-string/buffer chunk")}return l}function needMoreData(r){return!r.ended&&(r.needReadable||r.length<r.highWaterMark||r.length===0)}Readable.prototype.isPaused=function(){return this._readableState.flowing===false};Readable.prototype.setEncoding=function(r){if(!v)v=l(6095).I;this._readableState.decoder=new v(r);this._readableState.encoding=r;return this};var P=8388608;function computeNewHighWaterMark(r){if(r>=P){r=P}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,s){if(r<=0||s.length===0&&s.ended)return 0;if(s.objectMode)return 1;if(r!==r){if(s.flowing&&s.length)return s.buffer.head.data.length;else return s.length}if(r>s.highWaterMark)s.highWaterMark=computeNewHighWaterMark(r);if(r<=s.length)return r;if(!s.ended){s.needReadable=true;return 0}return s.length}Readable.prototype.read=function(r){_("read",r);r=parseInt(r,10);var s=this._readableState;var l=r;if(r!==0)s.emittedReadable=false;if(r===0&&s.needReadable&&(s.length>=s.highWaterMark||s.ended)){_("read: emitReadable",s.length,s.ended);if(s.length===0&&s.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,s);if(r===0&&s.ended){if(s.length===0)endReadable(this);return null}var p=s.needReadable;_("need readable",p);if(s.length===0||s.length-r<s.highWaterMark){p=true;_("length less than watermark",p)}if(s.ended||s.reading){p=false;_("reading or ended",p)}else if(p){_("do read");s.reading=true;s.sync=true;if(s.length===0)s.needReadable=true;this._read(s.highWaterMark);s.sync=false;if(!s.reading)r=howMuchToRead(l,s)}var d;if(r>0)d=fromList(r,s);else d=null;if(d===null){s.needReadable=true;r=0}else{s.length-=r}if(s.length===0){if(!s.ended)s.needReadable=true;if(l!==r&&s.ended)endReadable(this)}if(d!==null)this.emit("data",d);return d};function onEofChunk(r,s){if(s.ended)return;if(s.decoder){var l=s.decoder.end();if(l&&l.length){s.buffer.push(l);s.length+=s.objectMode?1:l.length}}s.ended=true;emitReadable(r)}function emitReadable(r){var s=r._readableState;s.needReadable=false;if(!s.emittedReadable){_("emitReadable",s.flowing);s.emittedReadable=true;if(s.sync)p.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){_("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,s){if(!s.readingMore){s.readingMore=true;p.nextTick(maybeReadMore_,r,s)}}function maybeReadMore_(r,s){var l=s.length;while(!s.reading&&!s.flowing&&!s.ended&&s.length<s.highWaterMark){_("maybeReadMore read 0");r.read(0);if(l===s.length)break;else l=s.length}s.readingMore=false}Readable.prototype._read=function(r){this.emit("error",new Error("_read() is not implemented"))};Readable.prototype.pipe=function(r,s){var l=this;var d=this._readableState;switch(d.pipesCount){case 0:d.pipes=r;break;case 1:d.pipes=[d.pipes,r];break;default:d.pipes.push(r);break}d.pipesCount+=1;_("pipe count=%d opts=%j",d.pipesCount,s);var m=(!s||s.end!==false)&&r!==process.stdout&&r!==process.stderr;var y=m?onend:unpipe;if(d.endEmitted)p.nextTick(y);else l.once("end",y);r.on("unpipe",onunpipe);function onunpipe(r,s){_("onunpipe");if(r===l){if(s&&s.hasUnpiped===false){s.hasUnpiped=true;cleanup()}}}function onend(){_("onend");r.end()}var g=pipeOnDrain(l);r.on("drain",g);var T=false;function cleanup(){_("cleanup");r.removeListener("close",onclose);r.removeListener("finish",onfinish);r.removeListener("drain",g);r.removeListener("error",onerror);r.removeListener("unpipe",onunpipe);l.removeListener("end",onend);l.removeListener("end",unpipe);l.removeListener("data",ondata);T=true;if(d.awaitDrain&&(!r._writableState||r._writableState.needDrain))g()}var b=false;l.on("data",ondata);function ondata(s){_("ondata");b=false;var p=r.write(s);if(false===p&&!b){if((d.pipesCount===1&&d.pipes===r||d.pipesCount>1&&indexOf(d.pipes,r)!==-1)&&!T){_("false write response, pause",d.awaitDrain);d.awaitDrain++;b=true}l.pause()}}function onerror(s){_("onerror",s);unpipe();r.removeListener("error",onerror);if(EElistenerCount(r,"error")===0)r.emit("error",s)}prependListener(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){_("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){_("unpipe");l.unpipe(r)}r.emit("pipe",l);if(!d.flowing){_("pipe resume");l.resume()}return r};function pipeOnDrain(r){return function(){var s=r._readableState;_("pipeOnDrain",s.awaitDrain);if(s.awaitDrain)s.awaitDrain--;if(s.awaitDrain===0&&EElistenerCount(r,"data")){s.flowing=true;flow(r)}}}Readable.prototype.unpipe=function(r){var s=this._readableState;var l={hasUnpiped:false};if(s.pipesCount===0)return this;if(s.pipesCount===1){if(r&&r!==s.pipes)return this;if(!r)r=s.pipes;s.pipes=null;s.pipesCount=0;s.flowing=false;if(r)r.emit("unpipe",this,l);return this}if(!r){var p=s.pipes;var d=s.pipesCount;s.pipes=null;s.pipesCount=0;s.flowing=false;for(var m=0;m<d;m++){p[m].emit("unpipe",this,{hasUnpiped:false})}return this}var y=indexOf(s.pipes,r);if(y===-1)return this;s.pipes.splice(y,1);s.pipesCount-=1;if(s.pipesCount===1)s.pipes=s.pipes[0];r.emit("unpipe",this,l);return this};Readable.prototype.on=function(r,s){var l=g.prototype.on.call(this,r,s);if(r==="data"){if(this._readableState.flowing!==false)this.resume()}else if(r==="readable"){var d=this._readableState;if(!d.endEmitted&&!d.readableListening){d.readableListening=d.needReadable=true;d.emittedReadable=false;if(!d.reading){p.nextTick(nReadingNextTick,this)}else if(d.length){emitReadable(this)}}}return l};Readable.prototype.addListener=Readable.prototype.on;function nReadingNextTick(r){_("readable nexttick read 0");r.read(0)}Readable.prototype.resume=function(){var r=this._readableState;if(!r.flowing){_("resume");r.flowing=true;resume(this,r)}return this};function resume(r,s){if(!s.resumeScheduled){s.resumeScheduled=true;p.nextTick(resume_,r,s)}}function resume_(r,s){if(!s.reading){_("resume read 0");r.read(0)}s.resumeScheduled=false;s.awaitDrain=0;r.emit("resume");flow(r);if(s.flowing&&!s.reading)r.read(0)}Readable.prototype.pause=function(){_("call pause flowing=%j",this._readableState.flowing);if(false!==this._readableState.flowing){_("pause");this._readableState.flowing=false;this.emit("pause")}return this};function flow(r){var s=r._readableState;_("flow",s.flowing);while(s.flowing&&r.read()!==null){}}Readable.prototype.wrap=function(r){var s=this;var l=this._readableState;var p=false;r.on("end",(function(){_("wrapped end");if(l.decoder&&!l.ended){var r=l.decoder.end();if(r&&r.length)s.push(r)}s.push(null)}));r.on("data",(function(d){_("wrapped data");if(l.decoder)d=l.decoder.write(d);if(l.objectMode&&(d===null||d===undefined))return;else if(!l.objectMode&&(!d||!d.length))return;var m=s.push(d);if(!m){p=true;r.pause()}}));for(var d in r){if(this[d]===undefined&&typeof r[d]==="function"){this[d]=function(s){return function(){return r[s].apply(r,arguments)}}(d)}}for(var m=0;m<A.length;m++){r.on(A[m],this.emit.bind(this,A[m]))}this._read=function(s){_("wrapped _read",s);if(p){p=false;r.resume()}};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList;function fromList(r,s){if(s.length===0)return null;var l;if(s.objectMode)l=s.buffer.shift();else if(!r||r>=s.length){if(s.decoder)l=s.buffer.join("");else if(s.buffer.length===1)l=s.buffer.head.data;else l=s.buffer.concat(s.length);s.buffer.clear()}else{l=fromListPartial(r,s.buffer,s.decoder)}return l}function fromListPartial(r,s,l){var p;if(r<s.head.data.length){p=s.head.data.slice(0,r);s.head.data=s.head.data.slice(r)}else if(r===s.head.data.length){p=s.shift()}else{p=l?copyFromBufferString(r,s):copyFromBuffer(r,s)}return p}function copyFromBufferString(r,s){var l=s.head;var p=1;var d=l.data;r-=d.length;while(l=l.next){var m=l.data;var y=r>m.length?m.length:r;if(y===m.length)d+=m;else d+=m.slice(0,r);r-=y;if(r===0){if(y===m.length){++p;if(l.next)s.head=l.next;else s.head=s.tail=null}else{s.head=l;l.data=m.slice(y)}break}++p}s.length-=p;return d}function copyFromBuffer(r,s){var l=T.allocUnsafe(r);var p=s.head;var d=1;p.data.copy(l);r-=p.data.length;while(p=p.next){var m=p.data;var y=r>m.length?m.length:r;m.copy(l,l.length-r,0,y);r-=y;if(r===0){if(y===m.length){++d;if(p.next)s.head=p.next;else s.head=s.tail=null}else{s.head=p;p.data=m.slice(y)}break}++d}s.length-=d;return l}function endReadable(r){var s=r._readableState;if(s.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!s.endEmitted){s.ended=true;p.nextTick(endReadableNT,s,r)}}function endReadableNT(r,s){if(!r.endEmitted&&r.length===0){r.endEmitted=true;s.readable=false;s.emit("end")}}function indexOf(r,s){for(var l=0,p=r.length;l<p;l++){if(r[l]===s)return l}return-1}},1548:(r,s,l)=>{r.exports=Transform;var p=l(8156);var d=Object.create(l(1896));d.inherits=l(5099);d.inherits(Transform,p);function afterTransform(r,s){var l=this._transformState;l.transforming=false;var p=l.writecb;if(!p){return this.emit("error",new Error("write callback called multiple times"))}l.writechunk=null;l.writecb=null;if(s!=null)this.push(s);p(r);var d=this._readableState;d.reading=false;if(d.needReadable||d.length<d.highWaterMark){this._read(d.highWaterMark)}}function Transform(r){if(!(this instanceof Transform))return new Transform(r);p.call(this,r);this._transformState={afterTransform:afterTransform.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=true;this._readableState.sync=false;if(r){if(typeof r.transform==="function")this._transform=r.transform;if(typeof r.flush==="function")this._flush=r.flush}this.on("prefinish",prefinish)}function prefinish(){var r=this;if(typeof this._flush==="function"){this._flush((function(s,l){done(r,s,l)}))}else{done(this,null,null)}}Transform.prototype.push=function(r,s){this._transformState.needTransform=false;return p.prototype.push.call(this,r,s)};Transform.prototype._transform=function(r,s,l){throw new Error("_transform() is not implemented")};Transform.prototype._write=function(r,s,l){var p=this._transformState;p.writecb=l;p.writechunk=r;p.writeencoding=s;if(!p.transforming){var d=this._readableState;if(p.needTransform||d.needReadable||d.length<d.highWaterMark)this._read(d.highWaterMark)}};Transform.prototype._read=function(r){var s=this._transformState;if(s.writechunk!==null&&s.writecb&&!s.transforming){s.transforming=true;this._transform(s.writechunk,s.writeencoding,s.afterTransform)}else{s.needTransform=true}};Transform.prototype._destroy=function(r,s){var l=this;p.prototype._destroy.call(this,r,(function(r){s(r);l.emit("close")}))};function done(r,s,l){if(s)return r.emit("error",s);if(l!=null)r.push(l);if(r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},1958:(r,s,l)=>{var p=l(6591);r.exports=Writable;function WriteReq(r,s,l){this.chunk=r;this.encoding=s;this.callback=l;this.next=null}function CorkedRequest(r){var s=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(s,r)}}var d=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:p.nextTick;var m;Writable.WritableState=WritableState;var y=Object.create(l(1896));y.inherits=l(5099);var g={deprecate:l(5937)};var T=l(6722);var b=l(755).Buffer;var E=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return b.from(r)}function _isUint8Array(r){return b.isBuffer(r)||r instanceof E}var S=l(9058);y.inherits(Writable,T);function nop(){}function WritableState(r,s){m=m||l(8156);r=r||{};var p=s instanceof m;this.objectMode=!!r.objectMode;if(p)this.objectMode=this.objectMode||!!r.writableObjectMode;var d=r.highWaterMark;var y=r.writableHighWaterMark;var g=this.objectMode?16:16*1024;if(d||d===0)this.highWaterMark=d;else if(p&&(y||y===0))this.highWaterMark=y;else this.highWaterMark=g;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var T=r.decodeStrings===false;this.decodeStrings=!T;this.defaultEncoding=r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(r){onwrite(s,r)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var r=this.bufferedRequest;var s=[];while(r){s.push(r);r=r.next}return s};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:g.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(r){}})();var _;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){_=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(_.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{_=function(r){return r instanceof this}}function Writable(r){m=m||l(8156);if(!_.call(Writable,this)&&!(this instanceof m)){return new Writable(r)}this._writableState=new WritableState(r,this);this.writable=true;if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final}T.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(r,s){var l=new Error("write after end");r.emit("error",l);p.nextTick(s,l)}function validChunk(r,s,l,d){var m=true;var y=false;if(l===null){y=new TypeError("May not write null values to stream")}else if(typeof l!=="string"&&l!==undefined&&!s.objectMode){y=new TypeError("Invalid non-string/buffer chunk")}if(y){r.emit("error",y);p.nextTick(d,y);m=false}return m}Writable.prototype.write=function(r,s,l){var p=this._writableState;var d=false;var m=!p.objectMode&&_isUint8Array(r);if(m&&!b.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof s==="function"){l=s;s=null}if(m)s="buffer";else if(!s)s=p.defaultEncoding;if(typeof l!=="function")l=nop;if(p.ended)writeAfterEnd(this,l);else if(m||validChunk(this,p,r,l)){p.pendingcb++;d=writeOrBuffer(this,p,m,r,s,l)}return d};Writable.prototype.cork=function(){var r=this._writableState;r.corked++};Writable.prototype.uncork=function(){var r=this._writableState;if(r.corked){r.corked--;if(!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=r.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);this._writableState.defaultEncoding=r;return this};function decodeChunk(r,s,l){if(!r.objectMode&&r.decodeStrings!==false&&typeof s==="string"){s=b.from(s,l)}return s}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,s,l,p,d,m){if(!l){var y=decodeChunk(s,p,d);if(p!==y){l=true;d="buffer";p=y}}var g=s.objectMode?1:p.length;s.length+=g;var T=s.length<s.highWaterMark;if(!T)s.needDrain=true;if(s.writing||s.corked){var b=s.lastBufferedRequest;s.lastBufferedRequest={chunk:p,encoding:d,isBuf:l,callback:m,next:null};if(b){b.next=s.lastBufferedRequest}else{s.bufferedRequest=s.lastBufferedRequest}s.bufferedRequestCount+=1}else{doWrite(r,s,false,g,p,d,m)}return T}function doWrite(r,s,l,p,d,m,y){s.writelen=p;s.writecb=y;s.writing=true;s.sync=true;if(l)r._writev(d,s.onwrite);else r._write(d,m,s.onwrite);s.sync=false}function onwriteError(r,s,l,d,m){--s.pendingcb;if(l){p.nextTick(m,d);p.nextTick(finishMaybe,r,s);r._writableState.errorEmitted=true;r.emit("error",d)}else{m(d);r._writableState.errorEmitted=true;r.emit("error",d);finishMaybe(r,s)}}function onwriteStateUpdate(r){r.writing=false;r.writecb=null;r.length-=r.writelen;r.writelen=0}function onwrite(r,s){var l=r._writableState;var p=l.sync;var m=l.writecb;onwriteStateUpdate(l);if(s)onwriteError(r,l,p,s,m);else{var y=needFinish(l);if(!y&&!l.corked&&!l.bufferProcessing&&l.bufferedRequest){clearBuffer(r,l)}if(p){d(afterWrite,r,l,y,m)}else{afterWrite(r,l,y,m)}}}function afterWrite(r,s,l,p){if(!l)onwriteDrain(r,s);s.pendingcb--;p();finishMaybe(r,s)}function onwriteDrain(r,s){if(s.length===0&&s.needDrain){s.needDrain=false;r.emit("drain")}}function clearBuffer(r,s){s.bufferProcessing=true;var l=s.bufferedRequest;if(r._writev&&l&&l.next){var p=s.bufferedRequestCount;var d=new Array(p);var m=s.corkedRequestsFree;m.entry=l;var y=0;var g=true;while(l){d[y]=l;if(!l.isBuf)g=false;l=l.next;y+=1}d.allBuffers=g;doWrite(r,s,true,s.length,d,"",m.finish);s.pendingcb++;s.lastBufferedRequest=null;if(m.next){s.corkedRequestsFree=m.next;m.next=null}else{s.corkedRequestsFree=new CorkedRequest(s)}s.bufferedRequestCount=0}else{while(l){var T=l.chunk;var b=l.encoding;var E=l.callback;var S=s.objectMode?1:T.length;doWrite(r,s,false,S,T,b,E);l=l.next;s.bufferedRequestCount--;if(s.writing){break}}if(l===null)s.lastBufferedRequest=null}s.bufferedRequest=l;s.bufferProcessing=false}Writable.prototype._write=function(r,s,l){l(new Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=function(r,s,l){var p=this._writableState;if(typeof r==="function"){l=r;r=null;s=null}else if(typeof s==="function"){l=s;s=null}if(r!==null&&r!==undefined)this.write(r,s);if(p.corked){p.corked=1;this.uncork()}if(!p.ending)endWritable(this,p,l)};function needFinish(r){return r.ending&&r.length===0&&r.bufferedRequest===null&&!r.finished&&!r.writing}function callFinal(r,s){r._final((function(l){s.pendingcb--;if(l){r.emit("error",l)}s.prefinished=true;r.emit("prefinish");finishMaybe(r,s)}))}function prefinish(r,s){if(!s.prefinished&&!s.finalCalled){if(typeof r._final==="function"){s.pendingcb++;s.finalCalled=true;p.nextTick(callFinal,r,s)}else{s.prefinished=true;r.emit("prefinish")}}}function finishMaybe(r,s){var l=needFinish(s);if(l){prefinish(r,s);if(s.pendingcb===0){s.finished=true;r.emit("finish")}}return l}function endWritable(r,s,l){s.ending=true;finishMaybe(r,s);if(l){if(s.finished)p.nextTick(l);else r.once("finish",l)}s.ended=true;r.writable=false}function onCorkedFinish(r,s,l){var p=r.entry;r.entry=null;while(p){var d=p.callback;s.pendingcb--;d(l);p=p.next}s.corkedRequestsFree.next=r}Object.defineProperty(Writable.prototype,"destroyed",{get:function(){if(this._writableState===undefined){return false}return this._writableState.destroyed},set:function(r){if(!this._writableState){return}this._writableState.destroyed=r}});Writable.prototype.destroy=S.destroy;Writable.prototype._undestroy=S.undestroy;Writable.prototype._destroy=function(r,s){this.end();s(r)}},4692:(r,s,l)=>{function _classCallCheck(r,s){if(!(r instanceof s)){throw new TypeError("Cannot call a class as a function")}}var p=l(755).Buffer;var d=l(9023);function copyBuffer(r,s,l){r.copy(s,l)}r.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(r){var s={data:r,next:null};if(this.length>0)this.tail.next=s;else this.head=s;this.tail=s;++this.length};BufferList.prototype.unshift=function unshift(r){var s={data:r,next:this.head};if(this.length===0)this.tail=s;this.head=s;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(r){if(this.length===0)return"";var s=this.head;var l=""+s.data;while(s=s.next){l+=r+s.data}return l};BufferList.prototype.concat=function concat(r){if(this.length===0)return p.alloc(0);var s=p.allocUnsafe(r>>>0);var l=this.head;var d=0;while(l){copyBuffer(l.data,s,d);d+=l.data.length;l=l.next}return s};return BufferList}();if(d&&d.inspect&&d.inspect.custom){r.exports.prototype[d.inspect.custom]=function(){var r=d.inspect({length:this.length});return this.constructor.name+" "+r}}},9058:(r,s,l)=>{var p=l(6591);function destroy(r,s){var l=this;var d=this._readableState&&this._readableState.destroyed;var m=this._writableState&&this._writableState.destroyed;if(d||m){if(s){s(r)}else if(r){if(!this._writableState){p.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;p.nextTick(emitErrorNT,this,r)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(r||null,(function(r){if(!s&&r){if(!l._writableState){p.nextTick(emitErrorNT,l,r)}else if(!l._writableState.errorEmitted){l._writableState.errorEmitted=true;p.nextTick(emitErrorNT,l,r)}}else if(s){s(r)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(r,s){r.emit("error",s)}r.exports={destroy:destroy,undestroy:undestroy}},6722:(r,s,l)=>{r.exports=l(2203)},7324:(r,s,l)=>{var p=l(2203);if(process.env.READABLE_STREAM==="disable"&&p){r.exports=p;s=r.exports=p.Readable;s.Readable=p.Readable;s.Writable=p.Writable;s.Duplex=p.Duplex;s.Transform=p.Transform;s.PassThrough=p.PassThrough;s.Stream=p}else{s=r.exports=l(1554);s.Stream=p||s;s.Readable=s;s.Writable=l(1958);s.Duplex=l(8156);s.Transform=l(1548);s.PassThrough=l(86)}},7191:(r,s,l)=>{const p=l(4756);r.exports=(r={},s=p.connect)=>new Promise(((l,p)=>{let d=false;let m;const callback=async()=>{await y;m.off("timeout",onTimeout);m.off("error",p);if(r.resolveSocket){l({alpnProtocol:m.alpnProtocol,socket:m,timeout:d});if(d){await Promise.resolve();m.emit("timeout")}}else{m.destroy();l({alpnProtocol:m.alpnProtocol,timeout:d})}};const onTimeout=async()=>{d=true;callback()};const y=(async()=>{try{m=await s(r,callback);m.on("error",p);m.once("timeout",onTimeout)}catch(r){p(r)}})()}))},755:(r,s,l)=>{var p=l(181);var d=p.Buffer;function copyProps(r,s){for(var l in r){s[l]=r[l]}}if(d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow){r.exports=p}else{copyProps(p,s);s.Buffer=SafeBuffer}function SafeBuffer(r,s,l){return d(r,s,l)}copyProps(d,SafeBuffer);SafeBuffer.from=function(r,s,l){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return d(r,s,l)};SafeBuffer.alloc=function(r,s,l){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var p=d(r);if(s!==undefined){if(typeof l==="string"){p.fill(s,l)}else{p.fill(s)}}else{p.fill(0)}return p};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return d(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return p.SlowBuffer(r)}},2046:(r,s,l)=>{const p=Symbol("SemVer ANY");class Comparator{static get ANY(){return p}constructor(r,s){s=d(s);if(r instanceof Comparator){if(r.loose===!!s.loose){return r}else{r=r.value}}r=r.trim().split(/\s+/).join(" ");T("comparator",r,s);this.options=s;this.loose=!!s.loose;this.parse(r);if(this.semver===p){this.value=""}else{this.value=this.operator+this.semver.version}T("comp",this)}parse(r){const s=this.options.loose?m[y.COMPARATORLOOSE]:m[y.COMPARATOR];const l=r.match(s);if(!l){throw new TypeError(`Invalid comparator: ${r}`)}this.operator=l[1]!==undefined?l[1]:"";if(this.operator==="="){this.operator=""}if(!l[2]){this.semver=p}else{this.semver=new b(l[2],this.options.loose)}}toString(){return this.value}test(r){T("Comparator.test",r,this.options.loose);if(this.semver===p||r===p){return true}if(typeof r==="string"){try{r=new b(r,this.options)}catch(r){return false}}return g(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new E(r.value,s).test(this.value)}else if(r.operator===""){if(r.value===""){return true}return new E(this.value,s).test(r.semver)}s=d(s);if(s.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")){return false}if(!s.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&r.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&r.operator.startsWith("<")){return true}if(this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")){return true}if(g(this.semver,"<",r.semver,s)&&this.operator.startsWith(">")&&r.operator.startsWith("<")){return true}if(g(this.semver,">",r.semver,s)&&this.operator.startsWith("<")&&r.operator.startsWith(">")){return true}return false}}r.exports=Comparator;const d=l(433);const{safeRe:m,t:y}=l(591);const g=l(9185);const T=l(8022);const b=l(634);const E=l(5697)},5697:(r,s,l)=>{const p=/\s+/g;class Range{constructor(r,s){s=y(s);if(r instanceof Range){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease){return r}else{return new Range(r.raw,s)}}if(r instanceof g){this.raw=r.value;this.set=[[r]];this.formatted=undefined;return this}this.options=s;this.loose=!!s.loose;this.includePrerelease=!!s.includePrerelease;this.raw=r.trim().replace(p," ");this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((r=>r.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const r=this.set[0];this.set=this.set.filter((r=>!isNullSet(r[0])));if(this.set.length===0){this.set=[r]}else if(this.set.length>1){for(const r of this.set){if(r.length===1&&isAny(r[0])){this.set=[r];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let r=0;r<this.set.length;r++){if(r>0){this.formatted+="||"}const s=this.set[r];for(let r=0;r<s.length;r++){if(r>0){this.formatted+=" "}this.formatted+=s[r].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){const s=(this.options.includePrerelease&&v)|(this.options.loose&&A);const l=s+":"+r;const p=m.get(l);if(p){return p}const d=this.options.loose;const y=d?E[S.HYPHENRANGELOOSE]:E[S.HYPHENRANGE];r=r.replace(y,hyphenReplace(this.options.includePrerelease));T("hyphen replace",r);r=r.replace(E[S.COMPARATORTRIM],_);T("comparator trim",r);r=r.replace(E[S.TILDETRIM],x);T("tilde trim",r);r=r.replace(E[S.CARETTRIM],w);T("caret trim",r);let b=r.split(" ").map((r=>parseComparator(r,this.options))).join(" ").split(/\s+/).map((r=>replaceGTE0(r,this.options)));if(d){b=b.filter((r=>{T("loose invalid filter",r,this.options);return!!r.match(E[S.COMPARATORLOOSE])}))}T("range list",b);const P=new Map;const k=b.map((r=>new g(r,this.options)));for(const r of k){if(isNullSet(r)){return[r]}P.set(r.value,r)}if(P.size>1&&P.has("")){P.delete("")}const C=[...P.values()];m.set(l,C);return C}intersects(r,s){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((l=>isSatisfiable(l,s)&&r.set.some((r=>isSatisfiable(r,s)&&l.every((l=>r.every((r=>l.intersects(r,s)))))))))}test(r){if(!r){return false}if(typeof r==="string"){try{r=new b(r,this.options)}catch(r){return false}}for(let s=0;s<this.set.length;s++){if(testSet(this.set[s],r,this.options)){return true}}return false}}r.exports=Range;const d=l(8784);const m=new d;const y=l(433);const g=l(2046);const T=l(8022);const b=l(634);const{safeRe:E,t:S,comparatorTrimReplace:_,tildeTrimReplace:x,caretTrimReplace:w}=l(591);const{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:A}=l(6432);const isNullSet=r=>r.value==="<0.0.0-0";const isAny=r=>r.value==="";const isSatisfiable=(r,s)=>{let l=true;const p=r.slice();let d=p.pop();while(l&&p.length){l=p.every((r=>d.intersects(r,s)));d=p.pop()}return l};const parseComparator=(r,s)=>{r=r.replace(E[S.BUILD],"");T("comp",r,s);r=replaceCarets(r,s);T("caret",r);r=replaceTildes(r,s);T("tildes",r);r=replaceXRanges(r,s);T("xrange",r);r=replaceStars(r,s);T("stars",r);return r};const isX=r=>!r||r.toLowerCase()==="x"||r==="*";const replaceTildes=(r,s)=>r.trim().split(/\s+/).map((r=>replaceTilde(r,s))).join(" ");const replaceTilde=(r,s)=>{const l=s.loose?E[S.TILDELOOSE]:E[S.TILDE];return r.replace(l,((s,l,p,d,m)=>{T("tilde",r,s,l,p,d,m);let y;if(isX(l)){y=""}else if(isX(p)){y=`>=${l}.0.0 <${+l+1}.0.0-0`}else if(isX(d)){y=`>=${l}.${p}.0 <${l}.${+p+1}.0-0`}else if(m){T("replaceTilde pr",m);y=`>=${l}.${p}.${d}-${m} <${l}.${+p+1}.0-0`}else{y=`>=${l}.${p}.${d} <${l}.${+p+1}.0-0`}T("tilde return",y);return y}))};const replaceCarets=(r,s)=>r.trim().split(/\s+/).map((r=>replaceCaret(r,s))).join(" ");const replaceCaret=(r,s)=>{T("caret",r,s);const l=s.loose?E[S.CARETLOOSE]:E[S.CARET];const p=s.includePrerelease?"-0":"";return r.replace(l,((s,l,d,m,y)=>{T("caret",r,s,l,d,m,y);let g;if(isX(l)){g=""}else if(isX(d)){g=`>=${l}.0.0${p} <${+l+1}.0.0-0`}else if(isX(m)){if(l==="0"){g=`>=${l}.${d}.0${p} <${l}.${+d+1}.0-0`}else{g=`>=${l}.${d}.0${p} <${+l+1}.0.0-0`}}else if(y){T("replaceCaret pr",y);if(l==="0"){if(d==="0"){g=`>=${l}.${d}.${m}-${y} <${l}.${d}.${+m+1}-0`}else{g=`>=${l}.${d}.${m}-${y} <${l}.${+d+1}.0-0`}}else{g=`>=${l}.${d}.${m}-${y} <${+l+1}.0.0-0`}}else{T("no pr");if(l==="0"){if(d==="0"){g=`>=${l}.${d}.${m}${p} <${l}.${d}.${+m+1}-0`}else{g=`>=${l}.${d}.${m}${p} <${l}.${+d+1}.0-0`}}else{g=`>=${l}.${d}.${m} <${+l+1}.0.0-0`}}T("caret return",g);return g}))};const replaceXRanges=(r,s)=>{T("replaceXRanges",r,s);return r.split(/\s+/).map((r=>replaceXRange(r,s))).join(" ")};const replaceXRange=(r,s)=>{r=r.trim();const l=s.loose?E[S.XRANGELOOSE]:E[S.XRANGE];return r.replace(l,((l,p,d,m,y,g)=>{T("xRange",r,l,p,d,m,y,g);const b=isX(d);const E=b||isX(m);const S=E||isX(y);const _=S;if(p==="="&&_){p=""}g=s.includePrerelease?"-0":"";if(b){if(p===">"||p==="<"){l="<0.0.0-0"}else{l="*"}}else if(p&&_){if(E){m=0}y=0;if(p===">"){p=">=";if(E){d=+d+1;m=0;y=0}else{m=+m+1;y=0}}else if(p==="<="){p="<";if(E){d=+d+1}else{m=+m+1}}if(p==="<"){g="-0"}l=`${p+d}.${m}.${y}${g}`}else if(E){l=`>=${d}.0.0${g} <${+d+1}.0.0-0`}else if(S){l=`>=${d}.${m}.0${g} <${d}.${+m+1}.0-0`}T("xRange return",l);return l}))};const replaceStars=(r,s)=>{T("replaceStars",r,s);return r.trim().replace(E[S.STAR],"")};const replaceGTE0=(r,s)=>{T("replaceGTE0",r,s);return r.trim().replace(E[s.includePrerelease?S.GTE0PRE:S.GTE0],"")};const hyphenReplace=r=>(s,l,p,d,m,y,g,T,b,E,S,_)=>{if(isX(p)){l=""}else if(isX(d)){l=`>=${p}.0.0${r?"-0":""}`}else if(isX(m)){l=`>=${p}.${d}.0${r?"-0":""}`}else if(y){l=`>=${l}`}else{l=`>=${l}${r?"-0":""}`}if(isX(b)){T=""}else if(isX(E)){T=`<${+b+1}.0.0-0`}else if(isX(S)){T=`<${b}.${+E+1}.0-0`}else if(_){T=`<=${b}.${E}.${S}-${_}`}else if(r){T=`<${b}.${E}.${+S+1}-0`}else{T=`<=${T}`}return`${l} ${T}`.trim()};const testSet=(r,s,l)=>{for(let l=0;l<r.length;l++){if(!r[l].test(s)){return false}}if(s.prerelease.length&&!l.includePrerelease){for(let l=0;l<r.length;l++){T(r[l].semver);if(r[l].semver===g.ANY){continue}if(r[l].semver.prerelease.length>0){const p=r[l].semver;if(p.major===s.major&&p.minor===s.minor&&p.patch===s.patch){return true}}}return false}return true}},634:(r,s,l)=>{const p=l(8022);const{MAX_LENGTH:d,MAX_SAFE_INTEGER:m}=l(6432);const{safeRe:y,t:g}=l(591);const T=l(433);const{compareIdentifiers:b}=l(8062);class SemVer{constructor(r,s){s=T(s);if(r instanceof SemVer){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease){return r}else{r=r.version}}else if(typeof r!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`)}if(r.length>d){throw new TypeError(`version is longer than ${d} characters`)}p("SemVer",r,s);this.options=s;this.loose=!!s.loose;this.includePrerelease=!!s.includePrerelease;const l=r.trim().match(s.loose?y[g.LOOSE]:y[g.FULL]);if(!l){throw new TypeError(`Invalid Version: ${r}`)}this.raw=r;this.major=+l[1];this.minor=+l[2];this.patch=+l[3];if(this.major>m||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>m||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>m||this.patch<0){throw new TypeError("Invalid patch version")}if(!l[4]){this.prerelease=[]}else{this.prerelease=l[4].split(".").map((r=>{if(/^[0-9]+$/.test(r)){const s=+r;if(s>=0&&s<m){return s}}return r}))}this.build=l[5]?l[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(r){p("SemVer.compare",this.version,this.options,r);if(!(r instanceof SemVer)){if(typeof r==="string"&&r===this.version){return 0}r=new SemVer(r,this.options)}if(r.version===this.version){return 0}return this.compareMain(r)||this.comparePre(r)}compareMain(r){if(!(r instanceof SemVer)){r=new SemVer(r,this.options)}if(this.major<r.major){return-1}if(this.major>r.major){return 1}if(this.minor<r.minor){return-1}if(this.minor>r.minor){return 1}if(this.patch<r.patch){return-1}if(this.patch>r.patch){return 1}return 0}comparePre(r){if(!(r instanceof SemVer)){r=new SemVer(r,this.options)}if(this.prerelease.length&&!r.prerelease.length){return-1}else if(!this.prerelease.length&&r.prerelease.length){return 1}else if(!this.prerelease.length&&!r.prerelease.length){return 0}let s=0;do{const l=this.prerelease[s];const d=r.prerelease[s];p("prerelease compare",s,l,d);if(l===undefined&&d===undefined){return 0}else if(d===undefined){return 1}else if(l===undefined){return-1}else if(l===d){continue}else{return b(l,d)}}while(++s)}compareBuild(r){if(!(r instanceof SemVer)){r=new SemVer(r,this.options)}let s=0;do{const l=this.build[s];const d=r.build[s];p("build compare",s,l,d);if(l===undefined&&d===undefined){return 0}else if(d===undefined){return 1}else if(l===undefined){return-1}else if(l===d){continue}else{return b(l,d)}}while(++s)}inc(r,s,l){if(r.startsWith("pre")){if(!s&&l===false){throw new Error("invalid increment argument: identifier is empty")}if(s){const r=`-${s}`.match(this.options.loose?y[g.PRERELEASELOOSE]:y[g.PRERELEASE]);if(!r||r[1]!==s){throw new Error(`invalid identifier: ${s}`)}}}switch(r){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",s,l);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",s,l);break;case"prepatch":this.prerelease.length=0;this.inc("patch",s,l);this.inc("pre",s,l);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",s,l)}this.inc("pre",s,l);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const r=Number(l)?1:0;if(this.prerelease.length===0){this.prerelease=[r]}else{let p=this.prerelease.length;while(--p>=0){if(typeof this.prerelease[p]==="number"){this.prerelease[p]++;p=-2}}if(p===-1){if(s===this.prerelease.join(".")&&l===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(r)}}if(s){let p=[s,r];if(l===false){p=[s]}if(b(this.prerelease[0],s)===0){if(isNaN(this.prerelease[1])){this.prerelease=p}}else{this.prerelease=p}}break}default:throw new Error(`invalid increment argument: ${r}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}r.exports=SemVer},9796:(r,s,l)=>{const p=l(3694);const clean=(r,s)=>{const l=p(r.trim().replace(/^[=v]+/,""),s);return l?l.version:null};r.exports=clean},9185:(r,s,l)=>{const p=l(2275);const d=l(8529);const m=l(1810);const y=l(8411);const g=l(4757);const T=l(5641);const cmp=(r,s,l,b)=>{switch(s){case"===":if(typeof r==="object"){r=r.version}if(typeof l==="object"){l=l.version}return r===l;case"!==":if(typeof r==="object"){r=r.version}if(typeof l==="object"){l=l.version}return r!==l;case"":case"=":case"==":return p(r,l,b);case"!=":return d(r,l,b);case">":return m(r,l,b);case">=":return y(r,l,b);case"<":return g(r,l,b);case"<=":return T(r,l,b);default:throw new TypeError(`Invalid operator: ${s}`)}};r.exports=cmp},7084:(r,s,l)=>{const p=l(634);const d=l(3694);const{safeRe:m,t:y}=l(591);const coerce=(r,s)=>{if(r instanceof p){return r}if(typeof r==="number"){r=String(r)}if(typeof r!=="string"){return null}s=s||{};let l=null;if(!s.rtl){l=r.match(s.includePrerelease?m[y.COERCEFULL]:m[y.COERCE])}else{const p=s.includePrerelease?m[y.COERCERTLFULL]:m[y.COERCERTL];let d;while((d=p.exec(r))&&(!l||l.index+l[0].length!==r.length)){if(!l||d.index+d[0].length!==l.index+l[0].length){l=d}p.lastIndex=d.index+d[1].length+d[2].length}p.lastIndex=-1}if(l===null){return null}const g=l[2];const T=l[3]||"0";const b=l[4]||"0";const E=s.includePrerelease&&l[5]?`-${l[5]}`:"";const S=s.includePrerelease&&l[6]?`+${l[6]}`:"";return d(`${g}.${T}.${b}${E}${S}`,s)};r.exports=coerce},8280:(r,s,l)=>{const p=l(634);const compareBuild=(r,s,l)=>{const d=new p(r,l);const m=new p(s,l);return d.compare(m)||d.compareBuild(m)};r.exports=compareBuild},9641:(r,s,l)=>{const p=l(5002);const compareLoose=(r,s)=>p(r,s,true);r.exports=compareLoose},5002:(r,s,l)=>{const p=l(634);const compare=(r,s,l)=>new p(r,l).compare(new p(s,l));r.exports=compare},1442:(r,s,l)=>{const p=l(3694);const diff=(r,s)=>{const l=p(r,null,true);const d=p(s,null,true);const m=l.compare(d);if(m===0){return null}const y=m>0;const g=y?l:d;const T=y?d:l;const b=!!g.prerelease.length;const E=!!T.prerelease.length;if(E&&!b){if(!T.patch&&!T.minor){return"major"}if(T.compareMain(g)===0){if(T.minor&&!T.patch){return"minor"}return"patch"}}const S=b?"pre":"";if(l.major!==d.major){return S+"major"}if(l.minor!==d.minor){return S+"minor"}if(l.patch!==d.patch){return S+"patch"}return"prerelease"};r.exports=diff},2275:(r,s,l)=>{const p=l(5002);const eq=(r,s,l)=>p(r,s,l)===0;r.exports=eq},1810:(r,s,l)=>{const p=l(5002);const gt=(r,s,l)=>p(r,s,l)>0;r.exports=gt},8411:(r,s,l)=>{const p=l(5002);const gte=(r,s,l)=>p(r,s,l)>=0;r.exports=gte},4901:(r,s,l)=>{const p=l(634);const inc=(r,s,l,d,m)=>{if(typeof l==="string"){m=d;d=l;l=undefined}try{return new p(r instanceof p?r.version:r,l).inc(s,d,m).version}catch(r){return null}};r.exports=inc},4757:(r,s,l)=>{const p=l(5002);const lt=(r,s,l)=>p(r,s,l)<0;r.exports=lt},5641:(r,s,l)=>{const p=l(5002);const lte=(r,s,l)=>p(r,s,l)<=0;r.exports=lte},9956:(r,s,l)=>{const p=l(634);const major=(r,s)=>new p(r,s).major;r.exports=major},520:(r,s,l)=>{const p=l(634);const minor=(r,s)=>new p(r,s).minor;r.exports=minor},8529:(r,s,l)=>{const p=l(5002);const neq=(r,s,l)=>p(r,s,l)!==0;r.exports=neq},3694:(r,s,l)=>{const p=l(634);const parse=(r,s,l=false)=>{if(r instanceof p){return r}try{return new p(r,s)}catch(r){if(!l){return null}throw r}};r.exports=parse},9935:(r,s,l)=>{const p=l(634);const patch=(r,s)=>new p(r,s).patch;r.exports=patch},2327:(r,s,l)=>{const p=l(3694);const prerelease=(r,s)=>{const l=p(r,s);return l&&l.prerelease.length?l.prerelease:null};r.exports=prerelease},1980:(r,s,l)=>{const p=l(5002);const rcompare=(r,s,l)=>p(s,r,l);r.exports=rcompare},6147:(r,s,l)=>{const p=l(8280);const rsort=(r,s)=>r.sort(((r,l)=>p(l,r,s)));r.exports=rsort},4676:(r,s,l)=>{const p=l(5697);const satisfies=(r,s,l)=>{try{s=new p(s,l)}catch(r){return false}return s.test(r)};r.exports=satisfies},8877:(r,s,l)=>{const p=l(8280);const sort=(r,s)=>r.sort(((r,l)=>p(r,l,s)));r.exports=sort},8531:(r,s,l)=>{const p=l(3694);const valid=(r,s)=>{const l=p(r,s);return l?l.version:null};r.exports=valid},3675:(r,s,l)=>{const p=l(591);const d=l(6432);const m=l(634);const y=l(8062);const g=l(3694);const T=l(8531);const b=l(9796);const E=l(4901);const S=l(1442);const _=l(9956);const x=l(520);const w=l(9935);const v=l(2327);const A=l(5002);const P=l(1980);const k=l(9641);const C=l(8280);const I=l(8877);const O=l(6147);const N=l(1810);const L=l(4757);const D=l(2275);const R=l(8529);const M=l(8411);const F=l(5641);const B=l(9185);const j=l(7084);const $=l(2046);const U=l(5697);const G=l(4676);const q=l(1801);const W=l(1574);const H=l(3492);const V=l(3639);const K=l(7784);const z=l(901);const Y=l(4165);const J=l(5500);const X=l(7113);const Q=l(3803);const Z=l(7034);r.exports={parse:g,valid:T,clean:b,inc:E,diff:S,major:_,minor:x,patch:w,prerelease:v,compare:A,rcompare:P,compareLoose:k,compareBuild:C,sort:I,rsort:O,gt:N,lt:L,eq:D,neq:R,gte:M,lte:F,cmp:B,coerce:j,Comparator:$,Range:U,satisfies:G,toComparators:q,maxSatisfying:W,minSatisfying:H,minVersion:V,validRange:K,outside:z,gtr:Y,ltr:J,intersects:X,simplifyRange:Q,subset:Z,SemVer:m,re:p.re,src:p.src,tokens:p.t,SEMVER_SPEC_VERSION:d.SEMVER_SPEC_VERSION,RELEASE_TYPES:d.RELEASE_TYPES,compareIdentifiers:y.compareIdentifiers,rcompareIdentifiers:y.rcompareIdentifiers}},6432:r=>{const s="2.0.0";const l=256;const p=Number.MAX_SAFE_INTEGER||9007199254740991;const d=16;const m=l-6;const y=["major","premajor","minor","preminor","patch","prepatch","prerelease"];r.exports={MAX_LENGTH:l,MAX_SAFE_COMPONENT_LENGTH:d,MAX_SAFE_BUILD_LENGTH:m,MAX_SAFE_INTEGER:p,RELEASE_TYPES:y,SEMVER_SPEC_VERSION:s,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},8022:r=>{const s=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};r.exports=s},8062:r=>{const s=/^[0-9]+$/;const compareIdentifiers=(r,l)=>{if(typeof r==="number"&&typeof l==="number"){return r===l?0:r<l?-1:1}const p=s.test(r);const d=s.test(l);if(p&&d){r=+r;l=+l}return r===l?0:p&&!d?-1:d&&!p?1:r<l?-1:1};const rcompareIdentifiers=(r,s)=>compareIdentifiers(s,r);r.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},8784:r=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(r){const s=this.map.get(r);if(s===undefined){return undefined}else{this.map.delete(r);this.map.set(r,s);return s}}delete(r){return this.map.delete(r)}set(r,s){const l=this.delete(r);if(!l&&s!==undefined){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(r,s)}return this}}r.exports=LRUCache},433:r=>{const s=Object.freeze({loose:true});const l=Object.freeze({});const parseOptions=r=>{if(!r){return l}if(typeof r!=="object"){return s}return r};r.exports=parseOptions},591:(r,s,l)=>{const{MAX_SAFE_COMPONENT_LENGTH:p,MAX_SAFE_BUILD_LENGTH:d,MAX_LENGTH:m}=l(6432);const y=l(8022);s=r.exports={};const g=s.re=[];const T=s.safeRe=[];const b=s.src=[];const E=s.safeSrc=[];const S=s.t={};let _=0;const x="[a-zA-Z0-9-]";const w=[["\\s",1],["\\d",m],[x,d]];const makeSafeRegex=r=>{for(const[s,l]of w){r=r.split(`${s}*`).join(`${s}{0,${l}}`).split(`${s}+`).join(`${s}{1,${l}}`)}return r};const createToken=(r,s,l)=>{const p=makeSafeRegex(s);const d=_++;y(r,d,s);S[r]=d;b[d]=s;E[d]=p;g[d]=new RegExp(s,l?"g":undefined);T[d]=new RegExp(p,l?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${x}*`);createToken("MAINVERSION",`(${b[S.NUMERICIDENTIFIER]})\\.`+`(${b[S.NUMERICIDENTIFIER]})\\.`+`(${b[S.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${b[S.NUMERICIDENTIFIERLOOSE]})\\.`+`(${b[S.NUMERICIDENTIFIERLOOSE]})\\.`+`(${b[S.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${b[S.NONNUMERICIDENTIFIER]}|${b[S.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${b[S.NONNUMERICIDENTIFIER]}|${b[S.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${b[S.PRERELEASEIDENTIFIER]}(?:\\.${b[S.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${b[S.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${b[S.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${x}+`);createToken("BUILD",`(?:\\+(${b[S.BUILDIDENTIFIER]}(?:\\.${b[S.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${b[S.MAINVERSION]}${b[S.PRERELEASE]}?${b[S.BUILD]}?`);createToken("FULL",`^${b[S.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${b[S.MAINVERSIONLOOSE]}${b[S.PRERELEASELOOSE]}?${b[S.BUILD]}?`);createToken("LOOSE",`^${b[S.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${b[S.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${b[S.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${b[S.XRANGEIDENTIFIER]})`+`(?:\\.(${b[S.XRANGEIDENTIFIER]})`+`(?:\\.(${b[S.XRANGEIDENTIFIER]})`+`(?:${b[S.PRERELEASE]})?${b[S.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${b[S.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${b[S.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${b[S.XRANGEIDENTIFIERLOOSE]})`+`(?:${b[S.PRERELEASELOOSE]})?${b[S.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${b[S.GTLT]}\\s*${b[S.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${b[S.GTLT]}\\s*${b[S.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${p}})`+`(?:\\.(\\d{1,${p}}))?`+`(?:\\.(\\d{1,${p}}))?`);createToken("COERCE",`${b[S.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",b[S.COERCEPLAIN]+`(?:${b[S.PRERELEASE]})?`+`(?:${b[S.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",b[S.COERCE],true);createToken("COERCERTLFULL",b[S.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${b[S.LONETILDE]}\\s+`,true);s.tildeTrimReplace="$1~";createToken("TILDE",`^${b[S.LONETILDE]}${b[S.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${b[S.LONETILDE]}${b[S.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${b[S.LONECARET]}\\s+`,true);s.caretTrimReplace="$1^";createToken("CARET",`^${b[S.LONECARET]}${b[S.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${b[S.LONECARET]}${b[S.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${b[S.GTLT]}\\s*(${b[S.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${b[S.GTLT]}\\s*(${b[S.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${b[S.GTLT]}\\s*(${b[S.LOOSEPLAIN]}|${b[S.XRANGEPLAIN]})`,true);s.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${b[S.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${b[S.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${b[S.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${b[S.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},4165:(r,s,l)=>{const p=l(901);const gtr=(r,s,l)=>p(r,s,">",l);r.exports=gtr},7113:(r,s,l)=>{const p=l(5697);const intersects=(r,s,l)=>{r=new p(r,l);s=new p(s,l);return r.intersects(s,l)};r.exports=intersects},5500:(r,s,l)=>{const p=l(901);const ltr=(r,s,l)=>p(r,s,"<",l);r.exports=ltr},1574:(r,s,l)=>{const p=l(634);const d=l(5697);const maxSatisfying=(r,s,l)=>{let m=null;let y=null;let g=null;try{g=new d(s,l)}catch(r){return null}r.forEach((r=>{if(g.test(r)){if(!m||y.compare(r)===-1){m=r;y=new p(m,l)}}}));return m};r.exports=maxSatisfying},3492:(r,s,l)=>{const p=l(634);const d=l(5697);const minSatisfying=(r,s,l)=>{let m=null;let y=null;let g=null;try{g=new d(s,l)}catch(r){return null}r.forEach((r=>{if(g.test(r)){if(!m||y.compare(r)===1){m=r;y=new p(m,l)}}}));return m};r.exports=minSatisfying},3639:(r,s,l)=>{const p=l(634);const d=l(5697);const m=l(1810);const minVersion=(r,s)=>{r=new d(r,s);let l=new p("0.0.0");if(r.test(l)){return l}l=new p("0.0.0-0");if(r.test(l)){return l}l=null;for(let s=0;s<r.set.length;++s){const d=r.set[s];let y=null;d.forEach((r=>{const s=new p(r.semver.version);switch(r.operator){case">":if(s.prerelease.length===0){s.patch++}else{s.prerelease.push(0)}s.raw=s.format();case"":case">=":if(!y||m(s,y)){y=s}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${r.operator}`)}}));if(y&&(!l||m(l,y))){l=y}}if(l&&r.test(l)){return l}return null};r.exports=minVersion},901:(r,s,l)=>{const p=l(634);const d=l(2046);const{ANY:m}=d;const y=l(5697);const g=l(4676);const T=l(1810);const b=l(4757);const E=l(5641);const S=l(8411);const outside=(r,s,l,_)=>{r=new p(r,_);s=new y(s,_);let x,w,v,A,P;switch(l){case">":x=T;w=E;v=b;A=">";P=">=";break;case"<":x=b;w=S;v=T;A="<";P="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(g(r,s,_)){return false}for(let l=0;l<s.set.length;++l){const p=s.set[l];let y=null;let g=null;p.forEach((r=>{if(r.semver===m){r=new d(">=0.0.0")}y=y||r;g=g||r;if(x(r.semver,y.semver,_)){y=r}else if(v(r.semver,g.semver,_)){g=r}}));if(y.operator===A||y.operator===P){return false}if((!g.operator||g.operator===A)&&w(r,g.semver)){return false}else if(g.operator===P&&v(r,g.semver)){return false}}return true};r.exports=outside},3803:(r,s,l)=>{const p=l(4676);const d=l(5002);r.exports=(r,s,l)=>{const m=[];let y=null;let g=null;const T=r.sort(((r,s)=>d(r,s,l)));for(const r of T){const d=p(r,s,l);if(d){g=r;if(!y){y=r}}else{if(g){m.push([y,g])}g=null;y=null}}if(y){m.push([y,null])}const b=[];for(const[r,s]of m){if(r===s){b.push(r)}else if(!s&&r===T[0]){b.push("*")}else if(!s){b.push(`>=${r}`)}else if(r===T[0]){b.push(`<=${s}`)}else{b.push(`${r} - ${s}`)}}const E=b.join(" || ");const S=typeof s.raw==="string"?s.raw:String(s);return E.length<S.length?E:s}},7034:(r,s,l)=>{const p=l(5697);const d=l(2046);const{ANY:m}=d;const y=l(4676);const g=l(5002);const subset=(r,s,l={})=>{if(r===s){return true}r=new p(r,l);s=new p(s,l);let d=false;e:for(const p of r.set){for(const r of s.set){const s=simpleSubset(p,r,l);d=d||s!==null;if(s){continue e}}if(d){return false}}return true};const T=[new d(">=0.0.0-0")];const b=[new d(">=0.0.0")];const simpleSubset=(r,s,l)=>{if(r===s){return true}if(r.length===1&&r[0].semver===m){if(s.length===1&&s[0].semver===m){return true}else if(l.includePrerelease){r=T}else{r=b}}if(s.length===1&&s[0].semver===m){if(l.includePrerelease){return true}else{s=b}}const p=new Set;let d,E;for(const s of r){if(s.operator===">"||s.operator===">="){d=higherGT(d,s,l)}else if(s.operator==="<"||s.operator==="<="){E=lowerLT(E,s,l)}else{p.add(s.semver)}}if(p.size>1){return null}let S;if(d&&E){S=g(d.semver,E.semver,l);if(S>0){return null}else if(S===0&&(d.operator!==">="||E.operator!=="<=")){return null}}for(const r of p){if(d&&!y(r,String(d),l)){return null}if(E&&!y(r,String(E),l)){return null}for(const p of s){if(!y(r,String(p),l)){return false}}return true}let _,x;let w,v;let A=E&&!l.includePrerelease&&E.semver.prerelease.length?E.semver:false;let P=d&&!l.includePrerelease&&d.semver.prerelease.length?d.semver:false;if(A&&A.prerelease.length===1&&E.operator==="<"&&A.prerelease[0]===0){A=false}for(const r of s){v=v||r.operator===">"||r.operator===">=";w=w||r.operator==="<"||r.operator==="<=";if(d){if(P){if(r.semver.prerelease&&r.semver.prerelease.length&&r.semver.major===P.major&&r.semver.minor===P.minor&&r.semver.patch===P.patch){P=false}}if(r.operator===">"||r.operator===">="){_=higherGT(d,r,l);if(_===r&&_!==d){return false}}else if(d.operator===">="&&!y(d.semver,String(r),l)){return false}}if(E){if(A){if(r.semver.prerelease&&r.semver.prerelease.length&&r.semver.major===A.major&&r.semver.minor===A.minor&&r.semver.patch===A.patch){A=false}}if(r.operator==="<"||r.operator==="<="){x=lowerLT(E,r,l);if(x===r&&x!==E){return false}}else if(E.operator==="<="&&!y(E.semver,String(r),l)){return false}}if(!r.operator&&(E||d)&&S!==0){return false}}if(d&&w&&!E&&S!==0){return false}if(E&&v&&!d&&S!==0){return false}if(P||A){return false}return true};const higherGT=(r,s,l)=>{if(!r){return s}const p=g(r.semver,s.semver,l);return p>0?r:p<0?s:s.operator===">"&&r.operator===">="?s:r};const lowerLT=(r,s,l)=>{if(!r){return s}const p=g(r.semver,s.semver,l);return p<0?r:p>0?s:s.operator==="<"&&r.operator==="<="?s:r};r.exports=subset},1801:(r,s,l)=>{const p=l(5697);const toComparators=(r,s)=>new p(r,s).set.map((r=>r.map((r=>r.value)).join(" ").trim().split(" ")));r.exports=toComparators},7784:(r,s,l)=>{const p=l(5697);const validRange=(r,s)=>{try{return new p(r,s).range||"*"}catch(r){return null}};r.exports=validRange},2086:r=>{r.exports=shift;function shift(r){var s=r._readableState;if(!s)return null;return s.objectMode||typeof r._duplexState==="number"?r.read():r.read(getStateLength(s))}function getStateLength(r){if(r.buffer.length){var s=r.bufferIndex||0;if(r.buffer.head){return r.buffer.head.data.length}else if(r.buffer.length-s>0&&r.buffer[s]){return r.buffer[s].length}}return r.length}},9393:(r,s,l)=>{const{EventEmitter:p}=l(1571);const d=new Error("Stream was destroyed");const m=new Error("Premature close");const y=l(3082);const g=l(3653);const T=typeof queueMicrotask==="undefined"?r=>global.process.nextTick(r):queueMicrotask;const b=(1<<29)-1;const E=1;const S=2;const _=4;const x=8;const w=b^E;const v=b^S;const A=1<<4;const P=2<<4;const k=4<<4;const C=8<<4;const I=16<<4;const O=32<<4;const N=64<<4;const L=128<<4;const D=256<<4;const R=512<<4;const M=1024<<4;const F=2048<<4;const B=4096<<4;const j=8192<<4;const $=I|O;const U=A|B;const G=k|A;const q=D|C;const W=I|j;const H=b^A;const V=b^k;const K=b^(k|B);const z=b^B;const Y=b^I;const J=b^(C|R);const X=b^N;const Q=b^$;const Z=b^F;const ee=b^P;const te=b^j;const re=b^W;const se=1<<18;const ne=2<<18;const ie=4<<18;const ae=8<<18;const oe=16<<18;const le=32<<18;const ce=64<<18;const ue=128<<18;const pe=256<<18;const de=512<<18;const fe=1024<<18;const he=b^(se|pe);const me=b^ie;const ye=b^(se|de);const ge=b^oe;const Te=b^ae;const be=b^ue;const Ee=b^ne;const Se=b^fe;const _e=A|se;const xe=b^_e;const we=M|le;const ve=_|x|S;const Ae=ve|E;const Pe=ve|we;const ke=me&V;const Ce=ue|F;const Ie=Ce&xe;const Oe=Ae|Ie;const Ne=Ae|N|M;const Le=Ae|M|C;const De=Ae|N|C;const Re=Ae|D|C|R;const Me=Ae|A|N|M|B|j;const Fe=ve|N|M;const Be=P|Ae|F|k;const je=F|E;const $e=Ae|de|le;const Ue=ae|oe;const Ge=ae|se;const qe=ae|oe|Ae|se;const We=Ae|se|ae|fe;const He=ie|se;const Ve=se|pe;const Ke=Ae|de|Ge|le;const ze=oe|ve|de|le;const Ye=ne|Ae|ue|ie;const Je=de|le|ve;const Xe=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(r,{highWaterMark:s=16384,map:l=null,mapWritable:p,byteLength:d,byteLengthWritable:m}={}){this.stream=r;this.queue=new y;this.highWaterMark=s;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=m||d||defaultByteLength;this.map=p||l;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&le)!==0}push(r){if((this.stream._duplexState&Je)!==0)return false;if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);if(this.buffered<this.highWaterMark){this.stream._duplexState|=ae;return true}this.stream._duplexState|=Ue;return false}shift(){const r=this.queue.shift();this.buffered-=this.byteLength(r);if(this.buffered===0)this.stream._duplexState&=Te;return r}end(r){if(typeof r==="function")this.stream.once("finish",r);else if(r!==undefined&&r!==null)this.push(r);this.stream._duplexState=(this.stream._duplexState|de)&me}autoBatch(r,s){const l=[];const p=this.stream;l.push(r);while((p._duplexState&We)===Ge){l.push(p._writableState.shift())}if((p._duplexState&Ae)!==0)return s(null);p._writev(l,s)}update(){const r=this.stream;r._duplexState|=ne;do{while((r._duplexState&We)===ae){const s=this.shift();r._duplexState|=Ve;r._write(s,this.afterWrite)}if((r._duplexState&He)===0)this.updateNonPrimary()}while(this.continueUpdate()===true);r._duplexState&=Ee}updateNonPrimary(){const r=this.stream;if((r._duplexState&Ke)===de){r._duplexState=r._duplexState|se;r._final(afterFinal.bind(this));return}if((r._duplexState&ve)===_){if((r._duplexState&Ce)===0){r._duplexState|=_e;r._destroy(afterDestroy.bind(this))}return}if((r._duplexState&Oe)===E){r._duplexState=(r._duplexState|_e)&w;r._open(afterOpen.bind(this))}}continueUpdate(){if((this.stream._duplexState&ue)===0)return false;this.stream._duplexState&=be;return true}updateCallback(){if((this.stream._duplexState&Ye)===ie)this.update();else this.updateNextTick()}updateNextTick(){if((this.stream._duplexState&ue)!==0)return;this.stream._duplexState|=ue;if((this.stream._duplexState&ne)===0)T(this.afterUpdateNextTick)}}class ReadableState{constructor(r,{highWaterMark:s=16384,map:l=null,mapReadable:p,byteLength:d,byteLengthReadable:m}={}){this.stream=r;this.queue=new y;this.highWaterMark=s===0?1:s;this.buffered=0;this.readAhead=s>0;this.error=null;this.pipeline=null;this.byteLength=m||d||defaultByteLength;this.map=p||l;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&M)!==0}pipe(r,s){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof s!=="function")s=null;this.stream._duplexState|=O;this.pipeTo=r;this.pipeline=new Pipeline(this.stream,r,s);if(s)this.stream.on("error",noop);if(isStreamx(r)){r._writableState.pipeline=this.pipeline;if(s)r.on("error",noop);r.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const s=this.pipeline.done.bind(this.pipeline,r);const l=this.pipeline.done.bind(this.pipeline,r,null);r.on("error",s);r.on("close",l);r.on("finish",this.pipeline.finished.bind(this.pipeline))}r.on("drain",afterDrain.bind(this));this.stream.emit("piping",r);r.emit("pipe",this.stream)}push(r){const s=this.stream;if(r===null){this.highWaterMark=0;s._duplexState=(s._duplexState|N)&K;return false}if(this.map!==null){r=this.map(r);if(r===null){s._duplexState&=z;return this.buffered<this.highWaterMark}}this.buffered+=this.byteLength(r);this.queue.push(r);s._duplexState=(s._duplexState|C)&z;return this.buffered<this.highWaterMark}shift(){const r=this.queue.shift();this.buffered-=this.byteLength(r);if(this.buffered===0)this.stream._duplexState&=J;return r}unshift(r){const s=[this.map!==null?this.map(r):r];while(this.buffered>0)s.push(this.shift());for(let r=0;r<s.length-1;r++){const l=s[r];this.buffered+=this.byteLength(l);this.queue.push(l)}this.push(s[s.length-1])}read(){const r=this.stream;if((r._duplexState&Le)===C){const s=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(s)===false)r._duplexState&=Q;if((r._duplexState&L)!==0)r.emit("data",s);return s}if(this.readAhead===false){r._duplexState|=j;this.updateNextTick()}return null}drain(){const r=this.stream;while((r._duplexState&Le)===C&&(r._duplexState&$)!==0){const s=this.shift();if(this.pipeTo!==null&&this.pipeTo.write(s)===false)r._duplexState&=Q;if((r._duplexState&L)!==0)r.emit("data",s)}}update(){const r=this.stream;r._duplexState|=P;do{this.drain();while(this.buffered<this.highWaterMark&&(r._duplexState&Me)===j){r._duplexState|=U;r._read(this.afterRead);this.drain()}if((r._duplexState&Re)===q){r._duplexState|=R;r.emit("readable")}if((r._duplexState&G)===0)this.updateNonPrimary()}while(this.continueUpdate()===true);r._duplexState&=ee}updateNonPrimary(){const r=this.stream;if((r._duplexState&De)===N){r._duplexState=(r._duplexState|M)&X;r.emit("end");if((r._duplexState&Pe)===we)r._duplexState|=_;if(this.pipeTo!==null)this.pipeTo.end()}if((r._duplexState&ve)===_){if((r._duplexState&Ce)===0){r._duplexState|=_e;r._destroy(afterDestroy.bind(this))}return}if((r._duplexState&Oe)===E){r._duplexState=(r._duplexState|_e)&w;r._open(afterOpen.bind(this))}}continueUpdate(){if((this.stream._duplexState&F)===0)return false;this.stream._duplexState&=Z;return true}updateCallback(){if((this.stream._duplexState&Be)===k)this.update();else this.updateNextTick()}updateNextTickIfOpen(){if((this.stream._duplexState&je)!==0)return;this.stream._duplexState|=F;if((this.stream._duplexState&P)===0)T(this.afterUpdateNextTick)}updateNextTick(){if((this.stream._duplexState&F)!==0)return;this.stream._duplexState|=F;if((this.stream._duplexState&P)===0)T(this.afterUpdateNextTick)}}class TransformState{constructor(r){this.data=null;this.afterTransform=afterTransform.bind(r);this.afterFinal=null}}class Pipeline{constructor(r,s,l){this.from=r;this.to=s;this.afterPipe=l;this.error=null;this.pipeToFinished=false}finished(){this.pipeToFinished=true}done(r,s){if(s)this.error=s;if(r===this.to){this.to=null;if(this.from!==null){if((this.from._duplexState&M)===0||!this.pipeToFinished){this.from.destroy(this.error||new Error("Writable stream closed prematurely"))}return}}if(r===this.from){this.from=null;if(this.to!==null){if((r._duplexState&M)===0){this.to.destroy(this.error||new Error("Readable stream closed before ending"))}return}}if(this.afterPipe!==null)this.afterPipe(this.error);this.to=this.from=this.afterPipe=null}}function afterDrain(){this.stream._duplexState|=O;this.updateCallback()}function afterFinal(r){const s=this.stream;if(r)s.destroy(r);if((s._duplexState&ve)===0){s._duplexState|=le;s.emit("finish")}if((s._duplexState&Pe)===we){s._duplexState|=_}s._duplexState&=ye;if((s._duplexState&ne)===0)this.update();else this.updateNextTick()}function afterDestroy(r){const s=this.stream;if(!r&&this.error!==d)r=this.error;if(r)s.emit("error",r);s._duplexState|=x;s.emit("close");const l=s._readableState;const p=s._writableState;if(l!==null&&l.pipeline!==null)l.pipeline.done(s,r);if(p!==null){while(p.drains!==null&&p.drains.length>0)p.drains.shift().resolve(false);if(p.pipeline!==null)p.pipeline.done(s,r)}}function afterWrite(r){const s=this.stream;if(r)s.destroy(r);s._duplexState&=he;if(this.drains!==null)tickDrains(this.drains);if((s._duplexState&qe)===oe){s._duplexState&=ge;if((s._duplexState&ce)===ce){s.emit("drain")}}this.updateCallback()}function afterRead(r){if(r)this.stream.destroy(r);this.stream._duplexState&=H;if(this.readAhead===false&&(this.stream._duplexState&I)===0)this.stream._duplexState&=te;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&P)===0){this.stream._duplexState&=Z;this.update()}}function updateWriteNT(){if((this.stream._duplexState&ne)===0){this.stream._duplexState&=be;this.update()}}function tickDrains(r){for(let s=0;s<r.length;s++){if(--r[s].writes===0){r.shift().resolve(true);s--}}}function afterOpen(r){const s=this.stream;if(r)s.destroy(r);if((s._duplexState&_)===0){if((s._duplexState&Ne)===0)s._duplexState|=k;if((s._duplexState&$e)===0)s._duplexState|=ie;s.emit("open")}s._duplexState&=xe;if(s._writableState!==null){s._writableState.updateCallback()}if(s._readableState!==null){s._readableState.updateCallback()}}function afterTransform(r,s){if(s!==undefined&&s!==null)this.push(s);this._writableState.afterWrite(r)}function newListener(r){if(this._readableState!==null){if(r==="data"){this._duplexState|=L|W;this._readableState.updateNextTick()}if(r==="readable"){this._duplexState|=D;this._readableState.updateNextTick()}}if(this._writableState!==null){if(r==="drain"){this._duplexState|=ce;this._writableState.updateNextTick()}}}class Stream extends p{constructor(r){super();this._duplexState=0;this._readableState=null;this._writableState=null;if(r){if(r.open)this._open=r.open;if(r.destroy)this._destroy=r.destroy;if(r.predestroy)this._predestroy=r.predestroy;if(r.signal){r.signal.addEventListener("abort",abort.bind(this))}}this.on("newListener",newListener)}_open(r){r(null)}_destroy(r){r(null)}_predestroy(){}get readable(){return this._readableState!==null?true:undefined}get writable(){return this._writableState!==null?true:undefined}get destroyed(){return(this._duplexState&x)!==0}get destroying(){return(this._duplexState&ve)!==0}destroy(r){if((this._duplexState&ve)===0){if(!r)r=d;this._duplexState=(this._duplexState|_)&ke;if(this._readableState!==null){this._readableState.highWaterMark=0;this._readableState.error=r}if(this._writableState!==null){this._writableState.highWaterMark=0;this._writableState.error=r}this._duplexState|=S;this._predestroy();this._duplexState&=v;if(this._readableState!==null)this._readableState.updateNextTick();if(this._writableState!==null)this._writableState.updateNextTick()}}}class Readable extends Stream{constructor(r){super(r);this._duplexState|=E|le|j;this._readableState=new ReadableState(this,r);if(r){if(this._readableState.readAhead===false)this._duplexState&=te;if(r.read)this._read=r.read;if(r.eagerOpen)this._readableState.updateNextTick();if(r.encoding)this.setEncoding(r.encoding)}}setEncoding(r){const s=new g(r);const l=this._readableState.map||echo;this._readableState.map=mapOrSkip;return this;function mapOrSkip(r){const p=s.push(r);return p===""&&(r.byteLength!==0||s.remaining>0)?null:l(p)}}_read(r){r(null)}pipe(r,s){this._readableState.updateNextTick();this._readableState.pipe(r,s);return r}read(){this._readableState.updateNextTick();return this._readableState.read()}push(r){this._readableState.updateNextTickIfOpen();return this._readableState.push(r)}unshift(r){this._readableState.updateNextTickIfOpen();return this._readableState.unshift(r)}resume(){this._duplexState|=W;this._readableState.updateNextTick();return this}pause(){this._duplexState&=this._readableState.readAhead===false?re:Y;return this}static _fromAsyncIterator(r,s){let l;const p=new Readable({...s,read(s){r.next().then(push).then(s.bind(null,null)).catch(s)},predestroy(){l=r.return()},destroy(r){if(!l)return r(null);l.then(r.bind(null,null)).catch(r)}});return p;function push(r){if(r.done)p.push(null);else p.push(r.value)}}static from(r,s){if(isReadStreamx(r))return r;if(r[Xe])return this._fromAsyncIterator(r[Xe](),s);if(!Array.isArray(r))r=r===undefined?[]:[r];let l=0;return new Readable({...s,read(s){this.push(l===r.length?null:r[l++]);s(null)}})}static isBackpressured(r){return(r._duplexState&Fe)!==0||r._readableState.buffered>=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&I)===0}[Xe](){const r=this;let s=null;let l=null;let p=null;this.on("error",(r=>{s=r}));this.on("readable",onreadable);this.on("close",onclose);return{[Xe](){return this},next(){return new Promise((function(s,d){l=s;p=d;const m=r.read();if(m!==null)ondata(m);else if((r._duplexState&x)!==0)ondata(null)}))},return(){return destroy(null)},throw(r){return destroy(r)}};function onreadable(){if(l!==null)ondata(r.read())}function onclose(){if(l!==null)ondata(null)}function ondata(m){if(p===null)return;if(s)p(s);else if(m===null&&(r._duplexState&M)===0)p(d);else l({value:m,done:m===null});p=l=null}function destroy(s){r.destroy(s);return new Promise(((l,p)=>{if(r._duplexState&x)return l({value:undefined,done:true});r.once("close",(function(){if(s)p(s);else l({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(r){super(r);this._duplexState|=E|M;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final;if(r.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=fe}uncork(){this._duplexState&=Se;this._writableState.updateNextTick()}_writev(r,s){s(null)}_write(r,s){this._writableState.autoBatch(r,s)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&ze)!==0}static drained(r){if(r.destroyed)return Promise.resolve(false);const s=r._writableState;const l=isWritev(r)?Math.min(1,s.queue.length):s.queue.length;const p=l+(r._duplexState&pe?1:0);if(p===0)return Promise.resolve(true);if(s.drains===null)s.drains=[];return new Promise((r=>{s.drains.push({writes:p,resolve:r})}))}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Duplex extends Readable{constructor(r){super(r);this._duplexState=E|this._duplexState&j;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final}}cork(){this._duplexState|=fe}uncork(){this._duplexState&=Se;this._writableState.updateNextTick()}_writev(r,s){s(null)}_write(r,s){this._writableState.autoBatch(r,s)}_final(r){r(null)}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Transform extends Duplex{constructor(r){super(r);this._transformState=new TransformState(this);if(r){if(r.transform)this._transform=r.transform;if(r.flush)this._flush=r.flush}}_write(r,s){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=r}else{this._transform(r,this._transformState.afterTransform)}}_read(r){if(this._transformState.data!==null){const s=this._transformState.data;this._transformState.data=null;r(null);this._transform(s,this._transformState.afterTransform)}else{r(null)}}destroy(r){super.destroy(r);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(r,s){s(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(r,s){const l=this._transformState.afterFinal;if(r)return l(r);if(s!==null&&s!==undefined)this.push(s);this.push(null);l(null)}function pipelinePromise(...r){return new Promise(((s,l)=>pipeline(...r,(r=>{if(r)return l(r);s()}))))}function pipeline(r,...s){const l=Array.isArray(r)?[...r,...s]:[r,...s];const p=l.length&&typeof l[l.length-1]==="function"?l.pop():null;if(l.length<2)throw new Error("Pipeline requires at least 2 streams");let d=l[0];let y=null;let g=null;for(let r=1;r<l.length;r++){y=l[r];if(isStreamx(d)){d.pipe(y,onerror)}else{errorHandle(d,true,r>1,onerror);d.pipe(y)}d=y}if(p){let r=false;const s=isStreamx(y)||!!(y._writableState&&y._writableState.autoDestroy);y.on("error",(r=>{if(g===null)g=r}));y.on("finish",(()=>{r=true;if(!s)p(g)}));if(s){y.on("close",(()=>p(g||(r?null:m))))}}return y;function errorHandle(r,s,l,p){r.on("error",p);r.on("close",onclose);function onclose(){if(s&&r._readableState&&!r._readableState.ended)return p(m);if(l&&r._writableState&&!r._writableState.ended)return p(m)}}function onerror(r){if(!r||g)return;g=r;for(const s of l){s.destroy(r)}}}function echo(r){return r}function isStream(r){return!!r._readableState||!!r._writableState}function isStreamx(r){return typeof r._duplexState==="number"&&isStream(r)}function isEnded(r){return!!r._readableState&&r._readableState.ended}function isFinished(r){return!!r._writableState&&r._writableState.ended}function getStreamError(r,s={}){const l=r._readableState&&r._readableState.error||r._writableState&&r._writableState.error;return!s.all&&l===d?null:l}function isReadStreamx(r){return isStreamx(r)&&r.readable}function isDisturbed(r){return(r._duplexState&E)!==E||(r._duplexState&Ce)!==0}function isTypedArray(r){return typeof r==="object"&&r!==null&&typeof r.byteLength==="number"}function defaultByteLength(r){return isTypedArray(r)?r.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(r){return r._writev!==Writable.prototype._writev&&r._writev!==Duplex.prototype._writev}r.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,isEnded:isEnded,isFinished:isFinished,isDisturbed:isDisturbed,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},6095:(r,s,l)=>{var p=l(755).Buffer;var d=p.isEncoding||function(r){r=""+r;switch(r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var s;while(true){switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(s)return;r=(""+r).toLowerCase();s=true}}}function normalizeEncoding(r){var s=_normalizeEncoding(r);if(typeof s!=="string"&&(p.isEncoding===d||!d(r)))throw new Error("Unknown encoding: "+r);return s||r}s.I=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var s;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;s=4;break;case"utf8":this.fillLast=utf8FillLast;s=4;break;case"base64":this.text=base64Text;this.end=base64End;s=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=p.allocUnsafe(s)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var s;var l;if(this.lastNeed){s=this.fillLast(r);if(s===undefined)return"";l=this.lastNeed;this.lastNeed=0}else{l=0}if(l<r.length)return s?s+this.text(r,l):this.text(r,l);return s||""};StringDecoder.prototype.end=utf8End;StringDecoder.prototype.text=utf8Text;StringDecoder.prototype.fillLast=function(r){if(this.lastNeed<=r.length){r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length);this.lastNeed-=r.length};function utf8CheckByte(r){if(r<=127)return 0;else if(r>>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,s,l){var p=s.length-1;if(p<l)return 0;var d=utf8CheckByte(s[p]);if(d>=0){if(d>0)r.lastNeed=d-1;return d}if(--p<l||d===-2)return 0;d=utf8CheckByte(s[p]);if(d>=0){if(d>0)r.lastNeed=d-2;return d}if(--p<l||d===-2)return 0;d=utf8CheckByte(s[p]);if(d>=0){if(d>0){if(d===2)d=0;else r.lastNeed=d-3}return d}return 0}function utf8CheckExtraBytes(r,s,l){if((s[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&s.length>1){if((s[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&s.length>2){if((s[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var s=this.lastTotal-this.lastNeed;var l=utf8CheckExtraBytes(this,r,s);if(l!==undefined)return l;if(this.lastNeed<=r.length){r.copy(this.lastChar,s,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,s,0,r.length);this.lastNeed-=r.length}function utf8Text(r,s){var l=utf8CheckIncomplete(this,r,s);if(!this.lastNeed)return r.toString("utf8",s);this.lastTotal=l;var p=r.length-(l-this.lastNeed);r.copy(this.lastChar,0,p);return r.toString("utf8",s,p)}function utf8End(r){var s=r&&r.length?this.write(r):"";if(this.lastNeed)return s+"�";return s}function utf16Text(r,s){if((r.length-s)%2===0){var l=r.toString("utf16le",s);if(l){var p=l.charCodeAt(l.length-1);if(p>=55296&&p<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return l.slice(0,-1)}}return l}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",s,r.length-1)}function utf16End(r){var s=r&&r.length?this.write(r):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return s+this.lastChar.toString("utf16le",0,l)}return s}function base64Text(r,s){var l=(r.length-s)%3;if(l===0)return r.toString("base64",s);this.lastNeed=3-l;this.lastTotal=3;if(l===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",s,r.length-l)}function base64End(r){var s=r&&r.length?this.write(r):"";if(this.lastNeed)return s+this.lastChar.toString("base64",0,3-this.lastNeed);return s}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},8388:(r,s,l)=>{const p={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{r.exports=l(9896).constants||p}catch{r.exports=p}},2979:(r,s,l)=>{const{Writable:p,Readable:d,getStreamError:m}=l(9393);const y=l(3082);const g=l(5388);const T=l(7667);const b=g.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new y;this._offset=0}push(r){this.buffered+=r.byteLength;this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return b;let s=this._next(r);if(r===s.byteLength)return s;const l=[s];while((r-=s.byteLength)>0){s=this._next(r);l.push(s)}return g.concat(l)}_next(r){const s=this.queue.peek();const l=s.byteLength-this._offset;if(r>=l){const r=this._offset?s.subarray(this._offset,s.byteLength):s;this.queue.shift();this._offset=0;this.buffered-=l;this.shifted+=l;return r}this.buffered-=r;this.shifted+=r;return s.subarray(this._offset,this._offset+=r)}}class Source extends d{constructor(r,s,l){super();this.header=s;this.offset=l;this._parent=r}_read(r){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}r(null)}_predestroy(){this._parent.destroy(m(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(r){this._detach();r(null)}}class Extract extends p{constructor(r){super(r);if(!r)r={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=r.filenameEncoding||"utf-8";this._allowUnknownFormat=!!r.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(r){this._locked=false;if(r){this.destroy(r);this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=T.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){this._continueWrite(r);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=T.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=T.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=T.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?T.decodePax(r):Object.assign({},this._paxGlobal,T.decodePax(r));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(r){this._continueWrite(r);return false}return true}_consumeStream(){const r=this._buffer.shiftFirst(this._missing);if(r===null)return false;this._missing-=r.byteLength;const s=this._stream.push(r);if(this._missing===0){this._stream.push(null);if(s)this._stream._detach();return s&&this._locked===false}return s}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const r=this._buffer.shiftFirst(this._missing);if(r!==null)this._missing-=r.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(r){const s=this._callback;this._callback=noop;s(r)}_write(r,s){this._callback=s;this._buffer.push(r);this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0;r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){if(this._stream)this._stream.destroy(m(this));r(null)}[Symbol.asyncIterator](){let r=null;let s=null;let l=null;let p=null;let d=null;const m=this;this.on("entry",onentry);this.on("error",(s=>{r=s}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(r){return destroy(r)}};function consumeCallback(r){if(!d)return;const s=d;d=null;s(r)}function onnext(d,y){if(r){return y(r)}if(p){d({value:p,done:false});p=null;return}s=d;l=y;consumeCallback(null);if(m._finished&&s){s({value:undefined,done:true});s=l=null}}function onentry(r,m,y){d=y;m.on("error",noop);if(s){s({value:m,done:false});s=l=null}else{p=m}}function onclose(){consumeCallback(r);if(!s)return;if(r)l(r);else s({value:undefined,done:true});s=l=null}function destroy(r){m.destroy(r);consumeCallback(r);return new Promise(((s,l)=>{if(m.destroyed)return s({value:undefined,done:true});m.once("close",(function(){if(r)l(r);else s({value:undefined,done:true})}))}))}}}r.exports=function extract(r){return new Extract(r)};function noop(){}function overflow(r){r&=511;return r&&512-r}},7667:(r,s,l)=>{const p=l(5388);const d="0000000000000000000";const m="7777777777777777777";const y="0".charCodeAt(0);const g=p.from([117,115,116,97,114,0]);const T=p.from([y,y]);const b=p.from([117,115,116,97,114,32]);const E=p.from([32,0]);const S=4095;const _=257;const x=263;s.decodeLongPath=function decodeLongPath(r,s){return decodeStr(r,0,r.length,s)};s.encodePax=function encodePax(r){let s="";if(r.name)s+=addLength(" path="+r.name+"\n");if(r.linkname)s+=addLength(" linkpath="+r.linkname+"\n");const l=r.pax;if(l){for(const r in l){s+=addLength(" "+r+"="+l[r]+"\n")}}return p.from(s)};s.decodePax=function decodePax(r){const s={};while(r.length){let l=0;while(l<r.length&&r[l]!==32)l++;const d=parseInt(p.toString(r.subarray(0,l)),10);if(!d)return s;const m=p.toString(r.subarray(l+1,d-1));const y=m.indexOf("=");if(y===-1)return s;s[m.slice(0,y)]=m.slice(y+1);r=r.subarray(d)}return s};s.encode=function encode(r){const s=p.alloc(512);let l=r.name;let d="";if(r.typeflag===5&&l[l.length-1]!=="/")l+="/";if(p.byteLength(l)!==l.length)return null;while(p.byteLength(l)>100){const r=l.indexOf("/");if(r===-1)return null;d+=d?"/"+l.slice(0,r):l.slice(0,r);l=l.slice(r+1)}if(p.byteLength(l)>100||p.byteLength(d)>155)return null;if(r.linkname&&p.byteLength(r.linkname)>100)return null;p.write(s,l);p.write(s,encodeOct(r.mode&S,6),100);p.write(s,encodeOct(r.uid,6),108);p.write(s,encodeOct(r.gid,6),116);encodeSize(r.size,s,124);p.write(s,encodeOct(r.mtime.getTime()/1e3|0,11),136);s[156]=y+toTypeflag(r.type);if(r.linkname)p.write(s,r.linkname,157);p.copy(g,s,_);p.copy(T,s,x);if(r.uname)p.write(s,r.uname,265);if(r.gname)p.write(s,r.gname,297);p.write(s,encodeOct(r.devmajor||0,6),329);p.write(s,encodeOct(r.devminor||0,6),337);if(d)p.write(s,d,345);p.write(s,encodeOct(cksum(s),6),148);return s};s.decode=function decode(r,s,l){let p=r[156]===0?0:r[156]-y;let d=decodeStr(r,0,100,s);const m=decodeOct(r,100,8);const g=decodeOct(r,108,8);const T=decodeOct(r,116,8);const b=decodeOct(r,124,12);const E=decodeOct(r,136,12);const S=toType(p);const _=r[157]===0?null:decodeStr(r,157,100,s);const x=decodeStr(r,265,32);const w=decodeStr(r,297,32);const v=decodeOct(r,329,8);const A=decodeOct(r,337,8);const P=cksum(r);if(P===8*32)return null;if(P!==decodeOct(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(r)){if(r[345])d=decodeStr(r,345,155,s)+"/"+d}else if(isGNU(r)){}else{if(!l){throw new Error("Invalid tar header: unknown format.")}}if(p===0&&d&&d[d.length-1]==="/")p=5;return{name:d,mode:m,uid:g,gid:T,size:b,mtime:new Date(1e3*E),type:S,linkname:_,uname:x,gname:w,devmajor:v,devminor:A,pax:null}};function isUSTAR(r){return p.equals(g,r.subarray(_,_+6))}function isGNU(r){return p.equals(b,r.subarray(_,_+6))&&p.equals(E,r.subarray(x,x+2))}function clamp(r,s,l){if(typeof r!=="number")return l;r=~~r;if(r>=s)return s;if(r>=0)return r;r+=s;if(r>=0)return r;return 0}function toType(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(r,s,l,p){for(;l<p;l++){if(r[l]===s)return l}return p}function cksum(r){let s=8*32;for(let l=0;l<148;l++)s+=r[l];for(let l=156;l<512;l++)s+=r[l];return s}function encodeOct(r,s){r=r.toString(8);if(r.length>s)return m.slice(0,s)+" ";return d.slice(0,s-r.length)+r+" "}function encodeSizeBin(r,s,l){s[l]=128;for(let p=11;p>0;p--){s[l+p]=r&255;r=Math.floor(r/256)}}function encodeSize(r,s,l){if(r.toString(8).length>11){encodeSizeBin(r,s,l)}else{p.write(s,encodeOct(r,11),l)}}function parse256(r){let s;if(r[0]===128)s=true;else if(r[0]===255)s=false;else return null;const l=[];let p;for(p=r.length-1;p>0;p--){const d=r[p];if(s)l.push(d);else l.push(255-d)}let d=0;const m=l.length;for(p=0;p<m;p++){d+=l[p]*Math.pow(256,p)}return s?d:-1*d}function decodeOct(r,s,l){r=r.subarray(s,s+l);s=0;if(r[s]&128){return parse256(r)}else{while(s<r.length&&r[s]===32)s++;const l=clamp(indexOf(r,32,s,r.length),r.length,r.length);while(s<l&&r[s]===0)s++;if(l===s)return 0;return parseInt(p.toString(r.subarray(s,l)),8)}}function decodeStr(r,s,l,d){return p.toString(r.subarray(s,indexOf(r,0,s,s+l)),d)}function addLength(r){const s=p.byteLength(r);let l=Math.floor(Math.log(s)/Math.log(10))+1;if(s+l>=Math.pow(10,l))l++;return s+l+r}},5165:(r,s,l)=>{s.extract=l(2979);s.pack=l(3308)},3308:(r,s,l)=>{const{Readable:p,Writable:d,getStreamError:m}=l(9393);const y=l(5388);const g=l(8388);const T=l(7667);const b=493;const E=420;const S=y.alloc(1024);class Sink extends d{constructor(r,s,l){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=s;this._callback=l;this._linkname=null;this._isLinkname=s.type==="symlink"&&!s.linkname;this._isVoid=s.type!=="file"&&s.type!=="contiguous-file";this._finished=false;this._pack=r;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(r){this._openCallback=r;if(this._pack._stream===this)this._continueOpen()}_continuePack(r){if(this._callback===null)return;const s=this._callback;this._callback=null;s(r)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const r=this._openCallback;this._openCallback=null;if(r===null)return;if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}r(null)}_write(r,s){if(this._isLinkname){this._linkname=this._linkname?y.concat([this._linkname,r]):r;return s(null)}if(this._isVoid){if(r.byteLength>0){return s(new Error("No body allowed for this entry"))}return s()}this.written+=r.byteLength;if(this._pack.push(r))return s();this._pack._drain=s}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?y.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(r){if(this.written!==this.header.size){return r(new Error("Size mismatch"))}this._finish();r(null)}_getError(){return m(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this);this._continuePack(this._finished?null:this._getError());r()}}class Pack extends p{constructor(r){super(r);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(r,s,l){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof s==="function"){l=s;s=null}if(!l)l=noop;if(!r.size||r.type==="symlink")r.size=0;if(!r.type)r.type=modeToType(r.mode);if(!r.mode)r.mode=r.type==="directory"?b:E;if(!r.uid)r.uid=0;if(!r.gid)r.gid=0;if(!r.mtime)r.mtime=new Date;if(typeof s==="string")s=y.from(s);const p=new Sink(this,r,l);if(y.isBuffer(s)){r.size=s.byteLength;p.write(s);p.end();return p}if(p._isVoid){return p}return p}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(S);this.push(null)}_done(r){if(r!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(r){if(!r.pax){const s=T.encode(r);if(s){this.push(s);return}}this._encodePax(r)}_encodePax(r){const s=T.encodePax({name:r.name,linkname:r.linkname,pax:r.pax});const l={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:s.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(T.encode(l));this.push(s);overflow(this,s.byteLength);l.size=r.size;l.type=r.type;this.push(T.encode(l))}_doDrain(){const r=this._drain;this._drain=noop;r()}_predestroy(){const r=m(this);if(this._stream)this._stream.destroy(r);while(this._pending.length){const s=this._pending.shift();s.destroy(r);s._continueOpen()}this._doDrain()}_read(r){this._doDrain();r()}}r.exports=function pack(r){return new Pack(r)};function modeToType(r){switch(r&g.S_IFMT){case g.S_IFBLK:return"block-device";case g.S_IFCHR:return"character-device";case g.S_IFDIR:return"directory";case g.S_IFIFO:return"fifo";case g.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(r,s){s&=511;if(s)r.push(S.subarray(0,512-s))}function mapWritable(r){return y.isBuffer(r)?r:y.from(r)}},3653:(r,s,l)=>{const p=l(6617);const d=l(531);r.exports=class TextDecoder{constructor(r="utf8"){this.encoding=normalizeEncoding(r);switch(this.encoding){case"utf8":this.decoder=new d;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new p(this.encoding)}}get remaining(){return this.decoder.remaining}push(r){if(typeof r==="string")return r;return this.decoder.decode(r)}write(r){return this.push(r)}end(r){let s="";if(r)s=this.push(r);s+=this.decoder.flush();return s}};function normalizeEncoding(r){r=r.toLowerCase();switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:throw new Error("Unknown encoding: "+r)}}},6617:(r,s,l)=>{const p=l(5388);r.exports=class PassThroughDecoder{constructor(r){this.encoding=r}get remaining(){return 0}decode(r){return p.toString(r,this.encoding)}flush(){return""}}},531:(r,s,l)=>{const p=l(5388);r.exports=class UTF8Decoder{constructor(){this.codePoint=0;this.bytesSeen=0;this.bytesNeeded=0;this.lowerBoundary=128;this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(r){if(this.bytesNeeded===0){let s=true;for(let l=Math.max(0,r.byteLength-4),p=r.byteLength;l<p&&s;l++){s=r[l]<=127}if(s)return p.toString(r,"utf8")}let s="";for(let l=0,p=r.byteLength;l<p;l++){const p=r[l];if(this.bytesNeeded===0){if(p<=127){s+=String.fromCharCode(p)}else{this.bytesSeen=1;if(p>=194&&p<=223){this.bytesNeeded=2;this.codePoint=p&31}else if(p>=224&&p<=239){if(p===224)this.lowerBoundary=160;else if(p===237)this.upperBoundary=159;this.bytesNeeded=3;this.codePoint=p&15}else if(p>=240&&p<=244){if(p===240)this.lowerBoundary=144;if(p===244)this.upperBoundary=143;this.bytesNeeded=4;this.codePoint=p&7}else{s+="�"}}continue}if(p<this.lowerBoundary||p>this.upperBoundary){this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191;s+="�";continue}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|p&63;this.bytesSeen++;if(this.bytesSeen!==this.bytesNeeded)continue;s+=String.fromCodePoint(this.codePoint);this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0}return s}flush(){const r=this.bytesNeeded>0?"�":"";this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191;return r}}},7737:(r,s,l)=>{var p=l(7324).Transform,d=l(9023).inherits,m=l(5104);function DestroyableTransform(r){p.call(this,r);this._destroyed=false}d(DestroyableTransform,p);DestroyableTransform.prototype.destroy=function(r){if(this._destroyed)return;this._destroyed=true;var s=this;process.nextTick((function(){if(r)s.emit("error",r);s.emit("close")}))};function noop(r,s,l){l(null,r)}function through2(r){return function(s,l,p){if(typeof s=="function"){p=l;l=s;s={}}if(typeof l!="function")l=noop;if(typeof p!="function")p=null;return r(s,l,p)}}r.exports=through2((function(r,s,l){var p=new DestroyableTransform(r);p._transform=s;if(l)p._flush=l;return p}));r.exports.ctor=through2((function(r,s,l){function Through2(s){if(!(this instanceof Through2))return new Through2(s);this.options=m(r,s);DestroyableTransform.call(this,this.options)}d(Through2,DestroyableTransform);Through2.prototype._transform=s;if(l)Through2.prototype._flush=l;return Through2}));r.exports.obj=through2((function(r,s,l){var p=new DestroyableTransform(m({objectMode:true,highWaterMark:16},r));p._transform=s;if(l)p._flush=l;return p}))},5937:(r,s,l)=>{r.exports=l(9023).deprecate},4365:r=>{r.exports=wrappy;function wrappy(r,s){if(r&&s)return wrappy(r)(s);if(typeof r!=="function")throw new TypeError("need wrapper function");Object.keys(r).forEach((function(s){wrapper[s]=r[s]}));return wrapper;function wrapper(){var s=new Array(arguments.length);for(var l=0;l<s.length;l++){s[l]=arguments[l]}var p=r.apply(this,s);var d=s[s.length-1];if(typeof p==="function"&&p!==d){Object.keys(d).forEach((function(r){p[r]=d[r]}))}return p}}},5104:r=>{r.exports=extend;var s=Object.prototype.hasOwnProperty;function extend(){var r={};for(var l=0;l<arguments.length;l++){var p=arguments[l];for(var d in p){if(s.call(p,d)){r[d]=p[d]}}}return r}},2131:module=>{module.exports=eval("require")("supports-color")},2613:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},181:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},4434:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},9896:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},8611:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},5675:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http2")},5692:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},9278:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},1421:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process")},8474:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},3024:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs")},6760:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path")},1708:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process")},2203:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},4756:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},2018:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},7016:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},9023:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},3106:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},2900:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});var p=l(2737);var d=l(9957);var m=l(2530);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:p.isColorSupported}const compose=(r,s)=>l=>r(s(l));function buildDefs(r){return{keyword:r.cyan,capitalized:r.yellow,jsxIdentifier:r.yellow,punctuator:r.yellow,number:r.magenta,string:r.green,regex:r.magenta,comment:r.gray,invalid:compose(compose(r.white,r.bgRed),r.bold),gutter:r.gray,marker:compose(r.red,r.bold),message:compose(r.red,r.bold),reset:r.reset}}const y=buildDefs(p.createColors(true));const g=buildDefs(p.createColors(false));function getDefs(r){return r?y:g}const T=new Set(["as","async","from","get","of","set"]);const b=/\r\n|[\n\r\u2028\u2029]/;const E=/^[()[\]{}]$/;let S;{const r=/^[a-z][\w-]*$/i;const getTokenType=function(s,l,p){if(s.type==="name"){if(m.isKeyword(s.value)||m.isStrictReservedWord(s.value,true)||T.has(s.value)){return"keyword"}if(r.test(s.value)&&(p[l-1]==="<"||p.slice(l-2,l)==="</")){return"jsxIdentifier"}if(s.value[0]!==s.value[0].toLowerCase()){return"capitalized"}}if(s.type==="punctuator"&&E.test(s.value)){return"bracket"}if(s.type==="invalid"&&(s.value==="@"||s.value==="#")){return"punctuator"}return s.type};S=function*(r){let s;while(s=d.default.exec(r)){const l=d.matchToToken(s);yield{type:getTokenType(l,s.index,r),value:l.value}}}}function highlight(r){if(r==="")return"";const s=getDefs(true);let l="";for(const{type:p,value:d}of S(r)){if(p in s){l+=d.split(b).map((r=>s[p](r))).join("\n")}else{l+=d}}return l}let _=false;const x=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(r,s,l){const p=Object.assign({column:0,line:-1},r.start);const d=Object.assign({},p,r.end);const{linesAbove:m=2,linesBelow:y=3}=l||{};const g=p.line;const T=p.column;const b=d.line;const E=d.column;let S=Math.max(g-(m+1),0);let _=Math.min(s.length,b+y);if(g===-1){S=0}if(b===-1){_=s.length}const x=b-g;const w={};if(x){for(let r=0;r<=x;r++){const l=r+g;if(!T){w[l]=true}else if(r===0){const r=s[l-1].length;w[l]=[T,r-T+1]}else if(r===x){w[l]=[0,E]}else{const p=s[l-r].length;w[l]=[0,p]}}}else{if(T===E){if(T){w[g]=[T,0]}else{w[g]=true}}else{w[g]=[T,E-T]}}return{start:S,end:_,markerLines:w}}function codeFrameColumns(r,s,l={}){const p=l.forceColor||isColorSupported()&&l.highlightCode;const d=getDefs(p);const m=r.split(x);const{start:y,end:g,markerLines:T}=getMarkerLines(s,m,l);const b=s.start&&typeof s.start.column==="number";const E=String(g).length;const S=p?highlight(r):r;let _=S.split(x,g).slice(y,g).map(((r,s)=>{const p=y+1+s;const m=` ${p}`.slice(-E);const g=` ${m} |`;const b=T[p];const S=!T[p+1];if(b){let s="";if(Array.isArray(b)){const p=r.slice(0,Math.max(b[0]-1,0)).replace(/[^\t]/g," ");const m=b[1]||1;s=["\n ",d.gutter(g.replace(/\d/g," "))," ",p,d.marker("^").repeat(m)].join("");if(S&&l.message){s+=" "+d.message(l.message)}}return[d.marker(">"),d.gutter(g),r.length>0?` ${r}`:"",s].join("")}else{return` ${d.gutter(g)}${r.length>0?` ${r}`:""}`}})).join("\n");if(l.message&&!b){_=`${" ".repeat(E+1)}${l.message}\n${_}`}if(p){return d.reset(_)}else{return _}}function index(r,s,l,p={}){if(!_){_=true;const r="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(r,"DeprecationWarning")}else{const s=new Error(r);s.name="DeprecationWarning";console.warn(new Error(r))}}l=Math.max(l,0);const d={start:{column:l,line:s}};return codeFrameColumns(r,d,p)}s.codeFrameColumns=codeFrameColumns;s["default"]=index;s.highlight=highlight},4898:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;class Buffer{constructor(r,s){this._map=null;this._buf="";this._str="";this._appendCount=0;this._last=0;this._queue=[];this._queueCursor=0;this._canMarkIdName=true;this._indentChar="";this._fastIndentations=[];this._position={line:1,column:0};this._sourcePosition={identifierName:undefined,identifierNamePos:undefined,line:undefined,column:undefined,filename:undefined};this._map=r;this._indentChar=s;for(let r=0;r<64;r++){this._fastIndentations.push(s.repeat(r))}this._allocQueue()}_allocQueue(){const r=this._queue;for(let s=0;s<16;s++){r.push({char:0,repeat:1,line:undefined,column:undefined,identifierName:undefined,identifierNamePos:undefined,filename:""})}}_pushQueue(r,s,l,p,d){const m=this._queueCursor;if(m===this._queue.length){this._allocQueue()}const y=this._queue[m];y.char=r;y.repeat=s;y.line=l;y.column=p;y.filename=d;this._queueCursor++}_popQueue(){if(this._queueCursor===0){throw new Error("Cannot pop from empty queue")}return this._queue[--this._queueCursor]}get(){this._flush();const r=this._map;const s={code:(this._buf+this._str).trimRight(),decodedMap:r==null?void 0:r.getDecoded(),get __mergedMap(){return this.map},get map(){const l=r?r.get():null;s.map=l;return l},set map(r){Object.defineProperty(s,"map",{value:r,writable:true})},get rawMappings(){const l=r==null?void 0:r.getRawMappings();s.rawMappings=l;return l},set rawMappings(r){Object.defineProperty(s,"rawMappings",{value:r,writable:true})}};return s}append(r,s){this._flush();this._append(r,this._sourcePosition,s)}appendChar(r){this._flush();this._appendChar(r,1,this._sourcePosition)}queue(r){if(r===10){while(this._queueCursor!==0){const r=this._queue[this._queueCursor-1].char;if(r!==32&&r!==9){break}this._queueCursor--}}const s=this._sourcePosition;this._pushQueue(r,1,s.line,s.column,s.filename)}queueIndentation(r){if(r===0)return;this._pushQueue(-1,r,undefined,undefined,undefined)}_flush(){const r=this._queueCursor;const s=this._queue;for(let l=0;l<r;l++){const r=s[l];this._appendChar(r.char,r.repeat,r)}this._queueCursor=0}_appendChar(r,s,l){this._last=r;if(r===-1){const r=this._fastIndentations[s];if(r!==undefined){this._str+=r}else{this._str+=s>1?this._indentChar.repeat(s):this._indentChar}}else{this._str+=s>1?String.fromCharCode(r).repeat(s):String.fromCharCode(r)}if(r!==10){this._mark(l.line,l.column,l.identifierName,l.identifierNamePos,l.filename);this._position.column+=s}else{this._position.line++;this._position.column=0}if(this._canMarkIdName){l.identifierName=undefined;l.identifierNamePos=undefined}}_append(r,s,l){const p=r.length;const d=this._position;this._last=r.charCodeAt(p-1);if(++this._appendCount>4096){+this._str;this._buf+=this._str;this._str=r;this._appendCount=0}else{this._str+=r}if(!l&&!this._map){d.column+=p;return}const{column:m,identifierName:y,identifierNamePos:g,filename:T}=s;let b=s.line;if((y!=null||g!=null)&&this._canMarkIdName){s.identifierName=undefined;s.identifierNamePos=undefined}let E=r.indexOf("\n");let S=0;if(E!==0){this._mark(b,m,y,g,T)}while(E!==-1){d.line++;d.column=0;S=E+1;if(S<p&&b!==undefined){this._mark(++b,0,null,null,T)}E=r.indexOf("\n",S)}d.column+=p-S}_mark(r,s,l,p,d){var m;(m=this._map)==null||m.mark(this._position,r,s,l,p,d)}removeTrailingNewline(){const r=this._queueCursor;if(r!==0&&this._queue[r-1].char===10){this._queueCursor--}}removeLastSemicolon(){const r=this._queueCursor;if(r!==0&&this._queue[r-1].char===59){this._queueCursor--}}getLastChar(){const r=this._queueCursor;return r!==0?this._queue[r-1].char:this._last}getNewlineCount(){const r=this._queueCursor;let s=0;if(r===0)return this._last===10?1:0;for(let l=r-1;l>=0;l--){if(this._queue[l].char!==10){break}s++}return s===r&&this._last===10?s+1:s}endsWithCharAndNewline(){const r=this._queue;const s=this._queueCursor;if(s!==0){const l=r[s-1].char;if(l!==10)return;if(s>1){return r[s-2].char}else{return this._last}}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(r,s){if(!this._map){s();return}this.source("start",r);const l=r.identifierName;const p=this._sourcePosition;if(l){this._canMarkIdName=false;p.identifierName=l}s();if(l){this._canMarkIdName=true;p.identifierName=undefined;p.identifierNamePos=undefined}this.source("end",r)}source(r,s){if(!this._map)return;this._normalizePosition(r,s,0)}sourceWithOffset(r,s,l){if(!this._map)return;this._normalizePosition(r,s,l)}_normalizePosition(r,s,l){const p=s[r];const d=this._sourcePosition;if(p){d.line=p.line;d.column=Math.max(p.column+l,0);d.filename=s.filename}}getCurrentColumn(){const r=this._queue;const s=this._queueCursor;let l=-1;let p=0;for(let d=0;d<s;d++){const s=r[d];if(s.char===10){l=p}p+=s.repeat}return l===-1?this._position.column+p:p-1-l}getCurrentLine(){let r=0;const s=this._queue;for(let l=0;l<this._queueCursor;l++){if(s[l].char===10){r++}}return this._position.line+r}}s["default"]=Buffer},5964:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.BlockStatement=BlockStatement;s.Directive=Directive;s.DirectiveLiteral=DirectiveLiteral;s.File=File;s.InterpreterDirective=InterpreterDirective;s.Placeholder=Placeholder;s.Program=Program;function File(r){if(r.program){this.print(r.program.interpreter)}this.print(r.program)}function Program(r){var s;this.noIndentInnerCommentsHere();this.printInnerComments();const l=(s=r.directives)==null?void 0:s.length;if(l){var p;const s=r.body.length?2:1;this.printSequence(r.directives,undefined,s);if(!((p=r.directives[l-1].trailingComments)!=null&&p.length)){this.newline(s)}}this.printSequence(r.body)}function BlockStatement(r){var s;this.tokenChar(123);const l=this.enterDelimited();const p=(s=r.directives)==null?void 0:s.length;if(p){var d;const s=r.body.length?2:1;this.printSequence(r.directives,true,s);if(!((d=r.directives[p-1].trailingComments)!=null&&d.length)){this.newline(s)}}this.printSequence(r.body,true);l();this.rightBrace(r)}function Directive(r){this.print(r.value);this.semicolon()}const l=/(?:^|[^\\])(?:\\\\)*'/;const p=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(r){const s=this.getPossibleRaw(r);if(!this.format.minified&&s!==undefined){this.token(s);return}const{value:d}=r;if(!p.test(d)){this.token(`"${d}"`)}else if(!l.test(d)){this.token(`'${d}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(r){this.token(`#!${r.value}`);this.newline(1,true)}function Placeholder(r){this.token("%%");this.print(r.name);this.token("%%");if(r.expectedNode==="Statement"){this.semicolon()}}},1781:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.ClassAccessorProperty=ClassAccessorProperty;s.ClassBody=ClassBody;s.ClassExpression=s.ClassDeclaration=ClassDeclaration;s.ClassMethod=ClassMethod;s.ClassPrivateMethod=ClassPrivateMethod;s.ClassPrivateProperty=ClassPrivateProperty;s.ClassProperty=ClassProperty;s.StaticBlock=StaticBlock;s._classMethodHead=_classMethodHead;var p=l(3658);const{isExportDefaultDeclaration:d,isExportNamedDeclaration:m}=p;function ClassDeclaration(r,s){const l=d(s)||m(s);if(!l||!this._shouldPrintDecoratorsBeforeExport(s)){this.printJoin(r.decorators)}if(r.declare){this.word("declare");this.space()}if(r.abstract){this.word("abstract");this.space()}this.word("class");if(r.id){this.space();this.print(r.id)}this.print(r.typeParameters);if(r.superClass){this.space();this.word("extends");this.space();this.print(r.superClass);this.print(r.superTypeParameters)}if(r.implements){this.space();this.word("implements");this.space();this.printList(r.implements)}this.space();this.print(r.body)}function ClassBody(r){this.tokenChar(123);if(r.body.length===0){this.tokenChar(125)}else{this.newline();const s=classBodyEmptySemicolonsPrinter(this,r);s==null||s(-1);const l=this.enterDelimited();this.printJoin(r.body,true,true,s,true);l();if(!this.endsWith(10))this.newline();this.rightBrace(r)}}function classBodyEmptySemicolonsPrinter(r,s){if(!r.tokenMap||s.start==null||s.end==null){return null}const l=r.tokenMap.getIndexes(s);if(!l)return null;let p=1;let d=0;let m=0;const advanceNextLocIndex=()=>{while(m<s.body.length&&s.body[m].start==null){m++}};advanceNextLocIndex();return y=>{if(m<=y){m=y+1;advanceNextLocIndex()}const g=m===s.body.length?s.end:s.body[m].start;let T;while(p<l.length&&r.tokenMap.matchesOriginal(T=r._tokens[l[p]],";")&&T.start<g){r.token(";",undefined,d++);p++}}}function ClassProperty(r){this.printJoin(r.decorators);if(!r.static&&!this.format.preserveFormat){var s;const l=(s=r.key.loc)==null||(s=s.end)==null?void 0:s.line;if(l)this.catchUp(l)}this.tsPrintClassMemberModifiers(r);if(r.computed){this.tokenChar(91);this.print(r.key);this.tokenChar(93)}else{this._variance(r);this.print(r.key)}if(r.optional){this.tokenChar(63)}if(r.definite){this.tokenChar(33)}this.print(r.typeAnnotation);if(r.value){this.space();this.tokenChar(61);this.space();this.print(r.value)}this.semicolon()}function ClassAccessorProperty(r){var s;this.printJoin(r.decorators);const l=(s=r.key.loc)==null||(s=s.end)==null?void 0:s.line;if(l)this.catchUp(l);this.tsPrintClassMemberModifiers(r);this.word("accessor",true);this.space();if(r.computed){this.tokenChar(91);this.print(r.key);this.tokenChar(93)}else{this._variance(r);this.print(r.key)}if(r.optional){this.tokenChar(63)}if(r.definite){this.tokenChar(33)}this.print(r.typeAnnotation);if(r.value){this.space();this.tokenChar(61);this.space();this.print(r.value)}this.semicolon()}function ClassPrivateProperty(r){this.printJoin(r.decorators);this.tsPrintClassMemberModifiers(r);this.print(r.key);if(r.optional){this.tokenChar(63)}if(r.definite){this.tokenChar(33)}this.print(r.typeAnnotation);if(r.value){this.space();this.tokenChar(61);this.space();this.print(r.value)}this.semicolon()}function ClassMethod(r){this._classMethodHead(r);this.space();this.print(r.body)}function ClassPrivateMethod(r){this._classMethodHead(r);this.space();this.print(r.body)}function _classMethodHead(r){this.printJoin(r.decorators);if(!this.format.preserveFormat){var s;const l=(s=r.key.loc)==null||(s=s.end)==null?void 0:s.line;if(l)this.catchUp(l)}this.tsPrintClassMemberModifiers(r);this._methodHead(r)}function StaticBlock(r){this.word("static");this.space();this.tokenChar(123);if(r.body.length===0){this.tokenChar(125)}else{this.newline();this.printSequence(r.body,true);this.rightBrace(r)}}},8568:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.addDeprecatedGenerators=addDeprecatedGenerators;function addDeprecatedGenerators(r){{const s={Noop(){},TSExpressionWithTypeArguments(r){this.print(r.expression);this.print(r.typeParameters)},DecimalLiteral(r){const s=this.getPossibleRaw(r);if(!this.format.minified&&s!==undefined){this.word(s);return}this.word(r.value+"m")}};Object.assign(r.prototype,s)}}},226:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.LogicalExpression=s.BinaryExpression=s.AssignmentExpression=AssignmentExpression;s.AssignmentPattern=AssignmentPattern;s.AwaitExpression=AwaitExpression;s.BindExpression=BindExpression;s.CallExpression=CallExpression;s.ConditionalExpression=ConditionalExpression;s.Decorator=Decorator;s.DoExpression=DoExpression;s.EmptyStatement=EmptyStatement;s.ExpressionStatement=ExpressionStatement;s.Import=Import;s.MemberExpression=MemberExpression;s.MetaProperty=MetaProperty;s.ModuleExpression=ModuleExpression;s.NewExpression=NewExpression;s.OptionalCallExpression=OptionalCallExpression;s.OptionalMemberExpression=OptionalMemberExpression;s.ParenthesizedExpression=ParenthesizedExpression;s.PrivateName=PrivateName;s.SequenceExpression=SequenceExpression;s.Super=Super;s.ThisExpression=ThisExpression;s.UnaryExpression=UnaryExpression;s.UpdateExpression=UpdateExpression;s.V8IntrinsicIdentifier=V8IntrinsicIdentifier;s.YieldExpression=YieldExpression;s._shouldPrintDecoratorsBeforeExport=_shouldPrintDecoratorsBeforeExport;var p=l(3658);var d=l(4159);const{isCallExpression:m,isLiteral:y,isMemberExpression:g,isNewExpression:T,isPattern:b}=p;function UnaryExpression(r){const{operator:s}=r;if(s==="void"||s==="delete"||s==="typeof"||s==="throw"){this.word(s);this.space()}else{this.token(s)}this.print(r.argument)}function DoExpression(r){if(r.async){this.word("async",true);this.space()}this.word("do");this.space();this.print(r.body)}function ParenthesizedExpression(r){this.tokenChar(40);const s=this.enterDelimited();this.print(r.expression);s();this.rightParens(r)}function UpdateExpression(r){if(r.prefix){this.token(r.operator);this.print(r.argument)}else{this.print(r.argument,true);this.token(r.operator)}}function ConditionalExpression(r){this.print(r.test);this.space();this.tokenChar(63);this.space();this.print(r.consequent);this.space();this.tokenChar(58);this.space();this.print(r.alternate)}function NewExpression(r,s){this.word("new");this.space();this.print(r.callee);if(this.format.minified&&r.arguments.length===0&&!r.optional&&!m(s,{callee:r})&&!g(s)&&!T(s)){return}this.print(r.typeArguments);{this.print(r.typeParameters);if(r.optional){this.token("?.")}}if(r.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(r,")")){return}this.tokenChar(40);const l=this.enterDelimited();this.printList(r.arguments,this.shouldPrintTrailingComma(")"));l();this.rightParens(r)}function SequenceExpression(r){this.printList(r.expressions)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function _shouldPrintDecoratorsBeforeExport(r){if(typeof this.format.decoratorsBeforeExport==="boolean"){return this.format.decoratorsBeforeExport}return typeof r.start==="number"&&r.start===r.declaration.start}function Decorator(r){this.tokenChar(64);this.print(r.expression);this.newline()}function OptionalMemberExpression(r){let{computed:s}=r;const{optional:l,property:p}=r;this.print(r.object);if(!s&&g(p)){throw new TypeError("Got a MemberExpression for MemberExpression property")}if(y(p)&&typeof p.value==="number"){s=true}if(l){this.token("?.")}if(s){this.tokenChar(91);this.print(p);this.tokenChar(93)}else{if(!l){this.tokenChar(46)}this.print(p)}}function OptionalCallExpression(r){this.print(r.callee);{this.print(r.typeParameters)}if(r.optional){this.token("?.")}this.print(r.typeArguments);this.tokenChar(40);const s=this.enterDelimited();this.printList(r.arguments);s();this.rightParens(r)}function CallExpression(r){this.print(r.callee);this.print(r.typeArguments);{this.print(r.typeParameters)}this.tokenChar(40);const s=this.enterDelimited();this.printList(r.arguments,this.shouldPrintTrailingComma(")"));s();this.rightParens(r)}function Import(){this.word("import")}function AwaitExpression(r){this.word("await");this.space();this.print(r.argument)}function YieldExpression(r){if(r.delegate){this.word("yield",true);this.tokenChar(42);if(r.argument){this.space();this.print(r.argument)}}else if(r.argument){this.word("yield",true);this.space();this.print(r.argument)}else{this.word("yield")}}function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(r){this.tokenContext|=d.TokenContext.expressionStatement;this.print(r.expression);this.semicolon()}function AssignmentPattern(r){this.print(r.left);if(r.left.type==="Identifier"||b(r.left)){if(r.left.optional)this.tokenChar(63);this.print(r.left.typeAnnotation)}this.space();this.tokenChar(61);this.space();this.print(r.right)}function AssignmentExpression(r){this.print(r.left);this.space();if(r.operator==="in"||r.operator==="instanceof"){this.word(r.operator)}else{this.token(r.operator);this._endsWithDiv=r.operator==="/"}this.space();this.print(r.right)}function BindExpression(r){this.print(r.object);this.token("::");this.print(r.callee)}function MemberExpression(r){this.print(r.object);if(!r.computed&&g(r.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let s=r.computed;if(y(r.property)&&typeof r.property.value==="number"){s=true}if(s){const s=this.enterDelimited();this.tokenChar(91);this.print(r.property);this.tokenChar(93);s()}else{this.tokenChar(46);this.print(r.property)}}function MetaProperty(r){this.print(r.meta);this.tokenChar(46);this.print(r.property)}function PrivateName(r){this.tokenChar(35);this.print(r.id)}function V8IntrinsicIdentifier(r){this.tokenChar(37);this.word(r.name)}function ModuleExpression(r){this.word("module",true);this.space();this.tokenChar(123);this.indent();const{body:s}=r;if(s.body.length||s.directives.length){this.newline()}this.print(s);this.dedent();this.rightBrace(r)}},5905:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.AnyTypeAnnotation=AnyTypeAnnotation;s.ArrayTypeAnnotation=ArrayTypeAnnotation;s.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;s.BooleanTypeAnnotation=BooleanTypeAnnotation;s.DeclareClass=DeclareClass;s.DeclareExportAllDeclaration=DeclareExportAllDeclaration;s.DeclareExportDeclaration=DeclareExportDeclaration;s.DeclareFunction=DeclareFunction;s.DeclareInterface=DeclareInterface;s.DeclareModule=DeclareModule;s.DeclareModuleExports=DeclareModuleExports;s.DeclareOpaqueType=DeclareOpaqueType;s.DeclareTypeAlias=DeclareTypeAlias;s.DeclareVariable=DeclareVariable;s.DeclaredPredicate=DeclaredPredicate;s.EmptyTypeAnnotation=EmptyTypeAnnotation;s.EnumBooleanBody=EnumBooleanBody;s.EnumBooleanMember=EnumBooleanMember;s.EnumDeclaration=EnumDeclaration;s.EnumDefaultedMember=EnumDefaultedMember;s.EnumNumberBody=EnumNumberBody;s.EnumNumberMember=EnumNumberMember;s.EnumStringBody=EnumStringBody;s.EnumStringMember=EnumStringMember;s.EnumSymbolBody=EnumSymbolBody;s.ExistsTypeAnnotation=ExistsTypeAnnotation;s.FunctionTypeAnnotation=FunctionTypeAnnotation;s.FunctionTypeParam=FunctionTypeParam;s.IndexedAccessType=IndexedAccessType;s.InferredPredicate=InferredPredicate;s.InterfaceDeclaration=InterfaceDeclaration;s.GenericTypeAnnotation=s.ClassImplements=s.InterfaceExtends=InterfaceExtends;s.InterfaceTypeAnnotation=InterfaceTypeAnnotation;s.IntersectionTypeAnnotation=IntersectionTypeAnnotation;s.MixedTypeAnnotation=MixedTypeAnnotation;s.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;s.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(s,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return y.NumericLiteral}});s.NumberTypeAnnotation=NumberTypeAnnotation;s.ObjectTypeAnnotation=ObjectTypeAnnotation;s.ObjectTypeCallProperty=ObjectTypeCallProperty;s.ObjectTypeIndexer=ObjectTypeIndexer;s.ObjectTypeInternalSlot=ObjectTypeInternalSlot;s.ObjectTypeProperty=ObjectTypeProperty;s.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;s.OpaqueType=OpaqueType;s.OptionalIndexedAccessType=OptionalIndexedAccessType;s.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(s,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return y.StringLiteral}});s.StringTypeAnnotation=StringTypeAnnotation;s.SymbolTypeAnnotation=SymbolTypeAnnotation;s.ThisTypeAnnotation=ThisTypeAnnotation;s.TupleTypeAnnotation=TupleTypeAnnotation;s.TypeAlias=TypeAlias;s.TypeAnnotation=TypeAnnotation;s.TypeCastExpression=TypeCastExpression;s.TypeParameter=TypeParameter;s.TypeParameterDeclaration=s.TypeParameterInstantiation=TypeParameterInstantiation;s.TypeofTypeAnnotation=TypeofTypeAnnotation;s.UnionTypeAnnotation=UnionTypeAnnotation;s.Variance=Variance;s.VoidTypeAnnotation=VoidTypeAnnotation;s._interfaceish=_interfaceish;s._variance=_variance;var p=l(3658);var d=l(7076);var m=l(4159);var y=l(8408);const{isDeclareExportDeclaration:g,isStatement:T}=p;function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(r){this.print(r.elementType,true);this.tokenChar(91);this.tokenChar(93)}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(r){this.word(r.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(r,s){if(!g(s)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(r)}function DeclareFunction(r,s){if(!g(s)){this.word("declare");this.space()}this.word("function");this.space();this.print(r.id);this.print(r.id.typeAnnotation.typeAnnotation);if(r.predicate){this.space();this.print(r.predicate)}this.semicolon()}function InferredPredicate(){this.tokenChar(37);this.word("checks")}function DeclaredPredicate(r){this.tokenChar(37);this.word("checks");this.tokenChar(40);this.print(r.value);this.tokenChar(41)}function DeclareInterface(r){this.word("declare");this.space();this.InterfaceDeclaration(r)}function DeclareModule(r){this.word("declare");this.space();this.word("module");this.space();this.print(r.id);this.space();this.print(r.body)}function DeclareModuleExports(r){this.word("declare");this.space();this.word("module");this.tokenChar(46);this.word("exports");this.print(r.typeAnnotation)}function DeclareTypeAlias(r){this.word("declare");this.space();this.TypeAlias(r)}function DeclareOpaqueType(r,s){if(!g(s)){this.word("declare");this.space()}this.OpaqueType(r)}function DeclareVariable(r,s){if(!g(s)){this.word("declare");this.space()}this.word("var");this.space();this.print(r.id);this.print(r.id.typeAnnotation);this.semicolon()}function DeclareExportDeclaration(r){this.word("declare");this.space();this.word("export");this.space();if(r.default){this.word("default");this.space()}FlowExportDeclaration.call(this,r)}function DeclareExportAllDeclaration(r){this.word("declare");this.space();d.ExportAllDeclaration.call(this,r)}function EnumDeclaration(r){const{id:s,body:l}=r;this.word("enum");this.space();this.print(s);this.print(l)}function enumExplicitType(r,s,l){if(l){r.space();r.word("of");r.space();r.word(s)}r.space()}function enumBody(r,s){const{members:l}=s;r.token("{");r.indent();r.newline();for(const s of l){r.print(s);r.newline()}if(s.hasUnknownMembers){r.token("...");r.newline()}r.dedent();r.token("}")}function EnumBooleanBody(r){const{explicitType:s}=r;enumExplicitType(this,"boolean",s);enumBody(this,r)}function EnumNumberBody(r){const{explicitType:s}=r;enumExplicitType(this,"number",s);enumBody(this,r)}function EnumStringBody(r){const{explicitType:s}=r;enumExplicitType(this,"string",s);enumBody(this,r)}function EnumSymbolBody(r){enumExplicitType(this,"symbol",true);enumBody(this,r)}function EnumDefaultedMember(r){const{id:s}=r;this.print(s);this.tokenChar(44)}function enumInitializedMember(r,s){r.print(s.id);r.space();r.token("=");r.space();r.print(s.init);r.token(",")}function EnumBooleanMember(r){enumInitializedMember(this,r)}function EnumNumberMember(r){enumInitializedMember(this,r)}function EnumStringMember(r){enumInitializedMember(this,r)}function FlowExportDeclaration(r){if(r.declaration){const s=r.declaration;this.print(s);if(!T(s))this.semicolon()}else{this.tokenChar(123);if(r.specifiers.length){this.space();this.printList(r.specifiers);this.space()}this.tokenChar(125);if(r.source){this.space();this.word("from");this.space();this.print(r.source)}this.semicolon()}}function ExistsTypeAnnotation(){this.tokenChar(42)}function FunctionTypeAnnotation(r,s){this.print(r.typeParameters);this.tokenChar(40);if(r.this){this.word("this");this.tokenChar(58);this.space();this.print(r.this.typeAnnotation);if(r.params.length||r.rest){this.tokenChar(44);this.space()}}this.printList(r.params);if(r.rest){if(r.params.length){this.tokenChar(44);this.space()}this.token("...");this.print(r.rest)}this.tokenChar(41);const l=s==null?void 0:s.type;if(l!=null&&(l==="ObjectTypeCallProperty"||l==="ObjectTypeInternalSlot"||l==="DeclareFunction"||l==="ObjectTypeProperty"&&s.method)){this.tokenChar(58)}else{this.space();this.token("=>")}this.space();this.print(r.returnType)}function FunctionTypeParam(r){this.print(r.name);if(r.optional)this.tokenChar(63);if(r.name){this.tokenChar(58);this.space()}this.print(r.typeAnnotation)}function InterfaceExtends(r){this.print(r.id);this.print(r.typeParameters,true)}function _interfaceish(r){var s;this.print(r.id);this.print(r.typeParameters);if((s=r.extends)!=null&&s.length){this.space();this.word("extends");this.space();this.printList(r.extends)}if(r.type==="DeclareClass"){var l,p;if((l=r.mixins)!=null&&l.length){this.space();this.word("mixins");this.space();this.printList(r.mixins)}if((p=r.implements)!=null&&p.length){this.space();this.word("implements");this.space();this.printList(r.implements)}}this.space();this.print(r.body)}function _variance(r){var s;const l=(s=r.variance)==null?void 0:s.kind;if(l!=null){if(l==="plus"){this.tokenChar(43)}else if(l==="minus"){this.tokenChar(45)}}}function InterfaceDeclaration(r){this.word("interface");this.space();this._interfaceish(r)}function andSeparator(r){this.space();this.token("&",false,r);this.space()}function InterfaceTypeAnnotation(r){var s;this.word("interface");if((s=r.extends)!=null&&s.length){this.space();this.word("extends");this.space();this.printList(r.extends)}this.space();this.print(r.body)}function IntersectionTypeAnnotation(r){this.printJoin(r.types,undefined,undefined,andSeparator)}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(r){this.tokenChar(63);this.print(r.typeAnnotation)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(r){this.tokenChar(91);this.printList(r.types);this.tokenChar(93)}function TypeofTypeAnnotation(r){this.word("typeof");this.space();this.print(r.argument)}function TypeAlias(r){this.word("type");this.space();this.print(r.id);this.print(r.typeParameters);this.space();this.tokenChar(61);this.space();this.print(r.right);this.semicolon()}function TypeAnnotation(r,s){this.tokenChar(58);this.space();if(s.type==="ArrowFunctionExpression"){this.tokenContext|=m.TokenContext.arrowFlowReturnType}else if(r.optional){this.tokenChar(63)}this.print(r.typeAnnotation)}function TypeParameterInstantiation(r){this.tokenChar(60);this.printList(r.params);this.tokenChar(62)}function TypeParameter(r){this._variance(r);this.word(r.name);if(r.bound){this.print(r.bound)}if(r.default){this.space();this.tokenChar(61);this.space();this.print(r.default)}}function OpaqueType(r){this.word("opaque");this.space();this.word("type");this.space();this.print(r.id);this.print(r.typeParameters);if(r.supertype){this.tokenChar(58);this.space();this.print(r.supertype)}if(r.impltype){this.space();this.tokenChar(61);this.space();this.print(r.impltype)}this.semicolon()}function ObjectTypeAnnotation(r){if(r.exact){this.token("{|")}else{this.tokenChar(123)}const s=[...r.properties,...r.callProperties||[],...r.indexers||[],...r.internalSlots||[]];if(s.length){this.newline();this.space();this.printJoin(s,true,true,undefined,undefined,(function addNewlines(r){if(r&&!s[0])return 1}),(()=>{if(s.length!==1||r.inexact){this.tokenChar(44);this.space()}}));this.space()}if(r.inexact){this.indent();this.token("...");if(s.length){this.newline()}this.dedent()}if(r.exact){this.token("|}")}else{this.tokenChar(125)}}function ObjectTypeInternalSlot(r){if(r.static){this.word("static");this.space()}this.tokenChar(91);this.tokenChar(91);this.print(r.id);this.tokenChar(93);this.tokenChar(93);if(r.optional)this.tokenChar(63);if(!r.method){this.tokenChar(58);this.space()}this.print(r.value)}function ObjectTypeCallProperty(r){if(r.static){this.word("static");this.space()}this.print(r.value)}function ObjectTypeIndexer(r){if(r.static){this.word("static");this.space()}this._variance(r);this.tokenChar(91);if(r.id){this.print(r.id);this.tokenChar(58);this.space()}this.print(r.key);this.tokenChar(93);this.tokenChar(58);this.space();this.print(r.value)}function ObjectTypeProperty(r){if(r.proto){this.word("proto");this.space()}if(r.static){this.word("static");this.space()}if(r.kind==="get"||r.kind==="set"){this.word(r.kind);this.space()}this._variance(r);this.print(r.key);if(r.optional)this.tokenChar(63);if(!r.method){this.tokenChar(58);this.space()}this.print(r.value)}function ObjectTypeSpreadProperty(r){this.token("...");this.print(r.argument)}function QualifiedTypeIdentifier(r){this.print(r.qualification);this.tokenChar(46);this.print(r.id)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(r){this.space();this.token("|",false,r);this.space()}function UnionTypeAnnotation(r){this.printJoin(r.types,undefined,undefined,orSeparator)}function TypeCastExpression(r){this.tokenChar(40);this.print(r.expression);this.print(r.typeAnnotation);this.tokenChar(41)}function Variance(r){if(r.kind==="plus"){this.tokenChar(43)}else{this.tokenChar(45)}}function VoidTypeAnnotation(){this.word("void")}function IndexedAccessType(r){this.print(r.objectType,true);this.tokenChar(91);this.print(r.indexType);this.tokenChar(93)}function OptionalIndexedAccessType(r){this.print(r.objectType);if(r.optional){this.token("?.")}this.tokenChar(91);this.print(r.indexType);this.tokenChar(93)}},1273:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});var p=l(8344);Object.keys(p).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===p[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return p[r]}})}));var d=l(226);Object.keys(d).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===d[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return d[r]}})}));var m=l(9975);Object.keys(m).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===m[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return m[r]}})}));var y=l(1781);Object.keys(y).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===y[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return y[r]}})}));var g=l(6307);Object.keys(g).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===g[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return g[r]}})}));var T=l(7076);Object.keys(T).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===T[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return T[r]}})}));var b=l(8408);Object.keys(b).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===b[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return b[r]}})}));var E=l(5905);Object.keys(E).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===E[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return E[r]}})}));var S=l(5964);Object.keys(S).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===S[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return S[r]}})}));var _=l(2784);Object.keys(_).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===_[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return _[r]}})}));var x=l(6898);Object.keys(x).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===x[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return x[r]}})}))},2784:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.JSXAttribute=JSXAttribute;s.JSXClosingElement=JSXClosingElement;s.JSXClosingFragment=JSXClosingFragment;s.JSXElement=JSXElement;s.JSXEmptyExpression=JSXEmptyExpression;s.JSXExpressionContainer=JSXExpressionContainer;s.JSXFragment=JSXFragment;s.JSXIdentifier=JSXIdentifier;s.JSXMemberExpression=JSXMemberExpression;s.JSXNamespacedName=JSXNamespacedName;s.JSXOpeningElement=JSXOpeningElement;s.JSXOpeningFragment=JSXOpeningFragment;s.JSXSpreadAttribute=JSXSpreadAttribute;s.JSXSpreadChild=JSXSpreadChild;s.JSXText=JSXText;function JSXAttribute(r){this.print(r.name);if(r.value){this.tokenChar(61);this.print(r.value)}}function JSXIdentifier(r){this.word(r.name)}function JSXNamespacedName(r){this.print(r.namespace);this.tokenChar(58);this.print(r.name)}function JSXMemberExpression(r){this.print(r.object);this.tokenChar(46);this.print(r.property)}function JSXSpreadAttribute(r){this.tokenChar(123);this.token("...");this.print(r.argument);this.rightBrace(r)}function JSXExpressionContainer(r){this.tokenChar(123);this.print(r.expression);this.rightBrace(r)}function JSXSpreadChild(r){this.tokenChar(123);this.token("...");this.print(r.expression);this.rightBrace(r)}function JSXText(r){const s=this.getPossibleRaw(r);if(s!==undefined){this.token(s,true)}else{this.token(r.value,true)}}function JSXElement(r){const s=r.openingElement;this.print(s);if(s.selfClosing)return;this.indent();for(const s of r.children){this.print(s)}this.dedent();this.print(r.closingElement)}function spaceSeparator(){this.space()}function JSXOpeningElement(r){this.tokenChar(60);this.print(r.name);{if(r.typeArguments){this.print(r.typeArguments)}this.print(r.typeParameters)}if(r.attributes.length>0){this.space();this.printJoin(r.attributes,undefined,undefined,spaceSeparator)}if(r.selfClosing){this.space();this.tokenChar(47)}this.tokenChar(62)}function JSXClosingElement(r){this.tokenChar(60);this.tokenChar(47);this.print(r.name);this.tokenChar(62)}function JSXEmptyExpression(){this.printInnerComments()}function JSXFragment(r){this.print(r.openingFragment);this.indent();for(const s of r.children){this.print(s)}this.dedent();this.print(r.closingFragment)}function JSXOpeningFragment(){this.tokenChar(60);this.tokenChar(62)}function JSXClosingFragment(){this.token("</");this.tokenChar(62)}},6307:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.ArrowFunctionExpression=ArrowFunctionExpression;s.FunctionDeclaration=s.FunctionExpression=FunctionExpression;s._functionHead=_functionHead;s._methodHead=_methodHead;s._param=_param;s._parameters=_parameters;s._params=_params;s._predicate=_predicate;s._shouldPrintArrowParamsParens=_shouldPrintArrowParamsParens;var p=l(3658);var d=l(4159);const{isIdentifier:m}=p;function _params(r,s,l){this.print(r.typeParameters);const p=_getFuncIdName.call(this,s,l);if(p){this.sourceIdentifierName(p.name,p.pos)}this.tokenChar(40);this._parameters(r.params,")");const d=r.type==="ArrowFunctionExpression";this.print(r.returnType,d);this._noLineTerminator=d}function _parameters(r,s){const l=this.enterDelimited();const p=this.shouldPrintTrailingComma(s);const d=r.length;for(let s=0;s<d;s++){this._param(r[s]);if(p||s<d-1){this.token(",",null,s);this.space()}}this.token(s);l()}function _param(r){this.printJoin(r.decorators);this.print(r);if(r.optional){this.tokenChar(63)}this.print(r.typeAnnotation)}function _methodHead(r){const s=r.kind;const l=r.key;if(s==="get"||s==="set"){this.word(s);this.space()}if(r.async){this.word("async",true);this.space()}if(s==="method"||s==="init"){if(r.generator){this.tokenChar(42)}}if(r.computed){this.tokenChar(91);this.print(l);this.tokenChar(93)}else{this.print(l)}if(r.optional){this.tokenChar(63)}this._params(r,r.computed&&r.key.type!=="StringLiteral"?undefined:r.key,undefined)}function _predicate(r,s){if(r.predicate){if(!r.returnType){this.tokenChar(58)}this.space();this.print(r.predicate,s)}}function _functionHead(r,s){if(r.async){this.word("async");if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.space()}this.word("function");if(r.generator){if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.tokenChar(42)}this.space();if(r.id){this.print(r.id)}this._params(r,r.id,s);if(r.type!=="TSDeclareFunction"){this._predicate(r)}}function FunctionExpression(r,s){this._functionHead(r,s);this.space();this.print(r.body)}function ArrowFunctionExpression(r,s){if(r.async){this.word("async",true);this.space()}if(this._shouldPrintArrowParamsParens(r)){this._params(r,undefined,s)}else{this.print(r.params[0],true)}this._predicate(r,true);this.space();this.printInnerComments();this.token("=>");this.space();this.tokenContext|=d.TokenContext.arrowBody;this.print(r.body)}function _shouldPrintArrowParamsParens(r){var s,l;if(r.params.length!==1)return true;if(r.typeParameters||r.returnType||r.predicate){return true}const p=r.params[0];if(!m(p)||p.typeAnnotation||p.optional||(s=p.leadingComments)!=null&&s.length||(l=p.trailingComments)!=null&&l.length){return true}if(this.tokenMap){if(r.loc==null)return true;if(this.tokenMap.findMatching(r,"(")!==null)return true;const s=this.tokenMap.findMatching(r,"=>");if((s==null?void 0:s.loc)==null)return true;return s.loc.start.line!==r.loc.start.line}if(this.format.retainLines)return true;return false}function _getFuncIdName(r,s){let l=r;if(!l&&s){const r=s.type;if(r==="VariableDeclarator"){l=s.id}else if(r==="AssignmentExpression"||r==="AssignmentPattern"){l=s.left}else if(r==="ObjectProperty"||r==="ClassProperty"){if(!s.computed||s.key.type==="StringLiteral"){l=s.key}}else if(r==="ClassPrivateProperty"||r==="ClassAccessorProperty"){l=s.key}}if(!l)return;let p;if(l.type==="Identifier"){var d,m;p={pos:(d=l.loc)==null?void 0:d.start,name:((m=l.loc)==null?void 0:m.identifierName)||l.name}}else if(l.type==="PrivateName"){var y;p={pos:(y=l.loc)==null?void 0:y.start,name:"#"+l.id.name}}else if(l.type==="StringLiteral"){var g;p={pos:(g=l.loc)==null?void 0:g.start,name:l.value}}return p}},7076:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.ExportAllDeclaration=ExportAllDeclaration;s.ExportDefaultDeclaration=ExportDefaultDeclaration;s.ExportDefaultSpecifier=ExportDefaultSpecifier;s.ExportNamedDeclaration=ExportNamedDeclaration;s.ExportNamespaceSpecifier=ExportNamespaceSpecifier;s.ExportSpecifier=ExportSpecifier;s.ImportAttribute=ImportAttribute;s.ImportDeclaration=ImportDeclaration;s.ImportDefaultSpecifier=ImportDefaultSpecifier;s.ImportExpression=ImportExpression;s.ImportNamespaceSpecifier=ImportNamespaceSpecifier;s.ImportSpecifier=ImportSpecifier;s._printAttributes=_printAttributes;var p=l(3658);var d=l(4159);const{isClassDeclaration:m,isExportDefaultSpecifier:y,isExportNamespaceSpecifier:g,isImportDefaultSpecifier:T,isImportNamespaceSpecifier:b,isStatement:E}=p;function ImportSpecifier(r){if(r.importKind==="type"||r.importKind==="typeof"){this.word(r.importKind);this.space()}this.print(r.imported);if(r.local&&r.local.name!==r.imported.name){this.space();this.word("as");this.space();this.print(r.local)}}function ImportDefaultSpecifier(r){this.print(r.local)}function ExportDefaultSpecifier(r){this.print(r.exported)}function ExportSpecifier(r){if(r.exportKind==="type"){this.word("type");this.space()}this.print(r.local);if(r.exported&&r.local.name!==r.exported.name){this.space();this.word("as");this.space();this.print(r.exported)}}function ExportNamespaceSpecifier(r){this.tokenChar(42);this.space();this.word("as");this.space();this.print(r.exported)}let S=false;function _printAttributes(r,s){var l;const{importAttributesKeyword:p}=this.format;const{attributes:d,assertions:m}=r;if(d&&!p&&r.extra&&(r.extra.deprecatedAssertSyntax||r.extra.deprecatedWithLegacySyntax)&&!S){S=true;console.warn(`You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : \`import { a } from "b" with { type: "json" };\`\n - "assert" : \`import { a } from "b" assert { type: "json" };\`\n - "with-legacy" : \`import { a } from "b" with type: "json";\`\n`)}const y=p==="assert"||!p&&m;this.word(y?"assert":"with");this.space();if(!y&&(p==="with-legacy"||!p&&(l=r.extra)!=null&&l.deprecatedWithLegacySyntax)){this.printList(d||m);return}const g=s?1:0;this.token("{",null,g);this.space();this.printList(d||m,this.shouldPrintTrailingComma("}"));this.space();this.token("}",null,g)}function ExportAllDeclaration(r){var s,l;this.word("export");this.space();if(r.exportKind==="type"){this.word("type");this.space()}this.tokenChar(42);this.space();this.word("from");this.space();if((s=r.attributes)!=null&&s.length||(l=r.assertions)!=null&&l.length){this.print(r.source,true);this.space();this._printAttributes(r,false)}else{this.print(r.source)}this.semicolon()}function maybePrintDecoratorsBeforeExport(r,s){if(m(s.declaration)&&r._shouldPrintDecoratorsBeforeExport(s)){r.printJoin(s.declaration.decorators)}}function ExportNamedDeclaration(r){maybePrintDecoratorsBeforeExport(this,r);this.word("export");this.space();if(r.declaration){const s=r.declaration;this.print(s);if(!E(s))this.semicolon()}else{if(r.exportKind==="type"){this.word("type");this.space()}const p=r.specifiers.slice(0);let d=false;for(;;){const r=p[0];if(y(r)||g(r)){d=true;this.print(p.shift());if(p.length){this.tokenChar(44);this.space()}}else{break}}let m=false;if(p.length||!p.length&&!d){m=true;this.tokenChar(123);if(p.length){this.space();this.printList(p,this.shouldPrintTrailingComma("}"));this.space()}this.tokenChar(125)}if(r.source){var s,l;this.space();this.word("from");this.space();if((s=r.attributes)!=null&&s.length||(l=r.assertions)!=null&&l.length){this.print(r.source,true);this.space();this._printAttributes(r,m)}else{this.print(r.source)}}this.semicolon()}}function ExportDefaultDeclaration(r){maybePrintDecoratorsBeforeExport(this,r);this.word("export");this.noIndentInnerCommentsHere();this.space();this.word("default");this.space();this.tokenContext|=d.TokenContext.exportDefault;const s=r.declaration;this.print(s);if(!E(s))this.semicolon()}function ImportDeclaration(r){var s,l;this.word("import");this.space();const p=r.importKind==="type"||r.importKind==="typeof";if(p){this.noIndentInnerCommentsHere();this.word(r.importKind);this.space()}else if(r.module){this.noIndentInnerCommentsHere();this.word("module");this.space()}else if(r.phase){this.noIndentInnerCommentsHere();this.word(r.phase);this.space()}const d=r.specifiers.slice(0);const m=!!d.length;while(m){const r=d[0];if(T(r)||b(r)){this.print(d.shift());if(d.length){this.tokenChar(44);this.space()}}else{break}}let y=false;if(d.length){y=true;this.tokenChar(123);this.space();this.printList(d,this.shouldPrintTrailingComma("}"));this.space();this.tokenChar(125)}else if(p&&!m){y=true;this.tokenChar(123);this.tokenChar(125)}if(m||p){this.space();this.word("from");this.space()}if((s=r.attributes)!=null&&s.length||(l=r.assertions)!=null&&l.length){this.print(r.source,true);this.space();this._printAttributes(r,y)}else{this.print(r.source)}this.semicolon()}function ImportAttribute(r){this.print(r.key);this.tokenChar(58);this.space();this.print(r.value)}function ImportNamespaceSpecifier(r){this.tokenChar(42);this.space();this.word("as");this.space();this.print(r.local)}function ImportExpression(r){this.word("import");if(r.phase){this.tokenChar(46);this.word(r.phase)}this.tokenChar(40);const s=this.shouldPrintTrailingComma(")");this.print(r.source);if(r.options!=null){this.tokenChar(44);this.space();this.print(r.options)}if(s){this.tokenChar(44)}this.rightParens(r)}},9975:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.BreakStatement=BreakStatement;s.CatchClause=CatchClause;s.ContinueStatement=ContinueStatement;s.DebuggerStatement=DebuggerStatement;s.DoWhileStatement=DoWhileStatement;s.ForOfStatement=s.ForInStatement=void 0;s.ForStatement=ForStatement;s.IfStatement=IfStatement;s.LabeledStatement=LabeledStatement;s.ReturnStatement=ReturnStatement;s.SwitchCase=SwitchCase;s.SwitchStatement=SwitchStatement;s.ThrowStatement=ThrowStatement;s.TryStatement=TryStatement;s.VariableDeclaration=VariableDeclaration;s.VariableDeclarator=VariableDeclarator;s.WhileStatement=WhileStatement;s.WithStatement=WithStatement;var p=l(3658);const{isFor:d,isForStatement:m,isIfStatement:y,isStatement:g}=p;function WithStatement(r){this.word("with");this.space();this.tokenChar(40);this.print(r.object);this.tokenChar(41);this.printBlock(r)}function IfStatement(r){this.word("if");this.space();this.tokenChar(40);this.print(r.test);this.tokenChar(41);this.space();const s=r.alternate&&y(getLastStatement(r.consequent));if(s){this.tokenChar(123);this.newline();this.indent()}this.printAndIndentOnComments(r.consequent);if(s){this.dedent();this.newline();this.tokenChar(125)}if(r.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(r.alternate)}}function getLastStatement(r){const{body:s}=r;if(g(s)===false){return r}return getLastStatement(s)}function ForStatement(r){this.word("for");this.space();this.tokenChar(40);{const s=this.enterForStatementInit();this.print(r.init);s()}this.tokenChar(59);if(r.test){this.space();this.print(r.test)}this.token(";",false,1);if(r.update){this.space();this.print(r.update)}this.tokenChar(41);this.printBlock(r)}function WhileStatement(r){this.word("while");this.space();this.tokenChar(40);this.print(r.test);this.tokenChar(41);this.printBlock(r)}function ForXStatement(r){this.word("for");this.space();const s=r.type==="ForOfStatement";if(s&&r.await){this.word("await");this.space()}this.noIndentInnerCommentsHere();this.tokenChar(40);{const l=this.enterForXStatementInit(s);this.print(r.left);l==null||l()}this.space();this.word(s?"of":"in");this.space();this.print(r.right);this.tokenChar(41);this.printBlock(r)}const T=s.ForInStatement=ForXStatement;const b=s.ForOfStatement=ForXStatement;function DoWhileStatement(r){this.word("do");this.space();this.print(r.body);this.space();this.word("while");this.space();this.tokenChar(40);this.print(r.test);this.tokenChar(41);this.semicolon()}function printStatementAfterKeyword(r,s){if(s){r.space();r.printTerminatorless(s)}r.semicolon()}function BreakStatement(r){this.word("break");printStatementAfterKeyword(this,r.label)}function ContinueStatement(r){this.word("continue");printStatementAfterKeyword(this,r.label)}function ReturnStatement(r){this.word("return");printStatementAfterKeyword(this,r.argument)}function ThrowStatement(r){this.word("throw");printStatementAfterKeyword(this,r.argument)}function LabeledStatement(r){this.print(r.label);this.tokenChar(58);this.space();this.print(r.body)}function TryStatement(r){this.word("try");this.space();this.print(r.block);this.space();if(r.handlers){this.print(r.handlers[0])}else{this.print(r.handler)}if(r.finalizer){this.space();this.word("finally");this.space();this.print(r.finalizer)}}function CatchClause(r){this.word("catch");this.space();if(r.param){this.tokenChar(40);this.print(r.param);this.print(r.param.typeAnnotation);this.tokenChar(41);this.space()}this.print(r.body)}function SwitchStatement(r){this.word("switch");this.space();this.tokenChar(40);this.print(r.discriminant);this.tokenChar(41);this.space();this.tokenChar(123);this.printSequence(r.cases,true,undefined,(function addNewlines(s,l){if(!s&&r.cases[r.cases.length-1]===l)return-1}));this.rightBrace(r)}function SwitchCase(r){if(r.test){this.word("case");this.space();this.print(r.test);this.tokenChar(58)}else{this.word("default");this.tokenChar(58)}if(r.consequent.length){this.newline();this.printSequence(r.consequent,true)}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function VariableDeclaration(r,s){if(r.declare){this.word("declare");this.space()}const{kind:l}=r;if(l==="await using"){this.word("await");this.space();this.word("using",true)}else{this.word(l,l==="using")}this.space();let p=false;if(!d(s)){for(const s of r.declarations){if(s.init){p=true}}}this.printList(r.declarations,undefined,undefined,r.declarations.length>1,p?function(r){this.token(",",false,r);this.newline()}:undefined);if(d(s)){if(m(s)){if(s.init===r)return}else{if(s.left===r)return}}this.semicolon()}function VariableDeclarator(r){this.print(r.id);if(r.definite)this.tokenChar(33);this.print(r.id.typeAnnotation);if(r.init){this.space();this.tokenChar(61);this.space();this.print(r.init)}}},8344:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.TaggedTemplateExpression=TaggedTemplateExpression;s.TemplateElement=TemplateElement;s.TemplateLiteral=TemplateLiteral;s._printTemplate=_printTemplate;function TaggedTemplateExpression(r){this.print(r.tag);{this.print(r.typeParameters)}this.print(r.quasi)}function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function _printTemplate(r,s){const l=r.quasis;let p="`";for(let d=0;d<l.length-1;d++){p+=l[d].value.raw;this.token(p+"${",true);this.print(s[d]);p="}";if(this.tokenMap){const s=this.tokenMap.findMatching(r,"}",d);if(s)this._catchUpTo(s.loc.start)}}p+=l[l.length-1].value.raw;this.token(p+"`",true)}function TemplateLiteral(r){this._printTemplate(r,r.expressions)}},8408:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.ArgumentPlaceholder=ArgumentPlaceholder;s.ArrayPattern=s.ArrayExpression=ArrayExpression;s.BigIntLiteral=BigIntLiteral;s.BooleanLiteral=BooleanLiteral;s.Identifier=Identifier;s.NullLiteral=NullLiteral;s.NumericLiteral=NumericLiteral;s.ObjectPattern=s.ObjectExpression=ObjectExpression;s.ObjectMethod=ObjectMethod;s.ObjectProperty=ObjectProperty;s.PipelineBareFunction=PipelineBareFunction;s.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;s.PipelineTopicExpression=PipelineTopicExpression;s.RecordExpression=RecordExpression;s.RegExpLiteral=RegExpLiteral;s.SpreadElement=s.RestElement=RestElement;s.StringLiteral=StringLiteral;s.TopicReference=TopicReference;s.TupleExpression=TupleExpression;s.VoidPattern=VoidPattern;s._getRawIdentifier=_getRawIdentifier;var p=l(3658);var d=l(4905);const{isAssignmentPattern:m,isIdentifier:y}=p;let g=null;let T="";function _getRawIdentifier(r){if(r===g)return T;g=r;const{name:s}=r;const l=this.tokenMap.find(r,(r=>r.value===s));if(l){T=this._originalCode.slice(l.start,l.end);return T}return T=r.name}function Identifier(r){var s;this.sourceIdentifierName(((s=r.loc)==null?void 0:s.identifierName)||r.name);this.word(this.tokenMap?this._getRawIdentifier(r):r.name)}function ArgumentPlaceholder(){this.tokenChar(63)}function RestElement(r){this.token("...");this.print(r.argument)}function ObjectExpression(r){const s=r.properties;this.tokenChar(123);if(s.length){const r=this.enterDelimited();this.space();this.printList(s,this.shouldPrintTrailingComma("}"),true,true);this.space();r()}this.sourceWithOffset("end",r.loc,-1);this.tokenChar(125)}function ObjectMethod(r){this.printJoin(r.decorators);this._methodHead(r);this.space();this.print(r.body)}function ObjectProperty(r){this.printJoin(r.decorators);if(r.computed){this.tokenChar(91);this.print(r.key);this.tokenChar(93)}else{if(m(r.value)&&y(r.key)&&r.key.name===r.value.left.name){this.print(r.value);return}this.print(r.key);if(r.shorthand&&y(r.key)&&y(r.value)&&r.key.name===r.value.name){return}}this.tokenChar(58);this.space();this.print(r.value)}function ArrayExpression(r){const s=r.elements;const l=s.length;this.tokenChar(91);const p=this.enterDelimited();for(let r=0;r<s.length;r++){const p=s[r];if(p){if(r>0)this.space();this.print(p);if(r<l-1||this.shouldPrintTrailingComma("]")){this.token(",",false,r)}}else{this.token(",",false,r)}}p();this.tokenChar(93)}function RecordExpression(r){const s=r.properties;let l;let p;{if(this.format.recordAndTupleSyntaxType==="bar"){l="{|";p="|}"}else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null){throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`)}else{l="#{";p="}"}}this.token(l);if(s.length){this.space();this.printList(s,this.shouldPrintTrailingComma(p),true,true);this.space()}this.token(p)}function TupleExpression(r){const s=r.elements;const l=s.length;let p;let d;{if(this.format.recordAndTupleSyntaxType==="bar"){p="[|";d="|]"}else if(this.format.recordAndTupleSyntaxType==="hash"){p="#[";d="]"}else{throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`)}}this.token(p);for(let r=0;r<s.length;r++){const p=s[r];if(p){if(r>0)this.space();this.print(p);if(r<l-1||this.shouldPrintTrailingComma(d)){this.token(",",false,r)}}}this.token(d)}function RegExpLiteral(r){this.word(`/${r.pattern}/${r.flags}`)}function BooleanLiteral(r){this.word(r.value?"true":"false")}function NullLiteral(){this.word("null")}function NumericLiteral(r){const s=this.getPossibleRaw(r);const l=this.format.jsescOption;const p=r.value;const m=p+"";if(l.numbers){this.number(d(p,l),p)}else if(s==null){this.number(m,p)}else if(this.format.minified){this.number(s.length<m.length?s:m,p)}else{this.number(s,p)}}function StringLiteral(r){const s=this.getPossibleRaw(r);if(!this.format.minified&&s!==undefined){this.token(s);return}const l=d(r.value,this.format.jsescOption);this.token(l)}function BigIntLiteral(r){const s=this.getPossibleRaw(r);if(!this.format.minified&&s!==undefined){this.word(s);return}this.word(r.value+"n")}const b=new Set(["^^","@@","^","%","#"]);function TopicReference(){const{topicToken:r}=this.format;if(b.has(r)){this.token(r)}else{const s=JSON.stringify(r);const l=Array.from(b,(r=>JSON.stringify(r)));throw new Error(`The "topicToken" generator option must be one of `+`${l.join(", ")} (${s} received instead).`)}}function PipelineTopicExpression(r){this.print(r.expression)}function PipelineBareFunction(r){this.print(r.callee)}function PipelinePrimaryTopicReference(){this.tokenChar(35)}function VoidPattern(){this.word("void")}},6898:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.TSAnyKeyword=TSAnyKeyword;s.TSArrayType=TSArrayType;s.TSSatisfiesExpression=s.TSAsExpression=TSTypeExpression;s.TSBigIntKeyword=TSBigIntKeyword;s.TSBooleanKeyword=TSBooleanKeyword;s.TSCallSignatureDeclaration=TSCallSignatureDeclaration;s.TSInterfaceHeritage=s.TSClassImplements=TSClassImplements;s.TSConditionalType=TSConditionalType;s.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;s.TSConstructorType=TSConstructorType;s.TSDeclareFunction=TSDeclareFunction;s.TSDeclareMethod=TSDeclareMethod;s.TSEnumBody=TSEnumBody;s.TSEnumDeclaration=TSEnumDeclaration;s.TSEnumMember=TSEnumMember;s.TSExportAssignment=TSExportAssignment;s.TSExternalModuleReference=TSExternalModuleReference;s.TSFunctionType=TSFunctionType;s.TSImportEqualsDeclaration=TSImportEqualsDeclaration;s.TSImportType=TSImportType;s.TSIndexSignature=TSIndexSignature;s.TSIndexedAccessType=TSIndexedAccessType;s.TSInferType=TSInferType;s.TSInstantiationExpression=TSInstantiationExpression;s.TSInterfaceBody=TSInterfaceBody;s.TSInterfaceDeclaration=TSInterfaceDeclaration;s.TSIntersectionType=TSIntersectionType;s.TSIntrinsicKeyword=TSIntrinsicKeyword;s.TSLiteralType=TSLiteralType;s.TSMappedType=TSMappedType;s.TSMethodSignature=TSMethodSignature;s.TSModuleBlock=TSModuleBlock;s.TSModuleDeclaration=TSModuleDeclaration;s.TSNamedTupleMember=TSNamedTupleMember;s.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;s.TSNeverKeyword=TSNeverKeyword;s.TSNonNullExpression=TSNonNullExpression;s.TSNullKeyword=TSNullKeyword;s.TSNumberKeyword=TSNumberKeyword;s.TSObjectKeyword=TSObjectKeyword;s.TSOptionalType=TSOptionalType;s.TSParameterProperty=TSParameterProperty;s.TSParenthesizedType=TSParenthesizedType;s.TSPropertySignature=TSPropertySignature;s.TSQualifiedName=TSQualifiedName;s.TSRestType=TSRestType;s.TSStringKeyword=TSStringKeyword;s.TSSymbolKeyword=TSSymbolKeyword;s.TSTemplateLiteralType=TSTemplateLiteralType;s.TSThisType=TSThisType;s.TSTupleType=TSTupleType;s.TSTypeAliasDeclaration=TSTypeAliasDeclaration;s.TSTypeAnnotation=TSTypeAnnotation;s.TSTypeAssertion=TSTypeAssertion;s.TSTypeLiteral=TSTypeLiteral;s.TSTypeOperator=TSTypeOperator;s.TSTypeParameter=TSTypeParameter;s.TSTypeParameterDeclaration=s.TSTypeParameterInstantiation=TSTypeParameterInstantiation;s.TSTypePredicate=TSTypePredicate;s.TSTypeQuery=TSTypeQuery;s.TSTypeReference=TSTypeReference;s.TSUndefinedKeyword=TSUndefinedKeyword;s.TSUnionType=TSUnionType;s.TSUnknownKeyword=TSUnknownKeyword;s.TSVoidKeyword=TSVoidKeyword;s.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;s.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;s.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;s.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;function TSTypeAnnotation(r,s){this.token((s.type==="TSFunctionType"||s.type==="TSConstructorType")&&s.typeAnnotation===r?"=>":":");this.space();if(r.optional)this.tokenChar(63);this.print(r.typeAnnotation)}function TSTypeParameterInstantiation(r,s){this.tokenChar(60);let l=s.type==="ArrowFunctionExpression"&&r.params.length===1;if(this.tokenMap&&r.start!=null&&r.end!=null){l&&(l=!!this.tokenMap.find(r,(r=>this.tokenMap.matchesOriginal(r,","))));l||(l=this.shouldPrintTrailingComma(">"))}this.printList(r.params,l);this.tokenChar(62)}function TSTypeParameter(r){if(r.const){this.word("const");this.space()}if(r.in){this.word("in");this.space()}if(r.out){this.word("out");this.space()}this.word(r.name);if(r.constraint){this.space();this.word("extends");this.space();this.print(r.constraint)}if(r.default){this.space();this.tokenChar(61);this.space();this.print(r.default)}}function TSParameterProperty(r){if(r.accessibility){this.word(r.accessibility);this.space()}if(r.readonly){this.word("readonly");this.space()}this._param(r.parameter)}function TSDeclareFunction(r,s){if(r.declare){this.word("declare");this.space()}this._functionHead(r,s);this.semicolon()}function TSDeclareMethod(r){this._classMethodHead(r);this.semicolon()}function TSQualifiedName(r){this.print(r.left);this.tokenChar(46);this.print(r.right)}function TSCallSignatureDeclaration(r){this.tsPrintSignatureDeclarationBase(r);maybePrintTrailingCommaOrSemicolon(this,r)}function maybePrintTrailingCommaOrSemicolon(r,s){if(!r.tokenMap||!s.start||!s.end){r.semicolon();return}if(r.tokenMap.endMatches(s,",")){r.token(",")}else if(r.tokenMap.endMatches(s,";")){r.semicolon()}}function TSConstructSignatureDeclaration(r){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(r);maybePrintTrailingCommaOrSemicolon(this,r)}function TSPropertySignature(r){const{readonly:s}=r;if(s){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(r);this.print(r.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,r)}function tsPrintPropertyOrMethodName(r){if(r.computed){this.tokenChar(91)}this.print(r.key);if(r.computed){this.tokenChar(93)}if(r.optional){this.tokenChar(63)}}function TSMethodSignature(r){const{kind:s}=r;if(s==="set"||s==="get"){this.word(s);this.space()}this.tsPrintPropertyOrMethodName(r);this.tsPrintSignatureDeclarationBase(r);maybePrintTrailingCommaOrSemicolon(this,r)}function TSIndexSignature(r){const{readonly:s,static:l}=r;if(l){this.word("static");this.space()}if(s){this.word("readonly");this.space()}this.tokenChar(91);this._parameters(r.parameters,"]");this.print(r.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,r)}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(r){this.tsPrintFunctionOrConstructorType(r)}function TSConstructorType(r){if(r.abstract){this.word("abstract");this.space()}this.word("new");this.space();this.tsPrintFunctionOrConstructorType(r)}function tsPrintFunctionOrConstructorType(r){const{typeParameters:s}=r;const l=r.parameters;this.print(s);this.tokenChar(40);this._parameters(l,")");this.space();const p=r.typeAnnotation;this.print(p)}function TSTypeReference(r){const s=r.typeParameters;this.print(r.typeName,!!s);this.print(s)}function TSTypePredicate(r){if(r.asserts){this.word("asserts");this.space()}this.print(r.parameterName);if(r.typeAnnotation){this.space();this.word("is");this.space();this.print(r.typeAnnotation.typeAnnotation)}}function TSTypeQuery(r){this.word("typeof");this.space();this.print(r.exprName);const s=r.typeParameters;if(s){this.print(s)}}function TSTypeLiteral(r){printBraced(this,r,(()=>this.printJoin(r.members,true,true)))}function TSArrayType(r){this.print(r.elementType,true);this.tokenChar(91);this.tokenChar(93)}function TSTupleType(r){this.tokenChar(91);this.printList(r.elementTypes,this.shouldPrintTrailingComma("]"));this.tokenChar(93)}function TSOptionalType(r){this.print(r.typeAnnotation);this.tokenChar(63)}function TSRestType(r){this.token("...");this.print(r.typeAnnotation)}function TSNamedTupleMember(r){this.print(r.label);if(r.optional)this.tokenChar(63);this.tokenChar(58);this.space();this.print(r.elementType)}function TSUnionType(r){tsPrintUnionOrIntersectionType(this,r,"|")}function TSIntersectionType(r){tsPrintUnionOrIntersectionType(this,r,"&")}function tsPrintUnionOrIntersectionType(r,s,l){var p;let d=0;if((p=r.tokenMap)!=null&&p.startMatches(s,l)){d=1;r.token(l)}r.printJoin(s.types,undefined,undefined,(function(r){this.space();this.token(l,null,r+d);this.space()}))}function TSConditionalType(r){this.print(r.checkType);this.space();this.word("extends");this.space();this.print(r.extendsType);this.space();this.tokenChar(63);this.space();this.print(r.trueType);this.space();this.tokenChar(58);this.space();this.print(r.falseType)}function TSInferType(r){this.word("infer");this.print(r.typeParameter)}function TSParenthesizedType(r){this.tokenChar(40);this.print(r.typeAnnotation);this.tokenChar(41)}function TSTypeOperator(r){this.word(r.operator);this.space();this.print(r.typeAnnotation)}function TSIndexedAccessType(r){this.print(r.objectType,true);this.tokenChar(91);this.print(r.indexType);this.tokenChar(93)}function TSMappedType(r){const{nameType:s,optional:l,readonly:p,typeAnnotation:d}=r;this.tokenChar(123);const m=this.enterDelimited();this.space();if(p){tokenIfPlusMinus(this,p);this.word("readonly");this.space()}this.tokenChar(91);{this.word(r.typeParameter.name)}this.space();this.word("in");this.space();{this.print(r.typeParameter.constraint)}if(s){this.space();this.word("as");this.space();this.print(s)}this.tokenChar(93);if(l){tokenIfPlusMinus(this,l);this.tokenChar(63)}if(d){this.tokenChar(58);this.space();this.print(d)}this.space();m();this.tokenChar(125)}function tokenIfPlusMinus(r,s){if(s!==true){r.token(s)}}function TSTemplateLiteralType(r){this._printTemplate(r,r.types)}function TSLiteralType(r){this.print(r.literal)}function TSClassImplements(r){this.print(r.expression);this.print(r.typeArguments)}function TSInterfaceDeclaration(r){const{declare:s,id:l,typeParameters:p,extends:d,body:m}=r;if(s){this.word("declare");this.space()}this.word("interface");this.space();this.print(l);this.print(p);if(d!=null&&d.length){this.space();this.word("extends");this.space();this.printList(d)}this.space();this.print(m)}function TSInterfaceBody(r){printBraced(this,r,(()=>this.printJoin(r.body,true,true)))}function TSTypeAliasDeclaration(r){const{declare:s,id:l,typeParameters:p,typeAnnotation:d}=r;if(s){this.word("declare");this.space()}this.word("type");this.space();this.print(l);this.print(p);this.space();this.tokenChar(61);this.space();this.print(d);this.semicolon()}function TSTypeExpression(r){const{type:s,expression:l,typeAnnotation:p}=r;this.print(l,true);this.space();this.word(s==="TSAsExpression"?"as":"satisfies");this.space();this.print(p)}function TSTypeAssertion(r){const{typeAnnotation:s,expression:l}=r;this.tokenChar(60);this.print(s);this.tokenChar(62);this.space();this.print(l)}function TSInstantiationExpression(r){this.print(r.expression);{this.print(r.typeParameters)}}function TSEnumDeclaration(r){const{declare:s,const:l,id:p}=r;if(s){this.word("declare");this.space()}if(l){this.word("const");this.space()}this.word("enum");this.space();this.print(p);this.space();{TSEnumBody.call(this,r)}}function TSEnumBody(r){printBraced(this,r,(()=>{var s;return this.printList(r.members,(s=this.shouldPrintTrailingComma("}"))!=null?s:true,true,true)}))}function TSEnumMember(r){const{id:s,initializer:l}=r;this.print(s);if(l){this.space();this.tokenChar(61);this.space();this.print(l)}}function TSModuleDeclaration(r){const{declare:s,id:l,kind:p}=r;if(s){this.word("declare");this.space()}{if(!r.global){this.word(p!=null?p:l.type==="Identifier"?"namespace":"module");this.space()}this.print(l);if(!r.body){this.semicolon();return}let s=r.body;while(s.type==="TSModuleDeclaration"){this.tokenChar(46);this.print(s.id);s=s.body}this.space();this.print(s)}}function TSModuleBlock(r){printBraced(this,r,(()=>this.printSequence(r.body,true)))}function TSImportType(r){const{argument:s,qualifier:l,options:p}=r;this.word("import");this.tokenChar(40);this.print(s);if(p){this.tokenChar(44);this.print(p)}this.tokenChar(41);if(l){this.tokenChar(46);this.print(l)}const d=r.typeParameters;if(d){this.print(d)}}function TSImportEqualsDeclaration(r){const{id:s,moduleReference:l}=r;if(r.isExport){this.word("export");this.space()}this.word("import");this.space();this.print(s);this.space();this.tokenChar(61);this.space();this.print(l);this.semicolon()}function TSExternalModuleReference(r){this.token("require(");this.print(r.expression);this.tokenChar(41)}function TSNonNullExpression(r){this.print(r.expression);this.tokenChar(33)}function TSExportAssignment(r){this.word("export");this.space();this.tokenChar(61);this.space();this.print(r.expression);this.semicolon()}function TSNamespaceExportDeclaration(r){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(r.id);this.semicolon()}function tsPrintSignatureDeclarationBase(r){const{typeParameters:s}=r;const l=r.parameters;this.print(s);this.tokenChar(40);this._parameters(l,")");const p=r.typeAnnotation;this.print(p)}function tsPrintClassMemberModifiers(r){const s=r.type==="ClassPrivateProperty";const l=r.type==="ClassAccessorProperty"||r.type==="ClassProperty";printModifiersList(this,r,[l&&r.declare&&"declare",!s&&r.accessibility]);if(r.static){this.word("static");this.space()}printModifiersList(this,r,[!s&&r.abstract&&"abstract",!s&&r.override&&"override",(l||s)&&r.readonly&&"readonly"])}function printBraced(r,s,l){r.token("{");const p=r.enterDelimited();l();p();r.rightBrace(s)}function printModifiersList(r,s,l){var p;const d=new Set;for(const r of l){if(r)d.add(r)}(p=r.tokenMap)==null||p.find(s,(s=>{if(d.has(s.value)){r.token(s.value);r.space();d.delete(s.value);return d.size===0}}));for(const s of d){r.word(s);r.space()}}},7490:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;s.generate=generate;var p=l(326);var d=l(9494);function normalizeOptions(r,s,l){if(s.experimental_preserveFormat){if(typeof r!=="string"){throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string")}if(!s.retainLines){throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`")}if(s.compact&&s.compact!=="auto"){throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option")}if(s.minified){throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option")}if(s.jsescOption){throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option")}if(!Array.isArray(l.tokens)){throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}}const p={auxiliaryCommentBefore:s.auxiliaryCommentBefore,auxiliaryCommentAfter:s.auxiliaryCommentAfter,shouldPrintComment:s.shouldPrintComment,preserveFormat:s.experimental_preserveFormat,retainLines:s.retainLines,retainFunctionParens:s.retainFunctionParens,comments:s.comments==null||s.comments,compact:s.compact,minified:s.minified,concise:s.concise,indent:{adjustMultilineComment:true,style:" "},jsescOption:Object.assign({quotes:"double",wrap:true,minimal:false},s.jsescOption),topicToken:s.topicToken,importAttributesKeyword:s.importAttributesKeyword};{var d;p.decoratorsBeforeExport=s.decoratorsBeforeExport;p.jsescOption.json=s.jsonCompatibleStrings;p.recordAndTupleSyntaxType=(d=s.recordAndTupleSyntaxType)!=null?d:"hash"}if(p.minified){p.compact=true;p.shouldPrintComment=p.shouldPrintComment||(()=>p.comments)}else{p.shouldPrintComment=p.shouldPrintComment||(r=>p.comments||r.includes("@license")||r.includes("@preserve"))}if(p.compact==="auto"){p.compact=typeof r==="string"&&r.length>5e5;if(p.compact){console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${s.filename} as it exceeds the max of ${"500KB"}.`)}}if(p.compact||p.preserveFormat){p.indent.adjustMultilineComment=false}const{auxiliaryCommentBefore:m,auxiliaryCommentAfter:y,shouldPrintComment:g}=p;if(m&&!g(m)){p.auxiliaryCommentBefore=undefined}if(y&&!g(y)){p.auxiliaryCommentAfter=undefined}return p}{s.CodeGenerator=class CodeGenerator{constructor(r,s={},l){this._ast=void 0;this._format=void 0;this._map=void 0;this._ast=r;this._format=normalizeOptions(l,s,r);this._map=s.sourceMaps?new p.default(s,l):null}generate(){const r=new d.default(this._format,this._map);return r.generate(this._ast)}}}function generate(r,s={},l){const m=normalizeOptions(l,s,r);const y=s.sourceMaps?new p.default(s,l):null;const g=new d.default(m,y,r.tokens,typeof l==="string"?l:null);return g.generate(r)}var m=s["default"]=generate},4159:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.TokenContext=void 0;s.isLastChild=isLastChild;s.needsParens=needsParens;s.needsWhitespace=needsWhitespace;s.needsWhitespaceAfter=needsWhitespaceAfter;s.needsWhitespaceBefore=needsWhitespaceBefore;var p=l(6138);var d=l(9283);var m=l(3658);const{FLIPPED_ALIAS_KEYS:y,VISITOR_KEYS:g,isCallExpression:T,isDecorator:b,isExpressionStatement:E,isMemberExpression:S,isNewExpression:_,isParenthesizedExpression:x}=m;const w=s.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function expandAliases(r){const s=new Map;function add(r,l){const p=s.get(r);s.set(r,p?function(r,s,d,m){var y;return(y=p(r,s,d,m))!=null?y:l(r,s,d,m)}:l)}for(const s of Object.keys(r)){const l=y[s];if(l){for(const p of l){add(p,r[s])}}else{add(s,r[s])}}return s}const v=expandAliases(d);const A=expandAliases(p.nodes);function isOrHasCallExpression(r){if(T(r)){return true}return S(r)&&isOrHasCallExpression(r.object)}function needsWhitespace(r,s,l){var p;if(!r)return false;if(E(r)){r=r.expression}const d=(p=A.get(r.type))==null?void 0:p(r,s);if(typeof d==="number"){return(d&l)!==0}return false}function needsWhitespaceBefore(r,s){return needsWhitespace(r,s,1)}function needsWhitespaceAfter(r,s){return needsWhitespace(r,s,2)}function needsParens(r,s,l,p){var d;if(!s)return false;if(_(s)&&s.callee===r){if(isOrHasCallExpression(r))return true}if(b(s)){return!isDecoratorMemberExpression(r)&&!(T(r)&&isDecoratorMemberExpression(r.callee))&&!x(r)}return(d=v.get(r.type))==null?void 0:d(r,s,l,p)}function isDecoratorMemberExpression(r){switch(r.type){case"Identifier":return true;case"MemberExpression":return!r.computed&&r.property.type==="Identifier"&&isDecoratorMemberExpression(r.object);default:return false}}function isLastChild(r,s){const l=g[r.type];for(let p=l.length-1;p>=0;p--){const d=r[l[p]];if(d===s){return true}else if(Array.isArray(d)){let r=d.length-1;while(r>=0&&d[r]===null)r--;return r>=0&&d[r]===s}else if(d){return false}}return false}},9283:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.AssignmentExpression=AssignmentExpression;s.Binary=Binary;s.BinaryExpression=BinaryExpression;s.ClassExpression=ClassExpression;s.ArrowFunctionExpression=s.ConditionalExpression=ConditionalExpression;s.DoExpression=DoExpression;s.FunctionExpression=FunctionExpression;s.FunctionTypeAnnotation=FunctionTypeAnnotation;s.Identifier=Identifier;s.LogicalExpression=LogicalExpression;s.NullableTypeAnnotation=NullableTypeAnnotation;s.ObjectExpression=ObjectExpression;s.OptionalIndexedAccessType=OptionalIndexedAccessType;s.OptionalCallExpression=s.OptionalMemberExpression=OptionalMemberExpression;s.SequenceExpression=SequenceExpression;s.TSSatisfiesExpression=s.TSAsExpression=TSAsExpression;s.TSConditionalType=TSConditionalType;s.TSConstructorType=s.TSFunctionType=TSFunctionType;s.TSInferType=TSInferType;s.TSInstantiationExpression=TSInstantiationExpression;s.TSIntersectionType=TSIntersectionType;s.UnaryLike=s.TSTypeAssertion=UnaryLike;s.TSTypeOperator=TSTypeOperator;s.TSUnionType=TSUnionType;s.IntersectionTypeAnnotation=s.UnionTypeAnnotation=UnionTypeAnnotation;s.UpdateExpression=UpdateExpression;s.AwaitExpression=s.YieldExpression=YieldExpression;var p=l(3658);var d=l(4159);const{isArrayTypeAnnotation:m,isBinaryExpression:y,isCallExpression:g,isForOfStatement:T,isIndexedAccessType:b,isMemberExpression:E,isObjectPattern:S,isOptionalMemberExpression:_,isYieldExpression:x,isStatement:w}=p;const v=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function getBinaryPrecedence(r,s){if(s==="BinaryExpression"||s==="LogicalExpression"){return v.get(r.operator)}if(s==="TSAsExpression"||s==="TSSatisfiesExpression"){return v.get("in")}}function isTSTypeExpression(r){return r==="TSAsExpression"||r==="TSSatisfiesExpression"||r==="TSTypeAssertion"}const isClassExtendsClause=(r,s)=>{const l=s.type;return(l==="ClassDeclaration"||l==="ClassExpression")&&s.superClass===r};const hasPostfixPart=(r,s)=>{const l=s.type;return(l==="MemberExpression"||l==="OptionalMemberExpression")&&s.object===r||(l==="CallExpression"||l==="OptionalCallExpression"||l==="NewExpression")&&s.callee===r||l==="TaggedTemplateExpression"&&s.tag===r||l==="TSNonNullExpression"};function NullableTypeAnnotation(r,s){return m(s)}function FunctionTypeAnnotation(r,s,l){const p=s.type;return p==="UnionTypeAnnotation"||p==="IntersectionTypeAnnotation"||p==="ArrayTypeAnnotation"||Boolean(l&d.TokenContext.arrowFlowReturnType)}function UpdateExpression(r,s){return hasPostfixPart(r,s)||isClassExtendsClause(r,s)}function needsParenBeforeExpressionBrace(r){return Boolean(r&(d.TokenContext.expressionStatement|d.TokenContext.arrowBody))}function ObjectExpression(r,s,l){return needsParenBeforeExpressionBrace(l)}function DoExpression(r,s,l){return!r.async&&Boolean(l&d.TokenContext.expressionStatement)}function Binary(r,s){const l=s.type;if(r.type==="BinaryExpression"&&r.operator==="**"&&l==="BinaryExpression"&&s.operator==="**"){return s.left===r}if(isClassExtendsClause(r,s)){return true}if(hasPostfixPart(r,s)||l==="UnaryExpression"||l==="SpreadElement"||l==="AwaitExpression"){return true}const p=getBinaryPrecedence(s,l);if(p!=null){const d=getBinaryPrecedence(r,r.type);if(p===d&&l==="BinaryExpression"&&s.right===r||p>d){return true}}return undefined}function UnionTypeAnnotation(r,s){const l=s.type;return l==="ArrayTypeAnnotation"||l==="NullableTypeAnnotation"||l==="IntersectionTypeAnnotation"||l==="UnionTypeAnnotation"}function OptionalIndexedAccessType(r,s){return b(s)&&s.objectType===r}function TSAsExpression(r,s){if((s.type==="AssignmentExpression"||s.type==="AssignmentPattern")&&s.left===r){return true}if(s.type==="BinaryExpression"&&(s.operator==="|"||s.operator==="&")&&r===s.left){return true}return Binary(r,s)}function TSConditionalType(r,s){const l=s.type;if(l==="TSArrayType"||l==="TSIndexedAccessType"&&s.objectType===r||l==="TSOptionalType"||l==="TSTypeOperator"||l==="TSTypeParameter"){return true}if((l==="TSIntersectionType"||l==="TSUnionType")&&s.types[0]===r){return true}if(l==="TSConditionalType"&&(s.checkType===r||s.extendsType===r)){return true}return false}function TSUnionType(r,s){const l=s.type;return l==="TSIntersectionType"||l==="TSTypeOperator"||l==="TSArrayType"||l==="TSIndexedAccessType"&&s.objectType===r||l==="TSOptionalType"}function TSIntersectionType(r,s){const l=s.type;return l==="TSTypeOperator"||l==="TSArrayType"||l==="TSIndexedAccessType"&&s.objectType===r||l==="TSOptionalType"}function TSInferType(r,s){const l=s.type;if(l==="TSArrayType"||l==="TSIndexedAccessType"&&s.objectType===r||l==="TSOptionalType"){return true}if(r.typeParameter.constraint){if((l==="TSIntersectionType"||l==="TSUnionType")&&s.types[0]===r){return true}}return false}function TSTypeOperator(r,s){const l=s.type;return l==="TSArrayType"||l==="TSIndexedAccessType"&&s.objectType===r||l==="TSOptionalType"}function TSInstantiationExpression(r,s){const l=s.type;return(l==="CallExpression"||l==="OptionalCallExpression"||l==="NewExpression"||l==="TSInstantiationExpression")&&!!s.typeParameters}function TSFunctionType(r,s){const l=s.type;return l==="TSIntersectionType"||l==="TSUnionType"||l==="TSTypeOperator"||l==="TSOptionalType"||l==="TSArrayType"||l==="TSIndexedAccessType"&&s.objectType===r||l==="TSConditionalType"&&(s.checkType===r||s.extendsType===r)}function BinaryExpression(r,s,l){return r.operator==="in"&&Boolean(l&d.TokenContext.forInOrInitHeadAccumulate)}function SequenceExpression(r,s){const l=s.type;if(l==="SequenceExpression"||l==="ParenthesizedExpression"||l==="MemberExpression"&&s.property===r||l==="OptionalMemberExpression"&&s.property===r||l==="TemplateLiteral"){return false}if(l==="ClassDeclaration"){return true}if(l==="ForOfStatement"){return s.right===r}if(l==="ExportDefaultDeclaration"){return true}return!w(s)}function YieldExpression(r,s){const l=s.type;return l==="BinaryExpression"||l==="LogicalExpression"||l==="UnaryExpression"||l==="SpreadElement"||hasPostfixPart(r,s)||l==="AwaitExpression"&&x(r)||l==="ConditionalExpression"&&r===s.test||isClassExtendsClause(r,s)||isTSTypeExpression(l)}function ClassExpression(r,s,l){return Boolean(l&(d.TokenContext.expressionStatement|d.TokenContext.exportDefault))}function UnaryLike(r,s){return hasPostfixPart(r,s)||y(s)&&s.operator==="**"&&s.left===r||isClassExtendsClause(r,s)}function FunctionExpression(r,s,l){return Boolean(l&(d.TokenContext.expressionStatement|d.TokenContext.exportDefault))}function ConditionalExpression(r,s){const l=s.type;if(l==="UnaryExpression"||l==="SpreadElement"||l==="BinaryExpression"||l==="LogicalExpression"||l==="ConditionalExpression"&&s.test===r||l==="AwaitExpression"||isTSTypeExpression(l)){return true}return UnaryLike(r,s)}function OptionalMemberExpression(r,s){return g(s)&&s.callee===r||E(s)&&s.object===r}function AssignmentExpression(r,s,l){if(needsParenBeforeExpressionBrace(l)&&S(r.left)){return true}else{return ConditionalExpression(r,s)}}function LogicalExpression(r,s){const l=s.type;if(isTSTypeExpression(l))return true;if(l!=="LogicalExpression")return false;switch(r.operator){case"||":return s.operator==="??"||s.operator==="&&";case"&&":return s.operator==="??";case"??":return s.operator!=="??"}}function Identifier(r,s,l,p){var m;const y=s.type;if((m=r.extra)!=null&&m.parenthesized&&y==="AssignmentExpression"&&s.left===r){const r=s.right.type;if((r==="FunctionExpression"||r==="ClassExpression")&&s.right.id==null){return true}}if(p&&p(r)!==r.name){return false}if(r.name==="let"){const p=E(s,{object:r,computed:true})||_(s,{object:r,computed:true,optional:false});if(p&&l&(d.TokenContext.expressionStatement|d.TokenContext.forInitHead|d.TokenContext.forInHead)){return true}return Boolean(l&d.TokenContext.forOfHead)}return r.name==="async"&&T(s,{left:r,await:false})}},6138:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.nodes=void 0;var p=l(3658);const{FLIPPED_ALIAS_KEYS:d,isArrayExpression:m,isAssignmentExpression:y,isBinary:g,isBlockStatement:T,isCallExpression:b,isFunction:E,isIdentifier:S,isLiteral:_,isMemberExpression:x,isObjectExpression:w,isOptionalCallExpression:v,isOptionalMemberExpression:A,isStringLiteral:P}=p;function crawlInternal(r,s){if(!r)return s;if(x(r)||A(r)){crawlInternal(r.object,s);if(r.computed)crawlInternal(r.property,s)}else if(g(r)||y(r)){crawlInternal(r.left,s);crawlInternal(r.right,s)}else if(b(r)||v(r)){s.hasCall=true;crawlInternal(r.callee,s)}else if(E(r)){s.hasFunction=true}else if(S(r)){s.hasHelper=s.hasHelper||r.callee&&isHelper(r.callee)}return s}function crawl(r){return crawlInternal(r,{hasCall:false,hasFunction:false,hasHelper:false})}function isHelper(r){if(!r)return false;if(x(r)){return isHelper(r.object)||isHelper(r.property)}else if(S(r)){return r.name==="require"||r.name.charCodeAt(0)===95}else if(b(r)){return isHelper(r.callee)}else if(g(r)||y(r)){return S(r.left)&&isHelper(r.left)||isHelper(r.right)}else{return false}}function isType(r){return _(r)||w(r)||m(r)||S(r)||x(r)}const k=s.nodes={AssignmentExpression(r){const s=crawl(r.right);if(s.hasCall&&s.hasHelper||s.hasFunction){return s.hasFunction?1|2:2}},SwitchCase(r,s){return(!!r.consequent.length||s.cases[0]===r?1:0)|(!r.consequent.length&&s.cases[s.cases.length-1]===r?2:0)},LogicalExpression(r){if(E(r.left)||E(r.right)){return 2}},Literal(r){if(P(r)&&r.value==="use strict"){return 2}},CallExpression(r){if(E(r.callee)||isHelper(r)){return 1|2}},OptionalCallExpression(r){if(E(r.callee)){return 1|2}},VariableDeclaration(r){for(let s=0;s<r.declarations.length;s++){const l=r.declarations[s];let p=isHelper(l.id)&&!isType(l.init);if(!p&&l.init){const r=crawl(l.init);p=isHelper(l.init)&&r.hasCall||r.hasFunction}if(p){return 1|2}}},IfStatement(r){if(T(r.consequent)){return 1|2}}};k.ObjectProperty=k.ObjectTypeProperty=k.ObjectMethod=function(r,s){if(s.properties[0]===r){return 1}};k.ObjectTypeCallProperty=function(r,s){var l;if(s.callProperties[0]===r&&!((l=s.properties)!=null&&l.length)){return 1}};k.ObjectTypeIndexer=function(r,s){var l,p;if(s.indexers[0]===r&&!((l=s.properties)!=null&&l.length)&&!((p=s.callProperties)!=null&&p.length)){return 1}};k.ObjectTypeInternalSlot=function(r,s){var l,p,d;if(s.internalSlots[0]===r&&!((l=s.properties)!=null&&l.length)&&!((p=s.callProperties)!=null&&p.length)&&!((d=s.indexers)!=null&&d.length)){return 1}};[["Function",true],["Class",true],["Loop",true],["LabeledStatement",true],["SwitchStatement",true],["TryStatement",true]].forEach((function([r,s]){[r].concat(d[r]||[]).forEach((function(r){const l=s?1|2:0;k[r]=()=>l}))}))},9494:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(4898);var d=l(4159);var m=d;var y=l(3658);var g=l(2972);var T=l(1273);var b=l(8568);const{isExpression:E,isFunction:S,isStatement:_,isClassBody:x,isTSInterfaceBody:w,isTSEnumMember:v}=y;const A=/e/i;const P=/\.0+$/;const k=/[\n\r\u2028\u2029]/;const C=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(r){return r.type==="CommentLine"||k.test(r.value)}const{needsParens:I}=m;class Printer{constructor(r,s,l,m){this.tokenContext=d.TokenContext.normal;this._tokens=null;this._originalCode=null;this._currentNode=null;this._indent=0;this._indentRepeat=0;this._insideAux=false;this._noLineTerminator=false;this._noLineTerminatorAfterNode=null;this._printAuxAfterOnNextUserNode=false;this._printedComments=new Set;this._endsWithInteger=false;this._endsWithWord=false;this._endsWithDiv=false;this._lastCommentLine=0;this._endsWithInnerRaw=false;this._indentInnerComments=true;this.tokenMap=null;this._boundGetRawIdentifier=this._getRawIdentifier.bind(this);this._printSemicolonBeforeNextNode=-1;this._printSemicolonBeforeNextToken=-1;this.format=r;this._tokens=l;this._originalCode=m;this._indentRepeat=r.indent.style.length;this._inputMap=s==null?void 0:s._inputMap;this._buf=new p.default(s,r.indent.style[0])}enterForStatementInit(){this.tokenContext|=d.TokenContext.forInitHead|d.TokenContext.forInOrInitHeadAccumulate;return()=>this.tokenContext=d.TokenContext.normal}enterForXStatementInit(r){if(r){this.tokenContext|=d.TokenContext.forOfHead;return null}else{this.tokenContext|=d.TokenContext.forInHead|d.TokenContext.forInOrInitHeadAccumulate;return()=>this.tokenContext=d.TokenContext.normal}}enterDelimited(){const r=this.tokenContext;const s=this._noLineTerminatorAfterNode;if(!(r&d.TokenContext.forInOrInitHeadAccumulate)&&s===null){return()=>{}}this._noLineTerminatorAfterNode=null;this.tokenContext=d.TokenContext.normal;return()=>{this._noLineTerminatorAfterNode=s;this.tokenContext=r}}generate(r){if(this.format.preserveFormat){this.tokenMap=new g.TokenMap(r,this._tokens,this._originalCode)}this.print(r);this._maybeAddAuxComment();return this._buf.get()}indent(){const{format:r}=this;if(r.preserveFormat||r.compact||r.concise){return}this._indent++}dedent(){const{format:r}=this;if(r.preserveFormat||r.compact||r.concise){return}this._indent--}semicolon(r=false){this._maybeAddAuxComment();if(r){this._appendChar(59);this._noLineTerminator=false;return}if(this.tokenMap){const r=this._currentNode;if(r.start!=null&&r.end!=null){if(!this.tokenMap.endMatches(r,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}this._queue(59);this._noLineTerminator=false}rightBrace(r){if(this.format.minified){this._buf.removeLastSemicolon()}this.sourceWithOffset("end",r.loc,-1);this.tokenChar(125)}rightParens(r){this.sourceWithOffset("end",r.loc,-1);this.tokenChar(41)}space(r=false){const{format:s}=this;if(s.compact||s.preserveFormat)return;if(r){this._space()}else if(this._buf.hasContent()){const r=this.getLastChar();if(r!==32&&r!==10){this._space()}}}word(r,s=false){this.tokenContext&=d.TokenContext.forInOrInitHeadAccumulatePassThroughMask;this._maybePrintInnerComments(r);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(r);if(this._endsWithWord||this._endsWithDiv&&r.charCodeAt(0)===47){this._space()}this._append(r,false);this._endsWithWord=true;this._noLineTerminator=s}number(r,s){function isNonDecimalLiteral(r){if(r.length>2&&r.charCodeAt(0)===48){const s=r.charCodeAt(1);return s===98||s===111||s===120}return false}this.word(r);this._endsWithInteger=Number.isInteger(s)&&!isNonDecimalLiteral(r)&&!A.test(r)&&!P.test(r)&&r.charCodeAt(r.length-1)!==46}token(r,s=false,l=0){this.tokenContext&=d.TokenContext.forInOrInitHeadAccumulatePassThroughMask;this._maybePrintInnerComments(r,l);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(r,l);const p=this.getLastChar();const m=r.charCodeAt(0);if(p===33&&(r==="--"||m===61)||m===43&&p===43||m===45&&p===45||m===46&&this._endsWithInteger){this._space()}this._append(r,s);this._noLineTerminator=false}tokenChar(r){this.tokenContext&=d.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const s=String.fromCharCode(r);this._maybePrintInnerComments(s);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(s);const l=this.getLastChar();if(r===43&&l===43||r===45&&l===45||r===46&&this._endsWithInteger){this._space()}this._appendChar(r);this._noLineTerminator=false}newline(r=1,s){if(r<=0)return;if(!s){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(r>2)r=2;r-=this._buf.getNewlineCount();for(let s=0;s<r;s++){this._newline()}return}endsWith(r){return this.getLastChar()===r}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(r,s){if(!r){s();return}this._catchUp("start",r);this._buf.exactSource(r,s)}source(r,s){if(!s)return;this._catchUp(r,s);this._buf.source(r,s)}sourceWithOffset(r,s,l){if(!s||this.format.preserveFormat)return;this._catchUp(r,s);this._buf.sourceWithOffset(r,s,l)}sourceIdentifierName(r,s){if(!this._buf._canMarkIdName)return;const l=this._buf._sourcePosition;l.identifierNamePos=s;l.identifierName=r}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(r,s=0){const l=this.tokenMap.findMatching(this._currentNode,r,s);if(l)this._catchUpTo(l.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()){this._buf.appendChar(59);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1}_append(r,s){this._maybeIndent(r.charCodeAt(0));this._buf.append(r,s);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_appendChar(r){this._maybeIndent(r);this._buf.appendChar(r);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_queue(r){this._maybeIndent(r);this._buf.queue(r);this._endsWithWord=false;this._endsWithInteger=false}_maybeIndent(r){if(this._indent&&r!==10&&this.endsWith(10)){this._buf.queueIndentation(this._getIndent())}}_shouldIndent(r){if(this._indent&&r!==10&&this.endsWith(10)){return true}}catchUp(r){if(!this.format.retainLines)return;const s=r-this._buf.getCurrentLine();for(let r=0;r<s;r++){this._newline()}}_catchUp(r,s){const{format:l}=this;if(!l.preserveFormat){if(l.retainLines&&s!=null&&s[r]){this.catchUp(s[r].line)}return}const p=s==null?void 0:s[r];if(p!=null)this._catchUpTo(p)}_catchUpTo({line:r,column:s,index:l}){const p=r-this._buf.getCurrentLine();if(p>0&&this._noLineTerminator){return}for(let r=0;r<p;r++){this._newline()}const d=p>0?s:s-this._buf.getCurrentColumn();if(d>0){const r=this._originalCode?this._originalCode.slice(l-d,l).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(d);this._append(r,false)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(r){this._noLineTerminator=true;this.print(r)}print(r,s,l){var p,y,g;if(!r)return;this._endsWithInnerRaw=false;const T=r.type;const b=this.format;const S=b.concise;if(r._compact){b.concise=true}const _=this[T];if(_===undefined){throw new ReferenceError(`unknown node of type ${JSON.stringify(T)} with constructor ${JSON.stringify(r.constructor.name)}`)}const x=this._currentNode;this._currentNode=r;if(this.tokenMap){this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode}const w=this._insideAux;this._insideAux=r.loc==null;this._maybeAddAuxComment(this._insideAux&&!w);const v=(p=r.extra)==null?void 0:p.parenthesized;let A=v&&b.preserveFormat||v&&b.retainFunctionParens&&T==="FunctionExpression"||I(r,x,this.tokenContext,b.preserveFormat?this._boundGetRawIdentifier:undefined);if(!A&&v&&(y=r.leadingComments)!=null&&y.length&&r.leadingComments[0].type==="CommentBlock"){const s=x==null?void 0:x.type;switch(s){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(x.callee!==r)break;default:A=true}}let P=false;if(!A&&this._noLineTerminator&&((g=r.leadingComments)!=null&&g.some(commentIsNewline)||this.format.retainLines&&r.loc&&r.loc.start.line>this._buf.getCurrentLine())){A=true;P=true}let k;let C;if(!A){s||(s=x&&this._noLineTerminatorAfterNode===x&&m.isLastChild(x,r));if(s){var O;if((O=r.trailingComments)!=null&&O.some(commentIsNewline)){if(E(r))A=true}else{k=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=r}}}if(A){this.tokenChar(40);if(P)this.indent();this._endsWithInnerRaw=false;if(this.tokenContext&d.TokenContext.forInOrInitHeadAccumulate){C=this.tokenContext;this.tokenContext=d.TokenContext.normal}k=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=null}this._lastCommentLine=0;this._printLeadingComments(r,x);const N=T==="Program"||T==="File"?null:r.loc;this.exactSource(N,_.bind(this,r,x));if(A){this._printTrailingComments(r,x);if(P){this.dedent();this.newline()}this.tokenChar(41);this._noLineTerminator=s;if(C)this.tokenContext=C}else if(s&&!this._noLineTerminator){this._noLineTerminator=true;this._printTrailingComments(r,x)}else{this._printTrailingComments(r,x,l)}this._currentNode=x;b.concise=S;this._insideAux=w;if(k!==undefined){this._noLineTerminatorAfterNode=k}this._endsWithInnerRaw=false}_maybeAddAuxComment(r){if(r)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const r=this.format.auxiliaryCommentBefore;if(r){this._printComment({type:"CommentBlock",value:r},0)}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const r=this.format.auxiliaryCommentAfter;if(r){this._printComment({type:"CommentBlock",value:r},0)}}getPossibleRaw(r){const s=r.extra;if((s==null?void 0:s.raw)!=null&&s.rawValue!=null&&r.value===s.rawValue){return s.raw}}printJoin(r,s,l,p,d,m,y,g){if(!(r!=null&&r.length))return;if(l==null&&this.format.retainLines){var T;const s=(T=r[0].loc)==null?void 0:T.start.line;if(s!=null&&s!==this._buf.getCurrentLine()){l=true}}if(l)this.indent();const b={addNewlines:m,nextNodeStartLine:0};const E=p==null?void 0:p.bind(this);const S=r.length;for(let l=0;l<S;l++){const p=r[l];if(!p)continue;if(s)this._printNewline(l===0,b);this.print(p,undefined,g||0);y==null||y(p,l);if(E!=null){if(l<S-1)E(l,false);else if(d)E(l,true)}if(s){var _;if(!((_=p.trailingComments)!=null&&_.length)){this._lastCommentLine=0}if(l+1===S){this.newline(1)}else{var x;const s=r[l+1];b.nextNodeStartLine=((x=s.loc)==null?void 0:x.start.line)||0;this._printNewline(true,b)}}}if(l)this.dedent()}printAndIndentOnComments(r){const s=r.leadingComments&&r.leadingComments.length>0;if(s)this.indent();this.print(r);if(s)this.dedent()}printBlock(r){const s=r.body;if(s.type!=="EmptyStatement"){this.space()}this.print(s)}_printTrailingComments(r,s,l){const{innerComments:p,trailingComments:d}=r;if(p!=null&&p.length){this._printComments(2,p,r,s,l)}if(d!=null&&d.length){this._printComments(2,d,r,s,l)}}_printLeadingComments(r,s){const l=r.leadingComments;if(!(l!=null&&l.length))return;this._printComments(0,l,r,s)}_maybePrintInnerComments(r,s){if(this._endsWithInnerRaw){var l;this.printInnerComments((l=this.tokenMap)==null?void 0:l.findMatching(this._currentNode,r,s))}this._endsWithInnerRaw=true;this._indentInnerComments=true}printInnerComments(r){const s=this._currentNode;const l=s.innerComments;if(!(l!=null&&l.length))return;const p=this.endsWith(32);const d=this._indentInnerComments;const m=this._printedComments.size;if(d)this.indent();this._printComments(1,l,s,undefined,undefined,r);if(p&&m!==this._printedComments.size){this.space()}if(d)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=false}printSequence(r,s,l,p){this.printJoin(r,true,s!=null?s:false,undefined,undefined,p,undefined,l)}printList(r,s,l,p,d,m){this.printJoin(r,l,p,d!=null?d:commaSeparator,s,undefined,m)}shouldPrintTrailingComma(r){if(!this.tokenMap)return null;const s=this.tokenMap.findLastIndex(this._currentNode,(s=>this.tokenMap.matchesOriginal(s,r)));if(s<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[s-1],",")}_printNewline(r,s){const l=this.format;if(l.retainLines||l.compact)return;if(l.concise){this.space();return}if(!r){return}const p=s.nextNodeStartLine;const d=this._lastCommentLine;if(p>0&&d>0){const r=p-d;if(r>=0){this.newline(r||1);return}}if(this._buf.hasContent()){this.newline(1)}}_shouldPrintComment(r,s){if(r.ignore)return 0;if(this._printedComments.has(r))return 0;if(this._noLineTerminator&&C.test(r.value)){return 2}if(s&&this.tokenMap){const l=this.tokenMap.find(this._currentNode,(s=>s.value===r.value));if(l&&l.start>s.start){return 2}}this._printedComments.add(r);if(!this.format.shouldPrintComment(r.value)){return 0}return 1}_printComment(r,s){const l=this._noLineTerminator;const p=r.type==="CommentBlock";const d=p&&s!==1&&!this._noLineTerminator;if(d&&this._buf.hasContent()&&s!==2){this.newline(1)}const m=this.getLastChar();if(m!==91&&m!==123&&m!==40){this.space()}let y;if(p){y=`/*${r.value}*/`;if(this.format.indent.adjustMultilineComment){var g;const s=(g=r.loc)==null?void 0:g.start.column;if(s){const r=new RegExp("\\n\\s{1,"+s+"}","g");y=y.replace(r,"\n")}if(this.format.concise){y=y.replace(/\n(?!$)/g,`\n`)}else{let r=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines){r+=this._getIndent()}y=y.replace(/\n(?!$)/g,`\n${" ".repeat(r)}`)}}}else if(!l){y=`//${r.value}`}else{y=`/*${r.value}*/`}if(this._endsWithDiv)this._space();if(this.tokenMap){const{_printSemicolonBeforeNextToken:s,_printSemicolonBeforeNextNode:l}=this;this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1;this.source("start",r.loc);this._append(y,p);this._printSemicolonBeforeNextNode=l;this._printSemicolonBeforeNextToken=s}else{this.source("start",r.loc);this._append(y,p)}if(!p&&!l){this.newline(1,true)}if(d&&s!==3){this.newline(1)}}_printComments(r,s,l,p,d=0,m){const y=l.loc;const g=s.length;let T=!!y;const b=T?y.start.line:0;const E=T?y.end.line:0;let A=0;let P=0;const C=this._noLineTerminator?function(){}:this.newline.bind(this);for(let y=0;y<g;y++){const I=s[y];const O=this._shouldPrintComment(I,m);if(O===2){T=false;break}if(T&&I.loc&&O===1){const s=I.loc.start.line;const l=I.loc.end.line;if(r===0){let r=0;if(y===0){if(this._buf.hasContent()&&(I.type==="CommentLine"||s!==l)){r=P=1}}else{r=s-A}A=l;C(r);this._printComment(I,1);if(y+1===g){C(Math.max(b-A,P));A=b}}else if(r===1){const r=s-(y===0?b:A);A=l;C(r);this._printComment(I,1);if(y+1===g){C(Math.min(1,E-A));A=E}}else{const r=s-(y===0?E-d:A);A=l;C(r);this._printComment(I,1)}}else{T=false;if(O!==1){continue}if(g===1){const s=I.loc?I.loc.start.line===I.loc.end.line:!k.test(I.value);const d=s&&!_(l)&&!x(p)&&!w(p)&&!v(l);if(r===0){this._printComment(I,d&&l.type!=="ObjectExpression"||s&&S(p,{body:l})?1:0)}else if(d&&r===2){this._printComment(I,1)}else{this._printComment(I,0)}}else if(r===1&&!(l.type==="ObjectExpression"&&l.properties.length>1)&&l.type!=="ClassBody"&&l.type!=="TSInterfaceBody"){this._printComment(I,y===0?2:y===g-1?3:0)}else{this._printComment(I,0)}}}if(r===2&&T&&A){this._lastCommentLine=A}}}Object.assign(Printer.prototype,T);{(0,b.addDeprecatedGenerators)(Printer)}var O=s["default"]=Printer;function commaSeparator(r,s){this.token(",",false,r);if(!s)this.space()}},326:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(5350);var d=l(5360);class SourceMap{constructor(r,s){var l;this._map=void 0;this._rawMappings=void 0;this._sourceFileName=void 0;this._lastGenLine=0;this._lastSourceLine=0;this._lastSourceColumn=0;this._inputMap=void 0;const m=this._map=new p.GenMapping({sourceRoot:r.sourceRoot});this._sourceFileName=(l=r.sourceFileName)==null?void 0:l.replace(/\\/g,"/");this._rawMappings=undefined;if(r.inputSourceMap){this._inputMap=new d.TraceMap(r.inputSourceMap);const s=this._inputMap.resolvedSources;if(s.length){for(let r=0;r<s.length;r++){var y;(0,p.setSourceContent)(m,s[r],(y=this._inputMap.sourcesContent)==null?void 0:y[r])}}}if(typeof s==="string"&&!r.inputSourceMap){(0,p.setSourceContent)(m,this._sourceFileName,s)}else if(typeof s==="object"){for(const r of Object.keys(s)){(0,p.setSourceContent)(m,r.replace(/\\/g,"/"),s[r])}}}get(){return(0,p.toEncodedMap)(this._map)}getDecoded(){return(0,p.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,p.allMappings)(this._map))}mark(r,s,l,m,y,g){var T;this._rawMappings=undefined;let b;if(s!=null){if(this._inputMap){b=(0,d.originalPositionFor)(this._inputMap,{line:s,column:l});if(!b.name&&y){const r=(0,d.originalPositionFor)(this._inputMap,y);if(r.name){m=r.name}}}else{b={source:(g==null?void 0:g.replace(/\\/g,"/"))||this._sourceFileName,line:s,column:l}}}(0,p.maybeAddMapping)(this._map,{name:m,generated:r,source:(T=b)==null?void 0:T.source,original:b})}}s["default"]=SourceMap},2972:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.TokenMap=void 0;var p=l(3658);const{traverseFast:d,VISITOR_KEYS:m}=p;class TokenMap{constructor(r,s,l){this._tokens=void 0;this._source=void 0;this._nodesToTokenIndexes=new Map;this._nodesOccurrencesCountCache=new Map;this._tokensCache=new Map;this._tokens=s;this._source=l;d(r,(r=>{const s=this._getTokensIndexesOfNode(r);if(s.length>0)this._nodesToTokenIndexes.set(r,s)}));this._tokensCache=null}has(r){return this._nodesToTokenIndexes.has(r)}getIndexes(r){return this._nodesToTokenIndexes.get(r)}find(r,s){const l=this._nodesToTokenIndexes.get(r);if(l){for(let r=0;r<l.length;r++){const p=l[r];const d=this._tokens[p];if(s(d,p))return d}}return null}findLastIndex(r,s){const l=this._nodesToTokenIndexes.get(r);if(l){for(let r=l.length-1;r>=0;r--){const p=l[r];const d=this._tokens[p];if(s(d,p))return p}}return-1}findMatching(r,s,l=0){const p=this._nodesToTokenIndexes.get(r);if(p){let d=0;const m=l;if(m>1){const p=this._nodesOccurrencesCountCache.get(r);if(p&&p.test===s&&p.count<m){d=p.i+1;l-=p.count+1}}for(;d<p.length;d++){const y=this._tokens[p[d]];if(this.matchesOriginal(y,s)){if(l===0){if(m>0){this._nodesOccurrencesCountCache.set(r,{test:s,count:m,i:d})}return y}l--}}}return null}matchesOriginal(r,s){if(r.end-r.start!==s.length)return false;if(r.value!=null)return r.value===s;return this._source.startsWith(s,r.start)}startMatches(r,s){const l=this._nodesToTokenIndexes.get(r);if(!l)return false;const p=this._tokens[l[0]];if(p.start!==r.start)return false;return this.matchesOriginal(p,s)}endMatches(r,s){const l=this._nodesToTokenIndexes.get(r);if(!l)return false;const p=this._tokens[l[l.length-1]];if(p.end!==r.end)return false;return this.matchesOriginal(p,s)}_getTokensIndexesOfNode(r){if(r.start==null||r.end==null)return[];const{first:s,last:l}=this._findTokensOfNode(r,0,this._tokens.length-1);let p=s;const d=childrenIterator(r);if((r.type==="ExportNamedDeclaration"||r.type==="ExportDefaultDeclaration")&&r.declaration&&r.declaration.type==="ClassDeclaration"){d.next()}const m=[];for(const r of d){if(r==null)continue;if(r.start==null||r.end==null)continue;const s=this._findTokensOfNode(r,p,l);const d=s.first;for(let r=p;r<d;r++)m.push(r);p=s.last+1}for(let r=p;r<=l;r++)m.push(r);return m}_findTokensOfNode(r,s,l){const p=this._tokensCache.get(r);if(p)return p;const d=this._findFirstTokenOfNode(r.start,s,l);const m=this._findLastTokenOfNode(r.end,d,l);this._tokensCache.set(r,{first:d,last:m});return{first:d,last:m}}_findFirstTokenOfNode(r,s,l){while(s<=l){const p=l+s>>1;if(r<this._tokens[p].start){l=p-1}else if(r>this._tokens[p].start){s=p+1}else{return p}}return s}_findLastTokenOfNode(r,s,l){while(s<=l){const p=l+s>>1;if(r<this._tokens[p].end){l=p-1}else if(r>this._tokens[p].end){s=p+1}else{return p}}return l}}s.TokenMap=TokenMap;function*childrenIterator(r){if(r.type==="TemplateLiteral"){yield r.quasis[0];for(let s=1;s<r.quasis.length;s++){yield r.expressions[s-1];yield r.quasis[s]}return}const s=m[r.type];for(const l of s){const s=r[l];if(!s)continue;if(Array.isArray(s)){yield*s}else{yield s}}}},8183:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.readCodePoint=readCodePoint;s.readInt=readInt;s.readStringContents=readStringContents;var l=function isDigit(r){return r>=48&&r<=57};const p={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const d={bin:r=>r===48||r===49,oct:r=>r>=48&&r<=55,dec:r=>r>=48&&r<=57,hex:r=>r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102};function readStringContents(r,s,l,p,d,m){const y=l;const g=p;const T=d;let b="";let E=null;let S=l;const{length:_}=s;for(;;){if(l>=_){m.unterminated(y,g,T);b+=s.slice(S,l);break}const x=s.charCodeAt(l);if(isStringEnd(r,x,s,l)){b+=s.slice(S,l);break}if(x===92){b+=s.slice(S,l);const y=readEscapedChar(s,l,p,d,r==="template",m);if(y.ch===null&&!E){E={pos:l,lineStart:p,curLine:d}}else{b+=y.ch}({pos:l,lineStart:p,curLine:d}=y);S=l}else if(x===8232||x===8233){++l;++d;p=l}else if(x===10||x===13){if(r==="template"){b+=s.slice(S,l)+"\n";++l;if(x===13&&s.charCodeAt(l)===10){++l}++d;S=p=l}else{m.unterminated(y,g,T)}}else{++l}}return{pos:l,str:b,firstInvalidLoc:E,lineStart:p,curLine:d,containsInvalid:!!E}}function isStringEnd(r,s,l,p){if(r==="template"){return s===96||s===36&&l.charCodeAt(p+1)===123}return s===(r==="double"?34:39)}function readEscapedChar(r,s,l,p,d,m){const y=!d;s++;const res=r=>({pos:s,ch:r,lineStart:l,curLine:p});const g=r.charCodeAt(s++);switch(g){case 110:return res("\n");case 114:return res("\r");case 120:{let d;({code:d,pos:s}=readHexChar(r,s,l,p,2,false,y,m));return res(d===null?null:String.fromCharCode(d))}case 117:{let d;({code:d,pos:s}=readCodePoint(r,s,l,p,y,m));return res(d===null?null:String.fromCodePoint(d))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(r.charCodeAt(s)===10){++s}case 10:l=s;++p;case 8232:case 8233:return res("");case 56:case 57:if(d){return res(null)}else{m.strictNumericEscape(s-1,l,p)}default:if(g>=48&&g<=55){const y=s-1;const g=/^[0-7]+/.exec(r.slice(y,s+2));let T=g[0];let b=parseInt(T,8);if(b>255){T=T.slice(0,-1);b=parseInt(T,8)}s+=T.length-1;const E=r.charCodeAt(s);if(T!=="0"||E===56||E===57){if(d){return res(null)}else{m.strictNumericEscape(y,l,p)}}return res(String.fromCharCode(b))}return res(String.fromCharCode(g))}}function readHexChar(r,s,l,p,d,m,y,g){const T=s;let b;({n:b,pos:s}=readInt(r,s,l,p,16,d,m,false,g,!y));if(b===null){if(y){g.invalidEscapeSequence(T,l,p)}else{s=T-1}}return{code:b,pos:s}}function readInt(r,s,m,y,g,T,b,E,S,_){const x=s;const w=g===16?p.hex:p.decBinOct;const v=g===16?d.hex:g===10?d.dec:g===8?d.oct:d.bin;let A=false;let P=0;for(let p=0,d=T==null?Infinity:T;p<d;++p){const p=r.charCodeAt(s);let d;if(p===95&&E!=="bail"){const l=r.charCodeAt(s-1);const p=r.charCodeAt(s+1);if(!E){if(_)return{n:null,pos:s};S.numericSeparatorInEscapeSequence(s,m,y)}else if(Number.isNaN(p)||!v(p)||w.has(l)||w.has(p)){if(_)return{n:null,pos:s};S.unexpectedNumericSeparator(s,m,y)}++s;continue}if(p>=97){d=p-97+10}else if(p>=65){d=p-65+10}else if(l(p)){d=p-48}else{d=Infinity}if(d>=g){if(d<=9&&_){return{n:null,pos:s}}else if(d<=9&&S.invalidDigit(s,m,y,g)){d=0}else if(b){d=0;A=true}else{break}}++s;P=P*g+d}if(s===x||T!=null&&s-x!==T||A){return{n:null,pos:s}}return{n:P,pos:s}}function readCodePoint(r,s,l,p,d,m){const y=r.charCodeAt(s);let g;if(y===123){++s;({code:g,pos:s}=readHexChar(r,s,l,p,r.indexOf("}",s)-s,true,d,m));++s;if(g!==null&&g>1114111){if(d){m.invalidCodePoint(s,l,p)}else{return{code:null,pos:s}}}}else{({code:g,pos:s}=readHexChar(r,s,l,p,4,false,d,m))}return{code:g,pos:s}}},3591:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.isIdentifierChar=isIdentifierChar;s.isIdentifierName=isIdentifierName;s.isIdentifierStart=isIdentifierStart;let l="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let p="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const d=new RegExp("["+l+"]");const m=new RegExp("["+l+p+"]");l=p=null;const y=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const g=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(r,s){let l=65536;for(let p=0,d=s.length;p<d;p+=2){l+=s[p];if(l>r)return false;l+=s[p+1];if(l>=r)return true}return false}function isIdentifierStart(r){if(r<65)return r===36;if(r<=90)return true;if(r<97)return r===95;if(r<=122)return true;if(r<=65535){return r>=170&&d.test(String.fromCharCode(r))}return isInAstralSet(r,y)}function isIdentifierChar(r){if(r<48)return r===36;if(r<58)return true;if(r<65)return false;if(r<=90)return true;if(r<97)return r===95;if(r<=122)return true;if(r<=65535){return r>=170&&m.test(String.fromCharCode(r))}return isInAstralSet(r,y)||isInAstralSet(r,g)}function isIdentifierName(r){let s=true;for(let l=0;l<r.length;l++){let p=r.charCodeAt(l);if((p&64512)===55296&&l+1<r.length){const s=r.charCodeAt(++l);if((s&64512)===56320){p=65536+((p&1023)<<10)+(s&1023)}}if(s){s=false;if(!isIdentifierStart(p)){return false}}else if(!isIdentifierChar(p)){return false}}return!s}},2530:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});Object.defineProperty(s,"isIdentifierChar",{enumerable:true,get:function(){return p.isIdentifierChar}});Object.defineProperty(s,"isIdentifierName",{enumerable:true,get:function(){return p.isIdentifierName}});Object.defineProperty(s,"isIdentifierStart",{enumerable:true,get:function(){return p.isIdentifierStart}});Object.defineProperty(s,"isKeyword",{enumerable:true,get:function(){return d.isKeyword}});Object.defineProperty(s,"isReservedWord",{enumerable:true,get:function(){return d.isReservedWord}});Object.defineProperty(s,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return d.isStrictBindOnlyReservedWord}});Object.defineProperty(s,"isStrictBindReservedWord",{enumerable:true,get:function(){return d.isStrictBindReservedWord}});Object.defineProperty(s,"isStrictReservedWord",{enumerable:true,get:function(){return d.isStrictReservedWord}});var p=l(3591);var d=l(4097)},4097:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.isKeyword=isKeyword;s.isReservedWord=isReservedWord;s.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;s.isStrictBindReservedWord=isStrictBindReservedWord;s.isStrictReservedWord=isStrictReservedWord;const l={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const p=new Set(l.keyword);const d=new Set(l.strict);const m=new Set(l.strictBind);function isReservedWord(r,s){return s&&r==="await"||r==="enum"}function isStrictReservedWord(r,s){return isReservedWord(r,s)||d.has(r)}function isStrictBindOnlyReservedWord(r){return m.has(r)}function isStrictBindReservedWord(r,s){return isStrictReservedWord(r,s)||isStrictBindOnlyReservedWord(r)}function isKeyword(r){return p.has(r)}},1946:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});function _objectWithoutPropertiesLoose(r,s){if(null==r)return{};var l={};for(var p in r)if({}.hasOwnProperty.call(r,p)){if(-1!==s.indexOf(p))continue;l[p]=r[p]}return l}class Position{constructor(r,s,l){this.line=void 0;this.column=void 0;this.index=void 0;this.line=r;this.column=s;this.index=l}}class SourceLocation{constructor(r,s){this.start=void 0;this.end=void 0;this.filename=void 0;this.identifierName=void 0;this.start=r;this.end=s}}function createPositionWithColumnOffset(r,s){const{line:l,column:p,index:d}=r;return new Position(l,p+s,d+s)}const l="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var p={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:l},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:l}};const d={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"};const toNodeDescription=r=>r.type==="UpdateExpression"?d.UpdateExpression[`${r.prefix}`]:d[r.type];var m={AccessorIsGenerator:({kind:r})=>`A ${r}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:r})=>`Missing initializer in ${r} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:r})=>`\`${r}\` 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:r,exportName:s})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${r}' as '${s}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:r})=>`'${r==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:r})=>`Unsyntactic ${r==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:r})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${r}" as foo }\`?`,ImportCallArity:`\`import()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:r})=>`Expected number in radix ${r}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:r})=>`Escape sequence in keyword ${r}.`,InvalidIdentifier:({identifierName:r})=>`Invalid identifier ${r}.`,InvalidLhs:({ancestor:r})=>`Invalid left-hand side in ${toNodeDescription(r)}.`,InvalidLhsBinding:({ancestor:r})=>`Binding invalid left-hand side in ${toNodeDescription(r)}.`,InvalidLhsOptionalChaining:({ancestor:r})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(r)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:r})=>`Unexpected character '${r}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:r})=>`Private name #${r} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:r})=>`Label '${r}' 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:r})=>`This experimental syntax requires enabling the parser plugin: ${r.map((r=>JSON.stringify(r))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:r})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${r.map((r=>JSON.stringify(r))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:r})=>`Duplicate key "${r}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:r})=>`An export name cannot include a lone surrogate, found '\\u${r.toString(16)}'.`,ModuleExportUndefined:({localName:r})=>`Export '${r}' 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:r})=>`Private names are only allowed in property accesses (\`obj.#${r}\`) or in \`in\` expressions (\`#${r} in obj\`).`,PrivateNameRedeclaration:({identifierName:r})=>`Duplicate private name #${r}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:r})=>`Unexpected keyword '${r}'.`,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:r})=>`Unexpected reserved word '${r}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:r,unexpected:s})=>`Unexpected token${s?` '${s}'.`:""}${r?`, expected "${r}"`:""}`,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.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:r,onlyValidPropertyName:s})=>`The only valid meta property for ${r} is ${r}.${s}.`,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:r})=>`Identifier '${r}' 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."};var y={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:r})=>`Assigning to '${r}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:r})=>`Binding '${r}' 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."};var g={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:r})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(r)}\`.`};const T=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var b=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:r})=>`Invalid topic token ${r}. In order to use ${r} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${r}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:r})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:r})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const E=["message"];function defineHidden(r,s,l){Object.defineProperty(r,s,{enumerable:false,configurable:true,value:l})}function toParseErrorConstructor({toMessage:r,code:s,reasonCode:l,syntaxPlugin:p}){const d=l==="MissingPlugin"||l==="MissingOneOfPlugins";{const r={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(r[l]){l=r[l]}}return function constructor(m,y){const g=new SyntaxError;g.code=s;g.reasonCode=l;g.loc=m;g.pos=m.index;g.syntaxPlugin=p;if(d){g.missingPlugin=y.missingPlugin}defineHidden(g,"clone",(function clone(r={}){var s;const{line:l,column:p,index:d}=(s=r.loc)!=null?s:m;return constructor(new Position(l,p,d),Object.assign({},y,r.details))}));defineHidden(g,"details",y);Object.defineProperty(g,"message",{configurable:true,get(){const s=`${r(y)} (${m.line}:${m.column})`;this.message=s;return s},set(r){Object.defineProperty(this,"message",{value:r,writable:true})}});return g}}function ParseErrorEnum(r,s){if(Array.isArray(r)){return s=>ParseErrorEnum(s,r[0])}const l={};for(const p of Object.keys(r)){const d=r[p];const m=typeof d==="string"?{message:()=>d}:typeof d==="function"?{message:d}:d,{message:y}=m,g=_objectWithoutPropertiesLoose(m,E);const T=typeof y==="string"?()=>y:y;l[p]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:p,toMessage:T},s?{syntaxPlugin:s}:{},g))}return l}const S=Object.assign({},ParseErrorEnum(p),ParseErrorEnum(m),ParseErrorEnum(y),ParseErrorEnum(g),ParseErrorEnum`pipelineOperator`(b));function createDefaultOptions(){return{sourceType:"script",sourceFilename:undefined,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowNewTargetOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,allowYieldOutsideFunction:false,plugins:[],strictMode:null,ranges:false,tokens:false,createImportExpressions:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true,annexB:true}}function getOptions(r){const s=createDefaultOptions();if(r==null){return s}if(r.annexB!=null&&r.annexB!==false){throw new Error("The `annexB` option can only be set to `false`.")}for(const l of Object.keys(s)){if(r[l]!=null)s[l]=r[l]}if(s.startLine===1){if(r.startIndex==null&&s.startColumn>0){s.startIndex=s.startColumn}else if(r.startColumn==null&&s.startIndex>0){s.startColumn=s.startIndex}}else if(r.startColumn==null||r.startIndex==null){if(r.startIndex!=null){throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}}if(s.sourceType==="commonjs"){if(r.allowAwaitOutsideFunction!=null){throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.")}if(r.allowReturnOutsideFunction!=null){throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.")}if(r.allowNewTargetOutsideFunction!=null){throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}}return s}const{defineProperty:_}=Object;const toUnenumerable=(r,s)=>{if(r){_(r,s,{enumerable:false,value:r[s]})}};function toESTreeLocation(r){toUnenumerable(r.loc.start,"index");toUnenumerable(r.loc.end,"index");return r}var estree=r=>class ESTreeParserMixin extends r{parse(){const r=toESTreeLocation(super.parse());if(this.optionFlags&256){r.tokens=r.tokens.map(toESTreeLocation)}return r}parseRegExpLiteral({pattern:r,flags:s}){let l=null;try{l=new RegExp(r,s)}catch(r){}const p=this.estreeParseLiteral(l);p.regex={pattern:r,flags:s};return p}parseBigIntLiteral(r){let s;try{s=BigInt(r)}catch(r){s=null}const l=this.estreeParseLiteral(s);l.bigint=String(l.value||r);return l}parseDecimalLiteral(r){const s=null;const l=this.estreeParseLiteral(s);l.decimal=String(l.value||r);return l}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,s){const l=this.startNodeAtNode(r);l.expression=r;return this.finishNodeAt(l,"ChainExpression",s)}directiveToStmt(r){const s=r.value;delete r.value;this.castNodeTo(s,"Literal");s.raw=s.extra.raw;s.value=s.extra.expressionValue;const l=this.castNodeTo(r,"ExpressionStatement");l.expression=s;l.directive=s.extra.rawValue;delete s.extra;return l}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){const{start:s,end:l,loc:p,range:d,raw:m,value:y}=r;const g=Object.create(r.constructor.prototype);g.type="Literal";g.start=s;g.end=l;g.loc=p;g.range=d;g.raw=m;g.value=y;return g}initFunction(r,s){super.initFunction(r,s);r.expression=false}checkDeclaration(r){if(r!=null&&this.isObjectProperty(r)){this.checkDeclaration(r.value)}else{super.checkDeclaration(r)}}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var s;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value==="string"&&!((s=r.expression.extra)!=null&&s.parenthesized)}parseBlockBody(r,s,l,p,d){super.parseBlockBody(r,s,l,p,d);const m=r.directives.map((r=>this.directiveToStmt(r)));r.body=m.concat(r.body);delete r.directives}parsePrivateName(){const r=super.parsePrivateName();{if(!this.getPluginOption("estree","classFeatures")){return r}}return this.convertPrivateNameToPrivateIdentifier(r)}convertPrivateNameToPrivateIdentifier(r){const s=super.getPrivateNameSV(r);r=r;delete r.id;r.name=s;return this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){{if(!this.getPluginOption("estree","classFeatures")){return super.isPrivateName(r)}}return r.type==="PrivateIdentifier"}getPrivateNameSV(r){{if(!this.getPluginOption("estree","classFeatures")){return super.getPrivateNameSV(r)}}return r.name}parseLiteral(r,s){const l=super.parseLiteral(r,s);l.raw=l.extra.raw;delete l.extra;return l}parseFunctionBody(r,s,l=false){super.parseFunctionBody(r,s,l);r.expression=r.body.type!=="BlockStatement"}parseMethod(r,s,l,p,d,m,y=false){let g=this.startNode();g.kind=r.kind;g=super.parseMethod(g,s,l,p,d,m,y);delete g.kind;const{typeParameters:T}=r;if(T){delete r.typeParameters;g.typeParameters=T;this.resetStartLocationFromNode(g,T)}const b=this.castNodeTo(g,"FunctionExpression");r.value=b;if(m==="ClassPrivateMethod"){r.computed=false}if(m==="ObjectMethod"){if(r.kind==="method"){r.kind="init"}r.shorthand=false;return this.finishNode(r,"Property")}else{return this.finishNode(r,"MethodDefinition")}}nameIsConstructor(r){if(r.type==="Literal")return r.value==="constructor";return super.nameIsConstructor(r)}parseClassProperty(...r){const s=super.parseClassProperty(...r);{if(!this.getPluginOption("estree","classFeatures")){return s}}{this.castNodeTo(s,"PropertyDefinition")}return s}parseClassPrivateProperty(...r){const s=super.parseClassPrivateProperty(...r);{if(!this.getPluginOption("estree","classFeatures")){return s}}{this.castNodeTo(s,"PropertyDefinition")}s.computed=false;return s}parseClassAccessorProperty(r){const s=super.parseClassAccessorProperty(r);{if(!this.getPluginOption("estree","classFeatures")){return s}}if(s.abstract&&this.hasPlugin("typescript")){delete s.abstract;this.castNodeTo(s,"TSAbstractAccessorProperty")}else{this.castNodeTo(s,"AccessorProperty")}return s}parseObjectProperty(r,s,l,p){const d=super.parseObjectProperty(r,s,l,p);if(d){d.kind="init";this.castNodeTo(d,"Property")}return d}finishObjectProperty(r){r.kind="init";return this.finishNode(r,"Property")}isValidLVal(r,s,l){return r==="Property"?"value":super.isValidLVal(r,s,l)}isAssignable(r,s){if(r!=null&&this.isObjectProperty(r)){return this.isAssignable(r.value,s)}return super.isAssignable(r,s)}toAssignable(r,s=false){if(r!=null&&this.isObjectProperty(r)){const{key:l,value:p}=r;if(this.isPrivateName(l)){this.classScope.usePrivateName(this.getPrivateNameSV(l),l.loc.start)}this.toAssignable(p,s)}else{super.toAssignable(r,s)}}toAssignableObjectExpressionProp(r,s,l){if(r.type==="Property"&&(r.kind==="get"||r.kind==="set")){this.raise(S.PatternHasAccessor,r.key)}else if(r.type==="Property"&&r.method){this.raise(S.PatternHasMethod,r.key)}else{super.toAssignableObjectExpressionProp(r,s,l)}}finishCallExpression(r,s){const l=super.finishCallExpression(r,s);if(l.callee.type==="Import"){var p;this.castNodeTo(l,"ImportExpression");l.source=l.arguments[0];l.options=(p=l.arguments[1])!=null?p:null;{var d;l.attributes=(d=l.arguments[1])!=null?d:null}delete l.arguments;delete l.callee}else if(l.type==="OptionalCallExpression"){this.castNodeTo(l,"CallExpression")}else{l.optional=false}return l}toReferencedArguments(r){if(r.type==="ImportExpression"){return}super.toReferencedArguments(r)}parseExport(r,s){const l=this.state.lastTokStartLoc;const p=super.parseExport(r,s);switch(p.type){case"ExportAllDeclaration":p.exported=null;break;case"ExportNamedDeclaration":if(p.specifiers.length===1&&p.specifiers[0].type==="ExportNamespaceSpecifier"){this.castNodeTo(p,"ExportAllDeclaration");p.exported=p.specifiers[0].exported;delete p.specifiers}case"ExportDefaultDeclaration":{var d;const{declaration:r}=p;if((r==null?void 0:r.type)==="ClassDeclaration"&&((d=r.decorators)==null?void 0:d.length)>0&&r.start===p.start){this.resetStartLocation(p,l)}}break}return p}stopParseSubscript(r,s){const l=super.stopParseSubscript(r,s);if(s.optionalChainMember){return this.estreeParseChainExpression(l,r.loc.end)}return l}parseMember(r,s,l,p,d){const m=super.parseMember(r,s,l,p,d);if(m.type==="OptionalMemberExpression"){this.castNodeTo(m,"MemberExpression")}else{m.optional=false}return m}isOptionalMemberExpression(r){if(r.type==="ChainExpression"){return r.expression.type==="MemberExpression"}return super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){if(r.type==="ChainExpression"){r=r.expression}return super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,s){const l=super.castNodeTo(r,s);this.fillOptionalPropertiesForTSESLint(l);return l}cloneIdentifier(r){const s=super.cloneIdentifier(r);this.fillOptionalPropertiesForTSESLint(s);return s}cloneStringLiteral(r){if(r.type==="Literal"){return this.cloneEstreeStringLiteral(r)}return super.cloneStringLiteral(r)}finishNodeAt(r,s,l){return toESTreeLocation(super.finishNodeAt(r,s,l))}finishNode(r,s){const l=super.finishNode(r,s);this.fillOptionalPropertiesForTSESLint(l);return l}resetStartLocation(r,s){super.resetStartLocation(r,s);toESTreeLocation(r)}resetEndLocation(r,s=this.state.lastTokEndLoc){super.resetEndLocation(r,s);toESTreeLocation(r)}};class TokContext{constructor(r,s){this.token=void 0;this.preserveSpace=void 0;this.token=r;this.preserveSpace=!!s}}const x={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",true)};{x.template=new TokContext("`",true)}const w=true;const v=true;const A=true;const P=true;const k=true;const C=true;class ExportedTokenType{constructor(r,s={}){this.label=void 0;this.keyword=void 0;this.beforeExpr=void 0;this.startsExpr=void 0;this.rightAssociative=void 0;this.isLoop=void 0;this.isAssign=void 0;this.prefix=void 0;this.postfix=void 0;this.binop=void 0;this.label=r;this.keyword=s.keyword;this.beforeExpr=!!s.beforeExpr;this.startsExpr=!!s.startsExpr;this.rightAssociative=!!s.rightAssociative;this.isLoop=!!s.isLoop;this.isAssign=!!s.isAssign;this.prefix=!!s.prefix;this.postfix=!!s.postfix;this.binop=s.binop!=null?s.binop:null;{this.updateContext=null}}}const I=new Map;function createKeyword(r,s={}){s.keyword=r;const l=createToken(r,s);I.set(r,l);return l}function createBinop(r,s){return createToken(r,{beforeExpr:w,binop:s})}let O=-1;const N=[];const L=[];const D=[];const R=[];const M=[];const F=[];function createToken(r,s={}){var l,p,d,m;++O;L.push(r);D.push((l=s.binop)!=null?l:-1);R.push((p=s.beforeExpr)!=null?p:false);M.push((d=s.startsExpr)!=null?d:false);F.push((m=s.prefix)!=null?m:false);N.push(new ExportedTokenType(r,s));return O}function createKeywordLike(r,s={}){var l,p,d,m;++O;I.set(r,O);L.push(r);D.push((l=s.binop)!=null?l:-1);R.push((p=s.beforeExpr)!=null?p:false);M.push((d=s.startsExpr)!=null?d:false);F.push((m=s.prefix)!=null?m:false);N.push(new ExportedTokenType("name",s));return O}const B={bracketL:createToken("[",{beforeExpr:w,startsExpr:v}),bracketHashL:createToken("#[",{beforeExpr:w,startsExpr:v}),bracketBarL:createToken("[|",{beforeExpr:w,startsExpr:v}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:w,startsExpr:v}),braceBarL:createToken("{|",{beforeExpr:w,startsExpr:v}),braceHashL:createToken("#{",{beforeExpr:w,startsExpr:v}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:w,startsExpr:v}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:w}),semi:createToken(";",{beforeExpr:w}),colon:createToken(":",{beforeExpr:w}),doubleColon:createToken("::",{beforeExpr:w}),dot:createToken("."),question:createToken("?",{beforeExpr:w}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:w}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:w}),backQuote:createToken("`",{startsExpr:v}),dollarBraceL:createToken("${",{beforeExpr:w,startsExpr:v}),templateTail:createToken("...`",{startsExpr:v}),templateNonTail:createToken("...${",{beforeExpr:w,startsExpr:v}),at:createToken("@"),hash:createToken("#",{startsExpr:v}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:w,isAssign:P}),assign:createToken("_=",{beforeExpr:w,isAssign:P}),slashAssign:createToken("_=",{beforeExpr:w,isAssign:P}),xorAssign:createToken("_=",{beforeExpr:w,isAssign:P}),moduloAssign:createToken("_=",{beforeExpr:w,isAssign:P}),incDec:createToken("++/--",{prefix:k,postfix:C,startsExpr:v}),bang:createToken("!",{beforeExpr:w,prefix:k,startsExpr:v}),tilde:createToken("~",{beforeExpr:w,prefix:k,startsExpr:v}),doubleCaret:createToken("^^",{startsExpr:v}),doubleAt:createToken("@@",{startsExpr:v}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:w,binop:9,prefix:k,startsExpr:v}),modulo:createToken("%",{binop:10,startsExpr:v}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:w,binop:11,rightAssociative:true}),_in:createKeyword("in",{beforeExpr:w,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:w,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:w}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:w}),_else:createKeyword("else",{beforeExpr:w}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:v}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:w}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:w,prefix:k,startsExpr:v}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:w,startsExpr:v}),_this:createKeyword("this",{startsExpr:v}),_super:createKeyword("super",{startsExpr:v}),_class:createKeyword("class",{startsExpr:v}),_extends:createKeyword("extends",{beforeExpr:w}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:v}),_null:createKeyword("null",{startsExpr:v}),_true:createKeyword("true",{startsExpr:v}),_false:createKeyword("false",{startsExpr:v}),_typeof:createKeyword("typeof",{beforeExpr:w,prefix:k,startsExpr:v}),_void:createKeyword("void",{beforeExpr:w,prefix:k,startsExpr:v}),_delete:createKeyword("delete",{beforeExpr:w,prefix:k,startsExpr:v}),_do:createKeyword("do",{isLoop:A,beforeExpr:w}),_for:createKeyword("for",{isLoop:A}),_while:createKeyword("while",{isLoop:A}),_as:createKeywordLike("as",{startsExpr:v}),_assert:createKeywordLike("assert",{startsExpr:v}),_async:createKeywordLike("async",{startsExpr:v}),_await:createKeywordLike("await",{startsExpr:v}),_defer:createKeywordLike("defer",{startsExpr:v}),_from:createKeywordLike("from",{startsExpr:v}),_get:createKeywordLike("get",{startsExpr:v}),_let:createKeywordLike("let",{startsExpr:v}),_meta:createKeywordLike("meta",{startsExpr:v}),_of:createKeywordLike("of",{startsExpr:v}),_sent:createKeywordLike("sent",{startsExpr:v}),_set:createKeywordLike("set",{startsExpr:v}),_source:createKeywordLike("source",{startsExpr:v}),_static:createKeywordLike("static",{startsExpr:v}),_using:createKeywordLike("using",{startsExpr:v}),_yield:createKeywordLike("yield",{startsExpr:v}),_asserts:createKeywordLike("asserts",{startsExpr:v}),_checks:createKeywordLike("checks",{startsExpr:v}),_exports:createKeywordLike("exports",{startsExpr:v}),_global:createKeywordLike("global",{startsExpr:v}),_implements:createKeywordLike("implements",{startsExpr:v}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:v}),_infer:createKeywordLike("infer",{startsExpr:v}),_is:createKeywordLike("is",{startsExpr:v}),_mixins:createKeywordLike("mixins",{startsExpr:v}),_proto:createKeywordLike("proto",{startsExpr:v}),_require:createKeywordLike("require",{startsExpr:v}),_satisfies:createKeywordLike("satisfies",{startsExpr:v}),_keyof:createKeywordLike("keyof",{startsExpr:v}),_readonly:createKeywordLike("readonly",{startsExpr:v}),_unique:createKeywordLike("unique",{startsExpr:v}),_abstract:createKeywordLike("abstract",{startsExpr:v}),_declare:createKeywordLike("declare",{startsExpr:v}),_enum:createKeywordLike("enum",{startsExpr:v}),_module:createKeywordLike("module",{startsExpr:v}),_namespace:createKeywordLike("namespace",{startsExpr:v}),_interface:createKeywordLike("interface",{startsExpr:v}),_type:createKeywordLike("type",{startsExpr:v}),_opaque:createKeywordLike("opaque",{startsExpr:v}),name:createToken("name",{startsExpr:v}),placeholder:createToken("%%",{startsExpr:v}),string:createToken("string",{startsExpr:v}),num:createToken("num",{startsExpr:v}),bigint:createToken("bigint",{startsExpr:v}),decimal:createToken("decimal",{startsExpr:v}),regexp:createToken("regexp",{startsExpr:v}),privateName:createToken("#name",{startsExpr:v}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:w}),jsxTagStart:createToken("jsxTagStart",{startsExpr:v}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(r){return r>=93&&r<=133}function tokenKeywordOrIdentifierIsKeyword(r){return r<=92}function tokenIsKeywordOrIdentifier(r){return r>=58&&r<=133}function tokenIsLiteralPropertyName(r){return r>=58&&r<=137}function tokenComesBeforeExpression(r){return R[r]}function tokenCanStartExpression(r){return M[r]}function tokenIsAssignment(r){return r>=29&&r<=33}function tokenIsFlowInterfaceOrTypeOrOpaque(r){return r>=129&&r<=131}function tokenIsLoop(r){return r>=90&&r<=92}function tokenIsKeyword(r){return r>=58&&r<=92}function tokenIsOperator(r){return r>=39&&r<=59}function tokenIsPostfix(r){return r===34}function tokenIsPrefix(r){return F[r]}function tokenIsTSTypeOperator(r){return r>=121&&r<=123}function tokenIsTSDeclarationStart(r){return r>=124&&r<=130}function tokenLabelName(r){return L[r]}function tokenOperatorPrecedence(r){return D[r]}function tokenIsRightAssociative(r){return r===57}function tokenIsTemplate(r){return r>=24&&r<=25}function getExportedToken(r){return N[r]}{N[8].updateContext=r=>{r.pop()};N[5].updateContext=N[7].updateContext=N[23].updateContext=r=>{r.push(x.brace)};N[22].updateContext=r=>{if(r[r.length-1]===x.template){r.pop()}else{r.push(x.template)}};N[143].updateContext=r=>{r.push(x.j_expr,x.j_oTag)}}let j="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let $="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const U=new RegExp("["+j+"]");const G=new RegExp("["+j+$+"]");j=$=null;const q=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const W=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(r,s){let l=65536;for(let p=0,d=s.length;p<d;p+=2){l+=s[p];if(l>r)return false;l+=s[p+1];if(l>=r)return true}return false}function isIdentifierStart(r){if(r<65)return r===36;if(r<=90)return true;if(r<97)return r===95;if(r<=122)return true;if(r<=65535){return r>=170&&U.test(String.fromCharCode(r))}return isInAstralSet(r,q)}function isIdentifierChar(r){if(r<48)return r===36;if(r<58)return true;if(r<65)return false;if(r<=90)return true;if(r<97)return r===95;if(r<=122)return true;if(r<=65535){return r>=170&&G.test(String.fromCharCode(r))}return isInAstralSet(r,q)||isInAstralSet(r,W)}const H={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const V=new Set(H.keyword);const K=new Set(H.strict);const z=new Set(H.strictBind);function isReservedWord(r,s){return s&&r==="await"||r==="enum"}function isStrictReservedWord(r,s){return isReservedWord(r,s)||K.has(r)}function isStrictBindOnlyReservedWord(r){return z.has(r)}function isStrictBindReservedWord(r,s){return isStrictReservedWord(r,s)||isStrictBindOnlyReservedWord(r)}function isKeyword(r){return V.has(r)}function isIteratorStart(r,s,l){return r===64&&s===64&&isIdentifierStart(l)}const Y=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function canBeReservedWord(r){return Y.has(r)}class Scope{constructor(r){this.flags=0;this.names=new Map;this.firstLexicalName="";this.flags=r}}class ScopeHandler{constructor(r,s){this.parser=void 0;this.scopeStack=[];this.inModule=void 0;this.undefinedExports=new Map;this.parser=r;this.inModule=s}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const r=this.currentThisScopeFlags();return(r&64)>0&&(r&2)===0}get inStaticBlock(){for(let r=this.scopeStack.length-1;;r--){const{flags:s}=this.scopeStack[r];if(s&128){return true}if(s&(1667|64)){return false}}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(r){return new Scope(r)}enter(r){this.scopeStack.push(this.createScope(r))}exit(){const r=this.scopeStack.pop();return r.flags}treatFunctionsAsVarInScope(r){return!!(r.flags&(2|128)||!this.parser.inModule&&r.flags&1)}declareName(r,s,l){let p=this.currentScope();if(s&8||s&16){this.checkRedeclarationInScope(p,r,s,l);let d=p.names.get(r)||0;if(s&16){d=d|4}else{if(!p.firstLexicalName){p.firstLexicalName=r}d=d|2}p.names.set(r,d);if(s&8){this.maybeExportDefined(p,r)}}else if(s&4){for(let d=this.scopeStack.length-1;d>=0;--d){p=this.scopeStack[d];this.checkRedeclarationInScope(p,r,s,l);p.names.set(r,(p.names.get(r)||0)|1);this.maybeExportDefined(p,r);if(p.flags&1667)break}}if(this.parser.inModule&&p.flags&1){this.undefinedExports.delete(r)}}maybeExportDefined(r,s){if(this.parser.inModule&&r.flags&1){this.undefinedExports.delete(s)}}checkRedeclarationInScope(r,s,l,p){if(this.isRedeclaredInScope(r,s,l)){this.parser.raise(S.VarRedeclaration,p,{identifierName:s})}}isRedeclaredInScope(r,s,l){if(!(l&1))return false;if(l&8){return r.names.has(s)}const p=r.names.get(s);if(l&16){return(p&2)>0||!this.treatFunctionsAsVarInScope(r)&&(p&1)>0}return(p&2)>0&&!(r.flags&8&&r.firstLexicalName===s)||!this.treatFunctionsAsVarInScope(r)&&(p&4)>0}checkLocalExport(r){const{name:s}=r;const l=this.scopeStack[0];if(!l.names.has(s)){this.undefinedExports.set(s,r.loc.start)}}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let r=this.scopeStack.length-1;;r--){const{flags:s}=this.scopeStack[r];if(s&1667){return s}}}currentThisScopeFlags(){for(let r=this.scopeStack.length-1;;r--){const{flags:s}=this.scopeStack[r];if(s&(1667|64)&&!(s&4)){return s}}}}class FlowScope extends Scope{constructor(...r){super(...r);this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(r){return new FlowScope(r)}declareName(r,s,l){const p=this.currentScope();if(s&2048){this.checkRedeclarationInScope(p,r,s,l);this.maybeExportDefined(p,r);p.declareFunctions.add(r);return}super.declareName(r,s,l)}isRedeclaredInScope(r,s,l){if(super.isRedeclaredInScope(r,s,l))return true;if(l&2048&&!r.declareFunctions.has(s)){const l=r.names.get(s);return(l&4)>0||(l&2)>0}return false}checkLocalExport(r){if(!this.scopeStack[0].declareFunctions.has(r.name)){super.checkLocalExport(r)}}}const J=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]);const X=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:r})=>`Cannot overwrite reserved type ${r}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:r,enumName:s})=>`Boolean enum members need to be initialized. Use either \`${r} = true,\` or \`${r} = false,\` in enum \`${s}\`.`,EnumDuplicateMemberName:({memberName:r,enumName:s})=>`Enum member names need to be unique, but the name \`${r}\` has already been used before in enum \`${s}\`.`,EnumInconsistentMemberValues:({enumName:r})=>`Enum \`${r}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:r,enumName:s})=>`Enum type \`${r}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${s}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:r})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${r}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:r,memberName:s,explicitType:l})=>`Enum \`${r}\` has type \`${l}\`, so the initializer of \`${s}\` needs to be a ${l} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:r,memberName:s})=>`Symbol enum members cannot be initialized. Use \`${s},\` in enum \`${r}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:r,memberName:s})=>`The enum member initializer for \`${s}\` needs to be a literal (either a boolean, number, or string) in enum \`${r}\`.`,EnumInvalidMemberName:({enumName:r,memberName:s,suggestion:l})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${s}\`, consider using \`${l}\`, in enum \`${r}\`.`,EnumNumberMemberNotInitialized:({enumName:r,memberName:s})=>`Number enum members need to be initialized, e.g. \`${s} = 1\` in enum \`${r}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:r})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${r}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:r})=>`Unexpected reserved type ${r}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:r,suggestion:s})=>`\`declare export ${r}\` is not supported. Use \`${s}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function isEsModuleType(r){return r.type==="DeclareExportAllDeclaration"||r.type==="DeclareExportDeclaration"&&(!r.declaration||r.declaration.type!=="TypeAlias"&&r.declaration.type!=="InterfaceDeclaration")}function hasTypeImportKind(r){return r.importKind==="type"||r.importKind==="typeof"}const Q={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function partition(r,s){const l=[];const p=[];for(let d=0;d<r.length;d++){(s(r[d],d,r)?l:p).push(r[d])}return[l,p]}const Z=/\*?\s*@((?:no)?flow)\b/;var flow=r=>class FlowParserMixin extends r{constructor(...r){super(...r);this.flowPragma=undefined}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,s){if(r!==134&&r!==13&&r!==28){if(this.flowPragma===undefined){this.flowPragma=null}}super.finishToken(r,s)}addComment(r){if(this.flowPragma===undefined){const s=Z.exec(r.value);if(!s);else if(s[1]==="flow"){this.flowPragma="flow"}else if(s[1]==="noflow"){this.flowPragma="noflow"}else{throw new Error("Unexpected flow pragma")}}super.addComment(r)}flowParseTypeInitialiser(r){const s=this.state.inType;this.state.inType=true;this.expect(r||14);const l=this.flowParseType();this.state.inType=s;return l}flowParsePredicate(){const r=this.startNode();const s=this.state.startLoc;this.next();this.expectContextual(110);if(this.state.lastTokStartLoc.index>s.index+1){this.raise(X.UnexpectedSpaceBetweenModuloChecks,s)}if(this.eat(10)){r.value=super.parseExpression();this.expect(11);return this.finishNode(r,"DeclaredPredicate")}else{return this.finishNode(r,"InferredPredicate")}}flowParseTypeAndPredicateInitialiser(){const r=this.state.inType;this.state.inType=true;this.expect(14);let s=null;let l=null;if(this.match(54)){this.state.inType=r;l=this.flowParsePredicate()}else{s=this.flowParseType();this.state.inType=r;if(this.match(54)){l=this.flowParsePredicate()}}return[s,l]}flowParseDeclareClass(r){this.next();this.flowParseInterfaceish(r,true);return this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();const s=r.id=this.parseIdentifier();const l=this.startNode();const p=this.startNode();if(this.match(47)){l.typeParameters=this.flowParseTypeParameterDeclaration()}else{l.typeParameters=null}this.expect(10);const d=this.flowParseFunctionTypeParams();l.params=d.params;l.rest=d.rest;l.this=d._this;this.expect(11);[l.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser();p.typeAnnotation=this.finishNode(l,"FunctionTypeAnnotation");s.typeAnnotation=this.finishNode(p,"TypeAnnotation");this.resetEndLocation(s);this.semicolon();this.scope.declareName(r.id.name,2048,r.id.loc.start);return this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,s){if(this.match(80)){return this.flowParseDeclareClass(r)}else if(this.match(68)){return this.flowParseDeclareFunction(r)}else if(this.match(74)){return this.flowParseDeclareVariable(r)}else if(this.eatContextual(127)){if(this.match(16)){return this.flowParseDeclareModuleExports(r)}else{if(s){this.raise(X.NestedDeclareModule,this.state.lastTokStartLoc)}return this.flowParseDeclareModule(r)}}else if(this.isContextual(130)){return this.flowParseDeclareTypeAlias(r)}else if(this.isContextual(131)){return this.flowParseDeclareOpaqueType(r)}else if(this.isContextual(129)){return this.flowParseDeclareInterface(r)}else if(this.match(82)){return this.flowParseDeclareExportDeclaration(r,s)}else{this.unexpected()}}flowParseDeclareVariable(r){this.next();r.id=this.flowParseTypeAnnotatableIdentifier(true);this.scope.declareName(r.id.name,5,r.id.loc.start);this.semicolon();return this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0);if(this.match(134)){r.id=super.parseExprAtom()}else{r.id=this.parseIdentifier()}const s=r.body=this.startNode();const l=s.body=[];this.expect(5);while(!this.match(8)){let r=this.startNode();if(this.match(83)){this.next();if(!this.isContextual(130)&&!this.match(87)){this.raise(X.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc)}super.parseImport(r)}else{this.expectContextual(125,X.UnsupportedStatementInDeclareModule);r=this.flowParseDeclare(r,true)}l.push(r)}this.scope.exit();this.expect(8);this.finishNode(s,"BlockStatement");let p=null;let d=false;l.forEach((r=>{if(isEsModuleType(r)){if(p==="CommonJS"){this.raise(X.AmbiguousDeclareModuleKind,r)}p="ES"}else if(r.type==="DeclareModuleExports"){if(d){this.raise(X.DuplicateDeclareModuleExports,r)}if(p==="ES"){this.raise(X.AmbiguousDeclareModuleKind,r)}p="CommonJS";d=true}}));r.kind=p||"CommonJS";return this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,s){this.expect(82);if(this.eat(65)){if(this.match(68)||this.match(80)){r.declaration=this.flowParseDeclare(this.startNode())}else{r.declaration=this.flowParseType();this.semicolon()}r.default=true;return this.finishNode(r,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){const r=this.state.value;throw this.raise(X.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:Q[r]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)){r.declaration=this.flowParseDeclare(this.startNode());r.default=false;return this.finishNode(r,"DeclareExportDeclaration")}else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){r=this.parseExport(r,null);if(r.type==="ExportNamedDeclaration"){r.default=false;delete r.exportKind;return this.castNodeTo(r,"DeclareExportDeclaration")}else{return this.castNodeTo(r,"DeclareExportAllDeclaration")}}}this.unexpected()}flowParseDeclareModuleExports(r){this.next();this.expectContextual(111);r.typeAnnotation=this.flowParseTypeAnnotation();this.semicolon();return this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();const s=this.flowParseTypeAlias(r);this.castNodeTo(s,"DeclareTypeAlias");return s}flowParseDeclareOpaqueType(r){this.next();const s=this.flowParseOpaqueType(r,true);this.castNodeTo(s,"DeclareOpaqueType");return s}flowParseDeclareInterface(r){this.next();this.flowParseInterfaceish(r,false);return this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,s){r.id=this.flowParseRestrictedIdentifier(!s,true);this.scope.declareName(r.id.name,s?17:8201,r.id.loc.start);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}r.extends=[];if(this.eat(81)){do{r.extends.push(this.flowParseInterfaceExtends())}while(!s&&this.eat(12))}if(s){r.implements=[];r.mixins=[];if(this.eatContextual(117)){do{r.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12))}if(this.eatContextual(113)){do{r.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}}r.body=this.flowParseObjectType({allowStatic:s,allowExact:false,allowSpread:false,allowProto:s,allowInexact:false})}flowParseInterfaceExtends(){const r=this.startNode();r.id=this.flowParseQualifiedTypeIdentifier();if(this.match(47)){r.typeParameters=this.flowParseTypeParameterInstantiation()}else{r.typeParameters=null}return this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){this.flowParseInterfaceish(r,false);return this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){if(r==="_"){this.raise(X.UnexpectedReservedUnderscore,this.state.startLoc)}}checkReservedType(r,s,l){if(!J.has(r))return;this.raise(l?X.AssignReservedType:X.UnexpectedReservedType,s,{reservedType:r})}flowParseRestrictedIdentifier(r,s){this.checkReservedType(this.state.value,this.state.startLoc,s);return this.parseIdentifier(r)}flowParseTypeAlias(r){r.id=this.flowParseRestrictedIdentifier(false,true);this.scope.declareName(r.id.name,8201,r.id.loc.start);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}r.right=this.flowParseTypeInitialiser(29);this.semicolon();return this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,s){this.expectContextual(130);r.id=this.flowParseRestrictedIdentifier(true,true);this.scope.declareName(r.id.name,8201,r.id.loc.start);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}r.supertype=null;if(this.match(14)){r.supertype=this.flowParseTypeInitialiser(14)}r.impltype=null;if(!s){r.impltype=this.flowParseTypeInitialiser(29)}this.semicolon();return this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=false){const s=this.state.startLoc;const l=this.startNode();const p=this.flowParseVariance();const d=this.flowParseTypeAnnotatableIdentifier();l.name=d.name;l.variance=p;l.bound=d.typeAnnotation;if(this.match(29)){this.eat(29);l.default=this.flowParseType()}else{if(r){this.raise(X.MissingTypeParamDefault,s)}}return this.finishNode(l,"TypeParameter")}flowParseTypeParameterDeclaration(){const r=this.state.inType;const s=this.startNode();s.params=[];this.state.inType=true;if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}let l=false;do{const r=this.flowParseTypeParameter(l);s.params.push(r);if(r.default){l=true}if(!this.match(48)){this.expect(12)}}while(!this.match(48));this.expect(48);this.state.inType=r;return this.finishNode(s,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==x.brace){const s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else{return r()}}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const r=this.startNode();const s=this.state.inType;this.state.inType=true;r.params=[];this.flowInTopLevelContext((()=>{this.expect(47);const s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=false;while(!this.match(48)){r.params.push(this.flowParseType());if(!this.match(48)){this.expect(12)}}this.state.noAnonFunctionType=s}));this.state.inType=s;if(!this.state.inType&&this.curContext()===x.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;const r=this.startNode();const s=this.state.inType;r.params=[];this.state.inType=true;this.expect(47);while(!this.match(48)){r.params.push(this.flowParseTypeOrImplicitInstantiation());if(!this.match(48)){this.expect(12)}}this.expect(48);this.state.inType=s;return this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){const r=this.startNode();this.expectContextual(129);r.extends=[];if(this.eat(81)){do{r.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false});return this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(true)}flowParseObjectTypeIndexer(r,s,l){r.static=s;if(this.lookahead().type===14){r.id=this.flowParseObjectPropertyKey();r.key=this.flowParseTypeInitialiser()}else{r.id=null;r.key=this.flowParseType()}this.expect(3);r.value=this.flowParseTypeInitialiser();r.variance=l;return this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,s){r.static=s;r.id=this.flowParseObjectPropertyKey();this.expect(3);this.expect(3);if(this.match(47)||this.match(10)){r.method=true;r.optional=false;r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))}else{r.method=false;if(this.eat(17)){r.optional=true}r.value=this.flowParseTypeInitialiser()}return this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){r.params=[];r.rest=null;r.typeParameters=null;r.this=null;if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}this.expect(10);if(this.match(78)){r.this=this.flowParseFunctionTypeParam(true);r.this.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){r.params.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){r.rest=this.flowParseFunctionTypeParam(false)}this.expect(11);r.returnType=this.flowParseTypeInitialiser();return this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,s){const l=this.startNode();r.static=s;r.value=this.flowParseObjectTypeMethodish(l);return this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:s,allowSpread:l,allowProto:p,allowInexact:d}){const m=this.state.inType;this.state.inType=true;const y=this.startNode();y.callProperties=[];y.properties=[];y.indexers=[];y.internalSlots=[];let g;let T;let b=false;if(s&&this.match(6)){this.expect(6);g=9;T=true}else{this.expect(5);g=8;T=false}y.exact=T;while(!this.match(g)){let s=false;let m=null;let g=null;const E=this.startNode();if(p&&this.isContextual(118)){const s=this.lookahead();if(s.type!==14&&s.type!==17){this.next();m=this.state.startLoc;r=false}}if(r&&this.isContextual(106)){const r=this.lookahead();if(r.type!==14&&r.type!==17){this.next();s=true}}const S=this.flowParseVariance();if(this.eat(0)){if(m!=null){this.unexpected(m)}if(this.eat(0)){if(S){this.unexpected(S.loc.start)}y.internalSlots.push(this.flowParseObjectTypeInternalSlot(E,s))}else{y.indexers.push(this.flowParseObjectTypeIndexer(E,s,S))}}else if(this.match(10)||this.match(47)){if(m!=null){this.unexpected(m)}if(S){this.unexpected(S.loc.start)}y.callProperties.push(this.flowParseObjectTypeCallProperty(E,s))}else{let r="init";if(this.isContextual(99)||this.isContextual(104)){const s=this.lookahead();if(tokenIsLiteralPropertyName(s.type)){r=this.state.value;this.next()}}const p=this.flowParseObjectTypeProperty(E,s,m,S,r,l,d!=null?d:!T);if(p===null){b=true;g=this.state.lastTokStartLoc}else{y.properties.push(p)}}this.flowObjectTypeSemicolon();if(g&&!this.match(8)&&!this.match(9)){this.raise(X.UnexpectedExplicitInexactInObject,g)}}this.expect(g);if(l){y.inexact=b}const E=this.finishNode(y,"ObjectTypeAnnotation");this.state.inType=m;return E}flowParseObjectTypeProperty(r,s,l,p,d,m,y){if(this.eat(21)){const s=this.match(12)||this.match(13)||this.match(8)||this.match(9);if(s){if(!m){this.raise(X.InexactInsideNonObject,this.state.lastTokStartLoc)}else if(!y){this.raise(X.InexactInsideExact,this.state.lastTokStartLoc)}if(p){this.raise(X.InexactVariance,p)}return null}if(!m){this.raise(X.UnexpectedSpreadType,this.state.lastTokStartLoc)}if(l!=null){this.unexpected(l)}if(p){this.raise(X.SpreadVariance,p)}r.argument=this.flowParseType();return this.finishNode(r,"ObjectTypeSpreadProperty")}else{r.key=this.flowParseObjectPropertyKey();r.static=s;r.proto=l!=null;r.kind=d;let y=false;if(this.match(47)||this.match(10)){r.method=true;if(l!=null){this.unexpected(l)}if(p){this.unexpected(p.loc.start)}r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start));if(d==="get"||d==="set"){this.flowCheckGetterSetterParams(r)}if(!m&&r.key.name==="constructor"&&r.value.this){this.raise(X.ThisParamBannedInConstructor,r.value.this)}}else{if(d!=="init")this.unexpected();r.method=false;if(this.eat(17)){y=true}r.value=this.flowParseTypeInitialiser();r.variance=p}r.optional=y;return this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){const s=r.kind==="get"?0:1;const l=r.value.params.length+(r.value.rest?1:0);if(r.value.this){this.raise(r.kind==="get"?X.GetterMayNotHaveThisParam:X.SetterMayNotHaveThisParam,r.value.this)}if(l!==s){this.raise(r.kind==="get"?S.BadGetterArity:S.BadSetterArity,r)}if(r.kind==="set"&&r.value.rest){this.raise(S.BadSetterRestParameter,r)}}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)){this.unexpected()}}flowParseQualifiedTypeIdentifier(r,s){r!=null?r:r=this.state.startLoc;let l=s||this.flowParseRestrictedIdentifier(true);while(this.eat(16)){const s=this.startNodeAt(r);s.qualification=l;s.id=this.flowParseRestrictedIdentifier(true);l=this.finishNode(s,"QualifiedTypeIdentifier")}return l}flowParseGenericType(r,s){const l=this.startNodeAt(r);l.typeParameters=null;l.id=this.flowParseQualifiedTypeIdentifier(r,s);if(this.match(47)){l.typeParameters=this.flowParseTypeParameterInstantiation()}return this.finishNode(l,"GenericTypeAnnotation")}flowParseTypeofType(){const r=this.startNode();this.expect(87);r.argument=this.flowParsePrimaryType();return this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){const r=this.startNode();r.types=[];this.expect(0);while(this.state.pos<this.length&&!this.match(3)){r.types.push(this.flowParseType());if(this.match(3))break;this.expect(12)}this.expect(3);return this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let s=null;let l=false;let p=null;const d=this.startNode();const m=this.lookahead();const y=this.state.type===78;if(m.type===14||m.type===17){if(y&&!r){this.raise(X.ThisParamMustBeFirst,d)}s=this.parseIdentifier(y);if(this.eat(17)){l=true;if(y){this.raise(X.ThisParamMayNotBeOptional,d)}}p=this.flowParseTypeInitialiser()}else{p=this.flowParseType()}d.name=s;d.optional=l;d.typeAnnotation=p;return this.finishNode(d,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){const s=this.startNodeAt(r.loc.start);s.name=null;s.optional=false;s.typeAnnotation=r;return this.finishNode(s,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let s=null;let l=null;if(this.match(78)){l=this.flowParseFunctionTypeParam(true);l.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){r.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){s=this.flowParseFunctionTypeParam(false)}return{params:r,rest:s,_this:l}}flowIdentToTypeAnnotation(r,s,l){switch(l.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:this.checkNotUnderscore(l.name);return this.flowParseGenericType(r,l)}}flowParsePrimaryType(){const r=this.state.startLoc;const s=this.startNode();let l;let p;let d=false;const m=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:true,allowProto:false,allowInexact:true});case 6:return this.flowParseObjectType({allowStatic:false,allowExact:true,allowSpread:true,allowProto:false,allowInexact:false});case 0:this.state.noAnonFunctionType=false;p=this.flowParseTupleType();this.state.noAnonFunctionType=m;return p;case 47:{const r=this.startNode();r.typeParameters=this.flowParseTypeParameterDeclaration();this.expect(10);l=this.flowParseFunctionTypeParams();r.params=l.params;r.rest=l.rest;r.this=l._this;this.expect(11);this.expect(19);r.returnType=this.flowParseType();return this.finishNode(r,"FunctionTypeAnnotation")}case 10:{const r=this.startNode();this.next();if(!this.match(11)&&!this.match(21)){if(tokenIsIdentifier(this.state.type)||this.match(78)){const r=this.lookahead().type;d=r!==17&&r!==14}else{d=true}}if(d){this.state.noAnonFunctionType=false;p=this.flowParseType();this.state.noAnonFunctionType=m;if(this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19)){this.expect(11);return p}else{this.eat(12)}}if(p){l=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(p)])}else{l=this.flowParseFunctionTypeParams()}r.params=l.params;r.rest=l.rest;r.this=l._this;this.expect(11);this.expect(19);r.returnType=this.flowParseType();r.typeParameters=null;return this.finishNode(r,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:s.value=this.match(85);this.next();return this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){this.next();if(this.match(135)){return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s)}if(this.match(136)){return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s)}throw this.raise(X.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:this.next();return this.finishNode(s,"VoidTypeAnnotation");case 84:this.next();return this.finishNode(s,"NullLiteralTypeAnnotation");case 78:this.next();return this.finishNode(s,"ThisTypeAnnotation");case 55:this.next();return this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const r=tokenLabelName(this.state.type);this.next();return super.createIdentifier(s,r)}else if(tokenIsIdentifier(this.state.type)){if(this.isContextual(129)){return this.flowParseInterfaceType()}return this.flowIdentToTypeAnnotation(r,s,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const r=this.state.startLoc;let s=this.flowParsePrimaryType();let l=false;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const p=this.startNodeAt(r);const d=this.eat(18);l=l||d;this.expect(0);if(!d&&this.match(3)){p.elementType=s;this.next();s=this.finishNode(p,"ArrayTypeAnnotation")}else{p.objectType=s;p.indexType=this.flowParseType();this.expect(3);if(l){p.optional=d;s=this.finishNode(p,"OptionalIndexedAccessType")}else{s=this.finishNode(p,"IndexedAccessType")}}}return s}flowParsePrefixType(){const r=this.startNode();if(this.eat(17)){r.typeAnnotation=this.flowParsePrefixType();return this.finishNode(r,"NullableTypeAnnotation")}else{return this.flowParsePostfixType()}}flowParseAnonFunctionWithoutParens(){const r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const s=this.startNodeAt(r.loc.start);s.params=[this.reinterpretTypeAsFunctionTypeParam(r)];s.rest=null;s.this=null;s.returnType=this.flowParseType();s.typeParameters=null;return this.finishNode(s,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){const r=this.startNode();this.eat(45);const s=this.flowParseAnonFunctionWithoutParens();r.types=[s];while(this.eat(45)){r.types.push(this.flowParseAnonFunctionWithoutParens())}return r.types.length===1?s:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){const r=this.startNode();this.eat(43);const s=this.flowParseIntersectionType();r.types=[s];while(this.eat(43)){r.types.push(this.flowParseIntersectionType())}return r.types.length===1?s:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){const r=this.state.inType;this.state.inType=true;const s=this.flowParseUnionType();this.state.inType=r;return s}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const r=this.state.startLoc;const s=this.parseIdentifier();return this.flowParseGenericType(r,s)}else{return this.flowParseType()}}flowParseTypeAnnotation(){const r=this.startNode();r.typeAnnotation=this.flowParseTypeInitialiser();return this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){const s=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14)){s.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(s)}return s}typeCastToParameter(r){r.expression.typeAnnotation=r.typeAnnotation;this.resetEndLocation(r.expression,r.typeAnnotation.loc.end);return r.expression}flowParseVariance(){let r=null;if(this.match(53)){r=this.startNode();if(this.state.value==="+"){r.kind="plus"}else{r.kind="minus"}this.next();return this.finishNode(r,"Variance")}return r}parseFunctionBody(r,s,l=false){if(s){this.forwardNoArrowParamsConversionAt(r,(()=>super.parseFunctionBody(r,true,l)));return}super.parseFunctionBody(r,false,l)}parseFunctionBodyAndFinish(r,s,l=false){if(this.match(14)){const s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser();r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,s,l)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){const r=this.lookahead();if(tokenIsKeywordOrIdentifier(r.type)){const r=this.startNode();this.next();return this.flowParseInterface(r)}}else if(this.isContextual(126)){const r=this.startNode();this.next();return this.flowParseEnumDeclaration(r)}const s=super.parseStatementLike(r);if(this.flowPragma===undefined&&!this.isValidDirective(s)){this.flowPragma=null}return s}parseExpressionStatement(r,s,l){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82)){return this.flowParseDeclare(r)}}else if(tokenIsIdentifier(this.state.type)){if(s.name==="interface"){return this.flowParseInterface(r)}else if(s.name==="type"){return this.flowParseTypeAlias(r)}else if(s.name==="opaque"){return this.flowParseOpaqueType(r,false)}}}return super.parseExpressionStatement(r,s,l)}shouldParseExportDeclaration(){const{type:r}=this.state;if(r===126||tokenIsFlowInterfaceOrTypeOrOpaque(r)){return!this.state.containsEsc}return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:r}=this.state;if(r===126||tokenIsFlowInterfaceOrTypeOrOpaque(r)){return this.state.containsEsc}return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const r=this.startNode();this.next();return this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,s,l){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){const s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41){this.setOptionalParametersError(l);return r}}this.expect(17);const p=this.state.clone();const d=this.state.noArrowAt;const m=this.startNodeAt(s);let{consequent:y,failed:g}=this.tryParseConditionalConsequent();let[T,b]=this.getArrowLikeExpressions(y);if(g||b.length>0){const r=[...d];if(b.length>0){this.state=p;this.state.noArrowAt=r;for(let s=0;s<b.length;s++){r.push(b[s].start)}({consequent:y,failed:g}=this.tryParseConditionalConsequent());[T,b]=this.getArrowLikeExpressions(y)}if(g&&T.length>1){this.raise(X.AmbiguousConditionalArrow,p.startLoc)}if(g&&T.length===1){this.state=p;r.push(T[0].start);this.state.noArrowAt=r;({consequent:y,failed:g}=this.tryParseConditionalConsequent())}}this.getArrowLikeExpressions(y,true);this.state.noArrowAt=d;this.expect(14);m.test=r;m.consequent=y;m.alternate=this.forwardNoArrowParamsConversionAt(m,(()=>this.parseMaybeAssign(undefined,undefined)));return this.finishNode(m,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const r=this.parseMaybeAssignAllowIn();const s=!this.match(14);this.state.noArrowParamsConversionAt.pop();return{consequent:r,failed:s}}getArrowLikeExpressions(r,s){const l=[r];const p=[];while(l.length!==0){const r=l.pop();if(r.type==="ArrowFunctionExpression"&&r.body.type!=="BlockStatement"){if(r.typeParameters||!r.returnType){this.finishArrowValidation(r)}else{p.push(r)}l.push(r.body)}else if(r.type==="ConditionalExpression"){l.push(r.consequent);l.push(r.alternate)}}if(s){p.forEach((r=>this.finishArrowValidation(r)));return[p,[]]}return partition(p,(r=>r.params.every((r=>this.isAssignable(r,true)))))}finishArrowValidation(r){var s;this.toAssignableList(r.params,(s=r.extra)==null?void 0:s.trailingCommaLoc,false);this.scope.enter(514|4);super.checkParams(r,false,true);this.scope.exit()}forwardNoArrowParamsConversionAt(r,s){let l;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))){this.state.noArrowParamsConversionAt.push(this.state.start);l=s();this.state.noArrowParamsConversionAt.pop()}else{l=s()}return l}parseParenItem(r,s){const l=super.parseParenItem(r,s);if(this.eat(17)){l.optional=true;this.resetEndLocation(r)}if(this.match(14)){const r=this.startNodeAt(s);r.expression=l;r.typeAnnotation=this.flowParseTypeAnnotation();return this.finishNode(r,"TypeCastExpression")}return l}assertModuleNodeAllowed(r){if(r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"){return}super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";const s=this.startNode();this.next();if(this.match(5)){r.specifiers=this.parseExportSpecifiers(true);super.parseExportFrom(r);return null}else{return this.flowParseTypeAlias(s)}}else if(this.isContextual(131)){r.exportKind="type";const s=this.startNode();this.next();return this.flowParseOpaqueType(s,false)}else if(this.isContextual(129)){r.exportKind="type";const s=this.startNode();this.next();return this.flowParseInterface(s)}else if(this.isContextual(126)){r.exportKind="value";const s=this.startNode();this.next();return this.flowParseEnumDeclaration(s)}else{return super.parseExportDeclaration(r)}}eatExportStar(r){if(super.eatExportStar(r))return true;if(this.isContextual(130)&&this.lookahead().type===55){r.exportKind="type";this.next();this.next();return true}return false}maybeParseExportNamespaceSpecifier(r){const{startLoc:s}=this.state;const l=super.maybeParseExportNamespaceSpecifier(r);if(l&&r.exportKind==="type"){this.unexpected(s)}return l}parseClassId(r,s,l){super.parseClassId(r,s,l);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}}parseClassMember(r,s,l){const{startLoc:p}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,s)){return}s.declare=true}super.parseClassMember(r,s,l);if(s.declare){if(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition"){this.raise(X.DeclareClassElement,p)}else if(s.value){this.raise(X.DeclareClassFieldInitializer,s.value)}}}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){const r=super.readWord1();const s="@@"+r;if(!this.isIterator(r)||!this.state.inType){this.raise(S.InvalidIdentifier,this.state.curPosition(),{identifierName:s})}this.finishToken(132,s)}getTokenFromCode(r){const s=this.input.charCodeAt(this.state.pos+1);if(r===123&&s===124){this.finishOp(6,2)}else if(this.state.inType&&(r===62||r===60)){this.finishOp(r===62?48:47,1)}else if(this.state.inType&&r===63){if(s===46){this.finishOp(18,2)}else{this.finishOp(17,1)}}else if(isIteratorStart(r,s,this.input.charCodeAt(this.state.pos+2))){this.state.pos+=2;this.readIterator()}else{super.getTokenFromCode(r)}}isAssignable(r,s){if(r.type==="TypeCastExpression"){return this.isAssignable(r.expression,s)}else{return super.isAssignable(r,s)}}toAssignable(r,s=false){if(!s&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"){r.left=this.typeCastToParameter(r.left)}super.toAssignable(r,s)}toAssignableList(r,s,l){for(let s=0;s<r.length;s++){const l=r[s];if((l==null?void 0:l.type)==="TypeCastExpression"){r[s]=this.typeCastToParameter(l)}}super.toAssignableList(r,s,l)}toReferencedList(r,s){for(let p=0;p<r.length;p++){var l;const d=r[p];if(d&&d.type==="TypeCastExpression"&&!((l=d.extra)!=null&&l.parenthesized)&&(r.length>1||!s)){this.raise(X.TypeCastInPattern,d.typeAnnotation)}}return r}parseArrayLike(r,s,l,p){const d=super.parseArrayLike(r,s,l,p);if(s&&!this.state.maybeInArrowParameters){this.toReferencedList(d.elements)}return d}isValidLVal(r,s,l){return r==="TypeCastExpression"||super.isValidLVal(r,s,l)}parseClassProperty(r){if(this.match(14)){r.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassProperty(r)}parseClassPrivateProperty(r){if(this.match(14)){r.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,s,l,p,d,m){if(s.variance){this.unexpected(s.variance.loc.start)}delete s.variance;if(this.match(47)){s.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassMethod(r,s,l,p,d,m);if(s.params&&d){const r=s.params;if(r.length>0&&this.isThisParam(r[0])){this.raise(X.ThisParamBannedInConstructor,s)}}else if(s.type==="MethodDefinition"&&d&&s.value.params){const r=s.value.params;if(r.length>0&&this.isThisParam(r[0])){this.raise(X.ThisParamBannedInConstructor,s)}}}pushClassPrivateMethod(r,s,l,p){if(s.variance){this.unexpected(s.variance.loc.start)}delete s.variance;if(this.match(47)){s.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassPrivateMethod(r,s,l,p)}parseClassSuper(r){super.parseClassSuper(r);if(r.superClass&&(this.match(47)||this.match(51))){{r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()}}if(this.isContextual(113)){this.next();const s=r.implements=[];do{const r=this.startNode();r.id=this.flowParseRestrictedIdentifier(true);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterInstantiation()}else{r.typeParameters=null}s.push(this.finishNode(r,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);const s=this.getObjectOrClassMethodParams(r);if(s.length>0){const l=s[0];if(this.isThisParam(l)&&r.kind==="get"){this.raise(X.GetterMayNotHaveThisParam,l)}else if(this.isThisParam(l)){this.raise(X.SetterMayNotHaveThisParam,l)}}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,s,l,p,d,m,y){if(r.variance){this.unexpected(r.variance.loc.start)}delete r.variance;let g;if(this.match(47)&&!m){g=this.flowParseTypeParameterDeclaration();if(!this.match(10))this.unexpected()}const T=super.parseObjPropValue(r,s,l,p,d,m,y);if(g){(T.value||T).typeParameters=g}return T}parseFunctionParamType(r){if(this.eat(17)){if(r.type!=="Identifier"){this.raise(X.PatternIsOptional,r)}if(this.isThisParam(r)){this.raise(X.ThisParamMayNotBeOptional,r)}r.optional=true}if(this.match(14)){r.typeAnnotation=this.flowParseTypeAnnotation()}else if(this.isThisParam(r)){this.raise(X.ThisParamAnnotationRequired,r)}if(this.match(29)&&this.isThisParam(r)){this.raise(X.ThisParamNoDefault,r)}this.resetEndLocation(r);return r}parseMaybeDefault(r,s){const l=super.parseMaybeDefault(r,s);if(l.type==="AssignmentPattern"&&l.typeAnnotation&&l.right.start<l.typeAnnotation.start){this.raise(X.TypeBeforeInitializer,l.typeAnnotation)}return l}checkImportReflection(r){super.checkImportReflection(r);if(r.module&&r.importKind!=="value"){this.raise(X.ImportReflectionHasImportType,r.specifiers[0].loc.start)}}parseImportSpecifierLocal(r,s,l){s.local=hasTypeImportKind(r)?this.flowParseRestrictedIdentifier(true,true):this.parseIdentifier();r.specifiers.push(this.finishImportSpecifier(s,l))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return true;if(this.isContextual(130)){if(!r)return true;const s=this.lookaheadCharCode();return s===123||s===42}return!r&&this.isContextual(87)}applyImportPhase(r,s,l,p){super.applyImportPhase(r,s,l,p);if(s){if(!l&&this.match(65)){return}r.exportKind=l==="type"?l:"value"}else{if(l==="type"&&this.match(55))this.unexpected();r.importKind=l==="type"||l==="typeof"?l:"value"}}parseImportSpecifier(r,s,l,p,d){const m=r.imported;let y=null;if(m.type==="Identifier"){if(m.name==="type"){y="type"}else if(m.name==="typeof"){y="typeof"}}let g=false;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const s=this.parseIdentifier(true);if(y!==null&&!tokenIsKeywordOrIdentifier(this.state.type)){r.imported=s;r.importKind=y;r.local=this.cloneIdentifier(s)}else{r.imported=m;r.importKind=null;r.local=this.parseIdentifier()}}else{if(y!==null&&tokenIsKeywordOrIdentifier(this.state.type)){r.imported=this.parseIdentifier(true);r.importKind=y}else{if(s){throw this.raise(S.ImportBindingIsString,r,{importName:m.value})}r.imported=m;r.importKind=null}if(this.eatContextual(93)){r.local=this.parseIdentifier()}else{g=true;r.local=this.cloneIdentifier(r.imported)}}const T=hasTypeImportKind(r);if(l&&T){this.raise(X.ImportTypeShorthandOnlyInPureImport,r)}if(l||T){this.checkReservedType(r.local.name,r.local.loc.start,true)}if(g&&!l&&!T){this.checkReservedWord(r.local.name,r.loc.start,true,true)}return this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(true);default:return super.parseBindingAtom()}}parseFunctionParams(r,s){const l=r.kind;if(l!=="get"&&l!=="set"&&this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}super.parseFunctionParams(r,s)}parseVarId(r,s){super.parseVarId(r,s);if(this.match(14)){r.id.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(r.id)}}parseAsyncArrowFromCallExpression(r,s){if(this.match(14)){const s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;r.returnType=this.flowParseTypeAnnotation();this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,s){var l;let p=null;let d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){p=this.state.clone();d=this.tryParse((()=>super.parseMaybeAssign(r,s)),p);if(!d.error)return d.node;const{context:l}=this.state;const m=l[l.length-1];if(m===x.j_oTag||m===x.j_expr){l.pop()}}if((l=d)!=null&&l.error||this.match(47)){var m,y;p=p||this.state.clone();let l;const g=this.tryParse((p=>{var d;l=this.flowParseTypeParameterDeclaration();const m=this.forwardNoArrowParamsConversionAt(l,(()=>{const p=super.parseMaybeAssign(r,s);this.resetStartLocationFromNode(p,l);return p}));if((d=m.extra)!=null&&d.parenthesized)p();const y=this.maybeUnwrapTypeCastExpression(m);if(y.type!=="ArrowFunctionExpression")p();y.typeParameters=l;this.resetStartLocationFromNode(y,l);return m}),p);let T=null;if(g.node&&this.maybeUnwrapTypeCastExpression(g.node).type==="ArrowFunctionExpression"){if(!g.error&&!g.aborted){if(g.node.async){this.raise(X.UnexpectedTypeParameterBeforeAsyncArrowFunction,l)}return g.node}T=g.node}if((m=d)!=null&&m.node){this.state=d.failState;return d.node}if(T){this.state=g.failState;return T}if((y=d)!=null&&y.thrown)throw d.error;if(g.thrown)throw g.error;throw this.raise(X.UnexpectedTokenAfterTypeParameter,l)}return super.parseMaybeAssign(r,s)}parseArrow(r){if(this.match(14)){const s=this.tryParse((()=>{const s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;const l=this.startNode();[l.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser();this.state.noAnonFunctionType=s;if(this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return l}));if(s.thrown)return null;if(s.error)this.state=s.failState;r.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,s){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))){r.params=s}else{super.setArrowFunctionParameters(r,s)}}checkParams(r,s,l,p=true){if(l&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))){return}for(let s=0;s<r.params.length;s++){if(this.isThisParam(r.params[s])&&s>0){this.raise(X.ThisParamMustBeFirst,r.params[s])}}super.checkParams(r,s,l,p)}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,s,l){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();const l=this.startNodeAt(s);l.callee=r;l.arguments=super.parseCallExpressionArguments();r=this.finishNode(l,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){const p=this.state.clone();const d=this.tryParse((r=>this.parseAsyncArrowWithTypeParameters(s)||r()),p);if(!d.error&&!d.aborted)return d.node;const m=this.tryParse((()=>super.parseSubscripts(r,s,l)),p);if(m.node&&!m.error)return m.node;if(d.node){this.state=d.failState;return d.node}if(m.node){this.state=m.failState;return m.node}throw d.error||m.error}return super.parseSubscripts(r,s,l)}parseSubscript(r,s,l,p){if(this.match(18)&&this.isLookaheadToken_lt()){p.optionalChainMember=true;if(l){p.stop=true;return r}this.next();const d=this.startNodeAt(s);d.callee=r;d.typeArguments=this.flowParseTypeParameterInstantiationInExpression();this.expect(10);d.arguments=this.parseCallExpressionArguments();d.optional=true;return this.finishCallExpression(d,true)}else if(!l&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const l=this.startNodeAt(s);l.callee=r;const d=this.tryParse((()=>{l.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew();this.expect(10);l.arguments=super.parseCallExpressionArguments();if(p.optionalChainMember){l.optional=false}return this.finishCallExpression(l,p.optionalChainMember)}));if(d.node){if(d.error)this.state=d.failState;return d.node}}return super.parseSubscript(r,s,l,p)}parseNewCallee(r){super.parseNewCallee(r);let s=null;if(this.shouldParseTypes()&&this.match(47)){s=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node}r.typeArguments=s}parseAsyncArrowWithTypeParameters(r){const s=this.startNodeAt(r);this.parseFunctionParams(s,false);if(!this.parseArrow(s))return;return super.parseArrowExpression(s,undefined,true)}readToken_mult_modulo(r){const s=this.input.charCodeAt(this.state.pos+1);if(r===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=false;this.state.pos+=2;this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){const s=this.input.charCodeAt(this.state.pos+1);if(r===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,s){const l=super.parseTopLevel(r,s);if(this.state.hasFlowComment){this.raise(X.UnterminatedFlowComment,this.state.curPosition())}return l}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment){throw this.raise(X.NestedFlowComment,this.state.startLoc)}this.hasFlowCommentCompletion();const r=this.skipFlowComment();if(r){this.state.pos+=r;this.state.hasFlowComment=true}return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:r}=this.state;let s=2;while([32,9].includes(this.input.charCodeAt(r+s))){s++}const l=this.input.charCodeAt(s+r);const p=this.input.charCodeAt(s+r+1);if(l===58&&p===58){return s+2}if(this.input.slice(s+r,s+r+12)==="flow-include"){return s+12}if(l===58&&p!==58){return s}return false}hasFlowCommentCompletion(){const r=this.input.indexOf("*/",this.state.pos);if(r===-1){throw this.raise(S.UnterminatedComment,this.state.curPosition())}}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:s,memberName:l}){this.raise(X.EnumBooleanMemberNotInitialized,r,{memberName:l,enumName:s})}flowEnumErrorInvalidMemberInitializer(r,s){return this.raise(!s.explicitType?X.EnumInvalidMemberInitializerUnknownType:s.explicitType==="symbol"?X.EnumInvalidMemberInitializerSymbolType:X.EnumInvalidMemberInitializerPrimaryType,r,s)}flowEnumErrorNumberMemberNotInitialized(r,s){this.raise(X.EnumNumberMemberNotInitialized,r,s)}flowEnumErrorStringMemberInconsistentlyInitialized(r,s){this.raise(X.EnumStringMemberInconsistentlyInitialized,r,s)}flowEnumMemberInit(){const r=this.state.startLoc;const endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const s=this.parseNumericLiteral(this.state.value);if(endOfInit()){return{type:"number",loc:s.loc.start,value:s}}return{type:"invalid",loc:r}}case 134:{const s=this.parseStringLiteral(this.state.value);if(endOfInit()){return{type:"string",loc:s.loc.start,value:s}}return{type:"invalid",loc:r}}case 85:case 86:{const s=this.parseBooleanLiteral(this.match(85));if(endOfInit()){return{type:"boolean",loc:s.loc.start,value:s}}return{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){const r=this.state.startLoc;const s=this.parseIdentifier(true);const l=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:s,init:l}}flowEnumCheckExplicitTypeMismatch(r,s,l){const{explicitType:p}=s;if(p===null){return}if(p!==l){this.flowEnumErrorInvalidMemberInitializer(r,s)}}flowEnumMembers({enumName:r,explicitType:s}){const l=new Set;const p={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let d=false;while(!this.match(8)){if(this.eat(21)){d=true;break}const m=this.startNode();const{id:y,init:g}=this.flowEnumMemberRaw();const T=y.name;if(T===""){continue}if(/^[a-z]/.test(T)){this.raise(X.EnumInvalidMemberName,y,{memberName:T,suggestion:T[0].toUpperCase()+T.slice(1),enumName:r})}if(l.has(T)){this.raise(X.EnumDuplicateMemberName,y,{memberName:T,enumName:r})}l.add(T);const b={enumName:r,explicitType:s,memberName:T};m.id=y;switch(g.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(g.loc,b,"boolean");m.init=g.value;p.booleanMembers.push(this.finishNode(m,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(g.loc,b,"number");m.init=g.value;p.numberMembers.push(this.finishNode(m,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(g.loc,b,"string");m.init=g.value;p.stringMembers.push(this.finishNode(m,"EnumStringMember"));break}case"invalid":{throw this.flowEnumErrorInvalidMemberInitializer(g.loc,b)}case"none":{switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(g.loc,b);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(g.loc,b);break;default:p.defaultedMembers.push(this.finishNode(m,"EnumDefaultedMember"))}}}if(!this.match(8)){this.expect(12)}}return{members:p,hasUnknownMembers:d}}flowEnumStringMembers(r,s,{enumName:l}){if(r.length===0){return s}else if(s.length===0){return r}else if(s.length>r.length){for(const s of r){this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:l})}return s}else{for(const r of s){this.flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:l})}return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type)){throw this.raise(X.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r})}const{value:s}=this.state;this.next();if(s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol"){this.raise(X.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:s})}return s}flowEnumBody(r,s){const l=s.name;const p=s.loc.start;const d=this.flowEnumParseExplicitType({enumName:l});this.expect(5);const{members:m,hasUnknownMembers:y}=this.flowEnumMembers({enumName:l,explicitType:d});r.hasUnknownMembers=y;switch(d){case"boolean":r.explicitType=true;r.members=m.booleanMembers;this.expect(8);return this.finishNode(r,"EnumBooleanBody");case"number":r.explicitType=true;r.members=m.numberMembers;this.expect(8);return this.finishNode(r,"EnumNumberBody");case"string":r.explicitType=true;r.members=this.flowEnumStringMembers(m.stringMembers,m.defaultedMembers,{enumName:l});this.expect(8);return this.finishNode(r,"EnumStringBody");case"symbol":r.members=m.defaultedMembers;this.expect(8);return this.finishNode(r,"EnumSymbolBody");default:{const empty=()=>{r.members=[];this.expect(8);return this.finishNode(r,"EnumStringBody")};r.explicitType=false;const s=m.booleanMembers.length;const d=m.numberMembers.length;const y=m.stringMembers.length;const g=m.defaultedMembers.length;if(!s&&!d&&!y&&!g){return empty()}else if(!s&&!d){r.members=this.flowEnumStringMembers(m.stringMembers,m.defaultedMembers,{enumName:l});this.expect(8);return this.finishNode(r,"EnumStringBody")}else if(!d&&!y&&s>=g){for(const r of m.defaultedMembers){this.flowEnumErrorBooleanMemberNotInitialized(r.loc.start,{enumName:l,memberName:r.id.name})}r.members=m.booleanMembers;this.expect(8);return this.finishNode(r,"EnumBooleanBody")}else if(!s&&!y&&d>=g){for(const r of m.defaultedMembers){this.flowEnumErrorNumberMemberNotInitialized(r.loc.start,{enumName:l,memberName:r.id.name})}r.members=m.numberMembers;this.expect(8);return this.finishNode(r,"EnumNumberBody")}else{this.raise(X.EnumInconsistentMemberValues,p,{enumName:l});return empty()}}}}flowParseEnumDeclaration(r){const s=this.parseIdentifier();r.id=s;r.body=this.flowEnumBody(this.startNode(),s);return this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){if(this.shouldParseTypes()){if(this.match(47)||this.match(51)){r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}}return super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){const r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){const s=this.input.charCodeAt(r+1);return s!==60&&s!==61}return false}reScan_lt_gt(){const{type:r}=this.state;if(r===47){this.state.pos-=1;this.readToken_lt()}else if(r===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:r}=this.state;if(r===51){this.state.pos-=2;this.finishOp(47,1);return 47}return r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}};const ee={__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:"♦"};const te=/\r\n|[\r\n\u2028\u2029]/;const re=new RegExp(te.source,"g");function isNewLine(r){switch(r){case 10:case 13:case 8232:case 8233:return true;default:return false}}function hasNewLine(r,s,l){for(let p=s;p<l;p++){if(isNewLine(r.charCodeAt(p))){return true}}return false}const se=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const ne=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(r){switch(r){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 true;default:return false}}const ie=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:r})=>`Expected corresponding JSX closing tag for <${r}>.`,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:r,HTMLEntity:s})=>`Unexpected token \`${r}\`. Did you mean \`${s}\` or \`{'${r}'}\`?`,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 isFragment(r){return r?r.type==="JSXOpeningFragment"||r.type==="JSXClosingFragment":false}function getQualifiedJSXName(r){if(r.type==="JSXIdentifier"){return r.name}if(r.type==="JSXNamespacedName"){return r.namespace.name+":"+r.name.name}if(r.type==="JSXMemberExpression"){return getQualifiedJSXName(r.object)+"."+getQualifiedJSXName(r.property)}throw new Error("Node had unexpected type: "+r.type)}var jsx=r=>class JSXParserMixin extends r{jsxReadToken(){let r="";let s=this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(ie.UnterminatedJsxContent,this.state.startLoc)}const l=this.input.charCodeAt(this.state.pos);switch(l){case 60:case 123:if(this.state.pos===this.state.start){if(l===60&&this.state.canStartJSXElement){++this.state.pos;this.finishToken(143)}else{super.getTokenFromCode(l)}return}r+=this.input.slice(s,this.state.pos);this.finishToken(142,r);return;case 38:r+=this.input.slice(s,this.state.pos);r+=this.jsxReadEntity();s=this.state.pos;break;case 62:case 125:default:if(isNewLine(l)){r+=this.input.slice(s,this.state.pos);r+=this.jsxReadNewLine(true);s=this.state.pos}else{++this.state.pos}}}}jsxReadNewLine(r){const s=this.input.charCodeAt(this.state.pos);let l;++this.state.pos;if(s===13&&this.input.charCodeAt(this.state.pos)===10){++this.state.pos;l=r?"\n":"\r\n"}else{l=String.fromCharCode(s)}++this.state.curLine;this.state.lineStart=this.state.pos;return l}jsxReadString(r){let s="";let l=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(S.UnterminatedString,this.state.startLoc)}const p=this.input.charCodeAt(this.state.pos);if(p===r)break;if(p===38){s+=this.input.slice(l,this.state.pos);s+=this.jsxReadEntity();l=this.state.pos}else if(isNewLine(p)){s+=this.input.slice(l,this.state.pos);s+=this.jsxReadNewLine(false);l=this.state.pos}else{++this.state.pos}}s+=this.input.slice(l,this.state.pos++);this.finishToken(134,s)}jsxReadEntity(){const r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;if(this.codePointAtPos(this.state.pos)===120){r=16;++this.state.pos}const s=this.readInt(r,undefined,false,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59){++this.state.pos;return String.fromCodePoint(s)}}else{let s=0;let l=false;while(s++<10&&this.state.pos<this.length&&!(l=this.codePointAtPos(this.state.pos)===59)){++this.state.pos}if(l){const s=this.input.slice(r,this.state.pos);const l=ee[s];++this.state.pos;if(l){return l}}}this.state.pos=r;return"&"}jsxReadWord(){let r;const s=this.state.pos;do{r=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(r)||r===45);this.finishToken(141,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){const r=this.startNode();if(this.match(141)){r.name=this.state.value}else if(tokenIsKeyword(this.state.type)){r.name=tokenLabelName(this.state.type)}else{this.unexpected()}this.next();return this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){const r=this.state.startLoc;const s=this.jsxParseIdentifier();if(!this.eat(14))return s;const l=this.startNodeAt(r);l.namespace=s;l.name=this.jsxParseIdentifier();return this.finishNode(l,"JSXNamespacedName")}jsxParseElementName(){const r=this.state.startLoc;let s=this.jsxParseNamespacedName();if(s.type==="JSXNamespacedName"){return s}while(this.eat(16)){const l=this.startNodeAt(r);l.object=s;l.property=this.jsxParseIdentifier();s=this.finishNode(l,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:r=this.startNode();this.setContext(x.brace);this.next();r=this.jsxParseExpressionContainer(r,x.j_oTag);if(r.expression.type==="JSXEmptyExpression"){this.raise(ie.AttributeIsEmpty,r)}return r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ie.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){this.next();r.expression=this.parseExpression();this.setContext(x.j_expr);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,s){if(this.match(8)){r.expression=this.jsxParseEmptyExpression()}else{const s=this.parseExpression();r.expression=s}this.setContext(s);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){const r=this.startNode();if(this.match(5)){this.setContext(x.brace);this.next();this.expect(21);r.argument=this.parseMaybeAssignAllowIn();this.setContext(x.j_oTag);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(r,"JSXSpreadAttribute")}r.name=this.jsxParseNamespacedName();r.value=this.eat(29)?this.jsxParseAttributeValue():null;return this.finishNode(r,"JSXAttribute")}jsxParseOpeningElementAt(r){const s=this.startNodeAt(r);if(this.eat(144)){return this.finishNode(s,"JSXOpeningFragment")}s.name=this.jsxParseElementName();return this.jsxParseOpeningElementAfterName(s)}jsxParseOpeningElementAfterName(r){const s=[];while(!this.match(56)&&!this.match(144)){s.push(this.jsxParseAttribute())}r.attributes=s;r.selfClosing=this.eat(56);this.expect(144);return this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){const s=this.startNodeAt(r);if(this.eat(144)){return this.finishNode(s,"JSXClosingFragment")}s.name=this.jsxParseElementName();this.expect(144);return this.finishNode(s,"JSXClosingElement")}jsxParseElementAt(r){const s=this.startNodeAt(r);const l=[];const p=this.jsxParseOpeningElementAt(r);let d=null;if(!p.selfClosing){e:for(;;){switch(this.state.type){case 143:r=this.state.startLoc;this.next();if(this.eat(56)){d=this.jsxParseClosingElementAt(r);break e}l.push(this.jsxParseElementAt(r));break;case 142:l.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const r=this.startNode();this.setContext(x.brace);this.next();if(this.match(21)){l.push(this.jsxParseSpreadChild(r))}else{l.push(this.jsxParseExpressionContainer(r,x.j_expr))}break}default:this.unexpected()}}if(isFragment(p)&&!isFragment(d)&&d!==null){this.raise(ie.MissingClosingTagFragment,d)}else if(!isFragment(p)&&isFragment(d)){this.raise(ie.MissingClosingTagElement,d,{openingTagName:getQualifiedJSXName(p.name)})}else if(!isFragment(p)&&!isFragment(d)){if(getQualifiedJSXName(d.name)!==getQualifiedJSXName(p.name)){this.raise(ie.MissingClosingTagElement,d,{openingTagName:getQualifiedJSXName(p.name)})}}}if(isFragment(p)){s.openingFragment=p;s.closingFragment=d}else{s.openingElement=p;s.closingElement=d}s.children=l;if(this.match(47)){throw this.raise(ie.UnwrappedAdjacentJSXElements,this.state.startLoc)}return isFragment(p)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")}jsxParseElement(){const r=this.state.startLoc;this.next();return this.jsxParseElementAt(r)}setContext(r){const{context:s}=this.state;s[s.length-1]=r}parseExprAtom(r){if(this.match(143)){return this.jsxParseElement()}else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33){this.replaceToken(143);return this.jsxParseElement()}else{return super.parseExprAtom(r)}}skipSpace(){const r=this.curContext();if(!r.preserveSpace)super.skipSpace()}getTokenFromCode(r){const s=this.curContext();if(s===x.j_expr){this.jsxReadToken();return}if(s===x.j_oTag||s===x.j_cTag){if(isIdentifierStart(r)){this.jsxReadWord();return}if(r===62){++this.state.pos;this.finishToken(144);return}if((r===34||r===39)&&s===x.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos;this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){const{context:s,type:l}=this.state;if(l===56&&r===143){s.splice(-2,2,x.j_cTag);this.state.canStartJSXElement=false}else if(l===143){s.push(x.j_oTag)}else if(l===144){const l=s[s.length-1];if(l===x.j_oTag&&r===56||l===x.j_cTag){s.pop();this.state.canStartJSXElement=s[s.length-1]===x.j_expr}else{this.setContext(x.j_expr);this.state.canStartJSXElement=true}}else{this.state.canStartJSXElement=tokenComesBeforeExpression(l)}}};class TypeScriptScope extends Scope{constructor(...r){super(...r);this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...r){super(...r);this.importsStack=[]}createScope(r){this.importsStack.push(new Set);return new TypeScriptScope(r)}enter(r){if(r===1024){this.importsStack.push(new Set)}super.enter(r)}exit(){const r=super.exit();if(r===1024){this.importsStack.pop()}return r}hasImport(r,s){const l=this.importsStack.length;if(this.importsStack[l-1].has(r)){return true}if(!s&&l>1){for(let s=0;s<l-1;s++){if(this.importsStack[s].has(r))return true}}return false}declareName(r,s,l){if(s&4096){if(this.hasImport(r,true)){this.parser.raise(S.VarRedeclaration,l,{identifierName:r})}this.importsStack[this.importsStack.length-1].add(r);return}const p=this.currentScope();let d=p.tsNames.get(r)||0;if(s&1024){this.maybeExportDefined(p,r);p.tsNames.set(r,d|16);return}super.declareName(r,s,l);if(s&2){if(!(s&1)){this.checkRedeclarationInScope(p,r,s,l);this.maybeExportDefined(p,r)}d=d|1}if(s&256){d=d|2}if(s&512){d=d|4}if(s&128){d=d|8}if(d)p.tsNames.set(r,d)}isRedeclaredInScope(r,s,l){const p=r.tsNames.get(s);if((p&2)>0){if(l&256){const r=!!(l&512);const s=(p&4)>0;return r!==s}return true}if(l&128&&(p&8)>0){if(r.names.get(s)&2){return!!(l&1)}else{return false}}if(l&2&&(p&1)>0){return true}return super.isRedeclaredInScope(r,s,l)}checkLocalExport(r){const{name:s}=r;if(this.hasImport(s))return;const l=this.scopeStack.length;for(let r=l-1;r>=0;r--){const l=this.scopeStack[r];const p=l.tsNames.get(s);if((p&1)>0||(p&16)>0){return}}super.checkLocalExport(r)}}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(r){this.stacks.push(r)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function functionFlags(r,s){return(r?2:0)|(s?1:0)}class BaseParser{constructor(){this.sawUnambiguousESM=false;this.ambiguousScriptDifferentAst=false}sourceToOffsetPos(r){return r+this.startIndex}offsetToSourcePos(r){return r-this.startIndex}hasPlugin(r){if(typeof r==="string"){return this.plugins.has(r)}else{const[s,l]=r;if(!this.hasPlugin(s)){return false}const p=this.plugins.get(s);for(const r of Object.keys(l)){if((p==null?void 0:p[r])!==l[r]){return false}}return true}}getPluginOption(r,s){var l;return(l=this.plugins.get(r))==null?void 0:l[s]}}function setTrailingComments(r,s){if(r.trailingComments===undefined){r.trailingComments=s}else{r.trailingComments.unshift(...s)}}function setLeadingComments(r,s){if(r.leadingComments===undefined){r.leadingComments=s}else{r.leadingComments.unshift(...s)}}function setInnerComments(r,s){if(r.innerComments===undefined){r.innerComments=s}else{r.innerComments.unshift(...s)}}function adjustInnerComments(r,s,l){let p=null;let d=s.length;while(p===null&&d>0){p=s[--d]}if(p===null||p.start>l.start){setInnerComments(r,l.comments)}else{setTrailingComments(p,l.comments)}}class CommentsParser extends BaseParser{addComment(r){if(this.filename)r.loc.filename=this.filename;const{commentsLen:s}=this.state;if(this.comments.length!==s){this.comments.length=s}this.comments.push(r);this.state.commentsLen++}processComment(r){const{commentStack:s}=this.state;const l=s.length;if(l===0)return;let p=l-1;const d=s[p];if(d.start===r.end){d.leadingNode=r;p--}const{start:m}=r;for(;p>=0;p--){const l=s[p];const d=l.end;if(d>m){l.containingNode=r;this.finalizeComment(l);s.splice(p,1)}else{if(d===m){l.trailingNode=r}break}}}finalizeComment(r){var s;const{comments:l}=r;if(r.leadingNode!==null||r.trailingNode!==null){if(r.leadingNode!==null){setTrailingComments(r.leadingNode,l)}if(r.trailingNode!==null){setLeadingComments(r.trailingNode,l)}}else{const{containingNode:p,start:d}=r;if(this.input.charCodeAt(this.offsetToSourcePos(d)-1)===44){switch(p.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(p,p.properties,r);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(p,p.arguments,r);break;case"ImportExpression":adjustInnerComments(p,[p.source,(s=p.options)!=null?s:null],r);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(p,p.params,r);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(p,p.elements,r);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(p,p.specifiers,r);break;case"TSEnumDeclaration":{adjustInnerComments(p,p.members,r)}break;case"TSEnumBody":adjustInnerComments(p,p.members,r);break;default:{setInnerComments(p,l)}}}else{setInnerComments(p,l)}}}finalizeRemainingComments(){const{commentStack:r}=this.state;for(let s=r.length-1;s>=0;s--){this.finalizeComment(r[s])}this.state.commentStack=[]}resetPreviousNodeTrailingComments(r){const{commentStack:s}=this.state;const{length:l}=s;if(l===0)return;const p=s[l-1];if(p.leadingNode===r){p.leadingNode=null}}takeSurroundingComments(r,s,l){const{commentStack:p}=this.state;const d=p.length;if(d===0)return;let m=d-1;for(;m>=0;m--){const d=p[m];const y=d.end;const g=d.start;if(g===l){d.leadingNode=r}else if(y===s){d.trailingNode=r}else if(y<s){break}}}}class State{constructor(){this.flags=1024;this.startIndex=void 0;this.curLine=void 0;this.lineStart=void 0;this.startLoc=void 0;this.endLoc=void 0;this.errors=[];this.potentialArrowAt=-1;this.noArrowAt=[];this.noArrowParamsConversionAt=[];this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};this.labels=[];this.commentsLen=0;this.commentStack=[];this.pos=0;this.type=140;this.value=null;this.start=0;this.end=0;this.lastTokEndLoc=null;this.lastTokStartLoc=null;this.context=[x.brace];this.firstInvalidTemplateEscapePos=null;this.strictErrors=new Map;this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(r){if(r)this.flags|=1;else this.flags&=-2}init({strictMode:r,sourceType:s,startIndex:l,startLine:p,startColumn:d}){this.strict=r===false?false:r===true?true:s==="module";this.startIndex=l;this.curLine=p;this.lineStart=-d;this.startLoc=this.endLoc=new Position(p,d,l)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(r){if(r)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(r){if(r)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(r){if(r)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(r){if(r)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(r){if(r)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(r){if(r)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(r){if(r)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(r){if(r)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(r){if(r)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(r){if(r)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(r){if(r)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(r){if(r)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const r=new State;r.flags=this.flags;r.startIndex=this.startIndex;r.curLine=this.curLine;r.lineStart=this.lineStart;r.startLoc=this.startLoc;r.endLoc=this.endLoc;r.errors=this.errors.slice();r.potentialArrowAt=this.potentialArrowAt;r.noArrowAt=this.noArrowAt.slice();r.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice();r.topicContext=this.topicContext;r.labels=this.labels.slice();r.commentsLen=this.commentsLen;r.commentStack=this.commentStack.slice();r.pos=this.pos;r.type=this.type;r.value=this.value;r.start=this.start;r.end=this.end;r.lastTokEndLoc=this.lastTokEndLoc;r.lastTokStartLoc=this.lastTokStartLoc;r.context=this.context.slice();r.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos;r.strictErrors=this.strictErrors;r.tokensLength=this.tokensLength;return r}}var ae=function isDigit(r){return r>=48&&r<=57};const oe={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const le={bin:r=>r===48||r===49,oct:r=>r>=48&&r<=55,dec:r=>r>=48&&r<=57,hex:r=>r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102};function readStringContents(r,s,l,p,d,m){const y=l;const g=p;const T=d;let b="";let E=null;let S=l;const{length:_}=s;for(;;){if(l>=_){m.unterminated(y,g,T);b+=s.slice(S,l);break}const x=s.charCodeAt(l);if(isStringEnd(r,x,s,l)){b+=s.slice(S,l);break}if(x===92){b+=s.slice(S,l);const y=readEscapedChar(s,l,p,d,r==="template",m);if(y.ch===null&&!E){E={pos:l,lineStart:p,curLine:d}}else{b+=y.ch}({pos:l,lineStart:p,curLine:d}=y);S=l}else if(x===8232||x===8233){++l;++d;p=l}else if(x===10||x===13){if(r==="template"){b+=s.slice(S,l)+"\n";++l;if(x===13&&s.charCodeAt(l)===10){++l}++d;S=p=l}else{m.unterminated(y,g,T)}}else{++l}}return{pos:l,str:b,firstInvalidLoc:E,lineStart:p,curLine:d,containsInvalid:!!E}}function isStringEnd(r,s,l,p){if(r==="template"){return s===96||s===36&&l.charCodeAt(p+1)===123}return s===(r==="double"?34:39)}function readEscapedChar(r,s,l,p,d,m){const y=!d;s++;const res=r=>({pos:s,ch:r,lineStart:l,curLine:p});const g=r.charCodeAt(s++);switch(g){case 110:return res("\n");case 114:return res("\r");case 120:{let d;({code:d,pos:s}=readHexChar(r,s,l,p,2,false,y,m));return res(d===null?null:String.fromCharCode(d))}case 117:{let d;({code:d,pos:s}=readCodePoint(r,s,l,p,y,m));return res(d===null?null:String.fromCodePoint(d))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(r.charCodeAt(s)===10){++s}case 10:l=s;++p;case 8232:case 8233:return res("");case 56:case 57:if(d){return res(null)}else{m.strictNumericEscape(s-1,l,p)}default:if(g>=48&&g<=55){const y=s-1;const g=/^[0-7]+/.exec(r.slice(y,s+2));let T=g[0];let b=parseInt(T,8);if(b>255){T=T.slice(0,-1);b=parseInt(T,8)}s+=T.length-1;const E=r.charCodeAt(s);if(T!=="0"||E===56||E===57){if(d){return res(null)}else{m.strictNumericEscape(y,l,p)}}return res(String.fromCharCode(b))}return res(String.fromCharCode(g))}}function readHexChar(r,s,l,p,d,m,y,g){const T=s;let b;({n:b,pos:s}=readInt(r,s,l,p,16,d,m,false,g,!y));if(b===null){if(y){g.invalidEscapeSequence(T,l,p)}else{s=T-1}}return{code:b,pos:s}}function readInt(r,s,l,p,d,m,y,g,T,b){const E=s;const S=d===16?oe.hex:oe.decBinOct;const _=d===16?le.hex:d===10?le.dec:d===8?le.oct:le.bin;let x=false;let w=0;for(let E=0,v=m==null?Infinity:m;E<v;++E){const m=r.charCodeAt(s);let E;if(m===95&&g!=="bail"){const d=r.charCodeAt(s-1);const m=r.charCodeAt(s+1);if(!g){if(b)return{n:null,pos:s};T.numericSeparatorInEscapeSequence(s,l,p)}else if(Number.isNaN(m)||!_(m)||S.has(d)||S.has(m)){if(b)return{n:null,pos:s};T.unexpectedNumericSeparator(s,l,p)}++s;continue}if(m>=97){E=m-97+10}else if(m>=65){E=m-65+10}else if(ae(m)){E=m-48}else{E=Infinity}if(E>=d){if(E<=9&&b){return{n:null,pos:s}}else if(E<=9&&T.invalidDigit(s,l,p,d)){E=0}else if(y){E=0;x=true}else{break}}++s;w=w*d+E}if(s===E||m!=null&&s-E!==m||x){return{n:null,pos:s}}return{n:w,pos:s}}function readCodePoint(r,s,l,p,d,m){const y=r.charCodeAt(s);let g;if(y===123){++s;({code:g,pos:s}=readHexChar(r,s,l,p,r.indexOf("}",s)-s,true,d,m));++s;if(g!==null&&g>1114111){if(d){m.invalidCodePoint(s,l,p)}else{return{code:null,pos:s}}}}else{({code:g,pos:s}=readHexChar(r,s,l,p,4,false,d,m))}return{code:g,pos:s}}function buildPosition(r,s,l){return new Position(l,r-s,r)}const ce=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(r){const s=r.startIndex||0;this.type=r.type;this.value=r.value;this.start=s+r.start;this.end=s+r.end;this.loc=new SourceLocation(r.startLoc,r.endLoc)}}class Tokenizer extends CommentsParser{constructor(r,s){super();this.isLookahead=void 0;this.tokens=[];this.errorHandlers_readInt={invalidDigit:(r,s,l,p)=>{if(!(this.optionFlags&2048))return false;this.raise(S.InvalidDigit,buildPosition(r,s,l),{radix:p});return true},numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)};this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)});this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,s,l)=>{this.recordStrictModeErrors(S.StrictNumericEscape,buildPosition(r,s,l))},unterminated:(r,s,l)=>{throw this.raise(S.UnterminatedString,buildPosition(r-1,s,l))}});this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(r,s,l)=>{throw this.raise(S.UnterminatedTemplate,buildPosition(r,s,l))}});this.state=new State;this.state.init(r);this.input=s;this.length=s.length;this.comments=[];this.isLookahead=false}pushToken(r){this.tokens.length=this.state.tokensLength;this.tokens.push(r);++this.state.tokensLength}next(){this.checkKeywordEscapes();if(this.optionFlags&256){this.pushToken(new Token(this.state))}this.state.lastTokEndLoc=this.state.endLoc;this.state.lastTokStartLoc=this.state.startLoc;this.nextToken()}eat(r){if(this.match(r)){this.next();return true}else{return false}}match(r){return this.state.type===r}createLookaheadState(r){return{pos:r.pos,value:null,type:r.type,start:r.start,end:r.end,context:[this.curContext()],inType:r.inType,startLoc:r.startLoc,lastTokEndLoc:r.lastTokEndLoc,curLine:r.curLine,lineStart:r.lineStart,curPosition:r.curPosition}}lookahead(){const r=this.state;this.state=this.createLookaheadState(r);this.isLookahead=true;this.nextToken();this.isLookahead=false;const s=this.state;this.state=r;return s}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(r){se.lastIndex=r;return se.test(this.input)?se.lastIndex:r}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(r){return this.input.charCodeAt(this.nextTokenStartSince(r))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(r){ne.lastIndex=r;return ne.test(this.input)?ne.lastIndex:r}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(r){let s=this.input.charCodeAt(r);if((s&64512)===55296&&++r<this.input.length){const l=this.input.charCodeAt(r);if((l&64512)===56320){s=65536+((s&1023)<<10)+(l&1023)}}return s}setStrict(r){this.state.strict=r;if(r){this.state.strictErrors.forEach((([r,s])=>this.raise(r,s)));this.state.strictErrors.clear()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace();this.state.start=this.state.pos;if(!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(r){let s;if(!this.isLookahead)s=this.state.curPosition();const l=this.state.pos;const p=this.input.indexOf(r,l+2);if(p===-1){throw this.raise(S.UnterminatedComment,this.state.curPosition())}this.state.pos=p+r.length;re.lastIndex=l+2;while(re.test(this.input)&&re.lastIndex<=p){++this.state.curLine;this.state.lineStart=re.lastIndex}if(this.isLookahead)return;const d={type:"CommentBlock",value:this.input.slice(l+2,p),start:this.sourceToOffsetPos(l),end:this.sourceToOffsetPos(p+r.length),loc:new SourceLocation(s,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(d);return d}skipLineComment(r){const s=this.state.pos;let l;if(!this.isLookahead)l=this.state.curPosition();let p=this.input.charCodeAt(this.state.pos+=r);if(this.state.pos<this.length){while(!isNewLine(p)&&++this.state.pos<this.length){p=this.input.charCodeAt(this.state.pos)}}if(this.isLookahead)return;const d=this.state.pos;const m=this.input.slice(s+r,d);const y={type:"CommentLine",value:m,start:this.sourceToOffsetPos(s),end:this.sourceToOffsetPos(d),loc:new SourceLocation(l,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(y);return y}skipSpace(){const r=this.state.pos;const s=this.optionFlags&4096?[]:null;e:while(this.state.pos<this.length){const l=this.input.charCodeAt(this.state.pos);switch(l){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10){++this.state.pos}case 10:case 8232:case 8233:++this.state.pos;++this.state.curLine;this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const r=this.skipBlockComment("*/");if(r!==undefined){this.addComment(r);s==null||s.push(r)}break}case 47:{const r=this.skipLineComment(2);if(r!==undefined){this.addComment(r);s==null||s.push(r)}break}default:break e}break;default:if(isWhitespace(l)){++this.state.pos}else if(l===45&&!this.inModule&&this.optionFlags&8192){const l=this.state.pos;if(this.input.charCodeAt(l+1)===45&&this.input.charCodeAt(l+2)===62&&(r===0||this.state.lineStart>r)){const r=this.skipLineComment(3);if(r!==undefined){this.addComment(r);s==null||s.push(r)}}else{break e}}else if(l===60&&!this.inModule&&this.optionFlags&8192){const r=this.state.pos;if(this.input.charCodeAt(r+1)===33&&this.input.charCodeAt(r+2)===45&&this.input.charCodeAt(r+3)===45){const r=this.skipLineComment(4);if(r!==undefined){this.addComment(r);s==null||s.push(r)}}else{break e}}else{break e}}}if((s==null?void 0:s.length)>0){const l=this.state.pos;const p={start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(l),comments:s,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(p)}}finishToken(r,s){this.state.end=this.state.pos;this.state.endLoc=this.state.curPosition();const l=this.state.type;this.state.type=r;this.state.value=s;if(!this.isLookahead){this.updateContext(l)}}replaceToken(r){this.state.type=r;this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter()){return}const r=this.state.pos+1;const s=this.codePointAtPos(r);if(s>=48&&s<=57){throw this.raise(S.UnexpectedDigitAfterHash,this.state.curPosition())}if(s===123||s===91&&this.hasPlugin("recordAndTuple")){this.expectPlugin("recordAndTuple");if(this.getPluginOption("recordAndTuple","syntaxType")==="bar"){throw this.raise(s===123?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;if(s===123){this.finishToken(7)}else{this.finishToken(1)}}else if(isIdentifierStart(s)){++this.state.pos;this.finishToken(139,this.readWord1(s))}else if(s===92){++this.state.pos;this.finishToken(139,this.readWord1())}else{this.finishOp(27,1)}}readToken_dot(){const r=this.input.charCodeAt(this.state.pos+1);if(r>=48&&r<=57){this.readNumber(true);return}if(r===46&&this.input.charCodeAt(this.state.pos+2)===46){this.state.pos+=3;this.finishToken(21)}else{++this.state.pos;this.finishToken(16)}}readToken_slash(){const r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(31,2)}else{this.finishOp(56,1)}}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return false;let r=this.input.charCodeAt(this.state.pos+1);if(r!==33)return false;const s=this.state.pos;this.state.pos+=1;while(!isNewLine(r)&&++this.state.pos<this.length){r=this.input.charCodeAt(this.state.pos)}const l=this.input.slice(s+2,this.state.pos);this.finishToken(28,l);return true}readToken_mult_modulo(r){let s=r===42?55:54;let l=1;let p=this.input.charCodeAt(this.state.pos+1);if(r===42&&p===42){l++;p=this.input.charCodeAt(this.state.pos+2);s=57}if(p===61&&!this.state.inType){l++;s=r===37?33:30}this.finishOp(s,l)}readToken_pipe_amp(r){const s=this.input.charCodeAt(this.state.pos+1);if(s===r){if(this.input.charCodeAt(this.state.pos+2)===61){this.finishOp(30,3)}else{this.finishOp(r===124?41:42,2)}return}if(r===124){if(s===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&s===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(S.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&s===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(S.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(4);return}}if(s===61){this.finishOp(30,2);return}this.finishOp(r===124?43:45,1)}readToken_caret(){const r=this.input.charCodeAt(this.state.pos+1);if(r===61&&!this.state.inType){this.finishOp(32,2)}else if(r===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);const r=this.input.codePointAt(this.state.pos);if(r===94){this.unexpected()}}else{this.finishOp(44,1)}}readToken_atSign(){const r=this.input.charCodeAt(this.state.pos+1);if(r===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])){this.finishOp(38,2)}else{this.finishOp(26,1)}}readToken_plus_min(r){const s=this.input.charCodeAt(this.state.pos+1);if(s===r){this.finishOp(34,2);return}if(s===61){this.finishOp(30,2)}else{this.finishOp(53,1)}}readToken_lt(){const{pos:r}=this.state;const s=this.input.charCodeAt(r+1);if(s===60){if(this.input.charCodeAt(r+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(s===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:r}=this.state;const s=this.input.charCodeAt(r+1);if(s===62){const s=this.input.charCodeAt(r+2)===62?3:2;if(this.input.charCodeAt(r+s)===61){this.finishOp(30,s+1);return}this.finishOp(52,s);return}if(s===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(r){const s=this.input.charCodeAt(this.state.pos+1);if(s===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(r===61&&s===62){this.state.pos+=2;this.finishToken(19);return}this.finishOp(r===61?29:35,1)}readToken_question(){const r=this.input.charCodeAt(this.state.pos+1);const s=this.input.charCodeAt(this.state.pos+2);if(r===63){if(s===61){this.finishOp(30,3)}else{this.finishOp(40,2)}}else if(r===46&&!(s>=48&&s<=57)){this.state.pos+=2;this.finishToken(18)}else{++this.state.pos;this.finishToken(17)}}getTokenFromCode(r){switch(r){case 46:this.readToken_dot();return;case 40:++this.state.pos;this.finishToken(10);return;case 41:++this.state.pos;this.finishToken(11);return;case 59:++this.state.pos;this.finishToken(13);return;case 44:++this.state.pos;this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(S.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(2)}else{++this.state.pos;this.finishToken(0)}return;case 93:++this.state.pos;this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(S.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(6)}else{++this.state.pos;this.finishToken(5)}return;case 125:++this.state.pos;this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58){this.finishOp(15,2)}else{++this.state.pos;this.finishToken(14)}return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(false);return;case 34:case 39:this.readString(r);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(r);return;case 124:case 38:this.readToken_pipe_amp(r);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(r);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(r);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(isIdentifierStart(r)){this.readWord(r);return}}throw this.raise(S.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(r)})}finishOp(r,s){const l=this.input.slice(this.state.pos,this.state.pos+s);this.state.pos+=s;this.finishToken(r,l)}readRegexp(){const r=this.state.startLoc;const s=this.state.start+1;let l,p;let{pos:d}=this.state;for(;;++d){if(d>=this.length){throw this.raise(S.UnterminatedRegExp,createPositionWithColumnOffset(r,1))}const s=this.input.charCodeAt(d);if(isNewLine(s)){throw this.raise(S.UnterminatedRegExp,createPositionWithColumnOffset(r,1))}if(l){l=false}else{if(s===91){p=true}else if(s===93&&p){p=false}else if(s===47&&!p){break}l=s===92}}const m=this.input.slice(s,d);++d;let y="";const nextPos=()=>createPositionWithColumnOffset(r,d+2-s);while(d<this.length){const r=this.codePointAtPos(d);const s=String.fromCharCode(r);if(ce.has(r)){if(r===118){if(y.includes("u")){this.raise(S.IncompatibleRegExpUVFlags,nextPos())}}else if(r===117){if(y.includes("v")){this.raise(S.IncompatibleRegExpUVFlags,nextPos())}}if(y.includes(s)){this.raise(S.DuplicateRegExpFlags,nextPos())}}else if(isIdentifierChar(r)||r===92){this.raise(S.MalformedRegExpFlags,nextPos())}else{break}++d;y+=s}this.state.pos=d;this.finishToken(138,{pattern:m,flags:y})}readInt(r,s,l=false,p=true){const{n:d,pos:m}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,r,s,l,p,this.errorHandlers_readInt,false);this.state.pos=m;return d}readRadixNumber(r){const s=this.state.pos;const l=this.state.curPosition();let p=false;this.state.pos+=2;const d=this.readInt(r);if(d==null){this.raise(S.InvalidDigit,createPositionWithColumnOffset(l,2),{radix:r})}const m=this.input.charCodeAt(this.state.pos);if(m===110){++this.state.pos;p=true}else if(m===109){throw this.raise(S.InvalidDecimal,l)}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(S.NumberIdentifier,this.state.curPosition())}if(p){const r=this.input.slice(s,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,r);return}this.finishToken(135,d)}readNumber(r){const s=this.state.pos;const l=this.state.curPosition();let p=false;let d=false;let m=false;let y=false;if(!r&&this.readInt(10)===null){this.raise(S.InvalidNumber,this.state.curPosition())}const g=this.state.pos-s>=2&&this.input.charCodeAt(s)===48;if(g){const r=this.input.slice(s,this.state.pos);this.recordStrictModeErrors(S.StrictOctalLiteral,l);if(!this.state.strict){const s=r.indexOf("_");if(s>0){this.raise(S.ZeroDigitNumericSeparator,createPositionWithColumnOffset(l,s))}}y=g&&!/[89]/.test(r)}let T=this.input.charCodeAt(this.state.pos);if(T===46&&!y){++this.state.pos;this.readInt(10);p=true;T=this.input.charCodeAt(this.state.pos)}if((T===69||T===101)&&!y){T=this.input.charCodeAt(++this.state.pos);if(T===43||T===45){++this.state.pos}if(this.readInt(10)===null){this.raise(S.InvalidOrMissingExponent,l)}p=true;m=true;T=this.input.charCodeAt(this.state.pos)}if(T===110){if(p||g){this.raise(S.InvalidBigIntLiteral,l)}++this.state.pos;d=true}if(T===109){this.expectPlugin("decimal",this.state.curPosition());if(m||g){this.raise(S.InvalidDecimal,l)}++this.state.pos;var b=true}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(S.NumberIdentifier,this.state.curPosition())}const E=this.input.slice(s,this.state.pos).replace(/[_mn]/g,"");if(d){this.finishToken(136,E);return}if(b){this.finishToken(137,E);return}const _=y?parseInt(E,8):parseFloat(E);this.finishToken(135,_)}readCodePoint(r){const{code:s,pos:l}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,r,this.errorHandlers_readCodePoint);this.state.pos=l;return s}readString(r){const{str:s,pos:l,curLine:p,lineStart:d}=readStringContents(r===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=l+1;this.state.lineStart=d;this.state.curLine=p;this.finishToken(134,s)}readTemplateContinuation(){if(!this.match(8)){this.unexpected(null,8)}this.state.pos--;this.readTemplateToken()}readTemplateToken(){const r=this.input[this.state.pos];const{str:s,firstInvalidLoc:l,pos:p,curLine:d,lineStart:m}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=p+1;this.state.lineStart=m;this.state.curLine=d;if(l){this.state.firstInvalidTemplateEscapePos=new Position(l.curLine,l.pos-l.lineStart,this.sourceToOffsetPos(l.pos))}if(this.input.codePointAt(p)===96){this.finishToken(24,l?null:r+s+"`")}else{this.state.pos++;this.finishToken(25,l?null:r+s+"${")}}recordStrictModeErrors(r,s){const l=s.index;if(this.state.strict&&!this.state.strictErrors.has(l)){this.raise(r,s)}else{this.state.strictErrors.set(l,[r,s])}}readWord1(r){this.state.containsEsc=false;let s="";const l=this.state.pos;let p=this.state.pos;if(r!==undefined){this.state.pos+=r<=65535?1:2}while(this.state.pos<this.length){const r=this.codePointAtPos(this.state.pos);if(isIdentifierChar(r)){this.state.pos+=r<=65535?1:2}else if(r===92){this.state.containsEsc=true;s+=this.input.slice(p,this.state.pos);const r=this.state.curPosition();const d=this.state.pos===l?isIdentifierStart:isIdentifierChar;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(S.MissingUnicodeEscape,this.state.curPosition());p=this.state.pos-1;continue}++this.state.pos;const m=this.readCodePoint(true);if(m!==null){if(!d(m)){this.raise(S.EscapedCharNotAnIdentifier,r)}s+=String.fromCodePoint(m)}p=this.state.pos}else{break}}return s+this.input.slice(p,this.state.pos)}readWord(r){const s=this.readWord1(r);const l=I.get(s);if(l!==undefined){this.finishToken(l,tokenLabelName(l))}else{this.finishToken(132,s)}}checkKeywordEscapes(){const{type:r}=this.state;if(tokenIsKeyword(r)&&this.state.containsEsc){this.raise(S.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(r)})}}raise(r,s,l={}){const p=s instanceof Position?s:s.loc.start;const d=r(p,l);if(!(this.optionFlags&2048))throw d;if(!this.isLookahead)this.state.errors.push(d);return d}raiseOverwrite(r,s,l={}){const p=s instanceof Position?s:s.loc.start;const d=p.index;const m=this.state.errors;for(let s=m.length-1;s>=0;s--){const y=m[s];if(y.loc.index===d){return m[s]=r(p,l)}if(y.loc.index<d)break}return this.raise(r,s,l)}updateContext(r){}unexpected(r,s){throw this.raise(S.UnexpectedToken,r!=null?r:this.state.startLoc,{expected:s?tokenLabelName(s):null})}expectPlugin(r,s){if(this.hasPlugin(r)){return true}throw this.raise(S.MissingPlugin,s!=null?s:this.state.startLoc,{missingPlugin:[r]})}expectOnePlugin(r){if(!r.some((r=>this.hasPlugin(r)))){throw this.raise(S.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:r})}}errorBuilder(r){return(s,l,p)=>{this.raise(r,buildPosition(s,l,p))}}}class ClassScope{constructor(){this.privateNames=new Set;this.loneAccessors=new Map;this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(r){this.parser=void 0;this.stack=[];this.undefinedPrivateNames=new Map;this.parser=r}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const r=this.stack.pop();const s=this.current();for(const[l,p]of Array.from(r.undefinedPrivateNames)){if(s){if(!s.undefinedPrivateNames.has(l)){s.undefinedPrivateNames.set(l,p)}}else{this.parser.raise(S.InvalidPrivateFieldResolution,p,{identifierName:l})}}}declarePrivateName(r,s,l){const{privateNames:p,loneAccessors:d,undefinedPrivateNames:m}=this.current();let y=p.has(r);if(s&3){const l=y&&d.get(r);if(l){const p=l&4;const m=s&4;const g=l&3;const T=s&3;y=g===T||p!==m;if(!y)d.delete(r)}else if(!y){d.set(r,s)}}if(y){this.parser.raise(S.PrivateNameRedeclaration,l,{identifierName:r})}p.add(r);m.delete(r)}usePrivateName(r,s){let l;for(l of this.stack){if(l.privateNames.has(r))return}if(l){l.undefinedPrivateNames.set(r,s)}else{this.parser.raise(S.InvalidPrivateFieldResolution,s,{identifierName:r})}}}class ExpressionScope{constructor(r=0){this.type=r}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class ArrowHeadParsingScope extends ExpressionScope{constructor(r){super(r);this.declarationErrors=new Map}recordDeclarationError(r,s){const l=s.index;this.declarationErrors.set(l,[r,s])}clearDeclarationError(r){this.declarationErrors.delete(r)}iterateErrors(r){this.declarationErrors.forEach(r)}}class ExpressionScopeHandler{constructor(r){this.parser=void 0;this.stack=[new ExpressionScope];this.parser=r}enter(r){this.stack.push(r)}exit(){this.stack.pop()}recordParameterInitializerError(r,s){const l=s.loc.start;const{stack:p}=this;let d=p.length-1;let m=p[d];while(!m.isCertainlyParameterDeclaration()){if(m.canBeArrowParameterDeclaration()){m.recordDeclarationError(r,l)}else{return}m=p[--d]}this.parser.raise(r,l)}recordArrowParameterBindingError(r,s){const{stack:l}=this;const p=l[l.length-1];const d=s.loc.start;if(p.isCertainlyParameterDeclaration()){this.parser.raise(r,d)}else if(p.canBeArrowParameterDeclaration()){p.recordDeclarationError(r,d)}else{return}}recordAsyncArrowParametersError(r){const{stack:s}=this;let l=s.length-1;let p=s[l];while(p.canBeArrowParameterDeclaration()){if(p.type===2){p.recordDeclarationError(S.AwaitBindingIdentifier,r)}p=s[--l]}}validateAsPattern(){const{stack:r}=this;const s=r[r.length-1];if(!s.canBeArrowParameterDeclaration())return;s.iterateErrors((([s,l])=>{this.parser.raise(s,l);let p=r.length-2;let d=r[p];while(d.canBeArrowParameterDeclaration()){d.clearDeclarationError(l.index);d=r[--p]}}))}}function newParameterDeclarationScope(){return new ExpressionScope(3)}function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}function newExpressionScope(){return new ExpressionScope}class UtilParser extends Tokenizer{addExtra(r,s,l,p=true){if(!r)return;let{extra:d}=r;if(d==null){d={};r.extra=d}if(p){d[s]=l}else{Object.defineProperty(d,s,{enumerable:p,value:l})}}isContextual(r){return this.state.type===r&&!this.state.containsEsc}isUnparsedContextual(r,s){if(this.input.startsWith(s,r)){const l=this.input.charCodeAt(r+s.length);return!(isIdentifierChar(l)||(l&64512)===55296)}return false}isLookaheadContextual(r){const s=this.nextTokenStart();return this.isUnparsedContextual(s,r)}eatContextual(r){if(this.isContextual(r)){this.next();return true}return false}expectContextual(r,s){if(!this.eatContextual(r)){if(s!=null){throw this.raise(s,this.state.startLoc)}this.unexpected(null,r)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(r=true){if(r?this.isLineTerminator():this.eat(13))return;this.raise(S.MissingSemicolon,this.state.lastTokEndLoc)}expect(r,s){if(!this.eat(r)){this.unexpected(s,r)}}tryParse(r,s=this.state.clone()){const l={node:null};try{const p=r(((r=null)=>{l.node=r;throw l}));if(this.state.errors.length>s.errors.length){const r=this.state;this.state=s;this.state.tokensLength=r.tokensLength;return{node:p,error:r.errors[s.errors.length],thrown:false,aborted:false,failState:r}}return{node:p,error:null,thrown:false,aborted:false,failState:null}}catch(r){const p=this.state;this.state=s;if(r instanceof SyntaxError){return{node:null,error:r,thrown:true,aborted:false,failState:p}}if(r===l){return{node:l.node,error:null,thrown:false,aborted:true,failState:p}}throw r}}checkExpressionErrors(r,s){if(!r)return false;const{shorthandAssignLoc:l,doubleProtoLoc:p,privateKeyLoc:d,optionalParametersLoc:m,voidPatternLoc:y}=r;const g=!!l||!!p||!!m||!!d||!!y;if(!s){return g}if(l!=null){this.raise(S.InvalidCoverInitializedName,l)}if(p!=null){this.raise(S.DuplicateProto,p)}if(d!=null){this.raise(S.UnexpectedPrivateField,d)}if(m!=null){this.unexpected(m)}if(y!=null){this.raise(S.InvalidCoverDiscardElement,y)}}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(r){return r.type==="PrivateName"}getPrivateNameSV(r){return r.id.name}hasPropertyAsPrivateName(r){return(r.type==="MemberExpression"||r.type==="OptionalMemberExpression")&&this.isPrivateName(r.property)}isObjectProperty(r){return r.type==="ObjectProperty"}isObjectMethod(r){return r.type==="ObjectMethod"}initializeScopes(r=this.options.sourceType==="module"){const s=this.state.labels;this.state.labels=[];const l=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const p=this.inModule;this.inModule=r;const d=this.scope;const m=this.getScopeHandler();this.scope=new m(this,r);const y=this.prodParam;this.prodParam=new ProductionParameterHandler;const g=this.classScope;this.classScope=new ClassScopeHandler(this);const T=this.expressionScope;this.expressionScope=new ExpressionScopeHandler(this);return()=>{this.state.labels=s;this.exportedIdentifiers=l;this.inModule=p;this.scope=d;this.prodParam=y;this.classScope=g;this.expressionScope=T}}enterInitialScopes(){let r=0;if(this.inModule||this.optionFlags&1){r|=2}if(this.optionFlags&32){r|=1}const s=!this.inModule&&this.options.sourceType==="commonjs";if(s||this.optionFlags&2){r|=4}this.prodParam.enter(r);let l=s?514:1;if(this.optionFlags&4){l|=512}this.scope.enter(l)}checkDestructuringPrivate(r){const{privateKeyLoc:s}=r;if(s!==null){this.expectPlugin("destructuringPrivate",s)}}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null;this.doubleProtoLoc=null;this.privateKeyLoc=null;this.optionalParametersLoc=null;this.voidPatternLoc=null}}class Node{constructor(r,s,l){this.type="";this.start=s;this.end=0;this.loc=new SourceLocation(l);if((r==null?void 0:r.optionFlags)&128)this.range=[s,0];if(r!=null&&r.filename)this.loc.filename=r.filename}}const ue=Node.prototype;{ue.__clone=function(){const r=new Node(undefined,this.start,this.loc.start);const s=Object.keys(this);for(let l=0,p=s.length;l<p;l++){const p=s[l];if(p!=="leadingComments"&&p!=="trailingComments"&&p!=="innerComments"){r[p]=this[p]}}return r}}class NodeUtils extends UtilParser{startNode(){const r=this.state.startLoc;return new Node(this,r.index,r)}startNodeAt(r){return new Node(this,r.index,r)}startNodeAtNode(r){return this.startNodeAt(r.loc.start)}finishNode(r,s){return this.finishNodeAt(r,s,this.state.lastTokEndLoc)}finishNodeAt(r,s,l){r.type=s;r.end=l.index;r.loc.end=l;if(this.optionFlags&128)r.range[1]=l.index;if(this.optionFlags&4096){this.processComment(r)}return r}resetStartLocation(r,s){r.start=s.index;r.loc.start=s;if(this.optionFlags&128)r.range[0]=s.index}resetEndLocation(r,s=this.state.lastTokEndLoc){r.end=s.index;r.loc.end=s;if(this.optionFlags&128)r.range[1]=s.index}resetStartLocationFromNode(r,s){this.resetStartLocation(r,s.loc.start)}castNodeTo(r,s){r.type=s;return r}cloneIdentifier(r){const{type:s,start:l,end:p,loc:d,range:m,name:y}=r;const g=Object.create(ue);g.type=s;g.start=l;g.end=p;g.loc=d;g.range=m;g.name=y;if(r.extra)g.extra=r.extra;return g}cloneStringLiteral(r){const{type:s,start:l,end:p,loc:d,range:m,extra:y}=r;const g=Object.create(ue);g.type=s;g.start=l;g.end=p;g.loc=d;g.range=m;g.extra=y;g.value=r.value;return g}}const unwrapParenthesizedExpression=r=>r.type==="ParenthesizedExpression"?unwrapParenthesizedExpression(r.expression):r;class LValParser extends NodeUtils{toAssignable(r,s=false){var l,p;let d=undefined;if(r.type==="ParenthesizedExpression"||(l=r.extra)!=null&&l.parenthesized){d=unwrapParenthesizedExpression(r);if(s){if(d.type==="Identifier"){this.expressionScope.recordArrowParameterBindingError(S.InvalidParenthesizedAssignment,r)}else if(d.type!=="MemberExpression"&&!this.isOptionalMemberExpression(d)){this.raise(S.InvalidParenthesizedAssignment,r)}}else{this.raise(S.InvalidParenthesizedAssignment,r)}}switch(r.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(r,"ObjectPattern");for(let l=0,p=r.properties.length,d=p-1;l<p;l++){var m;const p=r.properties[l];const y=l===d;this.toAssignableObjectExpressionProp(p,y,s);if(y&&p.type==="RestElement"&&(m=r.extra)!=null&&m.trailingCommaLoc){this.raise(S.RestTrailingComma,r.extra.trailingCommaLoc)}}break;case"ObjectProperty":{const{key:l,value:p}=r;if(this.isPrivateName(l)){this.classScope.usePrivateName(this.getPrivateNameSV(l),l.loc.start)}this.toAssignable(p,s);break}case"SpreadElement":{throw new Error("Internal @babel/parser error (this is a bug, please report it)."+" SpreadElement should be converted by .toAssignable's caller.")}case"ArrayExpression":this.castNodeTo(r,"ArrayPattern");this.toAssignableList(r.elements,(p=r.extra)==null?void 0:p.trailingCommaLoc,s);break;case"AssignmentExpression":if(r.operator!=="="){this.raise(S.MissingEqInAssignment,r.left.loc.end)}this.castNodeTo(r,"AssignmentPattern");delete r.operator;if(r.left.type==="VoidPattern"){this.raise(S.VoidPatternInitializer,r.left)}this.toAssignable(r.left,s);break;case"ParenthesizedExpression":this.toAssignable(d,s);break}}toAssignableObjectExpressionProp(r,s,l){if(r.type==="ObjectMethod"){this.raise(r.kind==="get"||r.kind==="set"?S.PatternHasAccessor:S.PatternHasMethod,r.key)}else if(r.type==="SpreadElement"){this.castNodeTo(r,"RestElement");const p=r.argument;this.checkToRestConversion(p,false);this.toAssignable(p,l);if(!s){this.raise(S.RestTrailingComma,r)}}else{this.toAssignable(r,l)}}toAssignableList(r,s,l){const p=r.length-1;for(let d=0;d<=p;d++){const m=r[d];if(!m)continue;this.toAssignableListItem(r,d,l);if(m.type==="RestElement"){if(d<p){this.raise(S.RestTrailingComma,m)}else if(s){this.raise(S.RestTrailingComma,s)}}}}toAssignableListItem(r,s,l){const p=r[s];if(p.type==="SpreadElement"){this.castNodeTo(p,"RestElement");const r=p.argument;this.checkToRestConversion(r,true);this.toAssignable(r,l)}else{this.toAssignable(p,l)}}isAssignable(r,s){switch(r.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return true;case"ObjectExpression":{const s=r.properties.length-1;return r.properties.every(((r,l)=>r.type!=="ObjectMethod"&&(l===s||r.type!=="SpreadElement")&&this.isAssignable(r)))}case"ObjectProperty":return this.isAssignable(r.value);case"SpreadElement":return this.isAssignable(r.argument);case"ArrayExpression":return r.elements.every((r=>r===null||this.isAssignable(r)));case"AssignmentExpression":return r.operator==="=";case"ParenthesizedExpression":return this.isAssignable(r.expression);case"MemberExpression":case"OptionalMemberExpression":return!s;default:return false}}toReferencedList(r,s){return r}toReferencedListDeep(r,s){this.toReferencedList(r,s);for(const s of r){if((s==null?void 0:s.type)==="ArrayExpression"){this.toReferencedListDeep(s.elements)}}}parseSpread(r){const s=this.startNode();this.next();s.argument=this.parseMaybeAssignAllowIn(r,undefined);return this.finishNode(s,"SpreadElement")}parseRestBinding(){const r=this.startNode();this.next();const s=this.parseBindingAtom();if(s.type==="VoidPattern"){this.raise(S.UnexpectedVoidPattern,s)}r.argument=s;return this.finishNode(r,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const r=this.startNode();this.next();r.elements=this.parseBindingList(3,93,1);return this.finishNode(r,"ArrayPattern")}case 5:return this.parseObjectLike(8,true);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(r,s,l){const p=l&1;const d=[];let m=true;while(!this.eat(r)){if(m){m=false}else{this.expect(12)}if(p&&this.match(12)){d.push(null)}else if(this.eat(r)){break}else if(this.match(21)){let p=this.parseRestBinding();if(this.hasPlugin("flow")||l&2){p=this.parseFunctionParamType(p)}d.push(p);if(!this.checkCommaAfterRest(s)){this.expect(r);break}}else{const r=[];if(l&2){if(this.match(26)&&this.hasPlugin("decorators")){this.raise(S.UnsupportedParameterDecorator,this.state.startLoc)}while(this.match(26)){r.push(this.parseDecorator())}}d.push(this.parseBindingElement(l,r))}}return d}parseBindingRestProperty(r){this.next();if(this.hasPlugin("discardBinding")&&this.match(88)){r.argument=this.parseVoidPattern(null);this.raise(S.UnexpectedVoidPattern,r.argument)}else{r.argument=this.parseIdentifier()}this.checkCommaAfterRest(125);return this.finishNode(r,"RestElement")}parseBindingProperty(){const{type:r,startLoc:s}=this.state;if(r===21){return this.parseBindingRestProperty(this.startNode())}const l=this.startNode();if(r===139){this.expectPlugin("destructuringPrivate",s);this.classScope.usePrivateName(this.state.value,s);l.key=this.parsePrivateName()}else{this.parsePropertyName(l)}l.method=false;return this.parseObjPropValue(l,s,false,false,true,false)}parseBindingElement(r,s){const l=this.parseMaybeDefault();if(this.hasPlugin("flow")||r&2){this.parseFunctionParamType(l)}if(s.length){l.decorators=s;this.resetStartLocationFromNode(l,s[0])}const p=this.parseMaybeDefault(l.loc.start,l);return p}parseFunctionParamType(r){return r}parseMaybeDefault(r,s){r!=null?r:r=this.state.startLoc;s=s!=null?s:this.parseBindingAtom();if(!this.eat(29))return s;const l=this.startNodeAt(r);if(s.type==="VoidPattern"){this.raise(S.VoidPatternInitializer,s)}l.left=s;l.right=this.parseMaybeAssignAllowIn();return this.finishNode(l,"AssignmentPattern")}isValidLVal(r,s,l){switch(r){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 true}return false}isOptionalMemberExpression(r){return r.type==="OptionalMemberExpression"}checkLVal(r,s,l=64,p=false,d=false,m=false){var y;const g=r.type;if(this.isObjectMethod(r))return;const T=this.isOptionalMemberExpression(r);if(T||g==="MemberExpression"){if(T){this.expectPlugin("optionalChainingAssign",r.loc.start);if(s.type!=="AssignmentExpression"){this.raise(S.InvalidLhsOptionalChaining,r,{ancestor:s})}}if(l!==64){this.raise(S.InvalidPropertyBindingPattern,r)}return}if(g==="Identifier"){this.checkIdentifier(r,l,d);const{name:s}=r;if(p){if(p.has(s)){this.raise(S.ParamDupe,r)}else{p.add(s)}}return}else if(g==="VoidPattern"&&s.type==="CatchClause"){this.raise(S.VoidPatternCatchClauseParam,r)}const b=this.isValidLVal(g,!(m||(y=r.extra)!=null&&y.parenthesized)&&s.type==="AssignmentExpression",l);if(b===true)return;if(b===false){const p=l===64?S.InvalidLhs:S.InvalidLhsBinding;this.raise(p,r,{ancestor:s});return}let E,_;if(typeof b==="string"){E=b;_=g==="ParenthesizedExpression"}else{[E,_]=b}const x=g==="ArrayPattern"||g==="ObjectPattern"?{type:g}:s;const w=r[E];if(Array.isArray(w)){for(const r of w){if(r){this.checkLVal(r,x,l,p,d,_)}}}else if(w){this.checkLVal(w,x,l,p,d,_)}}checkIdentifier(r,s,l=false){if(this.state.strict&&(l?isStrictBindReservedWord(r.name,this.inModule):isStrictBindOnlyReservedWord(r.name))){if(s===64){this.raise(S.StrictEvalArguments,r,{referenceName:r.name})}else{this.raise(S.StrictEvalArgumentsBinding,r,{bindingName:r.name})}}if(s&8192&&r.name==="let"){this.raise(S.LetInLexicalBinding,r)}if(!(s&64)){this.declareNameFromIdentifier(r,s)}}declareNameFromIdentifier(r,s){this.scope.declareName(r.name,s,r.loc.start)}checkToRestConversion(r,s){switch(r.type){case"ParenthesizedExpression":this.checkToRestConversion(r.expression,s);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(s)break;default:this.raise(S.InvalidRestAssignmentPattern,r)}}checkCommaAfterRest(r){if(!this.match(12)){return false}this.raise(this.lookaheadCharCode()===r?S.RestTrailingComma:S.ElementAfterRest,this.state.startLoc);return true}}function nonNull(r){if(r==null){throw new Error(`Unexpected ${r} value.`)}return r}function assert(r){if(!r){throw new Error("Assert fail")}}const pe=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:r})=>`Method '${r}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:r})=>`Property '${r}' 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.",DeclareAccessor:({kind:r})=>`'declare' is not allowed in ${r}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:r})=>`Accessibility modifier already seen: '${r}'.`,DuplicateModifier:({modifier:r})=>`Duplicate modifier: '${r}'.`,EmptyHeritageClauseType:({token:r})=>`'${r}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:r})=>`'${r[0]}' modifier cannot be used with '${r[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:r})=>`Index signatures cannot have an accessibility modifier ('${r}').`,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.",InvalidHeritageClauseType:({token:r})=>`'${r}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:r=>`'${r}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:r})=>`'${r}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:r})=>`'${r}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:r})=>`'${r}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:r=>`'${r}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:r})=>`'${r[0]}' modifier must precede '${r[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. "+"You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",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:r})=>`Private elements cannot have an accessibility modifier ('${r}').`,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:r})=>`Single type parameter ${r} should have a trailing comma. Example usage: <${r},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:r})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${r}.`,UsingDeclarationInAmbientContext:r=>`'${r}' declarations are not allowed in ambient contexts.`});function keywordTypeFromName(r){switch(r){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 undefined}}function tsIsAccessModifier(r){return r==="private"||r==="public"||r==="protected"}function tsIsVarianceAnnotations(r){return r==="in"||r==="out"}var typescript=r=>class TypeScriptParserMixin extends r{constructor(...r){super(...r);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:pe.InvalidModifierOnTypeParameter});this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:pe.InvalidModifierOnTypeParameterPositions});this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:pe.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){this.next();if(this.hasPrecedingLineBreak()){return false}return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106)){this.next();return this.tsTokenCanFollowModifier()}return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,s,l){if(!tokenIsIdentifier(this.state.type)&&this.state.type!==58&&this.state.type!==75){return undefined}const p=this.state.value;if(r.includes(p)){if(l&&this.match(106)){return undefined}if(s&&this.tsIsStartOfStaticBlocks()){return undefined}if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))){return p}}return undefined}tsParseModifiers({allowedModifiers:r,disallowedModifiers:s,stopOnStartOfClassStaticBlock:l,errorTemplate:p=pe.InvalidModifierOnTypeMember},d){const enforceOrder=(r,s,l,p)=>{if(s===l&&d[p]){this.raise(pe.InvalidModifiersOrder,r,{orderedModifiers:[l,p]})}};const incompatible=(r,s,l,p)=>{if(d[l]&&s===p||d[p]&&s===l){this.raise(pe.IncompatibleModifiers,r,{modifiers:[l,p]})}};for(;;){const{startLoc:m}=this.state;const y=this.tsParseModifier(r.concat(s!=null?s:[]),l,d.static);if(!y)break;if(tsIsAccessModifier(y)){if(d.accessibility){this.raise(pe.DuplicateAccessibilityModifier,m,{modifier:y})}else{enforceOrder(m,y,y,"override");enforceOrder(m,y,y,"static");enforceOrder(m,y,y,"readonly");d.accessibility=y}}else if(tsIsVarianceAnnotations(y)){if(d[y]){this.raise(pe.DuplicateModifier,m,{modifier:y})}d[y]=true;enforceOrder(m,y,"in","out")}else{if(hasOwnProperty.call(d,y)){this.raise(pe.DuplicateModifier,m,{modifier:y})}else{enforceOrder(m,y,"static","readonly");enforceOrder(m,y,"static","override");enforceOrder(m,y,"override","readonly");enforceOrder(m,y,"abstract","override");incompatible(m,y,"declare","override");incompatible(m,y,"static","abstract")}d[y]=true}if(s!=null&&s.includes(y)){this.raise(p,m,{modifier:y})}}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,s){const l=[];while(!this.tsIsListTerminator(r)){l.push(s())}return l}tsParseDelimitedList(r,s,l){return nonNull(this.tsParseDelimitedListWorker(r,s,true,l))}tsParseDelimitedListWorker(r,s,l,p){const d=[];let m=-1;for(;;){if(this.tsIsListTerminator(r)){break}m=-1;const p=s();if(p==null){return undefined}d.push(p);if(this.eat(12)){m=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r)){break}if(l){this.expect(12)}return undefined}if(p){p.value=m}return d}tsParseBracketedList(r,s,l,p,d){if(!p){if(l){this.expect(0)}else{this.expect(47)}}const m=this.tsParseDelimitedList(r,s,d);if(l){this.expect(3)}else{this.expect(48)}return m}tsParseImportType(){const r=this.startNode();this.expect(83);this.expect(10);if(!this.match(134)){this.raise(pe.UnsupportedImportTypeArgument,this.state.startLoc);{r.argument=super.parseExprAtom()}}else{{r.argument=this.parseStringLiteral(this.state.value)}}if(this.eat(12)){r.options=this.tsParseImportTypeOptions()}else{r.options=null}this.expect(11);if(this.eat(16)){r.qualifier=this.tsParseEntityName(1|2)}if(this.match(47)){{r.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){const r=this.startNode();this.expect(5);const s=this.startNode();if(this.isContextual(76)){s.method=false;s.key=this.parseIdentifier(true);s.computed=false;s.shorthand=false}else{this.unexpected(null,76)}this.expect(14);s.value=this.tsParseImportTypeWithPropertyValue();r.properties=[this.finishObjectProperty(s)];this.eat(12);this.expect(8);return this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const r=this.startNode();const s=[];this.expect(5);while(!this.match(8)){const r=this.state.type;if(tokenIsIdentifier(r)||r===134){s.push(super.parsePropertyDefinition(null))}else{this.unexpected()}this.eat(12)}r.properties=s;this.next();return this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let s;if(r&1&&this.match(78)){if(r&2){s=this.parseIdentifier(true)}else{const r=this.startNode();this.next();s=this.finishNode(r,"ThisExpression")}}else{s=this.parseIdentifier(!!(r&1))}while(this.eat(16)){const l=this.startNodeAtNode(s);l.left=s;l.right=this.parseIdentifier(!!(r&1));s=this.finishNode(l,"TSQualifiedName")}return s}tsParseTypeReference(){const r=this.startNode();r.typeName=this.tsParseEntityName(1);if(!this.hasPrecedingLineBreak()&&this.match(47)){{r.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();const s=this.startNodeAtNode(r);s.parameterName=r;s.typeAnnotation=this.tsParseTypeAnnotation(false);s.asserts=false;return this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){const r=this.startNode();this.next();return this.finishNode(r,"TSThisType")}tsParseTypeQuery(){const r=this.startNode();this.expect(87);if(this.match(83)){r.exprName=this.tsParseImportType()}else{{r.exprName=this.tsParseEntityName(1|2)}}if(!this.hasPrecedingLineBreak()&&this.match(47)){{r.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){const s=this.startNode();r(s);s.name=this.tsParseTypeParameterName();s.constraint=this.tsEatThenParseType(81);s.default=this.tsEatThenParseType(29);return this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47)){return this.tsParseTypeParameters(r)}}tsParseTypeParameters(r){const s=this.startNode();if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}const l={value:-1};s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),false,true,l);if(s.params.length===0){this.raise(pe.EmptyTypeParameters,s)}if(l.value!==-1){this.addExtra(s,"trailingComma",l.value)}return this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(r,s){const l=r===19;const p="parameters";const d="typeAnnotation";s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier);this.expect(10);s[p]=this.tsParseBindingListForSignature();if(l){s[d]=this.tsParseTypeOrTypePredicateAnnotation(r)}else if(this.match(r)){s[d]=this.tsParseTypeOrTypePredicateAnnotation(r)}}tsParseBindingListForSignature(){const r=super.parseBindingList(11,41,2);for(const s of r){const{type:r}=s;if(r==="AssignmentPattern"||r==="TSParameterProperty"){this.raise(pe.UnsupportedSignatureParameterKind,s,{type:r})}}return r}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator()){this.expect(13)}}tsParseSignatureMember(r,s){this.tsFillSignature(14,s);this.tsParseTypeMemberSemicolon();return this.finishNode(s,r)}tsIsUnambiguouslyIndexSignature(){this.next();if(tokenIsIdentifier(this.state.type)){this.next();return this.match(14)}return false}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))){return}this.expect(0);const s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation();this.resetEndLocation(s);this.expect(3);r.parameters=[s];const l=this.tsTryParseTypeAnnotation();if(l)r.typeAnnotation=l;this.tsParseTypeMemberSemicolon();return this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,s){if(this.eat(17))r.optional=true;if(this.match(10)||this.match(47)){if(s){this.raise(pe.ReadonlyForMethodSignature,r)}const l=r;if(l.kind&&this.match(47)){this.raise(pe.AccessorCannotHaveTypeParameters,this.state.curPosition())}this.tsFillSignature(14,l);this.tsParseTypeMemberSemicolon();const p="parameters";const d="typeAnnotation";if(l.kind==="get"){if(l[p].length>0){this.raise(S.BadGetterArity,this.state.curPosition());if(this.isThisParam(l[p][0])){this.raise(pe.AccessorCannotDeclareThisParameter,this.state.curPosition())}}}else if(l.kind==="set"){if(l[p].length!==1){this.raise(S.BadSetterArity,this.state.curPosition())}else{const r=l[p][0];if(this.isThisParam(r)){this.raise(pe.AccessorCannotDeclareThisParameter,this.state.curPosition())}if(r.type==="Identifier"&&r.optional){this.raise(pe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition())}if(r.type==="RestElement"){this.raise(pe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}}if(l[d]){this.raise(pe.SetAccessorCannotHaveReturnType,l[d])}}else{l.kind="method"}return this.finishNode(l,"TSMethodSignature")}else{const l=r;if(s)l.readonly=true;const p=this.tsTryParseTypeAnnotation();if(p)l.typeAnnotation=p;this.tsParseTypeMemberSemicolon();return this.finishNode(l,"TSPropertySignature")}}tsParseTypeMember(){const r=this.startNode();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSCallSignatureDeclaration",r)}if(this.match(77)){const s=this.startNode();this.next();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSConstructSignatureDeclaration",r)}else{r.key=this.createIdentifier(s,"new");return this.tsParsePropertyOrMethodSignature(r,false)}}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);const s=this.tsTryParseIndexSignature(r);if(s){return s}super.parsePropertyName(r);if(!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()){r.kind=r.key.name;super.parsePropertyName(r);if(!this.match(10)&&!this.match(47)){this.unexpected(null,10)}}return this.tsParsePropertyOrMethodSignature(r,!!r.readonly)}tsParseTypeLiteral(){const r=this.startNode();r.members=this.tsParseObjectTypeMembers();return this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));this.expect(8);return r}tsIsStartOfMappedType(){this.next();if(this.eat(53)){return this.isContextual(122)}if(this.isContextual(122)){this.next()}if(!this.match(0)){return false}this.next();if(!this.tsIsIdentifier()){return false}this.next();return this.match(58)}tsParseMappedType(){const r=this.startNode();this.expect(5);if(this.match(53)){r.readonly=this.state.value;this.next();this.expectContextual(122)}else if(this.eatContextual(122)){r.readonly=true}this.expect(0);{const s=this.startNode();s.name=this.tsParseTypeParameterName();s.constraint=this.tsExpectThenParseType(58);r.typeParameter=this.finishNode(s,"TSTypeParameter")}r.nameType=this.eatContextual(93)?this.tsParseType():null;this.expect(3);if(this.match(53)){r.optional=this.state.value;this.next();this.expect(17)}else if(this.eat(17)){r.optional=true}r.typeAnnotation=this.tsTryParseType();this.semicolon();this.expect(8);return this.finishNode(r,"TSMappedType")}tsParseTupleType(){const r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),true,false);let s=false;r.elementTypes.forEach((r=>{const{type:l}=r;if(s&&l!=="TSRestType"&&l!=="TSOptionalType"&&!(l==="TSNamedTupleMember"&&r.optional)){this.raise(pe.OptionalTypeBeforeRequired,r)}s||(s=l==="TSNamedTupleMember"&&r.optional||l==="TSOptionalType")}));return this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){const r=this.state.startLoc;const s=this.eat(21);const{startLoc:l}=this.state;let p;let d;let m;let y;const g=tokenIsKeywordOrIdentifier(this.state.type);const T=g?this.lookaheadCharCode():null;if(T===58){p=true;m=false;d=this.parseIdentifier(true);this.expect(14);y=this.tsParseType()}else if(T===63){m=true;const r=this.state.value;const s=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58){p=true;d=this.createIdentifier(this.startNodeAt(l),r);this.expect(17);this.expect(14);y=this.tsParseType()}else{p=false;y=s;this.expect(17)}}else{y=this.tsParseType();m=this.eat(17);p=this.eat(14)}if(p){let r;if(d){r=this.startNodeAt(l);r.optional=m;r.label=d;r.elementType=y;if(this.eat(17)){r.optional=true;this.raise(pe.TupleOptionalAfterType,this.state.lastTokStartLoc)}}else{r=this.startNodeAt(l);r.optional=m;this.raise(pe.InvalidTupleMemberLabel,y);r.label=y;r.elementType=this.tsParseType()}y=this.finishNode(r,"TSNamedTupleMember")}else if(m){const r=this.startNodeAt(l);r.typeAnnotation=y;y=this.finishNode(r,"TSOptionalType")}if(s){const s=this.startNodeAt(r);s.typeAnnotation=y;y=this.finishNode(s,"TSRestType")}return y}tsParseParenthesizedType(){const r=this.startNode();this.expect(10);r.typeAnnotation=this.tsParseType();this.expect(11);return this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,s){const l=this.startNode();if(r==="TSConstructorType"){l.abstract=!!s;if(s)this.next();this.next()}this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,l)));return this.finishNode(l,r)}tsParseLiteralTypeNode(){const r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{const r=this.startNode();r.literal=super.parseTemplate(false);return this.finishNode(r,"TSLiteralType")}}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const r=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){return this.tsParseThisTypePredicate(r)}else{return r}}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const r=this.startNode();const s=this.lookahead();if(s.type!==135&&s.type!==136){this.unexpected()}r.literal=this.parseMaybeUnary();return this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:r}=this.state;if(tokenIsIdentifier(r)||r===88||r===84){const s=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":keywordTypeFromName(this.state.value);if(s!==undefined&&this.lookaheadCharCode()!==46){const r=this.startNode();this.next();return this.finishNode(r,s)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:r}=this.state;let s=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0)){if(this.match(3)){const l=this.startNodeAt(r);l.elementType=s;this.expect(3);s=this.finishNode(l,"TSArrayType")}else{const l=this.startNodeAt(r);l.objectType=s;l.indexType=this.tsParseType();this.expect(3);s=this.finishNode(l,"TSIndexedAccessType")}}return s}tsParseTypeOperator(){const r=this.startNode();const s=this.state.value;this.next();r.operator=s;r.typeAnnotation=this.tsParseTypeOperatorOrHigher();if(s==="readonly"){this.tsCheckTypeAnnotationForReadOnly(r)}return this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(pe.UnexpectedReadonly,r)}}tsParseInferType(){const r=this.startNode();this.expectContextual(115);const s=this.startNode();s.name=this.tsParseTypeParameterName();s.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType()));r.typeParameter=this.finishNode(s,"TSTypeParameter");return this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const r=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17)){return r}}}tsParseTypeOperatorOrHigher(){const r=tokenIsTSTypeOperator(this.state.type)&&!this.state.containsEsc;return r?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(r,s,l){const p=this.startNode();const d=this.eat(l);const m=[];do{m.push(s())}while(this.eat(l));if(m.length===1&&!d){return m[0]}p.types=m;return this.finishNode(p,r)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47)){return true}return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78)){this.next();return true}if(this.match(5)){const{errors:r}=this.state;const s=r.length;try{this.parseObjectLike(8,true);return r.length===s}catch(r){return false}}if(this.match(0)){this.next();const{errors:r}=this.state;const s=r.length;try{super.parseBindingList(3,93,1);return r.length===s}catch(r){return false}}return false}tsIsUnambiguouslyStartOfFunctionType(){this.next();if(this.match(11)||this.match(21)){return true}if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29)){return true}if(this.match(11)){this.next();if(this.match(19)){return true}}}return false}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType((()=>{const s=this.startNode();this.expect(r);const l=this.startNode();const p=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(p&&this.match(78)){let r=this.tsParseThisTypeOrThisTypePredicate();if(r.type==="TSThisType"){l.parameterName=r;l.asserts=true;l.typeAnnotation=null;r=this.finishNode(l,"TSTypePredicate")}else{this.resetStartLocationFromNode(r,l);r.asserts=true}s.typeAnnotation=r;return this.finishNode(s,"TSTypeAnnotation")}const d=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!d){if(!p){return this.tsParseTypeAnnotation(false,s)}l.parameterName=this.parseIdentifier();l.asserts=p;l.typeAnnotation=null;s.typeAnnotation=this.finishNode(l,"TSTypePredicate");return this.finishNode(s,"TSTypeAnnotation")}const m=this.tsParseTypeAnnotation(false);l.parameterName=d;l.typeAnnotation=m;l.asserts=p;s.typeAnnotation=this.finishNode(l,"TSTypePredicate");return this.finishNode(s,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14)){return this.tsParseTypeOrTypePredicateAnnotation(14)}}tsTryParseTypeAnnotation(){if(this.match(14)){return this.tsParseTypeAnnotation()}}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){this.next();return r}}tsParseTypePredicateAsserts(){if(this.state.type!==109){return false}const r=this.state.containsEsc;this.next();if(!tokenIsIdentifier(this.state.type)&&!this.match(78)){return false}if(r){this.raise(S.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"})}return true}tsParseTypeAnnotation(r=true,s=this.startNode()){this.tsInType((()=>{if(r)this.expect(14);s.typeAnnotation=this.tsParseType()}));return this.finishNode(s,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81)){return r}const s=this.startNodeAtNode(r);s.checkType=r;s.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType()));this.expect(17);s.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));this.expect(14);s.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));return this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType()){return this.tsParseFunctionOrConstructorType("TSFunctionType")}if(this.match(77)){return this.tsParseFunctionOrConstructorType("TSConstructorType")}else if(this.isAbstractConstructorSignature()){return this.tsParseFunctionOrConstructorType("TSConstructorType",true)}return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(pe.ReservedTypeAssertion,this.state.startLoc)}const r=this.startNode();r.typeAnnotation=this.tsInType((()=>{this.next();return this.match(75)?this.tsParseTypeReference():this.tsParseType()}));this.expect(48);r.expression=this.parseMaybeUnary();return this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){const s=this.state.startLoc;const l=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{const r=this.startNode();r.expression=this.tsParseEntityName(1|2);if(this.match(47)){r.typeParameters=this.tsParseTypeArguments()}return this.finishNode(r,"TSExpressionWithTypeArguments")}}));if(!l.length){this.raise(pe.EmptyHeritageClauseType,s,{token:r})}return l}tsParseInterfaceDeclaration(r,s={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129);if(s.declare)r.declare=true;if(tokenIsIdentifier(this.state.type)){r.id=this.parseIdentifier();this.checkIdentifier(r.id,130)}else{r.id=null;this.raise(pe.MissingInterfaceName,this.state.startLoc)}r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(this.eat(81)){r.extends=this.tsParseHeritageClause("extends")}const l=this.startNode();l.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this));r.body=this.finishNode(l,"TSInterfaceBody");return this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){r.id=this.parseIdentifier();this.checkIdentifier(r.id,2);r.typeAnnotation=this.tsInType((()=>{r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers);this.expect(29);if(this.isContextual(114)&&this.lookaheadCharCode()!==46){const r=this.startNode();this.next();return this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}));this.semicolon();return this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==x.brace){const s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else{return r()}}tsInType(r){const s=this.state.inType;this.state.inType=true;try{return r()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(r){const s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=true;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(r){const s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=false;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(r){if(this.match(r)){return this.tsNextThenParseType()}}tsExpectThenParseType(r){return this.tsInType((()=>{this.expect(r);return this.tsParseType()}))}tsNextThenParseType(){return this.tsInType((()=>{this.next();return this.tsParseType()}))}tsParseEnumMember(){const r=this.startNode();r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(true);if(this.eat(29)){r.initializer=super.parseMaybeAssignAllowIn()}return this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,s={}){if(s.const)r.const=true;if(s.declare)r.declare=true;this.expectContextual(126);r.id=this.parseIdentifier();this.checkIdentifier(r.id,r.const?8971:8459);{this.expect(5);r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8)}return this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){const r=this.startNode();this.expect(5);r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8);return this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){const r=this.startNode();this.scope.enter(0);this.expect(5);super.parseBlockOrModuleBlockBody(r.body=[],undefined,true,8);this.scope.exit();return this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,s=false){r.id=this.parseIdentifier();if(!s){this.checkIdentifier(r.id,1024)}if(this.eat(16)){const s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,true);r.body=s}else{this.scope.enter(1024);this.prodParam.enter(0);r.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){if(this.isContextual(112)){r.kind="global";{r.global=true}r.id=this.parseIdentifier()}else if(this.match(134)){r.kind="module";r.id=super.parseStringLiteral(this.state.value)}else{this.unexpected()}if(this.match(5)){this.scope.enter(1024);this.prodParam.enter(0);r.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}else{this.semicolon()}return this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,s,l){{r.isExport=l||false}r.id=s||this.parseIdentifier();this.checkIdentifier(r.id,4096);this.expect(29);const p=this.tsParseModuleReference();if(r.importKind==="type"&&p.type!=="TSExternalModuleReference"){this.raise(pe.ImportAliasHasImportType,p)}r.moduleReference=p;this.semicolon();return this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const r=this.startNode();this.expectContextual(119);this.expect(10);if(!this.match(134)){this.unexpected()}r.expression=super.parseExprAtom();this.expect(11);this.sawUnambiguousESM=true;return this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){const s=this.state.clone();const l=r();this.state=s;return l}tsTryParseAndCatch(r){const s=this.tryParse((s=>r()||s()));if(s.aborted||!s.node)return;if(s.error)this.state=s.failState;return s.node}tsTryParse(r){const s=this.state.clone();const l=r();if(l!==undefined&&l!==false){return l}this.state=s}tsTryParseDeclare(r){if(this.isLineTerminator()){return}const s=this.state.type;return this.tsInAmbientContext((()=>{switch(s){case 68:r.declare=true;return super.parseFunctionStatement(r,false,false);case 80:r.declare=true;return this.parseClass(r,true,false);case 126:return this.tsParseEnumDeclaration(r,{declare:true});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc){return}case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum")){r.declare=true;return this.parseVarStatement(r,this.state.value,true)}this.expect(75);return this.tsParseEnumDeclaration(r,{const:true,declare:true});case 107:if(this.isUsing()){this.raise(pe.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare");r.declare=true;return this.parseVarStatement(r,"using",true)}break;case 96:if(this.isAwaitUsing()){this.raise(pe.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare");r.declare=true;this.next();return this.parseVarStatement(r,"await using",true)}break;case 129:{const s=this.tsParseInterfaceDeclaration(r,{declare:true});if(s)return s}default:if(tokenIsIdentifier(s)){return this.tsParseDeclaration(r,this.state.value,true,null)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,true,null)}tsParseExpressionStatement(r,s,l){switch(s.name){case"declare":{const s=this.tsTryParseDeclare(r);if(s){s.declare=true}return s}case"global":if(this.match(5)){this.scope.enter(1024);this.prodParam.enter(0);const l=r;l.kind="global";{r.global=true}l.id=s;l.body=this.tsParseModuleBlock();this.scope.exit();this.prodParam.exit();return this.finishNode(l,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,s.name,false,l)}}tsParseDeclaration(r,s,l,p){switch(s){case"abstract":if(this.tsCheckLineTerminator(l)&&(this.match(80)||tokenIsIdentifier(this.state.type))){return this.tsParseAbstractDeclaration(r,p)}break;case"module":if(this.tsCheckLineTerminator(l)){if(this.match(134)){return this.tsParseAmbientExternalModuleDeclaration(r)}else if(tokenIsIdentifier(this.state.type)){r.kind="module";return this.tsParseModuleOrNamespaceDeclaration(r)}}break;case"namespace":if(this.tsCheckLineTerminator(l)&&tokenIsIdentifier(this.state.type)){r.kind="namespace";return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"type":if(this.tsCheckLineTerminator(l)&&tokenIsIdentifier(this.state.type)){return this.tsParseTypeAliasDeclaration(r)}break}}tsCheckLineTerminator(r){if(r){if(this.hasFollowingLineBreak())return false;this.next();return true}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;const l=this.tsTryParseAndCatch((()=>{const s=this.startNodeAt(r);s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier);super.parseFunctionParams(s);s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation();this.expect(19);return s}));this.state.maybeInArrowParameters=s;if(!l)return;return super.parseArrowExpression(l,null,true)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const r=this.startNode();r.params=this.tsInType((()=>this.tsInTopLevelContext((()=>{this.expect(47);return this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))}))));if(r.params.length===0){this.raise(pe.EmptyTypeArguments,r)}else if(!this.state.inType&&this.curContext()===x.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tokenIsTSDeclarationStart(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return false;return super.isExportDefaultSpecifier()}parseBindingElement(r,s){const l=s.length?s[0].loc.start:this.state.startLoc;const p={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},p);const d=p.accessibility;const m=p.override;const y=p.readonly;if(!(r&4)&&(d||y||m)){this.raise(pe.UnexpectedParameterModifier,l)}const g=this.parseMaybeDefault();if(r&2){this.parseFunctionParamType(g)}const T=this.parseMaybeDefault(g.loc.start,g);if(d||y||m){const r=this.startNodeAt(l);if(s.length){r.decorators=s}if(d)r.accessibility=d;if(y)r.readonly=y;if(m)r.override=m;if(T.type!=="Identifier"&&T.type!=="AssignmentPattern"){this.raise(pe.UnsupportedParameterPropertyKind,r)}r.parameter=T;return this.finishNode(r,"TSParameterProperty")}if(s.length){g.decorators=s}return T}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(const s of r.params){if(s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext){this.raise(pe.PatternIsOptional,s)}}}setArrowFunctionParameters(r,s,l){super.setArrowFunctionParameters(r,s,l);this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,s,l=false){if(this.match(14)){r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14)}const p=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":undefined;if(p&&!this.match(5)&&this.isLineTerminator()){return this.finishNode(r,p)}if(p==="TSDeclareFunction"&&this.state.isAmbientContext){this.raise(pe.DeclareFunctionHasImplementation,r);if(r.declare){return super.parseFunctionBodyAndFinish(r,p,l)}}this.tsDisallowOptionalPattern(r);return super.parseFunctionBodyAndFinish(r,s,l)}registerFunctionStatementId(r){if(!r.body&&r.id){this.checkIdentifier(r.id,1024)}else{super.registerFunctionStatementId(r)}}tsCheckForInvalidTypeCasts(r){r.forEach((r=>{if((r==null?void 0:r.type)==="TSTypeCastExpression"){this.raise(pe.UnexpectedTypeAnnotation,r.typeAnnotation)}}))}toReferencedList(r,s){this.tsCheckForInvalidTypeCasts(r);return r}parseArrayLike(r,s,l,p){const d=super.parseArrayLike(r,s,l,p);if(d.type==="ArrayExpression"){this.tsCheckForInvalidTypeCasts(d.elements)}return d}parseSubscript(r,s,l,p){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=false;this.next();const l=this.startNodeAt(s);l.expression=r;return this.finishNode(l,"TSNonNullExpression")}let d=false;if(this.match(18)&&this.lookaheadCharCode()===60){if(l){p.stop=true;return r}p.optionalChainMember=d=true;this.next()}if(this.match(47)||this.match(51)){let m;const y=this.tsTryParseAndCatch((()=>{if(!l&&this.atPossibleAsyncArrow(r)){const r=this.tsTryParseGenericAsyncArrowFunction(s);if(r){p.stop=true;return r}}const y=this.tsParseTypeArgumentsInExpression();if(!y)return;if(d&&!this.match(10)){m=this.state.curPosition();return}if(tokenIsTemplate(this.state.type)){const l=super.parseTaggedTemplateExpression(r,s,p);{l.typeParameters=y}return l}if(!l&&this.eat(10)){const l=this.startNodeAt(s);l.callee=r;l.arguments=this.parseCallExpressionArguments();this.tsCheckForInvalidTypeCasts(l.arguments);{l.typeParameters=y}if(p.optionalChainMember){l.optional=d}return this.finishCallExpression(l,p.optionalChainMember)}const g=this.state.type;if(g===48||g===52||g!==10&&tokenCanStartExpression(g)&&!this.hasPrecedingLineBreak()){return}const T=this.startNodeAt(s);T.expression=r;{T.typeParameters=y}return this.finishNode(T,"TSInstantiationExpression")}));if(m){this.unexpected(m,10)}if(y){if(y.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40){this.raise(pe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc)}if(!this.match(16)&&!this.match(18)){y.expression=super.stopParseSubscript(r,p)}}return y}}return super.parseSubscript(r,s,l,p)}parseNewCallee(r){var s;super.parseNewCallee(r);const{callee:l}=r;if(l.type==="TSInstantiationExpression"&&!((s=l.extra)!=null&&s.parenthesized)){{r.typeParameters=l.typeParameters}r.callee=l.expression}}parseExprOp(r,s,l){let p;if(tokenOperatorPrecedence(58)>l&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(p=this.isContextual(120)))){const d=this.startNodeAt(s);d.expression=r;d.typeAnnotation=this.tsInType((()=>{this.next();if(this.match(75)){if(p){this.raise(S.UnexpectedKeyword,this.state.startLoc,{keyword:"const"})}return this.tsParseTypeReference()}return this.tsParseType()}));this.finishNode(d,p?"TSSatisfiesExpression":"TSAsExpression");this.reScan_lt_gt();return this.parseExprOp(d,s,l)}return super.parseExprOp(r,s,l)}checkReservedWord(r,s,l,p){if(!this.state.isAmbientContext){super.checkReservedWord(r,s,l,p)}}checkImportReflection(r){super.checkImportReflection(r);if(r.module&&r.importKind!=="value"){this.raise(pe.ImportReflectionHasImportType,r.specifiers[0].loc.start)}}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return true;if(this.isContextual(130)){const s=this.lookaheadCharCode();return r?s===123||s===42:s!==61}return!r&&this.isContextual(87)}applyImportPhase(r,s,l,p){super.applyImportPhase(r,s,l,p);if(s){r.exportKind=l==="type"?"type":"value"}else{r.importKind=l==="type"||l==="typeof"?l:"value"}}parseImport(r){if(this.match(134)){r.importKind="value";return super.parseImport(r)}let s;if(tokenIsIdentifier(this.state.type)&&this.lookaheadCharCode()===61){r.importKind="value";return this.tsParseImportEqualsDeclaration(r)}else if(this.isContextual(130)){const l=this.parseMaybeImportPhase(r,false);if(this.lookaheadCharCode()===61){return this.tsParseImportEqualsDeclaration(r,l)}else{s=super.parseImportSpecifiersAndAfter(r,l)}}else{s=super.parseImport(r)}if(s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier"){this.raise(pe.TypeImportCannotSpecifyDefaultAndNamed,s)}return s}parseExport(r,s){if(this.match(83)){const s=r;this.next();let l=null;if(this.isContextual(130)&&this.isPotentialImportPhase(false)){l=this.parseMaybeImportPhase(s,false)}else{s.importKind="value"}const p=this.tsParseImportEqualsDeclaration(s,l,true);{return p}}else if(this.eat(29)){const s=r;s.expression=super.parseExpression();this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){const s=r;this.expectContextual(128);s.id=this.parseIdentifier();this.semicolon();return this.finishNode(s,"TSNamespaceExportDeclaration")}else{return super.parseExport(r,s)}}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const r=this.startNode();this.next();r.abstract=true;return this.parseClass(r,true,true)}if(this.match(129)){const r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,s,l=false){const{isAmbientContext:p}=this.state;const d=super.parseVarStatement(r,s,l||p);if(!p)return d;if(!r.declare&&(s==="using"||s==="await using")){this.raiseOverwrite(pe.UsingDeclarationInAmbientContext,r,s);return d}for(const{id:r,init:l}of d.declarations){if(!l)continue;if(s==="var"||s==="let"||!!r.typeAnnotation){this.raise(pe.InitializerNotAllowedInAmbientContext,l)}else if(!isValidAmbientConstInitializer(l,this.hasPlugin("estree"))){this.raise(pe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l)}}return d}parseStatementContent(r,s){if(this.match(75)&&this.isLookaheadContextual("enum")){const r=this.startNode();this.expect(75);return this.tsParseEnumDeclaration(r,{const:true})}if(this.isContextual(126)){return this.tsParseEnumDeclaration(this.startNode())}if(this.isContextual(129)){const r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseStatementContent(r,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,s){return s.some((s=>{if(tsIsAccessModifier(s)){return r.accessibility===s}return!!r[s]}))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,s,l){const p=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:p,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:true,errorTemplate:pe.InvalidModifierOnTypeParameterPositions},s);const callParseClassMemberWithIsStatic=()=>{if(this.tsIsStartOfStaticBlocks()){this.next();this.next();if(this.tsHasSomeModifiers(s,p)){this.raise(pe.StaticBlockCannotHaveModifier,this.state.curPosition())}super.parseClassStaticBlock(r,s)}else{this.parseClassMemberWithIsStatic(r,s,l,!!s.static)}};if(s.declare){this.tsInAmbientContext(callParseClassMemberWithIsStatic)}else{callParseClassMemberWithIsStatic()}}parseClassMemberWithIsStatic(r,s,l,p){const d=this.tsTryParseIndexSignature(s);if(d){r.body.push(d);if(s.abstract){this.raise(pe.IndexSignatureHasAbstract,s)}if(s.accessibility){this.raise(pe.IndexSignatureHasAccessibility,s,{modifier:s.accessibility})}if(s.declare){this.raise(pe.IndexSignatureHasDeclare,s)}if(s.override){this.raise(pe.IndexSignatureHasOverride,s)}return}if(!this.state.inAbstractClass&&s.abstract){this.raise(pe.NonAbstractClassHasAbstractMethod,s)}if(s.override){if(!l.hadSuperClass){this.raise(pe.OverrideNotInSubClass,s)}}super.parseClassMemberWithIsStatic(r,s,l,p)}parsePostMemberNameModifiers(r){const s=this.eat(17);if(s)r.optional=true;if(r.readonly&&this.match(10)){this.raise(pe.ClassMethodHasReadonly,r)}if(r.declare&&this.match(10)){this.raise(pe.ClassMethodHasDeclare,r)}}parseExpressionStatement(r,s,l){const p=s.type==="Identifier"?this.tsParseExpressionStatement(r,s,l):undefined;return p||super.parseExpressionStatement(r,s,l)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return true;return super.shouldParseExportDeclaration()}parseConditional(r,s,l){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){const s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41){this.setOptionalParametersError(l);return r}}return super.parseConditional(r,s,l)}parseParenItem(r,s){const l=super.parseParenItem(r,s);if(this.eat(17)){l.optional=true;this.resetEndLocation(r)}if(this.match(14)){const l=this.startNodeAt(s);l.expression=r;l.typeAnnotation=this.tsParseTypeAnnotation();return this.finishNode(l,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125)){return this.tsInAmbientContext((()=>this.parseExportDeclaration(r)))}const s=this.state.startLoc;const l=this.eatContextual(125);if(l&&(this.isContextual(125)||!this.shouldParseExportDeclaration())){throw this.raise(pe.ExpectedAmbientAfterExportDeclare,this.state.startLoc)}const p=tokenIsIdentifier(this.state.type);const d=p&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);if(!d)return null;if(d.type==="TSInterfaceDeclaration"||d.type==="TSTypeAliasDeclaration"||l){r.exportKind="type"}if(l&&d.type!=="TSImportEqualsDeclaration"){this.resetStartLocation(d,s);d.declare=true}return d}parseClassId(r,s,l,p){if((!s||l)&&this.isContextual(113)){return}super.parseClassId(r,s,l,r.declare?1024:8331);const d=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(d)r.typeParameters=d}parseClassPropertyAnnotation(r){if(!r.optional){if(this.eat(35)){r.definite=true}else if(this.eat(17)){r.optional=true}}const s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s}parseClassProperty(r){this.parseClassPropertyAnnotation(r);if(this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)){this.raise(pe.DeclareClassFieldHasInitializer,this.state.startLoc)}if(r.abstract&&this.match(29)){const{key:s}=r;this.raise(pe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!r.computed?s.name:`[${this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){if(r.abstract){this.raise(pe.PrivateElementHasAbstract,r)}if(r.accessibility){this.raise(pe.PrivateElementHasAccessibility,r,{modifier:r.accessibility})}this.parseClassPropertyAnnotation(r);return super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){this.parseClassPropertyAnnotation(r);if(r.optional){this.raise(pe.AccessorCannotBeOptional,r)}return super.parseClassAccessorProperty(r)}pushClassMethod(r,s,l,p,d,m){const y=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(y&&d){this.raise(pe.ConstructorHasTypeParameters,y)}const{declare:g=false,kind:T}=s;if(g&&(T==="get"||T==="set")){this.raise(pe.DeclareAccessor,s,{kind:T})}if(y)s.typeParameters=y;super.pushClassMethod(r,s,l,p,d,m)}pushClassPrivateMethod(r,s,l,p){const d=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(d)s.typeParameters=d;super.pushClassPrivateMethod(r,s,l,p)}declareClassPrivateMethodInScope(r,s){if(r.type==="TSDeclareMethod")return;if(r.type==="MethodDefinition"&&r.value.body==null){return}super.declareClassPrivateMethodInScope(r,s)}parseClassSuper(r){super.parseClassSuper(r);if(r.superClass&&(this.match(47)||this.match(51))){{r.superTypeParameters=this.tsParseTypeArgumentsInExpression()}}if(this.eatContextual(113)){r.implements=this.tsParseHeritageClause("implements")}}parseObjPropValue(r,s,l,p,d,m,y){const g=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(g)r.typeParameters=g;return super.parseObjPropValue(r,s,l,p,d,m,y)}parseFunctionParams(r,s){const l=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(l)r.typeParameters=l;super.parseFunctionParams(r,s)}parseVarId(r,s){super.parseVarId(r,s);if(r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)){r.definite=true}const l=this.tsTryParseTypeAnnotation();if(l){r.id.typeAnnotation=l;this.resetEndLocation(r.id)}}parseAsyncArrowFromCallExpression(r,s){if(this.match(14)){r.returnType=this.tsParseTypeAnnotation()}return super.parseAsyncArrowFromCallExpression(r,s)}parseMaybeAssign(r,s){var l,p,d,m,y;let g;let T;let b;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){g=this.state.clone();T=this.tryParse((()=>super.parseMaybeAssign(r,s)),g);if(!T.error)return T.node;const{context:l}=this.state;const p=l[l.length-1];if(p===x.j_oTag||p===x.j_expr){l.pop()}}if(!((l=T)!=null&&l.error)&&!this.match(47)){return super.parseMaybeAssign(r,s)}if(!g||g===this.state)g=this.state.clone();let E;const S=this.tryParse((l=>{var p,d;E=this.tsParseTypeParameters(this.tsParseConstModifier);const m=super.parseMaybeAssign(r,s);if(m.type!=="ArrowFunctionExpression"||(p=m.extra)!=null&&p.parenthesized){l()}if(((d=E)==null?void 0:d.params.length)!==0){this.resetStartLocationFromNode(m,E)}m.typeParameters=E;return m}),g);if(!S.error&&!S.aborted){if(E)this.reportReservedArrowTypeParam(E);return S.node}if(!T){assert(!this.hasPlugin("jsx"));b=this.tryParse((()=>super.parseMaybeAssign(r,s)),g);if(!b.error)return b.node}if((p=T)!=null&&p.node){this.state=T.failState;return T.node}if(S.node){this.state=S.failState;if(E)this.reportReservedArrowTypeParam(E);return S.node}if((d=b)!=null&&d.node){this.state=b.failState;return b.node}throw((m=T)==null?void 0:m.error)||S.error||((y=b)==null?void 0:y.error)}reportReservedArrowTypeParam(r){var s;if(r.params.length===1&&!r.params[0].constraint&&!((s=r.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(pe.ReservedArrowTypeParam,r)}}parseMaybeUnary(r,s){if(!this.hasPlugin("jsx")&&this.match(47)){return this.tsParseTypeAssertion()}return super.parseMaybeUnary(r,s)}parseArrow(r){if(this.match(14)){const s=this.tryParse((r=>{const s=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))r();return s}));if(s.aborted)return;if(!s.thrown){if(s.error)this.state=s.failState;r.returnType=s.node}}return super.parseArrow(r)}parseFunctionParamType(r){if(this.eat(17)){r.optional=true}const s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s;this.resetEndLocation(r);return r}isAssignable(r,s){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,s);case"TSParameterProperty":return true;default:return super.isAssignable(r,s)}}toAssignable(r,s=false){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(s){this.expressionScope.recordArrowParameterBindingError(pe.UnexpectedTypeCastInParameter,r)}else{this.raise(pe.UnexpectedTypeCastInParameter,r)}this.toAssignable(r.expression,s);break;case"AssignmentExpression":if(!s&&r.left.type==="TSTypeCastExpression"){r.left=this.typeCastToParameter(r.left)}default:super.toAssignable(r,s)}}toAssignableParenthesizedExpression(r,s){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,s);break;default:super.toAssignable(r,s)}}checkToRestConversion(r,s){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,false);break;default:super.checkToRestConversion(r,s)}}isValidLVal(r,s,l){switch(r){case"TSTypeCastExpression":return true;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(l!==64||!s)&&["expression",true];default:return super.isValidLVal(r,s,l)}}parseBindingAtom(){if(this.state.type===78){return this.parseIdentifier(true)}return super.parseBindingAtom()}parseMaybeDecoratorArguments(r,s){if(this.match(47)||this.match(51)){const l=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const p=super.parseMaybeDecoratorArguments(r,s);{p.typeParameters=l}return p}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,s)}checkCommaAfterRest(r){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r){this.next();return false}return super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,s){const l=super.parseMaybeDefault(r,s);if(l.type==="AssignmentPattern"&&l.typeAnnotation&&l.right.start<l.typeAnnotation.start){this.raise(pe.TypeAnnotationAfterAssign,l.typeAnnotation)}return l}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){const{type:r}=this.state;if(r===47){this.state.pos-=1;this.readToken_lt()}else if(r===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:r}=this.state;if(r===51){this.state.pos-=2;this.finishOp(47,1);return 47}return r}toAssignableListItem(r,s,l){const p=r[s];if(p.type==="TSTypeCastExpression"){r[s]=this.typeCastToParameter(p)}super.toAssignableListItem(r,s,l)}typeCastToParameter(r){r.expression.typeAnnotation=r.typeAnnotation;this.resetEndLocation(r.expression,r.typeAnnotation.loc.end);return r.expression}shouldParseArrow(r){if(this.match(14)){return r.every((r=>this.isAssignable(r,true)))}return super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){const s=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));if(s){{r.typeParameters=s}}}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){const s=super.getGetterSetterExpectedParamCount(r);const l=this.getObjectOrClassMethodParams(r);const p=l[0];const d=p&&this.isThisParam(p);return d?s+1:s}parseCatchClauseParam(){const r=super.parseCatchClauseParam();const s=this.tsTryParseTypeAnnotation();if(s){r.typeAnnotation=s;this.resetEndLocation(r)}return r}tsInAmbientContext(r){const{isAmbientContext:s,strict:l}=this.state;this.state.isAmbientContext=true;this.state.strict=false;try{return r()}finally{this.state.isAmbientContext=s;this.state.strict=l}}parseClass(r,s,l){const p=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,s,l)}finally{this.state.inAbstractClass=p}}tsParseAbstractDeclaration(r,s){if(this.match(80)){r.abstract=true;return this.maybeTakeDecorators(s,this.parseClass(r,true,false))}else if(this.isContextual(129)){if(!this.hasFollowingLineBreak()){r.abstract=true;this.raise(pe.NonClassMethodPropertyHasAbstractModifier,r);return this.tsParseInterfaceDeclaration(r)}}else{this.unexpected(null,80)}}parseMethod(r,s,l,p,d,m,y){const g=super.parseMethod(r,s,l,p,d,m,y);if(g.abstract||g.type==="TSAbstractMethodDefinition"){const r=this.hasPlugin("estree");const s=r?g.value:g;if(s.body){const{key:r}=g;this.raise(pe.AbstractMethodHasImplementation,g,{methodName:r.type==="Identifier"&&!g.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}}return g}tsParseTypeParameterName(){const r=this.parseIdentifier();return r.name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.getExpression()}parseExportSpecifier(r,s,l,p){if(!s&&p){this.parseTypeOnlyImportExportSpecifier(r,false,l);return this.finishNode(r,"ExportSpecifier")}r.exportKind="value";return super.parseExportSpecifier(r,s,l,p)}parseImportSpecifier(r,s,l,p,d){if(!s&&p){this.parseTypeOnlyImportExportSpecifier(r,true,l);return this.finishNode(r,"ImportSpecifier")}r.importKind="value";return super.parseImportSpecifier(r,s,l,p,l?4098:4096)}parseTypeOnlyImportExportSpecifier(r,s,l){const p=s?"imported":"local";const d=s?"local":"exported";let m=r[p];let y;let g=false;let T=true;const b=m.loc.start;if(this.isContextual(93)){const r=this.parseIdentifier();if(this.isContextual(93)){const l=this.parseIdentifier();if(tokenIsKeywordOrIdentifier(this.state.type)){g=true;m=r;y=s?this.parseIdentifier():this.parseModuleExportName();T=false}else{y=l;T=false}}else if(tokenIsKeywordOrIdentifier(this.state.type)){T=false;y=s?this.parseIdentifier():this.parseModuleExportName()}else{g=true;m=r}}else if(tokenIsKeywordOrIdentifier(this.state.type)){g=true;if(s){m=this.parseIdentifier(true);if(!this.isContextual(93)){this.checkReservedWord(m.name,m.loc.start,true,true)}}else{m=this.parseModuleExportName()}}if(g&&l){this.raise(s?pe.TypeModifierIsUsedInTypeImports:pe.TypeModifierIsUsedInTypeExports,b)}r[p]=m;r[d]=y;const E=s?"importKind":"exportKind";r[E]=g?"type":"value";if(T&&this.eatContextual(93)){r[d]=s?this.parseIdentifier():this.parseModuleExportName()}if(!r[d]){r[d]=this.cloneIdentifier(r[p])}if(s){this.checkIdentifier(r[d],g?4098:4096)}}fillOptionalPropertiesForTSESLint(r){var s,l,p,d,m,y,g,T,b,E,S,_,x,w,v,A,P,k,C,I,O,N,L,D,R,M,F,B,j,$,U,G,q,W,H,V,K,z,Y,J,X,Q,Z,ee,te,re,se,ne;switch(r.type){case"ExpressionStatement":(s=r.directive)!=null?s:r.directive=undefined;return;case"RestElement":r.value=undefined;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(l=r.decorators)!=null?l:r.decorators=[];(p=r.optional)!=null?p:r.optional=false;(d=r.typeAnnotation)!=null?d:r.typeAnnotation=undefined;return;case"TSParameterProperty":(m=r.accessibility)!=null?m:r.accessibility=undefined;(y=r.decorators)!=null?y:r.decorators=[];(g=r.override)!=null?g:r.override=false;(T=r.readonly)!=null?T:r.readonly=false;(b=r.static)!=null?b:r.static=false;return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(E=r.declare)!=null?E:r.declare=false;(S=r.returnType)!=null?S:r.returnType=undefined;(_=r.typeParameters)!=null?_:r.typeParameters=undefined;return;case"Property":(x=r.optional)!=null?x:r.optional=false;return;case"TSMethodSignature":case"TSPropertySignature":(w=r.optional)!=null?w:r.optional=false;case"TSIndexSignature":(v=r.accessibility)!=null?v:r.accessibility=undefined;(A=r.readonly)!=null?A:r.readonly=false;(P=r.static)!=null?P:r.static=false;return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(k=r.declare)!=null?k:r.declare=false;(C=r.definite)!=null?C:r.definite=false;(I=r.readonly)!=null?I:r.readonly=false;(O=r.typeAnnotation)!=null?O:r.typeAnnotation=undefined;case"TSAbstractMethodDefinition":case"MethodDefinition":(N=r.accessibility)!=null?N:r.accessibility=undefined;(L=r.decorators)!=null?L:r.decorators=[];(D=r.override)!=null?D:r.override=false;(R=r.optional)!=null?R:r.optional=false;return;case"ClassExpression":(M=r.id)!=null?M:r.id=null;case"ClassDeclaration":(F=r.abstract)!=null?F:r.abstract=false;(B=r.declare)!=null?B:r.declare=false;(j=r.decorators)!=null?j:r.decorators=[];($=r.implements)!=null?$:r.implements=[];(U=r.superTypeArguments)!=null?U:r.superTypeArguments=undefined;(G=r.typeParameters)!=null?G:r.typeParameters=undefined;return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(q=r.declare)!=null?q:r.declare=false;return;case"VariableDeclarator":(W=r.definite)!=null?W:r.definite=false;return;case"TSEnumDeclaration":(H=r.const)!=null?H:r.const=false;(V=r.declare)!=null?V:r.declare=false;return;case"TSEnumMember":(K=r.computed)!=null?K:r.computed=false;return;case"TSImportType":(z=r.qualifier)!=null?z:r.qualifier=null;(Y=r.options)!=null?Y:r.options=null;return;case"TSInterfaceDeclaration":(J=r.declare)!=null?J:r.declare=false;(X=r.extends)!=null?X:r.extends=[];return;case"TSMappedType":(Q=r.optional)!=null?Q:r.optional=false;(Z=r.readonly)!=null?Z:r.readonly=undefined;return;case"TSModuleDeclaration":(ee=r.declare)!=null?ee:r.declare=false;(te=r.global)!=null?te:r.global=r.kind==="global";return;case"TSTypeParameter":(re=r.const)!=null?re:r.const=false;(se=r.in)!=null?se:r.in=false;(ne=r.out)!=null?ne:r.out=false;return}}};function isPossiblyLiteralEnum(r){if(r.type!=="MemberExpression")return false;const{computed:s,property:l}=r;if(s&&l.type!=="StringLiteral"&&(l.type!=="TemplateLiteral"||l.expressions.length>0)){return false}return isUncomputedMemberExpressionChain(r.object)}function isValidAmbientConstInitializer(r,s){var l;const{type:p}=r;if((l=r.extra)!=null&&l.parenthesized){return false}if(s){if(p==="Literal"){const{value:s}=r;if(typeof s==="string"||typeof s==="boolean"){return true}}}else{if(p==="StringLiteral"||p==="BooleanLiteral"){return true}}if(isNumber(r,s)||isNegativeNumber(r,s)){return true}if(p==="TemplateLiteral"&&r.expressions.length===0){return true}if(isPossiblyLiteralEnum(r)){return true}return false}function isNumber(r,s){if(s){return r.type==="Literal"&&(typeof r.value==="number"||"bigint"in r)}return r.type==="NumericLiteral"||r.type==="BigIntLiteral"}function isNegativeNumber(r,s){if(r.type==="UnaryExpression"){const{operator:l,argument:p}=r;if(l==="-"&&isNumber(p,s)){return true}}return false}function isUncomputedMemberExpressionChain(r){if(r.type==="Identifier")return true;if(r.type!=="MemberExpression"||r.computed){return false}return isUncomputedMemberExpressionChain(r.object)}const de=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var placeholders=r=>class PlaceholdersParserMixin extends r{parsePlaceholder(r){if(this.match(133)){const s=this.startNode();this.next();this.assertNoSpace();s.name=super.parseIdentifier(true);this.assertNoSpace();this.expect(133);return this.finishPlaceholder(s,r)}}finishPlaceholder(r,s){let l=r;if(!l.expectedNode||!l.type){l=this.finishNode(l,"Placeholder")}l.expectedNode=s;return l}getTokenFromCode(r){if(r===37&&this.input.charCodeAt(this.state.pos+1)===37){this.finishOp(133,2)}else{super.getTokenFromCode(r)}}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,s,l,p){if(r!==undefined){super.checkReservedWord(r,s,l,p)}}cloneIdentifier(r){const s=super.cloneIdentifier(r);if(s.type==="Placeholder"){s.expectedNode=r.expectedNode}return s}cloneStringLiteral(r){if(r.type==="Placeholder"){return this.cloneIdentifier(r)}return super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,s,l){return r==="Placeholder"||super.isValidLVal(r,s,l)}toAssignable(r,s){if(r&&r.type==="Placeholder"&&r.expectedNode==="Expression"){r.expectedNode="Pattern"}else{super.toAssignable(r,s)}}chStartsBindingIdentifier(r,s){if(super.chStartsBindingIdentifier(r,s)){return true}const l=this.nextTokenStart();if(this.input.charCodeAt(l)===37&&this.input.charCodeAt(l+1)===37){return true}return false}verifyBreakContinue(r,s){if(r.label&&r.label.type==="Placeholder")return;super.verifyBreakContinue(r,s)}parseExpressionStatement(r,s){var l;if(s.type!=="Placeholder"||(l=s.extra)!=null&&l.parenthesized){return super.parseExpressionStatement(r,s)}if(this.match(14)){const l=r;l.label=this.finishPlaceholder(s,"Identifier");this.next();l.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration();return this.finishNode(l,"LabeledStatement")}this.semicolon();const p=r;p.name=s.name;return this.finishPlaceholder(p,"Statement")}parseBlock(r,s,l){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,s,l)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,s,l){const p=s?"ClassDeclaration":"ClassExpression";this.next();const d=this.state.strict;const m=this.parsePlaceholder("Identifier");if(m){if(this.match(81)||this.match(133)||this.match(5)){r.id=m}else if(l||!s){r.id=null;r.body=this.finishPlaceholder(m,"ClassBody");return this.finishNode(r,p)}else{throw this.raise(de.ClassNameIsRequired,this.state.startLoc)}}else{this.parseClassId(r,s,l)}super.parseClassSuper(r);r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,d);return this.finishNode(r,p)}parseExport(r,s){const l=this.parsePlaceholder("Identifier");if(!l)return super.parseExport(r,s);const p=r;if(!this.isContextual(98)&&!this.match(12)){p.specifiers=[];p.source=null;p.declaration=this.finishPlaceholder(l,"Declaration");return this.finishNode(p,"ExportNamedDeclaration")}this.expectPlugin("exportDefaultFrom");const d=this.startNode();d.exported=l;p.specifiers=[this.finishNode(d,"ExportDefaultSpecifier")];return super.parseExport(p,s)}isExportDefaultSpecifier(){if(this.match(65)){const r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")){if(this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(r+4))){return true}}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,s){var l;if((l=r.specifiers)!=null&&l.length){return true}return super.maybeParseExportDefaultSpecifier(r,s)}checkExport(r){const{specifiers:s}=r;if(s!=null&&s.length){r.specifiers=s.filter((r=>r.exported.type==="Placeholder"))}super.checkExport(r);r.specifiers=s}parseImport(r){const s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(r);r.specifiers=[];if(!this.isContextual(98)&&!this.match(12)){r.source=this.finishPlaceholder(s,"StringLiteral");this.semicolon();return this.finishNode(r,"ImportDeclaration")}const l=this.startNodeAtNode(s);l.local=s;r.specifiers.push(this.finishNode(l,"ImportDefaultSpecifier"));if(this.eat(12)){const s=this.maybeParseStarImportSpecifier(r);if(!s)this.parseNamedImportSpecifiers(r)}this.expectContextual(98);r.source=this.parseImportSource();this.semicolon();return this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)){this.raise(de.UnexpectedSpace,this.state.lastTokEndLoc)}}};var v8intrinsic=r=>class V8IntrinsicMixin extends r{parseV8Intrinsic(){if(this.match(54)){const r=this.state.startLoc;const s=this.startNode();this.next();if(tokenIsIdentifier(this.state.type)){const r=this.parseIdentifierName();const l=this.createIdentifier(s,r);this.castNodeTo(l,"V8IntrinsicIdentifier");if(this.match(10)){return l}}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};const fe=["minimal","fsharp","hack","smart"];const he=["^^","@@","^","%","#"];function validatePlugins(r){if(r.has("decorators")){if(r.has("decorators-legacy")){throw new Error("Cannot use the decorators and decorators-legacy plugin together")}const s=r.get("decorators").decoratorsBeforeExport;if(s!=null&&typeof s!=="boolean"){throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.")}const l=r.get("decorators").allowCallParenthesized;if(l!=null&&typeof l!=="boolean"){throw new Error("'allowCallParenthesized' must be a boolean.")}}if(r.has("flow")&&r.has("typescript")){throw new Error("Cannot combine flow and typescript plugins.")}if(r.has("placeholders")&&r.has("v8intrinsic")){throw new Error("Cannot combine placeholders and v8intrinsic plugins.")}if(r.has("pipelineOperator")){var s;const p=r.get("pipelineOperator").proposal;if(!fe.includes(p)){const r=fe.map((r=>`"${r}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(p==="hack"){if(r.has("placeholders")){throw new Error("Cannot combine placeholders plugin and Hack-style pipes.")}if(r.has("v8intrinsic")){throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.")}const s=r.get("pipelineOperator").topicToken;if(!he.includes(s)){const r=he.map((r=>`"${r}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${r}.`)}{var l;if(s==="#"&&((l=r.get("recordAndTuple"))==null?void 0:l.syntaxType)==="hash"){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",r.get("recordAndTuple")])}\`.`)}}}else if(p==="smart"&&((s=r.get("recordAndTuple"))==null?void 0:s.syntaxType)==="hash"){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",r.get("recordAndTuple")])}\`.`)}}if(r.has("moduleAttributes")){{if(r.has("deprecatedImportAssert")||r.has("importAssertions")){throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.")}const s=r.get("moduleAttributes").version;if(s!=="may-2020"){throw new Error("The 'moduleAttributes' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is 'may-2020'.")}}}if(r.has("importAssertions")){if(r.has("deprecatedImportAssert")){throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}}if(!r.has("deprecatedImportAssert")&&r.has("importAttributes")&&r.get("importAttributes").deprecatedAssertSyntax){{r.set("deprecatedImportAssert",{})}}if(r.has("recordAndTuple")){{const s=r.get("recordAndTuple").syntaxType;if(s!=null){const r=["hash","bar"];if(!r.includes(s)){throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+r.map((r=>`'${r}'`)).join(", "))}}}}if(r.has("asyncDoExpressions")&&!r.has("doExpressions")){const r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");r.missingPlugins="doExpressions";throw r}if(r.has("optionalChainingAssign")&&r.get("optionalChainingAssign").version!=="2023-07"){throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is '2023-07'.")}if(r.has("discardBinding")&&r.get("discardBinding").syntaxType!=="void"){throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}}const me={estree:estree,jsx:jsx,flow:flow,typescript:typescript,v8intrinsic:v8intrinsic,placeholders:placeholders};const ye=Object.keys(me);class ExpressionParser extends LValParser{checkProto(r,s,l,p){if(r.type==="SpreadElement"||this.isObjectMethod(r)||r.computed||r.shorthand){return l}const d=r.key;const m=d.type==="Identifier"?d.name:d.value;if(m==="__proto__"){if(s){this.raise(S.RecordNoProto,d);return true}if(l){if(p){if(p.doubleProtoLoc===null){p.doubleProtoLoc=d.loc.start}}else{this.raise(S.DuplicateProto,d)}}return true}return l}shouldExitDescending(r,s){return r.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(r.start)===s}getExpression(){this.enterInitialScopes();this.nextToken();if(this.match(140)){throw this.raise(S.ParseExpressionEmptyInput,this.state.startLoc)}const r=this.parseExpression();if(!this.match(140)){throw this.raise(S.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)})}this.finalizeRemainingComments();r.comments=this.comments;r.errors=this.state.errors;if(this.optionFlags&256){r.tokens=this.tokens}return r}parseExpression(r,s){if(r){return this.disallowInAnd((()=>this.parseExpressionBase(s)))}return this.allowInAnd((()=>this.parseExpressionBase(s)))}parseExpressionBase(r){const s=this.state.startLoc;const l=this.parseMaybeAssign(r);if(this.match(12)){const p=this.startNodeAt(s);p.expressions=[l];while(this.eat(12)){p.expressions.push(this.parseMaybeAssign(r))}this.toReferencedList(p.expressions);return this.finishNode(p,"SequenceExpression")}return l}parseMaybeAssignDisallowIn(r,s){return this.disallowInAnd((()=>this.parseMaybeAssign(r,s)))}parseMaybeAssignAllowIn(r,s){return this.allowInAnd((()=>this.parseMaybeAssign(r,s)))}setOptionalParametersError(r){r.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(r,s){const l=this.state.startLoc;const p=this.isContextual(108);if(p){if(this.prodParam.hasYield){this.next();let r=this.parseYield(l);if(s){r=s.call(this,r,l)}return r}}let d;if(r){d=false}else{r=new ExpressionErrors;d=true}const{type:m}=this.state;if(m===10||tokenIsIdentifier(m)){this.state.potentialArrowAt=this.state.start}let y=this.parseMaybeConditional(r);if(s){y=s.call(this,y,l)}if(tokenIsAssignment(this.state.type)){const s=this.startNodeAt(l);const p=this.state.value;s.operator=p;if(this.match(29)){this.toAssignable(y,true);s.left=y;const p=l.index;if(r.doubleProtoLoc!=null&&r.doubleProtoLoc.index>=p){r.doubleProtoLoc=null}if(r.shorthandAssignLoc!=null&&r.shorthandAssignLoc.index>=p){r.shorthandAssignLoc=null}if(r.privateKeyLoc!=null&&r.privateKeyLoc.index>=p){this.checkDestructuringPrivate(r);r.privateKeyLoc=null}if(r.voidPatternLoc!=null&&r.voidPatternLoc.index>=p){r.voidPatternLoc=null}}else{s.left=y}this.next();s.right=this.parseMaybeAssign();this.checkLVal(y,this.finishNode(s,"AssignmentExpression"));return s}else if(d){this.checkExpressionErrors(r,true)}if(p){const{type:r}=this.state;const s=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(r):tokenCanStartExpression(r)&&!this.match(54);if(s&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(S.YieldNotInGeneratorFunction,l);return this.parseYield(l)}}return y}parseMaybeConditional(r){const s=this.state.startLoc;const l=this.state.potentialArrowAt;const p=this.parseExprOps(r);if(this.shouldExitDescending(p,l)){return p}return this.parseConditional(p,s,r)}parseConditional(r,s,l){if(this.eat(17)){const l=this.startNodeAt(s);l.test=r;l.consequent=this.parseMaybeAssignAllowIn();this.expect(14);l.alternate=this.parseMaybeAssign();return this.finishNode(l,"ConditionalExpression")}return r}parseMaybeUnaryOrPrivate(r){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(r)}parseExprOps(r){const s=this.state.startLoc;const l=this.state.potentialArrowAt;const p=this.parseMaybeUnaryOrPrivate(r);if(this.shouldExitDescending(p,l)){return p}return this.parseExprOp(p,s,-1)}parseExprOp(r,s,l){if(this.isPrivateName(r)){const s=this.getPrivateNameSV(r);if(l>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58)){this.raise(S.PrivateInExpectedIn,r,{identifierName:s})}this.classScope.usePrivateName(s,r.loc.start)}const p=this.state.type;if(tokenIsOperator(p)&&(this.prodParam.hasIn||!this.match(58))){let d=tokenOperatorPrecedence(p);if(d>l){if(p===39){this.expectPlugin("pipelineOperator");if(this.state.inFSharpPipelineDirectBody){return r}this.checkPipelineAtInfixOperator(r,s)}const m=this.startNodeAt(s);m.left=r;m.operator=this.state.value;const y=p===41||p===42;const g=p===40;if(g){d=tokenOperatorPrecedence(42)}this.next();if(p===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait){throw this.raise(S.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}}m.right=this.parseExprOpRightExpr(p,d);const T=this.finishNode(m,y||g?"LogicalExpression":"BinaryExpression");const b=this.state.type;if(g&&(b===41||b===42)||y&&b===40){throw this.raise(S.MixingCoalesceWithLogical,this.state.startLoc)}return this.parseExprOp(T,s,l)}}return r}parseExprOpRightExpr(r,s){const l=this.state.startLoc;switch(r){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(s)))}if(this.getPluginOption("pipelineOperator","proposal")==="smart"){return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108)){throw this.raise(S.PipeBodyIsTighter,this.state.startLoc)}return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(r,s),l)}))}default:return this.parseExprOpBaseRightExpr(r,s)}}parseExprOpBaseRightExpr(r,s){const l=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),l,tokenIsRightAssociative(r)?s-1:s)}parseHackPipeBody(){var r;const{startLoc:s}=this.state;const l=this.parseMaybeAssign();const p=T.has(l.type);if(p&&!((r=l.extra)!=null&&r.parenthesized)){this.raise(S.PipeUnparenthesizedBody,s,{type:l.type})}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(S.PipeTopicUnused,s)}return l}checkExponentialAfterUnary(r){if(this.match(57)){this.raise(S.UnexpectedTokenUnaryExponentiation,r.argument)}}parseMaybeUnary(r,s){const l=this.state.startLoc;const p=this.isContextual(96);if(p&&this.recordAwaitIfAllowed()){this.next();const r=this.parseAwait(l);if(!s)this.checkExponentialAfterUnary(r);return r}const d=this.match(34);const m=this.startNode();if(tokenIsPrefix(this.state.type)){m.operator=this.state.value;m.prefix=true;if(this.match(72)){this.expectPlugin("throwExpressions")}const l=this.match(89);this.next();m.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(r,true);if(this.state.strict&&l){const r=m.argument;if(r.type==="Identifier"){this.raise(S.StrictDelete,m)}else if(this.hasPropertyAsPrivateName(r)){this.raise(S.DeletePrivateField,m)}}if(!d){if(!s){this.checkExponentialAfterUnary(m)}return this.finishNode(m,"UnaryExpression")}}const y=this.parseUpdate(m,d,r);if(p){const{type:r}=this.state;const s=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(r):tokenCanStartExpression(r)&&!this.match(54);if(s&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(S.AwaitNotInAsyncContext,l);return this.parseAwait(l)}}return y}parseUpdate(r,s,l){if(s){const s=r;this.checkLVal(s.argument,this.finishNode(s,"UpdateExpression"));return r}const p=this.state.startLoc;let d=this.parseExprSubscripts(l);if(this.checkExpressionErrors(l,false))return d;while(tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon()){const r=this.startNodeAt(p);r.operator=this.state.value;r.prefix=false;r.argument=d;this.next();this.checkLVal(d,d=this.finishNode(r,"UpdateExpression"))}return d}parseExprSubscripts(r){const s=this.state.startLoc;const l=this.state.potentialArrowAt;const p=this.parseExprAtom(r);if(this.shouldExitDescending(p,l)){return p}return this.parseSubscripts(p,s)}parseSubscripts(r,s,l){const p={optionalChainMember:false,maybeAsyncArrow:this.atPossibleAsyncArrow(r),stop:false};do{r=this.parseSubscript(r,s,l,p);p.maybeAsyncArrow=false}while(!p.stop);return r}parseSubscript(r,s,l,p){const{type:d}=this.state;if(!l&&d===15){return this.parseBind(r,s,l,p)}else if(tokenIsTemplate(d)){return this.parseTaggedTemplateExpression(r,s,p)}let m=false;if(d===18){if(l){this.raise(S.OptionalChainingNoNew,this.state.startLoc);if(this.lookaheadCharCode()===40){return this.stopParseSubscript(r,p)}}p.optionalChainMember=m=true;this.next()}if(!l&&this.match(10)){return this.parseCoverCallAndAsyncArrowHead(r,s,p,m)}else{const l=this.eat(0);if(l||m||this.eat(16)){return this.parseMember(r,s,p,l,m)}else{return this.stopParseSubscript(r,p)}}}stopParseSubscript(r,s){s.stop=true;return r}parseMember(r,s,l,p,d){const m=this.startNodeAt(s);m.object=r;m.computed=p;if(p){m.property=this.parseExpression();this.expect(3)}else if(this.match(139)){if(r.type==="Super"){this.raise(S.SuperPrivateField,s)}this.classScope.usePrivateName(this.state.value,this.state.startLoc);m.property=this.parsePrivateName()}else{m.property=this.parseIdentifier(true)}if(l.optionalChainMember){m.optional=d;return this.finishNode(m,"OptionalMemberExpression")}else{return this.finishNode(m,"MemberExpression")}}parseBind(r,s,l,p){const d=this.startNodeAt(s);d.object=r;this.next();d.callee=this.parseNoCallExpr();p.stop=true;return this.parseSubscripts(this.finishNode(d,"BindExpression"),s,l)}parseCoverCallAndAsyncArrowHead(r,s,l,p){const d=this.state.maybeInArrowParameters;let m=null;this.state.maybeInArrowParameters=true;this.next();const y=this.startNodeAt(s);y.callee=r;const{maybeAsyncArrow:g,optionalChainMember:T}=l;if(g){this.expressionScope.enter(newAsyncArrowScope());m=new ExpressionErrors}if(T){y.optional=p}if(p){y.arguments=this.parseCallExpressionArguments()}else{y.arguments=this.parseCallExpressionArguments(r.type!=="Super",y,m)}let b=this.finishCallExpression(y,T);if(g&&this.shouldParseAsyncArrow()&&!p){l.stop=true;this.checkDestructuringPrivate(m);this.expressionScope.validateAsPattern();this.expressionScope.exit();b=this.parseAsyncArrowFromCallExpression(this.startNodeAt(s),b)}else{if(g){this.checkExpressionErrors(m,true);this.expressionScope.exit()}this.toReferencedArguments(b)}this.state.maybeInArrowParameters=d;return b}toReferencedArguments(r,s){this.toReferencedListDeep(r.arguments,s)}parseTaggedTemplateExpression(r,s,l){const p=this.startNodeAt(s);p.tag=r;p.quasi=this.parseTemplate(true);if(l.optionalChainMember){this.raise(S.OptionalChainingNoTemplate,s)}return this.finishNode(p,"TaggedTemplateExpression")}atPossibleAsyncArrow(r){return r.type==="Identifier"&&r.name==="async"&&this.state.lastTokEndLoc.index===r.end&&!this.canInsertSemicolon()&&r.end-r.start===5&&this.offsetToSourcePos(r.start)===this.state.potentialArrowAt}finishCallExpression(r,s){if(r.callee.type==="Import"){if(r.arguments.length===0||r.arguments.length>2){this.raise(S.ImportCallArity,r)}else{for(const s of r.arguments){if(s.type==="SpreadElement"){this.raise(S.ImportCallSpreadArgument,s)}}}}return this.finishNode(r,s?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(r,s,l){const p=[];let d=true;const m=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;while(!this.eat(11)){if(d){d=false}else{this.expect(12);if(this.match(11)){if(s){this.addTrailingCommaExtraToNode(s)}this.next();break}}p.push(this.parseExprListItem(11,false,l,r))}this.state.inFSharpPipelineDirectBody=m;return p}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(r,s){var l;this.resetPreviousNodeTrailingComments(s);this.expect(19);this.parseArrowExpression(r,s.arguments,true,(l=s.extra)==null?void 0:l.trailingCommaLoc);if(s.innerComments){setInnerComments(r,s.innerComments)}if(s.callee.trailingComments){setInnerComments(r,s.callee.trailingComments)}return r}parseNoCallExpr(){const r=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),r,true)}parseExprAtom(r){let s;let l=null;const{type:p}=this.state;switch(p){case 79:return this.parseSuper();case 83:s=this.startNode();this.next();if(this.match(16)){return this.parseImportMetaPropertyOrPhaseCall(s)}if(this.match(10)){if(this.optionFlags&512){return this.parseImportCall(s)}else{return this.finishNode(s,"Import")}}else{this.raise(S.UnsupportedImport,this.state.lastTokStartLoc);return this.finishNode(s,"Import")}case 78:s=this.startNode();this.next();return this.finishNode(s,"ThisExpression");case 90:{return this.parseDo(this.startNode(),false)}case 56:case 31:{this.readRegexp();return this.parseRegExpLiteral(this.state.value)}case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(true);case 86:return this.parseBooleanLiteral(false);case 10:{const r=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(r)}case 0:{return this.parseArrayLike(3,true,false,r)}case 5:{return this.parseObjectLike(8,false,false,r)}case 68:return this.parseFunctionOrFunctionSent();case 26:l=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(l,this.startNode()),false);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(false);case 15:{s=this.startNode();this.next();s.object=null;const r=s.callee=this.parseNoCallExpr();if(r.type==="MemberExpression"){return this.finishNode(s,"BindExpression")}else{throw this.raise(S.UnsupportedBind,r)}}case 139:{this.raise(S.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value});return this.parsePrivateName()}case 33:{return this.parseTopicReferenceThenEqualsSign(54,"%")}case 32:{return this.parseTopicReferenceThenEqualsSign(44,"^")}case 37:case 38:{return this.parseTopicReference("hack")}case 44:case 54:case 27:{const r=this.getPluginOption("pipelineOperator","proposal");if(r){return this.parseTopicReference(r)}this.unexpected();break}case 47:{const r=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(r)||r===62){this.expectOnePlugin(["jsx","flow","typescript"])}else{this.unexpected()}break}default:{if(p===137){return this.parseDecimalLiteral(this.state.value)}else if(p===2||p===1){return this.parseArrayLike(this.state.type===2?4:3,false,true)}else if(p===6||p===7){return this.parseObjectLike(this.state.type===6?9:8,false,true)}}if(tokenIsIdentifier(p)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123){return this.parseModuleExpression()}const r=this.state.potentialArrowAt===this.state.start;const s=this.state.containsEsc;const l=this.parseIdentifier();if(!s&&l.name==="async"&&!this.canInsertSemicolon()){const{type:r}=this.state;if(r===68){this.resetPreviousNodeTrailingComments(l);this.next();return this.parseAsyncFunctionExpression(this.startNodeAtNode(l))}else if(tokenIsIdentifier(r)){if(this.lookaheadCharCode()===61){return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l))}else{return l}}else if(r===90){this.resetPreviousNodeTrailingComments(l);return this.parseDo(this.startNodeAtNode(l),true)}}if(r&&this.match(19)&&!this.canInsertSemicolon()){this.next();return this.parseArrowExpression(this.startNodeAtNode(l),[l],false)}return l}else{this.unexpected()}}}parseTopicReferenceThenEqualsSign(r,s){const l=this.getPluginOption("pipelineOperator","proposal");if(l){this.state.type=r;this.state.value=s;this.state.pos--;this.state.end--;this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1);return this.parseTopicReference(l)}else{this.unexpected()}}parseTopicReference(r){const s=this.startNode();const l=this.state.startLoc;const p=this.state.type;this.next();return this.finishTopicReference(s,l,r,p)}finishTopicReference(r,s,l,p){if(this.testTopicReferenceConfiguration(l,s,p)){if(l==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(S.PipeTopicUnbound,s)}this.registerTopicReference();return this.finishNode(r,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(S.PrimaryTopicNotAllowed,s)}this.registerTopicReference();return this.finishNode(r,"PipelinePrimaryTopicReference")}}else{throw this.raise(S.PipeTopicUnconfiguredToken,s,{token:tokenLabelName(p)})}}testTopicReferenceConfiguration(r,s,l){switch(r){case"hack":{return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(l)}])}case"smart":return l===27;default:throw this.raise(S.PipeTopicRequiresHackPipes,s)}}parseAsyncArrowUnaryFunction(r){this.prodParam.enter(functionFlags(true,this.prodParam.hasYield));const s=[this.parseIdentifier()];this.prodParam.exit();if(this.hasPrecedingLineBreak()){this.raise(S.LineTerminatorBeforeArrow,this.state.curPosition())}this.expect(19);return this.parseArrowExpression(r,s,true)}parseDo(r,s){this.expectPlugin("doExpressions");if(s){this.expectPlugin("asyncDoExpressions")}r.async=s;this.next();const l=this.state.labels;this.state.labels=[];if(s){this.prodParam.enter(2);r.body=this.parseBlock();this.prodParam.exit()}else{r.body=this.parseBlock()}this.state.labels=l;return this.finishNode(r,"DoExpression")}parseSuper(){const r=this.startNode();this.next();if(this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)){this.raise(S.SuperNotAllowed,r)}else if(!this.scope.allowSuper&&!(this.optionFlags&16)){this.raise(S.UnexpectedSuper,r)}if(!this.match(10)&&!this.match(0)&&!this.match(16)){this.raise(S.UnsupportedSuper,r)}return this.finishNode(r,"Super")}parsePrivateName(){const r=this.startNode();const s=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1));const l=this.state.value;this.next();r.id=this.createIdentifier(s,l);return this.finishNode(r,"PrivateName")}parseFunctionOrFunctionSent(){const r=this.startNode();this.next();if(this.prodParam.hasYield&&this.match(16)){const s=this.createIdentifier(this.startNodeAtNode(r),"function");this.next();if(this.match(103)){this.expectPlugin("functionSent")}else if(!this.hasPlugin("functionSent")){this.unexpected()}return this.parseMetaProperty(r,s,"sent")}return this.parseFunction(r)}parseMetaProperty(r,s,l){r.meta=s;const p=this.state.containsEsc;r.property=this.parseIdentifier(true);if(r.property.name!==l||p){this.raise(S.UnsupportedMetaProperty,r.property,{target:s.name,onlyValidPropertyName:l})}return this.finishNode(r,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(r){this.next();if(this.isContextual(105)||this.isContextual(97)){const s=this.isContextual(105);this.expectPlugin(s?"sourcePhaseImports":"deferredImportEvaluation");this.next();r.phase=s?"source":"defer";return this.parseImportCall(r)}else{const s=this.createIdentifierAt(this.startNodeAtNode(r),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule){this.raise(S.ImportMetaOutsideModule,s)}this.sawUnambiguousESM=true}return this.parseMetaProperty(r,s,"meta")}}parseLiteralAtNode(r,s,l){this.addExtra(l,"rawValue",r);this.addExtra(l,"raw",this.input.slice(this.offsetToSourcePos(l.start),this.state.end));l.value=r;this.next();return this.finishNode(l,s)}parseLiteral(r,s){const l=this.startNode();return this.parseLiteralAtNode(r,s,l)}parseStringLiteral(r){return this.parseLiteral(r,"StringLiteral")}parseNumericLiteral(r){return this.parseLiteral(r,"NumericLiteral")}parseBigIntLiteral(r){{return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(r){return this.parseLiteral(r,"DecimalLiteral")}parseRegExpLiteral(r){const s=this.startNode();this.addExtra(s,"raw",this.input.slice(this.offsetToSourcePos(s.start),this.state.end));s.pattern=r.pattern;s.flags=r.flags;this.next();return this.finishNode(s,"RegExpLiteral")}parseBooleanLiteral(r){const s=this.startNode();s.value=r;this.next();return this.finishNode(s,"BooleanLiteral")}parseNullLiteral(){const r=this.startNode();this.next();return this.finishNode(r,"NullLiteral")}parseParenAndDistinguishExpression(r){const s=this.state.startLoc;let l;this.next();this.expressionScope.enter(newArrowHeadScope());const p=this.state.maybeInArrowParameters;const d=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true;this.state.inFSharpPipelineDirectBody=false;const m=this.state.startLoc;const y=[];const g=new ExpressionErrors;let T=true;let b;let E;while(!this.match(11)){if(T){T=false}else{this.expect(12,g.optionalParametersLoc===null?null:g.optionalParametersLoc);if(this.match(11)){E=this.state.startLoc;break}}if(this.match(21)){const r=this.state.startLoc;b=this.state.startLoc;y.push(this.parseParenItem(this.parseRestBinding(),r));if(!this.checkCommaAfterRest(41)){break}}else{y.push(this.parseMaybeAssignAllowInOrVoidPattern(11,g,this.parseParenItem))}}const S=this.state.lastTokEndLoc;this.expect(11);this.state.maybeInArrowParameters=p;this.state.inFSharpPipelineDirectBody=d;let _=this.startNodeAt(s);if(r&&this.shouldParseArrow(y)&&(_=this.parseArrow(_))){this.checkDestructuringPrivate(g);this.expressionScope.validateAsPattern();this.expressionScope.exit();this.parseArrowExpression(_,y,false);return _}this.expressionScope.exit();if(!y.length){this.unexpected(this.state.lastTokStartLoc)}if(E)this.unexpected(E);if(b)this.unexpected(b);this.checkExpressionErrors(g,true);this.toReferencedListDeep(y,true);if(y.length>1){l=this.startNodeAt(m);l.expressions=y;this.finishNode(l,"SequenceExpression");this.resetEndLocation(l,S)}else{l=y[0]}return this.wrapParenthesis(s,l)}wrapParenthesis(r,s){if(!(this.optionFlags&1024)){this.addExtra(s,"parenthesized",true);this.addExtra(s,"parenStart",r.index);this.takeSurroundingComments(s,r.index,this.state.lastTokEndLoc.index);return s}const l=this.startNodeAt(r);l.expression=s;return this.finishNode(l,"ParenthesizedExpression")}shouldParseArrow(r){return!this.canInsertSemicolon()}parseArrow(r){if(this.eat(19)){return r}}parseParenItem(r,s){return r}parseNewOrNewTarget(){const r=this.startNode();this.next();if(this.match(16)){const s=this.createIdentifier(this.startNodeAtNode(r),"new");this.next();const l=this.parseMetaProperty(r,s,"target");if(!this.scope.allowNewTarget){this.raise(S.UnexpectedNewTarget,l)}return l}return this.parseNew(r)}parseNew(r){this.parseNewCallee(r);if(this.eat(10)){const s=this.parseExprList(11);this.toReferencedList(s);r.arguments=s}else{r.arguments=[]}return this.finishNode(r,"NewExpression")}parseNewCallee(r){const s=this.match(83);const l=this.parseNoCallExpr();r.callee=l;if(s&&(l.type==="Import"||l.type==="ImportExpression")){this.raise(S.ImportCallNotNewExpression,l)}}parseTemplateElement(r){const{start:s,startLoc:l,end:p,value:d}=this.state;const m=s+1;const y=this.startNodeAt(createPositionWithColumnOffset(l,1));if(d===null){if(!r){this.raise(S.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1))}}const g=this.match(24);const T=g?-1:-2;const b=p+T;y.value={raw:this.input.slice(m,b).replace(/\r\n?/g,"\n"),cooked:d===null?null:d.slice(1,T)};y.tail=g;this.next();const E=this.finishNode(y,"TemplateElement");this.resetEndLocation(E,createPositionWithColumnOffset(this.state.lastTokEndLoc,T));return E}parseTemplate(r){const s=this.startNode();let l=this.parseTemplateElement(r);const p=[l];const d=[];while(!l.tail){d.push(this.parseTemplateSubstitution());this.readTemplateContinuation();p.push(l=this.parseTemplateElement(r))}s.expressions=d;s.quasis=p;return this.finishNode(s,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(r,s,l,p){if(l){this.expectPlugin("recordAndTuple")}const d=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;let m=false;let y=true;const g=this.startNode();g.properties=[];this.next();while(!this.match(r)){if(y){y=false}else{this.expect(12);if(this.match(r)){this.addTrailingCommaExtraToNode(g);break}}let d;if(s){d=this.parseBindingProperty()}else{d=this.parsePropertyDefinition(p);m=this.checkProto(d,l,m,p)}if(l&&!this.isObjectProperty(d)&&d.type!=="SpreadElement"){this.raise(S.InvalidRecordProperty,d)}{if(d.shorthand){this.addExtra(d,"shorthand",true)}}g.properties.push(d)}this.next();this.state.inFSharpPipelineDirectBody=d;let T="ObjectExpression";if(s){T="ObjectPattern"}else if(l){T="RecordExpression"}return this.finishNode(g,T)}addTrailingCommaExtraToNode(r){this.addExtra(r,"trailingComma",this.state.lastTokStartLoc.index);this.addExtra(r,"trailingCommaLoc",this.state.lastTokStartLoc,false)}maybeAsyncOrAccessorProp(r){return!r.computed&&r.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(r){let s=[];if(this.match(26)){if(this.hasPlugin("decorators")){this.raise(S.UnsupportedPropertyDecorator,this.state.startLoc)}while(this.match(26)){s.push(this.parseDecorator())}}const l=this.startNode();let p=false;let d=false;let m;if(this.match(21)){if(s.length)this.unexpected();return this.parseSpread()}if(s.length){l.decorators=s;s=[]}l.method=false;if(r){m=this.state.startLoc}let y=this.eat(55);this.parsePropertyNamePrefixOperator(l);const g=this.state.containsEsc;this.parsePropertyName(l,r);if(!y&&!g&&this.maybeAsyncOrAccessorProp(l)){const{key:r}=l;const s=r.name;if(s==="async"&&!this.hasPrecedingLineBreak()){p=true;this.resetPreviousNodeTrailingComments(r);y=this.eat(55);this.parsePropertyName(l)}if(s==="get"||s==="set"){d=true;this.resetPreviousNodeTrailingComments(r);l.kind=s;if(this.match(55)){y=true;this.raise(S.AccessorIsGenerator,this.state.curPosition(),{kind:s});this.next()}this.parsePropertyName(l)}}return this.parseObjPropValue(l,m,y,p,false,d,r)}getGetterSetterExpectedParamCount(r){return r.kind==="get"?0:1}getObjectOrClassMethodParams(r){return r.params}checkGetterSetterParams(r){var s;const l=this.getGetterSetterExpectedParamCount(r);const p=this.getObjectOrClassMethodParams(r);if(p.length!==l){this.raise(r.kind==="get"?S.BadGetterArity:S.BadSetterArity,r)}if(r.kind==="set"&&((s=p[p.length-1])==null?void 0:s.type)==="RestElement"){this.raise(S.BadSetterRestParameter,r)}}parseObjectMethod(r,s,l,p,d){if(d){const l=this.parseMethod(r,s,false,false,false,"ObjectMethod");this.checkGetterSetterParams(l);return l}if(l||s||this.match(10)){if(p)this.unexpected();r.kind="method";r.method=true;return this.parseMethod(r,s,l,false,false,"ObjectMethod")}}parseObjectProperty(r,s,l,p){r.shorthand=false;if(this.eat(14)){r.value=l?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,p);return this.finishObjectProperty(r)}if(!r.computed&&r.key.type==="Identifier"){this.checkReservedWord(r.key.name,r.key.loc.start,true,false);if(l){r.value=this.parseMaybeDefault(s,this.cloneIdentifier(r.key))}else if(this.match(29)){const l=this.state.startLoc;if(p!=null){if(p.shorthandAssignLoc===null){p.shorthandAssignLoc=l}}else{this.raise(S.InvalidCoverInitializedName,l)}r.value=this.parseMaybeDefault(s,this.cloneIdentifier(r.key))}else{r.value=this.cloneIdentifier(r.key)}r.shorthand=true;return this.finishObjectProperty(r)}}finishObjectProperty(r){return this.finishNode(r,"ObjectProperty")}parseObjPropValue(r,s,l,p,d,m,y){const g=this.parseObjectMethod(r,l,p,d,m)||this.parseObjectProperty(r,s,d,y);if(!g)this.unexpected();return g}parsePropertyName(r,s){if(this.eat(0)){r.computed=true;r.key=this.parseMaybeAssignAllowIn();this.expect(3)}else{const{type:l,value:p}=this.state;let d;if(tokenIsKeywordOrIdentifier(l)){d=this.parseIdentifier(true)}else{switch(l){case 135:d=this.parseNumericLiteral(p);break;case 134:d=this.parseStringLiteral(p);break;case 136:d=this.parseBigIntLiteral(p);break;case 139:{const r=this.state.startLoc;if(s!=null){if(s.privateKeyLoc===null){s.privateKeyLoc=r}}else{this.raise(S.UnexpectedPrivateField,r)}d=this.parsePrivateName();break}default:if(l===137){d=this.parseDecimalLiteral(p);break}this.unexpected()}}r.key=d;if(l!==139){r.computed=false}}}initFunction(r,s){r.id=null;r.generator=false;r.async=s}parseMethod(r,s,l,p,d,m,y=false){this.initFunction(r,l);r.generator=s;this.scope.enter(514|16|(y?576:0)|(d?32:0));this.prodParam.enter(functionFlags(l,r.generator));this.parseFunctionParams(r,p);const g=this.parseFunctionBodyAndFinish(r,m,true);this.prodParam.exit();this.scope.exit();return g}parseArrayLike(r,s,l,p){if(l){this.expectPlugin("recordAndTuple")}const d=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const m=this.startNode();this.next();m.elements=this.parseExprList(r,!l,p,m);this.state.inFSharpPipelineDirectBody=d;return this.finishNode(m,l?"TupleExpression":"ArrayExpression")}parseArrowExpression(r,s,l,p){this.scope.enter(514|4);let d=functionFlags(l,false);if(!this.match(5)&&this.prodParam.hasIn){d|=8}this.prodParam.enter(d);this.initFunction(r,l);const m=this.state.maybeInArrowParameters;if(s){this.state.maybeInArrowParameters=true;this.setArrowFunctionParameters(r,s,p)}this.state.maybeInArrowParameters=false;this.parseFunctionBody(r,true);this.prodParam.exit();this.scope.exit();this.state.maybeInArrowParameters=m;return this.finishNode(r,"ArrowFunctionExpression")}setArrowFunctionParameters(r,s,l){this.toAssignableList(s,l,false);r.params=s}parseFunctionBodyAndFinish(r,s,l=false){this.parseFunctionBody(r,false,l);return this.finishNode(r,s)}parseFunctionBody(r,s,l=false){const p=s&&!this.match(5);this.expressionScope.enter(newExpressionScope());if(p){r.body=this.parseMaybeAssign();this.checkParams(r,false,s,false)}else{const p=this.state.strict;const d=this.state.labels;this.state.labels=[];this.prodParam.enter(this.prodParam.currentFlags()|4);r.body=this.parseBlock(true,false,(d=>{const m=!this.isSimpleParamList(r.params);if(d&&m){this.raise(S.IllegalLanguageModeDirective,(r.kind==="method"||r.kind==="constructor")&&!!r.key?r.key.loc.end:r)}const y=!p&&this.state.strict;this.checkParams(r,!this.state.strict&&!s&&!l&&!m,s,y);if(this.state.strict&&r.id){this.checkIdentifier(r.id,65,y)}}));this.prodParam.exit();this.state.labels=d}this.expressionScope.exit()}isSimpleParameter(r){return r.type==="Identifier"}isSimpleParamList(r){for(let s=0,l=r.length;s<l;s++){if(!this.isSimpleParameter(r[s]))return false}return true}checkParams(r,s,l,p=true){const d=!s&&new Set;const m={type:"FormalParameters"};for(const s of r.params){this.checkLVal(s,m,5,d,p)}}parseExprList(r,s,l,p){const d=[];let m=true;while(!this.eat(r)){if(m){m=false}else{this.expect(12);if(this.match(r)){if(p){this.addTrailingCommaExtraToNode(p)}this.next();break}}d.push(this.parseExprListItem(r,s,l))}return d}parseExprListItem(r,s,l,p){let d;if(this.match(12)){if(!s){this.raise(S.UnexpectedToken,this.state.curPosition(),{unexpected:","})}d=null}else if(this.match(21)){const r=this.state.startLoc;d=this.parseParenItem(this.parseSpread(l),r)}else if(this.match(17)){this.expectPlugin("partialApplication");if(!p){this.raise(S.UnexpectedArgumentPlaceholder,this.state.startLoc)}const r=this.startNode();this.next();d=this.finishNode(r,"ArgumentPlaceholder")}else{d=this.parseMaybeAssignAllowInOrVoidPattern(r,l,this.parseParenItem)}return d}parseIdentifier(r){const s=this.startNode();const l=this.parseIdentifierName(r);return this.createIdentifier(s,l)}createIdentifier(r,s){r.name=s;r.loc.identifierName=s;return this.finishNode(r,"Identifier")}createIdentifierAt(r,s,l){r.name=s;r.loc.identifierName=s;return this.finishNodeAt(r,"Identifier",l)}parseIdentifierName(r){let s;const{startLoc:l,type:p}=this.state;if(tokenIsKeywordOrIdentifier(p)){s=this.state.value}else{this.unexpected()}const d=tokenKeywordOrIdentifierIsKeyword(p);if(r){if(d){this.replaceToken(132)}}else{this.checkReservedWord(s,l,d,false)}this.next();return s}checkReservedWord(r,s,l,p){if(r.length>10){return}if(!canBeReservedWord(r)){return}if(l&&isKeyword(r)){this.raise(S.UnexpectedKeyword,s,{keyword:r});return}const d=!this.state.strict?isReservedWord:p?isStrictBindReservedWord:isStrictReservedWord;if(d(r,this.inModule)){this.raise(S.UnexpectedReservedWord,s,{reservedWord:r});return}else if(r==="yield"){if(this.prodParam.hasYield){this.raise(S.YieldBindingIdentifier,s);return}}else if(r==="await"){if(this.prodParam.hasAwait){this.raise(S.AwaitBindingIdentifier,s);return}if(this.scope.inStaticBlock){this.raise(S.AwaitBindingIdentifierInStaticBlock,s);return}this.expressionScope.recordAsyncArrowParametersError(s)}else if(r==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(S.ArgumentsInClass,s);return}}}recordAwaitIfAllowed(){const r=this.prodParam.hasAwait;if(r&&!this.scope.inFunction){this.state.hasTopLevelAwait=true}return r}parseAwait(r){const s=this.startNodeAt(r);this.expressionScope.recordParameterInitializerError(S.AwaitExpressionFormalParameter,s);if(this.eat(55)){this.raise(S.ObsoleteAwaitStar,s)}if(!this.scope.inFunction&&!(this.optionFlags&1)){if(this.isAmbiguousPrefixOrIdentifier()){this.ambiguousScriptDifferentAst=true}else{this.sawUnambiguousESM=true}}if(!this.state.soloAwait){s.argument=this.parseMaybeUnary(null,true)}return this.finishNode(s,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return true;const{type:r}=this.state;return r===53||r===10||r===0||tokenIsTemplate(r)||r===102&&!this.state.containsEsc||r===138||r===56||this.hasPlugin("v8intrinsic")&&r===54}parseYield(r){const s=this.startNodeAt(r);this.expressionScope.recordParameterInitializerError(S.YieldInParameter,s);let l=false;let p=null;if(!this.hasPrecedingLineBreak()){l=this.eat(55);switch(this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!l)break;default:p=this.parseMaybeAssign()}}s.delegate=l;s.argument=p;return this.finishNode(s,"YieldExpression")}parseImportCall(r){this.next();r.source=this.parseMaybeAssignAllowIn();r.options=null;if(this.eat(12)){if(!this.match(11)){r.options=this.parseMaybeAssignAllowIn();if(this.eat(12)){this.addTrailingCommaExtraToNode(r.options);if(!this.match(11)){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(S.ImportCallArity,r)}}}else{this.addTrailingCommaExtraToNode(r.source)}}this.expect(11);return this.finishNode(r,"ImportExpression")}checkPipelineAtInfixOperator(r,s){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(r.type==="SequenceExpression"){this.raise(S.PipelineHeadSequenceExpression,s)}}}parseSmartPipelineBodyInStyle(r,s){if(this.isSimpleReference(r)){const l=this.startNodeAt(s);l.callee=r;return this.finishNode(l,"PipelineBareFunction")}else{const l=this.startNodeAt(s);this.checkSmartPipeTopicBodyEarlyErrors(s);l.expression=r;return this.finishNode(l,"PipelineTopicExpression")}}isSimpleReference(r){switch(r.type){case"MemberExpression":return!r.computed&&this.isSimpleReference(r.object);case"Identifier":return true;default:return false}}checkSmartPipeTopicBodyEarlyErrors(r){if(this.match(19)){throw this.raise(S.PipelineBodyNoArrow,this.state.startLoc)}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(S.PipelineTopicUnused,r)}}withTopicBindingContext(r){const s=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return r()}finally{this.state.topicContext=s}}withSmartMixTopicForbiddingContext(r){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const s=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return r()}finally{this.state.topicContext=s}}else{return r()}}withSoloAwaitPermittingContext(r){const s=this.state.soloAwait;this.state.soloAwait=true;try{return r()}finally{this.state.soloAwait=s}}allowInAnd(r){const s=this.prodParam.currentFlags();const l=8&~s;if(l){this.prodParam.enter(s|8);try{return r()}finally{this.prodParam.exit()}}return r()}disallowInAnd(r){const s=this.prodParam.currentFlags();const l=8&s;if(l){this.prodParam.enter(s&~8);try{return r()}finally{this.prodParam.exit()}}return r()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(r){const s=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const l=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=true;const p=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),s,r);this.state.inFSharpPipelineDirectBody=l;return p}parseModuleExpression(){this.expectPlugin("moduleBlocks");const r=this.startNode();this.next();if(!this.match(5)){this.unexpected(null,5)}const s=this.startNodeAt(this.state.endLoc);this.next();const l=this.initializeScopes(true);this.enterInitialScopes();try{r.body=this.parseProgram(s,8,"module")}finally{l()}return this.finishNode(r,"ModuleExpression")}parseVoidPattern(r){this.expectPlugin("discardBinding");const s=this.startNode();if(r!=null){r.voidPatternLoc=this.state.startLoc}this.next();return this.finishNode(s,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(r,s,l){if(s!=null&&this.match(88)){const l=this.lookaheadCharCode();if(l===44||l===(r===3?93:r===8?125:41)||l===61){return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(s))}}return this.parseMaybeAssignAllowIn(s,l)}parsePropertyNamePrefixOperator(r){}}const ge={kind:1},Te={kind:2};const be=/[\uD800-\uDFFF]/u;const Ee=/in(?:stanceof)?/y;function babel7CompatTokens(r,s,l){for(let p=0;p<r.length;p++){const d=r[p];const{type:m}=d;if(typeof m==="number"){{if(m===139){const{loc:s,start:l,value:m,end:y}=d;const g=l+1;const T=createPositionWithColumnOffset(s.start,1);r.splice(p,1,new Token({type:getExportedToken(27),value:"#",start:l,end:g,startLoc:s.start,endLoc:T}),new Token({type:getExportedToken(132),value:m,start:g,end:y,startLoc:T,endLoc:s.end}));p++;continue}if(tokenIsTemplate(m)){const{loc:y,start:g,value:T,end:b}=d;const E=g+1;const S=createPositionWithColumnOffset(y.start,1);let _;if(s.charCodeAt(g-l)===96){_=new Token({type:getExportedToken(22),value:"`",start:g,end:E,startLoc:y.start,endLoc:S})}else{_=new Token({type:getExportedToken(8),value:"}",start:g,end:E,startLoc:y.start,endLoc:S})}let x,w,v,A;if(m===24){w=b-1;v=createPositionWithColumnOffset(y.end,-1);x=T===null?null:T.slice(1,-1);A=new Token({type:getExportedToken(22),value:"`",start:w,end:b,startLoc:v,endLoc:y.end})}else{w=b-2;v=createPositionWithColumnOffset(y.end,-2);x=T===null?null:T.slice(1,-2);A=new Token({type:getExportedToken(23),value:"${",start:w,end:b,startLoc:v,endLoc:y.end})}r.splice(p,1,_,new Token({type:getExportedToken(20),value:x,start:E,end:w,startLoc:S,endLoc:v}),A);p+=2;continue}}d.type=getExportedToken(m)}}return r}class StatementParser extends ExpressionParser{parseTopLevel(r,s){r.program=this.parseProgram(s,140,this.options.sourceType==="module"?"module":"script");r.comments=this.comments;if(this.optionFlags&256){r.tokens=babel7CompatTokens(this.tokens,this.input,this.startIndex)}return this.finishNode(r,"File")}parseProgram(r,s,l){r.sourceType=l;r.interpreter=this.parseInterpreterDirective();this.parseBlockBody(r,true,true,s);if(this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0){for(const[r,s]of Array.from(this.scope.undefinedExports)){this.raise(S.ModuleExportUndefined,s,{localName:r})}}this.addExtra(r,"topLevelAwait",this.state.hasTopLevelAwait)}let p;if(s===140){p=this.finishNode(r,"Program")}else{p=this.finishNodeAt(r,"Program",createPositionWithColumnOffset(this.state.startLoc,-1))}return p}stmtToDirective(r){const s=this.castNodeTo(r,"Directive");const l=this.castNodeTo(r.expression,"DirectiveLiteral");const p=l.value;const d=this.input.slice(this.offsetToSourcePos(l.start),this.offsetToSourcePos(l.end));const m=l.value=d.slice(1,-1);this.addExtra(l,"raw",d);this.addExtra(l,"rawValue",m);this.addExtra(l,"expressionValue",p);s.value=l;delete r.expression;return s}parseInterpreterDirective(){if(!this.match(28)){return null}const r=this.startNode();r.value=this.state.value;this.next();return this.finishNode(r,"InterpreterDirective")}isLet(){if(!this.isContextual(100)){return false}return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107)){return false}const r=this.nextTokenInLineStart();const s=this.codePointAtPos(r);return this.chStartsBindingIdentifier(s,r)}isForUsing(){if(!this.isContextual(107)){return false}const r=this.nextTokenInLineStart();const s=this.codePointAtPos(r);if(this.isUnparsedContextual(r,"of")){const s=this.lookaheadCharCodeSince(r+2);if(s!==61&&s!==58&&s!==59){return false}}if(this.chStartsBindingIdentifier(s,r)||this.isUnparsedContextual(r,"void")){return true}return false}isAwaitUsing(){if(!this.isContextual(96)){return false}let r=this.nextTokenInLineStart();if(this.isUnparsedContextual(r,"using")){r=this.nextTokenInLineStartSince(r+5);const s=this.codePointAtPos(r);if(this.chStartsBindingIdentifier(s,r)){return true}}return false}chStartsBindingIdentifier(r,s){if(isIdentifierStart(r)){Ee.lastIndex=s;if(Ee.test(this.input)){const r=this.codePointAtPos(Ee.lastIndex);if(!isIdentifierChar(r)&&r!==92){return false}}return true}else if(r===92){return true}else{return false}}chStartsBindingPattern(r){return r===91||r===123}hasFollowingBindingAtom(){const r=this.nextTokenStart();const s=this.codePointAtPos(r);return this.chStartsBindingPattern(s)||this.chStartsBindingIdentifier(s,r)}hasInLineFollowingBindingIdentifierOrBrace(){const r=this.nextTokenInLineStart();const s=this.codePointAtPos(r);return s===123||this.chStartsBindingIdentifier(s,r)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(1|2|4|8)}parseStatementListItem(){return this.parseStatementLike(2|4|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(r=false){let s=0;if(this.options.annexB&&!this.state.strict){s|=4;if(r){s|=8}}return this.parseStatementLike(s)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(r){let s=null;if(this.match(26)){s=this.parseDecorators(true)}return this.parseStatementContent(r,s)}parseStatementContent(r,s){const l=this.state.type;const p=this.startNode();const d=!!(r&2);const m=!!(r&4);const y=r&1;switch(l){case 60:return this.parseBreakContinueStatement(p,true);case 63:return this.parseBreakContinueStatement(p,false);case 64:return this.parseDebuggerStatement(p);case 90:return this.parseDoWhileStatement(p);case 91:return this.parseForStatement(p);case 68:if(this.lookaheadCharCode()===46)break;if(!m){this.raise(this.state.strict?S.StrictFunction:this.options.annexB?S.SloppyFunctionAnnexB:S.SloppyFunction,this.state.startLoc)}return this.parseFunctionStatement(p,false,!d&&m);case 80:if(!d)this.unexpected();return this.parseClass(this.maybeTakeDecorators(s,p),true);case 69:return this.parseIfStatement(p);case 70:return this.parseReturnStatement(p);case 71:return this.parseSwitchStatement(p);case 72:return this.parseThrowStatement(p);case 73:return this.parseTryStatement(p);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing()){this.raise(S.UnexpectedUsingDeclaration,p)}else if(!d){this.raise(S.UnexpectedLexicalDeclaration,p)}else if(!this.recordAwaitIfAllowed()){this.raise(S.AwaitUsingNotInAsyncContext,p)}this.next();return this.parseVarStatement(p,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace()){break}if(!this.allowsUsing()){this.raise(S.UnexpectedUsingDeclaration,this.state.startLoc)}else if(!d){this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc)}return this.parseVarStatement(p,"using");case 100:{if(this.state.containsEsc){break}const r=this.nextTokenStart();const s=this.codePointAtPos(r);if(s!==91){if(!d&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(s,r)&&s!==123){break}}}case 75:{if(!d){this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc)}}case 74:{const r=this.state.value;return this.parseVarStatement(p,r)}case 92:return this.parseWhileStatement(p);case 76:return this.parseWithStatement(p);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(p);case 83:{const r=this.lookaheadCharCode();if(r===40||r===46){break}}case 82:{if(!(this.optionFlags&8)&&!y){this.raise(S.UnexpectedImportExport,this.state.startLoc)}this.next();let r;if(l===83){r=this.parseImport(p)}else{r=this.parseExport(p,s)}this.assertModuleNodeAllowed(r);return r}default:{if(this.isAsyncFunction()){if(!d){this.raise(S.AsyncFunctionInSingleStatementContext,this.state.startLoc)}this.next();return this.parseFunctionStatement(p,true,!d&&m)}}}const g=this.state.value;const T=this.parseExpression();if(tokenIsIdentifier(l)&&T.type==="Identifier"&&this.eat(14)){return this.parseLabeledStatement(p,g,T,r)}else{return this.parseExpressionStatement(p,T,s)}}assertModuleNodeAllowed(r){if(!(this.optionFlags&8)&&!this.inModule){this.raise(S.ImportOutsideModule,r)}}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return true;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==false}maybeTakeDecorators(r,s,l){if(r){var p;if((p=s.decorators)!=null&&p.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean"){this.raise(S.DecoratorsBeforeAfterExport,s.decorators[0])}s.decorators.unshift(...r)}else{s.decorators=r}this.resetStartLocationFromNode(s,r[0]);if(l)this.resetStartLocationFromNode(l,s)}return s}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(r){const s=[];do{s.push(this.parseDecorator())}while(this.match(26));if(this.match(82)){if(!r){this.unexpected()}if(!this.decoratorsEnabledBeforeExport()){this.raise(S.DecoratorExportClass,this.state.startLoc)}}else if(!this.canHaveLeadingDecorator()){throw this.raise(S.UnexpectedLeadingDecorator,this.state.startLoc)}return s}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const r=this.startNode();this.next();if(this.hasPlugin("decorators")){const s=this.state.startLoc;let l;if(this.match(10)){const s=this.state.startLoc;this.next();l=this.parseExpression();this.expect(11);l=this.wrapParenthesis(s,l);const p=this.state.startLoc;r.expression=this.parseMaybeDecoratorArguments(l,s);if(this.getPluginOption("decorators","allowCallParenthesized")===false&&r.expression!==l){this.raise(S.DecoratorArgumentsOutsideParentheses,p)}}else{l=this.parseIdentifier(false);while(this.eat(16)){const r=this.startNodeAt(s);r.object=l;if(this.match(139)){this.classScope.usePrivateName(this.state.value,this.state.startLoc);r.property=this.parsePrivateName()}else{r.property=this.parseIdentifier(true)}r.computed=false;l=this.finishNode(r,"MemberExpression")}r.expression=this.parseMaybeDecoratorArguments(l,s)}}else{r.expression=this.parseExprSubscripts()}return this.finishNode(r,"Decorator")}parseMaybeDecoratorArguments(r,s){if(this.eat(10)){const l=this.startNodeAt(s);l.callee=r;l.arguments=this.parseCallExpressionArguments();this.toReferencedList(l.arguments);return this.finishNode(l,"CallExpression")}return r}parseBreakContinueStatement(r,s){this.next();if(this.isLineTerminator()){r.label=null}else{r.label=this.parseIdentifier();this.semicolon()}this.verifyBreakContinue(r,s);return this.finishNode(r,s?"BreakStatement":"ContinueStatement")}verifyBreakContinue(r,s){let l;for(l=0;l<this.state.labels.length;++l){const p=this.state.labels[l];if(r.label==null||p.name===r.label.name){if(p.kind!=null&&(s||p.kind===1)){break}if(r.label&&s)break}}if(l===this.state.labels.length){const l=s?"BreakStatement":"ContinueStatement";this.raise(S.IllegalBreakContinue,r,{type:l})}}parseDebuggerStatement(r){this.next();this.semicolon();return this.finishNode(r,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const r=this.parseExpression();this.expect(11);return r}parseDoWhileStatement(r){this.next();this.state.labels.push(ge);r.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();this.expect(92);r.test=this.parseHeaderExpression();this.eat(13);return this.finishNode(r,"DoWhileStatement")}parseForStatement(r){this.next();this.state.labels.push(ge);let s=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()){s=this.state.startLoc;this.next()}this.scope.enter(0);this.expect(10);if(this.match(13)){if(s!==null){this.unexpected(s)}return this.parseFor(r,null)}const l=this.isContextual(100);{const p=this.isAwaitUsing();const d=p||this.isForUsing();const m=l&&this.hasFollowingBindingAtom()||d;if(this.match(74)||this.match(75)||m){const l=this.startNode();let m;if(p){m="await using";if(!this.recordAwaitIfAllowed()){this.raise(S.AwaitUsingNotInAsyncContext,this.state.startLoc)}this.next()}else{m=this.state.value}this.next();this.parseVar(l,true,m);const y=this.finishNode(l,"VariableDeclaration");const g=this.match(58);if(g&&d){this.raise(S.ForInUsing,y)}if((g||this.isContextual(102))&&y.declarations.length===1){return this.parseForIn(r,y,s)}if(s!==null){this.unexpected(s)}return this.parseFor(r,y)}}const p=this.isContextual(95);const d=new ExpressionErrors;const m=this.parseExpression(true,d);const y=this.isContextual(102);if(y){if(l){this.raise(S.ForOfLet,m)}if(s===null&&p&&m.type==="Identifier"){this.raise(S.ForOfAsync,m)}}if(y||this.match(58)){this.checkDestructuringPrivate(d);this.toAssignable(m,true);const l=y?"ForOfStatement":"ForInStatement";this.checkLVal(m,{type:l});return this.parseForIn(r,m,s)}else{this.checkExpressionErrors(d,true)}if(s!==null){this.unexpected(s)}return this.parseFor(r,m)}parseFunctionStatement(r,s,l){this.next();return this.parseFunction(r,1|(l?2:0)|(s?8:0))}parseIfStatement(r){this.next();r.test=this.parseHeaderExpression();r.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration();r.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null;return this.finishNode(r,"IfStatement")}parseReturnStatement(r){if(!this.prodParam.hasReturn){this.raise(S.IllegalReturn,this.state.startLoc)}this.next();if(this.isLineTerminator()){r.argument=null}else{r.argument=this.parseExpression();this.semicolon()}return this.finishNode(r,"ReturnStatement")}parseSwitchStatement(r){this.next();r.discriminant=this.parseHeaderExpression();const s=r.cases=[];this.expect(5);this.state.labels.push(Te);this.scope.enter(256);let l;for(let r;!this.match(8);){if(this.match(61)||this.match(65)){const p=this.match(61);if(l)this.finishNode(l,"SwitchCase");s.push(l=this.startNode());l.consequent=[];this.next();if(p){l.test=this.parseExpression()}else{if(r){this.raise(S.MultipleDefaultsInSwitch,this.state.lastTokStartLoc)}r=true;l.test=null}this.expect(14)}else{if(l){l.consequent.push(this.parseStatementListItem())}else{this.unexpected()}}}this.scope.exit();if(l)this.finishNode(l,"SwitchCase");this.next();this.state.labels.pop();return this.finishNode(r,"SwitchStatement")}parseThrowStatement(r){this.next();if(this.hasPrecedingLineBreak()){this.raise(S.NewlineAfterThrow,this.state.lastTokEndLoc)}r.argument=this.parseExpression();this.semicolon();return this.finishNode(r,"ThrowStatement")}parseCatchClauseParam(){const r=this.parseBindingAtom();this.scope.enter(this.options.annexB&&r.type==="Identifier"?8:0);this.checkLVal(r,{type:"CatchClause"},9);return r}parseTryStatement(r){this.next();r.block=this.parseBlock();r.handler=null;if(this.match(62)){const s=this.startNode();this.next();if(this.match(10)){this.expect(10);s.param=this.parseCatchClauseParam();this.expect(11)}else{s.param=null;this.scope.enter(0)}s.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(false,false)));this.scope.exit();r.handler=this.finishNode(s,"CatchClause")}r.finalizer=this.eat(67)?this.parseBlock():null;if(!r.handler&&!r.finalizer){this.raise(S.NoCatchOrFinally,r)}return this.finishNode(r,"TryStatement")}parseVarStatement(r,s,l=false){this.next();this.parseVar(r,false,s,l);this.semicolon();return this.finishNode(r,"VariableDeclaration")}parseWhileStatement(r){this.next();r.test=this.parseHeaderExpression();this.state.labels.push(ge);r.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();return this.finishNode(r,"WhileStatement")}parseWithStatement(r){if(this.state.strict){this.raise(S.StrictWith,this.state.startLoc)}this.next();r.object=this.parseHeaderExpression();r.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));return this.finishNode(r,"WithStatement")}parseEmptyStatement(r){this.next();return this.finishNode(r,"EmptyStatement")}parseLabeledStatement(r,s,l,p){for(const r of this.state.labels){if(r.name===s){this.raise(S.LabelRedeclaration,l,{labelName:s})}}const d=tokenIsLoop(this.state.type)?1:this.match(71)?2:null;for(let s=this.state.labels.length-1;s>=0;s--){const l=this.state.labels[s];if(l.statementStart===r.start){l.statementStart=this.sourceToOffsetPos(this.state.start);l.kind=d}else{break}}this.state.labels.push({name:s,kind:d,statementStart:this.sourceToOffsetPos(this.state.start)});r.body=p&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(true):this.parseStatement();this.state.labels.pop();r.label=l;return this.finishNode(r,"LabeledStatement")}parseExpressionStatement(r,s,l){r.expression=s;this.semicolon();return this.finishNode(r,"ExpressionStatement")}parseBlock(r=false,s=true,l){const p=this.startNode();if(r){this.state.strictErrors.clear()}this.expect(5);if(s){this.scope.enter(0)}this.parseBlockBody(p,r,false,8,l);if(s){this.scope.exit()}return this.finishNode(p,"BlockStatement")}isValidDirective(r){return r.type==="ExpressionStatement"&&r.expression.type==="StringLiteral"&&!r.expression.extra.parenthesized}parseBlockBody(r,s,l,p,d){const m=r.body=[];const y=r.directives=[];this.parseBlockOrModuleBlockBody(m,s?y:undefined,l,p,d)}parseBlockOrModuleBlockBody(r,s,l,p,d){const m=this.state.strict;let y=false;let g=false;while(!this.match(p)){const p=l?this.parseModuleItem():this.parseStatementListItem();if(s&&!g){if(this.isValidDirective(p)){const r=this.stmtToDirective(p);s.push(r);if(!y&&r.value.value==="use strict"){y=true;this.setStrict(true)}continue}g=true;this.state.strictErrors.clear()}r.push(p)}d==null||d.call(this,y);if(!m){this.setStrict(false)}this.next()}parseFor(r,s){r.init=s;this.semicolon(false);r.test=this.match(13)?null:this.parseExpression();this.semicolon(false);r.update=this.match(11)?null:this.parseExpression();this.expect(11);r.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(r,"ForStatement")}parseForIn(r,s,l){const p=this.match(58);this.next();if(p){if(l!==null)this.unexpected(l)}else{r.await=l!==null}if(s.type==="VariableDeclaration"&&s.declarations[0].init!=null&&(!p||!this.options.annexB||this.state.strict||s.kind!=="var"||s.declarations[0].id.type!=="Identifier")){this.raise(S.ForInOfLoopInitializer,s,{type:p?"ForInStatement":"ForOfStatement"})}if(s.type==="AssignmentPattern"){this.raise(S.InvalidLhs,s,{ancestor:{type:"ForStatement"}})}r.left=s;r.right=p?this.parseExpression():this.parseMaybeAssignAllowIn();this.expect(11);r.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(r,p?"ForInStatement":"ForOfStatement")}parseVar(r,s,l,p=false){const d=r.declarations=[];r.kind=l;for(;;){const r=this.startNode();this.parseVarId(r,l);r.init=!this.eat(29)?null:s?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn();if(r.init===null&&!p){if(r.id.type!=="Identifier"&&!(s&&(this.match(58)||this.isContextual(102)))){this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})}else if((l==="const"||l==="using"||l==="await using")&&!(this.match(58)||this.isContextual(102))){this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:l})}}d.push(this.finishNode(r,"VariableDeclarator"));if(!this.eat(12))break}return r}parseVarId(r,s){const l=this.parseBindingAtom();if(s==="using"||s==="await using"){if(l.type==="ArrayPattern"||l.type==="ObjectPattern"){this.raise(S.UsingDeclarationHasBindingPattern,l.loc.start)}}else{if(l.type==="VoidPattern"){this.raise(S.UnexpectedVoidPattern,l.loc.start)}}this.checkLVal(l,{type:"VariableDeclarator"},s==="var"?5:8201);r.id=l}parseAsyncFunctionExpression(r){return this.parseFunction(r,8)}parseFunction(r,s=0){const l=s&2;const p=!!(s&1);const d=p&&!(s&4);const m=!!(s&8);this.initFunction(r,m);if(this.match(55)){if(l){this.raise(S.GeneratorInSingleStatementContext,this.state.startLoc)}this.next();r.generator=true}if(p){r.id=this.parseFunctionId(d)}const y=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=false;this.scope.enter(514);this.prodParam.enter(functionFlags(m,r.generator));if(!p){r.id=this.parseFunctionId()}this.parseFunctionParams(r,false);this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(r,p?"FunctionDeclaration":"FunctionExpression")}));this.prodParam.exit();this.scope.exit();if(p&&!l){this.registerFunctionStatementId(r)}this.state.maybeInArrowParameters=y;return r}parseFunctionId(r){return r||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(r,s){this.expect(10);this.expressionScope.enter(newParameterDeclarationScope());r.params=this.parseBindingList(11,41,2|(s?4:0));this.expressionScope.exit()}registerFunctionStatementId(r){if(!r.id)return;this.scope.declareName(r.id.name,!this.options.annexB||this.state.strict||r.generator||r.async?this.scope.treatFunctionsAsVar?5:8201:17,r.id.loc.start)}parseClass(r,s,l){this.next();const p=this.state.strict;this.state.strict=true;this.parseClassId(r,s,l);this.parseClassSuper(r);r.body=this.parseClassBody(!!r.superClass,p);return this.finishNode(r,s?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(r){return r.type==="Identifier"&&r.name==="constructor"||r.type==="StringLiteral"&&r.value==="constructor"}isNonstaticConstructor(r){return!r.computed&&!r.static&&this.nameIsConstructor(r.key)}parseClassBody(r,s){this.classScope.enter();const l={hadConstructor:false,hadSuperClass:r};let p=[];const d=this.startNode();d.body=[];this.expect(5);this.withSmartMixTopicForbiddingContext((()=>{while(!this.match(8)){if(this.eat(13)){if(p.length>0){throw this.raise(S.DecoratorSemicolon,this.state.lastTokEndLoc)}continue}if(this.match(26)){p.push(this.parseDecorator());continue}const r=this.startNode();if(p.length){r.decorators=p;this.resetStartLocationFromNode(r,p[0]);p=[]}this.parseClassMember(d,r,l);if(r.kind==="constructor"&&r.decorators&&r.decorators.length>0){this.raise(S.DecoratorConstructor,r)}}}));this.state.strict=s;this.next();if(p.length){throw this.raise(S.TrailingDecorator,this.state.startLoc)}this.classScope.exit();return this.finishNode(d,"ClassBody")}parseClassMemberFromModifier(r,s){const l=this.parseIdentifier(true);if(this.isClassMethod()){const p=s;p.kind="method";p.computed=false;p.key=l;p.static=false;this.pushClassMethod(r,p,false,false,false,false);return true}else if(this.isClassProperty()){const p=s;p.computed=false;p.key=l;p.static=false;r.body.push(this.parseClassProperty(p));return true}this.resetPreviousNodeTrailingComments(l);return false}parseClassMember(r,s,l){const p=this.isContextual(106);if(p){if(this.parseClassMemberFromModifier(r,s)){return}if(this.eat(5)){this.parseClassStaticBlock(r,s);return}}this.parseClassMemberWithIsStatic(r,s,l,p)}parseClassMemberWithIsStatic(r,s,l,p){const d=s;const m=s;const y=s;const g=s;const T=s;const b=d;const E=d;s.static=p;this.parsePropertyNamePrefixOperator(s);if(this.eat(55)){b.kind="method";const s=this.match(139);this.parseClassElementName(b);this.parsePostMemberNameModifiers(b);if(s){this.pushClassPrivateMethod(r,m,true,false);return}if(this.isNonstaticConstructor(d)){this.raise(S.ConstructorIsGenerator,d.key)}this.pushClassMethod(r,d,true,false,false,false);return}const _=!this.state.containsEsc&&tokenIsIdentifier(this.state.type);const x=this.parseClassElementName(s);const w=_?x.name:null;const v=this.isPrivateName(x);const A=this.state.startLoc;this.parsePostMemberNameModifiers(E);if(this.isClassMethod()){b.kind="method";if(v){this.pushClassPrivateMethod(r,m,false,false);return}const p=this.isNonstaticConstructor(d);let y=false;if(p){d.kind="constructor";if(l.hadConstructor&&!this.hasPlugin("typescript")){this.raise(S.DuplicateConstructor,x)}if(p&&this.hasPlugin("typescript")&&s.override){this.raise(S.OverrideOnConstructor,x)}l.hadConstructor=true;y=l.hadSuperClass}this.pushClassMethod(r,d,false,false,p,y)}else if(this.isClassProperty()){if(v){this.pushClassPrivateProperty(r,g)}else{this.pushClassProperty(r,y)}}else if(w==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);const s=this.eat(55);if(E.optional){this.unexpected(A)}b.kind="method";const l=this.match(139);this.parseClassElementName(b);this.parsePostMemberNameModifiers(E);if(l){this.pushClassPrivateMethod(r,m,s,true)}else{if(this.isNonstaticConstructor(d)){this.raise(S.ConstructorIsAsync,d.key)}this.pushClassMethod(r,d,s,true,false,false)}}else if((w==="get"||w==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x);b.kind=w;const s=this.match(139);this.parseClassElementName(d);if(s){this.pushClassPrivateMethod(r,m,false,false)}else{if(this.isNonstaticConstructor(d)){this.raise(S.ConstructorIsAccessor,d.key)}this.pushClassMethod(r,d,false,false,false,false)}this.checkGetterSetterParams(d)}else if(w==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors");this.resetPreviousNodeTrailingComments(x);const s=this.match(139);this.parseClassElementName(y);this.pushClassAccessorProperty(r,T,s)}else if(this.isLineTerminator()){if(v){this.pushClassPrivateProperty(r,g)}else{this.pushClassProperty(r,y)}}else{this.unexpected()}}parseClassElementName(r){const{type:s,value:l}=this.state;if((s===132||s===134)&&r.static&&l==="prototype"){this.raise(S.StaticPrototype,this.state.startLoc)}if(s===139){if(l==="constructor"){this.raise(S.ConstructorClassPrivateField,this.state.startLoc)}const s=this.parsePrivateName();r.key=s;return s}this.parsePropertyName(r);return r.key}parseClassStaticBlock(r,s){var l;this.scope.enter(576|128|16);const p=this.state.labels;this.state.labels=[];this.prodParam.enter(0);const d=s.body=[];this.parseBlockOrModuleBlockBody(d,undefined,false,8);this.prodParam.exit();this.scope.exit();this.state.labels=p;r.body.push(this.finishNode(s,"StaticBlock"));if((l=s.decorators)!=null&&l.length){this.raise(S.DecoratorStaticBlock,s)}}pushClassProperty(r,s){if(!s.computed&&this.nameIsConstructor(s.key)){this.raise(S.ConstructorClassField,s.key)}r.body.push(this.parseClassProperty(s))}pushClassPrivateProperty(r,s){const l=this.parseClassPrivateProperty(s);r.body.push(l);this.classScope.declarePrivateName(this.getPrivateNameSV(l.key),0,l.key.loc.start)}pushClassAccessorProperty(r,s,l){if(!l&&!s.computed&&this.nameIsConstructor(s.key)){this.raise(S.ConstructorClassField,s.key)}const p=this.parseClassAccessorProperty(s);r.body.push(p);if(l){this.classScope.declarePrivateName(this.getPrivateNameSV(p.key),0,p.key.loc.start)}}pushClassMethod(r,s,l,p,d,m){r.body.push(this.parseMethod(s,l,p,d,m,"ClassMethod",true))}pushClassPrivateMethod(r,s,l,p){const d=this.parseMethod(s,l,p,false,false,"ClassPrivateMethod",true);r.body.push(d);const m=d.kind==="get"?d.static?6:2:d.kind==="set"?d.static?5:1:0;this.declareClassPrivateMethodInScope(d,m)}declareClassPrivateMethodInScope(r,s){this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),s,r.key.loc.start)}parsePostMemberNameModifiers(r){}parseClassPrivateProperty(r){this.parseInitializer(r);this.semicolon();return this.finishNode(r,"ClassPrivateProperty")}parseClassProperty(r){this.parseInitializer(r);this.semicolon();return this.finishNode(r,"ClassProperty")}parseClassAccessorProperty(r){this.parseInitializer(r);this.semicolon();return this.finishNode(r,"ClassAccessorProperty")}parseInitializer(r){this.scope.enter(576|16);this.expressionScope.enter(newExpressionScope());this.prodParam.enter(0);r.value=this.eat(29)?this.parseMaybeAssignAllowIn():null;this.expressionScope.exit();this.prodParam.exit();this.scope.exit()}parseClassId(r,s,l,p=8331){if(tokenIsIdentifier(this.state.type)){r.id=this.parseIdentifier();if(s){this.declareNameFromIdentifier(r.id,p)}}else{if(l||!s){r.id=null}else{throw this.raise(S.MissingClassName,this.state.startLoc)}}}parseClassSuper(r){r.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(r,s){const l=this.parseMaybeImportPhase(r,true);const p=this.maybeParseExportDefaultSpecifier(r,l);const d=!p||this.eat(12);const m=d&&this.eatExportStar(r);const y=m&&this.maybeParseExportNamespaceSpecifier(r);const g=d&&(!y||this.eat(12));const T=p||m;if(m&&!y){if(p)this.unexpected();if(s){throw this.raise(S.UnsupportedDecoratorExport,r)}this.parseExportFrom(r,true);this.sawUnambiguousESM=true;return this.finishNode(r,"ExportAllDeclaration")}const b=this.maybeParseExportNamedSpecifiers(r);if(p&&d&&!m&&!b){this.unexpected(null,5)}if(y&&g){this.unexpected(null,98)}let E;if(T||b){E=false;if(s){throw this.raise(S.UnsupportedDecoratorExport,r)}this.parseExportFrom(r,T)}else{E=this.maybeParseExportDeclaration(r)}if(T||b||E){var _;const l=r;this.checkExport(l,true,false,!!l.source);if(((_=l.declaration)==null?void 0:_.type)==="ClassDeclaration"){this.maybeTakeDecorators(s,l.declaration,l)}else if(s){throw this.raise(S.UnsupportedDecoratorExport,r)}this.sawUnambiguousESM=true;return this.finishNode(l,"ExportNamedDeclaration")}if(this.eat(65)){const l=r;const p=this.parseExportDefaultExpression();l.declaration=p;if(p.type==="ClassDeclaration"){this.maybeTakeDecorators(s,p,l)}else if(s){throw this.raise(S.UnsupportedDecoratorExport,r)}this.checkExport(l,true,true);this.sawUnambiguousESM=true;return this.finishNode(l,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(r){return this.eat(55)}maybeParseExportDefaultSpecifier(r,s){if(s||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",s==null?void 0:s.loc.start);const l=s||this.parseIdentifier(true);const p=this.startNodeAtNode(l);p.exported=l;r.specifiers=[this.finishNode(p,"ExportDefaultSpecifier")];return true}return false}maybeParseExportNamespaceSpecifier(r){if(this.isContextual(93)){var s,l;(l=(s=r).specifiers)!=null?l:s.specifiers=[];const p=this.startNodeAt(this.state.lastTokStartLoc);this.next();p.exported=this.parseModuleExportName();r.specifiers.push(this.finishNode(p,"ExportNamespaceSpecifier"));return true}return false}maybeParseExportNamedSpecifiers(r){if(this.match(5)){const s=r;if(!s.specifiers)s.specifiers=[];const l=s.exportKind==="type";s.specifiers.push(...this.parseExportSpecifiers(l));s.source=null;if(this.hasPlugin("importAssertions")){s.assertions=[]}else{s.attributes=[]}s.declaration=null;return true}return false}maybeParseExportDeclaration(r){if(this.shouldParseExportDeclaration()){r.specifiers=[];r.source=null;if(this.hasPlugin("importAssertions")){r.assertions=[]}else{r.attributes=[]}r.declaration=this.parseExportDeclaration(r);return true}return false}isAsyncFunction(){if(!this.isContextual(95))return false;const r=this.nextTokenInLineStart();return this.isUnparsedContextual(r,"function")}parseExportDefaultExpression(){const r=this.startNode();if(this.match(68)){this.next();return this.parseFunction(r,1|4)}else if(this.isAsyncFunction()){this.next();this.next();return this.parseFunction(r,1|4|8)}if(this.match(80)){return this.parseClass(r,true,true)}if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(S.DecoratorBeforeExport,this.state.startLoc)}return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false),this.startNode()),true,true)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing()){throw this.raise(S.UnsupportedDefaultExport,this.state.startLoc)}const s=this.parseMaybeAssignAllowIn();this.semicolon();return s}parseExportDeclaration(r){if(this.match(80)){const r=this.parseClass(this.startNode(),true,false);return r}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:r}=this.state;if(tokenIsIdentifier(r)){if(r===95&&!this.state.containsEsc||r===100){return false}if((r===130||r===129)&&!this.state.containsEsc){const r=this.nextTokenStart();const s=this.input.charCodeAt(r);if(s===123||this.chStartsBindingIdentifier(s,r)&&!this.input.startsWith("from",r)){this.expectOnePlugin(["flow","typescript"]);return false}}}else if(!this.match(65)){return false}const s=this.nextTokenStart();const l=this.isUnparsedContextual(s,"from");if(this.input.charCodeAt(s)===44||tokenIsIdentifier(this.state.type)&&l){return true}if(this.match(65)&&l){const r=this.input.charCodeAt(this.nextTokenStartSince(s+4));return r===34||r===39}return false}parseExportFrom(r,s){if(this.eatContextual(98)){r.source=this.parseImportSource();this.checkExport(r);this.maybeParseImportAttributes(r);this.checkJSONModuleImport(r)}else if(s){this.unexpected()}this.semicolon()}shouldParseExportDeclaration(){const{type:r}=this.state;if(r===26){this.expectOnePlugin(["decorators","decorators-legacy"]);if(this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(S.DecoratorBeforeExport,this.state.startLoc)}return true}}if(this.isUsing()){this.raise(S.UsingDeclarationExport,this.state.startLoc);return true}if(this.isAwaitUsing()){this.raise(S.UsingDeclarationExport,this.state.startLoc);return true}return r===74||r===75||r===68||r===80||this.isLet()||this.isAsyncFunction()}checkExport(r,s,l,p){if(s){var d;if(l){this.checkDuplicateExports(r,"default");if(this.hasPlugin("exportDefaultFrom")){var m;const s=r.declaration;if(s.type==="Identifier"&&s.name==="from"&&s.end-s.start===4&&!((m=s.extra)!=null&&m.parenthesized)){this.raise(S.ExportDefaultFromAsIdentifier,s)}}}else if((d=r.specifiers)!=null&&d.length){for(const s of r.specifiers){const{exported:r}=s;const l=r.type==="Identifier"?r.name:r.value;this.checkDuplicateExports(s,l);if(!p&&s.local){const{local:r}=s;if(r.type!=="Identifier"){this.raise(S.ExportBindingIsString,s,{localName:r.value,exportName:l})}else{this.checkReservedWord(r.name,r.loc.start,true,false);this.scope.checkLocalExport(r)}}}}else if(r.declaration){const s=r.declaration;if(s.type==="FunctionDeclaration"||s.type==="ClassDeclaration"){const{id:l}=s;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(r,l.name)}else if(s.type==="VariableDeclaration"){for(const r of s.declarations){this.checkDeclaration(r.id)}}}}}checkDeclaration(r){if(r.type==="Identifier"){this.checkDuplicateExports(r,r.name)}else if(r.type==="ObjectPattern"){for(const s of r.properties){this.checkDeclaration(s)}}else if(r.type==="ArrayPattern"){for(const s of r.elements){if(s){this.checkDeclaration(s)}}}else if(r.type==="ObjectProperty"){this.checkDeclaration(r.value)}else if(r.type==="RestElement"){this.checkDeclaration(r.argument)}else if(r.type==="AssignmentPattern"){this.checkDeclaration(r.left)}}checkDuplicateExports(r,s){if(this.exportedIdentifiers.has(s)){if(s==="default"){this.raise(S.DuplicateDefaultExport,r)}else{this.raise(S.DuplicateExport,r,{exportName:s})}}this.exportedIdentifiers.add(s)}parseExportSpecifiers(r){const s=[];let l=true;this.expect(5);while(!this.eat(8)){if(l){l=false}else{this.expect(12);if(this.eat(8))break}const p=this.isContextual(130);const d=this.match(134);const m=this.startNode();m.local=this.parseModuleExportName();s.push(this.parseExportSpecifier(m,d,r,p))}return s}parseExportSpecifier(r,s,l,p){if(this.eatContextual(93)){r.exported=this.parseModuleExportName()}else if(s){r.exported=this.cloneStringLiteral(r.local)}else if(!r.exported){r.exported=this.cloneIdentifier(r.local)}return this.finishNode(r,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const r=this.parseStringLiteral(this.state.value);const s=be.exec(r.value);if(s){this.raise(S.ModuleExportNameHasLoneSurrogate,r,{surrogateCharCode:s[0].charCodeAt(0)})}return r}return this.parseIdentifier(true)}isJSONModuleImport(r){if(r.assertions!=null){return r.assertions.some((({key:r,value:s})=>s.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")))}return false}checkImportReflection(r){const{specifiers:s}=r;const l=s.length===1?s[0].type:null;if(r.phase==="source"){if(l!=="ImportDefaultSpecifier"){this.raise(S.SourcePhaseImportRequiresDefault,s[0].loc.start)}}else if(r.phase==="defer"){if(l!=="ImportNamespaceSpecifier"){this.raise(S.DeferImportRequiresNamespace,s[0].loc.start)}}else if(r.module){var p;if(l!=="ImportDefaultSpecifier"){this.raise(S.ImportReflectionNotBinding,s[0].loc.start)}if(((p=r.assertions)==null?void 0:p.length)>0){this.raise(S.ImportReflectionHasAssertion,s[0].loc.start)}}}checkJSONModuleImport(r){if(this.isJSONModuleImport(r)&&r.type!=="ExportAllDeclaration"){const{specifiers:s}=r;if(s!=null){const r=s.find((r=>{let s;if(r.type==="ExportSpecifier"){s=r.local}else if(r.type==="ImportSpecifier"){s=r.imported}if(s!==undefined){return s.type==="Identifier"?s.name!=="default":s.value!=="default"}}));if(r!==undefined){this.raise(S.ImportJSONBindingNotDefault,r.loc.start)}}}}isPotentialImportPhase(r){if(r)return false;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(r,s,l,p){if(s){return}if(l==="module"){this.expectPlugin("importReflection",p);r.module=true}else if(this.hasPlugin("importReflection")){r.module=false}if(l==="source"){this.expectPlugin("sourcePhaseImports",p);r.phase="source"}else if(l==="defer"){this.expectPlugin("deferredImportEvaluation",p);r.phase="defer"}else if(this.hasPlugin("sourcePhaseImports")){r.phase=null}}parseMaybeImportPhase(r,s){if(!this.isPotentialImportPhase(s)){this.applyImportPhase(r,s,null);return null}const l=this.startNode();const p=this.parseIdentifierName(true);const{type:d}=this.state;const m=tokenIsKeywordOrIdentifier(d)?d!==98||this.lookaheadCharCode()===102:d!==12;if(m){this.applyImportPhase(r,s,p,l.loc.start);return null}else{this.applyImportPhase(r,s,null);return this.createIdentifier(l,p)}}isPrecedingIdImportPhase(r){const{type:s}=this.state;return tokenIsIdentifier(s)?s!==98||this.lookaheadCharCode()===102:s!==12}parseImport(r){if(this.match(134)){return this.parseImportSourceAndAttributes(r)}return this.parseImportSpecifiersAndAfter(r,this.parseMaybeImportPhase(r,false))}parseImportSpecifiersAndAfter(r,s){r.specifiers=[];const l=this.maybeParseDefaultImportSpecifier(r,s);const p=!l||this.eat(12);const d=p&&this.maybeParseStarImportSpecifier(r);if(p&&!d)this.parseNamedImportSpecifiers(r);this.expectContextual(98);return this.parseImportSourceAndAttributes(r)}parseImportSourceAndAttributes(r){var s;(s=r.specifiers)!=null?s:r.specifiers=[];r.source=this.parseImportSource();this.maybeParseImportAttributes(r);this.checkImportReflection(r);this.checkJSONModuleImport(r);this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(r,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(r,s,l){s.local=this.parseIdentifier();r.specifiers.push(this.finishImportSpecifier(s,l))}finishImportSpecifier(r,s,l=8201){this.checkLVal(r.local,{type:s},l);return this.finishNode(r,s)}parseImportAttributes(){this.expect(5);const r=[];const s=new Set;do{if(this.match(8)){break}const l=this.startNode();const p=this.state.value;if(s.has(p)){this.raise(S.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:p})}s.add(p);if(this.match(134)){l.key=this.parseStringLiteral(p)}else{l.key=this.parseIdentifier(true)}this.expect(14);if(!this.match(134)){throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc)}l.value=this.parseStringLiteral(this.state.value);r.push(this.finishNode(l,"ImportAttribute"))}while(this.eat(12));this.expect(8);return r}parseModuleAttributes(){const r=[];const s=new Set;do{const l=this.startNode();l.key=this.parseIdentifier(true);if(l.key.name!=="type"){this.raise(S.ModuleAttributeDifferentFromType,l.key)}if(s.has(l.key.name)){this.raise(S.ModuleAttributesWithDuplicateKeys,l.key,{key:l.key.name})}s.add(l.key.name);this.expect(14);if(!this.match(134)){throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc)}l.value=this.parseStringLiteral(this.state.value);r.push(this.finishNode(l,"ImportAttribute"))}while(this.eat(12));return r}maybeParseImportAttributes(r){let s;{var l=false}if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40){return}this.next();if(this.hasPlugin("moduleAttributes")){s=this.parseModuleAttributes();this.addExtra(r,"deprecatedWithLegacySyntax",true)}else{s=this.parseImportAttributes()}{l=true}}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")){this.raise(S.ImportAttributesUseAssert,this.state.startLoc)}if(!this.hasPlugin("importAssertions")){this.addExtra(r,"deprecatedAssertSyntax",true)}this.next();s=this.parseImportAttributes()}else{s=[]}if(!l&&this.hasPlugin("importAssertions")){r.assertions=s}else{r.attributes=s}}maybeParseDefaultImportSpecifier(r,s){if(s){const l=this.startNodeAtNode(s);l.local=s;r.specifiers.push(this.finishImportSpecifier(l,"ImportDefaultSpecifier"));return true}else if(tokenIsKeywordOrIdentifier(this.state.type)){this.parseImportSpecifierLocal(r,this.startNode(),"ImportDefaultSpecifier");return true}return false}maybeParseStarImportSpecifier(r){if(this.match(55)){const s=this.startNode();this.next();this.expectContextual(93);this.parseImportSpecifierLocal(r,s,"ImportNamespaceSpecifier");return true}return false}parseNamedImportSpecifiers(r){let s=true;this.expect(5);while(!this.eat(8)){if(s){s=false}else{if(this.eat(14)){throw this.raise(S.DestructureNamedImport,this.state.startLoc)}this.expect(12);if(this.eat(8))break}const l=this.startNode();const p=this.match(134);const d=this.isContextual(130);l.imported=this.parseModuleExportName();const m=this.parseImportSpecifier(l,p,r.importKind==="type"||r.importKind==="typeof",d,undefined);r.specifiers.push(m)}}parseImportSpecifier(r,s,l,p,d){if(this.eatContextual(93)){r.local=this.parseIdentifier()}else{const{imported:l}=r;if(s){throw this.raise(S.ImportBindingIsString,r,{importName:l.value})}this.checkReservedWord(l.name,r.loc.start,true,true);if(!r.local){r.local=this.cloneIdentifier(l)}}return this.finishImportSpecifier(r,"ImportSpecifier",d)}isThisParam(r){return r.type==="Identifier"&&r.name==="this"}}class Parser extends StatementParser{constructor(r,s,l){r=getOptions(r);super(r,s);this.options=r;this.initializeScopes();this.plugins=l;this.filename=r.sourceFilename;this.startIndex=r.startIndex;let p=0;if(r.allowAwaitOutsideFunction){p|=1}if(r.allowReturnOutsideFunction){p|=2}if(r.allowImportExportEverywhere){p|=8}if(r.allowSuperOutsideMethod){p|=16}if(r.allowUndeclaredExports){p|=64}if(r.allowNewTargetOutsideFunction){p|=4}if(r.allowYieldOutsideFunction){p|=32}if(r.ranges){p|=128}if(r.tokens){p|=256}if(r.createImportExpressions){p|=512}if(r.createParenthesizedExpressions){p|=1024}if(r.errorRecovery){p|=2048}if(r.attachComment){p|=4096}if(r.annexB){p|=8192}this.optionFlags=p}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const r=this.startNode();const s=this.startNode();this.nextToken();r.errors=null;this.parseTopLevel(r,s);r.errors=this.state.errors;r.comments.length=this.state.commentsLen;return r}}function parse(r,s){var l;if(((l=s)==null?void 0:l.sourceType)==="unambiguous"){s=Object.assign({},s);try{s.sourceType="module";const l=getParser(s,r);const p=l.parse();if(l.sawUnambiguousESM){return p}if(l.ambiguousScriptDifferentAst){try{s.sourceType="script";return getParser(s,r).parse()}catch(r){}}else{p.program.sourceType="script"}return p}catch(l){try{s.sourceType="script";return getParser(s,r).parse()}catch(r){}throw l}}else{return getParser(s,r).parse()}}function parseExpression(r,s){const l=getParser(s,r);if(l.options.strictMode){l.state.strict=true}return l.getExpression()}function generateExportedTokenTypes(r){const s={};for(const l of Object.keys(r)){s[l]=getExportedToken(r[l])}return s}const Se=generateExportedTokenTypes(B);function getParser(r,s){let l=Parser;const p=new Map;if(r!=null&&r.plugins){for(const s of r.plugins){let r,l;if(typeof s==="string"){r=s}else{[r,l]=s}if(!p.has(r)){p.set(r,l||{})}}validatePlugins(p);l=getParserClass(p)}return new l(r,s,p)}const _e=new Map;function getParserClass(r){const s=[];for(const l of ye){if(r.has(l)){s.push(l)}}const l=s.join("|");let p=_e.get(l);if(!p){p=Parser;for(const r of s){p=me[r](p)}_e.set(l,p)}return p}s.parse=parse;s.parseExpression=parseExpression;s.tokTypes=Se},9936:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=createTemplateBuilder;var p=l(9653);var d=l(7790);var m=l(7992);const y=(0,p.validate)({placeholderPattern:false});function createTemplateBuilder(r,s){const l=new WeakMap;const g=new WeakMap;const T=s||(0,p.validate)(null);return Object.assign(((s,...y)=>{if(typeof s==="string"){if(y.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,d.default)(r,s,(0,p.merge)(T,(0,p.validate)(y[0]))))}else if(Array.isArray(s)){let p=l.get(s);if(!p){p=(0,m.default)(r,s,T);l.set(s,p)}return extendedTrace(p(y))}else if(typeof s==="object"&&s){if(y.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(r,(0,p.merge)(T,(0,p.validate)(s)))}throw new Error(`Unexpected template param ${typeof s}`)}),{ast:(s,...l)=>{if(typeof s==="string"){if(l.length>1)throw new Error("Unexpected extra params.");return(0,d.default)(r,s,(0,p.merge)((0,p.merge)(T,(0,p.validate)(l[0])),y))()}else if(Array.isArray(s)){let d=g.get(s);if(!d){d=(0,m.default)(r,s,(0,p.merge)(T,y));g.set(s,d)}return d(l)()}throw new Error(`Unexpected template param ${typeof s}`)}})}function extendedTrace(r){let s="";try{throw new Error}catch(r){if(r.stack){s=r.stack.split("\n").slice(3).join("\n")}}return l=>{try{return r(l)}catch(r){r.stack+=`\n =============\n${s}`;throw r}}}},9816:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.statements=s.statement=s.smart=s.program=s.expression=void 0;var p=l(3658);const{assertExpressionStatement:d}=p;function makeStatementFormatter(r){return{code:r=>`/* @babel/template */;\n${r}`,validate:()=>{},unwrap:s=>r(s.program.body.slice(1))}}const m=s.smart=makeStatementFormatter((r=>{if(r.length>1){return r}else{return r[0]}}));const y=s.statements=makeStatementFormatter((r=>r));const g=s.statement=makeStatementFormatter((r=>{if(r.length===0){throw new Error("Found nothing to return.")}if(r.length>1){throw new Error("Found multiple statements but wanted one")}return r[0]}));const T=s.expression={code:r=>`(\n${r}\n)`,validate:r=>{if(r.program.body.length>1){throw new Error("Found multiple statements but wanted one")}if(T.unwrap(r).start===0){throw new Error("Parse result included parens.")}},unwrap:({program:r})=>{const[s]=r.body;d(s);return s.expression}};const b=s.program={code:r=>r,validate:()=>{},unwrap:r=>r.program}},6031:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.statements=s.statement=s.smart=s.program=s.expression=s["default"]=void 0;var p=l(9816);var d=l(9936);const m=s.smart=(0,d.default)(p.smart);const y=s.statement=(0,d.default)(p.statement);const g=s.statements=(0,d.default)(p.statements);const T=s.expression=(0,d.default)(p.expression);const b=s.program=(0,d.default)(p.program);var E=s["default"]=Object.assign(m.bind(undefined),{smart:m,statement:y,statements:g,expression:T,program:b,ast:m.ast})},7992:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=literalTemplate;var p=l(9653);var d=l(6456);var m=l(5961);function literalTemplate(r,s,l){const{metadata:d,names:y}=buildLiteralData(r,s,l);return s=>{const l={};s.forEach(((r,s)=>{l[y[s]]=r}));return s=>{const y=(0,p.normalizeReplacements)(s);if(y){Object.keys(y).forEach((r=>{if(hasOwnProperty.call(l,r)){throw new Error("Unexpected replacement overlap.")}}))}return r.unwrap((0,m.default)(d,y?Object.assign(y,l):l))}}}function buildLiteralData(r,s,l){let p="BABEL_TPL$";const m=s.join("");do{p="$$"+p}while(m.includes(p));const{names:y,code:g}=buildTemplateCode(s,p);const T=(0,d.default)(r,r.code(g),{parser:l.parser,placeholderWhitelist:new Set(y.concat(l.placeholderWhitelist?Array.from(l.placeholderWhitelist):[])),placeholderPattern:l.placeholderPattern,preserveComments:l.preserveComments,syntacticPlaceholders:l.syntacticPlaceholders});return{metadata:T,names:y}}function buildTemplateCode(r,s){const l=[];let p=r[0];for(let d=1;d<r.length;d++){const m=`${s}${d-1}`;l.push(m);p+=m+r[d]}return{names:l,code:p}}},9653:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.merge=merge;s.normalizeReplacements=normalizeReplacements;s.validate=validate;const l=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function _objectWithoutPropertiesLoose(r,s){if(null==r)return{};var l={};for(var p in r)if({}.hasOwnProperty.call(r,p)){if(-1!==s.indexOf(p))continue;l[p]=r[p]}return l}function merge(r,s){const{placeholderWhitelist:l=r.placeholderWhitelist,placeholderPattern:p=r.placeholderPattern,preserveComments:d=r.preserveComments,syntacticPlaceholders:m=r.syntacticPlaceholders}=s;return{parser:Object.assign({},r.parser,s.parser),placeholderWhitelist:l,placeholderPattern:p,preserveComments:d,syntacticPlaceholders:m}}function validate(r){if(r!=null&&typeof r!=="object"){throw new Error("Unknown template options.")}const s=r||{},{placeholderWhitelist:p,placeholderPattern:d,preserveComments:m,syntacticPlaceholders:y}=s,g=_objectWithoutPropertiesLoose(s,l);if(p!=null&&!(p instanceof Set)){throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined")}if(d!=null&&!(d instanceof RegExp)&&d!==false){throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined")}if(m!=null&&typeof m!=="boolean"){throw new Error("'.preserveComments' must be a boolean, null, or undefined")}if(y!=null&&typeof y!=="boolean"){throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined")}if(y===true&&(p!=null||d!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}return{parser:g,placeholderWhitelist:p||undefined,placeholderPattern:d==null?undefined:d,preserveComments:m==null?undefined:m,syntacticPlaceholders:y==null?undefined:y}}function normalizeReplacements(r){if(Array.isArray(r)){return r.reduce(((r,s,l)=>{r["$"+l]=s;return r}),{})}else if(typeof r==="object"||r==null){return r||undefined}throw new Error("Template replacements must be an array, object, null, or undefined")}},6456:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=parseAndBuildMetadata;var p=l(3658);var d=l(1946);var m=l(2900);const{isCallExpression:y,isExpressionStatement:g,isFunction:T,isIdentifier:b,isJSXIdentifier:E,isNewExpression:S,isPlaceholder:_,isStatement:x,isStringLiteral:w,removePropertiesDeep:v,traverse:A}=p;const P=/^[_$A-Z0-9]+$/;function parseAndBuildMetadata(r,s,l){const{placeholderWhitelist:p,placeholderPattern:d,preserveComments:m,syntacticPlaceholders:y}=l;const g=parseWithCodeFrame(s,l.parser,y);v(g,{preserveComments:m});r.validate(g);const T={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:p,placeholderPattern:d,syntacticPlaceholders:y};A(g,placeholderVisitorHandler,T);return Object.assign({ast:g},T.syntactic.placeholders.length?T.syntactic:T.legacy)}function placeholderVisitorHandler(r,s,l){var p;let d;let m=l.syntactic.placeholders.length>0;if(_(r)){if(l.syntacticPlaceholders===false){throw new Error("%%foo%%-style placeholders can't be used when "+"'.syntacticPlaceholders' is false.")}d=r.name.name;m=true}else if(m||l.syntacticPlaceholders){return}else if(b(r)||E(r)){d=r.name}else if(w(r)){d=r.value}else{return}if(m&&(l.placeholderPattern!=null||l.placeholderWhitelist!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}if(!m&&(l.placeholderPattern===false||!(l.placeholderPattern||P).test(d))&&!((p=l.placeholderWhitelist)!=null&&p.has(d))){return}s=s.slice();const{node:v,key:A}=s[s.length-1];let k;if(w(r)||_(r,{expectedNode:"StringLiteral"})){k="string"}else if(S(v)&&A==="arguments"||y(v)&&A==="arguments"||T(v)&&A==="params"){k="param"}else if(g(v)&&!_(r)){k="statement";s=s.slice(0,-1)}else if(x(r)&&_(r)){k="statement"}else{k="other"}const{placeholders:C,placeholderNames:I}=!m?l.legacy:l.syntactic;C.push({name:d,type:k,resolve:r=>resolveAncestors(r,s),isDuplicate:I.has(d)});I.add(d)}function resolveAncestors(r,s){let l=r;for(let r=0;r<s.length-1;r++){const{key:p,index:d}=s[r];if(d===undefined){l=l[p]}else{l=l[p][d]}}const{key:p,index:d}=s[s.length-1];return{parent:l,key:p,index:d}}function parseWithCodeFrame(r,s,l){const p=(s.plugins||[]).slice();if(l!==false){p.push("placeholders")}s=Object.assign({allowAwaitOutsideFunction:true,allowReturnOutsideFunction:true,allowNewTargetOutsideFunction:true,allowSuperOutsideMethod:true,allowYieldOutsideFunction:true,sourceType:"module"},s,{plugins:p});try{return(0,d.parse)(r,s)}catch(s){const l=s.loc;if(l){s.message+="\n"+(0,m.codeFrameColumns)(r,{start:l});s.code="BABEL_TEMPLATE_PARSE_ERROR"}throw s}}},5961:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=populatePlaceholders;var p=l(3658);const{blockStatement:d,cloneNode:m,emptyStatement:y,expressionStatement:g,identifier:T,isStatement:b,isStringLiteral:E,stringLiteral:S,validate:_}=p;function populatePlaceholders(r,s){const l=m(r.ast);if(s){r.placeholders.forEach((r=>{if(!hasOwnProperty.call(s,r.name)){const s=r.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}\n - { placeholderPattern: /^${s}$/ }`)}}));Object.keys(s).forEach((s=>{if(!r.placeholderNames.has(s)){throw new Error(`Unknown substitution "${s}" given`)}}))}r.placeholders.slice().reverse().forEach((r=>{try{var p;applyReplacement(r,l,(p=s&&s[r.name])!=null?p:null)}catch(s){s.message=`@babel/template placeholder "${r.name}": ${s.message}`;throw s}}));return l}function applyReplacement(r,s,l){if(r.isDuplicate){if(Array.isArray(l)){l=l.map((r=>m(r)))}else if(typeof l==="object"){l=m(l)}}const{parent:p,key:x,index:w}=r.resolve(s);if(r.type==="string"){if(typeof l==="string"){l=S(l)}if(!l||!E(l)){throw new Error("Expected string substitution")}}else if(r.type==="statement"){if(w===undefined){if(!l){l=y()}else if(Array.isArray(l)){l=d(l)}else if(typeof l==="string"){l=g(T(l))}else if(!b(l)){l=g(l)}}else{if(l&&!Array.isArray(l)){if(typeof l==="string"){l=T(l)}if(!b(l)){l=g(l)}}}}else if(r.type==="param"){if(typeof l==="string"){l=T(l)}if(w===undefined)throw new Error("Assertion failure.")}else{if(typeof l==="string"){l=T(l)}if(Array.isArray(l)){throw new Error("Cannot replace single expression with an array.")}}function set(r,s,l){const p=r[s];r[s]=l;if(p.type==="Identifier"||p.type==="Placeholder"){if(p.typeAnnotation){l.typeAnnotation=p.typeAnnotation}if(p.optional){l.optional=p.optional}if(p.decorators){l.decorators=p.decorators}}}if(w===undefined){_(p,x,l);set(p,x,l)}else{const s=p[x].slice();if(r.type==="statement"||r.type==="param"){if(l==null){s.splice(w,1)}else if(Array.isArray(l)){s.splice(w,1,...l)}else{set(s,w,l)}}else{set(s,w,l)}_(p,x,s);p[x]=s}}},7790:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=stringTemplate;var p=l(9653);var d=l(6456);var m=l(5961);function stringTemplate(r,s,l){s=r.code(s);let y;return g=>{const T=(0,p.normalizeReplacements)(g);if(!y)y=(0,d.default)(r,s,l);return r.unwrap((0,m.default)(y,T))}}},3881:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.clear=clear;s.clearPath=clearPath;s.clearScope=clearScope;s.getCachedPaths=getCachedPaths;s.getOrCreateCachedPaths=getOrCreateCachedPaths;s.scope=s.path=void 0;let l=s.path=new WeakMap;let p=s.scope=new WeakMap;function clear(){clearPath();clearScope()}function clearPath(){s.path=l=new WeakMap}function clearScope(){s.scope=p=new WeakMap}function getCachedPaths(r){const{parent:s,parentPath:p}=r;return l.get(s)}function getOrCreateCachedPaths(r,s){let p=l.get(r);if(!p)l.set(r,p=new Map);return p}},3972:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(4695);var d=l(3658);var m=l(6332);const{VISITOR_KEYS:y}=d;class TraversalContext{constructor(r,s,l,p){this.queue=null;this.priorityQueue=null;this.parentPath=p;this.scope=r;this.state=l;this.opts=s}shouldVisit(r){const s=this.opts;if(s.enter||s.exit)return true;if(s[r.type])return true;const l=y[r.type];if(!(l!=null&&l.length))return false;for(const s of l){if(r[s]){return true}}return false}create(r,s,l,d){return p.default.get({parentPath:this.parentPath,parent:r,container:s,key:l,listKey:d})}maybeQueue(r,s){if(this.queue){if(s){this.queue.push(r)}else{this.priorityQueue.push(r)}}}visitMultiple(r,s,l){if(r.length===0)return false;const p=[];for(let d=0;d<r.length;d++){const m=r[d];if(m&&this.shouldVisit(m)){p.push(this.create(s,r,d,l))}}return this.visitQueue(p)}visitSingle(r,s){if(this.shouldVisit(r[s])){return this.visitQueue([this.create(r,r,s)])}else{return false}}visitQueue(r){this.queue=r;this.priorityQueue=[];const s=new WeakSet;let l=false;let p=0;for(;p<r.length;){const d=r[p];p++;m.resync.call(d);if(d.contexts.length===0||d.contexts[d.contexts.length-1]!==this){m.pushContext.call(d,this)}if(d.key===null)continue;const{node:y}=d;if(s.has(y))continue;if(y)s.add(y);if(d.visit()){l=true;break}if(this.priorityQueue.length){l=this.visitQueue(this.priorityQueue);this.priorityQueue=[];this.queue=r;if(l)break}}for(let s=0;s<p;s++){m.popContext.call(r[s])}this.queue=null;return l}visit(r,s){const l=r[s];if(!l)return false;if(Array.isArray(l)){return this.visitMultiple(l,r,s)}else{return this.visitSingle(r,s)}}}s["default"]=TraversalContext},2680:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;class Hub{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(r,s,l=TypeError){return new l(s)}}s["default"]=Hub},6191:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});Object.defineProperty(s,"Hub",{enumerable:true,get:function(){return b.default}});Object.defineProperty(s,"NodePath",{enumerable:true,get:function(){return g.default}});Object.defineProperty(s,"Scope",{enumerable:true,get:function(){return T.default}});s.visitors=s["default"]=void 0;l(6332);var p=l(4188);s.visitors=p;var d=l(3658);var m=l(3881);var y=l(9446);var g=l(4695);var T=l(8160);var b=l(2680);const{VISITOR_KEYS:E,removeProperties:S,traverseFast:_}=d;function traverse(r,s={},l,d,m,g){if(!r)return;if(!s.noScope&&!l){if(r.type!=="Program"&&r.type!=="File"){throw new Error("You must pass a scope and parentPath unless traversing a Program/File. "+`Instead of that you tried to traverse a ${r.type} node without `+"passing scope and parentPath.")}}if(!m&&g){throw new Error("visitSelf can only be used when providing a NodePath.")}if(!E[r.type]){return}p.explode(s);(0,y.traverseNode)(r,s,l,d,m,null,g)}var x=s["default"]=traverse;traverse.visitors=p;traverse.verify=p.verify;traverse.explode=p.explode;traverse.cheap=function(r,s){_(r,s);return};traverse.node=function(r,s,l,p,d,m){(0,y.traverseNode)(r,s,l,p,d,m)};traverse.clearNode=function(r,s){S(r,s)};traverse.removeProperties=function(r,s){_(r,traverse.clearNode,s);return r};traverse.hasType=function(r,s,l){if(l!=null&&l.includes(r.type))return false;if(r.type===s)return true;return _(r,(function(r){if(l!=null&&l.includes(r.type)){return _.skip}if(r.type===s){return _.stop}}))};traverse.cache=m},8462:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.find=find;s.findParent=findParent;s.getAncestry=getAncestry;s.getDeepestCommonAncestorFrom=getDeepestCommonAncestorFrom;s.getEarliestCommonAncestorFrom=getEarliestCommonAncestorFrom;s.getFunctionParent=getFunctionParent;s.getStatementParent=getStatementParent;s.inType=inType;s.isAncestor=isAncestor;s.isDescendant=isDescendant;var p=l(3658);const{VISITOR_KEYS:d}=p;function findParent(r){let s=this;while(s=s.parentPath){if(r(s))return s}return null}function find(r){let s=this;do{if(r(s))return s}while(s=s.parentPath);return null}function getFunctionParent(){return this.findParent((r=>r.isFunction()))}function getStatementParent(){let r=this;do{if(!r.parentPath||Array.isArray(r.container)&&r.isStatement()){break}else{r=r.parentPath}}while(r);if(r&&(r.isProgram()||r.isFile())){throw new Error("File/Program node, we can't possibly find a statement parent to this")}return r}function getEarliestCommonAncestorFrom(r){return this.getDeepestCommonAncestorFrom(r,(function(r,s,l){let p;const m=d[r.type];for(const r of l){const l=r[s+1];if(!p){p=l;continue}if(l.listKey&&p.listKey===l.listKey){if(l.key<p.key){p=l;continue}}const d=m.indexOf(p.parentKey);const y=m.indexOf(l.parentKey);if(d>y){p=l}}return p}))}function getDeepestCommonAncestorFrom(r,s){if(!r.length){return this}if(r.length===1){return r[0]}let l=Infinity;let p,d;const m=r.map((r=>{const s=[];do{s.unshift(r)}while((r=r.parentPath)&&r!==this);if(s.length<l){l=s.length}return s}));const y=m[0];e:for(let r=0;r<l;r++){const s=y[r];for(const l of m){if(l[r]!==s){break e}}p=r;d=s}if(d){if(s){return s(d,p,m)}else{return d}}else{throw new Error("Couldn't find intersection")}}function getAncestry(){let r=this;const s=[];do{s.push(r)}while(r=r.parentPath);return s}function isAncestor(r){return r.isDescendant(this)}function isDescendant(r){return!!this.findParent((s=>s===r))}function inType(...r){let s=this;while(s){if(r.includes(s.node.type))return true;s=s.parentPath}return false}},201:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.addComment=addComment;s.addComments=addComments;s.shareCommentsWithSiblings=shareCommentsWithSiblings;var p=l(3658);const{addComment:d,addComments:m}=p;function shareCommentsWithSiblings(){if(typeof this.key==="string")return;const r=this.node;if(!r)return;const s=r.trailingComments;const l=r.leadingComments;if(!s&&!l)return;const p=this.getSibling(this.key-1);const d=this.getSibling(this.key+1);const m=Boolean(p.node);const y=Boolean(d.node);if(m){if(l){p.addComments("trailing",removeIfExisting(l,p.node.trailingComments))}if(s&&!y)p.addComments("trailing",s)}if(y){if(s){d.addComments("leading",removeIfExisting(s,d.node.leadingComments))}if(l&&!m)d.addComments("leading",l)}}function removeIfExisting(r,s){if(!(s!=null&&s.length))return r;const l=new Set(s);return r.filter((r=>!l.has(r)))}function addComment(r,s,l){d(this.node,r,s,l)}function addComments(r,s){m(this.node,r,s)}},6332:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._call=_call;s._getQueueContexts=_getQueueContexts;s._resyncKey=_resyncKey;s._resyncList=_resyncList;s._resyncParent=_resyncParent;s._resyncRemoved=_resyncRemoved;s.call=call;s.isDenylisted=isDenylisted;s.popContext=popContext;s.pushContext=pushContext;s.requeue=requeue;s.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;s.resync=resync;s.setContext=setContext;s.setKey=setKey;s.setScope=setScope;s.setup=setup;s.skip=skip;s.skipKey=skipKey;s.stop=stop;s.visit=visit;var p=l(9446);var d=l(4695);var m=l(7147);var y=l(3658);function call(r){const s=this.opts;this.debug(r);if(this.node){if(_call.call(this,s[r]))return true}if(this.node){var l;return _call.call(this,(l=s[this.node.type])==null?void 0:l[r])}return false}function _call(r){if(!r)return false;for(const s of r){if(!s)continue;const r=this.node;if(!r)return true;const l=s.call(this.state,this,this.state);if(l&&typeof l==="object"&&typeof l.then==="function"){throw new 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(l){throw new Error(`Unexpected return value from visitor method ${s}`)}if(this.node!==r)return true;if(this._traverseFlags>0)return true}return false}function isDenylisted(){var r;const s=(r=this.opts.denylist)!=null?r:this.opts.blacklist;return s==null?void 0:s.includes(this.node.type)}{s.isBlacklisted=isDenylisted}function restoreContext(r,s){if(r.context!==s){r.context=s;r.state=s.state;r.opts=s.opts}}function visit(){var r,s;if(!this.node){return false}if(this.isDenylisted()){return false}if((r=(s=this.opts).shouldSkip)!=null&&r.call(s,this)){return false}const l=this.context;if(this.shouldSkip||call.call(this,"enter")){this.debug("Skip...");return this.shouldStop}restoreContext(this,l);this.debug("Recursing into...");this.shouldStop=(0,p.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys);restoreContext(this,l);call.call(this,"exit");return this.shouldStop}function skip(){this.shouldSkip=true}function skipKey(r){if(this.skipKeys==null){this.skipKeys={}}this.skipKeys[r]=true}function stop(){this._traverseFlags|=d.SHOULD_SKIP|d.SHOULD_STOP}function setScope(){var r,s;if((r=this.opts)!=null&&r.noScope)return;let l=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&l.isMethod()||this.key==="discriminant"&&l.isSwitchStatement()){l=l.parentPath}let p;while(l&&!p){var d;if((d=l.opts)!=null&&d.noScope)return;p=l.scope;l=l.parentPath}this.scope=this.getScope(p);(s=this.scope)==null||s.init()}function setContext(r){if(this.skipKeys!=null){this.skipKeys={}}this._traverseFlags=0;if(r){this.context=r;this.state=r.state;this.opts=r.opts}setScope.call(this);return this}function resync(){if(this.removed)return;_resyncParent.call(this);_resyncList.call(this);_resyncKey.call(this)}function _resyncParent(){if(this.parentPath){this.parent=this.parentPath.node}}function _resyncKey(){if(!this.container)return;if(this.node===this.container[this.key]){return}if(Array.isArray(this.container)){for(let r=0;r<this.container.length;r++){if(this.container[r]===this.node){setKey.call(this,r);return}}}else{for(const r of Object.keys(this.container)){if(this.container[r]===this.node){setKey.call(this,r);return}}}this.key=null}function _resyncList(){if(!this.parent||!this.inList)return;const r=this.parent[this.listKey];if(this.container===r)return;this.container=r||null}function _resyncRemoved(){if(this.key==null||!this.container||this.container[this.key]!==this.node){m._markRemoved.call(this)}}function popContext(){this.contexts.pop();if(this.contexts.length>0){this.setContext(this.contexts[this.contexts.length-1])}else{this.setContext(undefined)}}function pushContext(r){this.contexts.push(r);this.setContext(r)}function setup(r,s,l,p){this.listKey=l;this.container=s;this.parentPath=r||this.parentPath;setKey.call(this,p)}function setKey(r){var s;this.key=r;this.node=this.container[this.key];this.type=(s=this.node)==null?void 0:s.type}function requeue(r=this){if(r.removed)return;const s=this.contexts;for(const l of s){l.maybeQueue(r)}}function requeueComputedKeyAndDecorators(){const{context:r,node:s}=this;if(!y.isPrivate(s)&&s.computed){r.maybeQueue(this.get("key"))}if(s.decorators){for(const s of this.get("decorators")){r.maybeQueue(s)}}}function _getQueueContexts(){let r=this;let s=this.contexts;while(!s.length){r=r.parentPath;if(!r)break;s=r.contexts}return s}},8971:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.arrowFunctionToExpression=arrowFunctionToExpression;s.ensureBlock=ensureBlock;s.ensureFunctionName=ensureFunctionName;s.splitExportDeclaration=splitExportDeclaration;s.toComputedKey=toComputedKey;s.unwrapFunctionEnvironment=unwrapFunctionEnvironment;var p=l(3658);var d=l(6031);var m=l(4188);var y=l(6332);const{arrowFunctionExpression:g,assignmentExpression:T,binaryExpression:b,blockStatement:E,callExpression:S,conditionalExpression:_,expressionStatement:x,identifier:w,isIdentifier:v,jsxIdentifier:A,logicalExpression:P,LOGICAL_OPERATORS:k,memberExpression:C,metaProperty:I,numericLiteral:O,objectExpression:N,restElement:L,returnStatement:D,sequenceExpression:R,spreadElement:M,stringLiteral:F,super:B,thisExpression:j,toExpression:$,unaryExpression:U,toBindingIdentifierName:G,isFunction:q,isAssignmentPattern:W,isRestElement:H,getFunctionName:V,cloneNode:K,variableDeclaration:z,variableDeclarator:Y,exportNamedDeclaration:J,exportSpecifier:X,inherits:Q}=p;function toComputedKey(){let r;if(this.isMemberExpression()){r=this.node.property}else if(this.isProperty()||this.isMethod()){r=this.node.key}else{throw new ReferenceError("todo")}if(!this.node.computed){if(v(r))r=F(r.name)}return r}function ensureBlock(){const r=this.get("body");const s=r.node;if(Array.isArray(r)){throw new Error("Can't convert array path to a block statement")}if(!s){throw new Error("Can't convert node without a body")}if(r.isBlockStatement()){return s}const l=[];let p="body";let d;let m;if(r.isStatement()){m="body";d=0;l.push(r.node)}else{p+=".body.0";if(this.isFunction()){d="argument";l.push(D(r.node))}else{d="expression";l.push(x(r.node))}}this.node.body=E(l);const g=this.get(p);y.setup.call(r,g,m?g.node[m]:g.node,m,d);return this.node}{s.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()}}function unwrapFunctionEnvironment(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration()){throw this.buildCodeFrameError("Can only unwrap the environment of a function.")}hoistFunctionEnvironment(this)}function setType(r,s){r.node.type=s}function arrowFunctionToExpression({allowInsertArrow:r=true,allowInsertArrowWithRest:s=r,noNewArrows:l=!(r=>(r=arguments[0])==null?void 0:r.specCompliant)()}={}){if(!this.isArrowFunctionExpression()){throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.")}let p=this;if(!l){var d;p=(d=p.ensureFunctionName(false))!=null?d:p}const{thisBinding:m,fnPath:y}=hoistFunctionEnvironment(p,l,r,s);y.ensureBlock();setType(y,"FunctionExpression");if(!l){const r=m?null:y.scope.generateUidIdentifier("arrowCheckId");if(r){y.parentPath.scope.push({id:r,init:N([])})}y.get("body").unshiftContainer("body",x(S(this.hub.addHelper("newArrowCheck"),[j(),r?w(r.name):w(m)])));y.replaceWith(S(C(y.node,w("bind")),[r?w(r.name):j()]));return y.get("callee.object")}return y}const Z=(0,m.environmentVisitor)({CallExpression(r,{allSuperCalls:s}){if(!r.get("callee").isSuper())return;s.push(r)}});function hoistFunctionEnvironment(r,s=true,l=true,p=true){let d;let m=r.findParent((r=>{if(r.isArrowFunctionExpression()){d!=null?d:d=r;return false}return r.isFunction()||r.isProgram()||r.isClassProperty({static:false})||r.isClassPrivateProperty({static:false})}));const y=m.isClassMethod({kind:"constructor"});if(m.isClassProperty()||m.isClassPrivateProperty()){if(d){m=d}else if(l){r.replaceWith(S(g([],$(r.node)),[]));m=r.get("callee");r=m.get("body")}else{throw r.buildCodeFrameError("Unable to transform arrow inside class property")}}const{thisPaths:T,argumentsPaths:E,newTargetPaths:x,superProps:v,superCalls:P}=getScopeInformation(r);if(y&&P.length>0){if(!l){throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', "+"it's not possible to compile `super()` in an arrow function without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}if(!p){throw P[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.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}const r=[];m.traverse(Z,{allSuperCalls:r});const s=getSuperBinding(m);r.forEach((r=>{const l=w(s);l.loc=r.node.callee.loc;r.get("callee").replaceWith(l)}))}if(E.length>0){const r=getBinding(m,"arguments",(()=>{const args=()=>w("arguments");if(m.scope.path.isProgram()){return _(b("===",U("typeof",args()),F("undefined")),m.scope.buildUndefinedNode(),args())}else{return args()}}));E.forEach((s=>{const l=w(r);l.loc=s.node.loc;s.replaceWith(l)}))}if(x.length>0){const r=getBinding(m,"newtarget",(()=>I(w("new"),w("target"))));x.forEach((s=>{const l=w(r);l.loc=s.node.loc;s.replaceWith(l)}))}if(v.length>0){if(!l){throw v[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', "+"it's not possible to compile `super.prop` in an arrow function without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}const r=v.reduce(((r,s)=>r.concat(standardizeSuperProperty(s))),[]);r.forEach((r=>{const s=r.node.computed?"":r.get("property").node.name;const l=r.parentPath;const p=l.isAssignmentExpression({left:r.node});const d=l.isCallExpression({callee:r.node});const y=l.isTaggedTemplateExpression({tag:r.node});const g=getSuperPropBinding(m,p,s);const b=[];if(r.node.computed){b.push(r.get("property").node)}if(p){const r=l.node.right;b.push(r)}const E=S(w(g),b);if(d){l.unshiftContainer("arguments",j());r.replaceWith(C(E,w("call")));T.push(l.get("arguments.0"))}else if(p){l.replaceWith(E)}else if(y){r.replaceWith(S(C(E,w("bind"),false),[j()]));T.push(r.get("arguments.0"))}else{r.replaceWith(E)}}))}let k;if(T.length>0||!s){k=getThisBinding(m,y);if(s||y&&hasSuperClass(m)){T.forEach((r=>{const s=r.isJSX()?A(k):w(k);s.loc=r.node.loc;r.replaceWith(s)}));if(!s)k=null}}return{thisBinding:k,fnPath:r}}function isLogicalOp(r){return k.includes(r)}function standardizeSuperProperty(r){if(r.parentPath.isAssignmentExpression()&&r.parentPath.node.operator!=="="){const s=r.parentPath;const l=s.node.operator.slice(0,-1);const p=s.node.right;const d=isLogicalOp(l);if(r.node.computed){const m=r.scope.generateDeclaredUidIdentifier("tmp");const y=r.node.object;const g=r.node.property;s.get("left").replaceWith(C(y,T("=",m,g),true));s.get("right").replaceWith(rightExpression(d?"=":l,C(y,w(m.name),true),p))}else{const m=r.node.object;const y=r.node.property;s.get("left").replaceWith(C(m,y));s.get("right").replaceWith(rightExpression(d?"=":l,C(m,w(y.name)),p))}if(d){s.replaceWith(P(l,s.node.left,s.node.right))}else{s.node.operator="="}return[s.get("left"),s.get("right").get("left")]}else if(r.parentPath.isUpdateExpression()){const s=r.parentPath;const l=r.scope.generateDeclaredUidIdentifier("tmp");const p=r.node.computed?r.scope.generateDeclaredUidIdentifier("prop"):null;const d=[T("=",l,C(r.node.object,p?T("=",p,r.node.property):r.node.property,r.node.computed)),T("=",C(r.node.object,p?w(p.name):r.node.property,r.node.computed),b(r.parentPath.node.operator[0],w(l.name),O(1)))];if(!r.parentPath.node.prefix){d.push(w(l.name))}s.replaceWith(R(d));const m=s.get("expressions.0.right");const y=s.get("expressions.1.left");return[m,y]}return[r];function rightExpression(r,s,l){if(r==="="){return T("=",s,l)}else{return b(r,s,l)}}}function hasSuperClass(r){return r.isClassMethod()&&!!r.parentPath.parentPath.node.superClass}const ee=(0,m.environmentVisitor)({CallExpression(r,{supers:s,thisBinding:l}){if(!r.get("callee").isSuper())return;if(s.has(r.node))return;s.add(r.node);r.replaceWithMultiple([r.node,T("=",w(l),w("this"))])}});function getThisBinding(r,s){return getBinding(r,"this",(l=>{if(!s||!hasSuperClass(r))return j();r.traverse(ee,{supers:new WeakSet,thisBinding:l})}))}function getSuperBinding(r){return getBinding(r,"supercall",(()=>{const s=r.scope.generateUidIdentifier("args");return g([L(s)],S(B(),[M(w(s.name))]))}))}function getSuperPropBinding(r,s,l){const p=s?"set":"get";return getBinding(r,`superprop_${p}:${l||""}`,(()=>{const p=[];let d;if(l){d=C(B(),w(l))}else{const s=r.scope.generateUidIdentifier("prop");p.unshift(s);d=C(B(),w(s.name),true)}if(s){const s=r.scope.generateUidIdentifier("value");p.push(s);d=T("=",d,w(s.name))}return g(p,d)}))}function getBinding(r,s,l){const p="binding:"+s;let d=r.getData(p);if(!d){const m=r.scope.generateUidIdentifier(s);d=m.name;r.setData(p,d);r.scope.push({id:m,init:l(d)})}return d}const te=(0,m.environmentVisitor)({ThisExpression(r,{thisPaths:s}){s.push(r)},JSXIdentifier(r,{thisPaths:s}){if(r.node.name!=="this")return;if(!r.parentPath.isJSXMemberExpression({object:r.node})&&!r.parentPath.isJSXOpeningElement({name:r.node})){return}s.push(r)},CallExpression(r,{superCalls:s}){if(r.get("callee").isSuper())s.push(r)},MemberExpression(r,{superProps:s}){if(r.get("object").isSuper())s.push(r)},Identifier(r,{argumentsPaths:s}){if(!r.isReferencedIdentifier({name:"arguments"}))return;let l=r.scope;do{if(l.hasOwnBinding("arguments")){l.rename("arguments");return}if(l.path.isFunction()&&!l.path.isArrowFunctionExpression()){break}}while(l=l.parent);s.push(r)},MetaProperty(r,{newTargetPaths:s}){if(!r.get("meta").isIdentifier({name:"new"}))return;if(!r.get("property").isIdentifier({name:"target"}))return;s.push(r)}});function getScopeInformation(r){const s=[];const l=[];const p=[];const d=[];const m=[];r.traverse(te,{thisPaths:s,argumentsPaths:l,newTargetPaths:p,superProps:d,superCalls:m});return{thisPaths:s,argumentsPaths:l,newTargetPaths:p,superProps:d,superCalls:m}}function splitExportDeclaration(){if(!this.isExportDeclaration()||this.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const r=this.get("declaration");if(this.isExportDefaultDeclaration()){const s=r.isFunctionDeclaration()||r.isClassDeclaration();const l=r.isFunctionExpression()||r.isClassExpression();const p=r.isScope()?r.scope.parent:r.scope;let d=r.node.id;let m=false;if(!d){m=true;d=p.generateUidIdentifier("default");if(s||l){r.node.id=K(d)}}else if(l&&p.hasBinding(d.name)){m=true;d=p.generateUidIdentifier(d.name)}const y=s?r.node:z("var",[Y(K(d),r.node)]);const g=J(null,[X(K(d),w("default"))]);this.insertAfter(g);this.replaceWith(y);if(m){p.registerDeclaration(this)}return this}else if(this.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const s=r.getOuterBindingIdentifiers();const l=Object.keys(s).map((r=>X(w(r),w(r))));const p=J(null,l);this.insertAfter(p);this.replaceWith(r.node);return this}const re={"ReferencedIdentifier|BindingIdentifier"(r,s){if(r.node.name!==s.name)return;s.needsRename=true;r.stop()},Scope(r,s){if(r.scope.hasOwnBinding(s.name)){r.skip()}}};function ensureFunctionName(r){if(this.node.id)return this;const s=V(this.node,this.parent);if(s==null)return this;let{name:l}=s;if(!r&&/[\uD800-\uDFFF]/.test(l)){return null}if(l.startsWith("get ")||l.startsWith("set ")){return null}l=G(l.replace(/[/ ]/g,"_"));const p=w(l);Q(p,s.originalNode);const m={needsRename:false,name:l};const{scope:y}=this;const g=y.getOwnBinding(l);if(g){if(g.kind==="param"){m.needsRename=true}else{}}else if(y.parent.hasBinding(l)||y.hasGlobal(l)){this.traverse(re,m)}if(!m.needsRename){this.node.id=p;{y.getProgramParent().references[p.name]=true}return this}if(y.hasBinding(p.name)&&!y.hasGlobal(p.name)){y.rename(p.name);this.node.id=p;{y.getProgramParent().references[p.name]=true}return this}if(!q(this.node))return null;const T=y.generateUidIdentifier(p.name);const b=[];for(let r=0,s=getFunctionArity(this.node);r<s;r++){b.push(y.generateUidIdentifier("x"))}const E=d.default.expression.ast`
|
|
2
|
+
(function (${T}) {
|
|
3
|
+
function ${p}(${b}) {
|
|
4
|
+
return ${K(T)}.apply(this, arguments);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
${K(p)}.toString = function () {
|
|
8
|
+
return ${K(T)}.toString();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return ${K(p)};
|
|
12
|
+
})(${$(this.node)})
|
|
13
|
+
`;return this.replaceWith(E)[0].get("arguments.0")}function getFunctionArity(r){const s=r.params.findIndex((r=>W(r)||H(r)));return s===-1?r.params.length:s}},825:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.evaluate=evaluate;s.evaluateTruthy=evaluateTruthy;const l=["Number","String","Math"];const p=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null];const d=["random"];function isValidObjectCallee(r){return l.includes(r)}function isValidIdentifierCallee(r){return p.includes(r)}function isInvalidMethod(r){return d.includes(r)}function evaluateTruthy(){const r=this.evaluate();if(r.confident)return!!r.value}function deopt(r,s){if(!s.confident)return;s.deoptPath=r;s.confident=false}const m=new Map([["undefined",undefined],["Infinity",Infinity],["NaN",NaN]]);function evaluateCached(r,s){const{node:l}=r;const{seen:p}=s;if(p.has(l)){const d=p.get(l);if(d.resolved){return d.value}else{deopt(r,s);return}}else{const d={resolved:false};p.set(l,d);const m=_evaluate(r,s);if(s.confident){d.resolved=true;d.value=m}return m}}function _evaluate(r,s){if(!s.confident)return;if(r.isSequenceExpression()){const l=r.get("expressions");return evaluateCached(l[l.length-1],s)}if(r.isStringLiteral()||r.isNumericLiteral()||r.isBooleanLiteral()){return r.node.value}if(r.isNullLiteral()){return null}if(r.isTemplateLiteral()){return evaluateQuasis(r,r.node.quasis,s)}if(r.isTaggedTemplateExpression()&&r.get("tag").isMemberExpression()){const l=r.get("tag.object");const{node:{name:p}}=l;const d=r.get("tag.property");if(l.isIdentifier()&&p==="String"&&!r.scope.getBinding(p)&&d.isIdentifier()&&d.node.name==="raw"){return evaluateQuasis(r,r.node.quasi.quasis,s,true)}}if(r.isConditionalExpression()){const l=evaluateCached(r.get("test"),s);if(!s.confident)return;if(l){return evaluateCached(r.get("consequent"),s)}else{return evaluateCached(r.get("alternate"),s)}}if(r.isExpressionWrapper()){return evaluateCached(r.get("expression"),s)}if(r.isMemberExpression()&&!r.parentPath.isCallExpression({callee:r.node})){const l=r.get("property");const p=r.get("object");if(p.isLiteral()){const d=p.node.value;const m=typeof d;let y=null;if(r.node.computed){y=evaluateCached(l,s);if(!s.confident)return}else if(l.isIdentifier()){y=l.node.name}if((m==="number"||m==="string")&&y!=null&&(typeof y==="number"||typeof y==="string")){return d[y]}}}if(r.isReferencedIdentifier()){const p=r.scope.getBinding(r.node.name);if(p){if(p.constantViolations.length>0||r.node.start<p.path.node.end){deopt(p.path,s);return}const d=p.path.scope;if(p.kind==="var"&&d!==p.scope){let m=!d.path.parentPath.isBlockStatement();for(let y=d.parent;y;y=y.parent){var l;if(y===r.scope){if(m){deopt(p.path,s);return}break}if((l=y.path.parentPath)!=null&&l.isBlockStatement()){m=true}}}if(p.hasValue){return p.value}}const d=r.node.name;if(m.has(d)){if(!p){return m.get(d)}deopt(p.path,s);return}const y=r.resolve();if(y===r){deopt(r,s);return}const g=evaluateCached(y,s);if(typeof g==="object"&&g!==null&&p.references>1){deopt(y,s);return}return g}if(r.isUnaryExpression({prefix:true})){if(r.node.operator==="void"){return undefined}const l=r.get("argument");if(r.node.operator==="typeof"&&(l.isFunction()||l.isClass())){return"function"}const p=evaluateCached(l,s);if(!s.confident)return;switch(r.node.operator){case"!":return!p;case"+":return+p;case"-":return-p;case"~":return~p;case"typeof":return typeof p}}if(r.isArrayExpression()){const l=[];const p=r.get("elements");for(const r of p){const p=r.evaluate();if(p.confident){l.push(p.value)}else{deopt(p.deopt,s);return}}return l}if(r.isObjectExpression()){const l={};const p=r.get("properties");for(const r of p){if(r.isObjectMethod()||r.isSpreadElement()){deopt(r,s);return}const p=r.get("key");let d;if(r.node.computed){d=p.evaluate();if(!d.confident){deopt(d.deopt,s);return}d=d.value}else if(p.isIdentifier()){d=p.node.name}else{d=p.node.value}const m=r.get("value");let y=m.evaluate();if(!y.confident){deopt(y.deopt,s);return}y=y.value;l[d]=y}return l}if(r.isLogicalExpression()){const l=s.confident;const p=evaluateCached(r.get("left"),s);const d=s.confident;s.confident=l;const m=evaluateCached(r.get("right"),s);const y=s.confident;switch(r.node.operator){case"||":s.confident=d&&(!!p||y);if(!s.confident)return;return p||m;case"&&":s.confident=d&&(!p||y);if(!s.confident)return;return p&&m;case"??":s.confident=d&&(p!=null||y);if(!s.confident)return;return p!=null?p:m}}if(r.isBinaryExpression()){const l=evaluateCached(r.get("left"),s);if(!s.confident)return;const p=evaluateCached(r.get("right"),s);if(!s.confident)return;switch(r.node.operator){case"-":return l-p;case"+":return l+p;case"/":return l/p;case"*":return l*p;case"%":return l%p;case"**":return Math.pow(l,p);case"<":return l<p;case">":return l>p;case"<=":return l<=p;case">=":return l>=p;case"==":return l==p;case"!=":return l!=p;case"===":return l===p;case"!==":return l!==p;case"|":return l|p;case"&":return l&p;case"^":return l^p;case"<<":return l<<p;case">>":return l>>p;case">>>":return l>>>p}}if(r.isCallExpression()){const l=r.get("callee");let p;let d;if(l.isIdentifier()&&!r.scope.getBinding(l.node.name)&&(isValidObjectCallee(l.node.name)||isValidIdentifierCallee(l.node.name))){d=global[l.node.name]}if(l.isMemberExpression()){const r=l.get("object");const s=l.get("property");if(r.isIdentifier()&&s.isIdentifier()&&isValidObjectCallee(r.node.name)&&!isInvalidMethod(s.node.name)){p=global[r.node.name];const l=s.node.name;if(hasOwnProperty.call(p,l)){d=p[l]}}if(r.isLiteral()&&s.isIdentifier()){const l=typeof r.node.value;if(l==="string"||l==="number"){p=r.node.value;d=p[s.node.name]}}}if(d){const l=r.get("arguments").map((r=>evaluateCached(r,s)));if(!s.confident)return;return d.apply(p,l)}}deopt(r,s)}function evaluateQuasis(r,s,l,p=false){let d="";let m=0;const y=r.isTemplateLiteral()?r.get("expressions"):r.get("quasi.expressions");for(const r of s){if(!l.confident)break;d+=p?r.value.raw:r.value.cooked;const s=y[m++];if(s)d+=String(evaluateCached(s,l))}if(!l.confident)return;return d}function evaluate(){const r={confident:true,deoptPath:null,seen:new Map};let s=evaluateCached(this,r);if(!r.confident)s=undefined;return{confident:r.confident,deopt:r.deoptPath,value:s}}},2099:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._getKey=_getKey;s._getPattern=_getPattern;s.get=get;s.getAllNextSiblings=getAllNextSiblings;s.getAllPrevSiblings=getAllPrevSiblings;s.getAssignmentIdentifiers=getAssignmentIdentifiers;s.getBindingIdentifierPaths=getBindingIdentifierPaths;s.getBindingIdentifiers=getBindingIdentifiers;s.getCompletionRecords=getCompletionRecords;s.getNextSibling=getNextSibling;s.getOpposite=getOpposite;s.getOuterBindingIdentifierPaths=getOuterBindingIdentifierPaths;s.getOuterBindingIdentifiers=getOuterBindingIdentifiers;s.getPrevSibling=getPrevSibling;s.getSibling=getSibling;var p=l(4695);var d=l(3658);const{getAssignmentIdentifiers:m,getBindingIdentifiers:y,getOuterBindingIdentifiers:g,numericLiteral:T,unaryExpression:b}=d;const E=0;const S=1;function NormalCompletion(r){return{type:E,path:r}}function BreakCompletion(r){return{type:S,path:r}}function getOpposite(){if(this.key==="left"){return this.getSibling("right")}else if(this.key==="right"){return this.getSibling("left")}return null}function addCompletionRecords(r,s,l){if(r){s.push(..._getCompletionRecords(r,l))}return s}function completionRecordForSwitch(r,s,l){let p=[];for(let d=0;d<r.length;d++){const m=r[d];const y=_getCompletionRecords(m,l);const g=[];const T=[];for(const r of y){if(r.type===E){g.push(r)}if(r.type===S){T.push(r)}}if(g.length){p=g}s.push(...T)}s.push(...p);return s}function normalCompletionToBreak(r){r.forEach((r=>{r.type=S}))}function replaceBreakStatementInBreakCompletion(r,s){r.forEach((r=>{if(r.path.isBreakStatement({label:null})){if(s){r.path.replaceWith(b("void",T(0)))}else{r.path.remove()}}}))}function getStatementListCompletion(r,s){const l=[];if(s.canHaveBreak){let p=[];for(let d=0;d<r.length;d++){const m=r[d];const y=Object.assign({},s,{inCaseClause:false});if(m.isBlockStatement()&&(s.inCaseClause||s.shouldPopulateBreak)){y.shouldPopulateBreak=true}else{y.shouldPopulateBreak=false}const g=_getCompletionRecords(m,y);if(g.length>0&&g.every((r=>r.type===S))){if(p.length>0&&g.every((r=>r.path.isBreakStatement({label:null})))){normalCompletionToBreak(p);l.push(...p);if(p.some((r=>r.path.isDeclaration()))){l.push(...g);if(!s.shouldPreserveBreak){replaceBreakStatementInBreakCompletion(g,true)}}if(!s.shouldPreserveBreak){replaceBreakStatementInBreakCompletion(g,false)}}else{l.push(...g);if(!s.shouldPopulateBreak&&!s.shouldPreserveBreak){replaceBreakStatementInBreakCompletion(g,true)}}break}if(d===r.length-1){l.push(...g)}else{p=[];for(let r=0;r<g.length;r++){const s=g[r];if(s.type===S){l.push(s)}if(s.type===E){p.push(s)}}}}}else if(r.length){for(let p=r.length-1;p>=0;p--){const d=_getCompletionRecords(r[p],s);if(d.length>1||d.length===1&&!d[0].path.isVariableDeclaration()&&!d[0].path.isEmptyStatement()){l.push(...d);break}}}return l}function _getCompletionRecords(r,s){let l=[];if(r.isIfStatement()){l=addCompletionRecords(r.get("consequent"),l,s);l=addCompletionRecords(r.get("alternate"),l,s)}else if(r.isDoExpression()||r.isFor()||r.isWhile()||r.isLabeledStatement()){return addCompletionRecords(r.get("body"),l,s)}else if(r.isProgram()||r.isBlockStatement()){return getStatementListCompletion(r.get("body"),s)}else if(r.isFunction()){return _getCompletionRecords(r.get("body"),s)}else if(r.isTryStatement()){l=addCompletionRecords(r.get("block"),l,s);l=addCompletionRecords(r.get("handler"),l,s)}else if(r.isCatchClause()){return addCompletionRecords(r.get("body"),l,s)}else if(r.isSwitchStatement()){return completionRecordForSwitch(r.get("cases"),l,s)}else if(r.isSwitchCase()){return getStatementListCompletion(r.get("consequent"),{canHaveBreak:true,shouldPopulateBreak:false,inCaseClause:true,shouldPreserveBreak:s.shouldPreserveBreak})}else if(r.isBreakStatement()){l.push(BreakCompletion(r))}else{l.push(NormalCompletion(r))}return l}function getCompletionRecords(r=false){const s=_getCompletionRecords(this,{canHaveBreak:false,shouldPopulateBreak:false,inCaseClause:false,shouldPreserveBreak:r});return s.map((r=>r.path))}function getSibling(r){return p.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:r}).setContext(this.context)}function getPrevSibling(){return this.getSibling(this.key-1)}function getNextSibling(){return this.getSibling(this.key+1)}function getAllNextSiblings(){let r=this.key;let s=this.getSibling(++r);const l=[];while(s.node){l.push(s);s=this.getSibling(++r)}return l}function getAllPrevSiblings(){let r=this.key;let s=this.getSibling(--r);const l=[];while(s.node){l.push(s);s=this.getSibling(--r)}return l}function get(r,s=true){if(s===true)s=this.context;const l=r.split(".");if(l.length===1){return _getKey.call(this,r,s)}else{return _getPattern.call(this,l,s)}}function _getKey(r,s){const l=this.node;const d=l[r];if(Array.isArray(d)){return d.map(((m,y)=>p.default.get({listKey:r,parentPath:this,parent:l,container:d,key:y}).setContext(s)))}else{return p.default.get({parentPath:this,parent:l,container:l,key:r}).setContext(s)}}function _getPattern(r,s){let l=this;for(const p of r){if(p==="."){l=l.parentPath}else{if(Array.isArray(l)){l=l[p]}else{l=l.get(p,s)}}}return l}function getAssignmentIdentifiers(){return m(this.node)}function getBindingIdentifiers(r){return y(this.node,r)}function getOuterBindingIdentifiers(r){return g(this.node,r)}function getBindingIdentifierPaths(r=false,s=false){const l=this;const p=[l];const d=Object.create(null);while(p.length){const l=p.shift();if(!l)continue;if(!l.node)continue;const m=y.keys[l.node.type];if(l.isIdentifier()){if(r){const r=d[l.node.name]=d[l.node.name]||[];r.push(l)}else{d[l.node.name]=l}continue}if(l.isExportDeclaration()){const r=l.get("declaration");if(r.isDeclaration()){p.push(r)}continue}if(s){if(l.isFunctionDeclaration()){p.push(l.get("id"));continue}if(l.isFunctionExpression()){continue}}if(m){for(let r=0;r<m.length;r++){const s=m[r];const d=l.get(s);if(Array.isArray(d)){p.push(...d)}else if(d.node){p.push(d)}}}}return d}function getOuterBindingIdentifierPaths(r=false){return this.getBindingIdentifierPaths(r,true)}},4695:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=s.SHOULD_STOP=s.SHOULD_SKIP=s.REMOVED=void 0;var p=l(3820);var d=l(8143);var m=l(6191);var y=l(8160);var g=l(3658);var T=g;var b=l(3881);var E=l(7490);var S=l(8462);var _=l(7663);var x=l(807);var w=l(825);var v=l(8971);var A=l(8744);var P=l(6332);var k=P;var C=l(7147);var I=l(2855);var O=l(2099);var N=l(201);var L=l(7939);const{validate:D}=g;const R=d("babel");const M=s.REMOVED=1<<0;const F=s.SHOULD_STOP=1<<1;const B=s.SHOULD_SKIP=1<<2;const j=s["default"]=class NodePath{constructor(r,s){this.contexts=[];this.state=null;this.opts=null;this._traverseFlags=0;this.skipKeys=null;this.parentPath=null;this.container=null;this.listKey=null;this.key=null;this.node=null;this.type=null;this._store=null;this.parent=s;this.hub=r;this.data=null;this.context=null;this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(r){if(r)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(r){if(r)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(r){if(r)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:r,parentPath:s,parent:l,container:p,listKey:d,key:m}){if(!r&&s){r=s.hub}if(!l){throw new Error("To get a node path the parent needs to exist")}const y=p[m];const g=b.getOrCreateCachedPaths(l,s);let T=g.get(y);if(!T){T=new NodePath(r,l);if(y)g.set(y,T)}P.setup.call(T,s,p,d,m);return T}getScope(r){return this.isScope()?new y.default(this):r}setData(r,s){if(this.data==null){this.data=Object.create(null)}return this.data[r]=s}getData(r,s){if(this.data==null){this.data=Object.create(null)}let l=this.data[r];if(l===undefined&&s!==undefined)l=this.data[r]=s;return l}hasNode(){return this.node!=null}buildCodeFrameError(r,s=SyntaxError){return this.hub.buildError(this.node,r,s)}traverse(r,s){(0,m.default)(this.node,r,this.scope,s,this)}set(r,s){D(this.node,r,s);this.node[r]=s}getPathLocation(){const r=[];let s=this;do{let l=s.key;if(s.inList)l=`${s.listKey}[${l}]`;r.unshift(l)}while(s=s.parentPath);return r.join(".")}debug(r){if(!R.enabled)return;R(`${this.getPathLocation()} ${this.type}: ${r}`)}toString(){return(0,E.default)(this.node).code}get inList(){return!!this.listKey}set inList(r){if(!r){this.listKey=null}}get parentKey(){return this.listKey||this.key}};const $={findParent:S.findParent,find:S.find,getFunctionParent:S.getFunctionParent,getStatementParent:S.getStatementParent,getEarliestCommonAncestorFrom:S.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:S.getDeepestCommonAncestorFrom,getAncestry:S.getAncestry,isAncestor:S.isAncestor,isDescendant:S.isDescendant,inType:S.inType,getTypeAnnotation:_.getTypeAnnotation,isBaseType:_.isBaseType,couldBeBaseType:_.couldBeBaseType,baseTypeStrictlyMatches:_.baseTypeStrictlyMatches,isGenericType:_.isGenericType,replaceWithMultiple:x.replaceWithMultiple,replaceWithSourceString:x.replaceWithSourceString,replaceWith:x.replaceWith,replaceExpressionWithStatements:x.replaceExpressionWithStatements,replaceInline:x.replaceInline,evaluateTruthy:w.evaluateTruthy,evaluate:w.evaluate,toComputedKey:v.toComputedKey,ensureBlock:v.ensureBlock,unwrapFunctionEnvironment:v.unwrapFunctionEnvironment,arrowFunctionToExpression:v.arrowFunctionToExpression,splitExportDeclaration:v.splitExportDeclaration,ensureFunctionName:v.ensureFunctionName,matchesPattern:A.matchesPattern,isStatic:A.isStatic,isNodeType:A.isNodeType,canHaveVariableDeclarationOrExpression:A.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:A.canSwapBetweenExpressionAndStatement,isCompletionRecord:A.isCompletionRecord,isStatementOrBlock:A.isStatementOrBlock,referencesImport:A.referencesImport,getSource:A.getSource,willIMaybeExecuteBefore:A.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:A._guessExecutionStatusRelativeTo,resolve:A.resolve,isConstantExpression:A.isConstantExpression,isInStrictMode:A.isInStrictMode,isDenylisted:k.isDenylisted,visit:k.visit,skip:k.skip,skipKey:k.skipKey,stop:k.stop,setContext:k.setContext,requeue:k.requeue,requeueComputedKeyAndDecorators:k.requeueComputedKeyAndDecorators,remove:C.remove,insertBefore:I.insertBefore,insertAfter:I.insertAfter,unshiftContainer:I.unshiftContainer,pushContainer:I.pushContainer,getOpposite:O.getOpposite,getCompletionRecords:O.getCompletionRecords,getSibling:O.getSibling,getPrevSibling:O.getPrevSibling,getNextSibling:O.getNextSibling,getAllNextSiblings:O.getAllNextSiblings,getAllPrevSiblings:O.getAllPrevSiblings,get:O.get,getAssignmentIdentifiers:O.getAssignmentIdentifiers,getBindingIdentifiers:O.getBindingIdentifiers,getOuterBindingIdentifiers:O.getOuterBindingIdentifiers,getBindingIdentifierPaths:O.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:O.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:N.shareCommentsWithSiblings,addComment:N.addComment,addComments:N.addComments};Object.assign(j.prototype,$);{j.prototype.arrowFunctionToShadowed=v[String("arrowFunctionToShadowed")];Object.assign(j.prototype,{has:A[String("has")],is:A[String("is")],isnt:A[String("isnt")],equals:A[String("equals")],hoist:I[String("hoist")],updateSiblingKeys:I.updateSiblingKeys,call:k.call,isBlacklisted:k[String("isBlacklisted")],setScope:k.setScope,resync:k.resync,popContext:k.popContext,pushContext:k.pushContext,setup:k.setup,setKey:k.setKey})}{j.prototype._guessExecutionStatusRelativeToDifferentFunctions=A._guessExecutionStatusRelativeTo;j.prototype._guessExecutionStatusRelativeToDifferentFunctions=A._guessExecutionStatusRelativeTo;Object.assign(j.prototype,{_getTypeAnnotation:_._getTypeAnnotation,_replaceWith:x._replaceWith,_resolve:A._resolve,_call:k._call,_resyncParent:k._resyncParent,_resyncKey:k._resyncKey,_resyncList:k._resyncList,_resyncRemoved:k._resyncRemoved,_getQueueContexts:k._getQueueContexts,_removeFromScope:C._removeFromScope,_callRemovalHooks:C._callRemovalHooks,_remove:C._remove,_markRemoved:C._markRemoved,_assertUnremoved:C._assertUnremoved,_containerInsert:I._containerInsert,_containerInsertBefore:I._containerInsertBefore,_containerInsertAfter:I._containerInsertAfter,_verifyNodeList:I._verifyNodeList,_getKey:O._getKey,_getPattern:O._getPattern})}for(const r of T.TYPES){const s=`is${r}`;const l=T[s];j.prototype[s]=function(r){return l(this.node,r)};j.prototype[`assert${r}`]=function(s){if(!l(this.node,s)){throw new TypeError(`Expected node path of type ${r}`)}}}Object.assign(j.prototype,L);for(const r of Object.keys(p)){if(r[0]==="_")continue;if(!T.TYPES.includes(r))T.TYPES.push(r)}},7663:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._getTypeAnnotation=_getTypeAnnotation;s.baseTypeStrictlyMatches=baseTypeStrictlyMatches;s.couldBeBaseType=couldBeBaseType;s.getTypeAnnotation=getTypeAnnotation;s.isBaseType=isBaseType;s.isGenericType=isGenericType;var p=l(1399);var d=l(3658);const{anyTypeAnnotation:m,isAnyTypeAnnotation:y,isArrayTypeAnnotation:g,isBooleanTypeAnnotation:T,isEmptyTypeAnnotation:b,isFlowBaseAnnotation:E,isGenericTypeAnnotation:S,isIdentifier:_,isMixedTypeAnnotation:x,isNumberTypeAnnotation:w,isStringTypeAnnotation:v,isTSArrayType:A,isTSTypeAnnotation:P,isTSTypeReference:k,isTupleTypeAnnotation:C,isTypeAnnotation:I,isUnionTypeAnnotation:O,isVoidTypeAnnotation:N,stringTypeAnnotation:L,voidTypeAnnotation:D}=d;function getTypeAnnotation(){let r=this.getData("typeAnnotation");if(r!=null){return r}r=_getTypeAnnotation.call(this)||m();if(I(r)||P(r)){r=r.typeAnnotation}this.setData("typeAnnotation",r);return r}const R=new WeakSet;function _getTypeAnnotation(){const r=this.node;if(!r){if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const r=this.parentPath.parentPath;const s=r.parentPath;if(r.key==="left"&&s.isForInStatement()){return L()}if(r.key==="left"&&s.isForOfStatement()){return m()}return D()}else{return}}if(r.typeAnnotation){return r.typeAnnotation}if(R.has(r)){return}R.add(r);try{var s;let l=p[r.type];if(l){return l.call(this,r)}l=p[this.parentPath.type];if((s=l)!=null&&s.validParent){return this.parentPath.getTypeAnnotation()}}finally{R.delete(r)}}function isBaseType(r,s){return _isBaseType(r,this.getTypeAnnotation(),s)}function _isBaseType(r,s,l){if(r==="string"){return v(s)}else if(r==="number"){return w(s)}else if(r==="boolean"){return T(s)}else if(r==="any"){return y(s)}else if(r==="mixed"){return x(s)}else if(r==="empty"){return b(s)}else if(r==="void"){return N(s)}else{if(l){return false}else{throw new Error(`Unknown base type ${r}`)}}}function couldBeBaseType(r){const s=this.getTypeAnnotation();if(y(s))return true;if(O(s)){for(const l of s.types){if(y(l)||_isBaseType(r,l,true)){return true}}return false}else{return _isBaseType(r,s,true)}}function baseTypeStrictlyMatches(r){const s=this.getTypeAnnotation();const l=r.getTypeAnnotation();if(!y(s)&&E(s)){return l.type===s.type}return false}function isGenericType(r){const s=this.getTypeAnnotation();if(r==="Array"){if(A(s)||g(s)||C(s)){return true}}return S(s)&&_(s.id,{name:r})||k(s)&&_(s.typeName,{name:r})}},7636:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=_default;var p=l(3658);var d=l(5599);const{BOOLEAN_NUMBER_BINARY_OPERATORS:m,createTypeAnnotationBasedOnTypeof:y,numberTypeAnnotation:g,voidTypeAnnotation:T}=p;function _default(r){if(!this.isReferenced())return;const s=this.scope.getBinding(r.name);if(s){if(s.identifier.typeAnnotation){return s.identifier.typeAnnotation}else{return getTypeAnnotationBindingConstantViolations(s,this,r.name)}}if(r.name==="undefined"){return T()}else if(r.name==="NaN"||r.name==="Infinity"){return g()}else if(r.name==="arguments"){}}function getTypeAnnotationBindingConstantViolations(r,s,l){const p=[];const m=[];let y=getConstantViolationsBefore(r,s,m);const g=getConditionalAnnotation(r,s,l);if(g){const s=getConstantViolationsBefore(r,g.ifStatement);y=y.filter((r=>!s.includes(r)));p.push(g.typeAnnotation)}if(y.length){y.push(...m);for(const r of y){p.push(r.getTypeAnnotation())}}if(!p.length){return}return(0,d.createUnionType)(p)}function getConstantViolationsBefore(r,s,l){const p=r.constantViolations.slice();p.unshift(r.path);return p.filter((r=>{r=r.resolve();const p=r._guessExecutionStatusRelativeTo(s);if(l&&p==="unknown")l.push(r);return p==="before"}))}function inferAnnotationFromBinaryExpression(r,s){const l=s.node.operator;const p=s.get("right").resolve();const d=s.get("left").resolve();let T;if(d.isIdentifier({name:r})){T=p}else if(p.isIdentifier({name:r})){T=d}if(T){if(l==="==="){return T.getTypeAnnotation()}if(m.includes(l)){return g()}return}if(l!=="==="&&l!=="==")return;let b;let E;if(d.isUnaryExpression({operator:"typeof"})){b=d;E=p}else if(p.isUnaryExpression({operator:"typeof"})){b=p;E=d}if(!b)return;if(!b.get("argument").isIdentifier({name:r}))return;E=E.resolve();if(!E.isLiteral())return;const S=E.node.value;if(typeof S!=="string")return;return y(S)}function getParentConditionalPath(r,s,l){let p;while(p=s.parentPath){if(p.isIfStatement()||p.isConditionalExpression()){if(s.key==="test"){return}return p}if(p.isFunction()){if(p.parentPath.scope.getBinding(l)!==r)return}s=p}}function getConditionalAnnotation(r,s,l){const p=getParentConditionalPath(r,s,l);if(!p)return;const m=p.get("test");const y=[m];const g=[];for(let r=0;r<y.length;r++){const s=y[r];if(s.isLogicalExpression()){if(s.node.operator==="&&"){y.push(s.get("left"));y.push(s.get("right"))}}else if(s.isBinaryExpression()){const r=inferAnnotationFromBinaryExpression(l,s);if(r)g.push(r)}}if(g.length){return{typeAnnotation:(0,d.createUnionType)(g),ifStatement:p}}return getConditionalAnnotation(r,p,l)}},1399:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.ArrayExpression=ArrayExpression;s.AssignmentExpression=AssignmentExpression;s.BinaryExpression=BinaryExpression;s.BooleanLiteral=BooleanLiteral;s.CallExpression=CallExpression;s.ConditionalExpression=ConditionalExpression;s.ClassDeclaration=s.ClassExpression=s.FunctionDeclaration=s.ArrowFunctionExpression=s.FunctionExpression=Func;Object.defineProperty(s,"Identifier",{enumerable:true,get:function(){return d.default}});s.LogicalExpression=LogicalExpression;s.NewExpression=NewExpression;s.NullLiteral=NullLiteral;s.NumericLiteral=NumericLiteral;s.ObjectExpression=ObjectExpression;s.ParenthesizedExpression=ParenthesizedExpression;s.RegExpLiteral=RegExpLiteral;s.RestElement=RestElement;s.SequenceExpression=SequenceExpression;s.StringLiteral=StringLiteral;s.TSAsExpression=TSAsExpression;s.TSNonNullExpression=TSNonNullExpression;s.TaggedTemplateExpression=TaggedTemplateExpression;s.TemplateLiteral=TemplateLiteral;s.TypeCastExpression=TypeCastExpression;s.UnaryExpression=UnaryExpression;s.UpdateExpression=UpdateExpression;s.VariableDeclarator=VariableDeclarator;var p=l(3658);var d=l(7636);var m=l(5599);const{BOOLEAN_BINARY_OPERATORS:y,BOOLEAN_UNARY_OPERATORS:g,NUMBER_BINARY_OPERATORS:T,NUMBER_UNARY_OPERATORS:b,STRING_UNARY_OPERATORS:E,anyTypeAnnotation:S,arrayTypeAnnotation:_,booleanTypeAnnotation:x,buildMatchMemberExpression:w,genericTypeAnnotation:v,identifier:A,nullLiteralTypeAnnotation:P,numberTypeAnnotation:k,stringTypeAnnotation:C,tupleTypeAnnotation:I,unionTypeAnnotation:O,voidTypeAnnotation:N,isIdentifier:L}=p;function VariableDeclarator(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function TypeCastExpression(r){return r.typeAnnotation}TypeCastExpression.validParent=true;function TSAsExpression(r){return r.typeAnnotation}TSAsExpression.validParent=true;function TSNonNullExpression(){return this.get("expression").getTypeAnnotation()}function NewExpression(r){if(r.callee.type==="Identifier"){return v(r.callee)}}function TemplateLiteral(){return C()}function UnaryExpression(r){const s=r.operator;if(s==="void"){return N()}else if(b.includes(s)){return k()}else if(E.includes(s)){return C()}else if(g.includes(s)){return x()}}function BinaryExpression(r){const s=r.operator;if(T.includes(s)){return k()}else if(y.includes(s)){return x()}else if(s==="+"){const r=this.get("right");const s=this.get("left");if(s.isBaseType("number")&&r.isBaseType("number")){return k()}else if(s.isBaseType("string")||r.isBaseType("string")){return C()}return O([C(),k()])}}function LogicalExpression(){const r=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,m.createUnionType)(r)}function ConditionalExpression(){const r=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,m.createUnionType)(r)}function SequenceExpression(){return this.get("expressions").pop().getTypeAnnotation()}function ParenthesizedExpression(){return this.get("expression").getTypeAnnotation()}function AssignmentExpression(){return this.get("right").getTypeAnnotation()}function UpdateExpression(r){const s=r.operator;if(s==="++"||s==="--"){return k()}}function StringLiteral(){return C()}function NumericLiteral(){return k()}function BooleanLiteral(){return x()}function NullLiteral(){return P()}function RegExpLiteral(){return v(A("RegExp"))}function ObjectExpression(){return v(A("Object"))}function ArrayExpression(){return v(A("Array"))}function RestElement(){return ArrayExpression()}RestElement.validParent=true;function Func(){return v(A("Function"))}const D=w("Array.from");const R=w("Object.keys");const M=w("Object.values");const F=w("Object.entries");function CallExpression(){const{callee:r}=this.node;if(R(r)){return _(C())}else if(D(r)||M(r)||L(r,{name:"Array"})){return _(S())}else if(F(r)){return _(I([C(),S()]))}return resolveCall(this.get("callee"))}function TaggedTemplateExpression(){return resolveCall(this.get("tag"))}function resolveCall(r){r=r.resolve();if(r.isFunction()){const{node:s}=r;if(s.async){if(s.generator){return v(A("AsyncIterator"))}else{return v(A("Promise"))}}else{if(s.generator){return v(A("Iterator"))}else if(r.node.returnType){return r.node.returnType}else{}}}}},5599:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.createUnionType=createUnionType;var p=l(3658);const{createFlowUnionType:d,createTSUnionType:m,createUnionTypeAnnotation:y,isFlowType:g,isTSType:T}=p;function createUnionType(r){{if(r.every((r=>g(r)))){if(d){return d(r)}return y(r)}else if(r.every((r=>T(r)))){if(m){return m(r)}}}}},8744:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._guessExecutionStatusRelativeTo=_guessExecutionStatusRelativeTo;s._resolve=_resolve;s.canHaveVariableDeclarationOrExpression=canHaveVariableDeclarationOrExpression;s.canSwapBetweenExpressionAndStatement=canSwapBetweenExpressionAndStatement;s.getSource=getSource;s.isCompletionRecord=isCompletionRecord;s.isConstantExpression=isConstantExpression;s.isInStrictMode=isInStrictMode;s.isNodeType=isNodeType;s.isStatementOrBlock=isStatementOrBlock;s.isStatic=isStatic;s.matchesPattern=matchesPattern;s.referencesImport=referencesImport;s.resolve=resolve;s.willIMaybeExecuteBefore=willIMaybeExecuteBefore;var p=l(3658);const{STATEMENT_OR_BLOCK_KEYS:d,VISITOR_KEYS:m,isBlockStatement:y,isExpression:g,isIdentifier:T,isLiteral:b,isStringLiteral:E,isType:S,matchesPattern:_}=p;function matchesPattern(r,s){return _(this.node,r,s)}{s.has=function has(r){var s;const l=(s=this.node)==null?void 0:s[r];if(l&&Array.isArray(l)){return!!l.length}else{return!!l}}}function isStatic(){return this.scope.isStatic(this.node)}{s.is=s.has;s.isnt=function isnt(r){return!this.has(r)};s.equals=function equals(r,s){return this.node[r]===s}}function isNodeType(r){return S(this.type,r)}function canHaveVariableDeclarationOrExpression(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function canSwapBetweenExpressionAndStatement(r){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression()){return false}if(this.isExpression()){return y(r)}else if(this.isBlockStatement()){return g(r)}return false}function isCompletionRecord(r){let s=this;let l=true;do{const{type:p,container:d}=s;if(!l&&(s.isFunction()||p==="StaticBlock")){return!!r}l=false;if(Array.isArray(d)&&s.key!==d.length-1){return false}}while((s=s.parentPath)&&!s.isProgram()&&!s.isDoExpression());return true}function isStatementOrBlock(){if(this.parentPath.isLabeledStatement()||y(this.container)){return false}else{return d.includes(this.key)}}function referencesImport(r,s){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===s||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?E(this.node.property,{value:s}):this.node.property.name===s)){const s=this.get("object");return s.isReferencedIdentifier()&&s.referencesImport(r,"*")}return false}const l=this.scope.getBinding(this.node.name);if(!l||l.kind!=="module")return false;const p=l.path;const d=p.parentPath;if(!d.isImportDeclaration())return false;if(d.node.source.value===r){if(!s)return true}else{return false}if(p.isImportDefaultSpecifier()&&s==="default"){return true}if(p.isImportNamespaceSpecifier()&&s==="*"){return true}if(p.isImportSpecifier()&&T(p.node.imported,{name:s})){return true}return false}function getSource(){const r=this.node;if(r.end){const s=this.hub.getCode();if(s)return s.slice(r.start,r.end)}return""}function willIMaybeExecuteBefore(r){return this._guessExecutionStatusRelativeTo(r)!=="after"}function getOuterFunction(r){return r.isProgram()?r:(r.parentPath.scope.getFunctionParent()||r.parentPath.scope.getProgramParent()).path}function isExecutionUncertain(r,s){switch(r){case"LogicalExpression":return s==="right";case"ConditionalExpression":case"IfStatement":return s==="consequent"||s==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return s==="body";case"ForStatement":return s==="body"||s==="update";case"SwitchStatement":return s==="cases";case"TryStatement":return s==="handler";case"AssignmentPattern":return s==="right";case"OptionalMemberExpression":return s==="property";case"OptionalCallExpression":return s==="arguments";default:return false}}function isExecutionUncertainInList(r,s){for(let l=0;l<s;l++){const s=r[l];if(isExecutionUncertain(s.parent.type,s.parentKey)){return true}}return false}const x=Symbol();function _guessExecutionStatusRelativeTo(r){return _guessExecutionStatusRelativeToCached(this,r,new Map)}function _guessExecutionStatusRelativeToCached(r,s,l){const p={this:getOuterFunction(r),target:getOuterFunction(s)};if(p.target.node!==p.this.node){return _guessExecutionStatusRelativeToDifferentFunctionsCached(r,p.target,l)}const d={target:s.getAncestry(),this:r.getAncestry()};if(d.target.includes(r))return"after";if(d.this.includes(s))return"before";let y;const g={target:0,this:0};while(!y&&g.this<d.this.length){const r=d.this[g.this];g.target=d.target.indexOf(r);if(g.target>=0){y=r}else{g.this++}}if(!y){throw new Error("Internal Babel error - The two compared nodes"+" don't appear to belong to the same program.")}if(isExecutionUncertainInList(d.this,g.this-1)||isExecutionUncertainInList(d.target,g.target-1)){return"unknown"}const T={this:d.this[g.this-1],target:d.target[g.target-1]};if(T.target.listKey&&T.this.listKey&&T.target.container===T.this.container){return T.target.key>T.this.key?"before":"after"}const b=m[y.type];const E={this:b.indexOf(T.this.parentKey),target:b.indexOf(T.target.parentKey)};return E.target>E.this?"before":"after"}function _guessExecutionStatusRelativeToDifferentFunctionsInternal(r,s,l){if(!s.isFunctionDeclaration()){if(_guessExecutionStatusRelativeToCached(r,s,l)==="before"){return"before"}return"unknown"}else if(s.parentPath.isExportDeclaration()){return"unknown"}const p=s.scope.getBinding(s.node.id.name);if(!p.references)return"before";const d=p.referencePaths;let m;for(const p of d){const d=!!p.find((r=>r.node===s.node));if(d)continue;if(p.key!=="callee"||!p.parentPath.isCallExpression()){return"unknown"}const y=_guessExecutionStatusRelativeToCached(r,p,l);if(m&&m!==y){return"unknown"}else{m=y}}return m}function _guessExecutionStatusRelativeToDifferentFunctionsCached(r,s,l){let p=l.get(r.node);let d;if(!p){l.set(r.node,p=new Map)}else if(d=p.get(s.node)){if(d===x){return"unknown"}return d}p.set(s.node,x);const m=_guessExecutionStatusRelativeToDifferentFunctionsInternal(r,s,l);p.set(s.node,m);return m}function resolve(r,s){return _resolve.call(this,r,s)||this}function _resolve(r,s){var l;if((l=s)!=null&&l.includes(this))return;s=s||[];s.push(this);if(this.isVariableDeclarator()){if(this.get("id").isIdentifier()){return this.get("init").resolve(r,s)}else{}}else if(this.isReferencedIdentifier()){const l=this.scope.getBinding(this.node.name);if(!l)return;if(!l.constant)return;if(l.kind==="module")return;if(l.path!==this){const p=l.path.resolve(r,s);if(this.find((r=>r.node===p.node)))return;return p}}else if(this.isTypeCastExpression()){return this.get("expression").resolve(r,s)}else if(r&&this.isMemberExpression()){const l=this.toComputedKey();if(!b(l))return;const p=l.value;const d=this.get("object").resolve(r,s);if(d.isObjectExpression()){const l=d.get("properties");for(const d of l){if(!d.isProperty())continue;const l=d.get("key");let m=d.isnt("computed")&&l.isIdentifier({name:p});m=m||l.isLiteral({value:p});if(m)return d.get("value").resolve(r,s)}}else if(d.isArrayExpression()&&!isNaN(+p)){const l=d.get("elements");const m=l[p];if(m)return m.resolve(r,s)}}}function isConstantExpression(){if(this.isIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return false;return r.constant}if(this.isLiteral()){if(this.isRegExpLiteral()){return false}if(this.isTemplateLiteral()){return this.get("expressions").every((r=>r.isConstantExpression()))}return true}if(this.isUnaryExpression()){if(this.node.operator!=="void"){return false}return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){const{operator:r}=this.node;return r!=="in"&&r!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression()){return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:true})}if(this.isCallExpression()){return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:true})&&this.get("arguments")[0].isStringLiteral()}return false}function isInStrictMode(){const r=this.isProgram()?this:this.parentPath;const s=r.find((r=>{if(r.isProgram({sourceType:"module"}))return true;if(r.isClass())return true;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement()){return false}let s;if(r.isFunction()){s=r.node.body}else if(r.isProgram()){s=r.node}else{return false}for(const r of s.directives){if(r.value.value==="use strict"){return true}}}));return!!s}},4691:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(3658);var d=p;const{react:m}=p;const{cloneNode:y,jsxExpressionContainer:g,variableDeclaration:T,variableDeclarator:b}=d;const E={ReferencedIdentifier(r,s){if(r.isJSXIdentifier()&&m.isCompatTag(r.node.name)&&!r.parentPath.isJSXMemberExpression()){return}if(r.node.name==="this"){let l=r.scope;do{if(l.path.isFunction()&&!l.path.isArrowFunctionExpression()){break}}while(l=l.parent);if(l)s.breakOnScopePaths.push(l.path)}const l=r.scope.getBinding(r.node.name);if(!l)return;for(const p of l.constantViolations){if(p.scope!==l.path.scope){s.mutableBinding=true;r.stop();return}}if(l!==s.scope.getBinding(r.node.name))return;s.bindings[r.node.name]=l}};class PathHoister{constructor(r,s){this.breakOnScopePaths=void 0;this.bindings=void 0;this.mutableBinding=void 0;this.scopes=void 0;this.scope=void 0;this.path=void 0;this.attachAfter=void 0;this.breakOnScopePaths=[];this.bindings={};this.mutableBinding=false;this.scopes=[];this.scope=s;this.path=r;this.attachAfter=false}isCompatibleScope(r){for(const s of Object.keys(this.bindings)){const l=this.bindings[s];if(!r.bindingIdentifierEquals(s,l.identifier)){return false}}return true}getCompatibleScopes(){let r=this.path.scope;do{if(this.isCompatibleScope(r)){this.scopes.push(r)}else{break}if(this.breakOnScopePaths.includes(r.path)){break}}while(r=r.parent)}getAttachmentPath(){let r=this._getAttachmentPath();if(!r)return;let s=r.scope;if(s.path===r){s=r.scope.parent}if(s.path.isProgram()||s.path.isFunction()){for(const l of Object.keys(this.bindings)){if(!s.hasOwnBinding(l))continue;const p=this.bindings[l];if(p.kind==="param"||p.path.parentKey==="params"){continue}const d=this.getAttachmentParentForPath(p.path);if(d.key>=r.key){this.attachAfter=true;r=p.path;for(const s of p.constantViolations){if(this.getAttachmentParentForPath(s).key>r.key){r=s}}}}}return r}_getAttachmentPath(){const r=this.scopes;const s=r.pop();if(!s)return;if(s.path.isFunction()){if(this.hasOwnParamBindings(s)){if(this.scope===s)return;const r=s.path.get("body").get("body");for(let s=0;s<r.length;s++){if(r[s].node._blockHoist)continue;return r[s]}}else{return this.getNextScopeAttachmentParent()}}else if(s.path.isProgram()){return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const r=this.scopes.pop();if(r)return this.getAttachmentParentForPath(r.path)}getAttachmentParentForPath(r){do{if(!r.parentPath||Array.isArray(r.container)&&r.isStatement()){return r}}while(r=r.parentPath)}hasOwnParamBindings(r){for(const s of Object.keys(this.bindings)){if(!r.hasOwnBinding(s))continue;const l=this.bindings[s];if(l.kind==="param"&&l.constant)return true}return false}run(){this.path.traverse(E,this);if(this.mutableBinding)return;this.getCompatibleScopes();const r=this.getAttachmentPath();if(!r)return;if(r.getFunctionParent()===this.path.getFunctionParent())return;let s=r.scope.generateUidIdentifier("ref");const l=b(s,this.path.node);const p=this.attachAfter?"insertAfter":"insertBefore";const[d]=r[p]([r.isVariableDeclarator()?l:T("var",[l])]);const m=this.path.parentPath;if(m.isJSXElement()&&this.path.container===m.node.children){s=g(s)}this.path.replaceWith(y(s));return d.isVariableDeclarator()?d.get("init"):d.get("declarations.0.init")}}s["default"]=PathHoister},4782:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.hooks=void 0;const l=s.hooks=[function(r,s){const l=r.key==="test"&&(s.isWhile()||s.isSwitchCase())||r.key==="declaration"&&s.isExportDeclaration()||r.key==="body"&&s.isLabeledStatement()||r.listKey==="declarations"&&s.isVariableDeclaration()&&s.node.declarations.length===1||r.key==="expression"&&s.isExpressionStatement();if(l){s.remove();return true}},function(r,s){if(s.isSequenceExpression()&&s.node.expressions.length===1){s.replaceWith(s.node.expressions[0]);return true}},function(r,s){if(s.isBinary()){if(r.key==="left"){s.replaceWith(s.node.right)}else{s.replaceWith(s.node.left)}return true}},function(r,s){if(s.isIfStatement()&&r.key==="consequent"||r.key==="body"&&(s.isLoop()||s.isArrowFunctionExpression())){r.replaceWith({type:"BlockStatement",body:[]});return true}}]},7939:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.isBindingIdentifier=isBindingIdentifier;s.isBlockScoped=isBlockScoped;s.isExpression=isExpression;s.isFlow=isFlow;s.isForAwaitStatement=isForAwaitStatement;s.isGenerated=isGenerated;s.isPure=isPure;s.isReferenced=isReferenced;s.isReferencedIdentifier=isReferencedIdentifier;s.isReferencedMemberExpression=isReferencedMemberExpression;s.isRestProperty=isRestProperty;s.isScope=isScope;s.isSpreadProperty=isSpreadProperty;s.isStatement=isStatement;s.isUser=isUser;s.isVar=isVar;var p=l(3658);const{isBinding:d,isBlockScoped:m,isExportDeclaration:y,isExpression:g,isFlow:T,isForStatement:b,isForXStatement:E,isIdentifier:S,isImportDeclaration:_,isImportSpecifier:x,isJSXIdentifier:w,isJSXMemberExpression:v,isMemberExpression:A,isRestElement:P,isReferenced:k,isScope:C,isStatement:I,isVar:O,isVariableDeclaration:N,react:L,isForOfStatement:D}=p;const{isCompatTag:R}=L;function isReferencedIdentifier(r){const{node:s,parent:l}=this;if(!S(s,r)&&!v(l,r)){if(w(s,r)){if(R(s.name))return false}else{return false}}return k(s,l,this.parentPath.parent)}function isReferencedMemberExpression(){const{node:r,parent:s}=this;return A(r)&&k(r,s)}function isBindingIdentifier(){const{node:r,parent:s}=this;const l=this.parentPath.parent;return S(r)&&d(r,s,l)}function isStatement(){const{node:r,parent:s}=this;if(I(r)){if(N(r)){if(E(s,{left:r}))return false;if(b(s,{init:r}))return false}return true}else{return false}}function isExpression(){if(this.isIdentifier()){return this.isReferencedIdentifier()}else{return g(this.node)}}function isScope(){return C(this.node,this.parent)}function isReferenced(){return k(this.node,this.parent)}function isBlockScoped(){return m(this.node)}function isVar(){return O(this.node)}function isUser(){return this.node&&!!this.node.loc}function isGenerated(){return!this.isUser()}function isPure(r){return this.scope.isPure(this.node,r)}function isFlow(){const{node:r}=this;if(T(r)){return true}else if(_(r)){return r.importKind==="type"||r.importKind==="typeof"}else if(y(r)){return r.exportKind==="type"}else if(x(r)){return r.importKind==="type"||r.importKind==="typeof"}else{return false}}function isRestProperty(){var r;return P(this.node)&&((r=this.parentPath)==null?void 0:r.isObjectPattern())}function isSpreadProperty(){var r;return P(this.node)&&((r=this.parentPath)==null?void 0:r.isObjectExpression())}function isForAwaitStatement(){return D(this.node,{await:true})}{s.isExistentialTypeParam=function isExistentialTypeParam(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};s.isNumericLiteralTypeAnnotation=function isNumericLiteralTypeAnnotation(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}}},3820:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.Var=s.User=s.Statement=s.SpreadProperty=s.Scope=s.RestProperty=s.ReferencedMemberExpression=s.ReferencedIdentifier=s.Referenced=s.Pure=s.NumericLiteralTypeAnnotation=s.Generated=s.ForAwaitStatement=s.Flow=s.Expression=s.ExistentialTypeParam=s.BlockScoped=s.BindingIdentifier=void 0;const l=s.ReferencedIdentifier=["Identifier","JSXIdentifier"];const p=s.ReferencedMemberExpression=["MemberExpression"];const d=s.BindingIdentifier=["Identifier"];const m=s.Statement=["Statement"];const y=s.Expression=["Expression"];const g=s.Scope=["Scopable","Pattern"];const T=s.Referenced=null;const b=s.BlockScoped=null;const E=s.Var=["VariableDeclaration"];const S=s.User=null;const _=s.Generated=null;const x=s.Pure=null;const w=s.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];const v=s.RestProperty=["RestElement"];const A=s.SpreadProperty=["RestElement"];const P=s.ExistentialTypeParam=["ExistsTypeAnnotation"];const k=s.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];const C=s.ForAwaitStatement=["ForOfStatement"]},2855:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._containerInsert=_containerInsert;s._containerInsertAfter=_containerInsertAfter;s._containerInsertBefore=_containerInsertBefore;s._verifyNodeList=_verifyNodeList;s.insertAfter=insertAfter;s.insertBefore=insertBefore;s.pushContainer=pushContainer;s.unshiftContainer=unshiftContainer;s.updateSiblingKeys=updateSiblingKeys;var p=l(3881);var d=l(4695);var m=l(6332);var y=l(7147);var g=l(3658);var T=l(4691);const{arrowFunctionExpression:b,assertExpression:E,assignmentExpression:S,blockStatement:_,callExpression:x,cloneNode:w,expressionStatement:v,isAssignmentExpression:A,isCallExpression:P,isExportNamedDeclaration:k,isExpression:C,isIdentifier:I,isSequenceExpression:O,isSuper:N,thisExpression:L}=g;function insertBefore(r){y._assertUnremoved.call(this);const s=_verifyNodeList.call(this,r);const{parentPath:l,parent:p}=this;if(l.isExpressionStatement()||l.isLabeledStatement()||k(p)||l.isExportDefaultDeclaration()&&this.isDeclaration()){return l.insertBefore(s)}else if(this.isNodeType("Expression")&&!this.isJSXElement()||l.isForStatement()&&this.key==="init"){if(this.node)s.push(this.node);return this.replaceExpressionWithStatements(s)}else if(Array.isArray(this.container)){return _containerInsertBefore.call(this,s)}else if(this.isStatementOrBlock()){const r=this.node;const l=r&&(!this.isExpressionStatement()||r.expression!=null);const[p]=this.replaceWith(_(l?[r]:[]));return p.unshiftContainer("body",s)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function _containerInsert(r,s){updateSiblingKeys.call(this,r,s.length);const l=[];this.container.splice(r,0,...s);for(let d=0;d<s.length;d++){var p;const s=r+d;const y=this.getSibling(s);l.push(y);if((p=this.context)!=null&&p.queue){m.pushContext.call(y,this.context)}}const d=m._getQueueContexts.call(this);for(const r of l){m.setScope.call(r);r.debug("Inserted.");for(const s of d){s.maybeQueue(r,true)}}return l}function _containerInsertBefore(r){return _containerInsert.call(this,this.key,r)}function _containerInsertAfter(r){return _containerInsert.call(this,this.key+1,r)}const last=r=>r[r.length-1];function isHiddenInSequenceExpression(r){return O(r.parent)&&(last(r.parent.expressions)!==r.node||isHiddenInSequenceExpression(r.parentPath))}function isAlmostConstantAssignment(r,s){if(!A(r)||!I(r.left)){return false}const l=s.getBlockParent();return l.hasOwnBinding(r.left.name)&&l.getOwnBinding(r.left.name).constantViolations.length<=1}function insertAfter(r){y._assertUnremoved.call(this);if(this.isSequenceExpression()){return last(this.get("expressions")).insertAfter(r)}const s=_verifyNodeList.call(this,r);const{parentPath:l,parent:p}=this;if(l.isExpressionStatement()||l.isLabeledStatement()||k(p)||l.isExportDefaultDeclaration()&&this.isDeclaration()){return l.insertAfter(s.map((r=>C(r)?v(r):r)))}else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!l.isJSXElement()||l.isForStatement()&&this.key==="init"){const r=this;if(r.node){const p=r.node;let{scope:d}=this;if(d.path.isPattern()){E(p);r.replaceWith(x(b([],p),[]));r.get("callee.body").insertAfter(s);return[r]}if(isHiddenInSequenceExpression(r)){s.unshift(p)}else if(P(p)&&N(p.callee)){s.unshift(p);s.push(L())}else if(isAlmostConstantAssignment(p,d)){s.unshift(p);s.push(w(p.left))}else if(d.isPure(p,true)){s.push(p)}else{if(l.isMethod({computed:true,key:p})){d=d.parent}const r=d.generateDeclaredUidIdentifier();s.unshift(v(S("=",w(r),p)));s.push(v(w(r)))}}return this.replaceExpressionWithStatements(s)}else if(Array.isArray(this.container)){return _containerInsertAfter.call(this,s)}else if(this.isStatementOrBlock()){const r=this.node;const l=r&&(!this.isExpressionStatement()||r.expression!=null);const[p]=this.replaceWith(_(l?[r]:[]));return p.pushContainer("body",s)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function updateSiblingKeys(r,s){if(!this.parent)return;const l=(0,p.getCachedPaths)(this);if(!l)return;for(const[,p]of l){if(typeof p.key==="number"&&p.container===this.container&&p.key>=r){p.key+=s}}}function _verifyNodeList(r){if(!r){return[]}if(!Array.isArray(r)){r=[r]}for(let s=0;s<r.length;s++){const l=r[s];let p;if(!l){p="has falsy node"}else if(typeof l!=="object"){p="contains a non-object node"}else if(!l.type){p="without a type"}else if(l instanceof d.default){p="has a NodePath when it expected a raw object"}if(p){const r=Array.isArray(l)?"array":typeof l;throw new Error(`Node list ${p} with the index of ${s} and type of ${r}`)}}return r}function unshiftContainer(r,s){y._assertUnremoved.call(this);const l=_verifyNodeList.call(this,s);const p=this.node[r];const m=d.default.get({parentPath:this,parent:this.node,container:p,listKey:r,key:0}).setContext(this.context);return _containerInsertBefore.call(m,l)}function pushContainer(r,s){y._assertUnremoved.call(this);const l=_verifyNodeList.call(this,s);const p=this.node[r];const m=d.default.get({parentPath:this,parent:this.node,container:p,listKey:r,key:p.length}).setContext(this.context);return m.replaceWithMultiple(l)}{s.hoist=function hoist(r=this.scope){const s=new T.default(this,r);return s.run()}}},7147:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._assertUnremoved=_assertUnremoved;s._callRemovalHooks=_callRemovalHooks;s._markRemoved=_markRemoved;s._remove=_remove;s._removeFromScope=_removeFromScope;s.remove=remove;var p=l(4782);var d=l(3881);var m=l(807);var y=l(4695);var g=l(3658);var T=l(2855);var b=l(6332);const{getBindingIdentifiers:E}=g;function remove(){var r;_assertUnremoved.call(this);b.resync.call(this);if(_callRemovalHooks.call(this)){_markRemoved.call(this);return}if(!((r=this.opts)!=null&&r.noScope)){_removeFromScope.call(this)}this.shareCommentsWithSiblings();_remove.call(this);_markRemoved.call(this)}function _removeFromScope(){const r=E(this.node,false,false,true);Object.keys(r).forEach((r=>this.scope.removeBinding(r)))}function _callRemovalHooks(){if(this.parentPath){for(const r of p.hooks){if(r(this,this.parentPath))return true}}}function _remove(){if(Array.isArray(this.container)){this.container.splice(this.key,1);T.updateSiblingKeys.call(this,this.key,-1)}else{m._replaceWith.call(this,null)}}function _markRemoved(){this._traverseFlags|=y.SHOULD_SKIP|y.REMOVED;if(this.parent){var r;(r=(0,d.getCachedPaths)(this))==null||r.delete(this.node)}this.node=null}function _assertUnremoved(){if(this.removed){throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}}},807:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s._replaceWith=_replaceWith;s.replaceExpressionWithStatements=replaceExpressionWithStatements;s.replaceInline=replaceInline;s.replaceWith=replaceWith;s.replaceWithMultiple=replaceWithMultiple;s.replaceWithSourceString=replaceWithSourceString;var p=l(2900);var d=l(6191);var m=l(4695);var y=l(3881);var g=l(2855);var T=l(1946);var b=l(3658);var E=l(6332);const{FUNCTION_TYPES:S,arrowFunctionExpression:_,assignmentExpression:x,awaitExpression:w,blockStatement:v,buildUndefinedNode:A,callExpression:P,cloneNode:k,conditionalExpression:C,expressionStatement:I,getBindingIdentifiers:O,identifier:N,inheritLeadingComments:L,inheritTrailingComments:D,inheritsComments:R,isBlockStatement:M,isEmptyStatement:F,isExpression:B,isExpressionStatement:j,isIfStatement:$,isProgram:U,isStatement:G,isVariableDeclaration:q,removeComments:W,returnStatement:H,sequenceExpression:V,validate:K,yieldExpression:z}=b;function replaceWithMultiple(r){var s;E.resync.call(this);const l=g._verifyNodeList.call(this,r);L(l[0],this.node);D(l[l.length-1],this.node);(s=(0,y.getCachedPaths)(this))==null||s.delete(this.node);this.node=this.container[this.key]=null;const p=this.insertAfter(r);if(this.node){this.requeue()}else{this.remove()}return p}function replaceWithSourceString(r){E.resync.call(this);let s;try{r=`(${r})`;s=(0,T.parse)(r)}catch(s){const l=s.loc;if(l){s.message+=" - make sure this is an expression.\n"+(0,p.codeFrameColumns)(r,{start:{line:l.line,column:l.column+1}});s.code="BABEL_REPLACE_SOURCE_ERROR"}throw s}const l=s.program.body[0].expression;d.default.removeProperties(l);return this.replaceWith(l)}function replaceWith(r){E.resync.call(this);if(this.removed){throw new Error("You can't replace this node, we've already removed it")}let s=r instanceof m.default?r.node:r;if(!s){throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead")}if(this.node===s){return[this]}if(this.isProgram()&&!U(s)){throw new Error("You can only replace a Program root node with another Program node")}if(Array.isArray(s)){throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`")}if(typeof s==="string"){throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`")}let l="";if(this.isNodeType("Statement")&&B(s)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(s)&&!this.parentPath.isExportDefaultDeclaration()){s=I(s);l="expression"}}if(this.isNodeType("Expression")&&G(s)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(s)){return this.replaceExpressionWithStatements([s])}}const p=this.node;if(p){R(s,p);W(p)}_replaceWith.call(this,s);this.type=s.type;E.setScope.call(this);this.requeue();return[l?this.get(l):this]}function _replaceWith(r){var s;if(!this.container){throw new ReferenceError("Container is falsy")}if(this.inList){K(this.parent,this.key,[r])}else{K(this.parent,this.key,r)}this.debug(`Replace with ${r==null?void 0:r.type}`);(s=(0,y.getCachedPaths)(this))==null||s.set(r,this).delete(this.node);this.node=this.container[this.key]=r}function replaceExpressionWithStatements(r){E.resync.call(this);const s=[];const l=gatherSequenceExpressions(r,s);if(l){for(const r of s)this.scope.push({id:r});return this.replaceWith(l)[0].get("expressions")}const p=this.getFunctionParent();const m=p==null?void 0:p.node.async;const y=p==null?void 0:p.node.generator;const g=_([],v(r));this.replaceWith(P(g,[]));const T=this.get("callee");T.get("body").scope.hoistVariables((r=>this.scope.push({id:r})));const b=T.getCompletionRecords();for(const r of b){if(!r.isExpressionStatement())continue;const s=r.findParent((r=>r.isLoop()));if(s){let l=s.getData("expressionReplacementReturnUid");if(!l){l=T.scope.generateDeclaredUidIdentifier("ret");T.get("body").pushContainer("body",H(k(l)));s.setData("expressionReplacementReturnUid",l)}else{l=N(l.name)}r.get("expression").replaceWith(x("=",k(l),r.node.expression))}else{r.replaceWith(H(r.node.expression))}}T.arrowFunctionToExpression();const A=T;const C=m&&d.default.hasType(this.get("callee.body").node,"AwaitExpression",S);const I=y&&d.default.hasType(this.get("callee.body").node,"YieldExpression",S);if(C){A.set("async",true);if(!I){this.replaceWith(w(this.node))}}if(I){A.set("generator",true);this.replaceWith(z(this.node,true))}return A.get("body.body")}function gatherSequenceExpressions(r,s){const l=[];let p=true;for(const d of r){if(!F(d)){p=false}if(B(d)){l.push(d)}else if(j(d)){l.push(d.expression)}else if(q(d)){if(d.kind!=="var")return;for(const r of d.declarations){const p=O(r);for(const r of Object.keys(p)){s.push(k(p[r]))}if(r.init){l.push(x("=",r.id,r.init))}}p=true}else if($(d)){const r=d.consequent?gatherSequenceExpressions([d.consequent],s):A();const p=d.alternate?gatherSequenceExpressions([d.alternate],s):A();if(!r||!p)return;l.push(C(d.test,r,p))}else if(M(d)){const r=gatherSequenceExpressions(d.body,s);if(!r)return;l.push(r)}else if(F(d)){if(r.indexOf(d)===0){p=true}}else{return}}if(p)l.push(A());if(l.length===1){return l[0]}else{return V(l)}}function replaceInline(r){E.resync.call(this);if(Array.isArray(r)){if(Array.isArray(this.container)){r=g._verifyNodeList.call(this,r);const s=g._containerInsertAfter.call(this,r);this.remove();return s}else{return this.replaceWithMultiple(r)}}else{return this.replaceWith(r)}}},5469:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;class Binding{constructor({identifier:r,scope:s,path:l,kind:p}){this.identifier=void 0;this.scope=void 0;this.path=void 0;this.kind=void 0;this.constantViolations=[];this.constant=true;this.referencePaths=[];this.referenced=false;this.references=0;this.identifier=r;this.scope=s;this.path=l;this.kind=p;if((p==="var"||p==="hoisted")&&isInitInLoop(l)){this.reassign(l)}this.clearValue()}deoptValue(){this.clearValue();this.hasDeoptedValue=true}setValue(r){if(this.hasDeoptedValue)return;this.hasValue=true;this.value=r}clearValue(){this.hasDeoptedValue=false;this.hasValue=false;this.value=null}reassign(r){this.constant=false;if(this.constantViolations.includes(r)){return}this.constantViolations.push(r)}reference(r){if(this.referencePaths.includes(r)){return}this.referenced=true;this.references++;this.referencePaths.push(r)}dereference(){this.references--;this.referenced=!!this.references}}s["default"]=Binding;function isInitInLoop(r){const s=!r.isVariableDeclarator()||r.node.init;for(let{parentPath:l,key:p}=r;l;({parentPath:l,key:p}=l)){if(l.isFunctionParent())return false;if(p==="left"&&l.isForXStatement()||s&&p==="body"&&l.isLoop()){return true}}return false}},8160:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(7796);var d=l(6191);var m=l(5469);var y=l(3658);var g=y;var T=l(3881);const b=l(120),E=l(9961);const{assignmentExpression:S,callExpression:_,cloneNode:x,getBindingIdentifiers:w,identifier:v,isArrayExpression:A,isBinary:P,isCallExpression:k,isClass:C,isClassBody:I,isClassDeclaration:O,isExportAllDeclaration:N,isExportDefaultDeclaration:L,isExportNamedDeclaration:D,isFunctionDeclaration:R,isIdentifier:M,isImportDeclaration:F,isLiteral:B,isMemberExpression:j,isMethod:$,isModuleSpecifier:U,isNullLiteral:G,isObjectExpression:q,isProperty:W,isPureish:H,isRegExpLiteral:V,isSuper:K,isTaggedTemplateExpression:z,isTemplateLiteral:Y,isThisExpression:J,isUnaryExpression:X,isVariableDeclaration:Q,expressionStatement:Z,matchesPattern:ee,memberExpression:te,numericLiteral:re,toIdentifier:se,variableDeclaration:ne,variableDeclarator:ie,isRecordExpression:ae,isTupleExpression:oe,isObjectProperty:le,isTopicReference:ce,isMetaProperty:ue,isPrivateName:pe,isExportDeclaration:de,buildUndefinedNode:fe,sequenceExpression:he}=y;function gatherNodeParts(r,s){switch(r==null?void 0:r.type){default:if(F(r)||de(r)){var l;if((N(r)||D(r)||F(r))&&r.source){gatherNodeParts(r.source,s)}else if((D(r)||F(r))&&(l=r.specifiers)!=null&&l.length){for(const l of r.specifiers)gatherNodeParts(l,s)}else if((L(r)||D(r))&&r.declaration){gatherNodeParts(r.declaration,s)}}else if(U(r)){gatherNodeParts(r.local,s)}else if(B(r)&&!G(r)&&!V(r)&&!Y(r)){s.push(r.value)}break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(r.object,s);gatherNodeParts(r.property,s);break;case"Identifier":case"JSXIdentifier":s.push(r.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(r.callee,s);break;case"ObjectExpression":case"ObjectPattern":for(const l of r.properties){gatherNodeParts(l,s)}break;case"SpreadElement":case"RestElement":gatherNodeParts(r.argument,s);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(r.key,s);break;case"ThisExpression":s.push("this");break;case"Super":s.push("super");break;case"Import":case"ImportExpression":s.push("import");break;case"DoExpression":s.push("do");break;case"YieldExpression":s.push("yield");gatherNodeParts(r.argument,s);break;case"AwaitExpression":s.push("await");gatherNodeParts(r.argument,s);break;case"AssignmentExpression":gatherNodeParts(r.left,s);break;case"VariableDeclarator":gatherNodeParts(r.id,s);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":gatherNodeParts(r.id,s);break;case"PrivateName":gatherNodeParts(r.id,s);break;case"ParenthesizedExpression":gatherNodeParts(r.expression,s);break;case"UnaryExpression":case"UpdateExpression":gatherNodeParts(r.argument,s);break;case"MetaProperty":gatherNodeParts(r.meta,s);gatherNodeParts(r.property,s);break;case"JSXElement":gatherNodeParts(r.openingElement,s);break;case"JSXOpeningElement":gatherNodeParts(r.name,s);break;case"JSXFragment":gatherNodeParts(r.openingFragment,s);break;case"JSXOpeningFragment":s.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(r.namespace,s);gatherNodeParts(r.name,s);break}}function resetScope(r){{r.references=Object.create(null);r.uids=Object.create(null)}r.bindings=Object.create(null);r.globals=Object.create(null)}{var me=Symbol.for("should not be considered a local binding")}const ye={ForStatement(r){const s=r.get("init");if(s.isVar()){const{scope:l}=r;const p=l.getFunctionParent()||l.getProgramParent();p.registerBinding("var",s)}},Declaration(r){if(r.isBlockScoped())return;if(r.isImportDeclaration())return;if(r.isExportDeclaration())return;const s=r.scope.getFunctionParent()||r.scope.getProgramParent();s.registerDeclaration(r)},ImportDeclaration(r){const s=r.scope.getBlockParent();s.registerDeclaration(r)},TSImportEqualsDeclaration(r){const s=r.scope.getBlockParent();s.registerDeclaration(r)},ReferencedIdentifier(r,s){if(g.isTSQualifiedName(r.parent)&&r.parent.right===r.node){return}if(r.parentPath.isTSImportEqualsDeclaration())return;s.references.push(r)},ForXStatement(r,s){const l=r.get("left");if(l.isPattern()||l.isIdentifier()){s.constantViolations.push(r)}else if(l.isVar()){const{scope:s}=r;const p=s.getFunctionParent()||s.getProgramParent();p.registerBinding("var",l)}},ExportDeclaration:{exit(r){const{node:s,scope:l}=r;if(N(s))return;const p=s.declaration;if(O(p)||R(p)){const s=p.id;if(!s)return;const d=l.getBinding(s.name);d==null||d.reference(r)}else if(Q(p)){for(const s of p.declarations){for(const p of Object.keys(w(s))){const s=l.getBinding(p);s==null||s.reference(r)}}}}},LabeledStatement(r){r.scope.getBlockParent().registerDeclaration(r)},AssignmentExpression(r,s){s.assignments.push(r)},UpdateExpression(r,s){s.constantViolations.push(r)},UnaryExpression(r,s){if(r.node.operator==="delete"){s.constantViolations.push(r)}},BlockScoped(r){let s=r.scope;if(s.path===r)s=s.parent;const l=s.getBlockParent();l.registerDeclaration(r);if(r.isClassDeclaration()&&r.node.id){const s=r.node.id;const l=s.name;r.scope.bindings[l]=r.scope.parent.getBinding(l)}},CatchClause(r){r.scope.registerBinding("let",r)},Function(r){const s=r.get("params");for(const l of s){r.scope.registerBinding("param",l)}if(r.isFunctionExpression()&&r.node.id&&!r.node.id[me]){r.scope.registerBinding("local",r.get("id"),r)}},ClassExpression(r){if(r.node.id&&!r.node.id[me]){r.scope.registerBinding("local",r.get("id"),r)}},TSTypeAnnotation(r){r.skip()}};let ge;let Te=0;class Scope{constructor(r){this.uid=void 0;this.path=void 0;this.block=void 0;this.inited=void 0;this.labels=void 0;this.bindings=void 0;this.referencesSet=void 0;this.globals=void 0;this.uidsSet=void 0;this.data=void 0;this.crawling=void 0;const{node:s}=r;const l=T.scope.get(s);if((l==null?void 0:l.path)===r){return l}T.scope.set(s,this);this.uid=Te++;this.block=s;this.path=r;this.labels=new Map;this.inited=false;{Object.defineProperties(this,{references:{enumerable:true,configurable:true,writable:true,value:Object.create(null)},uids:{enumerable:true,configurable:true,writable:true,value:Object.create(null)}})}}get parent(){var r;let s,l=this.path;do{var p;const r=l.key==="key"||l.listKey==="decorators";l=l.parentPath;if(r&&l.isMethod())l=l.parentPath;if((p=l)!=null&&p.isScope())s=l}while(l&&!s);return(r=s)==null?void 0:r.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(r){const s=this.generateUidIdentifier(r);this.push({id:s});return x(s)}generateUidIdentifier(r){return v(this.generateUid(r))}generateUid(r="temp"){r=se(r).replace(/^_+/,"").replace(/\d+$/g,"");let s;let l=0;do{s=`_${r}`;if(l>=11)s+=l-1;else if(l>=9)s+=l-9;else if(l>=1)s+=l+1;l++}while(this.hasLabel(s)||this.hasBinding(s)||this.hasGlobal(s)||this.hasReference(s));const p=this.getProgramParent();{p.references[s]=true;p.uids[s]=true}return s}generateUidBasedOnNode(r,s){const l=[];gatherNodeParts(r,l);let p=l.join("$");p=p.replace(/^_/,"")||s||"ref";return this.generateUid(p.slice(0,20))}generateUidIdentifierBasedOnNode(r,s){return v(this.generateUidBasedOnNode(r,s))}isStatic(r){if(J(r)||K(r)||ce(r)){return true}if(M(r)){const s=this.getBinding(r.name);if(s){return s.constant}else{return this.hasBinding(r.name)}}return false}maybeGenerateMemoised(r,s){if(this.isStatic(r)){return null}else{const l=this.generateUidIdentifierBasedOnNode(r);if(!s){this.push({id:l});return x(l)}return l}}checkBlockScopedCollisions(r,s,l,p){if(s==="param")return;if(r.kind==="local")return;const d=s==="let"||r.kind==="let"||r.kind==="const"||r.kind==="module"||r.kind==="param"&&s==="const";if(d){throw this.path.hub.buildError(p,`Duplicate declaration "${l}"`,TypeError)}}rename(r,s){const l=this.getBinding(r);if(l){s||(s=this.generateUidIdentifier(r).name);const d=new p.default(l,r,s);{d.rename(arguments[2])}}}dump(){const r="-".repeat(60);console.log(r);let s=this;do{console.log("#",s.block.type);for(const r of Object.keys(s.bindings)){const l=s.bindings[r];console.log(" -",r,{constant:l.constant,references:l.references,violations:l.constantViolations.length,kind:l.kind})}}while(s=s.parent);console.log(r)}hasLabel(r){return!!this.getLabel(r)}getLabel(r){return this.labels.get(r)}registerLabel(r){this.labels.set(r.node.label.name,r)}registerDeclaration(r){if(r.isLabeledStatement()){this.registerLabel(r)}else if(r.isFunctionDeclaration()){this.registerBinding("hoisted",r.get("id"),r)}else if(r.isVariableDeclaration()){const s=r.get("declarations");const{kind:l}=r.node;for(const r of s){this.registerBinding(l==="using"||l==="await using"?"const":l,r)}}else if(r.isClassDeclaration()){if(r.node.declare)return;this.registerBinding("let",r)}else if(r.isImportDeclaration()){const s=r.node.importKind==="type"||r.node.importKind==="typeof";const l=r.get("specifiers");for(const r of l){const l=s||r.isImportSpecifier()&&(r.node.importKind==="type"||r.node.importKind==="typeof");this.registerBinding(l?"unknown":"module",r)}}else if(r.isExportDeclaration()){const s=r.get("declaration");if(s.isClassDeclaration()||s.isFunctionDeclaration()||s.isVariableDeclaration()){this.registerDeclaration(s)}}else{this.registerBinding("unknown",r)}}buildUndefinedNode(){return fe()}registerConstantViolation(r){const s=r.getAssignmentIdentifiers();for(const p of Object.keys(s)){var l;(l=this.getBinding(p))==null||l.reassign(r)}}registerBinding(r,s,l=s){if(!r)throw new ReferenceError("no `kind`");if(s.isVariableDeclaration()){const l=s.get("declarations");for(const s of l){this.registerBinding(r,s)}return}const p=this.getProgramParent();const d=s.getOuterBindingIdentifiers(true);for(const s of Object.keys(d)){{p.references[s]=true}for(const p of d[s]){const d=this.getOwnBinding(s);if(d){if(d.identifier===p)continue;this.checkBlockScopedCollisions(d,r,s,p)}if(d){d.reassign(l)}else{this.bindings[s]=new m.default({identifier:p,scope:this,path:l,kind:r})}}}}addGlobal(r){this.globals[r.name]=r}hasUid(r){{let s=this;do{if(s.uids[r])return true}while(s=s.parent);return false}}hasGlobal(r){let s=this;do{if(s.globals[r])return true}while(s=s.parent);return false}hasReference(r){{return!!this.getProgramParent().references[r]}}isPure(r,s){if(M(r)){const l=this.getBinding(r.name);if(!l)return false;if(s)return l.constant;return true}else if(J(r)||ue(r)||ce(r)||pe(r)){return true}else if(C(r)){var l;if(r.superClass&&!this.isPure(r.superClass,s)){return false}if(((l=r.decorators)==null?void 0:l.length)>0){return false}return this.isPure(r.body,s)}else if(I(r)){for(const l of r.body){if(!this.isPure(l,s))return false}return true}else if(P(r)){return this.isPure(r.left,s)&&this.isPure(r.right,s)}else if(A(r)||oe(r)){for(const l of r.elements){if(l!==null&&!this.isPure(l,s))return false}return true}else if(q(r)||ae(r)){for(const l of r.properties){if(!this.isPure(l,s))return false}return true}else if($(r)){var p;if(r.computed&&!this.isPure(r.key,s))return false;if(((p=r.decorators)==null?void 0:p.length)>0){return false}return true}else if(W(r)){var d;if(r.computed&&!this.isPure(r.key,s))return false;if(((d=r.decorators)==null?void 0:d.length)>0){return false}if(le(r)||r.static){if(r.value!==null&&!this.isPure(r.value,s)){return false}}return true}else if(X(r)){return this.isPure(r.argument,s)}else if(Y(r)){for(const l of r.expressions){if(!this.isPure(l,s))return false}return true}else if(z(r)){return ee(r.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:true})&&this.isPure(r.quasi,s)}else if(j(r)){return!r.computed&&M(r.object)&&r.object.name==="Symbol"&&M(r.property)&&r.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:true})}else if(k(r)){return ee(r.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:true})&&r.arguments.length===1&&g.isStringLiteral(r.arguments[0])}else{return H(r)}}setData(r,s){return this.data[r]=s}getData(r){let s=this;do{const l=s.data[r];if(l!=null)return l}while(s=s.parent)}removeData(r){let s=this;do{const l=s.data[r];if(l!=null)s.data[r]=null}while(s=s.parent)}init(){if(!this.inited){this.inited=true;this.crawl()}}crawl(){const r=this.path;resetScope(this);this.data=Object.create(null);let s=this;do{if(s.crawling)return;if(s.path.isProgram()){break}}while(s=s.parent);const l=s;const p={references:[],constantViolations:[],assignments:[]};this.crawling=true;ge||(ge=d.default.visitors.merge([{Scope(r){resetScope(r.scope)}},ye]));if(r.type!=="Program"){for(const s of ge.enter){s.call(p,r,p)}const s=ge[r.type];if(s){for(const l of s.enter){l.call(p,r,p)}}}r.traverse(ge,p);this.crawling=false;for(const r of p.assignments){const s=r.getAssignmentIdentifiers();for(const p of Object.keys(s)){if(r.scope.getBinding(p))continue;l.addGlobal(s[p])}r.scope.registerConstantViolation(r)}for(const r of p.references){const s=r.scope.getBinding(r.node.name);if(s){s.reference(r)}else{l.addGlobal(r.node)}}for(const r of p.constantViolations){r.scope.registerConstantViolation(r)}}push(r){let s=this.path;if(s.isPattern()){s=this.getPatternParent().path}else if(!s.isBlockStatement()&&!s.isProgram()){s=this.getBlockParent().path}if(s.isSwitchStatement()){s=(this.getFunctionParent()||this.getProgramParent()).path}const{init:l,unique:p,kind:d="var",id:m}=r;if(!l&&!p&&(d==="var"||d==="let")&&s.isFunction()&&!s.node.name&&k(s.parent,{callee:s.node})&&s.parent.arguments.length<=s.node.params.length&&M(m)){s.pushContainer("params",m);s.scope.registerBinding("param",s.get("params")[s.node.params.length-1]);return}if(s.isLoop()||s.isCatchClause()||s.isFunction()){s.ensureBlock();s=s.get("body")}const y=r._blockHoist==null?2:r._blockHoist;const g=`declaration:${d}:${y}`;let T=!p&&s.getData(g);if(!T){const r=ne(d,[]);r._blockHoist=y;[T]=s.unshiftContainer("body",[r]);if(!p)s.setData(g,T)}const b=ie(m,l);const E=T.node.declarations.push(b);s.scope.registerBinding(d,T.get("declarations")[E-1])}getProgramParent(){let r=this;do{if(r.path.isProgram()){return r}}while(r=r.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let r=this;do{if(r.path.isFunctionParent()){return r}}while(r=r.parent);return null}getBlockParent(){let r=this;do{if(r.path.isBlockParent()){return r}}while(r=r.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let r=this;do{if(!r.path.isPattern()){return r.getBlockParent()}}while(r=r.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const r=Object.create(null);let s=this;do{for(const l of Object.keys(s.bindings)){if(l in r===false){r[l]=s.bindings[l]}}s=s.parent}while(s);return r}bindingIdentifierEquals(r,s){return this.getBindingIdentifier(r)===s}getBinding(r){let s=this;let l;do{const d=s.getOwnBinding(r);if(d){var p;if((p=l)!=null&&p.isPattern()&&d.kind!=="param"&&d.kind!=="local"){}else{return d}}else if(!d&&r==="arguments"&&s.path.isFunction()&&!s.path.isArrowFunctionExpression()){break}l=s.path}while(s=s.parent)}getOwnBinding(r){return this.bindings[r]}getBindingIdentifier(r){var s;return(s=this.getBinding(r))==null?void 0:s.identifier}getOwnBindingIdentifier(r){const s=this.bindings[r];return s==null?void 0:s.identifier}hasOwnBinding(r){return!!this.getOwnBinding(r)}hasBinding(r,s){if(!r)return false;let l;let p;let d;if(typeof s==="object"){l=s.noGlobals;p=s.noUids;d=s.upToScope}else if(typeof s==="boolean"){l=s}let m=this;do{if(d===m){break}if(m.hasOwnBinding(r)){return true}}while(m=m.parent);if(!p&&this.hasUid(r))return true;if(!l&&Scope.globals.includes(r))return true;if(!l&&Scope.contextVariables.includes(r))return true;return false}parentHasBinding(r,s){var l;return(l=this.parent)==null?void 0:l.hasBinding(r,s)}moveBindingTo(r,s){const l=this.getBinding(r);if(l){l.scope.removeOwnBinding(r);l.scope=s;s.bindings[r]=l}}removeOwnBinding(r){delete this.bindings[r]}removeBinding(r){var s;(s=this.getBinding(r))==null||s.scope.removeOwnBinding(r);{let s=this;do{if(s.uids[r]){s.uids[r]=false}}while(s=s.parent)}}hoistVariables(r=r=>this.push({id:r})){this.crawl();const s=new Set;for(const l of Object.keys(this.bindings)){const p=this.bindings[l];if(!p)continue;const{path:d}=p;if(!d.isVariableDeclarator())continue;const{parent:m,parentPath:y}=d;if(m.kind!=="var"||s.has(m))continue;s.add(d.parent);let g;const T=[];for(const s of m.declarations){g!=null?g:g=s.id;if(s.init){T.push(S("=",s.id,s.init))}const l=Object.keys(w(s,false,true,true));for(const p of l){r(v(p),s.init!=null)}}if(y.parentPath.isFor({left:m})){y.replaceWith(g)}else if(T.length===0){y.remove()}else{const r=T.length===1?T[0]:he(T);if(y.parentPath.isForStatement({init:m})){y.replaceWith(r)}else{y.replaceWith(Z(r))}}}}}s["default"]=Scope;Scope.globals=[...b,...E];Scope.contextVariables=["arguments","undefined","Infinity","NaN"];{Scope.prototype._renameFromMap=function _renameFromMap(r,s,l,p){if(r[s]){r[l]=p;r[s]=null}};Scope.prototype.traverse=function(r,s,l){(0,d.default)(r,s,this,l,this.path)};Scope.prototype._generateUid=function _generateUid(r,s){let l=r;if(s>1)l+=s;return`_${l}`};Scope.prototype.toArray=function toArray(r,s,l){if(M(r)){const s=this.getBinding(r.name);if(s!=null&&s.constant&&s.path.isGenericType("Array")){return r}}if(A(r)){return r}if(M(r,{name:"arguments"})){return _(te(te(te(v("Array"),v("prototype")),v("slice")),v("call")),[r])}let p;const d=[r];if(s===true){p="toConsumableArray"}else if(typeof s==="number"){d.push(re(s));p="slicedToArray"}else{p="toArray"}if(l){d.unshift(this.path.hub.addHelper(p));p="maybeArrayLike"}return _(this.path.hub.addHelper(p),d)};Scope.prototype.getAllBindingsOfKind=function getAllBindingsOfKind(...r){const s=Object.create(null);for(const l of r){let r=this;do{for(const p of Object.keys(r.bindings)){const d=r.bindings[p];if(d.kind===l)s[p]=d}r=r.parent}while(r)}return s};Object.defineProperties(Scope.prototype,{parentBlock:{configurable:true,enumerable:true,get(){return this.path.parent}},hub:{configurable:true,enumerable:true,get(){return this.path.hub}}})}},7796:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(3658);var d=p;var m=l(9446);var y=l(4188);var g=l(6332);const{getAssignmentIdentifiers:T}=d;const b={ReferencedIdentifier({node:r},s){if(r.name===s.oldName){r.name=s.newName}},Scope(r,s){if(!r.scope.bindingIdentifierEquals(s.oldName,s.binding.identifier)){r.skip();if(r.isMethod()){if(!r.requeueComputedKeyAndDecorators){g.requeueComputedKeyAndDecorators.call(r)}else{r.requeueComputedKeyAndDecorators()}}}},ObjectProperty({node:r,scope:s},l){const{name:p}=r.key;if(r.shorthand&&(p===l.oldName||p===l.newName)&&s.getBindingIdentifier(p)===l.binding.identifier){r.shorthand=false;{var d;if((d=r.extra)!=null&&d.shorthand)r.extra.shorthand=false}}},"AssignmentExpression|Declaration|VariableDeclarator"(r,s){if(r.isVariableDeclaration())return;const l=r.isAssignmentExpression()?T(r.node):r.getOuterBindingIdentifiers();for(const r in l){if(r===s.oldName)l[r].name=s.newName}}};class Renamer{constructor(r,s,l){this.newName=l;this.oldName=s;this.binding=r}maybeConvertFromExportDeclaration(r){const s=r.parentPath;if(!s.isExportDeclaration()){return}if(s.isExportDefaultDeclaration()){const{declaration:r}=s.node;if(p.isDeclaration(r)&&!r.id){return}}if(s.isExportAllDeclaration()){return}s.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(r){return r}maybeConvertFromClassFunctionExpression(r){return r}rename(){const{binding:r,oldName:s,newName:l}=this;const{scope:d,path:g}=r;const T=g.find((r=>r.isDeclaration()||r.isFunctionExpression()||r.isClassExpression()));if(T){const l=T.getOuterBindingIdentifiers();if(l[s]===r.identifier){this.maybeConvertFromExportDeclaration(T)}}const E=arguments[0]||d.block;const S={discriminant:true};if(p.isMethod(E)){if(E.computed){S.key=true}if(!p.isObjectMethod(E)){S.decorators=true}}(0,m.traverseNode)(E,(0,y.explode)(b),d,this,d.path,S);if(!arguments[0]){d.removeOwnBinding(s);d.bindings[l]=r;this.binding.identifier.name=l}if(T){this.maybeConvertFromClassFunctionDeclaration(g);this.maybeConvertFromClassFunctionExpression(g)}}}s["default"]=Renamer},9446:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.traverseNode=traverseNode;var p=l(3972);var d=l(4695);var m=l(3658);var y=l(6332);const{VISITOR_KEYS:g}=m;function _visitPaths(r,s){r.queue=s;r.priorityQueue=[];const l=new Set;let p=false;let d=0;for(;d<s.length;){const m=s[d];d++;y.resync.call(m);if(m.contexts.length===0||m.contexts[m.contexts.length-1]!==r){y.pushContext.call(m,r)}if(m.key===null)continue;const{node:g}=m;if(l.has(g))continue;if(g)l.add(g);if(_visit(r,m)){p=true;break}if(r.priorityQueue.length){p=_visitPaths(r,r.priorityQueue);r.priorityQueue=[];r.queue=s;if(p)break}}for(let r=0;r<d;r++){y.popContext.call(s[r])}r.queue=null;return p}function _visit(r,s){var l;const p=s.node;if(!p){return false}const d=r.opts;const m=(l=d.denylist)!=null?l:d.blacklist;if(m!=null&&m.includes(p.type)){return false}if(d.shouldSkip!=null&&d.shouldSkip(s)){return false}if(s.shouldSkip)return s.shouldStop;if(y._call.call(s,d.enter))return s.shouldStop;if(s.node){var g;if(y._call.call(s,(g=d[p.type])==null?void 0:g.enter))return s.shouldStop}s.shouldStop=_traverse(s.node,d,s.scope,r.state,s,s.skipKeys);if(s.node){if(y._call.call(s,d.exit))return true}if(s.node){var T;y._call.call(s,(T=d[p.type])==null?void 0:T.exit)}return s.shouldStop}function _traverse(r,s,l,m,y,T,b){const E=g[r.type];if(!(E!=null&&E.length))return false;const S=new p.default(l,s,m,y);if(b){if(T!=null&&T[y.parentKey])return false;return _visitPaths(S,[y])}for(const s of E){if(T!=null&&T[s])continue;const l=r[s];if(!l)continue;if(Array.isArray(l)){if(!l.length)continue;const p=[];for(let m=0;m<l.length;m++){const g=d.default.get({parentPath:y,parent:r,container:l,key:m,listKey:s});p.push(g)}if(_visitPaths(S,p))return true}else{if(_visitPaths(S,[d.default.get({parentPath:y,parent:r,container:r,key:s,listKey:null})])){return true}}}return false}function traverseNode(r,s,l,d,m,y,T){const b=g[r.type];if(!b)return false;const E=new p.default(l,s,d,m);if(T){if(y!=null&&y[m.parentKey])return false;return E.visitQueue([m])}for(const s of b){if(y!=null&&y[s])continue;if(E.visit(r,s)){return true}}return false}},4188:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.environmentVisitor=environmentVisitor;s.explode=explode$1;s.isExplodedVisitor=isExplodedVisitor;s.merge=merge;s.verify=verify$1;var p=l(3820);var d=l(7939);var m=l(3658);var y=l(6332);const{DEPRECATED_KEYS:g,DEPRECATED_ALIASES:T,FLIPPED_ALIAS_KEYS:b,TYPES:E,__internal__deprecationWarning:S}=m;function isVirtualType(r){return r in p}function isExplodedVisitor(r){return r==null?void 0:r._exploded}function explode$1(r){if(isExplodedVisitor(r))return r;r._exploded=true;for(const s of Object.keys(r)){if(shouldIgnoreKey(s))continue;const l=s.split("|");if(l.length===1)continue;const p=r[s];delete r[s];for(const s of l){r[s]=p}}verify$1(r);delete r.__esModule;ensureEntranceObjects(r);ensureCallbackArrays(r);for(const s of Object.keys(r)){if(shouldIgnoreKey(s))continue;if(!isVirtualType(s))continue;const l=r[s];for(const r of Object.keys(l)){l[r]=wrapCheck(s,l[r])}delete r[s];const d=p[s];if(d!==null){for(const s of d){if(r[s]){mergePair(r[s],l)}else{r[s]=l}}}else{mergePair(r,l)}}for(const s of Object.keys(r)){if(shouldIgnoreKey(s))continue;let l=b[s];if(s in g){const r=g[s];S(s,r,"Visitor ");l=[r]}else if(s in T){const r=T[s];S(s,r,"Visitor ");l=b[r]}if(!l)continue;const p=r[s];delete r[s];for(const s of l){const l=r[s];if(l){mergePair(l,p)}else{r[s]=Object.assign({},p)}}}for(const s of Object.keys(r)){if(shouldIgnoreKey(s))continue;ensureCallbackArrays(r[s])}return r}function verify$1(r){if(r._verified)return;if(typeof r==="function"){throw new Error("You passed `traverse()` a function when it expected a visitor object, "+"are you sure you didn't mean `{ enter: Function }`?")}for(const s of Object.keys(r)){if(s==="enter"||s==="exit"){validateVisitorMethods(s,r[s])}if(shouldIgnoreKey(s))continue;if(!E.includes(s)){throw new Error(`You gave us a visitor for the node type ${s} but it's not a valid type in @babel/traverse ${"7.28.4"}`)}const l=r[s];if(typeof l==="object"){for(const r of Object.keys(l)){if(r==="enter"||r==="exit"){validateVisitorMethods(`${s}.${r}`,l[r])}else{throw new Error("You passed `traverse()` a visitor object with the property "+`${s} that has the invalid property ${r}`)}}}}r._verified=true}function validateVisitorMethods(r,s){const l=[].concat(s);for(const s of l){if(typeof s!=="function"){throw new TypeError(`Non-function found defined in ${r} with type ${typeof s}`)}}}function merge(r,s=[],l){const p={_verified:true,_exploded:true};{Object.defineProperty(p,"_exploded",{enumerable:false});Object.defineProperty(p,"_verified",{enumerable:false})}for(let d=0;d<r.length;d++){const m=explode$1(r[d]);const y=s[d];let g=m;if(y||l){g=wrapWithStateOrWrapper(g,y,l)}mergePair(p,g);for(const r of Object.keys(m)){if(shouldIgnoreKey(r))continue;let s=m[r];if(y||l){s=wrapWithStateOrWrapper(s,y,l)}const d=p[r]||(p[r]={});mergePair(d,s)}}return p}function wrapWithStateOrWrapper(r,s,l){const p={};for(const d of["enter","exit"]){let m=r[d];if(!Array.isArray(m))continue;m=m.map((function(r){let p=r;if(s){p=function(l){r.call(s,l,s)}}if(l){p=l(s==null?void 0:s.key,d,p)}if(p!==r){p.toString=()=>r.toString()}return p}));p[d]=m}return p}function ensureEntranceObjects(r){for(const s of Object.keys(r)){if(shouldIgnoreKey(s))continue;const l=r[s];if(typeof l==="function"){r[s]={enter:l}}}}function ensureCallbackArrays(r){if(r.enter&&!Array.isArray(r.enter))r.enter=[r.enter];if(r.exit&&!Array.isArray(r.exit))r.exit=[r.exit]}function wrapCheck(r,s){const l=`is${r}`;const p=d[l];const newFn=function(r){if(p.call(r)){return s.apply(this,arguments)}};newFn.toString=()=>s.toString();return newFn}function shouldIgnoreKey(r){if(r[0]==="_")return true;if(r==="enter"||r==="exit"||r==="shouldSkip")return true;if(r==="denylist"||r==="noScope"||r==="skipKeys"){return true}{if(r==="blacklist"){return true}}return false}function mergePair(r,s){for(const l of["enter","exit"]){if(!s[l])continue;r[l]=[].concat(r[l]||[],s[l])}}const _={FunctionParent(r){if(r.isArrowFunctionExpression())return;r.skip();if(r.isMethod()){if(!r.requeueComputedKeyAndDecorators){y.requeueComputedKeyAndDecorators.call(r)}else{r.requeueComputedKeyAndDecorators()}}},Property(r){if(r.isObjectProperty())return;r.skip();if(!r.requeueComputedKeyAndDecorators){y.requeueComputedKeyAndDecorators.call(r)}else{r.requeueComputedKeyAndDecorators()}}};function environmentVisitor(r){return merge([_,r])}},4202:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=assertNode;var p=l(6714);function assertNode(r){if(!(0,p.default)(r)){var s;const l=(s=r==null?void 0:r.type)!=null?s:JSON.stringify(r);throw new TypeError(`Not a valid node of type "${l}"`)}}},2588:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.assertAccessor=assertAccessor;s.assertAnyTypeAnnotation=assertAnyTypeAnnotation;s.assertArgumentPlaceholder=assertArgumentPlaceholder;s.assertArrayExpression=assertArrayExpression;s.assertArrayPattern=assertArrayPattern;s.assertArrayTypeAnnotation=assertArrayTypeAnnotation;s.assertArrowFunctionExpression=assertArrowFunctionExpression;s.assertAssignmentExpression=assertAssignmentExpression;s.assertAssignmentPattern=assertAssignmentPattern;s.assertAwaitExpression=assertAwaitExpression;s.assertBigIntLiteral=assertBigIntLiteral;s.assertBinary=assertBinary;s.assertBinaryExpression=assertBinaryExpression;s.assertBindExpression=assertBindExpression;s.assertBlock=assertBlock;s.assertBlockParent=assertBlockParent;s.assertBlockStatement=assertBlockStatement;s.assertBooleanLiteral=assertBooleanLiteral;s.assertBooleanLiteralTypeAnnotation=assertBooleanLiteralTypeAnnotation;s.assertBooleanTypeAnnotation=assertBooleanTypeAnnotation;s.assertBreakStatement=assertBreakStatement;s.assertCallExpression=assertCallExpression;s.assertCatchClause=assertCatchClause;s.assertClass=assertClass;s.assertClassAccessorProperty=assertClassAccessorProperty;s.assertClassBody=assertClassBody;s.assertClassDeclaration=assertClassDeclaration;s.assertClassExpression=assertClassExpression;s.assertClassImplements=assertClassImplements;s.assertClassMethod=assertClassMethod;s.assertClassPrivateMethod=assertClassPrivateMethod;s.assertClassPrivateProperty=assertClassPrivateProperty;s.assertClassProperty=assertClassProperty;s.assertCompletionStatement=assertCompletionStatement;s.assertConditional=assertConditional;s.assertConditionalExpression=assertConditionalExpression;s.assertContinueStatement=assertContinueStatement;s.assertDebuggerStatement=assertDebuggerStatement;s.assertDecimalLiteral=assertDecimalLiteral;s.assertDeclaration=assertDeclaration;s.assertDeclareClass=assertDeclareClass;s.assertDeclareExportAllDeclaration=assertDeclareExportAllDeclaration;s.assertDeclareExportDeclaration=assertDeclareExportDeclaration;s.assertDeclareFunction=assertDeclareFunction;s.assertDeclareInterface=assertDeclareInterface;s.assertDeclareModule=assertDeclareModule;s.assertDeclareModuleExports=assertDeclareModuleExports;s.assertDeclareOpaqueType=assertDeclareOpaqueType;s.assertDeclareTypeAlias=assertDeclareTypeAlias;s.assertDeclareVariable=assertDeclareVariable;s.assertDeclaredPredicate=assertDeclaredPredicate;s.assertDecorator=assertDecorator;s.assertDirective=assertDirective;s.assertDirectiveLiteral=assertDirectiveLiteral;s.assertDoExpression=assertDoExpression;s.assertDoWhileStatement=assertDoWhileStatement;s.assertEmptyStatement=assertEmptyStatement;s.assertEmptyTypeAnnotation=assertEmptyTypeAnnotation;s.assertEnumBody=assertEnumBody;s.assertEnumBooleanBody=assertEnumBooleanBody;s.assertEnumBooleanMember=assertEnumBooleanMember;s.assertEnumDeclaration=assertEnumDeclaration;s.assertEnumDefaultedMember=assertEnumDefaultedMember;s.assertEnumMember=assertEnumMember;s.assertEnumNumberBody=assertEnumNumberBody;s.assertEnumNumberMember=assertEnumNumberMember;s.assertEnumStringBody=assertEnumStringBody;s.assertEnumStringMember=assertEnumStringMember;s.assertEnumSymbolBody=assertEnumSymbolBody;s.assertExistsTypeAnnotation=assertExistsTypeAnnotation;s.assertExportAllDeclaration=assertExportAllDeclaration;s.assertExportDeclaration=assertExportDeclaration;s.assertExportDefaultDeclaration=assertExportDefaultDeclaration;s.assertExportDefaultSpecifier=assertExportDefaultSpecifier;s.assertExportNamedDeclaration=assertExportNamedDeclaration;s.assertExportNamespaceSpecifier=assertExportNamespaceSpecifier;s.assertExportSpecifier=assertExportSpecifier;s.assertExpression=assertExpression;s.assertExpressionStatement=assertExpressionStatement;s.assertExpressionWrapper=assertExpressionWrapper;s.assertFile=assertFile;s.assertFlow=assertFlow;s.assertFlowBaseAnnotation=assertFlowBaseAnnotation;s.assertFlowDeclaration=assertFlowDeclaration;s.assertFlowPredicate=assertFlowPredicate;s.assertFlowType=assertFlowType;s.assertFor=assertFor;s.assertForInStatement=assertForInStatement;s.assertForOfStatement=assertForOfStatement;s.assertForStatement=assertForStatement;s.assertForXStatement=assertForXStatement;s.assertFunction=assertFunction;s.assertFunctionDeclaration=assertFunctionDeclaration;s.assertFunctionExpression=assertFunctionExpression;s.assertFunctionParameter=assertFunctionParameter;s.assertFunctionParent=assertFunctionParent;s.assertFunctionTypeAnnotation=assertFunctionTypeAnnotation;s.assertFunctionTypeParam=assertFunctionTypeParam;s.assertGenericTypeAnnotation=assertGenericTypeAnnotation;s.assertIdentifier=assertIdentifier;s.assertIfStatement=assertIfStatement;s.assertImmutable=assertImmutable;s.assertImport=assertImport;s.assertImportAttribute=assertImportAttribute;s.assertImportDeclaration=assertImportDeclaration;s.assertImportDefaultSpecifier=assertImportDefaultSpecifier;s.assertImportExpression=assertImportExpression;s.assertImportNamespaceSpecifier=assertImportNamespaceSpecifier;s.assertImportOrExportDeclaration=assertImportOrExportDeclaration;s.assertImportSpecifier=assertImportSpecifier;s.assertIndexedAccessType=assertIndexedAccessType;s.assertInferredPredicate=assertInferredPredicate;s.assertInterfaceDeclaration=assertInterfaceDeclaration;s.assertInterfaceExtends=assertInterfaceExtends;s.assertInterfaceTypeAnnotation=assertInterfaceTypeAnnotation;s.assertInterpreterDirective=assertInterpreterDirective;s.assertIntersectionTypeAnnotation=assertIntersectionTypeAnnotation;s.assertJSX=assertJSX;s.assertJSXAttribute=assertJSXAttribute;s.assertJSXClosingElement=assertJSXClosingElement;s.assertJSXClosingFragment=assertJSXClosingFragment;s.assertJSXElement=assertJSXElement;s.assertJSXEmptyExpression=assertJSXEmptyExpression;s.assertJSXExpressionContainer=assertJSXExpressionContainer;s.assertJSXFragment=assertJSXFragment;s.assertJSXIdentifier=assertJSXIdentifier;s.assertJSXMemberExpression=assertJSXMemberExpression;s.assertJSXNamespacedName=assertJSXNamespacedName;s.assertJSXOpeningElement=assertJSXOpeningElement;s.assertJSXOpeningFragment=assertJSXOpeningFragment;s.assertJSXSpreadAttribute=assertJSXSpreadAttribute;s.assertJSXSpreadChild=assertJSXSpreadChild;s.assertJSXText=assertJSXText;s.assertLVal=assertLVal;s.assertLabeledStatement=assertLabeledStatement;s.assertLiteral=assertLiteral;s.assertLogicalExpression=assertLogicalExpression;s.assertLoop=assertLoop;s.assertMemberExpression=assertMemberExpression;s.assertMetaProperty=assertMetaProperty;s.assertMethod=assertMethod;s.assertMiscellaneous=assertMiscellaneous;s.assertMixedTypeAnnotation=assertMixedTypeAnnotation;s.assertModuleDeclaration=assertModuleDeclaration;s.assertModuleExpression=assertModuleExpression;s.assertModuleSpecifier=assertModuleSpecifier;s.assertNewExpression=assertNewExpression;s.assertNoop=assertNoop;s.assertNullLiteral=assertNullLiteral;s.assertNullLiteralTypeAnnotation=assertNullLiteralTypeAnnotation;s.assertNullableTypeAnnotation=assertNullableTypeAnnotation;s.assertNumberLiteral=assertNumberLiteral;s.assertNumberLiteralTypeAnnotation=assertNumberLiteralTypeAnnotation;s.assertNumberTypeAnnotation=assertNumberTypeAnnotation;s.assertNumericLiteral=assertNumericLiteral;s.assertObjectExpression=assertObjectExpression;s.assertObjectMember=assertObjectMember;s.assertObjectMethod=assertObjectMethod;s.assertObjectPattern=assertObjectPattern;s.assertObjectProperty=assertObjectProperty;s.assertObjectTypeAnnotation=assertObjectTypeAnnotation;s.assertObjectTypeCallProperty=assertObjectTypeCallProperty;s.assertObjectTypeIndexer=assertObjectTypeIndexer;s.assertObjectTypeInternalSlot=assertObjectTypeInternalSlot;s.assertObjectTypeProperty=assertObjectTypeProperty;s.assertObjectTypeSpreadProperty=assertObjectTypeSpreadProperty;s.assertOpaqueType=assertOpaqueType;s.assertOptionalCallExpression=assertOptionalCallExpression;s.assertOptionalIndexedAccessType=assertOptionalIndexedAccessType;s.assertOptionalMemberExpression=assertOptionalMemberExpression;s.assertParenthesizedExpression=assertParenthesizedExpression;s.assertPattern=assertPattern;s.assertPatternLike=assertPatternLike;s.assertPipelineBareFunction=assertPipelineBareFunction;s.assertPipelinePrimaryTopicReference=assertPipelinePrimaryTopicReference;s.assertPipelineTopicExpression=assertPipelineTopicExpression;s.assertPlaceholder=assertPlaceholder;s.assertPrivate=assertPrivate;s.assertPrivateName=assertPrivateName;s.assertProgram=assertProgram;s.assertProperty=assertProperty;s.assertPureish=assertPureish;s.assertQualifiedTypeIdentifier=assertQualifiedTypeIdentifier;s.assertRecordExpression=assertRecordExpression;s.assertRegExpLiteral=assertRegExpLiteral;s.assertRegexLiteral=assertRegexLiteral;s.assertRestElement=assertRestElement;s.assertRestProperty=assertRestProperty;s.assertReturnStatement=assertReturnStatement;s.assertScopable=assertScopable;s.assertSequenceExpression=assertSequenceExpression;s.assertSpreadElement=assertSpreadElement;s.assertSpreadProperty=assertSpreadProperty;s.assertStandardized=assertStandardized;s.assertStatement=assertStatement;s.assertStaticBlock=assertStaticBlock;s.assertStringLiteral=assertStringLiteral;s.assertStringLiteralTypeAnnotation=assertStringLiteralTypeAnnotation;s.assertStringTypeAnnotation=assertStringTypeAnnotation;s.assertSuper=assertSuper;s.assertSwitchCase=assertSwitchCase;s.assertSwitchStatement=assertSwitchStatement;s.assertSymbolTypeAnnotation=assertSymbolTypeAnnotation;s.assertTSAnyKeyword=assertTSAnyKeyword;s.assertTSArrayType=assertTSArrayType;s.assertTSAsExpression=assertTSAsExpression;s.assertTSBaseType=assertTSBaseType;s.assertTSBigIntKeyword=assertTSBigIntKeyword;s.assertTSBooleanKeyword=assertTSBooleanKeyword;s.assertTSCallSignatureDeclaration=assertTSCallSignatureDeclaration;s.assertTSConditionalType=assertTSConditionalType;s.assertTSConstructSignatureDeclaration=assertTSConstructSignatureDeclaration;s.assertTSConstructorType=assertTSConstructorType;s.assertTSDeclareFunction=assertTSDeclareFunction;s.assertTSDeclareMethod=assertTSDeclareMethod;s.assertTSEntityName=assertTSEntityName;s.assertTSEnumBody=assertTSEnumBody;s.assertTSEnumDeclaration=assertTSEnumDeclaration;s.assertTSEnumMember=assertTSEnumMember;s.assertTSExportAssignment=assertTSExportAssignment;s.assertTSExpressionWithTypeArguments=assertTSExpressionWithTypeArguments;s.assertTSExternalModuleReference=assertTSExternalModuleReference;s.assertTSFunctionType=assertTSFunctionType;s.assertTSImportEqualsDeclaration=assertTSImportEqualsDeclaration;s.assertTSImportType=assertTSImportType;s.assertTSIndexSignature=assertTSIndexSignature;s.assertTSIndexedAccessType=assertTSIndexedAccessType;s.assertTSInferType=assertTSInferType;s.assertTSInstantiationExpression=assertTSInstantiationExpression;s.assertTSInterfaceBody=assertTSInterfaceBody;s.assertTSInterfaceDeclaration=assertTSInterfaceDeclaration;s.assertTSIntersectionType=assertTSIntersectionType;s.assertTSIntrinsicKeyword=assertTSIntrinsicKeyword;s.assertTSLiteralType=assertTSLiteralType;s.assertTSMappedType=assertTSMappedType;s.assertTSMethodSignature=assertTSMethodSignature;s.assertTSModuleBlock=assertTSModuleBlock;s.assertTSModuleDeclaration=assertTSModuleDeclaration;s.assertTSNamedTupleMember=assertTSNamedTupleMember;s.assertTSNamespaceExportDeclaration=assertTSNamespaceExportDeclaration;s.assertTSNeverKeyword=assertTSNeverKeyword;s.assertTSNonNullExpression=assertTSNonNullExpression;s.assertTSNullKeyword=assertTSNullKeyword;s.assertTSNumberKeyword=assertTSNumberKeyword;s.assertTSObjectKeyword=assertTSObjectKeyword;s.assertTSOptionalType=assertTSOptionalType;s.assertTSParameterProperty=assertTSParameterProperty;s.assertTSParenthesizedType=assertTSParenthesizedType;s.assertTSPropertySignature=assertTSPropertySignature;s.assertTSQualifiedName=assertTSQualifiedName;s.assertTSRestType=assertTSRestType;s.assertTSSatisfiesExpression=assertTSSatisfiesExpression;s.assertTSStringKeyword=assertTSStringKeyword;s.assertTSSymbolKeyword=assertTSSymbolKeyword;s.assertTSTemplateLiteralType=assertTSTemplateLiteralType;s.assertTSThisType=assertTSThisType;s.assertTSTupleType=assertTSTupleType;s.assertTSType=assertTSType;s.assertTSTypeAliasDeclaration=assertTSTypeAliasDeclaration;s.assertTSTypeAnnotation=assertTSTypeAnnotation;s.assertTSTypeAssertion=assertTSTypeAssertion;s.assertTSTypeElement=assertTSTypeElement;s.assertTSTypeLiteral=assertTSTypeLiteral;s.assertTSTypeOperator=assertTSTypeOperator;s.assertTSTypeParameter=assertTSTypeParameter;s.assertTSTypeParameterDeclaration=assertTSTypeParameterDeclaration;s.assertTSTypeParameterInstantiation=assertTSTypeParameterInstantiation;s.assertTSTypePredicate=assertTSTypePredicate;s.assertTSTypeQuery=assertTSTypeQuery;s.assertTSTypeReference=assertTSTypeReference;s.assertTSUndefinedKeyword=assertTSUndefinedKeyword;s.assertTSUnionType=assertTSUnionType;s.assertTSUnknownKeyword=assertTSUnknownKeyword;s.assertTSVoidKeyword=assertTSVoidKeyword;s.assertTaggedTemplateExpression=assertTaggedTemplateExpression;s.assertTemplateElement=assertTemplateElement;s.assertTemplateLiteral=assertTemplateLiteral;s.assertTerminatorless=assertTerminatorless;s.assertThisExpression=assertThisExpression;s.assertThisTypeAnnotation=assertThisTypeAnnotation;s.assertThrowStatement=assertThrowStatement;s.assertTopicReference=assertTopicReference;s.assertTryStatement=assertTryStatement;s.assertTupleExpression=assertTupleExpression;s.assertTupleTypeAnnotation=assertTupleTypeAnnotation;s.assertTypeAlias=assertTypeAlias;s.assertTypeAnnotation=assertTypeAnnotation;s.assertTypeCastExpression=assertTypeCastExpression;s.assertTypeParameter=assertTypeParameter;s.assertTypeParameterDeclaration=assertTypeParameterDeclaration;s.assertTypeParameterInstantiation=assertTypeParameterInstantiation;s.assertTypeScript=assertTypeScript;s.assertTypeofTypeAnnotation=assertTypeofTypeAnnotation;s.assertUnaryExpression=assertUnaryExpression;s.assertUnaryLike=assertUnaryLike;s.assertUnionTypeAnnotation=assertUnionTypeAnnotation;s.assertUpdateExpression=assertUpdateExpression;s.assertUserWhitespacable=assertUserWhitespacable;s.assertV8IntrinsicIdentifier=assertV8IntrinsicIdentifier;s.assertVariableDeclaration=assertVariableDeclaration;s.assertVariableDeclarator=assertVariableDeclarator;s.assertVariance=assertVariance;s.assertVoidPattern=assertVoidPattern;s.assertVoidTypeAnnotation=assertVoidTypeAnnotation;s.assertWhile=assertWhile;s.assertWhileStatement=assertWhileStatement;s.assertWithStatement=assertWithStatement;s.assertYieldExpression=assertYieldExpression;var p=l(3762);var d=l(9408);function assert(r,s,l){if(!(0,p.default)(r,s,l)){throw new Error(`Expected type "${r}" with option ${JSON.stringify(l)}, `+`but instead got "${s.type}".`)}}function assertArrayExpression(r,s){assert("ArrayExpression",r,s)}function assertAssignmentExpression(r,s){assert("AssignmentExpression",r,s)}function assertBinaryExpression(r,s){assert("BinaryExpression",r,s)}function assertInterpreterDirective(r,s){assert("InterpreterDirective",r,s)}function assertDirective(r,s){assert("Directive",r,s)}function assertDirectiveLiteral(r,s){assert("DirectiveLiteral",r,s)}function assertBlockStatement(r,s){assert("BlockStatement",r,s)}function assertBreakStatement(r,s){assert("BreakStatement",r,s)}function assertCallExpression(r,s){assert("CallExpression",r,s)}function assertCatchClause(r,s){assert("CatchClause",r,s)}function assertConditionalExpression(r,s){assert("ConditionalExpression",r,s)}function assertContinueStatement(r,s){assert("ContinueStatement",r,s)}function assertDebuggerStatement(r,s){assert("DebuggerStatement",r,s)}function assertDoWhileStatement(r,s){assert("DoWhileStatement",r,s)}function assertEmptyStatement(r,s){assert("EmptyStatement",r,s)}function assertExpressionStatement(r,s){assert("ExpressionStatement",r,s)}function assertFile(r,s){assert("File",r,s)}function assertForInStatement(r,s){assert("ForInStatement",r,s)}function assertForStatement(r,s){assert("ForStatement",r,s)}function assertFunctionDeclaration(r,s){assert("FunctionDeclaration",r,s)}function assertFunctionExpression(r,s){assert("FunctionExpression",r,s)}function assertIdentifier(r,s){assert("Identifier",r,s)}function assertIfStatement(r,s){assert("IfStatement",r,s)}function assertLabeledStatement(r,s){assert("LabeledStatement",r,s)}function assertStringLiteral(r,s){assert("StringLiteral",r,s)}function assertNumericLiteral(r,s){assert("NumericLiteral",r,s)}function assertNullLiteral(r,s){assert("NullLiteral",r,s)}function assertBooleanLiteral(r,s){assert("BooleanLiteral",r,s)}function assertRegExpLiteral(r,s){assert("RegExpLiteral",r,s)}function assertLogicalExpression(r,s){assert("LogicalExpression",r,s)}function assertMemberExpression(r,s){assert("MemberExpression",r,s)}function assertNewExpression(r,s){assert("NewExpression",r,s)}function assertProgram(r,s){assert("Program",r,s)}function assertObjectExpression(r,s){assert("ObjectExpression",r,s)}function assertObjectMethod(r,s){assert("ObjectMethod",r,s)}function assertObjectProperty(r,s){assert("ObjectProperty",r,s)}function assertRestElement(r,s){assert("RestElement",r,s)}function assertReturnStatement(r,s){assert("ReturnStatement",r,s)}function assertSequenceExpression(r,s){assert("SequenceExpression",r,s)}function assertParenthesizedExpression(r,s){assert("ParenthesizedExpression",r,s)}function assertSwitchCase(r,s){assert("SwitchCase",r,s)}function assertSwitchStatement(r,s){assert("SwitchStatement",r,s)}function assertThisExpression(r,s){assert("ThisExpression",r,s)}function assertThrowStatement(r,s){assert("ThrowStatement",r,s)}function assertTryStatement(r,s){assert("TryStatement",r,s)}function assertUnaryExpression(r,s){assert("UnaryExpression",r,s)}function assertUpdateExpression(r,s){assert("UpdateExpression",r,s)}function assertVariableDeclaration(r,s){assert("VariableDeclaration",r,s)}function assertVariableDeclarator(r,s){assert("VariableDeclarator",r,s)}function assertWhileStatement(r,s){assert("WhileStatement",r,s)}function assertWithStatement(r,s){assert("WithStatement",r,s)}function assertAssignmentPattern(r,s){assert("AssignmentPattern",r,s)}function assertArrayPattern(r,s){assert("ArrayPattern",r,s)}function assertArrowFunctionExpression(r,s){assert("ArrowFunctionExpression",r,s)}function assertClassBody(r,s){assert("ClassBody",r,s)}function assertClassExpression(r,s){assert("ClassExpression",r,s)}function assertClassDeclaration(r,s){assert("ClassDeclaration",r,s)}function assertExportAllDeclaration(r,s){assert("ExportAllDeclaration",r,s)}function assertExportDefaultDeclaration(r,s){assert("ExportDefaultDeclaration",r,s)}function assertExportNamedDeclaration(r,s){assert("ExportNamedDeclaration",r,s)}function assertExportSpecifier(r,s){assert("ExportSpecifier",r,s)}function assertForOfStatement(r,s){assert("ForOfStatement",r,s)}function assertImportDeclaration(r,s){assert("ImportDeclaration",r,s)}function assertImportDefaultSpecifier(r,s){assert("ImportDefaultSpecifier",r,s)}function assertImportNamespaceSpecifier(r,s){assert("ImportNamespaceSpecifier",r,s)}function assertImportSpecifier(r,s){assert("ImportSpecifier",r,s)}function assertImportExpression(r,s){assert("ImportExpression",r,s)}function assertMetaProperty(r,s){assert("MetaProperty",r,s)}function assertClassMethod(r,s){assert("ClassMethod",r,s)}function assertObjectPattern(r,s){assert("ObjectPattern",r,s)}function assertSpreadElement(r,s){assert("SpreadElement",r,s)}function assertSuper(r,s){assert("Super",r,s)}function assertTaggedTemplateExpression(r,s){assert("TaggedTemplateExpression",r,s)}function assertTemplateElement(r,s){assert("TemplateElement",r,s)}function assertTemplateLiteral(r,s){assert("TemplateLiteral",r,s)}function assertYieldExpression(r,s){assert("YieldExpression",r,s)}function assertAwaitExpression(r,s){assert("AwaitExpression",r,s)}function assertImport(r,s){assert("Import",r,s)}function assertBigIntLiteral(r,s){assert("BigIntLiteral",r,s)}function assertExportNamespaceSpecifier(r,s){assert("ExportNamespaceSpecifier",r,s)}function assertOptionalMemberExpression(r,s){assert("OptionalMemberExpression",r,s)}function assertOptionalCallExpression(r,s){assert("OptionalCallExpression",r,s)}function assertClassProperty(r,s){assert("ClassProperty",r,s)}function assertClassAccessorProperty(r,s){assert("ClassAccessorProperty",r,s)}function assertClassPrivateProperty(r,s){assert("ClassPrivateProperty",r,s)}function assertClassPrivateMethod(r,s){assert("ClassPrivateMethod",r,s)}function assertPrivateName(r,s){assert("PrivateName",r,s)}function assertStaticBlock(r,s){assert("StaticBlock",r,s)}function assertImportAttribute(r,s){assert("ImportAttribute",r,s)}function assertAnyTypeAnnotation(r,s){assert("AnyTypeAnnotation",r,s)}function assertArrayTypeAnnotation(r,s){assert("ArrayTypeAnnotation",r,s)}function assertBooleanTypeAnnotation(r,s){assert("BooleanTypeAnnotation",r,s)}function assertBooleanLiteralTypeAnnotation(r,s){assert("BooleanLiteralTypeAnnotation",r,s)}function assertNullLiteralTypeAnnotation(r,s){assert("NullLiteralTypeAnnotation",r,s)}function assertClassImplements(r,s){assert("ClassImplements",r,s)}function assertDeclareClass(r,s){assert("DeclareClass",r,s)}function assertDeclareFunction(r,s){assert("DeclareFunction",r,s)}function assertDeclareInterface(r,s){assert("DeclareInterface",r,s)}function assertDeclareModule(r,s){assert("DeclareModule",r,s)}function assertDeclareModuleExports(r,s){assert("DeclareModuleExports",r,s)}function assertDeclareTypeAlias(r,s){assert("DeclareTypeAlias",r,s)}function assertDeclareOpaqueType(r,s){assert("DeclareOpaqueType",r,s)}function assertDeclareVariable(r,s){assert("DeclareVariable",r,s)}function assertDeclareExportDeclaration(r,s){assert("DeclareExportDeclaration",r,s)}function assertDeclareExportAllDeclaration(r,s){assert("DeclareExportAllDeclaration",r,s)}function assertDeclaredPredicate(r,s){assert("DeclaredPredicate",r,s)}function assertExistsTypeAnnotation(r,s){assert("ExistsTypeAnnotation",r,s)}function assertFunctionTypeAnnotation(r,s){assert("FunctionTypeAnnotation",r,s)}function assertFunctionTypeParam(r,s){assert("FunctionTypeParam",r,s)}function assertGenericTypeAnnotation(r,s){assert("GenericTypeAnnotation",r,s)}function assertInferredPredicate(r,s){assert("InferredPredicate",r,s)}function assertInterfaceExtends(r,s){assert("InterfaceExtends",r,s)}function assertInterfaceDeclaration(r,s){assert("InterfaceDeclaration",r,s)}function assertInterfaceTypeAnnotation(r,s){assert("InterfaceTypeAnnotation",r,s)}function assertIntersectionTypeAnnotation(r,s){assert("IntersectionTypeAnnotation",r,s)}function assertMixedTypeAnnotation(r,s){assert("MixedTypeAnnotation",r,s)}function assertEmptyTypeAnnotation(r,s){assert("EmptyTypeAnnotation",r,s)}function assertNullableTypeAnnotation(r,s){assert("NullableTypeAnnotation",r,s)}function assertNumberLiteralTypeAnnotation(r,s){assert("NumberLiteralTypeAnnotation",r,s)}function assertNumberTypeAnnotation(r,s){assert("NumberTypeAnnotation",r,s)}function assertObjectTypeAnnotation(r,s){assert("ObjectTypeAnnotation",r,s)}function assertObjectTypeInternalSlot(r,s){assert("ObjectTypeInternalSlot",r,s)}function assertObjectTypeCallProperty(r,s){assert("ObjectTypeCallProperty",r,s)}function assertObjectTypeIndexer(r,s){assert("ObjectTypeIndexer",r,s)}function assertObjectTypeProperty(r,s){assert("ObjectTypeProperty",r,s)}function assertObjectTypeSpreadProperty(r,s){assert("ObjectTypeSpreadProperty",r,s)}function assertOpaqueType(r,s){assert("OpaqueType",r,s)}function assertQualifiedTypeIdentifier(r,s){assert("QualifiedTypeIdentifier",r,s)}function assertStringLiteralTypeAnnotation(r,s){assert("StringLiteralTypeAnnotation",r,s)}function assertStringTypeAnnotation(r,s){assert("StringTypeAnnotation",r,s)}function assertSymbolTypeAnnotation(r,s){assert("SymbolTypeAnnotation",r,s)}function assertThisTypeAnnotation(r,s){assert("ThisTypeAnnotation",r,s)}function assertTupleTypeAnnotation(r,s){assert("TupleTypeAnnotation",r,s)}function assertTypeofTypeAnnotation(r,s){assert("TypeofTypeAnnotation",r,s)}function assertTypeAlias(r,s){assert("TypeAlias",r,s)}function assertTypeAnnotation(r,s){assert("TypeAnnotation",r,s)}function assertTypeCastExpression(r,s){assert("TypeCastExpression",r,s)}function assertTypeParameter(r,s){assert("TypeParameter",r,s)}function assertTypeParameterDeclaration(r,s){assert("TypeParameterDeclaration",r,s)}function assertTypeParameterInstantiation(r,s){assert("TypeParameterInstantiation",r,s)}function assertUnionTypeAnnotation(r,s){assert("UnionTypeAnnotation",r,s)}function assertVariance(r,s){assert("Variance",r,s)}function assertVoidTypeAnnotation(r,s){assert("VoidTypeAnnotation",r,s)}function assertEnumDeclaration(r,s){assert("EnumDeclaration",r,s)}function assertEnumBooleanBody(r,s){assert("EnumBooleanBody",r,s)}function assertEnumNumberBody(r,s){assert("EnumNumberBody",r,s)}function assertEnumStringBody(r,s){assert("EnumStringBody",r,s)}function assertEnumSymbolBody(r,s){assert("EnumSymbolBody",r,s)}function assertEnumBooleanMember(r,s){assert("EnumBooleanMember",r,s)}function assertEnumNumberMember(r,s){assert("EnumNumberMember",r,s)}function assertEnumStringMember(r,s){assert("EnumStringMember",r,s)}function assertEnumDefaultedMember(r,s){assert("EnumDefaultedMember",r,s)}function assertIndexedAccessType(r,s){assert("IndexedAccessType",r,s)}function assertOptionalIndexedAccessType(r,s){assert("OptionalIndexedAccessType",r,s)}function assertJSXAttribute(r,s){assert("JSXAttribute",r,s)}function assertJSXClosingElement(r,s){assert("JSXClosingElement",r,s)}function assertJSXElement(r,s){assert("JSXElement",r,s)}function assertJSXEmptyExpression(r,s){assert("JSXEmptyExpression",r,s)}function assertJSXExpressionContainer(r,s){assert("JSXExpressionContainer",r,s)}function assertJSXSpreadChild(r,s){assert("JSXSpreadChild",r,s)}function assertJSXIdentifier(r,s){assert("JSXIdentifier",r,s)}function assertJSXMemberExpression(r,s){assert("JSXMemberExpression",r,s)}function assertJSXNamespacedName(r,s){assert("JSXNamespacedName",r,s)}function assertJSXOpeningElement(r,s){assert("JSXOpeningElement",r,s)}function assertJSXSpreadAttribute(r,s){assert("JSXSpreadAttribute",r,s)}function assertJSXText(r,s){assert("JSXText",r,s)}function assertJSXFragment(r,s){assert("JSXFragment",r,s)}function assertJSXOpeningFragment(r,s){assert("JSXOpeningFragment",r,s)}function assertJSXClosingFragment(r,s){assert("JSXClosingFragment",r,s)}function assertNoop(r,s){assert("Noop",r,s)}function assertPlaceholder(r,s){assert("Placeholder",r,s)}function assertV8IntrinsicIdentifier(r,s){assert("V8IntrinsicIdentifier",r,s)}function assertArgumentPlaceholder(r,s){assert("ArgumentPlaceholder",r,s)}function assertBindExpression(r,s){assert("BindExpression",r,s)}function assertDecorator(r,s){assert("Decorator",r,s)}function assertDoExpression(r,s){assert("DoExpression",r,s)}function assertExportDefaultSpecifier(r,s){assert("ExportDefaultSpecifier",r,s)}function assertRecordExpression(r,s){assert("RecordExpression",r,s)}function assertTupleExpression(r,s){assert("TupleExpression",r,s)}function assertDecimalLiteral(r,s){assert("DecimalLiteral",r,s)}function assertModuleExpression(r,s){assert("ModuleExpression",r,s)}function assertTopicReference(r,s){assert("TopicReference",r,s)}function assertPipelineTopicExpression(r,s){assert("PipelineTopicExpression",r,s)}function assertPipelineBareFunction(r,s){assert("PipelineBareFunction",r,s)}function assertPipelinePrimaryTopicReference(r,s){assert("PipelinePrimaryTopicReference",r,s)}function assertVoidPattern(r,s){assert("VoidPattern",r,s)}function assertTSParameterProperty(r,s){assert("TSParameterProperty",r,s)}function assertTSDeclareFunction(r,s){assert("TSDeclareFunction",r,s)}function assertTSDeclareMethod(r,s){assert("TSDeclareMethod",r,s)}function assertTSQualifiedName(r,s){assert("TSQualifiedName",r,s)}function assertTSCallSignatureDeclaration(r,s){assert("TSCallSignatureDeclaration",r,s)}function assertTSConstructSignatureDeclaration(r,s){assert("TSConstructSignatureDeclaration",r,s)}function assertTSPropertySignature(r,s){assert("TSPropertySignature",r,s)}function assertTSMethodSignature(r,s){assert("TSMethodSignature",r,s)}function assertTSIndexSignature(r,s){assert("TSIndexSignature",r,s)}function assertTSAnyKeyword(r,s){assert("TSAnyKeyword",r,s)}function assertTSBooleanKeyword(r,s){assert("TSBooleanKeyword",r,s)}function assertTSBigIntKeyword(r,s){assert("TSBigIntKeyword",r,s)}function assertTSIntrinsicKeyword(r,s){assert("TSIntrinsicKeyword",r,s)}function assertTSNeverKeyword(r,s){assert("TSNeverKeyword",r,s)}function assertTSNullKeyword(r,s){assert("TSNullKeyword",r,s)}function assertTSNumberKeyword(r,s){assert("TSNumberKeyword",r,s)}function assertTSObjectKeyword(r,s){assert("TSObjectKeyword",r,s)}function assertTSStringKeyword(r,s){assert("TSStringKeyword",r,s)}function assertTSSymbolKeyword(r,s){assert("TSSymbolKeyword",r,s)}function assertTSUndefinedKeyword(r,s){assert("TSUndefinedKeyword",r,s)}function assertTSUnknownKeyword(r,s){assert("TSUnknownKeyword",r,s)}function assertTSVoidKeyword(r,s){assert("TSVoidKeyword",r,s)}function assertTSThisType(r,s){assert("TSThisType",r,s)}function assertTSFunctionType(r,s){assert("TSFunctionType",r,s)}function assertTSConstructorType(r,s){assert("TSConstructorType",r,s)}function assertTSTypeReference(r,s){assert("TSTypeReference",r,s)}function assertTSTypePredicate(r,s){assert("TSTypePredicate",r,s)}function assertTSTypeQuery(r,s){assert("TSTypeQuery",r,s)}function assertTSTypeLiteral(r,s){assert("TSTypeLiteral",r,s)}function assertTSArrayType(r,s){assert("TSArrayType",r,s)}function assertTSTupleType(r,s){assert("TSTupleType",r,s)}function assertTSOptionalType(r,s){assert("TSOptionalType",r,s)}function assertTSRestType(r,s){assert("TSRestType",r,s)}function assertTSNamedTupleMember(r,s){assert("TSNamedTupleMember",r,s)}function assertTSUnionType(r,s){assert("TSUnionType",r,s)}function assertTSIntersectionType(r,s){assert("TSIntersectionType",r,s)}function assertTSConditionalType(r,s){assert("TSConditionalType",r,s)}function assertTSInferType(r,s){assert("TSInferType",r,s)}function assertTSParenthesizedType(r,s){assert("TSParenthesizedType",r,s)}function assertTSTypeOperator(r,s){assert("TSTypeOperator",r,s)}function assertTSIndexedAccessType(r,s){assert("TSIndexedAccessType",r,s)}function assertTSMappedType(r,s){assert("TSMappedType",r,s)}function assertTSTemplateLiteralType(r,s){assert("TSTemplateLiteralType",r,s)}function assertTSLiteralType(r,s){assert("TSLiteralType",r,s)}function assertTSExpressionWithTypeArguments(r,s){assert("TSExpressionWithTypeArguments",r,s)}function assertTSInterfaceDeclaration(r,s){assert("TSInterfaceDeclaration",r,s)}function assertTSInterfaceBody(r,s){assert("TSInterfaceBody",r,s)}function assertTSTypeAliasDeclaration(r,s){assert("TSTypeAliasDeclaration",r,s)}function assertTSInstantiationExpression(r,s){assert("TSInstantiationExpression",r,s)}function assertTSAsExpression(r,s){assert("TSAsExpression",r,s)}function assertTSSatisfiesExpression(r,s){assert("TSSatisfiesExpression",r,s)}function assertTSTypeAssertion(r,s){assert("TSTypeAssertion",r,s)}function assertTSEnumBody(r,s){assert("TSEnumBody",r,s)}function assertTSEnumDeclaration(r,s){assert("TSEnumDeclaration",r,s)}function assertTSEnumMember(r,s){assert("TSEnumMember",r,s)}function assertTSModuleDeclaration(r,s){assert("TSModuleDeclaration",r,s)}function assertTSModuleBlock(r,s){assert("TSModuleBlock",r,s)}function assertTSImportType(r,s){assert("TSImportType",r,s)}function assertTSImportEqualsDeclaration(r,s){assert("TSImportEqualsDeclaration",r,s)}function assertTSExternalModuleReference(r,s){assert("TSExternalModuleReference",r,s)}function assertTSNonNullExpression(r,s){assert("TSNonNullExpression",r,s)}function assertTSExportAssignment(r,s){assert("TSExportAssignment",r,s)}function assertTSNamespaceExportDeclaration(r,s){assert("TSNamespaceExportDeclaration",r,s)}function assertTSTypeAnnotation(r,s){assert("TSTypeAnnotation",r,s)}function assertTSTypeParameterInstantiation(r,s){assert("TSTypeParameterInstantiation",r,s)}function assertTSTypeParameterDeclaration(r,s){assert("TSTypeParameterDeclaration",r,s)}function assertTSTypeParameter(r,s){assert("TSTypeParameter",r,s)}function assertStandardized(r,s){assert("Standardized",r,s)}function assertExpression(r,s){assert("Expression",r,s)}function assertBinary(r,s){assert("Binary",r,s)}function assertScopable(r,s){assert("Scopable",r,s)}function assertBlockParent(r,s){assert("BlockParent",r,s)}function assertBlock(r,s){assert("Block",r,s)}function assertStatement(r,s){assert("Statement",r,s)}function assertTerminatorless(r,s){assert("Terminatorless",r,s)}function assertCompletionStatement(r,s){assert("CompletionStatement",r,s)}function assertConditional(r,s){assert("Conditional",r,s)}function assertLoop(r,s){assert("Loop",r,s)}function assertWhile(r,s){assert("While",r,s)}function assertExpressionWrapper(r,s){assert("ExpressionWrapper",r,s)}function assertFor(r,s){assert("For",r,s)}function assertForXStatement(r,s){assert("ForXStatement",r,s)}function assertFunction(r,s){assert("Function",r,s)}function assertFunctionParent(r,s){assert("FunctionParent",r,s)}function assertPureish(r,s){assert("Pureish",r,s)}function assertDeclaration(r,s){assert("Declaration",r,s)}function assertFunctionParameter(r,s){assert("FunctionParameter",r,s)}function assertPatternLike(r,s){assert("PatternLike",r,s)}function assertLVal(r,s){assert("LVal",r,s)}function assertTSEntityName(r,s){assert("TSEntityName",r,s)}function assertLiteral(r,s){assert("Literal",r,s)}function assertImmutable(r,s){assert("Immutable",r,s)}function assertUserWhitespacable(r,s){assert("UserWhitespacable",r,s)}function assertMethod(r,s){assert("Method",r,s)}function assertObjectMember(r,s){assert("ObjectMember",r,s)}function assertProperty(r,s){assert("Property",r,s)}function assertUnaryLike(r,s){assert("UnaryLike",r,s)}function assertPattern(r,s){assert("Pattern",r,s)}function assertClass(r,s){assert("Class",r,s)}function assertImportOrExportDeclaration(r,s){assert("ImportOrExportDeclaration",r,s)}function assertExportDeclaration(r,s){assert("ExportDeclaration",r,s)}function assertModuleSpecifier(r,s){assert("ModuleSpecifier",r,s)}function assertAccessor(r,s){assert("Accessor",r,s)}function assertPrivate(r,s){assert("Private",r,s)}function assertFlow(r,s){assert("Flow",r,s)}function assertFlowType(r,s){assert("FlowType",r,s)}function assertFlowBaseAnnotation(r,s){assert("FlowBaseAnnotation",r,s)}function assertFlowDeclaration(r,s){assert("FlowDeclaration",r,s)}function assertFlowPredicate(r,s){assert("FlowPredicate",r,s)}function assertEnumBody(r,s){assert("EnumBody",r,s)}function assertEnumMember(r,s){assert("EnumMember",r,s)}function assertJSX(r,s){assert("JSX",r,s)}function assertMiscellaneous(r,s){assert("Miscellaneous",r,s)}function assertTypeScript(r,s){assert("TypeScript",r,s)}function assertTSTypeElement(r,s){assert("TSTypeElement",r,s)}function assertTSType(r,s){assert("TSType",r,s)}function assertTSBaseType(r,s){assert("TSBaseType",r,s)}function assertNumberLiteral(r,s){(0,d.default)("assertNumberLiteral","assertNumericLiteral");assert("NumberLiteral",r,s)}function assertRegexLiteral(r,s){(0,d.default)("assertRegexLiteral","assertRegExpLiteral");assert("RegexLiteral",r,s)}function assertRestProperty(r,s){(0,d.default)("assertRestProperty","assertRestElement");assert("RestProperty",r,s)}function assertSpreadProperty(r,s){(0,d.default)("assertSpreadProperty","assertSpreadElement");assert("SpreadProperty",r,s)}function assertModuleDeclaration(r,s){(0,d.default)("assertModuleDeclaration","assertImportOrExportDeclaration");assert("ModuleDeclaration",r,s)}},2399:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=createFlowUnionType;var p=l(7821);var d=l(4035);function createFlowUnionType(r){const s=(0,d.default)(r);if(s.length===1){return s[0]}else{return(0,p.unionTypeAnnotation)(s)}}},2968:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(7821);var d=s["default"]=createTypeAnnotationBasedOnTypeof;function createTypeAnnotationBasedOnTypeof(r){switch(r){case"string":return(0,p.stringTypeAnnotation)();case"number":return(0,p.numberTypeAnnotation)();case"undefined":return(0,p.voidTypeAnnotation)();case"boolean":return(0,p.booleanTypeAnnotation)();case"function":return(0,p.genericTypeAnnotation)((0,p.identifier)("Function"));case"object":return(0,p.genericTypeAnnotation)((0,p.identifier)("Object"));case"symbol":return(0,p.genericTypeAnnotation)((0,p.identifier)("Symbol"));case"bigint":return(0,p.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+r)}},7821:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});var p=l(3556);Object.keys(p).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===p[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return p[r]}})}));var d=l(5681);Object.keys(d).forEach((function(r){if(r==="default"||r==="__esModule")return;if(r in s&&s[r]===d[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return d[r]}})}))},3556:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.anyTypeAnnotation=anyTypeAnnotation;s.argumentPlaceholder=argumentPlaceholder;s.arrayExpression=arrayExpression;s.arrayPattern=arrayPattern;s.arrayTypeAnnotation=arrayTypeAnnotation;s.arrowFunctionExpression=arrowFunctionExpression;s.assignmentExpression=assignmentExpression;s.assignmentPattern=assignmentPattern;s.awaitExpression=awaitExpression;s.bigIntLiteral=bigIntLiteral;s.binaryExpression=binaryExpression;s.bindExpression=bindExpression;s.blockStatement=blockStatement;s.booleanLiteral=booleanLiteral;s.booleanLiteralTypeAnnotation=booleanLiteralTypeAnnotation;s.booleanTypeAnnotation=booleanTypeAnnotation;s.breakStatement=breakStatement;s.callExpression=callExpression;s.catchClause=catchClause;s.classAccessorProperty=classAccessorProperty;s.classBody=classBody;s.classDeclaration=classDeclaration;s.classExpression=classExpression;s.classImplements=classImplements;s.classMethod=classMethod;s.classPrivateMethod=classPrivateMethod;s.classPrivateProperty=classPrivateProperty;s.classProperty=classProperty;s.conditionalExpression=conditionalExpression;s.continueStatement=continueStatement;s.debuggerStatement=debuggerStatement;s.decimalLiteral=decimalLiteral;s.declareClass=declareClass;s.declareExportAllDeclaration=declareExportAllDeclaration;s.declareExportDeclaration=declareExportDeclaration;s.declareFunction=declareFunction;s.declareInterface=declareInterface;s.declareModule=declareModule;s.declareModuleExports=declareModuleExports;s.declareOpaqueType=declareOpaqueType;s.declareTypeAlias=declareTypeAlias;s.declareVariable=declareVariable;s.declaredPredicate=declaredPredicate;s.decorator=decorator;s.directive=directive;s.directiveLiteral=directiveLiteral;s.doExpression=doExpression;s.doWhileStatement=doWhileStatement;s.emptyStatement=emptyStatement;s.emptyTypeAnnotation=emptyTypeAnnotation;s.enumBooleanBody=enumBooleanBody;s.enumBooleanMember=enumBooleanMember;s.enumDeclaration=enumDeclaration;s.enumDefaultedMember=enumDefaultedMember;s.enumNumberBody=enumNumberBody;s.enumNumberMember=enumNumberMember;s.enumStringBody=enumStringBody;s.enumStringMember=enumStringMember;s.enumSymbolBody=enumSymbolBody;s.existsTypeAnnotation=existsTypeAnnotation;s.exportAllDeclaration=exportAllDeclaration;s.exportDefaultDeclaration=exportDefaultDeclaration;s.exportDefaultSpecifier=exportDefaultSpecifier;s.exportNamedDeclaration=exportNamedDeclaration;s.exportNamespaceSpecifier=exportNamespaceSpecifier;s.exportSpecifier=exportSpecifier;s.expressionStatement=expressionStatement;s.file=file;s.forInStatement=forInStatement;s.forOfStatement=forOfStatement;s.forStatement=forStatement;s.functionDeclaration=functionDeclaration;s.functionExpression=functionExpression;s.functionTypeAnnotation=functionTypeAnnotation;s.functionTypeParam=functionTypeParam;s.genericTypeAnnotation=genericTypeAnnotation;s.identifier=identifier;s.ifStatement=ifStatement;s["import"]=_import;s.importAttribute=importAttribute;s.importDeclaration=importDeclaration;s.importDefaultSpecifier=importDefaultSpecifier;s.importExpression=importExpression;s.importNamespaceSpecifier=importNamespaceSpecifier;s.importSpecifier=importSpecifier;s.indexedAccessType=indexedAccessType;s.inferredPredicate=inferredPredicate;s.interfaceDeclaration=interfaceDeclaration;s.interfaceExtends=interfaceExtends;s.interfaceTypeAnnotation=interfaceTypeAnnotation;s.interpreterDirective=interpreterDirective;s.intersectionTypeAnnotation=intersectionTypeAnnotation;s.jSXAttribute=s.jsxAttribute=jsxAttribute;s.jSXClosingElement=s.jsxClosingElement=jsxClosingElement;s.jSXClosingFragment=s.jsxClosingFragment=jsxClosingFragment;s.jSXElement=s.jsxElement=jsxElement;s.jSXEmptyExpression=s.jsxEmptyExpression=jsxEmptyExpression;s.jSXExpressionContainer=s.jsxExpressionContainer=jsxExpressionContainer;s.jSXFragment=s.jsxFragment=jsxFragment;s.jSXIdentifier=s.jsxIdentifier=jsxIdentifier;s.jSXMemberExpression=s.jsxMemberExpression=jsxMemberExpression;s.jSXNamespacedName=s.jsxNamespacedName=jsxNamespacedName;s.jSXOpeningElement=s.jsxOpeningElement=jsxOpeningElement;s.jSXOpeningFragment=s.jsxOpeningFragment=jsxOpeningFragment;s.jSXSpreadAttribute=s.jsxSpreadAttribute=jsxSpreadAttribute;s.jSXSpreadChild=s.jsxSpreadChild=jsxSpreadChild;s.jSXText=s.jsxText=jsxText;s.labeledStatement=labeledStatement;s.logicalExpression=logicalExpression;s.memberExpression=memberExpression;s.metaProperty=metaProperty;s.mixedTypeAnnotation=mixedTypeAnnotation;s.moduleExpression=moduleExpression;s.newExpression=newExpression;s.noop=noop;s.nullLiteral=nullLiteral;s.nullLiteralTypeAnnotation=nullLiteralTypeAnnotation;s.nullableTypeAnnotation=nullableTypeAnnotation;s.numberLiteral=NumberLiteral;s.numberLiteralTypeAnnotation=numberLiteralTypeAnnotation;s.numberTypeAnnotation=numberTypeAnnotation;s.numericLiteral=numericLiteral;s.objectExpression=objectExpression;s.objectMethod=objectMethod;s.objectPattern=objectPattern;s.objectProperty=objectProperty;s.objectTypeAnnotation=objectTypeAnnotation;s.objectTypeCallProperty=objectTypeCallProperty;s.objectTypeIndexer=objectTypeIndexer;s.objectTypeInternalSlot=objectTypeInternalSlot;s.objectTypeProperty=objectTypeProperty;s.objectTypeSpreadProperty=objectTypeSpreadProperty;s.opaqueType=opaqueType;s.optionalCallExpression=optionalCallExpression;s.optionalIndexedAccessType=optionalIndexedAccessType;s.optionalMemberExpression=optionalMemberExpression;s.parenthesizedExpression=parenthesizedExpression;s.pipelineBareFunction=pipelineBareFunction;s.pipelinePrimaryTopicReference=pipelinePrimaryTopicReference;s.pipelineTopicExpression=pipelineTopicExpression;s.placeholder=placeholder;s.privateName=privateName;s.program=program;s.qualifiedTypeIdentifier=qualifiedTypeIdentifier;s.recordExpression=recordExpression;s.regExpLiteral=regExpLiteral;s.regexLiteral=RegexLiteral;s.restElement=restElement;s.restProperty=RestProperty;s.returnStatement=returnStatement;s.sequenceExpression=sequenceExpression;s.spreadElement=spreadElement;s.spreadProperty=SpreadProperty;s.staticBlock=staticBlock;s.stringLiteral=stringLiteral;s.stringLiteralTypeAnnotation=stringLiteralTypeAnnotation;s.stringTypeAnnotation=stringTypeAnnotation;s["super"]=_super;s.switchCase=switchCase;s.switchStatement=switchStatement;s.symbolTypeAnnotation=symbolTypeAnnotation;s.taggedTemplateExpression=taggedTemplateExpression;s.templateElement=templateElement;s.templateLiteral=templateLiteral;s.thisExpression=thisExpression;s.thisTypeAnnotation=thisTypeAnnotation;s.throwStatement=throwStatement;s.topicReference=topicReference;s.tryStatement=tryStatement;s.tSAnyKeyword=s.tsAnyKeyword=tsAnyKeyword;s.tSArrayType=s.tsArrayType=tsArrayType;s.tSAsExpression=s.tsAsExpression=tsAsExpression;s.tSBigIntKeyword=s.tsBigIntKeyword=tsBigIntKeyword;s.tSBooleanKeyword=s.tsBooleanKeyword=tsBooleanKeyword;s.tSCallSignatureDeclaration=s.tsCallSignatureDeclaration=tsCallSignatureDeclaration;s.tSConditionalType=s.tsConditionalType=tsConditionalType;s.tSConstructSignatureDeclaration=s.tsConstructSignatureDeclaration=tsConstructSignatureDeclaration;s.tSConstructorType=s.tsConstructorType=tsConstructorType;s.tSDeclareFunction=s.tsDeclareFunction=tsDeclareFunction;s.tSDeclareMethod=s.tsDeclareMethod=tsDeclareMethod;s.tSEnumBody=s.tsEnumBody=tsEnumBody;s.tSEnumDeclaration=s.tsEnumDeclaration=tsEnumDeclaration;s.tSEnumMember=s.tsEnumMember=tsEnumMember;s.tSExportAssignment=s.tsExportAssignment=tsExportAssignment;s.tSExpressionWithTypeArguments=s.tsExpressionWithTypeArguments=tsExpressionWithTypeArguments;s.tSExternalModuleReference=s.tsExternalModuleReference=tsExternalModuleReference;s.tSFunctionType=s.tsFunctionType=tsFunctionType;s.tSImportEqualsDeclaration=s.tsImportEqualsDeclaration=tsImportEqualsDeclaration;s.tSImportType=s.tsImportType=tsImportType;s.tSIndexSignature=s.tsIndexSignature=tsIndexSignature;s.tSIndexedAccessType=s.tsIndexedAccessType=tsIndexedAccessType;s.tSInferType=s.tsInferType=tsInferType;s.tSInstantiationExpression=s.tsInstantiationExpression=tsInstantiationExpression;s.tSInterfaceBody=s.tsInterfaceBody=tsInterfaceBody;s.tSInterfaceDeclaration=s.tsInterfaceDeclaration=tsInterfaceDeclaration;s.tSIntersectionType=s.tsIntersectionType=tsIntersectionType;s.tSIntrinsicKeyword=s.tsIntrinsicKeyword=tsIntrinsicKeyword;s.tSLiteralType=s.tsLiteralType=tsLiteralType;s.tSMappedType=s.tsMappedType=tsMappedType;s.tSMethodSignature=s.tsMethodSignature=tsMethodSignature;s.tSModuleBlock=s.tsModuleBlock=tsModuleBlock;s.tSModuleDeclaration=s.tsModuleDeclaration=tsModuleDeclaration;s.tSNamedTupleMember=s.tsNamedTupleMember=tsNamedTupleMember;s.tSNamespaceExportDeclaration=s.tsNamespaceExportDeclaration=tsNamespaceExportDeclaration;s.tSNeverKeyword=s.tsNeverKeyword=tsNeverKeyword;s.tSNonNullExpression=s.tsNonNullExpression=tsNonNullExpression;s.tSNullKeyword=s.tsNullKeyword=tsNullKeyword;s.tSNumberKeyword=s.tsNumberKeyword=tsNumberKeyword;s.tSObjectKeyword=s.tsObjectKeyword=tsObjectKeyword;s.tSOptionalType=s.tsOptionalType=tsOptionalType;s.tSParameterProperty=s.tsParameterProperty=tsParameterProperty;s.tSParenthesizedType=s.tsParenthesizedType=tsParenthesizedType;s.tSPropertySignature=s.tsPropertySignature=tsPropertySignature;s.tSQualifiedName=s.tsQualifiedName=tsQualifiedName;s.tSRestType=s.tsRestType=tsRestType;s.tSSatisfiesExpression=s.tsSatisfiesExpression=tsSatisfiesExpression;s.tSStringKeyword=s.tsStringKeyword=tsStringKeyword;s.tSSymbolKeyword=s.tsSymbolKeyword=tsSymbolKeyword;s.tSTemplateLiteralType=s.tsTemplateLiteralType=tsTemplateLiteralType;s.tSThisType=s.tsThisType=tsThisType;s.tSTupleType=s.tsTupleType=tsTupleType;s.tSTypeAliasDeclaration=s.tsTypeAliasDeclaration=tsTypeAliasDeclaration;s.tSTypeAnnotation=s.tsTypeAnnotation=tsTypeAnnotation;s.tSTypeAssertion=s.tsTypeAssertion=tsTypeAssertion;s.tSTypeLiteral=s.tsTypeLiteral=tsTypeLiteral;s.tSTypeOperator=s.tsTypeOperator=tsTypeOperator;s.tSTypeParameter=s.tsTypeParameter=tsTypeParameter;s.tSTypeParameterDeclaration=s.tsTypeParameterDeclaration=tsTypeParameterDeclaration;s.tSTypeParameterInstantiation=s.tsTypeParameterInstantiation=tsTypeParameterInstantiation;s.tSTypePredicate=s.tsTypePredicate=tsTypePredicate;s.tSTypeQuery=s.tsTypeQuery=tsTypeQuery;s.tSTypeReference=s.tsTypeReference=tsTypeReference;s.tSUndefinedKeyword=s.tsUndefinedKeyword=tsUndefinedKeyword;s.tSUnionType=s.tsUnionType=tsUnionType;s.tSUnknownKeyword=s.tsUnknownKeyword=tsUnknownKeyword;s.tSVoidKeyword=s.tsVoidKeyword=tsVoidKeyword;s.tupleExpression=tupleExpression;s.tupleTypeAnnotation=tupleTypeAnnotation;s.typeAlias=typeAlias;s.typeAnnotation=typeAnnotation;s.typeCastExpression=typeCastExpression;s.typeParameter=typeParameter;s.typeParameterDeclaration=typeParameterDeclaration;s.typeParameterInstantiation=typeParameterInstantiation;s.typeofTypeAnnotation=typeofTypeAnnotation;s.unaryExpression=unaryExpression;s.unionTypeAnnotation=unionTypeAnnotation;s.updateExpression=updateExpression;s.v8IntrinsicIdentifier=v8IntrinsicIdentifier;s.variableDeclaration=variableDeclaration;s.variableDeclarator=variableDeclarator;s.variance=variance;s.voidPattern=voidPattern;s.voidTypeAnnotation=voidTypeAnnotation;s.whileStatement=whileStatement;s.withStatement=withStatement;s.yieldExpression=yieldExpression;var p=l(1772);var d=l(9408);var m=l(6286);const{validateInternal:y}=p;const{NODE_FIELDS:g}=m;function bigIntLiteral(r){if(typeof r==="bigint"){r=r.toString()}const s={type:"BigIntLiteral",value:r};const l=g.BigIntLiteral;y(l.value,s,"value",r);return s}function arrayExpression(r=[]){const s={type:"ArrayExpression",elements:r};const l=g.ArrayExpression;y(l.elements,s,"elements",r,1);return s}function assignmentExpression(r,s,l){const p={type:"AssignmentExpression",operator:r,left:s,right:l};const d=g.AssignmentExpression;y(d.operator,p,"operator",r);y(d.left,p,"left",s,1);y(d.right,p,"right",l,1);return p}function binaryExpression(r,s,l){const p={type:"BinaryExpression",operator:r,left:s,right:l};const d=g.BinaryExpression;y(d.operator,p,"operator",r);y(d.left,p,"left",s,1);y(d.right,p,"right",l,1);return p}function interpreterDirective(r){const s={type:"InterpreterDirective",value:r};const l=g.InterpreterDirective;y(l.value,s,"value",r);return s}function directive(r){const s={type:"Directive",value:r};const l=g.Directive;y(l.value,s,"value",r,1);return s}function directiveLiteral(r){const s={type:"DirectiveLiteral",value:r};const l=g.DirectiveLiteral;y(l.value,s,"value",r);return s}function blockStatement(r,s=[]){const l={type:"BlockStatement",body:r,directives:s};const p=g.BlockStatement;y(p.body,l,"body",r,1);y(p.directives,l,"directives",s,1);return l}function breakStatement(r=null){const s={type:"BreakStatement",label:r};const l=g.BreakStatement;y(l.label,s,"label",r,1);return s}function callExpression(r,s){const l={type:"CallExpression",callee:r,arguments:s};const p=g.CallExpression;y(p.callee,l,"callee",r,1);y(p.arguments,l,"arguments",s,1);return l}function catchClause(r=null,s){const l={type:"CatchClause",param:r,body:s};const p=g.CatchClause;y(p.param,l,"param",r,1);y(p.body,l,"body",s,1);return l}function conditionalExpression(r,s,l){const p={type:"ConditionalExpression",test:r,consequent:s,alternate:l};const d=g.ConditionalExpression;y(d.test,p,"test",r,1);y(d.consequent,p,"consequent",s,1);y(d.alternate,p,"alternate",l,1);return p}function continueStatement(r=null){const s={type:"ContinueStatement",label:r};const l=g.ContinueStatement;y(l.label,s,"label",r,1);return s}function debuggerStatement(){return{type:"DebuggerStatement"}}function doWhileStatement(r,s){const l={type:"DoWhileStatement",test:r,body:s};const p=g.DoWhileStatement;y(p.test,l,"test",r,1);y(p.body,l,"body",s,1);return l}function emptyStatement(){return{type:"EmptyStatement"}}function expressionStatement(r){const s={type:"ExpressionStatement",expression:r};const l=g.ExpressionStatement;y(l.expression,s,"expression",r,1);return s}function file(r,s=null,l=null){const p={type:"File",program:r,comments:s,tokens:l};const d=g.File;y(d.program,p,"program",r,1);y(d.comments,p,"comments",s,1);y(d.tokens,p,"tokens",l);return p}function forInStatement(r,s,l){const p={type:"ForInStatement",left:r,right:s,body:l};const d=g.ForInStatement;y(d.left,p,"left",r,1);y(d.right,p,"right",s,1);y(d.body,p,"body",l,1);return p}function forStatement(r=null,s=null,l=null,p){const d={type:"ForStatement",init:r,test:s,update:l,body:p};const m=g.ForStatement;y(m.init,d,"init",r,1);y(m.test,d,"test",s,1);y(m.update,d,"update",l,1);y(m.body,d,"body",p,1);return d}function functionDeclaration(r=null,s,l,p=false,d=false){const m={type:"FunctionDeclaration",id:r,params:s,body:l,generator:p,async:d};const T=g.FunctionDeclaration;y(T.id,m,"id",r,1);y(T.params,m,"params",s,1);y(T.body,m,"body",l,1);y(T.generator,m,"generator",p);y(T.async,m,"async",d);return m}function functionExpression(r=null,s,l,p=false,d=false){const m={type:"FunctionExpression",id:r,params:s,body:l,generator:p,async:d};const T=g.FunctionExpression;y(T.id,m,"id",r,1);y(T.params,m,"params",s,1);y(T.body,m,"body",l,1);y(T.generator,m,"generator",p);y(T.async,m,"async",d);return m}function identifier(r){const s={type:"Identifier",name:r};const l=g.Identifier;y(l.name,s,"name",r);return s}function ifStatement(r,s,l=null){const p={type:"IfStatement",test:r,consequent:s,alternate:l};const d=g.IfStatement;y(d.test,p,"test",r,1);y(d.consequent,p,"consequent",s,1);y(d.alternate,p,"alternate",l,1);return p}function labeledStatement(r,s){const l={type:"LabeledStatement",label:r,body:s};const p=g.LabeledStatement;y(p.label,l,"label",r,1);y(p.body,l,"body",s,1);return l}function stringLiteral(r){const s={type:"StringLiteral",value:r};const l=g.StringLiteral;y(l.value,s,"value",r);return s}function numericLiteral(r){const s={type:"NumericLiteral",value:r};const l=g.NumericLiteral;y(l.value,s,"value",r);return s}function nullLiteral(){return{type:"NullLiteral"}}function booleanLiteral(r){const s={type:"BooleanLiteral",value:r};const l=g.BooleanLiteral;y(l.value,s,"value",r);return s}function regExpLiteral(r,s=""){const l={type:"RegExpLiteral",pattern:r,flags:s};const p=g.RegExpLiteral;y(p.pattern,l,"pattern",r);y(p.flags,l,"flags",s);return l}function logicalExpression(r,s,l){const p={type:"LogicalExpression",operator:r,left:s,right:l};const d=g.LogicalExpression;y(d.operator,p,"operator",r);y(d.left,p,"left",s,1);y(d.right,p,"right",l,1);return p}function memberExpression(r,s,l=false,p=null){const d={type:"MemberExpression",object:r,property:s,computed:l,optional:p};const m=g.MemberExpression;y(m.object,d,"object",r,1);y(m.property,d,"property",s,1);y(m.computed,d,"computed",l);y(m.optional,d,"optional",p);return d}function newExpression(r,s){const l={type:"NewExpression",callee:r,arguments:s};const p=g.NewExpression;y(p.callee,l,"callee",r,1);y(p.arguments,l,"arguments",s,1);return l}function program(r,s=[],l="script",p=null){const d={type:"Program",body:r,directives:s,sourceType:l,interpreter:p};const m=g.Program;y(m.body,d,"body",r,1);y(m.directives,d,"directives",s,1);y(m.sourceType,d,"sourceType",l);y(m.interpreter,d,"interpreter",p,1);return d}function objectExpression(r){const s={type:"ObjectExpression",properties:r};const l=g.ObjectExpression;y(l.properties,s,"properties",r,1);return s}function objectMethod(r="method",s,l,p,d=false,m=false,T=false){const b={type:"ObjectMethod",kind:r,key:s,params:l,body:p,computed:d,generator:m,async:T};const E=g.ObjectMethod;y(E.kind,b,"kind",r);y(E.key,b,"key",s,1);y(E.params,b,"params",l,1);y(E.body,b,"body",p,1);y(E.computed,b,"computed",d);y(E.generator,b,"generator",m);y(E.async,b,"async",T);return b}function objectProperty(r,s,l=false,p=false,d=null){const m={type:"ObjectProperty",key:r,value:s,computed:l,shorthand:p,decorators:d};const T=g.ObjectProperty;y(T.key,m,"key",r,1);y(T.value,m,"value",s,1);y(T.computed,m,"computed",l);y(T.shorthand,m,"shorthand",p);y(T.decorators,m,"decorators",d,1);return m}function restElement(r){const s={type:"RestElement",argument:r};const l=g.RestElement;y(l.argument,s,"argument",r,1);return s}function returnStatement(r=null){const s={type:"ReturnStatement",argument:r};const l=g.ReturnStatement;y(l.argument,s,"argument",r,1);return s}function sequenceExpression(r){const s={type:"SequenceExpression",expressions:r};const l=g.SequenceExpression;y(l.expressions,s,"expressions",r,1);return s}function parenthesizedExpression(r){const s={type:"ParenthesizedExpression",expression:r};const l=g.ParenthesizedExpression;y(l.expression,s,"expression",r,1);return s}function switchCase(r=null,s){const l={type:"SwitchCase",test:r,consequent:s};const p=g.SwitchCase;y(p.test,l,"test",r,1);y(p.consequent,l,"consequent",s,1);return l}function switchStatement(r,s){const l={type:"SwitchStatement",discriminant:r,cases:s};const p=g.SwitchStatement;y(p.discriminant,l,"discriminant",r,1);y(p.cases,l,"cases",s,1);return l}function thisExpression(){return{type:"ThisExpression"}}function throwStatement(r){const s={type:"ThrowStatement",argument:r};const l=g.ThrowStatement;y(l.argument,s,"argument",r,1);return s}function tryStatement(r,s=null,l=null){const p={type:"TryStatement",block:r,handler:s,finalizer:l};const d=g.TryStatement;y(d.block,p,"block",r,1);y(d.handler,p,"handler",s,1);y(d.finalizer,p,"finalizer",l,1);return p}function unaryExpression(r,s,l=true){const p={type:"UnaryExpression",operator:r,argument:s,prefix:l};const d=g.UnaryExpression;y(d.operator,p,"operator",r);y(d.argument,p,"argument",s,1);y(d.prefix,p,"prefix",l);return p}function updateExpression(r,s,l=false){const p={type:"UpdateExpression",operator:r,argument:s,prefix:l};const d=g.UpdateExpression;y(d.operator,p,"operator",r);y(d.argument,p,"argument",s,1);y(d.prefix,p,"prefix",l);return p}function variableDeclaration(r,s){const l={type:"VariableDeclaration",kind:r,declarations:s};const p=g.VariableDeclaration;y(p.kind,l,"kind",r);y(p.declarations,l,"declarations",s,1);return l}function variableDeclarator(r,s=null){const l={type:"VariableDeclarator",id:r,init:s};const p=g.VariableDeclarator;y(p.id,l,"id",r,1);y(p.init,l,"init",s,1);return l}function whileStatement(r,s){const l={type:"WhileStatement",test:r,body:s};const p=g.WhileStatement;y(p.test,l,"test",r,1);y(p.body,l,"body",s,1);return l}function withStatement(r,s){const l={type:"WithStatement",object:r,body:s};const p=g.WithStatement;y(p.object,l,"object",r,1);y(p.body,l,"body",s,1);return l}function assignmentPattern(r,s){const l={type:"AssignmentPattern",left:r,right:s};const p=g.AssignmentPattern;y(p.left,l,"left",r,1);y(p.right,l,"right",s,1);return l}function arrayPattern(r){const s={type:"ArrayPattern",elements:r};const l=g.ArrayPattern;y(l.elements,s,"elements",r,1);return s}function arrowFunctionExpression(r,s,l=false){const p={type:"ArrowFunctionExpression",params:r,body:s,async:l,expression:null};const d=g.ArrowFunctionExpression;y(d.params,p,"params",r,1);y(d.body,p,"body",s,1);y(d.async,p,"async",l);return p}function classBody(r){const s={type:"ClassBody",body:r};const l=g.ClassBody;y(l.body,s,"body",r,1);return s}function classExpression(r=null,s=null,l,p=null){const d={type:"ClassExpression",id:r,superClass:s,body:l,decorators:p};const m=g.ClassExpression;y(m.id,d,"id",r,1);y(m.superClass,d,"superClass",s,1);y(m.body,d,"body",l,1);y(m.decorators,d,"decorators",p,1);return d}function classDeclaration(r=null,s=null,l,p=null){const d={type:"ClassDeclaration",id:r,superClass:s,body:l,decorators:p};const m=g.ClassDeclaration;y(m.id,d,"id",r,1);y(m.superClass,d,"superClass",s,1);y(m.body,d,"body",l,1);y(m.decorators,d,"decorators",p,1);return d}function exportAllDeclaration(r){const s={type:"ExportAllDeclaration",source:r};const l=g.ExportAllDeclaration;y(l.source,s,"source",r,1);return s}function exportDefaultDeclaration(r){const s={type:"ExportDefaultDeclaration",declaration:r};const l=g.ExportDefaultDeclaration;y(l.declaration,s,"declaration",r,1);return s}function exportNamedDeclaration(r=null,s=[],l=null){const p={type:"ExportNamedDeclaration",declaration:r,specifiers:s,source:l};const d=g.ExportNamedDeclaration;y(d.declaration,p,"declaration",r,1);y(d.specifiers,p,"specifiers",s,1);y(d.source,p,"source",l,1);return p}function exportSpecifier(r,s){const l={type:"ExportSpecifier",local:r,exported:s};const p=g.ExportSpecifier;y(p.local,l,"local",r,1);y(p.exported,l,"exported",s,1);return l}function forOfStatement(r,s,l,p=false){const d={type:"ForOfStatement",left:r,right:s,body:l,await:p};const m=g.ForOfStatement;y(m.left,d,"left",r,1);y(m.right,d,"right",s,1);y(m.body,d,"body",l,1);y(m.await,d,"await",p);return d}function importDeclaration(r,s){const l={type:"ImportDeclaration",specifiers:r,source:s};const p=g.ImportDeclaration;y(p.specifiers,l,"specifiers",r,1);y(p.source,l,"source",s,1);return l}function importDefaultSpecifier(r){const s={type:"ImportDefaultSpecifier",local:r};const l=g.ImportDefaultSpecifier;y(l.local,s,"local",r,1);return s}function importNamespaceSpecifier(r){const s={type:"ImportNamespaceSpecifier",local:r};const l=g.ImportNamespaceSpecifier;y(l.local,s,"local",r,1);return s}function importSpecifier(r,s){const l={type:"ImportSpecifier",local:r,imported:s};const p=g.ImportSpecifier;y(p.local,l,"local",r,1);y(p.imported,l,"imported",s,1);return l}function importExpression(r,s=null){const l={type:"ImportExpression",source:r,options:s};const p=g.ImportExpression;y(p.source,l,"source",r,1);y(p.options,l,"options",s,1);return l}function metaProperty(r,s){const l={type:"MetaProperty",meta:r,property:s};const p=g.MetaProperty;y(p.meta,l,"meta",r,1);y(p.property,l,"property",s,1);return l}function classMethod(r="method",s,l,p,d=false,m=false,T=false,b=false){const E={type:"ClassMethod",kind:r,key:s,params:l,body:p,computed:d,static:m,generator:T,async:b};const S=g.ClassMethod;y(S.kind,E,"kind",r);y(S.key,E,"key",s,1);y(S.params,E,"params",l,1);y(S.body,E,"body",p,1);y(S.computed,E,"computed",d);y(S.static,E,"static",m);y(S.generator,E,"generator",T);y(S.async,E,"async",b);return E}function objectPattern(r){const s={type:"ObjectPattern",properties:r};const l=g.ObjectPattern;y(l.properties,s,"properties",r,1);return s}function spreadElement(r){const s={type:"SpreadElement",argument:r};const l=g.SpreadElement;y(l.argument,s,"argument",r,1);return s}function _super(){return{type:"Super"}}function taggedTemplateExpression(r,s){const l={type:"TaggedTemplateExpression",tag:r,quasi:s};const p=g.TaggedTemplateExpression;y(p.tag,l,"tag",r,1);y(p.quasi,l,"quasi",s,1);return l}function templateElement(r,s=false){const l={type:"TemplateElement",value:r,tail:s};const p=g.TemplateElement;y(p.value,l,"value",r);y(p.tail,l,"tail",s);return l}function templateLiteral(r,s){const l={type:"TemplateLiteral",quasis:r,expressions:s};const p=g.TemplateLiteral;y(p.quasis,l,"quasis",r,1);y(p.expressions,l,"expressions",s,1);return l}function yieldExpression(r=null,s=false){const l={type:"YieldExpression",argument:r,delegate:s};const p=g.YieldExpression;y(p.argument,l,"argument",r,1);y(p.delegate,l,"delegate",s);return l}function awaitExpression(r){const s={type:"AwaitExpression",argument:r};const l=g.AwaitExpression;y(l.argument,s,"argument",r,1);return s}function _import(){return{type:"Import"}}function exportNamespaceSpecifier(r){const s={type:"ExportNamespaceSpecifier",exported:r};const l=g.ExportNamespaceSpecifier;y(l.exported,s,"exported",r,1);return s}function optionalMemberExpression(r,s,l=false,p){const d={type:"OptionalMemberExpression",object:r,property:s,computed:l,optional:p};const m=g.OptionalMemberExpression;y(m.object,d,"object",r,1);y(m.property,d,"property",s,1);y(m.computed,d,"computed",l);y(m.optional,d,"optional",p);return d}function optionalCallExpression(r,s,l){const p={type:"OptionalCallExpression",callee:r,arguments:s,optional:l};const d=g.OptionalCallExpression;y(d.callee,p,"callee",r,1);y(d.arguments,p,"arguments",s,1);y(d.optional,p,"optional",l);return p}function classProperty(r,s=null,l=null,p=null,d=false,m=false){const T={type:"ClassProperty",key:r,value:s,typeAnnotation:l,decorators:p,computed:d,static:m};const b=g.ClassProperty;y(b.key,T,"key",r,1);y(b.value,T,"value",s,1);y(b.typeAnnotation,T,"typeAnnotation",l,1);y(b.decorators,T,"decorators",p,1);y(b.computed,T,"computed",d);y(b.static,T,"static",m);return T}function classAccessorProperty(r,s=null,l=null,p=null,d=false,m=false){const T={type:"ClassAccessorProperty",key:r,value:s,typeAnnotation:l,decorators:p,computed:d,static:m};const b=g.ClassAccessorProperty;y(b.key,T,"key",r,1);y(b.value,T,"value",s,1);y(b.typeAnnotation,T,"typeAnnotation",l,1);y(b.decorators,T,"decorators",p,1);y(b.computed,T,"computed",d);y(b.static,T,"static",m);return T}function classPrivateProperty(r,s=null,l=null,p=false){const d={type:"ClassPrivateProperty",key:r,value:s,decorators:l,static:p};const m=g.ClassPrivateProperty;y(m.key,d,"key",r,1);y(m.value,d,"value",s,1);y(m.decorators,d,"decorators",l,1);y(m.static,d,"static",p);return d}function classPrivateMethod(r="method",s,l,p,d=false){const m={type:"ClassPrivateMethod",kind:r,key:s,params:l,body:p,static:d};const T=g.ClassPrivateMethod;y(T.kind,m,"kind",r);y(T.key,m,"key",s,1);y(T.params,m,"params",l,1);y(T.body,m,"body",p,1);y(T.static,m,"static",d);return m}function privateName(r){const s={type:"PrivateName",id:r};const l=g.PrivateName;y(l.id,s,"id",r,1);return s}function staticBlock(r){const s={type:"StaticBlock",body:r};const l=g.StaticBlock;y(l.body,s,"body",r,1);return s}function importAttribute(r,s){const l={type:"ImportAttribute",key:r,value:s};const p=g.ImportAttribute;y(p.key,l,"key",r,1);y(p.value,l,"value",s,1);return l}function anyTypeAnnotation(){return{type:"AnyTypeAnnotation"}}function arrayTypeAnnotation(r){const s={type:"ArrayTypeAnnotation",elementType:r};const l=g.ArrayTypeAnnotation;y(l.elementType,s,"elementType",r,1);return s}function booleanTypeAnnotation(){return{type:"BooleanTypeAnnotation"}}function booleanLiteralTypeAnnotation(r){const s={type:"BooleanLiteralTypeAnnotation",value:r};const l=g.BooleanLiteralTypeAnnotation;y(l.value,s,"value",r);return s}function nullLiteralTypeAnnotation(){return{type:"NullLiteralTypeAnnotation"}}function classImplements(r,s=null){const l={type:"ClassImplements",id:r,typeParameters:s};const p=g.ClassImplements;y(p.id,l,"id",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function declareClass(r,s=null,l=null,p){const d={type:"DeclareClass",id:r,typeParameters:s,extends:l,body:p};const m=g.DeclareClass;y(m.id,d,"id",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.extends,d,"extends",l,1);y(m.body,d,"body",p,1);return d}function declareFunction(r){const s={type:"DeclareFunction",id:r};const l=g.DeclareFunction;y(l.id,s,"id",r,1);return s}function declareInterface(r,s=null,l=null,p){const d={type:"DeclareInterface",id:r,typeParameters:s,extends:l,body:p};const m=g.DeclareInterface;y(m.id,d,"id",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.extends,d,"extends",l,1);y(m.body,d,"body",p,1);return d}function declareModule(r,s,l=null){const p={type:"DeclareModule",id:r,body:s,kind:l};const d=g.DeclareModule;y(d.id,p,"id",r,1);y(d.body,p,"body",s,1);y(d.kind,p,"kind",l);return p}function declareModuleExports(r){const s={type:"DeclareModuleExports",typeAnnotation:r};const l=g.DeclareModuleExports;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function declareTypeAlias(r,s=null,l){const p={type:"DeclareTypeAlias",id:r,typeParameters:s,right:l};const d=g.DeclareTypeAlias;y(d.id,p,"id",r,1);y(d.typeParameters,p,"typeParameters",s,1);y(d.right,p,"right",l,1);return p}function declareOpaqueType(r,s=null,l=null){const p={type:"DeclareOpaqueType",id:r,typeParameters:s,supertype:l};const d=g.DeclareOpaqueType;y(d.id,p,"id",r,1);y(d.typeParameters,p,"typeParameters",s,1);y(d.supertype,p,"supertype",l,1);return p}function declareVariable(r){const s={type:"DeclareVariable",id:r};const l=g.DeclareVariable;y(l.id,s,"id",r,1);return s}function declareExportDeclaration(r=null,s=null,l=null,p=null){const d={type:"DeclareExportDeclaration",declaration:r,specifiers:s,source:l,attributes:p};const m=g.DeclareExportDeclaration;y(m.declaration,d,"declaration",r,1);y(m.specifiers,d,"specifiers",s,1);y(m.source,d,"source",l,1);y(m.attributes,d,"attributes",p,1);return d}function declareExportAllDeclaration(r,s=null){const l={type:"DeclareExportAllDeclaration",source:r,attributes:s};const p=g.DeclareExportAllDeclaration;y(p.source,l,"source",r,1);y(p.attributes,l,"attributes",s,1);return l}function declaredPredicate(r){const s={type:"DeclaredPredicate",value:r};const l=g.DeclaredPredicate;y(l.value,s,"value",r,1);return s}function existsTypeAnnotation(){return{type:"ExistsTypeAnnotation"}}function functionTypeAnnotation(r=null,s,l=null,p){const d={type:"FunctionTypeAnnotation",typeParameters:r,params:s,rest:l,returnType:p};const m=g.FunctionTypeAnnotation;y(m.typeParameters,d,"typeParameters",r,1);y(m.params,d,"params",s,1);y(m.rest,d,"rest",l,1);y(m.returnType,d,"returnType",p,1);return d}function functionTypeParam(r=null,s){const l={type:"FunctionTypeParam",name:r,typeAnnotation:s};const p=g.FunctionTypeParam;y(p.name,l,"name",r,1);y(p.typeAnnotation,l,"typeAnnotation",s,1);return l}function genericTypeAnnotation(r,s=null){const l={type:"GenericTypeAnnotation",id:r,typeParameters:s};const p=g.GenericTypeAnnotation;y(p.id,l,"id",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function inferredPredicate(){return{type:"InferredPredicate"}}function interfaceExtends(r,s=null){const l={type:"InterfaceExtends",id:r,typeParameters:s};const p=g.InterfaceExtends;y(p.id,l,"id",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function interfaceDeclaration(r,s=null,l=null,p){const d={type:"InterfaceDeclaration",id:r,typeParameters:s,extends:l,body:p};const m=g.InterfaceDeclaration;y(m.id,d,"id",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.extends,d,"extends",l,1);y(m.body,d,"body",p,1);return d}function interfaceTypeAnnotation(r=null,s){const l={type:"InterfaceTypeAnnotation",extends:r,body:s};const p=g.InterfaceTypeAnnotation;y(p.extends,l,"extends",r,1);y(p.body,l,"body",s,1);return l}function intersectionTypeAnnotation(r){const s={type:"IntersectionTypeAnnotation",types:r};const l=g.IntersectionTypeAnnotation;y(l.types,s,"types",r,1);return s}function mixedTypeAnnotation(){return{type:"MixedTypeAnnotation"}}function emptyTypeAnnotation(){return{type:"EmptyTypeAnnotation"}}function nullableTypeAnnotation(r){const s={type:"NullableTypeAnnotation",typeAnnotation:r};const l=g.NullableTypeAnnotation;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function numberLiteralTypeAnnotation(r){const s={type:"NumberLiteralTypeAnnotation",value:r};const l=g.NumberLiteralTypeAnnotation;y(l.value,s,"value",r);return s}function numberTypeAnnotation(){return{type:"NumberTypeAnnotation"}}function objectTypeAnnotation(r,s=[],l=[],p=[],d=false){const m={type:"ObjectTypeAnnotation",properties:r,indexers:s,callProperties:l,internalSlots:p,exact:d};const T=g.ObjectTypeAnnotation;y(T.properties,m,"properties",r,1);y(T.indexers,m,"indexers",s,1);y(T.callProperties,m,"callProperties",l,1);y(T.internalSlots,m,"internalSlots",p,1);y(T.exact,m,"exact",d);return m}function objectTypeInternalSlot(r,s,l,p,d){const m={type:"ObjectTypeInternalSlot",id:r,value:s,optional:l,static:p,method:d};const T=g.ObjectTypeInternalSlot;y(T.id,m,"id",r,1);y(T.value,m,"value",s,1);y(T.optional,m,"optional",l);y(T.static,m,"static",p);y(T.method,m,"method",d);return m}function objectTypeCallProperty(r){const s={type:"ObjectTypeCallProperty",value:r,static:null};const l=g.ObjectTypeCallProperty;y(l.value,s,"value",r,1);return s}function objectTypeIndexer(r=null,s,l,p=null){const d={type:"ObjectTypeIndexer",id:r,key:s,value:l,variance:p,static:null};const m=g.ObjectTypeIndexer;y(m.id,d,"id",r,1);y(m.key,d,"key",s,1);y(m.value,d,"value",l,1);y(m.variance,d,"variance",p,1);return d}function objectTypeProperty(r,s,l=null){const p={type:"ObjectTypeProperty",key:r,value:s,variance:l,kind:null,method:null,optional:null,proto:null,static:null};const d=g.ObjectTypeProperty;y(d.key,p,"key",r,1);y(d.value,p,"value",s,1);y(d.variance,p,"variance",l,1);return p}function objectTypeSpreadProperty(r){const s={type:"ObjectTypeSpreadProperty",argument:r};const l=g.ObjectTypeSpreadProperty;y(l.argument,s,"argument",r,1);return s}function opaqueType(r,s=null,l=null,p){const d={type:"OpaqueType",id:r,typeParameters:s,supertype:l,impltype:p};const m=g.OpaqueType;y(m.id,d,"id",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.supertype,d,"supertype",l,1);y(m.impltype,d,"impltype",p,1);return d}function qualifiedTypeIdentifier(r,s){const l={type:"QualifiedTypeIdentifier",id:r,qualification:s};const p=g.QualifiedTypeIdentifier;y(p.id,l,"id",r,1);y(p.qualification,l,"qualification",s,1);return l}function stringLiteralTypeAnnotation(r){const s={type:"StringLiteralTypeAnnotation",value:r};const l=g.StringLiteralTypeAnnotation;y(l.value,s,"value",r);return s}function stringTypeAnnotation(){return{type:"StringTypeAnnotation"}}function symbolTypeAnnotation(){return{type:"SymbolTypeAnnotation"}}function thisTypeAnnotation(){return{type:"ThisTypeAnnotation"}}function tupleTypeAnnotation(r){const s={type:"TupleTypeAnnotation",types:r};const l=g.TupleTypeAnnotation;y(l.types,s,"types",r,1);return s}function typeofTypeAnnotation(r){const s={type:"TypeofTypeAnnotation",argument:r};const l=g.TypeofTypeAnnotation;y(l.argument,s,"argument",r,1);return s}function typeAlias(r,s=null,l){const p={type:"TypeAlias",id:r,typeParameters:s,right:l};const d=g.TypeAlias;y(d.id,p,"id",r,1);y(d.typeParameters,p,"typeParameters",s,1);y(d.right,p,"right",l,1);return p}function typeAnnotation(r){const s={type:"TypeAnnotation",typeAnnotation:r};const l=g.TypeAnnotation;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function typeCastExpression(r,s){const l={type:"TypeCastExpression",expression:r,typeAnnotation:s};const p=g.TypeCastExpression;y(p.expression,l,"expression",r,1);y(p.typeAnnotation,l,"typeAnnotation",s,1);return l}function typeParameter(r=null,s=null,l=null){const p={type:"TypeParameter",bound:r,default:s,variance:l,name:null};const d=g.TypeParameter;y(d.bound,p,"bound",r,1);y(d.default,p,"default",s,1);y(d.variance,p,"variance",l,1);return p}function typeParameterDeclaration(r){const s={type:"TypeParameterDeclaration",params:r};const l=g.TypeParameterDeclaration;y(l.params,s,"params",r,1);return s}function typeParameterInstantiation(r){const s={type:"TypeParameterInstantiation",params:r};const l=g.TypeParameterInstantiation;y(l.params,s,"params",r,1);return s}function unionTypeAnnotation(r){const s={type:"UnionTypeAnnotation",types:r};const l=g.UnionTypeAnnotation;y(l.types,s,"types",r,1);return s}function variance(r){const s={type:"Variance",kind:r};const l=g.Variance;y(l.kind,s,"kind",r);return s}function voidTypeAnnotation(){return{type:"VoidTypeAnnotation"}}function enumDeclaration(r,s){const l={type:"EnumDeclaration",id:r,body:s};const p=g.EnumDeclaration;y(p.id,l,"id",r,1);y(p.body,l,"body",s,1);return l}function enumBooleanBody(r){const s={type:"EnumBooleanBody",members:r,explicitType:null,hasUnknownMembers:null};const l=g.EnumBooleanBody;y(l.members,s,"members",r,1);return s}function enumNumberBody(r){const s={type:"EnumNumberBody",members:r,explicitType:null,hasUnknownMembers:null};const l=g.EnumNumberBody;y(l.members,s,"members",r,1);return s}function enumStringBody(r){const s={type:"EnumStringBody",members:r,explicitType:null,hasUnknownMembers:null};const l=g.EnumStringBody;y(l.members,s,"members",r,1);return s}function enumSymbolBody(r){const s={type:"EnumSymbolBody",members:r,hasUnknownMembers:null};const l=g.EnumSymbolBody;y(l.members,s,"members",r,1);return s}function enumBooleanMember(r){const s={type:"EnumBooleanMember",id:r,init:null};const l=g.EnumBooleanMember;y(l.id,s,"id",r,1);return s}function enumNumberMember(r,s){const l={type:"EnumNumberMember",id:r,init:s};const p=g.EnumNumberMember;y(p.id,l,"id",r,1);y(p.init,l,"init",s,1);return l}function enumStringMember(r,s){const l={type:"EnumStringMember",id:r,init:s};const p=g.EnumStringMember;y(p.id,l,"id",r,1);y(p.init,l,"init",s,1);return l}function enumDefaultedMember(r){const s={type:"EnumDefaultedMember",id:r};const l=g.EnumDefaultedMember;y(l.id,s,"id",r,1);return s}function indexedAccessType(r,s){const l={type:"IndexedAccessType",objectType:r,indexType:s};const p=g.IndexedAccessType;y(p.objectType,l,"objectType",r,1);y(p.indexType,l,"indexType",s,1);return l}function optionalIndexedAccessType(r,s){const l={type:"OptionalIndexedAccessType",objectType:r,indexType:s,optional:null};const p=g.OptionalIndexedAccessType;y(p.objectType,l,"objectType",r,1);y(p.indexType,l,"indexType",s,1);return l}function jsxAttribute(r,s=null){const l={type:"JSXAttribute",name:r,value:s};const p=g.JSXAttribute;y(p.name,l,"name",r,1);y(p.value,l,"value",s,1);return l}function jsxClosingElement(r){const s={type:"JSXClosingElement",name:r};const l=g.JSXClosingElement;y(l.name,s,"name",r,1);return s}function jsxElement(r,s=null,l,p=null){const d={type:"JSXElement",openingElement:r,closingElement:s,children:l,selfClosing:p};const m=g.JSXElement;y(m.openingElement,d,"openingElement",r,1);y(m.closingElement,d,"closingElement",s,1);y(m.children,d,"children",l,1);y(m.selfClosing,d,"selfClosing",p);return d}function jsxEmptyExpression(){return{type:"JSXEmptyExpression"}}function jsxExpressionContainer(r){const s={type:"JSXExpressionContainer",expression:r};const l=g.JSXExpressionContainer;y(l.expression,s,"expression",r,1);return s}function jsxSpreadChild(r){const s={type:"JSXSpreadChild",expression:r};const l=g.JSXSpreadChild;y(l.expression,s,"expression",r,1);return s}function jsxIdentifier(r){const s={type:"JSXIdentifier",name:r};const l=g.JSXIdentifier;y(l.name,s,"name",r);return s}function jsxMemberExpression(r,s){const l={type:"JSXMemberExpression",object:r,property:s};const p=g.JSXMemberExpression;y(p.object,l,"object",r,1);y(p.property,l,"property",s,1);return l}function jsxNamespacedName(r,s){const l={type:"JSXNamespacedName",namespace:r,name:s};const p=g.JSXNamespacedName;y(p.namespace,l,"namespace",r,1);y(p.name,l,"name",s,1);return l}function jsxOpeningElement(r,s,l=false){const p={type:"JSXOpeningElement",name:r,attributes:s,selfClosing:l};const d=g.JSXOpeningElement;y(d.name,p,"name",r,1);y(d.attributes,p,"attributes",s,1);y(d.selfClosing,p,"selfClosing",l);return p}function jsxSpreadAttribute(r){const s={type:"JSXSpreadAttribute",argument:r};const l=g.JSXSpreadAttribute;y(l.argument,s,"argument",r,1);return s}function jsxText(r){const s={type:"JSXText",value:r};const l=g.JSXText;y(l.value,s,"value",r);return s}function jsxFragment(r,s,l){const p={type:"JSXFragment",openingFragment:r,closingFragment:s,children:l};const d=g.JSXFragment;y(d.openingFragment,p,"openingFragment",r,1);y(d.closingFragment,p,"closingFragment",s,1);y(d.children,p,"children",l,1);return p}function jsxOpeningFragment(){return{type:"JSXOpeningFragment"}}function jsxClosingFragment(){return{type:"JSXClosingFragment"}}function noop(){return{type:"Noop"}}function placeholder(r,s){const l={type:"Placeholder",expectedNode:r,name:s};const p=g.Placeholder;y(p.expectedNode,l,"expectedNode",r);y(p.name,l,"name",s,1);return l}function v8IntrinsicIdentifier(r){const s={type:"V8IntrinsicIdentifier",name:r};const l=g.V8IntrinsicIdentifier;y(l.name,s,"name",r);return s}function argumentPlaceholder(){return{type:"ArgumentPlaceholder"}}function bindExpression(r,s){const l={type:"BindExpression",object:r,callee:s};const p=g.BindExpression;y(p.object,l,"object",r,1);y(p.callee,l,"callee",s,1);return l}function decorator(r){const s={type:"Decorator",expression:r};const l=g.Decorator;y(l.expression,s,"expression",r,1);return s}function doExpression(r,s=false){const l={type:"DoExpression",body:r,async:s};const p=g.DoExpression;y(p.body,l,"body",r,1);y(p.async,l,"async",s);return l}function exportDefaultSpecifier(r){const s={type:"ExportDefaultSpecifier",exported:r};const l=g.ExportDefaultSpecifier;y(l.exported,s,"exported",r,1);return s}function recordExpression(r){const s={type:"RecordExpression",properties:r};const l=g.RecordExpression;y(l.properties,s,"properties",r,1);return s}function tupleExpression(r=[]){const s={type:"TupleExpression",elements:r};const l=g.TupleExpression;y(l.elements,s,"elements",r,1);return s}function decimalLiteral(r){const s={type:"DecimalLiteral",value:r};const l=g.DecimalLiteral;y(l.value,s,"value",r);return s}function moduleExpression(r){const s={type:"ModuleExpression",body:r};const l=g.ModuleExpression;y(l.body,s,"body",r,1);return s}function topicReference(){return{type:"TopicReference"}}function pipelineTopicExpression(r){const s={type:"PipelineTopicExpression",expression:r};const l=g.PipelineTopicExpression;y(l.expression,s,"expression",r,1);return s}function pipelineBareFunction(r){const s={type:"PipelineBareFunction",callee:r};const l=g.PipelineBareFunction;y(l.callee,s,"callee",r,1);return s}function pipelinePrimaryTopicReference(){return{type:"PipelinePrimaryTopicReference"}}function voidPattern(){return{type:"VoidPattern"}}function tsParameterProperty(r){const s={type:"TSParameterProperty",parameter:r};const l=g.TSParameterProperty;y(l.parameter,s,"parameter",r,1);return s}function tsDeclareFunction(r=null,s=null,l,p=null){const d={type:"TSDeclareFunction",id:r,typeParameters:s,params:l,returnType:p};const m=g.TSDeclareFunction;y(m.id,d,"id",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.params,d,"params",l,1);y(m.returnType,d,"returnType",p,1);return d}function tsDeclareMethod(r=null,s,l=null,p,d=null){const m={type:"TSDeclareMethod",decorators:r,key:s,typeParameters:l,params:p,returnType:d};const T=g.TSDeclareMethod;y(T.decorators,m,"decorators",r,1);y(T.key,m,"key",s,1);y(T.typeParameters,m,"typeParameters",l,1);y(T.params,m,"params",p,1);y(T.returnType,m,"returnType",d,1);return m}function tsQualifiedName(r,s){const l={type:"TSQualifiedName",left:r,right:s};const p=g.TSQualifiedName;y(p.left,l,"left",r,1);y(p.right,l,"right",s,1);return l}function tsCallSignatureDeclaration(r=null,s,l=null){const p={type:"TSCallSignatureDeclaration",typeParameters:r,parameters:s,typeAnnotation:l};const d=g.TSCallSignatureDeclaration;y(d.typeParameters,p,"typeParameters",r,1);y(d.parameters,p,"parameters",s,1);y(d.typeAnnotation,p,"typeAnnotation",l,1);return p}function tsConstructSignatureDeclaration(r=null,s,l=null){const p={type:"TSConstructSignatureDeclaration",typeParameters:r,parameters:s,typeAnnotation:l};const d=g.TSConstructSignatureDeclaration;y(d.typeParameters,p,"typeParameters",r,1);y(d.parameters,p,"parameters",s,1);y(d.typeAnnotation,p,"typeAnnotation",l,1);return p}function tsPropertySignature(r,s=null){const l={type:"TSPropertySignature",key:r,typeAnnotation:s};const p=g.TSPropertySignature;y(p.key,l,"key",r,1);y(p.typeAnnotation,l,"typeAnnotation",s,1);return l}function tsMethodSignature(r,s=null,l,p=null){const d={type:"TSMethodSignature",key:r,typeParameters:s,parameters:l,typeAnnotation:p,kind:null};const m=g.TSMethodSignature;y(m.key,d,"key",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.parameters,d,"parameters",l,1);y(m.typeAnnotation,d,"typeAnnotation",p,1);return d}function tsIndexSignature(r,s=null){const l={type:"TSIndexSignature",parameters:r,typeAnnotation:s};const p=g.TSIndexSignature;y(p.parameters,l,"parameters",r,1);y(p.typeAnnotation,l,"typeAnnotation",s,1);return l}function tsAnyKeyword(){return{type:"TSAnyKeyword"}}function tsBooleanKeyword(){return{type:"TSBooleanKeyword"}}function tsBigIntKeyword(){return{type:"TSBigIntKeyword"}}function tsIntrinsicKeyword(){return{type:"TSIntrinsicKeyword"}}function tsNeverKeyword(){return{type:"TSNeverKeyword"}}function tsNullKeyword(){return{type:"TSNullKeyword"}}function tsNumberKeyword(){return{type:"TSNumberKeyword"}}function tsObjectKeyword(){return{type:"TSObjectKeyword"}}function tsStringKeyword(){return{type:"TSStringKeyword"}}function tsSymbolKeyword(){return{type:"TSSymbolKeyword"}}function tsUndefinedKeyword(){return{type:"TSUndefinedKeyword"}}function tsUnknownKeyword(){return{type:"TSUnknownKeyword"}}function tsVoidKeyword(){return{type:"TSVoidKeyword"}}function tsThisType(){return{type:"TSThisType"}}function tsFunctionType(r=null,s,l=null){const p={type:"TSFunctionType",typeParameters:r,parameters:s,typeAnnotation:l};const d=g.TSFunctionType;y(d.typeParameters,p,"typeParameters",r,1);y(d.parameters,p,"parameters",s,1);y(d.typeAnnotation,p,"typeAnnotation",l,1);return p}function tsConstructorType(r=null,s,l=null){const p={type:"TSConstructorType",typeParameters:r,parameters:s,typeAnnotation:l};const d=g.TSConstructorType;y(d.typeParameters,p,"typeParameters",r,1);y(d.parameters,p,"parameters",s,1);y(d.typeAnnotation,p,"typeAnnotation",l,1);return p}function tsTypeReference(r,s=null){const l={type:"TSTypeReference",typeName:r,typeParameters:s};const p=g.TSTypeReference;y(p.typeName,l,"typeName",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function tsTypePredicate(r,s=null,l=null){const p={type:"TSTypePredicate",parameterName:r,typeAnnotation:s,asserts:l};const d=g.TSTypePredicate;y(d.parameterName,p,"parameterName",r,1);y(d.typeAnnotation,p,"typeAnnotation",s,1);y(d.asserts,p,"asserts",l);return p}function tsTypeQuery(r,s=null){const l={type:"TSTypeQuery",exprName:r,typeParameters:s};const p=g.TSTypeQuery;y(p.exprName,l,"exprName",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function tsTypeLiteral(r){const s={type:"TSTypeLiteral",members:r};const l=g.TSTypeLiteral;y(l.members,s,"members",r,1);return s}function tsArrayType(r){const s={type:"TSArrayType",elementType:r};const l=g.TSArrayType;y(l.elementType,s,"elementType",r,1);return s}function tsTupleType(r){const s={type:"TSTupleType",elementTypes:r};const l=g.TSTupleType;y(l.elementTypes,s,"elementTypes",r,1);return s}function tsOptionalType(r){const s={type:"TSOptionalType",typeAnnotation:r};const l=g.TSOptionalType;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsRestType(r){const s={type:"TSRestType",typeAnnotation:r};const l=g.TSRestType;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsNamedTupleMember(r,s,l=false){const p={type:"TSNamedTupleMember",label:r,elementType:s,optional:l};const d=g.TSNamedTupleMember;y(d.label,p,"label",r,1);y(d.elementType,p,"elementType",s,1);y(d.optional,p,"optional",l);return p}function tsUnionType(r){const s={type:"TSUnionType",types:r};const l=g.TSUnionType;y(l.types,s,"types",r,1);return s}function tsIntersectionType(r){const s={type:"TSIntersectionType",types:r};const l=g.TSIntersectionType;y(l.types,s,"types",r,1);return s}function tsConditionalType(r,s,l,p){const d={type:"TSConditionalType",checkType:r,extendsType:s,trueType:l,falseType:p};const m=g.TSConditionalType;y(m.checkType,d,"checkType",r,1);y(m.extendsType,d,"extendsType",s,1);y(m.trueType,d,"trueType",l,1);y(m.falseType,d,"falseType",p,1);return d}function tsInferType(r){const s={type:"TSInferType",typeParameter:r};const l=g.TSInferType;y(l.typeParameter,s,"typeParameter",r,1);return s}function tsParenthesizedType(r){const s={type:"TSParenthesizedType",typeAnnotation:r};const l=g.TSParenthesizedType;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsTypeOperator(r,s="keyof"){const l={type:"TSTypeOperator",typeAnnotation:r,operator:s};const p=g.TSTypeOperator;y(p.typeAnnotation,l,"typeAnnotation",r,1);y(p.operator,l,"operator",s);return l}function tsIndexedAccessType(r,s){const l={type:"TSIndexedAccessType",objectType:r,indexType:s};const p=g.TSIndexedAccessType;y(p.objectType,l,"objectType",r,1);y(p.indexType,l,"indexType",s,1);return l}function tsMappedType(r,s=null,l=null){const p={type:"TSMappedType",typeParameter:r,typeAnnotation:s,nameType:l};const d=g.TSMappedType;y(d.typeParameter,p,"typeParameter",r,1);y(d.typeAnnotation,p,"typeAnnotation",s,1);y(d.nameType,p,"nameType",l,1);return p}function tsTemplateLiteralType(r,s){const l={type:"TSTemplateLiteralType",quasis:r,types:s};const p=g.TSTemplateLiteralType;y(p.quasis,l,"quasis",r,1);y(p.types,l,"types",s,1);return l}function tsLiteralType(r){const s={type:"TSLiteralType",literal:r};const l=g.TSLiteralType;y(l.literal,s,"literal",r,1);return s}function tsExpressionWithTypeArguments(r,s=null){const l={type:"TSExpressionWithTypeArguments",expression:r,typeParameters:s};const p=g.TSExpressionWithTypeArguments;y(p.expression,l,"expression",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function tsInterfaceDeclaration(r,s=null,l=null,p){const d={type:"TSInterfaceDeclaration",id:r,typeParameters:s,extends:l,body:p};const m=g.TSInterfaceDeclaration;y(m.id,d,"id",r,1);y(m.typeParameters,d,"typeParameters",s,1);y(m.extends,d,"extends",l,1);y(m.body,d,"body",p,1);return d}function tsInterfaceBody(r){const s={type:"TSInterfaceBody",body:r};const l=g.TSInterfaceBody;y(l.body,s,"body",r,1);return s}function tsTypeAliasDeclaration(r,s=null,l){const p={type:"TSTypeAliasDeclaration",id:r,typeParameters:s,typeAnnotation:l};const d=g.TSTypeAliasDeclaration;y(d.id,p,"id",r,1);y(d.typeParameters,p,"typeParameters",s,1);y(d.typeAnnotation,p,"typeAnnotation",l,1);return p}function tsInstantiationExpression(r,s=null){const l={type:"TSInstantiationExpression",expression:r,typeParameters:s};const p=g.TSInstantiationExpression;y(p.expression,l,"expression",r,1);y(p.typeParameters,l,"typeParameters",s,1);return l}function tsAsExpression(r,s){const l={type:"TSAsExpression",expression:r,typeAnnotation:s};const p=g.TSAsExpression;y(p.expression,l,"expression",r,1);y(p.typeAnnotation,l,"typeAnnotation",s,1);return l}function tsSatisfiesExpression(r,s){const l={type:"TSSatisfiesExpression",expression:r,typeAnnotation:s};const p=g.TSSatisfiesExpression;y(p.expression,l,"expression",r,1);y(p.typeAnnotation,l,"typeAnnotation",s,1);return l}function tsTypeAssertion(r,s){const l={type:"TSTypeAssertion",typeAnnotation:r,expression:s};const p=g.TSTypeAssertion;y(p.typeAnnotation,l,"typeAnnotation",r,1);y(p.expression,l,"expression",s,1);return l}function tsEnumBody(r){const s={type:"TSEnumBody",members:r};const l=g.TSEnumBody;y(l.members,s,"members",r,1);return s}function tsEnumDeclaration(r,s){const l={type:"TSEnumDeclaration",id:r,members:s};const p=g.TSEnumDeclaration;y(p.id,l,"id",r,1);y(p.members,l,"members",s,1);return l}function tsEnumMember(r,s=null){const l={type:"TSEnumMember",id:r,initializer:s};const p=g.TSEnumMember;y(p.id,l,"id",r,1);y(p.initializer,l,"initializer",s,1);return l}function tsModuleDeclaration(r,s){const l={type:"TSModuleDeclaration",id:r,body:s,kind:null};const p=g.TSModuleDeclaration;y(p.id,l,"id",r,1);y(p.body,l,"body",s,1);return l}function tsModuleBlock(r){const s={type:"TSModuleBlock",body:r};const l=g.TSModuleBlock;y(l.body,s,"body",r,1);return s}function tsImportType(r,s=null,l=null){const p={type:"TSImportType",argument:r,qualifier:s,typeParameters:l};const d=g.TSImportType;y(d.argument,p,"argument",r,1);y(d.qualifier,p,"qualifier",s,1);y(d.typeParameters,p,"typeParameters",l,1);return p}function tsImportEqualsDeclaration(r,s){const l={type:"TSImportEqualsDeclaration",id:r,moduleReference:s,isExport:null};const p=g.TSImportEqualsDeclaration;y(p.id,l,"id",r,1);y(p.moduleReference,l,"moduleReference",s,1);return l}function tsExternalModuleReference(r){const s={type:"TSExternalModuleReference",expression:r};const l=g.TSExternalModuleReference;y(l.expression,s,"expression",r,1);return s}function tsNonNullExpression(r){const s={type:"TSNonNullExpression",expression:r};const l=g.TSNonNullExpression;y(l.expression,s,"expression",r,1);return s}function tsExportAssignment(r){const s={type:"TSExportAssignment",expression:r};const l=g.TSExportAssignment;y(l.expression,s,"expression",r,1);return s}function tsNamespaceExportDeclaration(r){const s={type:"TSNamespaceExportDeclaration",id:r};const l=g.TSNamespaceExportDeclaration;y(l.id,s,"id",r,1);return s}function tsTypeAnnotation(r){const s={type:"TSTypeAnnotation",typeAnnotation:r};const l=g.TSTypeAnnotation;y(l.typeAnnotation,s,"typeAnnotation",r,1);return s}function tsTypeParameterInstantiation(r){const s={type:"TSTypeParameterInstantiation",params:r};const l=g.TSTypeParameterInstantiation;y(l.params,s,"params",r,1);return s}function tsTypeParameterDeclaration(r){const s={type:"TSTypeParameterDeclaration",params:r};const l=g.TSTypeParameterDeclaration;y(l.params,s,"params",r,1);return s}function tsTypeParameter(r=null,s=null,l){const p={type:"TSTypeParameter",constraint:r,default:s,name:l};const d=g.TSTypeParameter;y(d.constraint,p,"constraint",r,1);y(d.default,p,"default",s,1);y(d.name,p,"name",l);return p}function NumberLiteral(r){(0,d.default)("NumberLiteral","NumericLiteral","The node type ");return numericLiteral(r)}function RegexLiteral(r,s=""){(0,d.default)("RegexLiteral","RegExpLiteral","The node type ");return regExpLiteral(r,s)}function RestProperty(r){(0,d.default)("RestProperty","RestElement","The node type ");return restElement(r)}function SpreadProperty(r){(0,d.default)("SpreadProperty","SpreadElement","The node type ");return spreadElement(r)}},5681:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.JSXIdentifier=s.JSXFragment=s.JSXExpressionContainer=s.JSXEmptyExpression=s.JSXElement=s.JSXClosingFragment=s.JSXClosingElement=s.JSXAttribute=s.IntersectionTypeAnnotation=s.InterpreterDirective=s.InterfaceTypeAnnotation=s.InterfaceExtends=s.InterfaceDeclaration=s.InferredPredicate=s.IndexedAccessType=s.ImportSpecifier=s.ImportNamespaceSpecifier=s.ImportExpression=s.ImportDefaultSpecifier=s.ImportDeclaration=s.ImportAttribute=s.Import=s.IfStatement=s.Identifier=s.GenericTypeAnnotation=s.FunctionTypeParam=s.FunctionTypeAnnotation=s.FunctionExpression=s.FunctionDeclaration=s.ForStatement=s.ForOfStatement=s.ForInStatement=s.File=s.ExpressionStatement=s.ExportSpecifier=s.ExportNamespaceSpecifier=s.ExportNamedDeclaration=s.ExportDefaultSpecifier=s.ExportDefaultDeclaration=s.ExportAllDeclaration=s.ExistsTypeAnnotation=s.EnumSymbolBody=s.EnumStringMember=s.EnumStringBody=s.EnumNumberMember=s.EnumNumberBody=s.EnumDefaultedMember=s.EnumDeclaration=s.EnumBooleanMember=s.EnumBooleanBody=s.EmptyTypeAnnotation=s.EmptyStatement=s.DoWhileStatement=s.DoExpression=s.DirectiveLiteral=s.Directive=s.Decorator=s.DeclaredPredicate=s.DeclareVariable=s.DeclareTypeAlias=s.DeclareOpaqueType=s.DeclareModuleExports=s.DeclareModule=s.DeclareInterface=s.DeclareFunction=s.DeclareExportDeclaration=s.DeclareExportAllDeclaration=s.DeclareClass=s.DecimalLiteral=s.DebuggerStatement=s.ContinueStatement=s.ConditionalExpression=s.ClassProperty=s.ClassPrivateProperty=s.ClassPrivateMethod=s.ClassMethod=s.ClassImplements=s.ClassExpression=s.ClassDeclaration=s.ClassBody=s.ClassAccessorProperty=s.CatchClause=s.CallExpression=s.BreakStatement=s.BooleanTypeAnnotation=s.BooleanLiteralTypeAnnotation=s.BooleanLiteral=s.BlockStatement=s.BindExpression=s.BinaryExpression=s.BigIntLiteral=s.AwaitExpression=s.AssignmentPattern=s.AssignmentExpression=s.ArrowFunctionExpression=s.ArrayTypeAnnotation=s.ArrayPattern=s.ArrayExpression=s.ArgumentPlaceholder=s.AnyTypeAnnotation=void 0;s.TSNumberKeyword=s.TSNullKeyword=s.TSNonNullExpression=s.TSNeverKeyword=s.TSNamespaceExportDeclaration=s.TSNamedTupleMember=s.TSModuleDeclaration=s.TSModuleBlock=s.TSMethodSignature=s.TSMappedType=s.TSLiteralType=s.TSIntrinsicKeyword=s.TSIntersectionType=s.TSInterfaceDeclaration=s.TSInterfaceBody=s.TSInstantiationExpression=s.TSInferType=s.TSIndexedAccessType=s.TSIndexSignature=s.TSImportType=s.TSImportEqualsDeclaration=s.TSFunctionType=s.TSExternalModuleReference=s.TSExpressionWithTypeArguments=s.TSExportAssignment=s.TSEnumMember=s.TSEnumDeclaration=s.TSEnumBody=s.TSDeclareMethod=s.TSDeclareFunction=s.TSConstructorType=s.TSConstructSignatureDeclaration=s.TSConditionalType=s.TSCallSignatureDeclaration=s.TSBooleanKeyword=s.TSBigIntKeyword=s.TSAsExpression=s.TSArrayType=s.TSAnyKeyword=s.SymbolTypeAnnotation=s.SwitchStatement=s.SwitchCase=s.Super=s.StringTypeAnnotation=s.StringLiteralTypeAnnotation=s.StringLiteral=s.StaticBlock=s.SpreadProperty=s.SpreadElement=s.SequenceExpression=s.ReturnStatement=s.RestProperty=s.RestElement=s.RegexLiteral=s.RegExpLiteral=s.RecordExpression=s.QualifiedTypeIdentifier=s.Program=s.PrivateName=s.Placeholder=s.PipelineTopicExpression=s.PipelinePrimaryTopicReference=s.PipelineBareFunction=s.ParenthesizedExpression=s.OptionalMemberExpression=s.OptionalIndexedAccessType=s.OptionalCallExpression=s.OpaqueType=s.ObjectTypeSpreadProperty=s.ObjectTypeProperty=s.ObjectTypeInternalSlot=s.ObjectTypeIndexer=s.ObjectTypeCallProperty=s.ObjectTypeAnnotation=s.ObjectProperty=s.ObjectPattern=s.ObjectMethod=s.ObjectExpression=s.NumericLiteral=s.NumberTypeAnnotation=s.NumberLiteralTypeAnnotation=s.NumberLiteral=s.NullableTypeAnnotation=s.NullLiteralTypeAnnotation=s.NullLiteral=s.Noop=s.NewExpression=s.ModuleExpression=s.MixedTypeAnnotation=s.MetaProperty=s.MemberExpression=s.LogicalExpression=s.LabeledStatement=s.JSXText=s.JSXSpreadChild=s.JSXSpreadAttribute=s.JSXOpeningFragment=s.JSXOpeningElement=s.JSXNamespacedName=s.JSXMemberExpression=void 0;s.YieldExpression=s.WithStatement=s.WhileStatement=s.VoidTypeAnnotation=s.VoidPattern=s.Variance=s.VariableDeclarator=s.VariableDeclaration=s.V8IntrinsicIdentifier=s.UpdateExpression=s.UnionTypeAnnotation=s.UnaryExpression=s.TypeofTypeAnnotation=s.TypeParameterInstantiation=s.TypeParameterDeclaration=s.TypeParameter=s.TypeCastExpression=s.TypeAnnotation=s.TypeAlias=s.TupleTypeAnnotation=s.TupleExpression=s.TryStatement=s.TopicReference=s.ThrowStatement=s.ThisTypeAnnotation=s.ThisExpression=s.TemplateLiteral=s.TemplateElement=s.TaggedTemplateExpression=s.TSVoidKeyword=s.TSUnknownKeyword=s.TSUnionType=s.TSUndefinedKeyword=s.TSTypeReference=s.TSTypeQuery=s.TSTypePredicate=s.TSTypeParameterInstantiation=s.TSTypeParameterDeclaration=s.TSTypeParameter=s.TSTypeOperator=s.TSTypeLiteral=s.TSTypeAssertion=s.TSTypeAnnotation=s.TSTypeAliasDeclaration=s.TSTupleType=s.TSThisType=s.TSTemplateLiteralType=s.TSSymbolKeyword=s.TSStringKeyword=s.TSSatisfiesExpression=s.TSRestType=s.TSQualifiedName=s.TSPropertySignature=s.TSParenthesizedType=s.TSParameterProperty=s.TSOptionalType=s.TSObjectKeyword=void 0;var p=l(3556);var d=l(9408);function alias(r){{return p[r]}}const m=s.ArrayExpression=alias("arrayExpression"),y=s.AssignmentExpression=alias("assignmentExpression"),g=s.BinaryExpression=alias("binaryExpression"),T=s.InterpreterDirective=alias("interpreterDirective"),b=s.Directive=alias("directive"),E=s.DirectiveLiteral=alias("directiveLiteral"),S=s.BlockStatement=alias("blockStatement"),_=s.BreakStatement=alias("breakStatement"),x=s.CallExpression=alias("callExpression"),w=s.CatchClause=alias("catchClause"),v=s.ConditionalExpression=alias("conditionalExpression"),A=s.ContinueStatement=alias("continueStatement"),P=s.DebuggerStatement=alias("debuggerStatement"),k=s.DoWhileStatement=alias("doWhileStatement"),C=s.EmptyStatement=alias("emptyStatement"),I=s.ExpressionStatement=alias("expressionStatement"),O=s.File=alias("file"),N=s.ForInStatement=alias("forInStatement"),L=s.ForStatement=alias("forStatement"),D=s.FunctionDeclaration=alias("functionDeclaration"),R=s.FunctionExpression=alias("functionExpression"),M=s.Identifier=alias("identifier"),F=s.IfStatement=alias("ifStatement"),B=s.LabeledStatement=alias("labeledStatement"),j=s.StringLiteral=alias("stringLiteral"),$=s.NumericLiteral=alias("numericLiteral"),U=s.NullLiteral=alias("nullLiteral"),G=s.BooleanLiteral=alias("booleanLiteral"),q=s.RegExpLiteral=alias("regExpLiteral"),W=s.LogicalExpression=alias("logicalExpression"),H=s.MemberExpression=alias("memberExpression"),V=s.NewExpression=alias("newExpression"),K=s.Program=alias("program"),z=s.ObjectExpression=alias("objectExpression"),Y=s.ObjectMethod=alias("objectMethod"),J=s.ObjectProperty=alias("objectProperty"),X=s.RestElement=alias("restElement"),Q=s.ReturnStatement=alias("returnStatement"),Z=s.SequenceExpression=alias("sequenceExpression"),ee=s.ParenthesizedExpression=alias("parenthesizedExpression"),te=s.SwitchCase=alias("switchCase"),re=s.SwitchStatement=alias("switchStatement"),se=s.ThisExpression=alias("thisExpression"),ne=s.ThrowStatement=alias("throwStatement"),ie=s.TryStatement=alias("tryStatement"),ae=s.UnaryExpression=alias("unaryExpression"),oe=s.UpdateExpression=alias("updateExpression"),le=s.VariableDeclaration=alias("variableDeclaration"),ce=s.VariableDeclarator=alias("variableDeclarator"),ue=s.WhileStatement=alias("whileStatement"),pe=s.WithStatement=alias("withStatement"),de=s.AssignmentPattern=alias("assignmentPattern"),fe=s.ArrayPattern=alias("arrayPattern"),he=s.ArrowFunctionExpression=alias("arrowFunctionExpression"),me=s.ClassBody=alias("classBody"),ye=s.ClassExpression=alias("classExpression"),ge=s.ClassDeclaration=alias("classDeclaration"),Te=s.ExportAllDeclaration=alias("exportAllDeclaration"),be=s.ExportDefaultDeclaration=alias("exportDefaultDeclaration"),Ee=s.ExportNamedDeclaration=alias("exportNamedDeclaration"),Se=s.ExportSpecifier=alias("exportSpecifier"),_e=s.ForOfStatement=alias("forOfStatement"),xe=s.ImportDeclaration=alias("importDeclaration"),we=s.ImportDefaultSpecifier=alias("importDefaultSpecifier"),ve=s.ImportNamespaceSpecifier=alias("importNamespaceSpecifier"),Ae=s.ImportSpecifier=alias("importSpecifier"),Pe=s.ImportExpression=alias("importExpression"),ke=s.MetaProperty=alias("metaProperty"),Ce=s.ClassMethod=alias("classMethod"),Ie=s.ObjectPattern=alias("objectPattern"),Oe=s.SpreadElement=alias("spreadElement"),Ne=s.Super=alias("super"),Le=s.TaggedTemplateExpression=alias("taggedTemplateExpression"),De=s.TemplateElement=alias("templateElement"),Re=s.TemplateLiteral=alias("templateLiteral"),Me=s.YieldExpression=alias("yieldExpression"),Fe=s.AwaitExpression=alias("awaitExpression"),Be=s.Import=alias("import"),je=s.BigIntLiteral=alias("bigIntLiteral"),$e=s.ExportNamespaceSpecifier=alias("exportNamespaceSpecifier"),Ue=s.OptionalMemberExpression=alias("optionalMemberExpression"),Ge=s.OptionalCallExpression=alias("optionalCallExpression"),qe=s.ClassProperty=alias("classProperty"),We=s.ClassAccessorProperty=alias("classAccessorProperty"),He=s.ClassPrivateProperty=alias("classPrivateProperty"),Ve=s.ClassPrivateMethod=alias("classPrivateMethod"),Ke=s.PrivateName=alias("privateName"),ze=s.StaticBlock=alias("staticBlock"),Ye=s.ImportAttribute=alias("importAttribute"),Je=s.AnyTypeAnnotation=alias("anyTypeAnnotation"),Xe=s.ArrayTypeAnnotation=alias("arrayTypeAnnotation"),Qe=s.BooleanTypeAnnotation=alias("booleanTypeAnnotation"),Ze=s.BooleanLiteralTypeAnnotation=alias("booleanLiteralTypeAnnotation"),et=s.NullLiteralTypeAnnotation=alias("nullLiteralTypeAnnotation"),tt=s.ClassImplements=alias("classImplements"),rt=s.DeclareClass=alias("declareClass"),st=s.DeclareFunction=alias("declareFunction"),nt=s.DeclareInterface=alias("declareInterface"),it=s.DeclareModule=alias("declareModule"),at=s.DeclareModuleExports=alias("declareModuleExports"),ot=s.DeclareTypeAlias=alias("declareTypeAlias"),ct=s.DeclareOpaqueType=alias("declareOpaqueType"),ut=s.DeclareVariable=alias("declareVariable"),pt=s.DeclareExportDeclaration=alias("declareExportDeclaration"),dt=s.DeclareExportAllDeclaration=alias("declareExportAllDeclaration"),ft=s.DeclaredPredicate=alias("declaredPredicate"),ht=s.ExistsTypeAnnotation=alias("existsTypeAnnotation"),mt=s.FunctionTypeAnnotation=alias("functionTypeAnnotation"),yt=s.FunctionTypeParam=alias("functionTypeParam"),Tt=s.GenericTypeAnnotation=alias("genericTypeAnnotation"),bt=s.InferredPredicate=alias("inferredPredicate"),Et=s.InterfaceExtends=alias("interfaceExtends"),St=s.InterfaceDeclaration=alias("interfaceDeclaration"),_t=s.InterfaceTypeAnnotation=alias("interfaceTypeAnnotation"),xt=s.IntersectionTypeAnnotation=alias("intersectionTypeAnnotation"),wt=s.MixedTypeAnnotation=alias("mixedTypeAnnotation"),vt=s.EmptyTypeAnnotation=alias("emptyTypeAnnotation"),At=s.NullableTypeAnnotation=alias("nullableTypeAnnotation"),Pt=s.NumberLiteralTypeAnnotation=alias("numberLiteralTypeAnnotation"),kt=s.NumberTypeAnnotation=alias("numberTypeAnnotation"),Ct=s.ObjectTypeAnnotation=alias("objectTypeAnnotation"),It=s.ObjectTypeInternalSlot=alias("objectTypeInternalSlot"),Ot=s.ObjectTypeCallProperty=alias("objectTypeCallProperty"),Nt=s.ObjectTypeIndexer=alias("objectTypeIndexer"),Lt=s.ObjectTypeProperty=alias("objectTypeProperty"),Dt=s.ObjectTypeSpreadProperty=alias("objectTypeSpreadProperty"),Rt=s.OpaqueType=alias("opaqueType"),Mt=s.QualifiedTypeIdentifier=alias("qualifiedTypeIdentifier"),Ft=s.StringLiteralTypeAnnotation=alias("stringLiteralTypeAnnotation"),Bt=s.StringTypeAnnotation=alias("stringTypeAnnotation"),jt=s.SymbolTypeAnnotation=alias("symbolTypeAnnotation"),$t=s.ThisTypeAnnotation=alias("thisTypeAnnotation"),Ut=s.TupleTypeAnnotation=alias("tupleTypeAnnotation"),Gt=s.TypeofTypeAnnotation=alias("typeofTypeAnnotation"),qt=s.TypeAlias=alias("typeAlias"),Wt=s.TypeAnnotation=alias("typeAnnotation"),Ht=s.TypeCastExpression=alias("typeCastExpression"),Vt=s.TypeParameter=alias("typeParameter"),Kt=s.TypeParameterDeclaration=alias("typeParameterDeclaration"),zt=s.TypeParameterInstantiation=alias("typeParameterInstantiation"),Yt=s.UnionTypeAnnotation=alias("unionTypeAnnotation"),Jt=s.Variance=alias("variance"),Xt=s.VoidTypeAnnotation=alias("voidTypeAnnotation"),Qt=s.EnumDeclaration=alias("enumDeclaration"),Zt=s.EnumBooleanBody=alias("enumBooleanBody"),er=s.EnumNumberBody=alias("enumNumberBody"),tr=s.EnumStringBody=alias("enumStringBody"),rr=s.EnumSymbolBody=alias("enumSymbolBody"),sr=s.EnumBooleanMember=alias("enumBooleanMember"),nr=s.EnumNumberMember=alias("enumNumberMember"),ir=s.EnumStringMember=alias("enumStringMember"),ar=s.EnumDefaultedMember=alias("enumDefaultedMember"),or=s.IndexedAccessType=alias("indexedAccessType"),lr=s.OptionalIndexedAccessType=alias("optionalIndexedAccessType"),cr=s.JSXAttribute=alias("jsxAttribute"),ur=s.JSXClosingElement=alias("jsxClosingElement"),pr=s.JSXElement=alias("jsxElement"),dr=s.JSXEmptyExpression=alias("jsxEmptyExpression"),fr=s.JSXExpressionContainer=alias("jsxExpressionContainer"),hr=s.JSXSpreadChild=alias("jsxSpreadChild"),mr=s.JSXIdentifier=alias("jsxIdentifier"),yr=s.JSXMemberExpression=alias("jsxMemberExpression"),gr=s.JSXNamespacedName=alias("jsxNamespacedName"),Tr=s.JSXOpeningElement=alias("jsxOpeningElement"),br=s.JSXSpreadAttribute=alias("jsxSpreadAttribute"),Er=s.JSXText=alias("jsxText"),Sr=s.JSXFragment=alias("jsxFragment"),_r=s.JSXOpeningFragment=alias("jsxOpeningFragment"),xr=s.JSXClosingFragment=alias("jsxClosingFragment"),wr=s.Noop=alias("noop"),vr=s.Placeholder=alias("placeholder"),Ar=s.V8IntrinsicIdentifier=alias("v8IntrinsicIdentifier"),Pr=s.ArgumentPlaceholder=alias("argumentPlaceholder"),kr=s.BindExpression=alias("bindExpression"),Cr=s.Decorator=alias("decorator"),Ir=s.DoExpression=alias("doExpression"),Or=s.ExportDefaultSpecifier=alias("exportDefaultSpecifier"),Nr=s.RecordExpression=alias("recordExpression"),Lr=s.TupleExpression=alias("tupleExpression"),Dr=s.DecimalLiteral=alias("decimalLiteral"),Rr=s.ModuleExpression=alias("moduleExpression"),Mr=s.TopicReference=alias("topicReference"),Fr=s.PipelineTopicExpression=alias("pipelineTopicExpression"),Br=s.PipelineBareFunction=alias("pipelineBareFunction"),jr=s.PipelinePrimaryTopicReference=alias("pipelinePrimaryTopicReference"),$r=s.VoidPattern=alias("voidPattern"),Ur=s.TSParameterProperty=alias("tsParameterProperty"),Gr=s.TSDeclareFunction=alias("tsDeclareFunction"),qr=s.TSDeclareMethod=alias("tsDeclareMethod"),Wr=s.TSQualifiedName=alias("tsQualifiedName"),Hr=s.TSCallSignatureDeclaration=alias("tsCallSignatureDeclaration"),Vr=s.TSConstructSignatureDeclaration=alias("tsConstructSignatureDeclaration"),Kr=s.TSPropertySignature=alias("tsPropertySignature"),zr=s.TSMethodSignature=alias("tsMethodSignature"),Yr=s.TSIndexSignature=alias("tsIndexSignature"),Jr=s.TSAnyKeyword=alias("tsAnyKeyword"),Xr=s.TSBooleanKeyword=alias("tsBooleanKeyword"),Qr=s.TSBigIntKeyword=alias("tsBigIntKeyword"),Zr=s.TSIntrinsicKeyword=alias("tsIntrinsicKeyword"),es=s.TSNeverKeyword=alias("tsNeverKeyword"),ts=s.TSNullKeyword=alias("tsNullKeyword"),rs=s.TSNumberKeyword=alias("tsNumberKeyword"),ss=s.TSObjectKeyword=alias("tsObjectKeyword"),ns=s.TSStringKeyword=alias("tsStringKeyword"),as=s.TSSymbolKeyword=alias("tsSymbolKeyword"),os=s.TSUndefinedKeyword=alias("tsUndefinedKeyword"),ls=s.TSUnknownKeyword=alias("tsUnknownKeyword"),cs=s.TSVoidKeyword=alias("tsVoidKeyword"),us=s.TSThisType=alias("tsThisType"),ps=s.TSFunctionType=alias("tsFunctionType"),ds=s.TSConstructorType=alias("tsConstructorType"),fs=s.TSTypeReference=alias("tsTypeReference"),hs=s.TSTypePredicate=alias("tsTypePredicate"),ms=s.TSTypeQuery=alias("tsTypeQuery"),ys=s.TSTypeLiteral=alias("tsTypeLiteral"),gs=s.TSArrayType=alias("tsArrayType"),Ts=s.TSTupleType=alias("tsTupleType"),bs=s.TSOptionalType=alias("tsOptionalType"),Es=s.TSRestType=alias("tsRestType"),Ss=s.TSNamedTupleMember=alias("tsNamedTupleMember"),_s=s.TSUnionType=alias("tsUnionType"),xs=s.TSIntersectionType=alias("tsIntersectionType"),ws=s.TSConditionalType=alias("tsConditionalType"),vs=s.TSInferType=alias("tsInferType"),As=s.TSParenthesizedType=alias("tsParenthesizedType"),Ps=s.TSTypeOperator=alias("tsTypeOperator"),ks=s.TSIndexedAccessType=alias("tsIndexedAccessType"),Cs=s.TSMappedType=alias("tsMappedType"),Is=s.TSTemplateLiteralType=alias("tsTemplateLiteralType"),Os=s.TSLiteralType=alias("tsLiteralType"),Ns=s.TSExpressionWithTypeArguments=alias("tsExpressionWithTypeArguments"),Ls=s.TSInterfaceDeclaration=alias("tsInterfaceDeclaration"),Ds=s.TSInterfaceBody=alias("tsInterfaceBody"),Rs=s.TSTypeAliasDeclaration=alias("tsTypeAliasDeclaration"),Ms=s.TSInstantiationExpression=alias("tsInstantiationExpression"),Fs=s.TSAsExpression=alias("tsAsExpression"),Bs=s.TSSatisfiesExpression=alias("tsSatisfiesExpression"),js=s.TSTypeAssertion=alias("tsTypeAssertion"),$s=s.TSEnumBody=alias("tsEnumBody"),Us=s.TSEnumDeclaration=alias("tsEnumDeclaration"),Gs=s.TSEnumMember=alias("tsEnumMember"),qs=s.TSModuleDeclaration=alias("tsModuleDeclaration"),Ws=s.TSModuleBlock=alias("tsModuleBlock"),Hs=s.TSImportType=alias("tsImportType"),Vs=s.TSImportEqualsDeclaration=alias("tsImportEqualsDeclaration"),Ks=s.TSExternalModuleReference=alias("tsExternalModuleReference"),zs=s.TSNonNullExpression=alias("tsNonNullExpression"),Ys=s.TSExportAssignment=alias("tsExportAssignment"),Js=s.TSNamespaceExportDeclaration=alias("tsNamespaceExportDeclaration"),Xs=s.TSTypeAnnotation=alias("tsTypeAnnotation"),Qs=s.TSTypeParameterInstantiation=alias("tsTypeParameterInstantiation"),Zs=s.TSTypeParameterDeclaration=alias("tsTypeParameterDeclaration"),en=s.TSTypeParameter=alias("tsTypeParameter");const tn=s.NumberLiteral=p.numberLiteral,rn=s.RegexLiteral=p.regexLiteral,sn=s.RestProperty=p.restProperty,nn=s.SpreadProperty=p.spreadProperty},1707:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.buildUndefinedNode=buildUndefinedNode;var p=l(7821);function buildUndefinedNode(){return(0,p.unaryExpression)("void",(0,p.numericLiteral)(0),true)}},6688:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=buildChildren;var p=l(3370);var d=l(3697);function buildChildren(r){const s=[];for(let l=0;l<r.children.length;l++){let m=r.children[l];if((0,p.isJSXText)(m)){(0,d.default)(m,s);continue}if((0,p.isJSXExpressionContainer)(m))m=m.expression;if((0,p.isJSXEmptyExpression)(m))continue;s.push(m)}return s}},8983:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=createTSUnionType;var p=l(7821);var d=l(6066);var m=l(3370);function createTSUnionType(r){const s=r.map((r=>(0,m.isTSTypeAnnotation)(r)?r.typeAnnotation:r));const l=(0,d.default)(s);if(l.length===1){return l[0]}else{return(0,p.tsUnionType)(l)}}},4717:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=clone;var p=l(6078);function clone(r){return(0,p.default)(r,false)}},4783:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=cloneDeep;var p=l(6078);function cloneDeep(r){return(0,p.default)(r)}},3413:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=cloneDeepWithoutLoc;var p=l(6078);function cloneDeepWithoutLoc(r){return(0,p.default)(r,true,true)}},6078:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=cloneNode;var p=l(8723);var d=l(3370);const{hasOwn:m}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function cloneIfNode(r,s,l,p){if(r&&typeof r.type==="string"){return cloneNodeInternal(r,s,l,p)}return r}function cloneIfNodeOrArray(r,s,l,p){if(Array.isArray(r)){return r.map((r=>cloneIfNode(r,s,l,p)))}return cloneIfNode(r,s,l,p)}function cloneNode(r,s=true,l=false){return cloneNodeInternal(r,s,l,new Map)}function cloneNodeInternal(r,s=true,l=false,y){if(!r)return r;const{type:g}=r;const T={type:r.type};if((0,d.isIdentifier)(r)){T.name=r.name;if(m(r,"optional")&&typeof r.optional==="boolean"){T.optional=r.optional}if(m(r,"typeAnnotation")){T.typeAnnotation=s?cloneIfNodeOrArray(r.typeAnnotation,true,l,y):r.typeAnnotation}if(m(r,"decorators")){T.decorators=s?cloneIfNodeOrArray(r.decorators,true,l,y):r.decorators}}else if(!m(p.NODE_FIELDS,g)){throw new Error(`Unknown node type: "${g}"`)}else{for(const b of Object.keys(p.NODE_FIELDS[g])){if(m(r,b)){if(s){T[b]=(0,d.isFile)(r)&&b==="comments"?maybeCloneComments(r.comments,s,l,y):cloneIfNodeOrArray(r[b],true,l,y)}else{T[b]=r[b]}}}}if(m(r,"loc")){if(l){T.loc=null}else{T.loc=r.loc}}if(m(r,"leadingComments")){T.leadingComments=maybeCloneComments(r.leadingComments,s,l,y)}if(m(r,"innerComments")){T.innerComments=maybeCloneComments(r.innerComments,s,l,y)}if(m(r,"trailingComments")){T.trailingComments=maybeCloneComments(r.trailingComments,s,l,y)}if(m(r,"extra")){T.extra=Object.assign({},r.extra)}return T}function maybeCloneComments(r,s,l,p){if(!r||!s){return r}return r.map((r=>{const s=p.get(r);if(s)return s;const{type:d,value:m,loc:y}=r;const g={type:d,value:m,loc:y};if(l){g.loc=null}p.set(r,g);return g}))}},6459:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=cloneWithoutLoc;var p=l(6078);function cloneWithoutLoc(r){return(0,p.default)(r,false,true)}},2201:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=addComment;var p=l(2924);function addComment(r,s,l,d){return(0,p.default)(r,s,[{type:d?"CommentLine":"CommentBlock",value:l}])}},2924:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=addComments;function addComments(r,s,l){if(!l||!r)return r;const p=`${s}Comments`;if(r[p]){if(s==="leading"){r[p]=l.concat(r[p])}else{r[p].push(...l)}}else{r[p]=l}return r}},5114:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=inheritInnerComments;var p=l(9859);function inheritInnerComments(r,s){(0,p.default)("innerComments",r,s)}},5704:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=inheritLeadingComments;var p=l(9859);function inheritLeadingComments(r,s){(0,p.default)("leadingComments",r,s)}},9516:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=inheritTrailingComments;var p=l(9859);function inheritTrailingComments(r,s){(0,p.default)("trailingComments",r,s)}},4427:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=inheritsComments;var p=l(9516);var d=l(5704);var m=l(5114);function inheritsComments(r,s){(0,p.default)(r,s);(0,d.default)(r,s);(0,m.default)(r,s);return r}},1587:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=removeComments;var p=l(8900);function removeComments(r){p.COMMENT_KEYS.forEach((s=>{r[s]=null}));return r}},2402:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.WHILE_TYPES=s.USERWHITESPACABLE_TYPES=s.UNARYLIKE_TYPES=s.TYPESCRIPT_TYPES=s.TSTYPE_TYPES=s.TSTYPEELEMENT_TYPES=s.TSENTITYNAME_TYPES=s.TSBASETYPE_TYPES=s.TERMINATORLESS_TYPES=s.STATEMENT_TYPES=s.STANDARDIZED_TYPES=s.SCOPABLE_TYPES=s.PUREISH_TYPES=s.PROPERTY_TYPES=s.PRIVATE_TYPES=s.PATTERN_TYPES=s.PATTERNLIKE_TYPES=s.OBJECTMEMBER_TYPES=s.MODULESPECIFIER_TYPES=s.MODULEDECLARATION_TYPES=s.MISCELLANEOUS_TYPES=s.METHOD_TYPES=s.LVAL_TYPES=s.LOOP_TYPES=s.LITERAL_TYPES=s.JSX_TYPES=s.IMPORTOREXPORTDECLARATION_TYPES=s.IMMUTABLE_TYPES=s.FUNCTION_TYPES=s.FUNCTIONPARENT_TYPES=s.FUNCTIONPARAMETER_TYPES=s.FOR_TYPES=s.FORXSTATEMENT_TYPES=s.FLOW_TYPES=s.FLOWTYPE_TYPES=s.FLOWPREDICATE_TYPES=s.FLOWDECLARATION_TYPES=s.FLOWBASEANNOTATION_TYPES=s.EXPRESSION_TYPES=s.EXPRESSIONWRAPPER_TYPES=s.EXPORTDECLARATION_TYPES=s.ENUMMEMBER_TYPES=s.ENUMBODY_TYPES=s.DECLARATION_TYPES=s.CONDITIONAL_TYPES=s.COMPLETIONSTATEMENT_TYPES=s.CLASS_TYPES=s.BLOCK_TYPES=s.BLOCKPARENT_TYPES=s.BINARY_TYPES=s.ACCESSOR_TYPES=void 0;var p=l(8723);const d=s.STANDARDIZED_TYPES=p.FLIPPED_ALIAS_KEYS["Standardized"];const m=s.EXPRESSION_TYPES=p.FLIPPED_ALIAS_KEYS["Expression"];const y=s.BINARY_TYPES=p.FLIPPED_ALIAS_KEYS["Binary"];const g=s.SCOPABLE_TYPES=p.FLIPPED_ALIAS_KEYS["Scopable"];const T=s.BLOCKPARENT_TYPES=p.FLIPPED_ALIAS_KEYS["BlockParent"];const b=s.BLOCK_TYPES=p.FLIPPED_ALIAS_KEYS["Block"];const E=s.STATEMENT_TYPES=p.FLIPPED_ALIAS_KEYS["Statement"];const S=s.TERMINATORLESS_TYPES=p.FLIPPED_ALIAS_KEYS["Terminatorless"];const _=s.COMPLETIONSTATEMENT_TYPES=p.FLIPPED_ALIAS_KEYS["CompletionStatement"];const x=s.CONDITIONAL_TYPES=p.FLIPPED_ALIAS_KEYS["Conditional"];const w=s.LOOP_TYPES=p.FLIPPED_ALIAS_KEYS["Loop"];const v=s.WHILE_TYPES=p.FLIPPED_ALIAS_KEYS["While"];const A=s.EXPRESSIONWRAPPER_TYPES=p.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];const P=s.FOR_TYPES=p.FLIPPED_ALIAS_KEYS["For"];const k=s.FORXSTATEMENT_TYPES=p.FLIPPED_ALIAS_KEYS["ForXStatement"];const C=s.FUNCTION_TYPES=p.FLIPPED_ALIAS_KEYS["Function"];const I=s.FUNCTIONPARENT_TYPES=p.FLIPPED_ALIAS_KEYS["FunctionParent"];const O=s.PUREISH_TYPES=p.FLIPPED_ALIAS_KEYS["Pureish"];const N=s.DECLARATION_TYPES=p.FLIPPED_ALIAS_KEYS["Declaration"];const L=s.FUNCTIONPARAMETER_TYPES=p.FLIPPED_ALIAS_KEYS["FunctionParameter"];const D=s.PATTERNLIKE_TYPES=p.FLIPPED_ALIAS_KEYS["PatternLike"];const R=s.LVAL_TYPES=p.FLIPPED_ALIAS_KEYS["LVal"];const M=s.TSENTITYNAME_TYPES=p.FLIPPED_ALIAS_KEYS["TSEntityName"];const F=s.LITERAL_TYPES=p.FLIPPED_ALIAS_KEYS["Literal"];const B=s.IMMUTABLE_TYPES=p.FLIPPED_ALIAS_KEYS["Immutable"];const j=s.USERWHITESPACABLE_TYPES=p.FLIPPED_ALIAS_KEYS["UserWhitespacable"];const $=s.METHOD_TYPES=p.FLIPPED_ALIAS_KEYS["Method"];const U=s.OBJECTMEMBER_TYPES=p.FLIPPED_ALIAS_KEYS["ObjectMember"];const G=s.PROPERTY_TYPES=p.FLIPPED_ALIAS_KEYS["Property"];const q=s.UNARYLIKE_TYPES=p.FLIPPED_ALIAS_KEYS["UnaryLike"];const W=s.PATTERN_TYPES=p.FLIPPED_ALIAS_KEYS["Pattern"];const H=s.CLASS_TYPES=p.FLIPPED_ALIAS_KEYS["Class"];const V=s.IMPORTOREXPORTDECLARATION_TYPES=p.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"];const K=s.EXPORTDECLARATION_TYPES=p.FLIPPED_ALIAS_KEYS["ExportDeclaration"];const z=s.MODULESPECIFIER_TYPES=p.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];const Y=s.ACCESSOR_TYPES=p.FLIPPED_ALIAS_KEYS["Accessor"];const J=s.PRIVATE_TYPES=p.FLIPPED_ALIAS_KEYS["Private"];const X=s.FLOW_TYPES=p.FLIPPED_ALIAS_KEYS["Flow"];const Q=s.FLOWTYPE_TYPES=p.FLIPPED_ALIAS_KEYS["FlowType"];const Z=s.FLOWBASEANNOTATION_TYPES=p.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];const ee=s.FLOWDECLARATION_TYPES=p.FLIPPED_ALIAS_KEYS["FlowDeclaration"];const te=s.FLOWPREDICATE_TYPES=p.FLIPPED_ALIAS_KEYS["FlowPredicate"];const re=s.ENUMBODY_TYPES=p.FLIPPED_ALIAS_KEYS["EnumBody"];const se=s.ENUMMEMBER_TYPES=p.FLIPPED_ALIAS_KEYS["EnumMember"];const ne=s.JSX_TYPES=p.FLIPPED_ALIAS_KEYS["JSX"];const ie=s.MISCELLANEOUS_TYPES=p.FLIPPED_ALIAS_KEYS["Miscellaneous"];const ae=s.TYPESCRIPT_TYPES=p.FLIPPED_ALIAS_KEYS["TypeScript"];const oe=s.TSTYPEELEMENT_TYPES=p.FLIPPED_ALIAS_KEYS["TSTypeElement"];const le=s.TSTYPE_TYPES=p.FLIPPED_ALIAS_KEYS["TSType"];const ce=s.TSBASETYPE_TYPES=p.FLIPPED_ALIAS_KEYS["TSBaseType"];const ue=s.MODULEDECLARATION_TYPES=V},8900:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.UPDATE_OPERATORS=s.UNARY_OPERATORS=s.STRING_UNARY_OPERATORS=s.STATEMENT_OR_BLOCK_KEYS=s.NUMBER_UNARY_OPERATORS=s.NUMBER_BINARY_OPERATORS=s.LOGICAL_OPERATORS=s.INHERIT_KEYS=s.FOR_INIT_KEYS=s.FLATTENABLE_KEYS=s.EQUALITY_BINARY_OPERATORS=s.COMPARISON_BINARY_OPERATORS=s.COMMENT_KEYS=s.BOOLEAN_UNARY_OPERATORS=s.BOOLEAN_NUMBER_BINARY_OPERATORS=s.BOOLEAN_BINARY_OPERATORS=s.BINARY_OPERATORS=s.ASSIGNMENT_OPERATORS=void 0;const l=s.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];const p=s.FLATTENABLE_KEYS=["body","expressions"];const d=s.FOR_INIT_KEYS=["left","init"];const m=s.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const y=s.LOGICAL_OPERATORS=["||","&&","??"];const g=s.UPDATE_OPERATORS=["++","--"];const T=s.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="];const b=s.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="];const E=s.COMPARISON_BINARY_OPERATORS=[...b,"in","instanceof"];const S=s.BOOLEAN_BINARY_OPERATORS=[...E,...T];const _=s.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];const x=s.BINARY_OPERATORS=["+",..._,...S,"|>"];const w=s.ASSIGNMENT_OPERATORS=["=","+=",..._.map((r=>r+"=")),...y.map((r=>r+"="))];const v=s.BOOLEAN_UNARY_OPERATORS=["delete","!"];const A=s.NUMBER_UNARY_OPERATORS=["+","-","~"];const P=s.STRING_UNARY_OPERATORS=["typeof"];const k=s.UNARY_OPERATORS=["void","throw",...v,...A,...P];const C=s.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};{s.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");s.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")}},9705:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=ensureBlock;var p=l(4512);function ensureBlock(r,s="body"){const l=(0,p.default)(r[s],r);r[s]=l;return l}},1567:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=gatherSequenceExpressions;var p=l(639);var d=l(3370);var m=l(7821);var y=l(1707);var g=l(6078);function gatherSequenceExpressions(r,s){const l=[];let T=true;for(const b of r){if(!(0,d.isEmptyStatement)(b)){T=false}if((0,d.isExpression)(b)){l.push(b)}else if((0,d.isExpressionStatement)(b)){l.push(b.expression)}else if((0,d.isVariableDeclaration)(b)){if(b.kind!=="var")return;for(const r of b.declarations){const d=(0,p.default)(r);for(const r of Object.keys(d)){s.push({kind:b.kind,id:(0,g.default)(d[r])})}if(r.init){l.push((0,m.assignmentExpression)("=",r.id,r.init))}}T=true}else if((0,d.isIfStatement)(b)){const r=b.consequent?gatherSequenceExpressions([b.consequent],s):(0,y.buildUndefinedNode)();const p=b.alternate?gatherSequenceExpressions([b.alternate],s):(0,y.buildUndefinedNode)();if(!r||!p)return;l.push((0,m.conditionalExpression)(b.test,r,p))}else if((0,d.isBlockStatement)(b)){const r=gatherSequenceExpressions(b.body,s);if(!r)return;l.push(r)}else if((0,d.isEmptyStatement)(b)){if(r.indexOf(b)===0){T=true}}else{return}}if(T){l.push((0,y.buildUndefinedNode)())}if(l.length===1){return l[0]}else{return(0,m.sequenceExpression)(l)}}},1080:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=toBindingIdentifierName;var p=l(8950);function toBindingIdentifierName(r){r=(0,p.default)(r);if(r==="eval"||r==="arguments")r="_"+r;return r}},4512:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=toBlock;var p=l(3370);var d=l(7821);function toBlock(r,s){if((0,p.isBlockStatement)(r)){return r}let l=[];if((0,p.isEmptyStatement)(r)){l=[]}else{if(!(0,p.isStatement)(r)){if((0,p.isFunction)(s)){r=(0,d.returnStatement)(r)}else{r=(0,d.expressionStatement)(r)}}l=[r]}return(0,d.blockStatement)(l)}},8395:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=toComputedKey;var p=l(3370);var d=l(7821);function toComputedKey(r,s=r.key||r.property){if(!r.computed&&(0,p.isIdentifier)(s))s=(0,d.stringLiteral)(s.name);return s}},939:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(3370);var d=s["default"]=toExpression;function toExpression(r){if((0,p.isExpressionStatement)(r)){r=r.expression}if((0,p.isExpression)(r)){return r}if((0,p.isClass)(r)){r.type="ClassExpression";r.abstract=false}else if((0,p.isFunction)(r)){r.type="FunctionExpression"}if(!(0,p.isExpression)(r)){throw new Error(`cannot turn ${r.type} to an expression`)}return r}},8950:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=toIdentifier;var p=l(1017);var d=l(2530);function toIdentifier(r){r=r+"";let s="";for(const l of r){s+=(0,d.isIdentifierChar)(l.codePointAt(0))?l:"-"}s=s.replace(/^[-0-9]+/,"");s=s.replace(/[-\s]+(.)?/g,(function(r,s){return s?s.toUpperCase():""}));if(!(0,p.default)(s)){s=`_${s}`}return s||"_"}},460:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=toKeyAlias;var p=l(3370);var d=l(6078);var m=l(7865);function toKeyAlias(r,s=r.key){let l;if(r.kind==="method"){return toKeyAlias.increment()+""}else if((0,p.isIdentifier)(s)){l=s.name}else if((0,p.isStringLiteral)(s)){l=JSON.stringify(s.value)}else{l=JSON.stringify((0,m.default)((0,d.default)(s)))}if(r.computed){l=`[${l}]`}if(r.static){l=`static:${l}`}return l}toKeyAlias.uid=0;toKeyAlias.increment=function(){if(toKeyAlias.uid>=Number.MAX_SAFE_INTEGER){return toKeyAlias.uid=0}else{return toKeyAlias.uid++}}},5562:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=toSequenceExpression;var p=l(1567);function toSequenceExpression(r,s){if(!(r!=null&&r.length))return;const l=[];const d=(0,p.default)(r,l);if(!d)return;for(const r of l){s.push(r)}return d}},1036:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(3370);var d=l(7821);var m=s["default"]=toStatement;function toStatement(r,s){if((0,p.isStatement)(r)){return r}let l=false;let m;if((0,p.isClass)(r)){l=true;m="ClassDeclaration"}else if((0,p.isFunction)(r)){l=true;m="FunctionDeclaration"}else if((0,p.isAssignmentExpression)(r)){return(0,d.expressionStatement)(r)}if(l&&!r.id){m=false}if(!m){if(s){return false}else{throw new Error(`cannot turn ${r.type} to a statement`)}}r.type=m;return r}},1994:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(1017);var d=l(7821);var m=s["default"]=valueToNode;const y=Function.call.bind(Object.prototype.toString);function isRegExp(r){return y(r)==="[object RegExp]"}function isPlainObject(r){if(typeof r!=="object"||r===null||Object.prototype.toString.call(r)!=="[object Object]"){return false}const s=Object.getPrototypeOf(r);return s===null||Object.getPrototypeOf(s)===null}function valueToNode(r){if(r===undefined){return(0,d.identifier)("undefined")}if(r===true||r===false){return(0,d.booleanLiteral)(r)}if(r===null){return(0,d.nullLiteral)()}if(typeof r==="string"){return(0,d.stringLiteral)(r)}if(typeof r==="number"){let s;if(Number.isFinite(r)){s=(0,d.numericLiteral)(Math.abs(r))}else{let l;if(Number.isNaN(r)){l=(0,d.numericLiteral)(0)}else{l=(0,d.numericLiteral)(1)}s=(0,d.binaryExpression)("/",l,(0,d.numericLiteral)(0))}if(r<0||Object.is(r,-0)){s=(0,d.unaryExpression)("-",s)}return s}if(typeof r==="bigint"){if(r<0){return(0,d.unaryExpression)("-",(0,d.bigIntLiteral)(-r))}else{return(0,d.bigIntLiteral)(r)}}if(isRegExp(r)){const s=r.source;const l=/\/([a-z]*)$/.exec(r.toString())[1];return(0,d.regExpLiteral)(s,l)}if(Array.isArray(r)){return(0,d.arrayExpression)(r.map(valueToNode))}if(isPlainObject(r)){const s=[];for(const l of Object.keys(r)){let m,y=false;if((0,p.default)(l)){if(l==="__proto__"){y=true;m=(0,d.stringLiteral)(l)}else{m=(0,d.identifier)(l)}}else{m=(0,d.stringLiteral)(l)}s.push((0,d.objectProperty)(m,valueToNode(r[l]),y))}return(0,d.objectExpression)(s)}throw new Error("don't know how to turn this value into a node")}},9324:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.patternLikeCommon=s.importAttributes=s.functionTypeAnnotationCommon=s.functionDeclarationCommon=s.functionCommon=s.classMethodOrPropertyCommon=s.classMethodOrDeclareMethodCommon=void 0;var p=l(3762);var d=l(1017);var m=l(2530);var y=l(8183);var g=l(8900);var T=l(6286);const b=(0,T.defineAliasedType)("Standardized");b("ArrayExpression",{fields:{elements:{validate:(0,T.arrayOf)((0,T.assertNodeOrValueType)("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:undefined}},visitor:["elements"],aliases:["Expression"]});b("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertValueType)("string"):Object.assign(function(){const r=(0,T.assertOneOf)(...g.ASSIGNMENT_OPERATORS);const s=(0,T.assertOneOf)("=");return function(l,d,m){const y=(0,p.default)("Pattern",l.left)?s:r;y(l,d,m)}}(),{oneOf:g.ASSIGNMENT_OPERATORS})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertNodeType)("LVal","OptionalMemberExpression"):(0,T.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,T.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});b("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,T.assertOneOf)(...g.BINARY_OPERATORS)},left:{validate:function(){const r=(0,T.assertNodeType)("Expression");const s=(0,T.assertNodeType)("Expression","PrivateName");const l=Object.assign((function(l,p,d){const m=l.operator==="in"?s:r;m(l,p,d)}),{oneOfNodeTypes:["Expression","PrivateName"]});return l}()},right:{validate:(0,T.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});b("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,T.assertValueType)("string")}}});b("Directive",{visitor:["value"],fields:{value:{validate:(0,T.assertNodeType)("DirectiveLiteral")}}});b("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,T.assertValueType)("string")}}});b("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,T.arrayOfType)("Directive"),default:[]},body:(0,T.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});b("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,T.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});b("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,T.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,T.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,T.assertNodeType)("TypeParameterInstantiation"),optional:true}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,T.assertValueType)("boolean"),optional:true},typeParameters:{validate:(0,T.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});b("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,T.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:true},body:{validate:(0,T.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});b("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,T.assertNodeType)("Expression")},consequent:{validate:(0,T.assertNodeType)("Expression")},alternate:{validate:(0,T.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});b("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,T.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});b("DebuggerStatement",{aliases:["Statement"]});b("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,T.assertNodeType)("Expression")},body:{validate:(0,T.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});b("EmptyStatement",{aliases:["Statement"]});b("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,T.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});b("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,T.assertNodeType)("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):(0,T.assertEach)((0,T.assertNodeType)("CommentBlock","CommentLine")),optional:true},tokens:{validate:(0,T.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:true}}});b("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertNodeType)("VariableDeclaration","LVal"):(0,T.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,T.assertNodeType)("Expression")},body:{validate:(0,T.assertNodeType)("Statement")}}});b("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,T.assertNodeType)("VariableDeclaration","Expression"),optional:true},test:{validate:(0,T.assertNodeType)("Expression"),optional:true},update:{validate:(0,T.assertNodeType)("Expression"),optional:true},body:{validate:(0,T.assertNodeType)("Statement")}}});const functionCommon=()=>({params:(0,T.validateArrayOfType)("FunctionParameter"),generator:{default:false},async:{default:false}});s.functionCommon=functionCommon;const functionTypeAnnotationCommon=()=>({returnType:{validate:(0,T.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0,T.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true}});s.functionTypeAnnotationCommon=functionTypeAnnotationCommon;const functionDeclarationCommon=()=>Object.assign({},functionCommon(),{declare:{validate:(0,T.assertValueType)("boolean"),optional:true},id:{validate:(0,T.assertNodeType)("Identifier"),optional:true}});s.functionDeclarationCommon=functionDeclarationCommon;b("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},functionDeclarationCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,T.assertNodeType)("BlockStatement")},predicate:{validate:(0,T.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const r=(0,T.assertNodeType)("Identifier");return function(s,l,d){if(!(0,p.default)("ExportDefaultDeclaration",s)){r(d,"id",d.id)}}}()});b("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{id:{validate:(0,T.assertNodeType)("Identifier"),optional:true},body:{validate:(0,T.assertNodeType)("BlockStatement")},predicate:{validate:(0,T.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});const patternLikeCommon=()=>({typeAnnotation:{validate:(0,T.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},optional:{validate:(0,T.assertValueType)("boolean"),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true}});s.patternLikeCommon=patternLikeCommon;b("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},patternLikeCommon(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertValueType)("string"),Object.assign((function(r,s,l){if(!(0,d.default)(l,false)){throw new TypeError(`"${l}" is not a valid identifier name`)}}),{type:"string"})):(0,T.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(r,s,l){const d=/\.(\w+)$/.exec(s.toString());if(!d)return;const[,y]=d;const g={computed:false};if(y==="property"){if((0,p.default)("MemberExpression",r,g))return;if((0,p.default)("OptionalMemberExpression",r,g))return}else if(y==="key"){if((0,p.default)("Property",r,g))return;if((0,p.default)("Method",r,g))return}else if(y==="exported"){if((0,p.default)("ExportSpecifier",r))return}else if(y==="imported"){if((0,p.default)("ImportSpecifier",r,{imported:l}))return}else if(y==="meta"){if((0,p.default)("MetaProperty",r,{meta:l}))return}if(((0,m.isKeyword)(l.name)||(0,m.isReservedWord)(l.name,false))&&l.name!=="this"){throw new TypeError(`"${l.name}" is not a valid identifier`)}}:undefined});b("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,T.assertNodeType)("Expression")},consequent:{validate:(0,T.assertNodeType)("Statement")},alternate:{optional:true,validate:(0,T.assertNodeType)("Statement")}}});b("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,T.assertNodeType)("Identifier")},body:{validate:(0,T.assertNodeType)("Statement")}}});b("StringLiteral",{builder:["value"],fields:{value:{validate:(0,T.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});b("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,T.chain)((0,T.assertValueType)("number"),Object.assign((function(r,s,l){if(1/l<0||!Number.isFinite(l)){const r=new Error("NumericLiterals must be non-negative finite numbers. "+`You can use t.valueToNode(${l}) instead.`);{}}}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});b("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});b("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,T.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});b("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,T.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertValueType)("string"),Object.assign((function(r,s,l){const p=/[^dgimsuvy]/.exec(l);if(p){throw new TypeError(`"${p[0]}" is not a valid RegExp flag`)}}),{type:"string"})):(0,T.assertValueType)("string"),default:""}}});b("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,T.assertOneOf)(...g.LOGICAL_OPERATORS)},left:{validate:(0,T.assertNodeType)("Expression")},right:{validate:(0,T.assertNodeType)("Expression")}}});b("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,T.assertNodeType)("Expression","Super")},property:{validate:function(){const r=(0,T.assertNodeType)("Identifier","PrivateName");const s=(0,T.assertNodeType)("Expression");const validator=function(l,p,d){const m=l.computed?s:r;m(l,p,d)};validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"];return validator}()},computed:{default:false}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,T.assertValueType)("boolean"),optional:true}}:{})});b("NewExpression",{inherits:"CallExpression"});b("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,T.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,T.assertNodeType)("InterpreterDirective"),default:null,optional:true},directives:{validate:(0,T.arrayOfType)("Directive"),default:[]},body:(0,T.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});b("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,T.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});b("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{kind:Object.assign({validate:(0,T.assertOneOf)("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:false},key:{validate:function(){const r=(0,T.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral");const s=(0,T.assertNodeType)("Expression");const validator=function(l,p,d){const m=l.computed?s:r;m(l,p,d)};validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"];return validator}()},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true},body:{validate:(0,T.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});b("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:false},key:{validate:function(){const r=(0,T.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName");const s=(0,T.assertNodeType)("Expression");const l=Object.assign((function(l,p,d){const m=l.computed?s:r;m(l,p,d)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]});return l}()},value:{validate:(0,T.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertValueType)("boolean"),Object.assign((function(r,s,l){if(!l)return;if(r.computed){throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}if(!(0,p.default)("Identifier",r.key)){throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}}),{type:"boolean"})):(0,T.assertValueType)("boolean"),default:false},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const r=(0,T.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion");const s=(0,T.assertNodeType)("Expression");return function(l,d,m){const y=(0,p.default)("ObjectPattern",l)?r:s;y(m,"value",m.value)}}()});b("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},patternLikeCommon(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern"):(0,T.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(r,s){const l=/(\w+)\[(\d+)\]/.exec(s.toString());if(!l)throw new Error("Internal Babel error: malformed key.");const[,p,d]=l;if(r[p].length>+d+1){throw new TypeError(`RestElement must be last element of ${p}`)}}:undefined});b("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,T.assertNodeType)("Expression"),optional:true}}});b("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,T.validateArrayOfType)("Expression")},aliases:["Expression"]});b("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,T.assertNodeType)("Expression")}}});b("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,T.assertNodeType)("Expression"),optional:true},consequent:(0,T.validateArrayOfType)("Statement")}});b("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,T.assertNodeType)("Expression")},cases:(0,T.validateArrayOfType)("SwitchCase")}});b("ThisExpression",{aliases:["Expression"]});b("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,T.assertNodeType)("Expression")}}});b("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertNodeType)("BlockStatement"),Object.assign((function(r){if(!r.handler&&!r.finalizer){throw new TypeError("TryStatement expects either a handler or finalizer, or both")}}),{oneOfNodeTypes:["BlockStatement"]})):(0,T.assertNodeType)("BlockStatement")},handler:{optional:true,validate:(0,T.assertNodeType)("CatchClause")},finalizer:{optional:true,validate:(0,T.assertNodeType)("BlockStatement")}}});b("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:true},argument:{validate:(0,T.assertNodeType)("Expression")},operator:{validate:(0,T.assertOneOf)(...g.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});b("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:false},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertNodeType)("Expression"):(0,T.assertNodeType)("Identifier","MemberExpression")},operator:{validate:(0,T.assertOneOf)(...g.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});b("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,T.assertValueType)("boolean"),optional:true},kind:{validate:(0,T.assertOneOf)("var","let","const","using","await using")},declarations:(0,T.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const r=(0,T.assertNodeType)("Identifier","Placeholder");const s=(0,T.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder");const l=(0,T.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(d,m,y){const{kind:g,declarations:T}=y;const b=(0,p.default)("ForXStatement",d,{left:y});if(b){if(T.length!==1){throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${d.type}`)}}for(const p of T){if(g==="const"||g==="let"||g==="var"){if(!b&&!p.init){r(p,"id",p.id)}else{s(p,"id",p.id)}}else{l(p,"id",p.id)}}}})():undefined});b("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertNodeType)("LVal","VoidPattern"):(0,T.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:true,validate:(0,T.assertValueType)("boolean")},init:{optional:true,validate:(0,T.assertNodeType)("Expression")}}});b("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,T.assertNodeType)("Expression")},body:{validate:(0,T.assertNodeType)("Statement")}}});b("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,T.assertNodeType)("Expression")},body:{validate:(0,T.assertNodeType)("Statement")}}});b("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{left:{validate:(0,T.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,T.assertNodeType)("Expression")},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true}})});b("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{elements:{validate:(0,T.chain)((0,T.assertValueType)("array"),(0,T.assertEach)((0,T.assertNodeOrValueType)("null","PatternLike")))}})});b("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{expression:{validate:(0,T.assertValueType)("boolean")},body:{validate:(0,T.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,T.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});b("ClassBody",{visitor:["body"],fields:{body:(0,T.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});b("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,T.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0,T.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0,T.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,T.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,T.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0,T.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0,T.assertNodeType)("InterfaceExtends"),optional:true}}});b("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,T.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0,T.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0,T.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,T.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,T.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0,T.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0,T.assertNodeType)("InterfaceExtends"),optional:true},declare:{validate:(0,T.assertValueType)("boolean"),optional:true},abstract:{validate:(0,T.assertValueType)("boolean"),optional:true}},validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const r=(0,T.assertNodeType)("Identifier");return function(s,l,d){if(!(0,p.default)("ExportDefaultDeclaration",s)){r(d,"id",d.id)}}}()});const E=s.importAttributes={attributes:{optional:true,validate:(0,T.arrayOfType)("ImportAttribute")},assertions:{deprecated:true,optional:true,validate:(0,T.arrayOfType)("ImportAttribute")}};b("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,T.assertNodeType)("StringLiteral")},exportKind:(0,T.validateOptional)((0,T.assertOneOf)("type","value"))},E)});b("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,T.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,T.validateOptional)((0,T.assertOneOf)("value"))}});b("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:true,validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertNodeType)("Declaration"),Object.assign((function(r,s,l){if(l&&r.specifiers.length){throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}if(l&&r.source){throw new TypeError("Cannot export a declaration from a source")}}),{oneOfNodeTypes:["Declaration"]})):(0,T.assertNodeType)("Declaration")}},E,{specifiers:{default:[],validate:(0,T.arrayOf)(function(){const r=(0,T.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier");const s=(0,T.assertNodeType)("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return r;return Object.assign((function(l,p,d){const m=l.source?r:s;m(l,p,d)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:(0,T.assertNodeType)("StringLiteral"),optional:true},exportKind:(0,T.validateOptional)((0,T.assertOneOf)("type","value"))})});b("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,T.assertNodeType)("Identifier")},exported:{validate:(0,T.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,T.assertOneOf)("type","value"),optional:true}}});b("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING){return(0,T.assertNodeType)("VariableDeclaration","LVal")}const r=(0,T.assertNodeType)("VariableDeclaration");const s=(0,T.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(l,d,m){if((0,p.default)("VariableDeclaration",m)){r(l,d,m)}else{s(l,d,m)}}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,T.assertNodeType)("Expression")},body:{validate:(0,T.assertNodeType)("Statement")},await:{default:false}}});b("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},E,{module:{optional:true,validate:(0,T.assertValueType)("boolean")},phase:{default:null,validate:(0,T.assertOneOf)("source","defer")},specifiers:(0,T.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,T.assertNodeType)("StringLiteral")},importKind:{validate:(0,T.assertOneOf)("type","typeof","value"),optional:true}})});b("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,T.assertNodeType)("Identifier")}}});b("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,T.assertNodeType)("Identifier")}}});b("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,T.assertNodeType)("Identifier")},imported:{validate:(0,T.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,T.assertOneOf)("type","typeof","value"),optional:true}}});b("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,T.assertOneOf)("source","defer")},source:{validate:(0,T.assertNodeType)("Expression")},options:{validate:(0,T.assertNodeType)("Expression"),optional:true}}});b("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertNodeType)("Identifier"),Object.assign((function(r,s,l){let d;switch(l.name){case"function":d="sent";break;case"new":d="target";break;case"import":d="meta";break}if(!(0,p.default)("Identifier",r.property,{name:d})){throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]})):(0,T.assertNodeType)("Identifier")},property:{validate:(0,T.assertNodeType)("Identifier")}}});const classMethodOrPropertyCommon=()=>({abstract:{validate:(0,T.assertValueType)("boolean"),optional:true},accessibility:{validate:(0,T.assertOneOf)("public","private","protected"),optional:true},static:{default:false},override:{default:false},computed:{default:false},optional:{validate:(0,T.assertValueType)("boolean"),optional:true},key:{validate:(0,T.chain)(function(){const r=(0,T.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral");const s=(0,T.assertNodeType)("Expression");return function(l,p,d){const m=l.computed?s:r;m(l,p,d)}}(),(0,T.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});s.classMethodOrPropertyCommon=classMethodOrPropertyCommon;const classMethodOrDeclareMethodCommon=()=>Object.assign({},functionCommon(),classMethodOrPropertyCommon(),{params:(0,T.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,T.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,T.chain)((0,T.assertValueType)("string"),(0,T.assertOneOf)("public","private","protected")),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true}});s.classMethodOrDeclareMethodCommon=classMethodOrDeclareMethodCommon;b("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,T.assertNodeType)("BlockStatement")}})});b("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{properties:(0,T.validateArrayOfType)("RestElement","ObjectProperty")})});b("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,T.assertNodeType)("Expression")}}});b("Super",{aliases:["Expression"]});b("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,T.assertNodeType)("Expression")},quasi:{validate:(0,T.assertNodeType)("TemplateLiteral")},["typeParameters"]:{validate:(0,T.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true}}});b("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,T.chain)((0,T.assertShape)({raw:{validate:(0,T.assertValueType)("string")},cooked:{validate:(0,T.assertValueType)("string"),optional:true}}),(function templateElementCookedValidator(r){const s=r.value.raw;let l=false;const error=()=>{throw new Error("Internal @babel/types error.")};const{str:p,firstInvalidLoc:d}=(0,y.readStringContents)("template",s,0,0,0,{unterminated(){l=true},strictNumericEscape:error,invalidEscapeSequence:error,numericSeparatorInEscapeSequence:error,unexpectedNumericSeparator:error,invalidDigit:error,invalidCodePoint:error});if(!l)throw new Error("Invalid raw");r.value.cooked=d?null:p}))},tail:{default:false}}});b("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,T.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,T.chain)((0,T.assertValueType)("array"),(0,T.assertEach)((0,T.assertNodeType)("Expression","TSType")),(function(r,s,l){if(r.quasis.length!==l.length+1){throw new TypeError(`Number of ${r.type} quasis should be exactly one more than the number of expressions.\nExpected ${l.length+1} quasis but got ${r.quasis.length}`)}}))}}});b("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,T.chain)((0,T.assertValueType)("boolean"),Object.assign((function(r,s,l){if(l&&!r.argument){throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}}),{type:"boolean"})):(0,T.assertValueType)("boolean"),default:false},argument:{optional:true,validate:(0,T.assertNodeType)("Expression")}}});b("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,T.assertNodeType)("Expression")}}});b("Import",{aliases:["Expression"]});b("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,T.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});b("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,T.assertNodeType)("Identifier")}}});b("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,T.assertNodeType)("Expression")},property:{validate:function(){const r=(0,T.assertNodeType)("Identifier");const s=(0,T.assertNodeType)("Expression");const l=Object.assign((function(l,p,d){const m=l.computed?s:r;m(l,p,d)}),{oneOfNodeTypes:["Expression","Identifier"]});return l}()},computed:{default:false},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertValueType)("boolean"):(0,T.chain)((0,T.assertValueType)("boolean"),(0,T.assertOptionalChainStart)())}}});b("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,T.assertNodeType)("Expression")},arguments:(0,T.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,T.assertValueType)("boolean"):(0,T.chain)((0,T.assertValueType)("boolean"),(0,T.assertOptionalChainStart)())},typeArguments:{validate:(0,T.assertNodeType)("TypeParameterInstantiation"),optional:true}},{typeParameters:{validate:(0,T.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});b("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},classMethodOrPropertyCommon(),{value:{validate:(0,T.assertNodeType)("Expression"),optional:true},definite:{validate:(0,T.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0,T.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0,T.assertValueType)("boolean"),optional:true},declare:{validate:(0,T.assertValueType)("boolean"),optional:true},variance:{validate:(0,T.assertNodeType)("Variance"),optional:true}})});b("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},classMethodOrPropertyCommon(),{key:{validate:(0,T.chain)(function(){const r=(0,T.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName");const s=(0,T.assertNodeType)("Expression");return function(l,p,d){const m=l.computed?s:r;m(l,p,d)}}(),(0,T.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,T.assertNodeType)("Expression"),optional:true},definite:{validate:(0,T.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0,T.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0,T.assertValueType)("boolean"),optional:true},declare:{validate:(0,T.assertValueType)("boolean"),optional:true},variance:{validate:(0,T.assertNodeType)("Variance"),optional:true}})});b("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,T.assertNodeType)("PrivateName")},value:{validate:(0,T.assertNodeType)("Expression"),optional:true},typeAnnotation:{validate:(0,T.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,T.arrayOfType)("Decorator"),optional:true},static:{validate:(0,T.assertValueType)("boolean"),default:false},readonly:{validate:(0,T.assertValueType)("boolean"),optional:true},optional:{validate:(0,T.assertValueType)("boolean"),optional:true},definite:{validate:(0,T.assertValueType)("boolean"),optional:true},variance:{validate:(0,T.assertNodeType)("Variance"),optional:true}}});b("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{kind:{validate:(0,T.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,T.assertNodeType)("PrivateName")},body:{validate:(0,T.assertNodeType)("BlockStatement")}})});b("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,T.assertNodeType)("Identifier")}}});b("StaticBlock",{visitor:["body"],fields:{body:(0,T.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});b("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,T.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,T.assertNodeType)("StringLiteral")}}})},1851:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s.DEPRECATED_ALIASES=void 0;const l=s.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},1257:(r,s,l)=>{var p=l(6286);(0,p.default)("ArgumentPlaceholder",{});(0,p.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,p.assertNodeType)("Expression")},callee:{validate:(0,p.assertNodeType)("Expression")}}});(0,p.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}}});(0,p.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,p.assertNodeType)("BlockStatement")},async:{validate:(0,p.assertValueType)("boolean"),default:false}}});(0,p.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,p.assertNodeType)("Identifier")}}});(0,p.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,p.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,p.default)("TupleExpression",{fields:{elements:{validate:(0,p.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});{(0,p.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]})}(0,p.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,p.assertNodeType)("Program")}},aliases:["Expression"]});(0,p.default)("TopicReference",{aliases:["Expression"]});(0,p.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Expression"]});(0,p.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Expression"]});(0,p.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,p.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},247:(r,s,l)=>{var p=l(9324);var d=l(6286);const m=(0,d.defineAliasedType)("Flow");const defineInterfaceishType=r=>{const s=r==="DeclareClass";m(r,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...s?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,d.validateType)("Identifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterDeclaration"),extends:(0,d.validateOptional)((0,d.arrayOfType)("InterfaceExtends"))},s?{mixins:(0,d.validateOptional)((0,d.arrayOfType)("InterfaceExtends")),implements:(0,d.validateOptional)((0,d.arrayOfType)("ClassImplements"))}:{},{body:(0,d.validateType)("ObjectTypeAnnotation")})})};m("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,d.validateType)("FlowType")}});m("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,d.validateType)("Identifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterInstantiation")}});defineInterfaceishType("DeclareClass");m("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier"),predicate:(0,d.validateOptionalType)("DeclaredPredicate")}});defineInterfaceishType("DeclareInterface");m("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier","StringLiteral"),body:(0,d.validateType)("BlockStatement"),kind:(0,d.validateOptional)((0,d.assertOneOf)("CommonJS","ES"))}});m("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,d.validateType)("TypeAnnotation")}});m("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterDeclaration"),right:(0,d.validateType)("FlowType")}});m("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,d.validateOptionalType)("FlowType"),impltype:(0,d.validateOptionalType)("FlowType")}});m("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier")}});m("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,d.validateOptionalType)("Flow"),specifiers:(0,d.validateOptional)((0,d.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,d.validateOptionalType)("StringLiteral"),default:(0,d.validateOptional)((0,d.assertValueType)("boolean"))},p.importAttributes)});m("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,d.validateType)("StringLiteral"),exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value"))},p.importAttributes)});m("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,d.validateType)("Flow")}});m("ExistsTypeAnnotation",{aliases:["FlowType"]});m("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,d.validateOptionalType)("TypeParameterDeclaration"),params:(0,d.validateArrayOfType)("FunctionTypeParam"),rest:(0,d.validateOptionalType)("FunctionTypeParam"),this:(0,d.validateOptionalType)("FunctionTypeParam"),returnType:(0,d.validateType)("FlowType")}});m("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,d.validateOptionalType)("Identifier"),typeAnnotation:(0,d.validateType)("FlowType"),optional:(0,d.validateOptional)((0,d.assertValueType)("boolean"))}});m("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,d.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterInstantiation")}});m("InferredPredicate",{aliases:["FlowPredicate"]});m("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,d.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterInstantiation")}});defineInterfaceishType("InterfaceDeclaration");m("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,d.validateOptional)((0,d.arrayOfType)("InterfaceExtends")),body:(0,d.validateType)("ObjectTypeAnnotation")}});m("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,d.validate)((0,d.arrayOfType)("FlowType"))}});m("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,d.validateType)("FlowType")}});m("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,d.validate)((0,d.assertValueType)("number"))}});m("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,d.validate)((0,d.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,d.arrayOfType)("ObjectTypeIndexer"),optional:true,default:[]},callProperties:{validate:(0,d.arrayOfType)("ObjectTypeCallProperty"),optional:true,default:[]},internalSlots:{validate:(0,d.arrayOfType)("ObjectTypeInternalSlot"),optional:true,default:[]},exact:{validate:(0,d.assertValueType)("boolean"),default:false},inexact:(0,d.validateOptional)((0,d.assertValueType)("boolean"))}});m("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,d.validateType)("Identifier"),value:(0,d.validateType)("FlowType"),optional:(0,d.validate)((0,d.assertValueType)("boolean")),static:(0,d.validate)((0,d.assertValueType)("boolean")),method:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,d.validateType)("FlowType"),static:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,d.validateOptionalType)("Identifier"),key:(0,d.validateType)("FlowType"),value:(0,d.validateType)("FlowType"),static:(0,d.validate)((0,d.assertValueType)("boolean")),variance:(0,d.validateOptionalType)("Variance")}});m("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,d.validateType)("Identifier","StringLiteral"),value:(0,d.validateType)("FlowType"),kind:(0,d.validate)((0,d.assertOneOf)("init","get","set")),static:(0,d.validate)((0,d.assertValueType)("boolean")),proto:(0,d.validate)((0,d.assertValueType)("boolean")),optional:(0,d.validate)((0,d.assertValueType)("boolean")),variance:(0,d.validateOptionalType)("Variance"),method:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,d.validateType)("FlowType")}});m("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,d.validateOptionalType)("FlowType"),impltype:(0,d.validateType)("FlowType")}});m("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,d.validateType)("Identifier"),qualification:(0,d.validateType)("Identifier","QualifiedTypeIdentifier")}});m("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,d.validate)((0,d.assertValueType)("string"))}});m("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,d.validate)((0,d.arrayOfType)("FlowType"))}});m("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,d.validateType)("FlowType")}});m("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,d.validateType)("Identifier"),typeParameters:(0,d.validateOptionalType)("TypeParameterDeclaration"),right:(0,d.validateType)("FlowType")}});m("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,d.validateType)("FlowType")}});m("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,d.validateType)("Expression"),typeAnnotation:(0,d.validateType)("TypeAnnotation")}});m("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,d.validate)((0,d.assertValueType)("string")),bound:(0,d.validateOptionalType)("TypeAnnotation"),default:(0,d.validateOptionalType)("FlowType"),variance:(0,d.validateOptionalType)("Variance")}});m("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,d.validate)((0,d.arrayOfType)("TypeParameter"))}});m("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,d.validate)((0,d.arrayOfType)("FlowType"))}});m("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,d.validate)((0,d.arrayOfType)("FlowType"))}});m("Variance",{builder:["kind"],fields:{kind:(0,d.validate)((0,d.assertOneOf)("minus","plus"))}});m("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});m("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,d.validateType)("Identifier"),body:(0,d.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});m("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,d.validate)((0,d.assertValueType)("boolean")),members:(0,d.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,d.validate)((0,d.assertValueType)("boolean")),members:(0,d.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,d.validate)((0,d.assertValueType)("boolean")),members:(0,d.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,d.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,d.validate)((0,d.assertValueType)("boolean"))}});m("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,d.validateType)("Identifier"),init:(0,d.validateType)("BooleanLiteral")}});m("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,d.validateType)("Identifier"),init:(0,d.validateType)("NumericLiteral")}});m("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,d.validateType)("Identifier"),init:(0,d.validateType)("StringLiteral")}});m("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,d.validateType)("Identifier")}});m("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,d.validateType)("FlowType"),indexType:(0,d.validateType)("FlowType")}});m("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,d.validateType)("FlowType"),indexType:(0,d.validateType)("FlowType"),optional:(0,d.validate)((0,d.assertValueType)("boolean"))}})},8723:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});Object.defineProperty(s,"ALIAS_KEYS",{enumerable:true,get:function(){return p.ALIAS_KEYS}});Object.defineProperty(s,"BUILDER_KEYS",{enumerable:true,get:function(){return p.BUILDER_KEYS}});Object.defineProperty(s,"DEPRECATED_ALIASES",{enumerable:true,get:function(){return m.DEPRECATED_ALIASES}});Object.defineProperty(s,"DEPRECATED_KEYS",{enumerable:true,get:function(){return p.DEPRECATED_KEYS}});Object.defineProperty(s,"FLIPPED_ALIAS_KEYS",{enumerable:true,get:function(){return p.FLIPPED_ALIAS_KEYS}});Object.defineProperty(s,"NODE_FIELDS",{enumerable:true,get:function(){return p.NODE_FIELDS}});Object.defineProperty(s,"NODE_PARENT_VALIDATIONS",{enumerable:true,get:function(){return p.NODE_PARENT_VALIDATIONS}});Object.defineProperty(s,"PLACEHOLDERS",{enumerable:true,get:function(){return d.PLACEHOLDERS}});Object.defineProperty(s,"PLACEHOLDERS_ALIAS",{enumerable:true,get:function(){return d.PLACEHOLDERS_ALIAS}});Object.defineProperty(s,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:true,get:function(){return d.PLACEHOLDERS_FLIPPED_ALIAS}});s.TYPES=void 0;Object.defineProperty(s,"VISITOR_KEYS",{enumerable:true,get:function(){return p.VISITOR_KEYS}});l(9324);l(247);l(9190);l(2879);l(1257);l(1432);var p=l(6286);var d=l(5749);var m=l(1851);Object.keys(m.DEPRECATED_ALIASES).forEach((r=>{p.FLIPPED_ALIAS_KEYS[r]=p.FLIPPED_ALIAS_KEYS[m.DEPRECATED_ALIASES[r]]}));for(const{types:r,set:s}of p.allExpandedTypes){for(const l of r){const r=p.FLIPPED_ALIAS_KEYS[l];if(r){r.forEach(s.add,s)}else{s.add(l)}}}const y=s.TYPES=[].concat(Object.keys(p.VISITOR_KEYS),Object.keys(p.FLIPPED_ALIAS_KEYS),Object.keys(p.DEPRECATED_KEYS))},9190:(r,s,l)=>{var p=l(6286);const d=(0,p.defineAliasedType)("JSX");d("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,p.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:true,validate:(0,p.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});d("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,p.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});d("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,p.assertNodeType)("JSXOpeningElement")},closingElement:{optional:true,validate:(0,p.assertNodeType)("JSXClosingElement")},children:(0,p.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,p.assertValueType)("boolean"),optional:true}})});d("JSXEmptyExpression",{});d("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,p.assertNodeType)("Expression","JSXEmptyExpression")}}});d("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}}});d("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,p.assertValueType)("string")}}});d("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,p.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,p.assertNodeType)("JSXIdentifier")}}});d("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,p.assertNodeType)("JSXIdentifier")},name:{validate:(0,p.assertNodeType)("JSXIdentifier")}}});d("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,p.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:false},attributes:(0,p.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:true}},{typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});d("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}});d("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}});d("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,p.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,p.assertNodeType)("JSXClosingFragment")},children:(0,p.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});d("JSXOpeningFragment",{aliases:["Immutable"]});d("JSXClosingFragment",{aliases:["Immutable"]})},2879:(r,s,l)=>{var p=l(6286);var d=l(5749);var m=l(9324);const y=(0,p.defineAliasedType)("Miscellaneous");{y("Noop",{visitor:[]})}y("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,p.assertNodeType)("Identifier")},expectedNode:{validate:(0,p.assertOneOf)(...d.PLACEHOLDERS)}},(0,m.patternLikeCommon)())});y("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,p.assertValueType)("string")}}})},5749:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.PLACEHOLDERS_FLIPPED_ALIAS=s.PLACEHOLDERS_ALIAS=s.PLACEHOLDERS=void 0;var p=l(6286);const d=s.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];const m=s.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const r of d){const s=p.ALIAS_KEYS[r];if(s!=null&&s.length)m[r]=s}const y=s.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(m).forEach((r=>{m[r].forEach((s=>{if(!hasOwnProperty.call(y,s)){y[s]=[]}y[s].push(r)}))}))},1432:(r,s,l)=>{var p=l(6286);var d=l(9324);var m=l(3762);const y=(0,p.defineAliasedType)("TypeScript");const g=(0,p.assertValueType)("boolean");const tSFunctionTypeAnnotationCommon=()=>({returnType:{validate:(0,p.assertNodeType)("TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:true}});y("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,p.assertOneOf)("public","private","protected"),optional:true},readonly:{validate:(0,p.assertValueType)("boolean"),optional:true},parameter:{validate:(0,p.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,p.assertValueType)("boolean"),optional:true},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:true}}});y("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,d.functionDeclarationCommon)(),tSFunctionTypeAnnotationCommon())});y("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,d.classMethodOrDeclareMethodCommon)(),tSFunctionTypeAnnotationCommon())});y("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,p.validateType)("TSEntityName"),right:(0,p.validateType)("Identifier")}});const signatureDeclarationCommon=()=>({typeParameters:(0,p.validateOptionalType)("TSTypeParameterDeclaration"),["parameters"]:(0,p.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:(0,p.validateOptionalType)("TSTypeAnnotation")});const T={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:signatureDeclarationCommon()};y("TSCallSignatureDeclaration",T);y("TSConstructSignatureDeclaration",T);const namedTypeElementCommon=()=>({key:(0,p.validateType)("Expression"),computed:{default:false},optional:(0,p.validateOptional)(g)});y("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},namedTypeElementCommon(),{readonly:(0,p.validateOptional)(g),typeAnnotation:(0,p.validateOptionalType)("TSTypeAnnotation"),kind:{optional:true,validate:(0,p.assertOneOf)("get","set")}})});y("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},signatureDeclarationCommon(),namedTypeElementCommon(),{kind:{validate:(0,p.assertOneOf)("method","get","set")}})});y("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,p.validateOptional)(g),static:(0,p.validateOptional)(g),parameters:(0,p.validateArrayOfType)("Identifier"),typeAnnotation:(0,p.validateOptionalType)("TSTypeAnnotation")}});const b=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const r of b){y(r,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}})}y("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const E={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};y("TSFunctionType",Object.assign({},E,{fields:signatureDeclarationCommon()}));y("TSConstructorType",Object.assign({},E,{fields:Object.assign({},signatureDeclarationCommon(),{abstract:(0,p.validateOptional)(g)})}));y("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,p.validateType)("TSEntityName"),["typeParameters"]:(0,p.validateOptionalType)("TSTypeParameterInstantiation")}});y("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,p.validateType)("Identifier","TSThisType"),typeAnnotation:(0,p.validateOptionalType)("TSTypeAnnotation"),asserts:(0,p.validateOptional)(g)}});y("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,p.validateType)("TSEntityName","TSImportType"),["typeParameters"]:(0,p.validateOptionalType)("TSTypeParameterInstantiation")}});y("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,p.validateArrayOfType)("TSTypeElement")}});y("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,p.validateType)("TSType")}});y("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,p.validateArrayOfType)("TSType","TSNamedTupleMember")}});y("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,p.validateType)("TSType")}});y("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,p.validateType)("TSType")}});y("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,p.validateType)("Identifier"),optional:{validate:g,default:false},elementType:(0,p.validateType)("TSType")}});const S={aliases:["TSType"],visitor:["types"],fields:{types:(0,p.validateArrayOfType)("TSType")}};y("TSUnionType",S);y("TSIntersectionType",S);y("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,p.validateType)("TSType"),extendsType:(0,p.validateType)("TSType"),trueType:(0,p.validateType)("TSType"),falseType:(0,p.validateType)("TSType")}});y("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,p.validateType)("TSTypeParameter")}});y("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,p.validateType)("TSType")}});y("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,p.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,p.validateType)("TSType")}});y("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,p.validateType)("TSType"),indexType:(0,p.validateType)("TSType")}});y("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,p.validateType)("TSTypeParameter")},{readonly:(0,p.validateOptional)((0,p.assertOneOf)(true,false,"+","-")),optional:(0,p.validateOptional)((0,p.assertOneOf)(true,false,"+","-")),typeAnnotation:(0,p.validateOptionalType)("TSType"),nameType:(0,p.validateOptionalType)("TSType")})});y("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,p.validateArrayOfType)("TemplateElement"),types:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TSType")),(function(r,s,l){if(r.quasis.length!==l.length+1){throw new TypeError(`Number of ${r.type} quasis should be exactly one more than the number of types.\nExpected ${l.length+1} quasis but got ${r.quasis.length}`)}}))}}});y("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const r=(0,p.assertNodeType)("NumericLiteral","BigIntLiteral");const s=(0,p.assertOneOf)("-");const l=(0,p.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function validator(p,d,y){if((0,m.default)("UnaryExpression",y)){s(y,"operator",y.operator);r(y,"argument",y.argument)}else{l(p,d,y)}}validator.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"];return validator}()}}});{y("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,p.validateType)("TSEntityName"),typeParameters:(0,p.validateOptionalType)("TSTypeParameterInstantiation")}})}y("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,p.validateOptional)(g),id:(0,p.validateType)("Identifier"),typeParameters:(0,p.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,p.validateOptional)((0,p.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,p.validateType)("TSInterfaceBody")}});y("TSInterfaceBody",{visitor:["body"],fields:{body:(0,p.validateArrayOfType)("TSTypeElement")}});y("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,p.validateOptional)(g),id:(0,p.validateType)("Identifier"),typeParameters:(0,p.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,p.validateType)("TSType")}});y("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,p.validateType)("Expression"),["typeParameters"]:(0,p.validateOptionalType)("TSTypeParameterInstantiation")}});const _={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,p.validateType)("Expression"),typeAnnotation:(0,p.validateType)("TSType")}};y("TSAsExpression",_);y("TSSatisfiesExpression",_);y("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,p.validateType)("TSType"),expression:(0,p.validateType)("Expression")}});y("TSEnumBody",{visitor:["members"],fields:{members:(0,p.validateArrayOfType)("TSEnumMember")}});{y("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,p.validateOptional)(g),const:(0,p.validateOptional)(g),id:(0,p.validateType)("Identifier"),members:(0,p.validateArrayOfType)("TSEnumMember"),initializer:(0,p.validateOptionalType)("Expression"),body:(0,p.validateOptionalType)("TSEnumBody")}})}y("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,p.validateType)("Identifier","StringLiteral"),initializer:(0,p.validateOptionalType)("Expression")}});y("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,p.assertOneOf)("global","module","namespace")},declare:(0,p.validateOptional)(g)},{global:(0,p.validateOptional)(g)},{id:(0,p.validateType)("Identifier","StringLiteral"),body:(0,p.validateType)("TSModuleBlock","TSModuleDeclaration")})});y("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,p.validateArrayOfType)("Statement")}});y("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,p.validateType)("StringLiteral"),qualifier:(0,p.validateOptionalType)("TSEntityName"),["typeParameters"]:(0,p.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,p.assertNodeType)("ObjectExpression"),optional:true}}});y("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,p.validate)(g)},{id:(0,p.validateType)("Identifier"),moduleReference:(0,p.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,p.assertOneOf)("type","value"),optional:true}})});y("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,p.validateType)("StringLiteral")}});y("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,p.validateType)("Expression")}});y("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,p.validateType)("Expression")}});y("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,p.validateType)("Identifier")}});y("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,p.assertNodeType)("TSType")}}});y("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,p.validateArrayOfType)("TSType")}});y("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,p.validateArrayOfType)("TSTypeParameter")}});y("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,p.assertValueType)("string")},in:{validate:(0,p.assertValueType)("boolean"),optional:true},out:{validate:(0,p.assertValueType)("boolean"),optional:true},const:{validate:(0,p.assertValueType)("boolean"),optional:true},constraint:{validate:(0,p.assertNodeType)("TSType"),optional:true},default:{validate:(0,p.assertNodeType)("TSType"),optional:true}}})},6286:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.allExpandedTypes=s.VISITOR_KEYS=s.NODE_PARENT_VALIDATIONS=s.NODE_FIELDS=s.FLIPPED_ALIAS_KEYS=s.DEPRECATED_KEYS=s.BUILDER_KEYS=s.ALIAS_KEYS=void 0;s.arrayOf=arrayOf;s.arrayOfType=arrayOfType;s.assertEach=assertEach;s.assertNodeOrValueType=assertNodeOrValueType;s.assertNodeType=assertNodeType;s.assertOneOf=assertOneOf;s.assertOptionalChainStart=assertOptionalChainStart;s.assertShape=assertShape;s.assertValueType=assertValueType;s.chain=chain;s["default"]=defineType;s.defineAliasedType=defineAliasedType;s.validate=validate;s.validateArrayOfType=validateArrayOfType;s.validateOptional=validateOptional;s.validateOptionalType=validateOptionalType;s.validateType=validateType;var p=l(3762);var d=l(1772);const m=s.VISITOR_KEYS={};const y=s.ALIAS_KEYS={};const g=s.FLIPPED_ALIAS_KEYS={};const T=s.NODE_FIELDS={};const b=s.BUILDER_KEYS={};const E=s.DEPRECATED_KEYS={};const S=s.NODE_PARENT_VALIDATIONS={};function getType(r){if(Array.isArray(r)){return"array"}else if(r===null){return"null"}else{return typeof r}}function validate(r){return{validate:r}}function validateType(...r){return validate(assertNodeType(...r))}function validateOptional(r){return{validate:r,optional:true}}function validateOptionalType(...r){return{validate:assertNodeType(...r),optional:true}}function arrayOf(r){return chain(assertValueType("array"),assertEach(r))}function arrayOfType(...r){return arrayOf(assertNodeType(...r))}function validateArrayOfType(...r){return validate(arrayOfType(...r))}function assertEach(r){const s=process.env.BABEL_TYPES_8_BREAKING?d.validateChild:()=>{};function validator(l,p,d){if(!Array.isArray(d))return;let m=0;const y={toString(){return`${p}[${m}]`}};for(;m<d.length;m++){const p=d[m];r(l,y,p);s(l,y,p)}}validator.each=r;return validator}function assertOneOf(...r){function validate(s,l,p){if(!r.includes(p)){throw new TypeError(`Property ${l} expected value to be one of ${JSON.stringify(r)} but got ${JSON.stringify(p)}`)}}validate.oneOf=r;return validate}const _=s.allExpandedTypes=[];function assertNodeType(...r){const s=new Set;_.push({types:r,set:s});function validate(l,m,y){const g=y==null?void 0:y.type;if(g!=null){if(s.has(g)){(0,d.validateChild)(l,m,y);return}if(g==="Placeholder"){for(const s of r){if((0,p.default)(s,y)){(0,d.validateChild)(l,m,y);return}}}}throw new TypeError(`Property ${m} of ${l.type} expected node to be of a type ${JSON.stringify(r)} but instead got ${JSON.stringify(g)}`)}validate.oneOfNodeTypes=r;return validate}function assertNodeOrValueType(...r){function validate(s,l,m){const y=getType(m);for(const g of r){if(y===g||(0,p.default)(g,m)){(0,d.validateChild)(s,l,m);return}}throw new TypeError(`Property ${l} of ${s.type} expected node to be of a type ${JSON.stringify(r)} but instead got ${JSON.stringify(m==null?void 0:m.type)}`)}validate.oneOfNodeOrValueTypes=r;return validate}function assertValueType(r){function validate(s,l,p){if(getType(p)===r){return}throw new TypeError(`Property ${l} expected type of ${r} but got ${getType(p)}`)}validate.type=r;return validate}function assertShape(r){const s=Object.keys(r);function validate(l,p,m){const y=[];for(const p of s){try{(0,d.validateField)(l,p,m[p],r[p])}catch(r){if(r instanceof TypeError){y.push(r.message);continue}throw r}}if(y.length){throw new TypeError(`Property ${p} of ${l.type} expected to have the following:\n${y.join("\n")}`)}}validate.shapeOf=r;return validate}function assertOptionalChainStart(){function validate(r){var s;let l=r;while(r){const{type:r}=l;if(r==="OptionalCallExpression"){if(l.optional)return;l=l.callee;continue}if(r==="OptionalMemberExpression"){if(l.optional)return;l=l.object;continue}break}throw new TypeError(`Non-optional ${r.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(s=l)==null?void 0:s.type}`)}return validate}function chain(...r){function validate(...s){for(const l of r){l(...s)}}validate.chainOf=r;if(r.length>=2&&"type"in r[0]&&r[0].type==="array"&&!("each"in r[1])){throw new Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`)}return validate}const x=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]);const w=new Set(["default","optional","deprecated","validate"]);const v={};function defineAliasedType(...r){return(s,l={})=>{let p=l.aliases;if(!p){var d;if(l.inherits)p=(d=v[l.inherits].aliases)==null?void 0:d.slice();p!=null?p:p=[];l.aliases=p}const m=r.filter((r=>!p.includes(r)));p.unshift(...m);defineType(s,l)}}function defineType(r,s={}){const l=s.inherits&&v[s.inherits]||{};let p=s.fields;if(!p){p={};if(l.fields){const r=Object.getOwnPropertyNames(l.fields);for(const s of r){const r=l.fields[s];const d=r.default;if(Array.isArray(d)?d.length>0:d&&typeof d==="object"){throw new Error("field defaults can only be primitives or empty arrays currently")}p[s]={default:Array.isArray(d)?[]:d,optional:r.optional,deprecated:r.deprecated,validate:r.validate}}}}const d=s.visitor||l.visitor||[];const _=s.aliases||l.aliases||[];const A=s.builder||l.builder||s.visitor||[];for(const l of Object.keys(s)){if(!x.has(l)){throw new Error(`Unknown type option "${l}" on ${r}`)}}if(s.deprecatedAlias){E[s.deprecatedAlias]=r}for(const r of d.concat(A)){p[r]=p[r]||{}}for(const s of Object.keys(p)){const l=p[s];if(l.default!==undefined&&!A.includes(s)){l.optional=true}if(l.default===undefined){l.default=null}else if(!l.validate&&l.default!=null){l.validate=assertValueType(getType(l.default))}for(const p of Object.keys(l)){if(!w.has(p)){throw new Error(`Unknown field key "${p}" on ${r}.${s}`)}}}m[r]=s.visitor=d;b[r]=s.builder=A;T[r]=s.fields=p;y[r]=s.aliases=_;_.forEach((s=>{g[s]=g[s]||[];g[s].push(r)}));if(s.validate){S[r]=s.validate}v[r]=s}},3658:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});var p={react:true,assertNode:true,createTypeAnnotationBasedOnTypeof:true,createUnionTypeAnnotation:true,createFlowUnionType:true,createTSUnionType:true,cloneNode:true,clone:true,cloneDeep:true,cloneDeepWithoutLoc:true,cloneWithoutLoc:true,addComment:true,addComments:true,inheritInnerComments:true,inheritLeadingComments:true,inheritsComments:true,inheritTrailingComments:true,removeComments:true,ensureBlock:true,toBindingIdentifierName:true,toBlock:true,toComputedKey:true,toExpression:true,toIdentifier:true,toKeyAlias:true,toStatement:true,valueToNode:true,appendToMemberExpression:true,inherits:true,prependToMemberExpression:true,removeProperties:true,removePropertiesDeep:true,removeTypeDuplicates:true,getAssignmentIdentifiers:true,getBindingIdentifiers:true,getOuterBindingIdentifiers:true,getFunctionName:true,traverse:true,traverseFast:true,shallowEqual:true,is:true,isBinding:true,isBlockScoped:true,isImmutable:true,isLet:true,isNode:true,isNodesEquivalent:true,isPlaceholderType:true,isReferenced:true,isScope:true,isSpecifierDefault:true,isType:true,isValidES3Identifier:true,isValidIdentifier:true,isVar:true,matchesPattern:true,validate:true,buildMatchMemberExpression:true,__internal__deprecationWarning:true};Object.defineProperty(s,"__internal__deprecationWarning",{enumerable:true,get:function(){return Ae.default}});Object.defineProperty(s,"addComment",{enumerable:true,get:function(){return C.default}});Object.defineProperty(s,"addComments",{enumerable:true,get:function(){return I.default}});Object.defineProperty(s,"appendToMemberExpression",{enumerable:true,get:function(){return z.default}});Object.defineProperty(s,"assertNode",{enumerable:true,get:function(){return g.default}});Object.defineProperty(s,"buildMatchMemberExpression",{enumerable:true,get:function(){return we.default}});Object.defineProperty(s,"clone",{enumerable:true,get:function(){return v.default}});Object.defineProperty(s,"cloneDeep",{enumerable:true,get:function(){return A.default}});Object.defineProperty(s,"cloneDeepWithoutLoc",{enumerable:true,get:function(){return P.default}});Object.defineProperty(s,"cloneNode",{enumerable:true,get:function(){return w.default}});Object.defineProperty(s,"cloneWithoutLoc",{enumerable:true,get:function(){return k.default}});Object.defineProperty(s,"createFlowUnionType",{enumerable:true,get:function(){return E.default}});Object.defineProperty(s,"createTSUnionType",{enumerable:true,get:function(){return S.default}});Object.defineProperty(s,"createTypeAnnotationBasedOnTypeof",{enumerable:true,get:function(){return b.default}});Object.defineProperty(s,"createUnionTypeAnnotation",{enumerable:true,get:function(){return E.default}});Object.defineProperty(s,"ensureBlock",{enumerable:true,get:function(){return B.default}});Object.defineProperty(s,"getAssignmentIdentifiers",{enumerable:true,get:function(){return ee.default}});Object.defineProperty(s,"getBindingIdentifiers",{enumerable:true,get:function(){return te.default}});Object.defineProperty(s,"getFunctionName",{enumerable:true,get:function(){return se.default}});Object.defineProperty(s,"getOuterBindingIdentifiers",{enumerable:true,get:function(){return re.default}});Object.defineProperty(s,"inheritInnerComments",{enumerable:true,get:function(){return O.default}});Object.defineProperty(s,"inheritLeadingComments",{enumerable:true,get:function(){return N.default}});Object.defineProperty(s,"inheritTrailingComments",{enumerable:true,get:function(){return D.default}});Object.defineProperty(s,"inherits",{enumerable:true,get:function(){return Y.default}});Object.defineProperty(s,"inheritsComments",{enumerable:true,get:function(){return L.default}});Object.defineProperty(s,"is",{enumerable:true,get:function(){return oe.default}});Object.defineProperty(s,"isBinding",{enumerable:true,get:function(){return le.default}});Object.defineProperty(s,"isBlockScoped",{enumerable:true,get:function(){return ce.default}});Object.defineProperty(s,"isImmutable",{enumerable:true,get:function(){return ue.default}});Object.defineProperty(s,"isLet",{enumerable:true,get:function(){return pe.default}});Object.defineProperty(s,"isNode",{enumerable:true,get:function(){return de.default}});Object.defineProperty(s,"isNodesEquivalent",{enumerable:true,get:function(){return fe.default}});Object.defineProperty(s,"isPlaceholderType",{enumerable:true,get:function(){return he.default}});Object.defineProperty(s,"isReferenced",{enumerable:true,get:function(){return me.default}});Object.defineProperty(s,"isScope",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(s,"isSpecifierDefault",{enumerable:true,get:function(){return ge.default}});Object.defineProperty(s,"isType",{enumerable:true,get:function(){return Te.default}});Object.defineProperty(s,"isValidES3Identifier",{enumerable:true,get:function(){return be.default}});Object.defineProperty(s,"isValidIdentifier",{enumerable:true,get:function(){return Ee.default}});Object.defineProperty(s,"isVar",{enumerable:true,get:function(){return Se.default}});Object.defineProperty(s,"matchesPattern",{enumerable:true,get:function(){return _e.default}});Object.defineProperty(s,"prependToMemberExpression",{enumerable:true,get:function(){return J.default}});s.react=void 0;Object.defineProperty(s,"removeComments",{enumerable:true,get:function(){return R.default}});Object.defineProperty(s,"removeProperties",{enumerable:true,get:function(){return X.default}});Object.defineProperty(s,"removePropertiesDeep",{enumerable:true,get:function(){return Q.default}});Object.defineProperty(s,"removeTypeDuplicates",{enumerable:true,get:function(){return Z.default}});Object.defineProperty(s,"shallowEqual",{enumerable:true,get:function(){return ae.default}});Object.defineProperty(s,"toBindingIdentifierName",{enumerable:true,get:function(){return j.default}});Object.defineProperty(s,"toBlock",{enumerable:true,get:function(){return $.default}});Object.defineProperty(s,"toComputedKey",{enumerable:true,get:function(){return U.default}});Object.defineProperty(s,"toExpression",{enumerable:true,get:function(){return G.default}});Object.defineProperty(s,"toIdentifier",{enumerable:true,get:function(){return q.default}});Object.defineProperty(s,"toKeyAlias",{enumerable:true,get:function(){return W.default}});Object.defineProperty(s,"toStatement",{enumerable:true,get:function(){return H.default}});Object.defineProperty(s,"traverse",{enumerable:true,get:function(){return ne.default}});Object.defineProperty(s,"traverseFast",{enumerable:true,get:function(){return ie.default}});Object.defineProperty(s,"validate",{enumerable:true,get:function(){return xe.default}});Object.defineProperty(s,"valueToNode",{enumerable:true,get:function(){return V.default}});var d=l(7872);var m=l(7182);var y=l(6688);var g=l(4202);var T=l(2588);Object.keys(T).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===T[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return T[r]}})}));var b=l(2968);var E=l(2399);var S=l(8983);var _=l(1707);Object.keys(_).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===_[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return _[r]}})}));var x=l(7821);Object.keys(x).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===x[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return x[r]}})}));var w=l(6078);var v=l(4717);var A=l(4783);var P=l(3413);var k=l(6459);var C=l(2201);var I=l(2924);var O=l(5114);var N=l(5704);var L=l(4427);var D=l(9516);var R=l(1587);var M=l(2402);Object.keys(M).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===M[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return M[r]}})}));var F=l(8900);Object.keys(F).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===F[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return F[r]}})}));var B=l(9705);var j=l(1080);var $=l(4512);var U=l(8395);var G=l(939);var q=l(8950);var W=l(460);var H=l(1036);var V=l(1994);var K=l(8723);Object.keys(K).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===K[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return K[r]}})}));var z=l(1051);var Y=l(2974);var J=l(61);var X=l(3255);var Q=l(7865);var Z=l(4035);var ee=l(5965);var te=l(639);var re=l(6902);var se=l(9819);var ne=l(7631);Object.keys(ne).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===ne[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return ne[r]}})}));var ie=l(6985);var ae=l(4118);var oe=l(3762);var le=l(5361);var ce=l(8909);var ue=l(8840);var pe=l(1177);var de=l(6714);var fe=l(7417);var he=l(2617);var me=l(6793);var ye=l(7884);var ge=l(6427);var Te=l(3178);var be=l(830);var Ee=l(1017);var Se=l(6405);var _e=l(9711);var xe=l(1772);var we=l(1607);var ve=l(3370);Object.keys(ve).forEach((function(r){if(r==="default"||r==="__esModule")return;if(Object.prototype.hasOwnProperty.call(p,r))return;if(r in s&&s[r]===ve[r])return;Object.defineProperty(s,r,{enumerable:true,get:function(){return ve[r]}})}));var Ae=l(9408);var Pe=l(5562);const ke=s.react={isReactComponent:d.default,isCompatTag:m.default,buildChildren:y.default};{s.toSequenceExpression=Pe.default}if(process.env.BABEL_TYPES_8_BREAKING){console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")}},1051:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=appendToMemberExpression;var p=l(7821);function appendToMemberExpression(r,s,l=false){r.object=(0,p.memberExpression)(r.object,r.property,r.computed);r.property=s;r.computed=!!l;return r}},4035:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=removeTypeDuplicates;var p=l(3370);function getQualifiedName(r){return(0,p.isIdentifier)(r)?r.name:`${r.id.name}.${getQualifiedName(r.qualification)}`}function removeTypeDuplicates(r){const s=Array.from(r);const l=new Map;const d=new Map;const m=new Set;const y=[];for(let r=0;r<s.length;r++){const g=s[r];if(!g)continue;if(y.includes(g)){continue}if((0,p.isAnyTypeAnnotation)(g)){return[g]}if((0,p.isFlowBaseAnnotation)(g)){d.set(g.type,g);continue}if((0,p.isUnionTypeAnnotation)(g)){if(!m.has(g.types)){s.push(...g.types);m.add(g.types)}continue}if((0,p.isGenericTypeAnnotation)(g)){const r=getQualifiedName(g.id);if(l.has(r)){let s=l.get(r);if(s.typeParameters){if(g.typeParameters){s.typeParameters.params.push(...g.typeParameters.params);s.typeParameters.params=removeTypeDuplicates(s.typeParameters.params)}}else{s=g.typeParameters}}else{l.set(r,g)}continue}y.push(g)}for(const[,r]of d){y.push(r)}for(const[,r]of l){y.push(r)}return y}},2974:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=inherits;var p=l(8900);var d=l(4427);function inherits(r,s){if(!r||!s)return r;for(const l of p.INHERIT_KEYS.optional){if(r[l]==null){r[l]=s[l]}}for(const l of Object.keys(s)){if(l[0]==="_"&&l!=="__clone"){r[l]=s[l]}}for(const l of p.INHERIT_KEYS.force){r[l]=s[l]}(0,d.default)(r,s);return r}},61:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=prependToMemberExpression;var p=l(7821);var d=l(3658);function prependToMemberExpression(r,s){if((0,d.isSuper)(r.object)){throw new Error("Cannot prepend node to super property access (`super.foo`).")}r.object=(0,p.memberExpression)(s,r.object);return r}},3255:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=removeProperties;var p=l(8900);const d=["tokens","start","end","loc","raw","rawValue"];const m=[...p.COMMENT_KEYS,"comments",...d];function removeProperties(r,s={}){const l=s.preserveComments?d:m;for(const s of l){if(r[s]!=null)r[s]=undefined}for(const s of Object.keys(r)){if(s[0]==="_"&&r[s]!=null)r[s]=undefined}const p=Object.getOwnPropertySymbols(r);for(const s of p){r[s]=null}}},7865:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=removePropertiesDeep;var p=l(6985);var d=l(3255);function removePropertiesDeep(r,s){(0,p.default)(r,d.default,s);return r}},6066:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=removeTypeDuplicates;var p=l(3370);function getQualifiedName(r){return(0,p.isIdentifier)(r)?r.name:(0,p.isThisExpression)(r)?"this":`${r.right.name}.${getQualifiedName(r.left)}`}function removeTypeDuplicates(r){const s=Array.from(r);const l=new Map;const d=new Map;const m=new Set;const y=[];for(let r=0;r<s.length;r++){const g=s[r];if(!g)continue;if(y.includes(g)){continue}if((0,p.isTSAnyKeyword)(g)){return[g]}if((0,p.isTSBaseType)(g)){d.set(g.type,g);continue}if((0,p.isTSUnionType)(g)){if(!m.has(g.types)){s.push(...g.types);m.add(g.types)}continue}const T="typeParameters";if((0,p.isTSTypeReference)(g)&&g[T]){const r=g[T];const s=getQualifiedName(g.typeName);if(l.has(s)){let p=l.get(s);const d=p[T];if(d){d.params.push(...r.params);d.params=removeTypeDuplicates(d.params)}else{p=r}}else{l.set(s,g)}continue}y.push(g)}for(const[,r]of d){y.push(r)}for(const[,r]of l){y.push(r)}return y}},5965:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=getAssignmentIdentifiers;function getAssignmentIdentifiers(r){const s=[].concat(r);const l=Object.create(null);while(s.length){const r=s.pop();if(!r)continue;switch(r.type){case"ArrayPattern":s.push(...r.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":s.push(r.left);break;case"ObjectPattern":s.push(...r.properties);break;case"ObjectProperty":s.push(r.value);break;case"RestElement":case"UpdateExpression":s.push(r.argument);break;case"UnaryExpression":if(r.operator==="delete"){s.push(r.argument)}break;case"Identifier":l[r.name]=r;break;default:break}}return l}},639:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=getBindingIdentifiers;var p=l(3370);function getBindingIdentifiers(r,s,l,d){const m=[].concat(r);const y=Object.create(null);while(m.length){const r=m.shift();if(!r)continue;if(d&&((0,p.isAssignmentExpression)(r)||(0,p.isUnaryExpression)(r)||(0,p.isUpdateExpression)(r))){continue}if((0,p.isIdentifier)(r)){if(s){const s=y[r.name]=y[r.name]||[];s.push(r)}else{y[r.name]=r}continue}if((0,p.isExportDeclaration)(r)&&!(0,p.isExportAllDeclaration)(r)){if((0,p.isDeclaration)(r.declaration)){m.push(r.declaration)}continue}if(l){if((0,p.isFunctionDeclaration)(r)){m.push(r.id);continue}if((0,p.isFunctionExpression)(r)){continue}}const g=getBindingIdentifiers.keys[r.type];if(g){for(let s=0;s<g.length;s++){const l=g[s];const p=r[l];if(p){if(Array.isArray(p)){m.push(...p)}else{m.push(p)}}}}}return y}const d={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"]};getBindingIdentifiers.keys=d},9819:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=getFunctionName;var p=l(3370);function getNameFromLiteralId(r){if((0,p.isNullLiteral)(r)){return"null"}if((0,p.isRegExpLiteral)(r)){return`/${r.pattern}/${r.flags}`}if((0,p.isTemplateLiteral)(r)){return r.quasis.map((r=>r.value.raw)).join("")}if(r.value!==undefined){return String(r.value)}return null}function getObjectMemberKey(r){if(!r.computed||(0,p.isLiteral)(r.key)){return r.key}}function getFunctionName(r,s){if("id"in r&&r.id){return{name:r.id.name,originalNode:r.id}}let l="";let d;if((0,p.isObjectProperty)(s,{value:r})){d=getObjectMemberKey(s)}else if((0,p.isObjectMethod)(r)||(0,p.isClassMethod)(r)){d=getObjectMemberKey(r);if(r.kind==="get")l="get ";else if(r.kind==="set")l="set "}else if((0,p.isVariableDeclarator)(s,{init:r})){d=s.id}else if((0,p.isAssignmentExpression)(s,{operator:"=",right:r})){d=s.left}if(!d)return null;const m=(0,p.isLiteral)(d)?getNameFromLiteralId(d):(0,p.isIdentifier)(d)?d.name:(0,p.isPrivateName)(d)?d.id.name:null;if(m==null)return null;return{name:l+m,originalNode:d}}},6902:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(639);var d=s["default"]=getOuterBindingIdentifiers;function getOuterBindingIdentifiers(r,s){return(0,p.default)(r,s,true)}},7631:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=traverse;var p=l(8723);function traverse(r,s,l){if(typeof s==="function"){s={enter:s}}const{enter:p,exit:d}=s;traverseSimpleImpl(r,p,d,l,[])}function traverseSimpleImpl(r,s,l,d,m){const y=p.VISITOR_KEYS[r.type];if(!y)return;if(s)s(r,m,d);for(const p of y){const y=r[p];if(Array.isArray(y)){for(let g=0;g<y.length;g++){const T=y[g];if(!T)continue;m.push({node:r,key:p,index:g});traverseSimpleImpl(T,s,l,d,m);m.pop()}}else if(y){m.push({node:r,key:p});traverseSimpleImpl(y,s,l,d,m);m.pop()}}if(l)l(r,m,d)}},6985:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=traverseFast;var p=l(8723);const d=Symbol();const m=Symbol();function traverseFast(r,s,l){if(!r)return false;const y=p.VISITOR_KEYS[r.type];if(!y)return false;l=l||{};const g=s(r,l);if(g!==undefined){switch(g){case d:return false;case m:return true}}for(const p of y){const d=r[p];if(!d)continue;if(Array.isArray(d)){for(const r of d){if(traverseFast(r,s,l))return true}}else{if(traverseFast(d,s,l))return true}}return false}traverseFast.skip=d;traverseFast.stop=m},9408:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=deprecationWarning;const l=new Set;function deprecationWarning(r,s,p="",d=r){if(l.has(d))return;l.add(d);const{internal:m,trace:y}=captureShortStackTrace(1,2);if(m){return}console.warn(`${p}\`${r}\` has been deprecated, please migrate to \`${s}\`\n${y}`)}function captureShortStackTrace(r,s){const{stackTraceLimit:l,prepareStackTrace:p}=Error;let d;Error.stackTraceLimit=1+r+s;Error.prepareStackTrace=function(r,s){d=s};(new Error).stack;Error.stackTraceLimit=l;Error.prepareStackTrace=p;if(!d)return{internal:false,trace:""};const m=d.slice(1+r,1+r+s);return{internal:/[\\/]@babel[\\/]/.test(m[1].getFileName()),trace:m.map((r=>` at ${r}`)).join("\n")}}},9859:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=inherit;function inherit(r,s,l){if(s&&l){s[r]=Array.from(new Set([].concat(s[r],l[r]).filter(Boolean)))}}},3697:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=cleanJSXElementLiteralChild;var p=l(7821);var d=l(3658);function cleanJSXElementLiteralChild(r,s){const l=r.value.split(/\r\n|\n|\r/);let m=0;for(let r=0;r<l.length;r++){if(/[^ \t]/.exec(l[r])){m=r}}let y="";for(let r=0;r<l.length;r++){const s=l[r];const p=r===0;const d=r===l.length-1;const g=r===m;let T=s.replace(/\t/g," ");if(!p){T=T.replace(/^ +/,"")}if(!d){T=T.replace(/ +$/,"")}if(T){if(!g){T+=" "}y+=T}}if(y)s.push((0,d.inherits)((0,p.stringLiteral)(y),r))}},4118:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=shallowEqual;function shallowEqual(r,s){const l=Object.keys(s);for(const p of l){if(r[p]!==s[p]){return false}}return true}},1607:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=buildMatchMemberExpression;var p=l(9711);function buildMatchMemberExpression(r,s){const l=r.split(".");return r=>(0,p.default)(r,l,s)}},3370:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s.isAccessor=isAccessor;s.isAnyTypeAnnotation=isAnyTypeAnnotation;s.isArgumentPlaceholder=isArgumentPlaceholder;s.isArrayExpression=isArrayExpression;s.isArrayPattern=isArrayPattern;s.isArrayTypeAnnotation=isArrayTypeAnnotation;s.isArrowFunctionExpression=isArrowFunctionExpression;s.isAssignmentExpression=isAssignmentExpression;s.isAssignmentPattern=isAssignmentPattern;s.isAwaitExpression=isAwaitExpression;s.isBigIntLiteral=isBigIntLiteral;s.isBinary=isBinary;s.isBinaryExpression=isBinaryExpression;s.isBindExpression=isBindExpression;s.isBlock=isBlock;s.isBlockParent=isBlockParent;s.isBlockStatement=isBlockStatement;s.isBooleanLiteral=isBooleanLiteral;s.isBooleanLiteralTypeAnnotation=isBooleanLiteralTypeAnnotation;s.isBooleanTypeAnnotation=isBooleanTypeAnnotation;s.isBreakStatement=isBreakStatement;s.isCallExpression=isCallExpression;s.isCatchClause=isCatchClause;s.isClass=isClass;s.isClassAccessorProperty=isClassAccessorProperty;s.isClassBody=isClassBody;s.isClassDeclaration=isClassDeclaration;s.isClassExpression=isClassExpression;s.isClassImplements=isClassImplements;s.isClassMethod=isClassMethod;s.isClassPrivateMethod=isClassPrivateMethod;s.isClassPrivateProperty=isClassPrivateProperty;s.isClassProperty=isClassProperty;s.isCompletionStatement=isCompletionStatement;s.isConditional=isConditional;s.isConditionalExpression=isConditionalExpression;s.isContinueStatement=isContinueStatement;s.isDebuggerStatement=isDebuggerStatement;s.isDecimalLiteral=isDecimalLiteral;s.isDeclaration=isDeclaration;s.isDeclareClass=isDeclareClass;s.isDeclareExportAllDeclaration=isDeclareExportAllDeclaration;s.isDeclareExportDeclaration=isDeclareExportDeclaration;s.isDeclareFunction=isDeclareFunction;s.isDeclareInterface=isDeclareInterface;s.isDeclareModule=isDeclareModule;s.isDeclareModuleExports=isDeclareModuleExports;s.isDeclareOpaqueType=isDeclareOpaqueType;s.isDeclareTypeAlias=isDeclareTypeAlias;s.isDeclareVariable=isDeclareVariable;s.isDeclaredPredicate=isDeclaredPredicate;s.isDecorator=isDecorator;s.isDirective=isDirective;s.isDirectiveLiteral=isDirectiveLiteral;s.isDoExpression=isDoExpression;s.isDoWhileStatement=isDoWhileStatement;s.isEmptyStatement=isEmptyStatement;s.isEmptyTypeAnnotation=isEmptyTypeAnnotation;s.isEnumBody=isEnumBody;s.isEnumBooleanBody=isEnumBooleanBody;s.isEnumBooleanMember=isEnumBooleanMember;s.isEnumDeclaration=isEnumDeclaration;s.isEnumDefaultedMember=isEnumDefaultedMember;s.isEnumMember=isEnumMember;s.isEnumNumberBody=isEnumNumberBody;s.isEnumNumberMember=isEnumNumberMember;s.isEnumStringBody=isEnumStringBody;s.isEnumStringMember=isEnumStringMember;s.isEnumSymbolBody=isEnumSymbolBody;s.isExistsTypeAnnotation=isExistsTypeAnnotation;s.isExportAllDeclaration=isExportAllDeclaration;s.isExportDeclaration=isExportDeclaration;s.isExportDefaultDeclaration=isExportDefaultDeclaration;s.isExportDefaultSpecifier=isExportDefaultSpecifier;s.isExportNamedDeclaration=isExportNamedDeclaration;s.isExportNamespaceSpecifier=isExportNamespaceSpecifier;s.isExportSpecifier=isExportSpecifier;s.isExpression=isExpression;s.isExpressionStatement=isExpressionStatement;s.isExpressionWrapper=isExpressionWrapper;s.isFile=isFile;s.isFlow=isFlow;s.isFlowBaseAnnotation=isFlowBaseAnnotation;s.isFlowDeclaration=isFlowDeclaration;s.isFlowPredicate=isFlowPredicate;s.isFlowType=isFlowType;s.isFor=isFor;s.isForInStatement=isForInStatement;s.isForOfStatement=isForOfStatement;s.isForStatement=isForStatement;s.isForXStatement=isForXStatement;s.isFunction=isFunction;s.isFunctionDeclaration=isFunctionDeclaration;s.isFunctionExpression=isFunctionExpression;s.isFunctionParameter=isFunctionParameter;s.isFunctionParent=isFunctionParent;s.isFunctionTypeAnnotation=isFunctionTypeAnnotation;s.isFunctionTypeParam=isFunctionTypeParam;s.isGenericTypeAnnotation=isGenericTypeAnnotation;s.isIdentifier=isIdentifier;s.isIfStatement=isIfStatement;s.isImmutable=isImmutable;s.isImport=isImport;s.isImportAttribute=isImportAttribute;s.isImportDeclaration=isImportDeclaration;s.isImportDefaultSpecifier=isImportDefaultSpecifier;s.isImportExpression=isImportExpression;s.isImportNamespaceSpecifier=isImportNamespaceSpecifier;s.isImportOrExportDeclaration=isImportOrExportDeclaration;s.isImportSpecifier=isImportSpecifier;s.isIndexedAccessType=isIndexedAccessType;s.isInferredPredicate=isInferredPredicate;s.isInterfaceDeclaration=isInterfaceDeclaration;s.isInterfaceExtends=isInterfaceExtends;s.isInterfaceTypeAnnotation=isInterfaceTypeAnnotation;s.isInterpreterDirective=isInterpreterDirective;s.isIntersectionTypeAnnotation=isIntersectionTypeAnnotation;s.isJSX=isJSX;s.isJSXAttribute=isJSXAttribute;s.isJSXClosingElement=isJSXClosingElement;s.isJSXClosingFragment=isJSXClosingFragment;s.isJSXElement=isJSXElement;s.isJSXEmptyExpression=isJSXEmptyExpression;s.isJSXExpressionContainer=isJSXExpressionContainer;s.isJSXFragment=isJSXFragment;s.isJSXIdentifier=isJSXIdentifier;s.isJSXMemberExpression=isJSXMemberExpression;s.isJSXNamespacedName=isJSXNamespacedName;s.isJSXOpeningElement=isJSXOpeningElement;s.isJSXOpeningFragment=isJSXOpeningFragment;s.isJSXSpreadAttribute=isJSXSpreadAttribute;s.isJSXSpreadChild=isJSXSpreadChild;s.isJSXText=isJSXText;s.isLVal=isLVal;s.isLabeledStatement=isLabeledStatement;s.isLiteral=isLiteral;s.isLogicalExpression=isLogicalExpression;s.isLoop=isLoop;s.isMemberExpression=isMemberExpression;s.isMetaProperty=isMetaProperty;s.isMethod=isMethod;s.isMiscellaneous=isMiscellaneous;s.isMixedTypeAnnotation=isMixedTypeAnnotation;s.isModuleDeclaration=isModuleDeclaration;s.isModuleExpression=isModuleExpression;s.isModuleSpecifier=isModuleSpecifier;s.isNewExpression=isNewExpression;s.isNoop=isNoop;s.isNullLiteral=isNullLiteral;s.isNullLiteralTypeAnnotation=isNullLiteralTypeAnnotation;s.isNullableTypeAnnotation=isNullableTypeAnnotation;s.isNumberLiteral=isNumberLiteral;s.isNumberLiteralTypeAnnotation=isNumberLiteralTypeAnnotation;s.isNumberTypeAnnotation=isNumberTypeAnnotation;s.isNumericLiteral=isNumericLiteral;s.isObjectExpression=isObjectExpression;s.isObjectMember=isObjectMember;s.isObjectMethod=isObjectMethod;s.isObjectPattern=isObjectPattern;s.isObjectProperty=isObjectProperty;s.isObjectTypeAnnotation=isObjectTypeAnnotation;s.isObjectTypeCallProperty=isObjectTypeCallProperty;s.isObjectTypeIndexer=isObjectTypeIndexer;s.isObjectTypeInternalSlot=isObjectTypeInternalSlot;s.isObjectTypeProperty=isObjectTypeProperty;s.isObjectTypeSpreadProperty=isObjectTypeSpreadProperty;s.isOpaqueType=isOpaqueType;s.isOptionalCallExpression=isOptionalCallExpression;s.isOptionalIndexedAccessType=isOptionalIndexedAccessType;s.isOptionalMemberExpression=isOptionalMemberExpression;s.isParenthesizedExpression=isParenthesizedExpression;s.isPattern=isPattern;s.isPatternLike=isPatternLike;s.isPipelineBareFunction=isPipelineBareFunction;s.isPipelinePrimaryTopicReference=isPipelinePrimaryTopicReference;s.isPipelineTopicExpression=isPipelineTopicExpression;s.isPlaceholder=isPlaceholder;s.isPrivate=isPrivate;s.isPrivateName=isPrivateName;s.isProgram=isProgram;s.isProperty=isProperty;s.isPureish=isPureish;s.isQualifiedTypeIdentifier=isQualifiedTypeIdentifier;s.isRecordExpression=isRecordExpression;s.isRegExpLiteral=isRegExpLiteral;s.isRegexLiteral=isRegexLiteral;s.isRestElement=isRestElement;s.isRestProperty=isRestProperty;s.isReturnStatement=isReturnStatement;s.isScopable=isScopable;s.isSequenceExpression=isSequenceExpression;s.isSpreadElement=isSpreadElement;s.isSpreadProperty=isSpreadProperty;s.isStandardized=isStandardized;s.isStatement=isStatement;s.isStaticBlock=isStaticBlock;s.isStringLiteral=isStringLiteral;s.isStringLiteralTypeAnnotation=isStringLiteralTypeAnnotation;s.isStringTypeAnnotation=isStringTypeAnnotation;s.isSuper=isSuper;s.isSwitchCase=isSwitchCase;s.isSwitchStatement=isSwitchStatement;s.isSymbolTypeAnnotation=isSymbolTypeAnnotation;s.isTSAnyKeyword=isTSAnyKeyword;s.isTSArrayType=isTSArrayType;s.isTSAsExpression=isTSAsExpression;s.isTSBaseType=isTSBaseType;s.isTSBigIntKeyword=isTSBigIntKeyword;s.isTSBooleanKeyword=isTSBooleanKeyword;s.isTSCallSignatureDeclaration=isTSCallSignatureDeclaration;s.isTSConditionalType=isTSConditionalType;s.isTSConstructSignatureDeclaration=isTSConstructSignatureDeclaration;s.isTSConstructorType=isTSConstructorType;s.isTSDeclareFunction=isTSDeclareFunction;s.isTSDeclareMethod=isTSDeclareMethod;s.isTSEntityName=isTSEntityName;s.isTSEnumBody=isTSEnumBody;s.isTSEnumDeclaration=isTSEnumDeclaration;s.isTSEnumMember=isTSEnumMember;s.isTSExportAssignment=isTSExportAssignment;s.isTSExpressionWithTypeArguments=isTSExpressionWithTypeArguments;s.isTSExternalModuleReference=isTSExternalModuleReference;s.isTSFunctionType=isTSFunctionType;s.isTSImportEqualsDeclaration=isTSImportEqualsDeclaration;s.isTSImportType=isTSImportType;s.isTSIndexSignature=isTSIndexSignature;s.isTSIndexedAccessType=isTSIndexedAccessType;s.isTSInferType=isTSInferType;s.isTSInstantiationExpression=isTSInstantiationExpression;s.isTSInterfaceBody=isTSInterfaceBody;s.isTSInterfaceDeclaration=isTSInterfaceDeclaration;s.isTSIntersectionType=isTSIntersectionType;s.isTSIntrinsicKeyword=isTSIntrinsicKeyword;s.isTSLiteralType=isTSLiteralType;s.isTSMappedType=isTSMappedType;s.isTSMethodSignature=isTSMethodSignature;s.isTSModuleBlock=isTSModuleBlock;s.isTSModuleDeclaration=isTSModuleDeclaration;s.isTSNamedTupleMember=isTSNamedTupleMember;s.isTSNamespaceExportDeclaration=isTSNamespaceExportDeclaration;s.isTSNeverKeyword=isTSNeverKeyword;s.isTSNonNullExpression=isTSNonNullExpression;s.isTSNullKeyword=isTSNullKeyword;s.isTSNumberKeyword=isTSNumberKeyword;s.isTSObjectKeyword=isTSObjectKeyword;s.isTSOptionalType=isTSOptionalType;s.isTSParameterProperty=isTSParameterProperty;s.isTSParenthesizedType=isTSParenthesizedType;s.isTSPropertySignature=isTSPropertySignature;s.isTSQualifiedName=isTSQualifiedName;s.isTSRestType=isTSRestType;s.isTSSatisfiesExpression=isTSSatisfiesExpression;s.isTSStringKeyword=isTSStringKeyword;s.isTSSymbolKeyword=isTSSymbolKeyword;s.isTSTemplateLiteralType=isTSTemplateLiteralType;s.isTSThisType=isTSThisType;s.isTSTupleType=isTSTupleType;s.isTSType=isTSType;s.isTSTypeAliasDeclaration=isTSTypeAliasDeclaration;s.isTSTypeAnnotation=isTSTypeAnnotation;s.isTSTypeAssertion=isTSTypeAssertion;s.isTSTypeElement=isTSTypeElement;s.isTSTypeLiteral=isTSTypeLiteral;s.isTSTypeOperator=isTSTypeOperator;s.isTSTypeParameter=isTSTypeParameter;s.isTSTypeParameterDeclaration=isTSTypeParameterDeclaration;s.isTSTypeParameterInstantiation=isTSTypeParameterInstantiation;s.isTSTypePredicate=isTSTypePredicate;s.isTSTypeQuery=isTSTypeQuery;s.isTSTypeReference=isTSTypeReference;s.isTSUndefinedKeyword=isTSUndefinedKeyword;s.isTSUnionType=isTSUnionType;s.isTSUnknownKeyword=isTSUnknownKeyword;s.isTSVoidKeyword=isTSVoidKeyword;s.isTaggedTemplateExpression=isTaggedTemplateExpression;s.isTemplateElement=isTemplateElement;s.isTemplateLiteral=isTemplateLiteral;s.isTerminatorless=isTerminatorless;s.isThisExpression=isThisExpression;s.isThisTypeAnnotation=isThisTypeAnnotation;s.isThrowStatement=isThrowStatement;s.isTopicReference=isTopicReference;s.isTryStatement=isTryStatement;s.isTupleExpression=isTupleExpression;s.isTupleTypeAnnotation=isTupleTypeAnnotation;s.isTypeAlias=isTypeAlias;s.isTypeAnnotation=isTypeAnnotation;s.isTypeCastExpression=isTypeCastExpression;s.isTypeParameter=isTypeParameter;s.isTypeParameterDeclaration=isTypeParameterDeclaration;s.isTypeParameterInstantiation=isTypeParameterInstantiation;s.isTypeScript=isTypeScript;s.isTypeofTypeAnnotation=isTypeofTypeAnnotation;s.isUnaryExpression=isUnaryExpression;s.isUnaryLike=isUnaryLike;s.isUnionTypeAnnotation=isUnionTypeAnnotation;s.isUpdateExpression=isUpdateExpression;s.isUserWhitespacable=isUserWhitespacable;s.isV8IntrinsicIdentifier=isV8IntrinsicIdentifier;s.isVariableDeclaration=isVariableDeclaration;s.isVariableDeclarator=isVariableDeclarator;s.isVariance=isVariance;s.isVoidPattern=isVoidPattern;s.isVoidTypeAnnotation=isVoidTypeAnnotation;s.isWhile=isWhile;s.isWhileStatement=isWhileStatement;s.isWithStatement=isWithStatement;s.isYieldExpression=isYieldExpression;var p=l(4118);var d=l(9408);function isArrayExpression(r,s){if(!r)return false;if(r.type!=="ArrayExpression")return false;return s==null||(0,p.default)(r,s)}function isAssignmentExpression(r,s){if(!r)return false;if(r.type!=="AssignmentExpression")return false;return s==null||(0,p.default)(r,s)}function isBinaryExpression(r,s){if(!r)return false;if(r.type!=="BinaryExpression")return false;return s==null||(0,p.default)(r,s)}function isInterpreterDirective(r,s){if(!r)return false;if(r.type!=="InterpreterDirective")return false;return s==null||(0,p.default)(r,s)}function isDirective(r,s){if(!r)return false;if(r.type!=="Directive")return false;return s==null||(0,p.default)(r,s)}function isDirectiveLiteral(r,s){if(!r)return false;if(r.type!=="DirectiveLiteral")return false;return s==null||(0,p.default)(r,s)}function isBlockStatement(r,s){if(!r)return false;if(r.type!=="BlockStatement")return false;return s==null||(0,p.default)(r,s)}function isBreakStatement(r,s){if(!r)return false;if(r.type!=="BreakStatement")return false;return s==null||(0,p.default)(r,s)}function isCallExpression(r,s){if(!r)return false;if(r.type!=="CallExpression")return false;return s==null||(0,p.default)(r,s)}function isCatchClause(r,s){if(!r)return false;if(r.type!=="CatchClause")return false;return s==null||(0,p.default)(r,s)}function isConditionalExpression(r,s){if(!r)return false;if(r.type!=="ConditionalExpression")return false;return s==null||(0,p.default)(r,s)}function isContinueStatement(r,s){if(!r)return false;if(r.type!=="ContinueStatement")return false;return s==null||(0,p.default)(r,s)}function isDebuggerStatement(r,s){if(!r)return false;if(r.type!=="DebuggerStatement")return false;return s==null||(0,p.default)(r,s)}function isDoWhileStatement(r,s){if(!r)return false;if(r.type!=="DoWhileStatement")return false;return s==null||(0,p.default)(r,s)}function isEmptyStatement(r,s){if(!r)return false;if(r.type!=="EmptyStatement")return false;return s==null||(0,p.default)(r,s)}function isExpressionStatement(r,s){if(!r)return false;if(r.type!=="ExpressionStatement")return false;return s==null||(0,p.default)(r,s)}function isFile(r,s){if(!r)return false;if(r.type!=="File")return false;return s==null||(0,p.default)(r,s)}function isForInStatement(r,s){if(!r)return false;if(r.type!=="ForInStatement")return false;return s==null||(0,p.default)(r,s)}function isForStatement(r,s){if(!r)return false;if(r.type!=="ForStatement")return false;return s==null||(0,p.default)(r,s)}function isFunctionDeclaration(r,s){if(!r)return false;if(r.type!=="FunctionDeclaration")return false;return s==null||(0,p.default)(r,s)}function isFunctionExpression(r,s){if(!r)return false;if(r.type!=="FunctionExpression")return false;return s==null||(0,p.default)(r,s)}function isIdentifier(r,s){if(!r)return false;if(r.type!=="Identifier")return false;return s==null||(0,p.default)(r,s)}function isIfStatement(r,s){if(!r)return false;if(r.type!=="IfStatement")return false;return s==null||(0,p.default)(r,s)}function isLabeledStatement(r,s){if(!r)return false;if(r.type!=="LabeledStatement")return false;return s==null||(0,p.default)(r,s)}function isStringLiteral(r,s){if(!r)return false;if(r.type!=="StringLiteral")return false;return s==null||(0,p.default)(r,s)}function isNumericLiteral(r,s){if(!r)return false;if(r.type!=="NumericLiteral")return false;return s==null||(0,p.default)(r,s)}function isNullLiteral(r,s){if(!r)return false;if(r.type!=="NullLiteral")return false;return s==null||(0,p.default)(r,s)}function isBooleanLiteral(r,s){if(!r)return false;if(r.type!=="BooleanLiteral")return false;return s==null||(0,p.default)(r,s)}function isRegExpLiteral(r,s){if(!r)return false;if(r.type!=="RegExpLiteral")return false;return s==null||(0,p.default)(r,s)}function isLogicalExpression(r,s){if(!r)return false;if(r.type!=="LogicalExpression")return false;return s==null||(0,p.default)(r,s)}function isMemberExpression(r,s){if(!r)return false;if(r.type!=="MemberExpression")return false;return s==null||(0,p.default)(r,s)}function isNewExpression(r,s){if(!r)return false;if(r.type!=="NewExpression")return false;return s==null||(0,p.default)(r,s)}function isProgram(r,s){if(!r)return false;if(r.type!=="Program")return false;return s==null||(0,p.default)(r,s)}function isObjectExpression(r,s){if(!r)return false;if(r.type!=="ObjectExpression")return false;return s==null||(0,p.default)(r,s)}function isObjectMethod(r,s){if(!r)return false;if(r.type!=="ObjectMethod")return false;return s==null||(0,p.default)(r,s)}function isObjectProperty(r,s){if(!r)return false;if(r.type!=="ObjectProperty")return false;return s==null||(0,p.default)(r,s)}function isRestElement(r,s){if(!r)return false;if(r.type!=="RestElement")return false;return s==null||(0,p.default)(r,s)}function isReturnStatement(r,s){if(!r)return false;if(r.type!=="ReturnStatement")return false;return s==null||(0,p.default)(r,s)}function isSequenceExpression(r,s){if(!r)return false;if(r.type!=="SequenceExpression")return false;return s==null||(0,p.default)(r,s)}function isParenthesizedExpression(r,s){if(!r)return false;if(r.type!=="ParenthesizedExpression")return false;return s==null||(0,p.default)(r,s)}function isSwitchCase(r,s){if(!r)return false;if(r.type!=="SwitchCase")return false;return s==null||(0,p.default)(r,s)}function isSwitchStatement(r,s){if(!r)return false;if(r.type!=="SwitchStatement")return false;return s==null||(0,p.default)(r,s)}function isThisExpression(r,s){if(!r)return false;if(r.type!=="ThisExpression")return false;return s==null||(0,p.default)(r,s)}function isThrowStatement(r,s){if(!r)return false;if(r.type!=="ThrowStatement")return false;return s==null||(0,p.default)(r,s)}function isTryStatement(r,s){if(!r)return false;if(r.type!=="TryStatement")return false;return s==null||(0,p.default)(r,s)}function isUnaryExpression(r,s){if(!r)return false;if(r.type!=="UnaryExpression")return false;return s==null||(0,p.default)(r,s)}function isUpdateExpression(r,s){if(!r)return false;if(r.type!=="UpdateExpression")return false;return s==null||(0,p.default)(r,s)}function isVariableDeclaration(r,s){if(!r)return false;if(r.type!=="VariableDeclaration")return false;return s==null||(0,p.default)(r,s)}function isVariableDeclarator(r,s){if(!r)return false;if(r.type!=="VariableDeclarator")return false;return s==null||(0,p.default)(r,s)}function isWhileStatement(r,s){if(!r)return false;if(r.type!=="WhileStatement")return false;return s==null||(0,p.default)(r,s)}function isWithStatement(r,s){if(!r)return false;if(r.type!=="WithStatement")return false;return s==null||(0,p.default)(r,s)}function isAssignmentPattern(r,s){if(!r)return false;if(r.type!=="AssignmentPattern")return false;return s==null||(0,p.default)(r,s)}function isArrayPattern(r,s){if(!r)return false;if(r.type!=="ArrayPattern")return false;return s==null||(0,p.default)(r,s)}function isArrowFunctionExpression(r,s){if(!r)return false;if(r.type!=="ArrowFunctionExpression")return false;return s==null||(0,p.default)(r,s)}function isClassBody(r,s){if(!r)return false;if(r.type!=="ClassBody")return false;return s==null||(0,p.default)(r,s)}function isClassExpression(r,s){if(!r)return false;if(r.type!=="ClassExpression")return false;return s==null||(0,p.default)(r,s)}function isClassDeclaration(r,s){if(!r)return false;if(r.type!=="ClassDeclaration")return false;return s==null||(0,p.default)(r,s)}function isExportAllDeclaration(r,s){if(!r)return false;if(r.type!=="ExportAllDeclaration")return false;return s==null||(0,p.default)(r,s)}function isExportDefaultDeclaration(r,s){if(!r)return false;if(r.type!=="ExportDefaultDeclaration")return false;return s==null||(0,p.default)(r,s)}function isExportNamedDeclaration(r,s){if(!r)return false;if(r.type!=="ExportNamedDeclaration")return false;return s==null||(0,p.default)(r,s)}function isExportSpecifier(r,s){if(!r)return false;if(r.type!=="ExportSpecifier")return false;return s==null||(0,p.default)(r,s)}function isForOfStatement(r,s){if(!r)return false;if(r.type!=="ForOfStatement")return false;return s==null||(0,p.default)(r,s)}function isImportDeclaration(r,s){if(!r)return false;if(r.type!=="ImportDeclaration")return false;return s==null||(0,p.default)(r,s)}function isImportDefaultSpecifier(r,s){if(!r)return false;if(r.type!=="ImportDefaultSpecifier")return false;return s==null||(0,p.default)(r,s)}function isImportNamespaceSpecifier(r,s){if(!r)return false;if(r.type!=="ImportNamespaceSpecifier")return false;return s==null||(0,p.default)(r,s)}function isImportSpecifier(r,s){if(!r)return false;if(r.type!=="ImportSpecifier")return false;return s==null||(0,p.default)(r,s)}function isImportExpression(r,s){if(!r)return false;if(r.type!=="ImportExpression")return false;return s==null||(0,p.default)(r,s)}function isMetaProperty(r,s){if(!r)return false;if(r.type!=="MetaProperty")return false;return s==null||(0,p.default)(r,s)}function isClassMethod(r,s){if(!r)return false;if(r.type!=="ClassMethod")return false;return s==null||(0,p.default)(r,s)}function isObjectPattern(r,s){if(!r)return false;if(r.type!=="ObjectPattern")return false;return s==null||(0,p.default)(r,s)}function isSpreadElement(r,s){if(!r)return false;if(r.type!=="SpreadElement")return false;return s==null||(0,p.default)(r,s)}function isSuper(r,s){if(!r)return false;if(r.type!=="Super")return false;return s==null||(0,p.default)(r,s)}function isTaggedTemplateExpression(r,s){if(!r)return false;if(r.type!=="TaggedTemplateExpression")return false;return s==null||(0,p.default)(r,s)}function isTemplateElement(r,s){if(!r)return false;if(r.type!=="TemplateElement")return false;return s==null||(0,p.default)(r,s)}function isTemplateLiteral(r,s){if(!r)return false;if(r.type!=="TemplateLiteral")return false;return s==null||(0,p.default)(r,s)}function isYieldExpression(r,s){if(!r)return false;if(r.type!=="YieldExpression")return false;return s==null||(0,p.default)(r,s)}function isAwaitExpression(r,s){if(!r)return false;if(r.type!=="AwaitExpression")return false;return s==null||(0,p.default)(r,s)}function isImport(r,s){if(!r)return false;if(r.type!=="Import")return false;return s==null||(0,p.default)(r,s)}function isBigIntLiteral(r,s){if(!r)return false;if(r.type!=="BigIntLiteral")return false;return s==null||(0,p.default)(r,s)}function isExportNamespaceSpecifier(r,s){if(!r)return false;if(r.type!=="ExportNamespaceSpecifier")return false;return s==null||(0,p.default)(r,s)}function isOptionalMemberExpression(r,s){if(!r)return false;if(r.type!=="OptionalMemberExpression")return false;return s==null||(0,p.default)(r,s)}function isOptionalCallExpression(r,s){if(!r)return false;if(r.type!=="OptionalCallExpression")return false;return s==null||(0,p.default)(r,s)}function isClassProperty(r,s){if(!r)return false;if(r.type!=="ClassProperty")return false;return s==null||(0,p.default)(r,s)}function isClassAccessorProperty(r,s){if(!r)return false;if(r.type!=="ClassAccessorProperty")return false;return s==null||(0,p.default)(r,s)}function isClassPrivateProperty(r,s){if(!r)return false;if(r.type!=="ClassPrivateProperty")return false;return s==null||(0,p.default)(r,s)}function isClassPrivateMethod(r,s){if(!r)return false;if(r.type!=="ClassPrivateMethod")return false;return s==null||(0,p.default)(r,s)}function isPrivateName(r,s){if(!r)return false;if(r.type!=="PrivateName")return false;return s==null||(0,p.default)(r,s)}function isStaticBlock(r,s){if(!r)return false;if(r.type!=="StaticBlock")return false;return s==null||(0,p.default)(r,s)}function isImportAttribute(r,s){if(!r)return false;if(r.type!=="ImportAttribute")return false;return s==null||(0,p.default)(r,s)}function isAnyTypeAnnotation(r,s){if(!r)return false;if(r.type!=="AnyTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isArrayTypeAnnotation(r,s){if(!r)return false;if(r.type!=="ArrayTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isBooleanTypeAnnotation(r,s){if(!r)return false;if(r.type!=="BooleanTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isBooleanLiteralTypeAnnotation(r,s){if(!r)return false;if(r.type!=="BooleanLiteralTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isNullLiteralTypeAnnotation(r,s){if(!r)return false;if(r.type!=="NullLiteralTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isClassImplements(r,s){if(!r)return false;if(r.type!=="ClassImplements")return false;return s==null||(0,p.default)(r,s)}function isDeclareClass(r,s){if(!r)return false;if(r.type!=="DeclareClass")return false;return s==null||(0,p.default)(r,s)}function isDeclareFunction(r,s){if(!r)return false;if(r.type!=="DeclareFunction")return false;return s==null||(0,p.default)(r,s)}function isDeclareInterface(r,s){if(!r)return false;if(r.type!=="DeclareInterface")return false;return s==null||(0,p.default)(r,s)}function isDeclareModule(r,s){if(!r)return false;if(r.type!=="DeclareModule")return false;return s==null||(0,p.default)(r,s)}function isDeclareModuleExports(r,s){if(!r)return false;if(r.type!=="DeclareModuleExports")return false;return s==null||(0,p.default)(r,s)}function isDeclareTypeAlias(r,s){if(!r)return false;if(r.type!=="DeclareTypeAlias")return false;return s==null||(0,p.default)(r,s)}function isDeclareOpaqueType(r,s){if(!r)return false;if(r.type!=="DeclareOpaqueType")return false;return s==null||(0,p.default)(r,s)}function isDeclareVariable(r,s){if(!r)return false;if(r.type!=="DeclareVariable")return false;return s==null||(0,p.default)(r,s)}function isDeclareExportDeclaration(r,s){if(!r)return false;if(r.type!=="DeclareExportDeclaration")return false;return s==null||(0,p.default)(r,s)}function isDeclareExportAllDeclaration(r,s){if(!r)return false;if(r.type!=="DeclareExportAllDeclaration")return false;return s==null||(0,p.default)(r,s)}function isDeclaredPredicate(r,s){if(!r)return false;if(r.type!=="DeclaredPredicate")return false;return s==null||(0,p.default)(r,s)}function isExistsTypeAnnotation(r,s){if(!r)return false;if(r.type!=="ExistsTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isFunctionTypeAnnotation(r,s){if(!r)return false;if(r.type!=="FunctionTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isFunctionTypeParam(r,s){if(!r)return false;if(r.type!=="FunctionTypeParam")return false;return s==null||(0,p.default)(r,s)}function isGenericTypeAnnotation(r,s){if(!r)return false;if(r.type!=="GenericTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isInferredPredicate(r,s){if(!r)return false;if(r.type!=="InferredPredicate")return false;return s==null||(0,p.default)(r,s)}function isInterfaceExtends(r,s){if(!r)return false;if(r.type!=="InterfaceExtends")return false;return s==null||(0,p.default)(r,s)}function isInterfaceDeclaration(r,s){if(!r)return false;if(r.type!=="InterfaceDeclaration")return false;return s==null||(0,p.default)(r,s)}function isInterfaceTypeAnnotation(r,s){if(!r)return false;if(r.type!=="InterfaceTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isIntersectionTypeAnnotation(r,s){if(!r)return false;if(r.type!=="IntersectionTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isMixedTypeAnnotation(r,s){if(!r)return false;if(r.type!=="MixedTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isEmptyTypeAnnotation(r,s){if(!r)return false;if(r.type!=="EmptyTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isNullableTypeAnnotation(r,s){if(!r)return false;if(r.type!=="NullableTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isNumberLiteralTypeAnnotation(r,s){if(!r)return false;if(r.type!=="NumberLiteralTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isNumberTypeAnnotation(r,s){if(!r)return false;if(r.type!=="NumberTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isObjectTypeAnnotation(r,s){if(!r)return false;if(r.type!=="ObjectTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isObjectTypeInternalSlot(r,s){if(!r)return false;if(r.type!=="ObjectTypeInternalSlot")return false;return s==null||(0,p.default)(r,s)}function isObjectTypeCallProperty(r,s){if(!r)return false;if(r.type!=="ObjectTypeCallProperty")return false;return s==null||(0,p.default)(r,s)}function isObjectTypeIndexer(r,s){if(!r)return false;if(r.type!=="ObjectTypeIndexer")return false;return s==null||(0,p.default)(r,s)}function isObjectTypeProperty(r,s){if(!r)return false;if(r.type!=="ObjectTypeProperty")return false;return s==null||(0,p.default)(r,s)}function isObjectTypeSpreadProperty(r,s){if(!r)return false;if(r.type!=="ObjectTypeSpreadProperty")return false;return s==null||(0,p.default)(r,s)}function isOpaqueType(r,s){if(!r)return false;if(r.type!=="OpaqueType")return false;return s==null||(0,p.default)(r,s)}function isQualifiedTypeIdentifier(r,s){if(!r)return false;if(r.type!=="QualifiedTypeIdentifier")return false;return s==null||(0,p.default)(r,s)}function isStringLiteralTypeAnnotation(r,s){if(!r)return false;if(r.type!=="StringLiteralTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isStringTypeAnnotation(r,s){if(!r)return false;if(r.type!=="StringTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isSymbolTypeAnnotation(r,s){if(!r)return false;if(r.type!=="SymbolTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isThisTypeAnnotation(r,s){if(!r)return false;if(r.type!=="ThisTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isTupleTypeAnnotation(r,s){if(!r)return false;if(r.type!=="TupleTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isTypeofTypeAnnotation(r,s){if(!r)return false;if(r.type!=="TypeofTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isTypeAlias(r,s){if(!r)return false;if(r.type!=="TypeAlias")return false;return s==null||(0,p.default)(r,s)}function isTypeAnnotation(r,s){if(!r)return false;if(r.type!=="TypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isTypeCastExpression(r,s){if(!r)return false;if(r.type!=="TypeCastExpression")return false;return s==null||(0,p.default)(r,s)}function isTypeParameter(r,s){if(!r)return false;if(r.type!=="TypeParameter")return false;return s==null||(0,p.default)(r,s)}function isTypeParameterDeclaration(r,s){if(!r)return false;if(r.type!=="TypeParameterDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTypeParameterInstantiation(r,s){if(!r)return false;if(r.type!=="TypeParameterInstantiation")return false;return s==null||(0,p.default)(r,s)}function isUnionTypeAnnotation(r,s){if(!r)return false;if(r.type!=="UnionTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isVariance(r,s){if(!r)return false;if(r.type!=="Variance")return false;return s==null||(0,p.default)(r,s)}function isVoidTypeAnnotation(r,s){if(!r)return false;if(r.type!=="VoidTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isEnumDeclaration(r,s){if(!r)return false;if(r.type!=="EnumDeclaration")return false;return s==null||(0,p.default)(r,s)}function isEnumBooleanBody(r,s){if(!r)return false;if(r.type!=="EnumBooleanBody")return false;return s==null||(0,p.default)(r,s)}function isEnumNumberBody(r,s){if(!r)return false;if(r.type!=="EnumNumberBody")return false;return s==null||(0,p.default)(r,s)}function isEnumStringBody(r,s){if(!r)return false;if(r.type!=="EnumStringBody")return false;return s==null||(0,p.default)(r,s)}function isEnumSymbolBody(r,s){if(!r)return false;if(r.type!=="EnumSymbolBody")return false;return s==null||(0,p.default)(r,s)}function isEnumBooleanMember(r,s){if(!r)return false;if(r.type!=="EnumBooleanMember")return false;return s==null||(0,p.default)(r,s)}function isEnumNumberMember(r,s){if(!r)return false;if(r.type!=="EnumNumberMember")return false;return s==null||(0,p.default)(r,s)}function isEnumStringMember(r,s){if(!r)return false;if(r.type!=="EnumStringMember")return false;return s==null||(0,p.default)(r,s)}function isEnumDefaultedMember(r,s){if(!r)return false;if(r.type!=="EnumDefaultedMember")return false;return s==null||(0,p.default)(r,s)}function isIndexedAccessType(r,s){if(!r)return false;if(r.type!=="IndexedAccessType")return false;return s==null||(0,p.default)(r,s)}function isOptionalIndexedAccessType(r,s){if(!r)return false;if(r.type!=="OptionalIndexedAccessType")return false;return s==null||(0,p.default)(r,s)}function isJSXAttribute(r,s){if(!r)return false;if(r.type!=="JSXAttribute")return false;return s==null||(0,p.default)(r,s)}function isJSXClosingElement(r,s){if(!r)return false;if(r.type!=="JSXClosingElement")return false;return s==null||(0,p.default)(r,s)}function isJSXElement(r,s){if(!r)return false;if(r.type!=="JSXElement")return false;return s==null||(0,p.default)(r,s)}function isJSXEmptyExpression(r,s){if(!r)return false;if(r.type!=="JSXEmptyExpression")return false;return s==null||(0,p.default)(r,s)}function isJSXExpressionContainer(r,s){if(!r)return false;if(r.type!=="JSXExpressionContainer")return false;return s==null||(0,p.default)(r,s)}function isJSXSpreadChild(r,s){if(!r)return false;if(r.type!=="JSXSpreadChild")return false;return s==null||(0,p.default)(r,s)}function isJSXIdentifier(r,s){if(!r)return false;if(r.type!=="JSXIdentifier")return false;return s==null||(0,p.default)(r,s)}function isJSXMemberExpression(r,s){if(!r)return false;if(r.type!=="JSXMemberExpression")return false;return s==null||(0,p.default)(r,s)}function isJSXNamespacedName(r,s){if(!r)return false;if(r.type!=="JSXNamespacedName")return false;return s==null||(0,p.default)(r,s)}function isJSXOpeningElement(r,s){if(!r)return false;if(r.type!=="JSXOpeningElement")return false;return s==null||(0,p.default)(r,s)}function isJSXSpreadAttribute(r,s){if(!r)return false;if(r.type!=="JSXSpreadAttribute")return false;return s==null||(0,p.default)(r,s)}function isJSXText(r,s){if(!r)return false;if(r.type!=="JSXText")return false;return s==null||(0,p.default)(r,s)}function isJSXFragment(r,s){if(!r)return false;if(r.type!=="JSXFragment")return false;return s==null||(0,p.default)(r,s)}function isJSXOpeningFragment(r,s){if(!r)return false;if(r.type!=="JSXOpeningFragment")return false;return s==null||(0,p.default)(r,s)}function isJSXClosingFragment(r,s){if(!r)return false;if(r.type!=="JSXClosingFragment")return false;return s==null||(0,p.default)(r,s)}function isNoop(r,s){if(!r)return false;if(r.type!=="Noop")return false;return s==null||(0,p.default)(r,s)}function isPlaceholder(r,s){if(!r)return false;if(r.type!=="Placeholder")return false;return s==null||(0,p.default)(r,s)}function isV8IntrinsicIdentifier(r,s){if(!r)return false;if(r.type!=="V8IntrinsicIdentifier")return false;return s==null||(0,p.default)(r,s)}function isArgumentPlaceholder(r,s){if(!r)return false;if(r.type!=="ArgumentPlaceholder")return false;return s==null||(0,p.default)(r,s)}function isBindExpression(r,s){if(!r)return false;if(r.type!=="BindExpression")return false;return s==null||(0,p.default)(r,s)}function isDecorator(r,s){if(!r)return false;if(r.type!=="Decorator")return false;return s==null||(0,p.default)(r,s)}function isDoExpression(r,s){if(!r)return false;if(r.type!=="DoExpression")return false;return s==null||(0,p.default)(r,s)}function isExportDefaultSpecifier(r,s){if(!r)return false;if(r.type!=="ExportDefaultSpecifier")return false;return s==null||(0,p.default)(r,s)}function isRecordExpression(r,s){if(!r)return false;if(r.type!=="RecordExpression")return false;return s==null||(0,p.default)(r,s)}function isTupleExpression(r,s){if(!r)return false;if(r.type!=="TupleExpression")return false;return s==null||(0,p.default)(r,s)}function isDecimalLiteral(r,s){if(!r)return false;if(r.type!=="DecimalLiteral")return false;return s==null||(0,p.default)(r,s)}function isModuleExpression(r,s){if(!r)return false;if(r.type!=="ModuleExpression")return false;return s==null||(0,p.default)(r,s)}function isTopicReference(r,s){if(!r)return false;if(r.type!=="TopicReference")return false;return s==null||(0,p.default)(r,s)}function isPipelineTopicExpression(r,s){if(!r)return false;if(r.type!=="PipelineTopicExpression")return false;return s==null||(0,p.default)(r,s)}function isPipelineBareFunction(r,s){if(!r)return false;if(r.type!=="PipelineBareFunction")return false;return s==null||(0,p.default)(r,s)}function isPipelinePrimaryTopicReference(r,s){if(!r)return false;if(r.type!=="PipelinePrimaryTopicReference")return false;return s==null||(0,p.default)(r,s)}function isVoidPattern(r,s){if(!r)return false;if(r.type!=="VoidPattern")return false;return s==null||(0,p.default)(r,s)}function isTSParameterProperty(r,s){if(!r)return false;if(r.type!=="TSParameterProperty")return false;return s==null||(0,p.default)(r,s)}function isTSDeclareFunction(r,s){if(!r)return false;if(r.type!=="TSDeclareFunction")return false;return s==null||(0,p.default)(r,s)}function isTSDeclareMethod(r,s){if(!r)return false;if(r.type!=="TSDeclareMethod")return false;return s==null||(0,p.default)(r,s)}function isTSQualifiedName(r,s){if(!r)return false;if(r.type!=="TSQualifiedName")return false;return s==null||(0,p.default)(r,s)}function isTSCallSignatureDeclaration(r,s){if(!r)return false;if(r.type!=="TSCallSignatureDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSConstructSignatureDeclaration(r,s){if(!r)return false;if(r.type!=="TSConstructSignatureDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSPropertySignature(r,s){if(!r)return false;if(r.type!=="TSPropertySignature")return false;return s==null||(0,p.default)(r,s)}function isTSMethodSignature(r,s){if(!r)return false;if(r.type!=="TSMethodSignature")return false;return s==null||(0,p.default)(r,s)}function isTSIndexSignature(r,s){if(!r)return false;if(r.type!=="TSIndexSignature")return false;return s==null||(0,p.default)(r,s)}function isTSAnyKeyword(r,s){if(!r)return false;if(r.type!=="TSAnyKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSBooleanKeyword(r,s){if(!r)return false;if(r.type!=="TSBooleanKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSBigIntKeyword(r,s){if(!r)return false;if(r.type!=="TSBigIntKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSIntrinsicKeyword(r,s){if(!r)return false;if(r.type!=="TSIntrinsicKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSNeverKeyword(r,s){if(!r)return false;if(r.type!=="TSNeverKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSNullKeyword(r,s){if(!r)return false;if(r.type!=="TSNullKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSNumberKeyword(r,s){if(!r)return false;if(r.type!=="TSNumberKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSObjectKeyword(r,s){if(!r)return false;if(r.type!=="TSObjectKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSStringKeyword(r,s){if(!r)return false;if(r.type!=="TSStringKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSSymbolKeyword(r,s){if(!r)return false;if(r.type!=="TSSymbolKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSUndefinedKeyword(r,s){if(!r)return false;if(r.type!=="TSUndefinedKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSUnknownKeyword(r,s){if(!r)return false;if(r.type!=="TSUnknownKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSVoidKeyword(r,s){if(!r)return false;if(r.type!=="TSVoidKeyword")return false;return s==null||(0,p.default)(r,s)}function isTSThisType(r,s){if(!r)return false;if(r.type!=="TSThisType")return false;return s==null||(0,p.default)(r,s)}function isTSFunctionType(r,s){if(!r)return false;if(r.type!=="TSFunctionType")return false;return s==null||(0,p.default)(r,s)}function isTSConstructorType(r,s){if(!r)return false;if(r.type!=="TSConstructorType")return false;return s==null||(0,p.default)(r,s)}function isTSTypeReference(r,s){if(!r)return false;if(r.type!=="TSTypeReference")return false;return s==null||(0,p.default)(r,s)}function isTSTypePredicate(r,s){if(!r)return false;if(r.type!=="TSTypePredicate")return false;return s==null||(0,p.default)(r,s)}function isTSTypeQuery(r,s){if(!r)return false;if(r.type!=="TSTypeQuery")return false;return s==null||(0,p.default)(r,s)}function isTSTypeLiteral(r,s){if(!r)return false;if(r.type!=="TSTypeLiteral")return false;return s==null||(0,p.default)(r,s)}function isTSArrayType(r,s){if(!r)return false;if(r.type!=="TSArrayType")return false;return s==null||(0,p.default)(r,s)}function isTSTupleType(r,s){if(!r)return false;if(r.type!=="TSTupleType")return false;return s==null||(0,p.default)(r,s)}function isTSOptionalType(r,s){if(!r)return false;if(r.type!=="TSOptionalType")return false;return s==null||(0,p.default)(r,s)}function isTSRestType(r,s){if(!r)return false;if(r.type!=="TSRestType")return false;return s==null||(0,p.default)(r,s)}function isTSNamedTupleMember(r,s){if(!r)return false;if(r.type!=="TSNamedTupleMember")return false;return s==null||(0,p.default)(r,s)}function isTSUnionType(r,s){if(!r)return false;if(r.type!=="TSUnionType")return false;return s==null||(0,p.default)(r,s)}function isTSIntersectionType(r,s){if(!r)return false;if(r.type!=="TSIntersectionType")return false;return s==null||(0,p.default)(r,s)}function isTSConditionalType(r,s){if(!r)return false;if(r.type!=="TSConditionalType")return false;return s==null||(0,p.default)(r,s)}function isTSInferType(r,s){if(!r)return false;if(r.type!=="TSInferType")return false;return s==null||(0,p.default)(r,s)}function isTSParenthesizedType(r,s){if(!r)return false;if(r.type!=="TSParenthesizedType")return false;return s==null||(0,p.default)(r,s)}function isTSTypeOperator(r,s){if(!r)return false;if(r.type!=="TSTypeOperator")return false;return s==null||(0,p.default)(r,s)}function isTSIndexedAccessType(r,s){if(!r)return false;if(r.type!=="TSIndexedAccessType")return false;return s==null||(0,p.default)(r,s)}function isTSMappedType(r,s){if(!r)return false;if(r.type!=="TSMappedType")return false;return s==null||(0,p.default)(r,s)}function isTSTemplateLiteralType(r,s){if(!r)return false;if(r.type!=="TSTemplateLiteralType")return false;return s==null||(0,p.default)(r,s)}function isTSLiteralType(r,s){if(!r)return false;if(r.type!=="TSLiteralType")return false;return s==null||(0,p.default)(r,s)}function isTSExpressionWithTypeArguments(r,s){if(!r)return false;if(r.type!=="TSExpressionWithTypeArguments")return false;return s==null||(0,p.default)(r,s)}function isTSInterfaceDeclaration(r,s){if(!r)return false;if(r.type!=="TSInterfaceDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSInterfaceBody(r,s){if(!r)return false;if(r.type!=="TSInterfaceBody")return false;return s==null||(0,p.default)(r,s)}function isTSTypeAliasDeclaration(r,s){if(!r)return false;if(r.type!=="TSTypeAliasDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSInstantiationExpression(r,s){if(!r)return false;if(r.type!=="TSInstantiationExpression")return false;return s==null||(0,p.default)(r,s)}function isTSAsExpression(r,s){if(!r)return false;if(r.type!=="TSAsExpression")return false;return s==null||(0,p.default)(r,s)}function isTSSatisfiesExpression(r,s){if(!r)return false;if(r.type!=="TSSatisfiesExpression")return false;return s==null||(0,p.default)(r,s)}function isTSTypeAssertion(r,s){if(!r)return false;if(r.type!=="TSTypeAssertion")return false;return s==null||(0,p.default)(r,s)}function isTSEnumBody(r,s){if(!r)return false;if(r.type!=="TSEnumBody")return false;return s==null||(0,p.default)(r,s)}function isTSEnumDeclaration(r,s){if(!r)return false;if(r.type!=="TSEnumDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSEnumMember(r,s){if(!r)return false;if(r.type!=="TSEnumMember")return false;return s==null||(0,p.default)(r,s)}function isTSModuleDeclaration(r,s){if(!r)return false;if(r.type!=="TSModuleDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSModuleBlock(r,s){if(!r)return false;if(r.type!=="TSModuleBlock")return false;return s==null||(0,p.default)(r,s)}function isTSImportType(r,s){if(!r)return false;if(r.type!=="TSImportType")return false;return s==null||(0,p.default)(r,s)}function isTSImportEqualsDeclaration(r,s){if(!r)return false;if(r.type!=="TSImportEqualsDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSExternalModuleReference(r,s){if(!r)return false;if(r.type!=="TSExternalModuleReference")return false;return s==null||(0,p.default)(r,s)}function isTSNonNullExpression(r,s){if(!r)return false;if(r.type!=="TSNonNullExpression")return false;return s==null||(0,p.default)(r,s)}function isTSExportAssignment(r,s){if(!r)return false;if(r.type!=="TSExportAssignment")return false;return s==null||(0,p.default)(r,s)}function isTSNamespaceExportDeclaration(r,s){if(!r)return false;if(r.type!=="TSNamespaceExportDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSTypeAnnotation(r,s){if(!r)return false;if(r.type!=="TSTypeAnnotation")return false;return s==null||(0,p.default)(r,s)}function isTSTypeParameterInstantiation(r,s){if(!r)return false;if(r.type!=="TSTypeParameterInstantiation")return false;return s==null||(0,p.default)(r,s)}function isTSTypeParameterDeclaration(r,s){if(!r)return false;if(r.type!=="TSTypeParameterDeclaration")return false;return s==null||(0,p.default)(r,s)}function isTSTypeParameter(r,s){if(!r)return false;if(r.type!=="TSTypeParameter")return false;return s==null||(0,p.default)(r,s)}function isStandardized(r,s){if(!r)return false;switch(r.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(r.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return false}break;default:return false}return s==null||(0,p.default)(r,s)}function isExpression(r,s){if(!r)return false;switch(r.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(r.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return false}break;default:return false}return s==null||(0,p.default)(r,s)}function isBinary(r,s){if(!r)return false;switch(r.type){case"BinaryExpression":case"LogicalExpression":break;default:return false}return s==null||(0,p.default)(r,s)}function isScopable(r,s){if(!r)return false;switch(r.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(r.expectedNode==="BlockStatement")break;default:return false}return s==null||(0,p.default)(r,s)}function isBlockParent(r,s){if(!r)return false;switch(r.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(r.expectedNode==="BlockStatement")break;default:return false}return s==null||(0,p.default)(r,s)}function isBlock(r,s){if(!r)return false;switch(r.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(r.expectedNode==="BlockStatement")break;default:return false}return s==null||(0,p.default)(r,s)}function isStatement(r,s){if(!r)return false;switch(r.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(r.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return false}break;default:return false}return s==null||(0,p.default)(r,s)}function isTerminatorless(r,s){if(!r)return false;switch(r.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return false}return s==null||(0,p.default)(r,s)}function isCompletionStatement(r,s){if(!r)return false;switch(r.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return false}return s==null||(0,p.default)(r,s)}function isConditional(r,s){if(!r)return false;switch(r.type){case"ConditionalExpression":case"IfStatement":break;default:return false}return s==null||(0,p.default)(r,s)}function isLoop(r,s){if(!r)return false;switch(r.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return false}return s==null||(0,p.default)(r,s)}function isWhile(r,s){if(!r)return false;switch(r.type){case"DoWhileStatement":case"WhileStatement":break;default:return false}return s==null||(0,p.default)(r,s)}function isExpressionWrapper(r,s){if(!r)return false;switch(r.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return false}return s==null||(0,p.default)(r,s)}function isFor(r,s){if(!r)return false;switch(r.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return false}return s==null||(0,p.default)(r,s)}function isForXStatement(r,s){if(!r)return false;switch(r.type){case"ForInStatement":case"ForOfStatement":break;default:return false}return s==null||(0,p.default)(r,s)}function isFunction(r,s){if(!r)return false;switch(r.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return false}return s==null||(0,p.default)(r,s)}function isFunctionParent(r,s){if(!r)return false;switch(r.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return false}return s==null||(0,p.default)(r,s)}function isPureish(r,s){if(!r)return false;switch(r.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(r.expectedNode==="StringLiteral")break;default:return false}return s==null||(0,p.default)(r,s)}function isDeclaration(r,s){if(!r)return false;switch(r.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(r.expectedNode==="Declaration")break;default:return false}return s==null||(0,p.default)(r,s)}function isFunctionParameter(r,s){if(!r)return false;switch(r.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(r.expectedNode==="Identifier")break;default:return false}return s==null||(0,p.default)(r,s)}function isPatternLike(r,s){if(!r)return false;switch(r.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(r.expectedNode){case"Pattern":case"Identifier":break;default:return false}break;default:return false}return s==null||(0,p.default)(r,s)}function isLVal(r,s){if(!r)return false;switch(r.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(r.expectedNode){case"Pattern":case"Identifier":break;default:return false}break;default:return false}return s==null||(0,p.default)(r,s)}function isTSEntityName(r,s){if(!r)return false;switch(r.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(r.expectedNode==="Identifier")break;default:return false}return s==null||(0,p.default)(r,s)}function isLiteral(r,s){if(!r)return false;switch(r.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(r.expectedNode==="StringLiteral")break;default:return false}return s==null||(0,p.default)(r,s)}function isImmutable(r,s){if(!r)return false;switch(r.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(r.expectedNode==="StringLiteral")break;default:return false}return s==null||(0,p.default)(r,s)}function isUserWhitespacable(r,s){if(!r)return false;switch(r.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return false}return s==null||(0,p.default)(r,s)}function isMethod(r,s){if(!r)return false;switch(r.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return false}return s==null||(0,p.default)(r,s)}function isObjectMember(r,s){if(!r)return false;switch(r.type){case"ObjectMethod":case"ObjectProperty":break;default:return false}return s==null||(0,p.default)(r,s)}function isProperty(r,s){if(!r)return false;switch(r.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return false}return s==null||(0,p.default)(r,s)}function isUnaryLike(r,s){if(!r)return false;switch(r.type){case"UnaryExpression":case"SpreadElement":break;default:return false}return s==null||(0,p.default)(r,s)}function isPattern(r,s){if(!r)return false;switch(r.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(r.expectedNode==="Pattern")break;default:return false}return s==null||(0,p.default)(r,s)}function isClass(r,s){if(!r)return false;switch(r.type){case"ClassExpression":case"ClassDeclaration":break;default:return false}return s==null||(0,p.default)(r,s)}function isImportOrExportDeclaration(r,s){if(!r)return false;switch(r.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return false}return s==null||(0,p.default)(r,s)}function isExportDeclaration(r,s){if(!r)return false;switch(r.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return false}return s==null||(0,p.default)(r,s)}function isModuleSpecifier(r,s){if(!r)return false;switch(r.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return false}return s==null||(0,p.default)(r,s)}function isAccessor(r,s){if(!r)return false;switch(r.type){case"ClassAccessorProperty":break;default:return false}return s==null||(0,p.default)(r,s)}function isPrivate(r,s){if(!r)return false;switch(r.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return false}return s==null||(0,p.default)(r,s)}function isFlow(r,s){if(!r)return false;switch(r.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return false}return s==null||(0,p.default)(r,s)}function isFlowType(r,s){if(!r)return false;switch(r.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return false}return s==null||(0,p.default)(r,s)}function isFlowBaseAnnotation(r,s){if(!r)return false;switch(r.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return false}return s==null||(0,p.default)(r,s)}function isFlowDeclaration(r,s){if(!r)return false;switch(r.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return false}return s==null||(0,p.default)(r,s)}function isFlowPredicate(r,s){if(!r)return false;switch(r.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return false}return s==null||(0,p.default)(r,s)}function isEnumBody(r,s){if(!r)return false;switch(r.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return false}return s==null||(0,p.default)(r,s)}function isEnumMember(r,s){if(!r)return false;switch(r.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return false}return s==null||(0,p.default)(r,s)}function isJSX(r,s){if(!r)return false;switch(r.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 false}return s==null||(0,p.default)(r,s)}function isMiscellaneous(r,s){if(!r)return false;switch(r.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return false}return s==null||(0,p.default)(r,s)}function isTypeScript(r,s){if(!r)return false;switch(r.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"TSExpressionWithTypeArguments":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 false}return s==null||(0,p.default)(r,s)}function isTSTypeElement(r,s){if(!r)return false;switch(r.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return false}return s==null||(0,p.default)(r,s)}function isTSType(r,s){if(!r)return false;switch(r.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return false}return s==null||(0,p.default)(r,s)}function isTSBaseType(r,s){if(!r)return false;switch(r.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 false}return s==null||(0,p.default)(r,s)}function isNumberLiteral(r,s){(0,d.default)("isNumberLiteral","isNumericLiteral");if(!r)return false;if(r.type!=="NumberLiteral")return false;return s==null||(0,p.default)(r,s)}function isRegexLiteral(r,s){(0,d.default)("isRegexLiteral","isRegExpLiteral");if(!r)return false;if(r.type!=="RegexLiteral")return false;return s==null||(0,p.default)(r,s)}function isRestProperty(r,s){(0,d.default)("isRestProperty","isRestElement");if(!r)return false;if(r.type!=="RestProperty")return false;return s==null||(0,p.default)(r,s)}function isSpreadProperty(r,s){(0,d.default)("isSpreadProperty","isSpreadElement");if(!r)return false;if(r.type!=="SpreadProperty")return false;return s==null||(0,p.default)(r,s)}function isModuleDeclaration(r,s){(0,d.default)("isModuleDeclaration","isImportOrExportDeclaration");return isImportOrExportDeclaration(r,s)}},3762:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=is;var p=l(4118);var d=l(3178);var m=l(2617);var y=l(8723);function is(r,s,l){if(!s)return false;const g=(0,d.default)(s.type,r);if(!g){if(!l&&s.type==="Placeholder"&&r in y.FLIPPED_ALIAS_KEYS){return(0,m.default)(s.expectedNode,r)}return false}if(l===undefined){return true}else{return(0,p.default)(s,l)}}},5361:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isBinding;var p=l(639);function isBinding(r,s,l){if(l&&r.type==="Identifier"&&s.type==="ObjectProperty"&&l.type==="ObjectExpression"){return false}const d=p.default.keys[s.type];if(d){for(let l=0;l<d.length;l++){const p=d[l];const m=s[p];if(Array.isArray(m)){if(m.includes(r))return true}else{if(m===r)return true}}}return false}},8909:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isBlockScoped;var p=l(3370);var d=l(1177);function isBlockScoped(r){return(0,p.isFunctionDeclaration)(r)||(0,p.isClassDeclaration)(r)||(0,d.default)(r)}},8840:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isImmutable;var p=l(3178);var d=l(3370);function isImmutable(r){if((0,p.default)(r.type,"Immutable"))return true;if((0,d.isIdentifier)(r)){if(r.name==="undefined"){return true}else{return false}}return false}},1177:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isLet;var p=l(3370);{var d=Symbol.for("var used to be block scoped")}function isLet(r){{return(0,p.isVariableDeclaration)(r)&&(r.kind!=="var"||r[d])}}},6714:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isNode;var p=l(8723);function isNode(r){return!!(r&&p.VISITOR_KEYS[r.type])}},7417:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isNodesEquivalent;var p=l(8723);function isNodesEquivalent(r,s){if(typeof r!=="object"||typeof s!=="object"||r==null||s==null){return r===s}if(r.type!==s.type){return false}const l=Object.keys(p.NODE_FIELDS[r.type]||r.type);const d=p.VISITOR_KEYS[r.type];for(const p of l){const l=r[p];const m=s[p];if(typeof l!==typeof m){return false}if(l==null&&m==null){continue}else if(l==null||m==null){return false}if(Array.isArray(l)){if(!Array.isArray(m)){return false}if(l.length!==m.length){return false}for(let r=0;r<l.length;r++){if(!isNodesEquivalent(l[r],m[r])){return false}}continue}if(typeof l==="object"&&!(d!=null&&d.includes(p))){for(const r of Object.keys(l)){if(l[r]!==m[r]){return false}}continue}if(!isNodesEquivalent(l,m)){return false}}return true}},2617:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isPlaceholderType;var p=l(8723);function isPlaceholderType(r,s){if(r===s)return true;const l=p.PLACEHOLDERS_ALIAS[r];if(l!=null&&l.includes(s))return true;return false}},6793:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isReferenced;function isReferenced(r,s,l){switch(s.type){case"MemberExpression":case"OptionalMemberExpression":if(s.property===r){return!!s.computed}return s.object===r;case"JSXMemberExpression":return s.object===r;case"VariableDeclarator":return s.init===r;case"ArrowFunctionExpression":return s.body===r;case"PrivateName":return false;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(s.key===r){return!!s.computed}return false;case"ObjectProperty":if(s.key===r){return!!s.computed}return!l||l.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(s.key===r){return!!s.computed}return true;case"ClassPrivateProperty":return s.key!==r;case"ClassDeclaration":case"ClassExpression":return s.superClass===r;case"AssignmentExpression":return s.right===r;case"AssignmentPattern":return s.right===r;case"LabeledStatement":return false;case"CatchClause":return false;case"RestElement":return false;case"BreakStatement":case"ContinueStatement":return false;case"FunctionDeclaration":case"FunctionExpression":return false;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return false;case"ExportSpecifier":if(l!=null&&l.source){return false}return s.local===r;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return false;case"ImportAttribute":return false;case"JSXAttribute":return false;case"ObjectPattern":case"ArrayPattern":return false;case"MetaProperty":return false;case"ObjectTypeProperty":return s.key!==r;case"TSEnumMember":return s.id!==r;case"TSPropertySignature":if(s.key===r){return!!s.computed}return true}return true}},7884:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isScope;var p=l(3370);function isScope(r,s){if((0,p.isBlockStatement)(r)&&((0,p.isFunction)(s)||(0,p.isCatchClause)(s))){return false}if((0,p.isPattern)(r)&&((0,p.isFunction)(s)||(0,p.isCatchClause)(s))){return true}return(0,p.isScopable)(r)}},6427:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isSpecifierDefault;var p=l(3370);function isSpecifierDefault(r){return(0,p.isImportDefaultSpecifier)(r)||(0,p.isIdentifier)(r.imported||r.exported,{name:"default"})}},3178:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isType;var p=l(8723);function isType(r,s){if(r===s)return true;if(r==null)return false;if(p.ALIAS_KEYS[s])return false;const l=p.FLIPPED_ALIAS_KEYS[s];if(l!=null&&l.includes(r))return true;return false}},830:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isValidES3Identifier;var p=l(1017);const d=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 isValidES3Identifier(r){return(0,p.default)(r)&&!d.has(r)}},1017:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isValidIdentifier;var p=l(2530);function isValidIdentifier(r,s=true){if(typeof r!=="string")return false;if(s){if((0,p.isKeyword)(r)||(0,p.isStrictReservedWord)(r,true)){return false}}return(0,p.isIdentifierName)(r)}},6405:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isVar;var p=l(3370);{var d=Symbol.for("var used to be block scoped")}function isVar(r){{return(0,p.isVariableDeclaration)(r,{kind:"var"})&&!r[d]}}},9711:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=matchesPattern;var p=l(3370);function isMemberExpressionLike(r){return(0,p.isMemberExpression)(r)||(0,p.isMetaProperty)(r)}function matchesPattern(r,s,l){if(!isMemberExpressionLike(r))return false;const d=Array.isArray(s)?s:s.split(".");const m=[];let y;for(y=r;isMemberExpressionLike(y);y=(g=y.object)!=null?g:y.meta){var g;m.push(y.property)}m.push(y);if(m.length<d.length)return false;if(!l&&m.length>d.length)return false;for(let r=0,s=m.length-1;r<d.length;r++,s--){const l=m[s];let y;if((0,p.isIdentifier)(l)){y=l.name}else if((0,p.isStringLiteral)(l)){y=l.value}else if((0,p.isThisExpression)(l)){y="this"}else if((0,p.isSuper)(l)){y="super"}else if((0,p.isPrivateName)(l)){y="#"+l.id.name}else{return false}if(d[r]!==y)return false}return true}},7182:(r,s)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=isCompatTag;function isCompatTag(r){return!!r&&/^[a-z]/.test(r)}},7872:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=void 0;var p=l(1607);const d=(0,p.default)("React.Component");var m=s["default"]=d},1772:(r,s,l)=>{Object.defineProperty(s,"__esModule",{value:true});s["default"]=validate;s.validateChild=validateChild;s.validateField=validateField;s.validateInternal=validateInternal;var p=l(8723);function validate(r,s,l){if(!r)return;const d=p.NODE_FIELDS[r.type];if(!d)return;const m=d[s];validateField(r,s,l,m);validateChild(r,s,l)}function validateInternal(r,s,l,d,m){if(!(r!=null&&r.validate))return;if(r.optional&&d==null)return;r.validate(s,l,d);if(m){var y;const r=d.type;if(r==null)return;(y=p.NODE_PARENT_VALIDATIONS[r])==null||y.call(p.NODE_PARENT_VALIDATIONS,s,l,d)}}function validateField(r,s,l,p){if(!(p!=null&&p.validate))return;if(p.optional&&l==null)return;p.validate(r,s,l)}function validateChild(r,s,l){var d;const m=l==null?void 0:l.type;if(m==null)return;(d=p.NODE_PARENT_VALIDATIONS[m])==null||d.call(p.NODE_PARENT_VALIDATIONS,r,s,l)}},8786:(r,s,l)=>{const{Argument:p}=l(2531);const{Command:d}=l(9331);const{CommanderError:m,InvalidArgumentError:y}=l(9588);const{Help:g}=l(8083);const{Option:T}=l(9309);s.DM=new d;s.gu=r=>new d(r);s.Ww=(r,s)=>new T(r,s);s.er=(r,s)=>new p(r,s);s.uB=d;s.c$=T;s.ef=p;s._V=g;s.b7=m;s.Di=y;s.a2=y},2531:(r,s,l)=>{const{InvalidArgumentError:p}=l(9588);class Argument{constructor(r,s){this.description=s||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(r[0]){case"<":this.required=true;this._name=r.slice(1,-1);break;case"[":this.required=false;this._name=r.slice(1,-1);break;default:this.required=true;this._name=r;break}if(this._name.endsWith("...")){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_collectValue(r,s){if(s===this.defaultValue||!Array.isArray(s)){return[r]}s.push(r);return s}default(r,s){this.defaultValue=r;this.defaultValueDescription=s;return this}argParser(r){this.parseArg=r;return this}choices(r){this.argChoices=r.slice();this.parseArg=(r,s)=>{if(!this.argChoices.includes(r)){throw new p(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._collectValue(r,s)}return r};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(r){const s=r.name()+(r.variadic===true?"...":"");return r.required?"<"+s+">":"["+s+"]"}s.Argument=Argument;s.humanReadableArgName=humanReadableArgName},9331:(r,s,l)=>{const p=l(8474).EventEmitter;const d=l(1421);const m=l(6760);const y=l(3024);const g=l(1708);const{Argument:T,humanReadableArgName:b}=l(2531);const{CommanderError:E}=l(9588);const{Help:S,stripColor:_}=l(8083);const{Option:x,DualOptions:w}=l(9309);const{suggestSimilar:v}=l(4175);class Command extends p{constructor(r){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=false;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=r||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._savedState=null;this._outputConfiguration={writeOut:r=>g.stdout.write(r),writeErr:r=>g.stderr.write(r),outputError:(r,s)=>s(r),getOutHelpWidth:()=>g.stdout.isTTY?g.stdout.columns:undefined,getErrHelpWidth:()=>g.stderr.isTTY?g.stderr.columns:undefined,getOutHasColors:()=>useColor()??(g.stdout.isTTY&&g.stdout.hasColors?.()),getErrHasColors:()=>useColor()??(g.stderr.isTTY&&g.stderr.hasColors?.()),stripColor:r=>_(r)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={};this._helpGroupHeading=undefined;this._defaultCommandGroup=undefined;this._defaultOptionGroup=undefined}copyInheritedSettings(r){this._outputConfiguration=r._outputConfiguration;this._helpOption=r._helpOption;this._helpCommand=r._helpCommand;this._helpConfiguration=r._helpConfiguration;this._exitCallback=r._exitCallback;this._storeOptionsAsProperties=r._storeOptionsAsProperties;this._combineFlagAndOptionalValue=r._combineFlagAndOptionalValue;this._allowExcessArguments=r._allowExcessArguments;this._enablePositionalOptions=r._enablePositionalOptions;this._showHelpAfterError=r._showHelpAfterError;this._showSuggestionAfterError=r._showSuggestionAfterError;return this}_getCommandAndAncestors(){const r=[];for(let s=this;s;s=s.parent){r.push(s)}return r}command(r,s,l){let p=s;let d=l;if(typeof p==="object"&&p!==null){d=p;p=null}d=d||{};const[,m,y]=r.match(/([^ ]+) *(.*)/);const g=this.createCommand(m);if(p){g.description(p);g._executableHandler=true}if(d.isDefault)this._defaultCommandName=g._name;g._hidden=!!(d.noHelp||d.hidden);g._executableFile=d.executableFile||null;if(y)g.arguments(y);this._registerCommand(g);g.parent=this;g.copyInheritedSettings(this);if(p)return this;return g}createCommand(r){return new Command(r)}createHelp(){return Object.assign(new S,this.configureHelp())}configureHelp(r){if(r===undefined)return this._helpConfiguration;this._helpConfiguration=r;return this}configureOutput(r){if(r===undefined)return this._outputConfiguration;this._outputConfiguration={...this._outputConfiguration,...r};return this}showHelpAfterError(r=true){if(typeof r!=="string")r=!!r;this._showHelpAfterError=r;return this}showSuggestionAfterError(r=true){this._showSuggestionAfterError=!!r;return this}addCommand(r,s){if(!r._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}s=s||{};if(s.isDefault)this._defaultCommandName=r._name;if(s.noHelp||s.hidden)r._hidden=true;this._registerCommand(r);r.parent=this;r._checkForBrokenPassThrough();return this}createArgument(r,s){return new T(r,s)}argument(r,s,l,p){const d=this.createArgument(r,s);if(typeof l==="function"){d.default(p).argParser(l)}else{d.default(l)}this.addArgument(d);return this}arguments(r){r.trim().split(/ +/).forEach((r=>{this.argument(r)}));return this}addArgument(r){const s=this.registeredArguments.slice(-1)[0];if(s?.variadic){throw new Error(`only the last argument can be variadic '${s.name()}'`)}if(r.required&&r.defaultValue!==undefined&&r.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${r.name()}'`)}this.registeredArguments.push(r);return this}helpCommand(r,s){if(typeof r==="boolean"){this._addImplicitHelpCommand=r;if(r&&this._defaultCommandGroup){this._initCommandGroup(this._getHelpCommand())}return this}const l=r??"help [command]";const[,p,d]=l.match(/([^ ]+) *(.*)/);const m=s??"display help for command";const y=this.createCommand(p);y.helpOption(false);if(d)y.arguments(d);if(m)y.description(m);this._addImplicitHelpCommand=true;this._helpCommand=y;if(r||s)this._initCommandGroup(y);return this}addHelpCommand(r,s){if(typeof r!=="object"){this.helpCommand(r,s);return this}this._addImplicitHelpCommand=true;this._helpCommand=r;this._initCommandGroup(r);return this}_getHelpCommand(){const r=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(r){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(r,s){const l=["preSubcommand","preAction","postAction"];if(!l.includes(r)){throw new Error(`Unexpected value for event passed to hook : '${r}'.\nExpecting one of '${l.join("', '")}'`)}if(this._lifeCycleHooks[r]){this._lifeCycleHooks[r].push(s)}else{this._lifeCycleHooks[r]=[s]}return this}exitOverride(r){if(r){this._exitCallback=r}else{this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync"){throw r}else{}}}return this}_exit(r,s,l){if(this._exitCallback){this._exitCallback(new E(r,s,l))}g.exit(r)}action(r){const listener=s=>{const l=this.registeredArguments.length;const p=s.slice(0,l);if(this._storeOptionsAsProperties){p[l]=this}else{p[l]=this.opts()}p.push(this);return r.apply(this,p)};this._actionHandler=listener;return this}createOption(r,s){return new x(r,s)}_callParseArg(r,s,l,p){try{return r.parseArg(s,l)}catch(r){if(r.code==="commander.invalidArgument"){const s=`${p} ${r.message}`;this.error(s,{exitCode:r.exitCode,code:r.code})}throw r}}_registerOption(r){const s=r.short&&this._findOption(r.short)||r.long&&this._findOption(r.long);if(s){const l=r.long&&this._findOption(r.long)?r.long:r.short;throw new Error(`Cannot add option '${r.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${l}'\n- already used by option '${s.flags}'`)}this._initOptionGroup(r);this.options.push(r)}_registerCommand(r){const knownBy=r=>[r.name()].concat(r.aliases());const s=knownBy(r).find((r=>this._findCommand(r)));if(s){const l=knownBy(this._findCommand(s)).join("|");const p=knownBy(r).join("|");throw new Error(`cannot add command '${p}' as already have command '${l}'`)}this._initCommandGroup(r);this.commands.push(r)}addOption(r){this._registerOption(r);const s=r.name();const l=r.attributeName();if(r.negate){const s=r.long.replace(/^--no-/,"--");if(!this._findOption(s)){this.setOptionValueWithSource(l,r.defaultValue===undefined?true:r.defaultValue,"default")}}else if(r.defaultValue!==undefined){this.setOptionValueWithSource(l,r.defaultValue,"default")}const handleOptionValue=(s,p,d)=>{if(s==null&&r.presetArg!==undefined){s=r.presetArg}const m=this.getOptionValue(l);if(s!==null&&r.parseArg){s=this._callParseArg(r,s,m,p)}else if(s!==null&&r.variadic){s=r._collectValue(s,m)}if(s==null){if(r.negate){s=false}else if(r.isBoolean()||r.optional){s=true}else{s=""}}this.setOptionValueWithSource(l,s,d)};this.on("option:"+s,(s=>{const l=`error: option '${r.flags}' argument '${s}' is invalid.`;handleOptionValue(s,l,"cli")}));if(r.envVar){this.on("optionEnv:"+s,(s=>{const l=`error: option '${r.flags}' value '${s}' from env '${r.envVar}' is invalid.`;handleOptionValue(s,l,"env")}))}return this}_optionEx(r,s,l,p,d){if(typeof s==="object"&&s instanceof x){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const m=this.createOption(s,l);m.makeOptionMandatory(!!r.mandatory);if(typeof p==="function"){m.default(d).argParser(p)}else if(p instanceof RegExp){const r=p;p=(s,l)=>{const p=r.exec(s);return p?p[0]:l};m.default(d).argParser(p)}else{m.default(p)}return this.addOption(m)}option(r,s,l,p){return this._optionEx({},r,s,l,p)}requiredOption(r,s,l,p){return this._optionEx({mandatory:true},r,s,l,p)}combineFlagAndOptionalValue(r=true){this._combineFlagAndOptionalValue=!!r;return this}allowUnknownOption(r=true){this._allowUnknownOption=!!r;return this}allowExcessArguments(r=true){this._allowExcessArguments=!!r;return this}enablePositionalOptions(r=true){this._enablePositionalOptions=!!r;return this}passThroughOptions(r=true){this._passThroughOptions=!!r;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(r=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!r;return this}getOptionValue(r){if(this._storeOptionsAsProperties){return this[r]}return this._optionValues[r]}setOptionValue(r,s){return this.setOptionValueWithSource(r,s,undefined)}setOptionValueWithSource(r,s,l){if(this._storeOptionsAsProperties){this[r]=s}else{this._optionValues[r]=s}this._optionValueSources[r]=l;return this}getOptionValueSource(r){return this._optionValueSources[r]}getOptionValueSourceWithGlobals(r){let s;this._getCommandAndAncestors().forEach((l=>{if(l.getOptionValueSource(r)!==undefined){s=l.getOptionValueSource(r)}}));return s}_prepareUserArgs(r,s){if(r!==undefined&&!Array.isArray(r)){throw new Error("first parameter to parse must be array or undefined")}s=s||{};if(r===undefined&&s.from===undefined){if(g.versions?.electron){s.from="electron"}const r=g.execArgv??[];if(r.includes("-e")||r.includes("--eval")||r.includes("-p")||r.includes("--print")){s.from="eval"}}if(r===undefined){r=g.argv}this.rawArgs=r.slice();let l;switch(s.from){case undefined:case"node":this._scriptPath=r[1];l=r.slice(2);break;case"electron":if(g.defaultApp){this._scriptPath=r[1];l=r.slice(2)}else{l=r.slice(1)}break;case"user":l=r.slice(0);break;case"eval":l=r.slice(1);break;default:throw new Error(`unexpected parse option { from: '${s.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return l}parse(r,s){this._prepareForParse();const l=this._prepareUserArgs(r,s);this._parseCommand([],l);return this}async parseAsync(r,s){this._prepareForParse();const l=this._prepareUserArgs(r,s);await this._parseCommand([],l);return this}_prepareForParse(){if(this._savedState===null){this.saveStateBeforeParse()}else{this.restoreStateBeforeParse()}}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name;this._scriptPath=null;this.rawArgs=[];this._optionValues={...this._savedState._optionValues};this._optionValueSources={...this._savedState._optionValueSources};this.args=[];this.processedArgs=[]}_checkForMissingExecutable(r,s,l){if(y.existsSync(r))return;const p=s?`searched for local subcommand relative to directory '${s}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const d=`'${r}' does not exist\n - if '${l}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${p}`;throw new Error(d)}_executeSubCommand(r,s){s=s.slice();let l=false;const p=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(r,s){const l=m.resolve(r,s);if(y.existsSync(l))return l;if(p.includes(m.extname(s)))return undefined;const d=p.find((r=>y.existsSync(`${l}${r}`)));if(d)return`${l}${d}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let T=r._executableFile||`${this._name}-${r._name}`;let b=this._executableDir||"";if(this._scriptPath){let r;try{r=y.realpathSync(this._scriptPath)}catch{r=this._scriptPath}b=m.resolve(m.dirname(r),b)}if(b){let s=findFile(b,T);if(!s&&!r._executableFile&&this._scriptPath){const l=m.basename(this._scriptPath,m.extname(this._scriptPath));if(l!==this._name){s=findFile(b,`${l}-${r._name}`)}}T=s||T}l=p.includes(m.extname(T));let S;if(g.platform!=="win32"){if(l){s.unshift(T);s=incrementNodeInspectorPort(g.execArgv).concat(s);S=d.spawn(g.argv[0],s,{stdio:"inherit"})}else{S=d.spawn(T,s,{stdio:"inherit"})}}else{this._checkForMissingExecutable(T,b,r._name);s.unshift(T);s=incrementNodeInspectorPort(g.execArgv).concat(s);S=d.spawn(g.execPath,s,{stdio:"inherit"})}if(!S.killed){const r=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];r.forEach((r=>{g.on(r,(()=>{if(S.killed===false&&S.exitCode===null){S.kill(r)}}))}))}const _=this._exitCallback;S.on("close",(r=>{r=r??1;if(!_){g.exit(r)}else{_(new E(r,"commander.executeSubCommandAsync","(close)"))}}));S.on("error",(s=>{if(s.code==="ENOENT"){this._checkForMissingExecutable(T,b,r._name)}else if(s.code==="EACCES"){throw new Error(`'${T}' not executable`)}if(!_){g.exit(1)}else{const r=new E(1,"commander.executeSubCommandAsync","(error)");r.nestedError=s;_(r)}}));this.runningCommand=S}_dispatchSubcommand(r,s,l){const p=this._findCommand(r);if(!p)this.help({error:true});p._prepareForParse();let d;d=this._chainOrCallSubCommandHook(d,p,"preSubcommand");d=this._chainOrCall(d,(()=>{if(p._executableHandler){this._executeSubCommand(p,s.concat(l))}else{return p._parseCommand(s,l)}}));return d}_dispatchHelpCommand(r){if(!r){this.help()}const s=this._findCommand(r);if(s&&!s._executableHandler){s.help()}return this._dispatchSubcommand(r,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((r,s)=>{if(r.required&&this.args[s]==null){this.missingArgument(r.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(r,s,l)=>{let p=s;if(s!==null&&r.parseArg){const d=`error: command-argument value '${s}' is invalid for argument '${r.name()}'.`;p=this._callParseArg(r,s,l,d)}return p};this._checkNumberOfArguments();const r=[];this.registeredArguments.forEach(((s,l)=>{let p=s.defaultValue;if(s.variadic){if(l<this.args.length){p=this.args.slice(l);if(s.parseArg){p=p.reduce(((r,l)=>myParseArg(s,l,r)),s.defaultValue)}}else if(p===undefined){p=[]}}else if(l<this.args.length){p=this.args[l];if(s.parseArg){p=myParseArg(s,p,s.defaultValue)}}r[l]=p}));this.processedArgs=r}_chainOrCall(r,s){if(r?.then&&typeof r.then==="function"){return r.then((()=>s()))}return s()}_chainOrCallHooks(r,s){let l=r;const p=[];this._getCommandAndAncestors().reverse().filter((r=>r._lifeCycleHooks[s]!==undefined)).forEach((r=>{r._lifeCycleHooks[s].forEach((s=>{p.push({hookedCommand:r,callback:s})}))}));if(s==="postAction"){p.reverse()}p.forEach((r=>{l=this._chainOrCall(l,(()=>r.callback(r.hookedCommand,this)))}));return l}_chainOrCallSubCommandHook(r,s,l){let p=r;if(this._lifeCycleHooks[l]!==undefined){this._lifeCycleHooks[l].forEach((r=>{p=this._chainOrCall(p,(()=>r(this,s)))}))}return p}_parseCommand(r,s){const l=this.parseOptions(s);this._parseOptionsEnv();this._parseOptionsImplied();r=r.concat(l.operands);s=l.unknown;this.args=r.concat(s);if(r&&this._findCommand(r[0])){return this._dispatchSubcommand(r[0],r.slice(1),s)}if(this._getHelpCommand()&&r[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(r[1])}if(this._defaultCommandName){this._outputHelpIfRequested(s);return this._dispatchSubcommand(this._defaultCommandName,r,s)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(l.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(l.unknown.length>0){this.unknownOption(l.unknown[0])}};const p=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let l;l=this._chainOrCallHooks(l,"preAction");l=this._chainOrCall(l,(()=>this._actionHandler(this.processedArgs)));if(this.parent){l=this._chainOrCall(l,(()=>{this.parent.emit(p,r,s)}))}l=this._chainOrCallHooks(l,"postAction");return l}if(this.parent?.listenerCount(p)){checkForUnknownOptions();this._processArguments();this.parent.emit(p,r,s)}else if(r.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",r,s)}if(this.listenerCount("command:*")){this.emit("command:*",r,s)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(r){if(!r)return undefined;return this.commands.find((s=>s._name===r||s._aliases.includes(r)))}_findOption(r){return this.options.find((s=>s.is(r)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((r=>{r.options.forEach((s=>{if(s.mandatory&&r.getOptionValue(s.attributeName())===undefined){r.missingMandatoryOptionValue(s)}}))}))}_checkForConflictingLocalOptions(){const r=this.options.filter((r=>{const s=r.attributeName();if(this.getOptionValue(s)===undefined){return false}return this.getOptionValueSource(s)!=="default"}));const s=r.filter((r=>r.conflictsWith.length>0));s.forEach((s=>{const l=r.find((r=>s.conflictsWith.includes(r.attributeName())));if(l){this._conflictingOption(s,l)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((r=>{r._checkForConflictingLocalOptions()}))}parseOptions(r){const s=[];const l=[];let p=s;function maybeOption(r){return r.length>1&&r[0]==="-"}const negativeNumberArg=r=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(r))return false;return!this._getCommandAndAncestors().some((r=>r.options.map((r=>r.short)).some((r=>/^-\d$/.test(r)))))};let d=null;let m=null;let y=0;while(y<r.length||m){const g=m??r[y++];m=null;if(g==="--"){if(p===l)p.push(g);p.push(...r.slice(y));break}if(d&&(!maybeOption(g)||negativeNumberArg(g))){this.emit(`option:${d.name()}`,g);continue}d=null;if(maybeOption(g)){const s=this._findOption(g);if(s){if(s.required){const l=r[y++];if(l===undefined)this.optionMissingArgument(s);this.emit(`option:${s.name()}`,l)}else if(s.optional){let l=null;if(y<r.length&&(!maybeOption(r[y])||negativeNumberArg(r[y]))){l=r[y++]}this.emit(`option:${s.name()}`,l)}else{this.emit(`option:${s.name()}`)}d=s.variadic?s:null;continue}}if(g.length>2&&g[0]==="-"&&g[1]!=="-"){const r=this._findOption(`-${g[1]}`);if(r){if(r.required||r.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${r.name()}`,g.slice(2))}else{this.emit(`option:${r.name()}`);m=`-${g.slice(2)}`}continue}}if(/^--[^=]+=/.test(g)){const r=g.indexOf("=");const s=this._findOption(g.slice(0,r));if(s&&(s.required||s.optional)){this.emit(`option:${s.name()}`,g.slice(r+1));continue}}if(p===s&&maybeOption(g)&&!(this.commands.length===0&&negativeNumberArg(g))){p=l}if((this._enablePositionalOptions||this._passThroughOptions)&&s.length===0&&l.length===0){if(this._findCommand(g)){s.push(g);l.push(...r.slice(y));break}else if(this._getHelpCommand()&&g===this._getHelpCommand().name()){s.push(g,...r.slice(y));break}else if(this._defaultCommandName){l.push(g,...r.slice(y));break}}if(this._passThroughOptions){p.push(g,...r.slice(y));break}p.push(g)}return{operands:s,unknown:l}}opts(){if(this._storeOptionsAsProperties){const r={};const s=this.options.length;for(let l=0;l<s;l++){const s=this.options[l].attributeName();r[s]=s===this._versionOptionName?this._version:this[s]}return r}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((r,s)=>Object.assign(r,s.opts())),{})}error(r,s){this._outputConfiguration.outputError(`${r}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const l=s||{};const p=l.exitCode||1;const d=l.code||"commander.error";this._exit(p,d,r)}_parseOptionsEnv(){this.options.forEach((r=>{if(r.envVar&&r.envVar in g.env){const s=r.attributeName();if(this.getOptionValue(s)===undefined||["default","config","env"].includes(this.getOptionValueSource(s))){if(r.required||r.optional){this.emit(`optionEnv:${r.name()}`,g.env[r.envVar])}else{this.emit(`optionEnv:${r.name()}`)}}}}))}_parseOptionsImplied(){const r=new w(this.options);const hasCustomOptionValue=r=>this.getOptionValue(r)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter((s=>s.implied!==undefined&&hasCustomOptionValue(s.attributeName())&&r.valueFromOption(this.getOptionValue(s.attributeName()),s))).forEach((r=>{Object.keys(r.implied).filter((r=>!hasCustomOptionValue(r))).forEach((s=>{this.setOptionValueWithSource(s,r.implied[s],"implied")}))}))}missingArgument(r){const s=`error: missing required argument '${r}'`;this.error(s,{code:"commander.missingArgument"})}optionMissingArgument(r){const s=`error: option '${r.flags}' argument missing`;this.error(s,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(r){const s=`error: required option '${r.flags}' not specified`;this.error(s,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(r,s){const findBestOptionFromValue=r=>{const s=r.attributeName();const l=this.getOptionValue(s);const p=this.options.find((r=>r.negate&&s===r.attributeName()));const d=this.options.find((r=>!r.negate&&s===r.attributeName()));if(p&&(p.presetArg===undefined&&l===false||p.presetArg!==undefined&&l===p.presetArg)){return p}return d||r};const getErrorMessage=r=>{const s=findBestOptionFromValue(r);const l=s.attributeName();const p=this.getOptionValueSource(l);if(p==="env"){return`environment variable '${s.envVar}'`}return`option '${s.flags}'`};const l=`error: ${getErrorMessage(r)} cannot be used with ${getErrorMessage(s)}`;this.error(l,{code:"commander.conflictingOption"})}unknownOption(r){if(this._allowUnknownOption)return;let s="";if(r.startsWith("--")&&this._showSuggestionAfterError){let l=[];let p=this;do{const r=p.createHelp().visibleOptions(p).filter((r=>r.long)).map((r=>r.long));l=l.concat(r);p=p.parent}while(p&&!p._enablePositionalOptions);s=v(r,l)}const l=`error: unknown option '${r}'${s}`;this.error(l,{code:"commander.unknownOption"})}_excessArguments(r){if(this._allowExcessArguments)return;const s=this.registeredArguments.length;const l=s===1?"":"s";const p=this.parent?` for '${this.name()}'`:"";const d=`error: too many arguments${p}. Expected ${s} argument${l} but got ${r.length}.`;this.error(d,{code:"commander.excessArguments"})}unknownCommand(){const r=this.args[0];let s="";if(this._showSuggestionAfterError){const l=[];this.createHelp().visibleCommands(this).forEach((r=>{l.push(r.name());if(r.alias())l.push(r.alias())}));s=v(r,l)}const l=`error: unknown command '${r}'${s}`;this.error(l,{code:"commander.unknownCommand"})}version(r,s,l){if(r===undefined)return this._version;this._version=r;s=s||"-V, --version";l=l||"output the version number";const p=this.createOption(s,l);this._versionOptionName=p.attributeName();this._registerOption(p);this.on("option:"+p.name(),(()=>{this._outputConfiguration.writeOut(`${r}\n`);this._exit(0,"commander.version",r)}));return this}description(r,s){if(r===undefined&&s===undefined)return this._description;this._description=r;if(s){this._argsDescription=s}return this}summary(r){if(r===undefined)return this._summary;this._summary=r;return this}alias(r){if(r===undefined)return this._aliases[0];let s=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){s=this.commands[this.commands.length-1]}if(r===s._name)throw new Error("Command alias can't be the same as its name");const l=this.parent?._findCommand(r);if(l){const s=[l.name()].concat(l.aliases()).join("|");throw new Error(`cannot add alias '${r}' to command '${this.name()}' as already have command '${s}'`)}s._aliases.push(r);return this}aliases(r){if(r===undefined)return this._aliases;r.forEach((r=>this.alias(r)));return this}usage(r){if(r===undefined){if(this._usage)return this._usage;const r=this.registeredArguments.map((r=>b(r)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?r:[]).join(" ")}this._usage=r;return this}name(r){if(r===undefined)return this._name;this._name=r;return this}helpGroup(r){if(r===undefined)return this._helpGroupHeading??"";this._helpGroupHeading=r;return this}commandsGroup(r){if(r===undefined)return this._defaultCommandGroup??"";this._defaultCommandGroup=r;return this}optionsGroup(r){if(r===undefined)return this._defaultOptionGroup??"";this._defaultOptionGroup=r;return this}_initOptionGroup(r){if(this._defaultOptionGroup&&!r.helpGroupHeading)r.helpGroup(this._defaultOptionGroup)}_initCommandGroup(r){if(this._defaultCommandGroup&&!r.helpGroup())r.helpGroup(this._defaultCommandGroup)}nameFromFilename(r){this._name=m.basename(r,m.extname(r));return this}executableDir(r){if(r===undefined)return this._executableDir;this._executableDir=r;return this}helpInformation(r){const s=this.createHelp();const l=this._getOutputContext(r);s.prepareContext({error:l.error,helpWidth:l.helpWidth,outputHasColors:l.hasColors});const p=s.formatHelp(this,s);if(l.hasColors)return p;return this._outputConfiguration.stripColor(p)}_getOutputContext(r){r=r||{};const s=!!r.error;let l;let p;let d;if(s){l=r=>this._outputConfiguration.writeErr(r);p=this._outputConfiguration.getErrHasColors();d=this._outputConfiguration.getErrHelpWidth()}else{l=r=>this._outputConfiguration.writeOut(r);p=this._outputConfiguration.getOutHasColors();d=this._outputConfiguration.getOutHelpWidth()}const write=r=>{if(!p)r=this._outputConfiguration.stripColor(r);return l(r)};return{error:s,write:write,hasColors:p,helpWidth:d}}outputHelp(r){let s;if(typeof r==="function"){s=r;r=undefined}const l=this._getOutputContext(r);const p={error:l.error,write:l.write,command:this};this._getCommandAndAncestors().reverse().forEach((r=>r.emit("beforeAllHelp",p)));this.emit("beforeHelp",p);let d=this.helpInformation({error:l.error});if(s){d=s(d);if(typeof d!=="string"&&!Buffer.isBuffer(d)){throw new Error("outputHelp callback must return a string or a Buffer")}}l.write(d);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",p);this._getCommandAndAncestors().forEach((r=>r.emit("afterAllHelp",p)))}helpOption(r,s){if(typeof r==="boolean"){if(r){if(this._helpOption===null)this._helpOption=undefined;if(this._defaultOptionGroup){this._initOptionGroup(this._getHelpOption())}}else{this._helpOption=null}return this}this._helpOption=this.createOption(r??"-h, --help",s??"display help for command");if(r||s)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(r){this._helpOption=r;this._initOptionGroup(r);return this}help(r){this.outputHelp(r);let s=Number(g.exitCode??0);if(s===0&&r&&typeof r!=="function"&&r.error){s=1}this._exit(s,"commander.help","(outputHelp)")}addHelpText(r,s){const l=["beforeAll","before","after","afterAll"];if(!l.includes(r)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${l.join("', '")}'`)}const p=`${r}Help`;this.on(p,(r=>{let l;if(typeof s==="function"){l=s({error:r.error,command:r.command})}else{l=s}if(l){r.write(`${l}\n`)}}));return this}_outputHelpIfRequested(r){const s=this._getHelpOption();const l=s&&r.find((r=>s.is(r)));if(l){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(r){return r.map((r=>{if(!r.startsWith("--inspect")){return r}let s;let l="127.0.0.1";let p="9229";let d;if((d=r.match(/^(--inspect(-brk)?)$/))!==null){s=d[1]}else if((d=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){s=d[1];if(/^\d+$/.test(d[3])){p=d[3]}else{l=d[3]}}else if((d=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){s=d[1];l=d[3];p=d[4]}if(s&&p!=="0"){return`${s}=${l}:${parseInt(p)+1}`}return r}))}function useColor(){if(g.env.NO_COLOR||g.env.FORCE_COLOR==="0"||g.env.FORCE_COLOR==="false")return false;if(g.env.FORCE_COLOR||g.env.CLICOLOR_FORCE!==undefined)return true;return undefined}s.Command=Command;s.useColor=useColor},9588:(r,s)=>{class CommanderError extends Error{constructor(r,s,l){super(l);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=s;this.exitCode=r;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(r){super(1,"commander.invalidArgument",r);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}s.CommanderError=CommanderError;s.InvalidArgumentError=InvalidArgumentError},8083:(r,s,l)=>{const{humanReadableArgName:p}=l(2531);class Help{constructor(){this.helpWidth=undefined;this.minWidthToWrap=40;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}prepareContext(r){this.helpWidth=this.helpWidth??r.helpWidth??80}visibleCommands(r){const s=r.commands.filter((r=>!r._hidden));const l=r._getHelpCommand();if(l&&!l._hidden){s.push(l)}if(this.sortSubcommands){s.sort(((r,s)=>r.name().localeCompare(s.name())))}return s}compareOptions(r,s){const getSortKey=r=>r.short?r.short.replace(/^-/,""):r.long.replace(/^--/,"");return getSortKey(r).localeCompare(getSortKey(s))}visibleOptions(r){const s=r.options.filter((r=>!r.hidden));const l=r._getHelpOption();if(l&&!l.hidden){const p=l.short&&r._findOption(l.short);const d=l.long&&r._findOption(l.long);if(!p&&!d){s.push(l)}else if(l.long&&!d){s.push(r.createOption(l.long,l.description))}else if(l.short&&!p){s.push(r.createOption(l.short,l.description))}}if(this.sortOptions){s.sort(this.compareOptions)}return s}visibleGlobalOptions(r){if(!this.showGlobalOptions)return[];const s=[];for(let l=r.parent;l;l=l.parent){const r=l.options.filter((r=>!r.hidden));s.push(...r)}if(this.sortOptions){s.sort(this.compareOptions)}return s}visibleArguments(r){if(r._argsDescription){r.registeredArguments.forEach((s=>{s.description=s.description||r._argsDescription[s.name()]||""}))}if(r.registeredArguments.find((r=>r.description))){return r.registeredArguments}return[]}subcommandTerm(r){const s=r.registeredArguments.map((r=>p(r))).join(" ");return r._name+(r._aliases[0]?"|"+r._aliases[0]:"")+(r.options.length?" [options]":"")+(s?" "+s:"")}optionTerm(r){return r.flags}argumentTerm(r){return r.name()}longestSubcommandTermLength(r,s){return s.visibleCommands(r).reduce(((r,l)=>Math.max(r,this.displayWidth(s.styleSubcommandTerm(s.subcommandTerm(l))))),0)}longestOptionTermLength(r,s){return s.visibleOptions(r).reduce(((r,l)=>Math.max(r,this.displayWidth(s.styleOptionTerm(s.optionTerm(l))))),0)}longestGlobalOptionTermLength(r,s){return s.visibleGlobalOptions(r).reduce(((r,l)=>Math.max(r,this.displayWidth(s.styleOptionTerm(s.optionTerm(l))))),0)}longestArgumentTermLength(r,s){return s.visibleArguments(r).reduce(((r,l)=>Math.max(r,this.displayWidth(s.styleArgumentTerm(s.argumentTerm(l))))),0)}commandUsage(r){let s=r._name;if(r._aliases[0]){s=s+"|"+r._aliases[0]}let l="";for(let s=r.parent;s;s=s.parent){l=s.name()+" "+l}return l+s+" "+r.usage()}commandDescription(r){return r.description()}subcommandDescription(r){return r.summary()||r.description()}optionDescription(r){const s=[];if(r.argChoices){s.push(`choices: ${r.argChoices.map((r=>JSON.stringify(r))).join(", ")}`)}if(r.defaultValue!==undefined){const l=r.required||r.optional||r.isBoolean()&&typeof r.defaultValue==="boolean";if(l){s.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`)}}if(r.presetArg!==undefined&&r.optional){s.push(`preset: ${JSON.stringify(r.presetArg)}`)}if(r.envVar!==undefined){s.push(`env: ${r.envVar}`)}if(s.length>0){const l=`(${s.join(", ")})`;if(r.description){return`${r.description} ${l}`}return l}return r.description}argumentDescription(r){const s=[];if(r.argChoices){s.push(`choices: ${r.argChoices.map((r=>JSON.stringify(r))).join(", ")}`)}if(r.defaultValue!==undefined){s.push(`default: ${r.defaultValueDescription||JSON.stringify(r.defaultValue)}`)}if(s.length>0){const l=`(${s.join(", ")})`;if(r.description){return`${r.description} ${l}`}return l}return r.description}formatItemList(r,s,l){if(s.length===0)return[];return[l.styleTitle(r),...s,""]}groupItems(r,s,l){const p=new Map;r.forEach((r=>{const s=l(r);if(!p.has(s))p.set(s,[])}));s.forEach((r=>{const s=l(r);if(!p.has(s)){p.set(s,[])}p.get(s).push(r)}));return p}formatHelp(r,s){const l=s.padWidth(r,s);const p=s.helpWidth??80;function callFormatItem(r,p){return s.formatItem(r,l,p,s)}let d=[`${s.styleTitle("Usage:")} ${s.styleUsage(s.commandUsage(r))}`,""];const m=s.commandDescription(r);if(m.length>0){d=d.concat([s.boxWrap(s.styleCommandDescription(m),p),""])}const y=s.visibleArguments(r).map((r=>callFormatItem(s.styleArgumentTerm(s.argumentTerm(r)),s.styleArgumentDescription(s.argumentDescription(r)))));d=d.concat(this.formatItemList("Arguments:",y,s));const g=this.groupItems(r.options,s.visibleOptions(r),(r=>r.helpGroupHeading??"Options:"));g.forEach(((r,l)=>{const p=r.map((r=>callFormatItem(s.styleOptionTerm(s.optionTerm(r)),s.styleOptionDescription(s.optionDescription(r)))));d=d.concat(this.formatItemList(l,p,s))}));if(s.showGlobalOptions){const l=s.visibleGlobalOptions(r).map((r=>callFormatItem(s.styleOptionTerm(s.optionTerm(r)),s.styleOptionDescription(s.optionDescription(r)))));d=d.concat(this.formatItemList("Global Options:",l,s))}const T=this.groupItems(r.commands,s.visibleCommands(r),(r=>r.helpGroup()||"Commands:"));T.forEach(((r,l)=>{const p=r.map((r=>callFormatItem(s.styleSubcommandTerm(s.subcommandTerm(r)),s.styleSubcommandDescription(s.subcommandDescription(r)))));d=d.concat(this.formatItemList(l,p,s))}));return d.join("\n")}displayWidth(r){return stripColor(r).length}styleTitle(r){return r}styleUsage(r){return r.split(" ").map((r=>{if(r==="[options]")return this.styleOptionText(r);if(r==="[command]")return this.styleSubcommandText(r);if(r[0]==="["||r[0]==="<")return this.styleArgumentText(r);return this.styleCommandText(r)})).join(" ")}styleCommandDescription(r){return this.styleDescriptionText(r)}styleOptionDescription(r){return this.styleDescriptionText(r)}styleSubcommandDescription(r){return this.styleDescriptionText(r)}styleArgumentDescription(r){return this.styleDescriptionText(r)}styleDescriptionText(r){return r}styleOptionTerm(r){return this.styleOptionText(r)}styleSubcommandTerm(r){return r.split(" ").map((r=>{if(r==="[options]")return this.styleOptionText(r);if(r[0]==="["||r[0]==="<")return this.styleArgumentText(r);return this.styleSubcommandText(r)})).join(" ")}styleArgumentTerm(r){return this.styleArgumentText(r)}styleOptionText(r){return r}styleArgumentText(r){return r}styleSubcommandText(r){return r}styleCommandText(r){return r}padWidth(r,s){return Math.max(s.longestOptionTermLength(r,s),s.longestGlobalOptionTermLength(r,s),s.longestSubcommandTermLength(r,s),s.longestArgumentTermLength(r,s))}preformatted(r){return/\n[^\S\r\n]/.test(r)}formatItem(r,s,l,p){const d=2;const m=" ".repeat(d);if(!l)return m+r;const y=r.padEnd(s+r.length-p.displayWidth(r));const g=2;const T=this.helpWidth??80;const b=T-s-g-d;let E;if(b<this.minWidthToWrap||p.preformatted(l)){E=l}else{const r=p.boxWrap(l,b);E=r.replace(/\n/g,"\n"+" ".repeat(s+g))}return m+y+" ".repeat(g)+E.replace(/\n/g,`\n${m}`)}boxWrap(r,s){if(s<this.minWidthToWrap)return r;const l=r.split(/\r\n|\n/);const p=/[\s]*[^\s]+/g;const d=[];l.forEach((r=>{const l=r.match(p);if(l===null){d.push("");return}let m=[l.shift()];let y=this.displayWidth(m[0]);l.forEach((r=>{const l=this.displayWidth(r);if(y+l<=s){m.push(r);y+=l;return}d.push(m.join(""));const p=r.trimStart();m=[p];y=this.displayWidth(p)}));d.push(m.join(""))}));return d.join("\n")}}function stripColor(r){const s=/\x1b\[\d*(;\d*)*m/g;return r.replace(s,"")}s.Help=Help;s.stripColor=stripColor},9309:(r,s,l)=>{const{InvalidArgumentError:p}=l(9588);class Option{constructor(r,s){this.flags=r;this.description=s||"";this.required=r.includes("<");this.optional=r.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(r);this.mandatory=false;const l=splitOptionFlags(r);this.short=l.shortFlag;this.long=l.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined;this.helpGroupHeading=undefined}default(r,s){this.defaultValue=r;this.defaultValueDescription=s;return this}preset(r){this.presetArg=r;return this}conflicts(r){this.conflictsWith=this.conflictsWith.concat(r);return this}implies(r){let s=r;if(typeof r==="string"){s={[r]:true}}this.implied=Object.assign(this.implied||{},s);return this}env(r){this.envVar=r;return this}argParser(r){this.parseArg=r;return this}makeOptionMandatory(r=true){this.mandatory=!!r;return this}hideHelp(r=true){this.hidden=!!r;return this}_collectValue(r,s){if(s===this.defaultValue||!Array.isArray(s)){return[r]}s.push(r);return s}choices(r){this.argChoices=r.slice();this.parseArg=(r,s)=>{if(!this.argChoices.includes(r)){throw new p(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._collectValue(r,s)}return r};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){if(this.negate){return camelcase(this.name().replace(/^no-/,""))}return camelcase(this.name())}helpGroup(r){this.helpGroupHeading=r;return this}is(r){return this.short===r||this.long===r}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(r){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;r.forEach((r=>{if(r.negate){this.negativeOptions.set(r.attributeName(),r)}else{this.positiveOptions.set(r.attributeName(),r)}}));this.negativeOptions.forEach(((r,s)=>{if(this.positiveOptions.has(s)){this.dualOptions.add(s)}}))}valueFromOption(r,s){const l=s.attributeName();if(!this.dualOptions.has(l))return true;const p=this.negativeOptions.get(l).presetArg;const d=p!==undefined?p:false;return s.negate===(d===r)}}function camelcase(r){return r.split("-").reduce(((r,s)=>r+s[0].toUpperCase()+s.slice(1)))}function splitOptionFlags(r){let s;let l;const p=/^-[^-]$/;const d=/^--[^-]/;const m=r.split(/[ |,]+/).concat("guard");if(p.test(m[0]))s=m.shift();if(d.test(m[0]))l=m.shift();if(!s&&p.test(m[0]))s=m.shift();if(!s&&d.test(m[0])){s=l;l=m.shift()}if(m[0].startsWith("-")){const s=m[0];const l=`option creation failed due to '${s}' in option flags '${r}'`;if(/^-[^-][^-]/.test(s))throw new Error(`${l}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(p.test(s))throw new Error(`${l}\n- too many short flags`);if(d.test(s))throw new Error(`${l}\n- too many long flags`);throw new Error(`${l}\n- unrecognised flag format`)}if(s===undefined&&l===undefined)throw new Error(`option creation failed due to no flags found in '${r}'.`);return{shortFlag:s,longFlag:l}}s.Option=Option;s.DualOptions=DualOptions},4175:(r,s)=>{const l=3;function editDistance(r,s){if(Math.abs(r.length-s.length)>l)return Math.max(r.length,s.length);const p=[];for(let s=0;s<=r.length;s++){p[s]=[s]}for(let r=0;r<=s.length;r++){p[0][r]=r}for(let l=1;l<=s.length;l++){for(let d=1;d<=r.length;d++){let m=1;if(r[d-1]===s[l-1]){m=0}else{m=1}p[d][l]=Math.min(p[d-1][l]+1,p[d][l-1]+1,p[d-1][l-1]+m);if(d>1&&l>1&&r[d-1]===s[l-2]&&r[d-2]===s[l-1]){p[d][l]=Math.min(p[d][l],p[d-2][l-2]+1)}}}return p[r.length][s.length]}function suggestSimilar(r,s){if(!s||s.length===0)return"";s=Array.from(new Set(s));const p=r.startsWith("--");if(p){r=r.slice(2);s=s.map((r=>r.slice(2)))}let d=[];let m=l;const y=.4;s.forEach((s=>{if(s.length<=1)return;const l=editDistance(r,s);const p=Math.max(r.length,s.length);const g=(p-l)/p;if(g>y){if(l<m){m=l;d=[s]}else if(l===m){d.push(s)}}}));d.sort(((r,s)=>r.localeCompare(s)));if(p){d=d.map((r=>`--${r}`))}if(d.length>1){return`\n(Did you mean one of ${d.join(", ")}?)`}if(d.length===1){return`\n(Did you mean ${d[0]}?)`}return""}s.suggestSimilar=suggestSimilar},4755:r=>{var s;const l=function NullObject(){};l.prototype=Object.create(null);const p=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;const d=/\\([\v\u0020-\u00ff])/gu;const m=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;const y={type:"",parameters:new l};Object.freeze(y.parameters);Object.freeze(y);function parse(r){if(typeof r!=="string"){throw new TypeError("argument header is required and must be a string")}let s=r.indexOf(";");const y=s!==-1?r.slice(0,s).trim():r.trim();if(m.test(y)===false){throw new TypeError("invalid media type")}const g={type:y.toLowerCase(),parameters:new l};if(s===-1){return g}let T;let b;let E;p.lastIndex=s;while(b=p.exec(r)){if(b.index!==s){throw new TypeError("invalid parameter format")}s+=b[0].length;T=b[1].toLowerCase();E=b[2];if(E[0]==='"'){E=E.slice(1,E.length-1);d.test(E)&&(E=E.replace(d,"$1"))}g.parameters[T]=E}if(s!==r.length){throw new TypeError("invalid parameter format")}return g}function safeParse(r){if(typeof r!=="string"){return y}let s=r.indexOf(";");const g=s!==-1?r.slice(0,s).trim():r.trim();if(m.test(g)===false){return y}const T={type:g.toLowerCase(),parameters:new l};if(s===-1){return T}let b;let E;let S;p.lastIndex=s;while(E=p.exec(r)){if(E.index!==s){return y}s+=E[0].length;b=E[1].toLowerCase();S=E[2];if(S[0]==='"'){S=S.slice(1,S.length-1);d.test(S)&&(S=S.replace(d,"$1"))}T.parameters[b]=S}if(s!==r.length){return y}return T}s={parse:parse,safeParse:safeParse};s=parse;r.exports.xL=safeParse;s=y},120:r=>{r.exports=JSON.parse('["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]')},9961:r=>{r.exports=JSON.parse('["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"]')}};var __webpack_module_cache__={};function __webpack_require__(r){var s=__webpack_module_cache__[r];if(s!==undefined){return s.exports}var l=__webpack_module_cache__[r]={id:r,loaded:false,exports:{}};var p=true;try{__webpack_modules__[r].call(l.exports,l,l.exports,__webpack_require__);p=false}finally{if(p)delete __webpack_module_cache__[r]}l.loaded=true;return l.exports}(()=>{__webpack_require__.nmd=r=>{r.paths=[];if(!r.children)r.children=[];return r}})();if(typeof __webpack_require__!=="undefined")__webpack_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var __webpack_exports__={};var commander=__webpack_require__(8786);const{DM:program,gu:createCommand,er:createArgument,Ww:createOption,b7:CommanderError,Di:InvalidArgumentError,a2:InvalidOptionArgumentError,uB:Command,ef:Argument,c$:Option,_V:Help}=commander;const external_child_process_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process");var lib=__webpack_require__(3658);var parser_lib=__webpack_require__(1946);var traverse_lib=__webpack_require__(6191);const traverse=traverse_lib["default"];const ECMAGlobals=["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","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];class GVPool{globals=new Map;add(r,s){if(ECMAGlobals.includes(r)&&s==="r"){return}if(this.globals.has(r)){if(s==="rw"){this.globals.set(r,"rw")}}else{this.globals.set(r,s)}}}function analyzeGlobals(r){const s=new GVPool;const l=(0,parser_lib.parse)(r,{sourceType:"unambiguous"});traverse(l,{MemberExpression(r){let l=[];let p=r.node;let d=true;while(lib.isMemberExpression(p)){if(lib.isIdentifier(p.property)&&!p.computed){l.unshift(p.property.name)}else if(lib.isStringLiteral(p.property)){l.unshift(p.property.value)}else{d=false;break}if(lib.isIdentifier(p.object)){l.unshift(p.object.name);break}else if(lib.isMemberExpression(p.object)){p=p.object}else{d=false;break}}if(!d){return}if(l.length>=2&&l[0]==="__webpack_require__"&&l[1]==="g"){l=l.slice(2)}const m=["globalThis","self","window"];let y=false;while(l.length>0&&m.includes(l[0])&&!r.scope.hasBinding(l[0],{noGlobals:true})){l=l.slice(1);y=true}if(l.length>0&&(y||!r.scope.hasBinding(l[0],{noGlobals:true}))&&l[0]!=="arguments"){s.add(l[0],lib.isAssignmentExpression(r.parent)&&r.parent.left===r.node&&l.length===1?"rw":"r")}r.skip()},Identifier(r){if(!r.scope.hasBinding(r.node.name,{noGlobals:true})){if((lib.isMemberExpression(r.parent)||lib.isOptionalMemberExpression(r.parent))&&r.parent.property===r.node){return}else if(lib.isObjectProperty(r.parent)&&r.parent.key===r.node){return}else if((lib.isLabeledStatement(r.parent)||lib.isBreakStatement(r.parent)||lib.isContinueStatement(r.parent))&&r.parent.label===r.node){return}else if((lib.isFunctionDeclaration(r.parent)||lib.isFunctionExpression(r.parent))&&r.parent.id===r.node){return}else if(lib.isCatchClause(r.parent)&&r.parent.param===r.node){return}else if(lib.isFunction(r.parent)&&(r.parent.params.includes(r.node)||r.parent.id===r.node||r.parent.kind===r.node.name||r.parent.key===r.node)){return}else if(lib.isMetaProperty(r.parent)){return}else if(lib.isClassProperty(r.parent)&&r.parent.key===r.node){return}else if(r.node.name==="globalThis"||r.node.name==="window"||r.node.name==="self"){return}else if(r.node.name==="arguments"){return}s.add(r.node.name,lib.isAssignmentExpression(r.parent)&&r.parent.left===r.node?"rw":"r")}}});const p=Object.create(null);for(const[r,l]of s.globals.entries()){p[r]=l}return p}const promises_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:timers/promises");function keysOf(r){return Object.keys(r)}const typedArrayTypeNames=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function isTypedArrayName(r){return typedArrayTypeNames.includes(r)}const objectTypeNames=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...typedArrayTypeNames];function isObjectTypeName(r){return objectTypeNames.includes(r)}const primitiveTypeNames=["null","undefined","string","number","bigint","boolean","symbol"];function isPrimitiveTypeName(r){return primitiveTypeNames.includes(r)}const assertionTypeDescriptions=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...objectTypeNames,...primitiveTypeNames];const getObjectType=r=>{const s=Object.prototype.toString.call(r).slice(8,-1);if(/HTML\w+Element/.test(s)&&isHtmlElement(r)){return"HTMLElement"}if(isObjectTypeName(s)){return s}return undefined};function detect(r){if(r===null){return"null"}switch(typeof r){case"undefined":{return"undefined"}case"string":{return"string"}case"number":{return Number.isNaN(r)?"NaN":"number"}case"boolean":{return"boolean"}case"function":{return"Function"}case"bigint":{return"bigint"}case"symbol":{return"symbol"}default:}if(isObservable(r)){return"Observable"}if(isArray(r)){return"Array"}if(isBuffer(r)){return"Buffer"}const s=getObjectType(r);if(s&&s!=="Object"){return s}if(hasPromiseApi(r)){return"Promise"}if(r instanceof String||r instanceof Boolean||r instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}function hasPromiseApi(r){return isFunction(r?.then)&&isFunction(r?.catch)}const is=Object.assign(detect,{all:isAll,any:isAny,array:isArray,arrayBuffer:isArrayBuffer,arrayLike:isArrayLike,asyncFunction:isAsyncFunction,asyncGenerator:isAsyncGenerator,asyncGeneratorFunction:isAsyncGeneratorFunction,asyncIterable:isAsyncIterable,bigint:isBigint,bigInt64Array:isBigInt64Array,bigUint64Array:isBigUint64Array,blob:isBlob,boolean:isBoolean,boundFunction:isBoundFunction,buffer:isBuffer,class:isClass,dataView:isDataView,date:isDate,detect:detect,directInstanceOf:isDirectInstanceOf,emptyArray:isEmptyArray,emptyMap:isEmptyMap,emptyObject:isEmptyObject,emptySet:isEmptySet,emptyString:isEmptyString,emptyStringOrWhitespace:isEmptyStringOrWhitespace,enumCase:isEnumCase,error:isError,evenInteger:isEvenInteger,falsy:isFalsy,float32Array:isFloat32Array,float64Array:isFloat64Array,formData:isFormData,function:isFunction,generator:isGenerator,generatorFunction:isGeneratorFunction,htmlElement:isHtmlElement,infinite:isInfinite,inRange:isInRange,int16Array:isInt16Array,int32Array:isInt32Array,int8Array:isInt8Array,integer:isInteger,iterable:isIterable,map:isMap,nan:isNan,nativePromise:isNativePromise,negativeNumber:isNegativeNumber,nodeStream:isNodeStream,nonEmptyArray:isNonEmptyArray,nonEmptyMap:isNonEmptyMap,nonEmptyObject:isNonEmptyObject,nonEmptySet:isNonEmptySet,nonEmptyString:isNonEmptyString,nonEmptyStringAndNotWhitespace:isNonEmptyStringAndNotWhitespace,null:isNull,nullOrUndefined:isNullOrUndefined,number:isNumber,numericString:isNumericString,object:isObject,observable:isObservable,oddInteger:isOddInteger,plainObject:isPlainObject,positiveNumber:isPositiveNumber,primitive:isPrimitive,promise:isPromise,propertyKey:isPropertyKey,regExp:isRegExp,safeInteger:isSafeInteger,set:isSet,sharedArrayBuffer:isSharedArrayBuffer,string:isString,symbol:isSymbol,truthy:isTruthy,tupleLike:isTupleLike,typedArray:isTypedArray,uint16Array:isUint16Array,uint32Array:isUint32Array,uint8Array:isUint8Array,uint8ClampedArray:isUint8ClampedArray,undefined:isUndefined,urlInstance:isUrlInstance,urlSearchParams:isUrlSearchParams,urlString:isUrlString,optional:isOptional,validDate:isValidDate,validLength:isValidLength,weakMap:isWeakMap,weakRef:isWeakRef,weakSet:isWeakSet,whitespaceString:isWhitespaceString});function isAbsoluteModule2(r){return s=>isInteger(s)&&Math.abs(s%2)===r}function isAll(r,...s){return predicateOnArray(Array.prototype.every,r,s)}function isAny(r,...s){const l=isArray(r)?r:[r];return l.some((r=>predicateOnArray(Array.prototype.some,r,s)))}function isOptional(r,s){return isUndefined(r)||s(r)}function isArray(r,s){if(!Array.isArray(r)){return false}if(!isFunction(s)){return true}return r.every((r=>s(r)))}function isArrayBuffer(r){return getObjectType(r)==="ArrayBuffer"}function isArrayLike(r){return!isNullOrUndefined(r)&&!isFunction(r)&&isValidLength(r.length)}function isAsyncFunction(r){return getObjectType(r)==="AsyncFunction"}function isAsyncGenerator(r){return isAsyncIterable(r)&&isFunction(r.next)&&isFunction(r.throw)}function isAsyncGeneratorFunction(r){return getObjectType(r)==="AsyncGeneratorFunction"}function isAsyncIterable(r){return isFunction(r?.[Symbol.asyncIterator])}function isBigint(r){return typeof r==="bigint"}function isBigInt64Array(r){return getObjectType(r)==="BigInt64Array"}function isBigUint64Array(r){return getObjectType(r)==="BigUint64Array"}function isBlob(r){return getObjectType(r)==="Blob"}function isBoolean(r){return r===true||r===false}function isBoundFunction(r){return isFunction(r)&&!Object.hasOwn(r,"prototype")}function isBuffer(r){return r?.constructor?.isBuffer?.(r)??false}function isClass(r){return isFunction(r)&&r.toString().startsWith("class ")}function isDataView(r){return getObjectType(r)==="DataView"}function isDate(r){return getObjectType(r)==="Date"}function isDirectInstanceOf(r,s){if(r===undefined||r===null){return false}return Object.getPrototypeOf(r)===s.prototype}function isEmptyArray(r){return isArray(r)&&r.length===0}function isEmptyMap(r){return isMap(r)&&r.size===0}function isEmptyObject(r){return isObject(r)&&!isMap(r)&&!isSet(r)&&Object.keys(r).length===0}function isEmptySet(r){return isSet(r)&&r.size===0}function isEmptyString(r){return isString(r)&&r.length===0}function isEmptyStringOrWhitespace(r){return isEmptyString(r)||isWhitespaceString(r)}function isEnumCase(r,s){return Object.values(s).includes(r)}function isError(r){return getObjectType(r)==="Error"}function isEvenInteger(r){return isAbsoluteModule2(0)(r)}function isFalsy(r){return!r}function isFloat32Array(r){return getObjectType(r)==="Float32Array"}function isFloat64Array(r){return getObjectType(r)==="Float64Array"}function isFormData(r){return getObjectType(r)==="FormData"}function isFunction(r){return typeof r==="function"}function isGenerator(r){return isIterable(r)&&isFunction(r?.next)&&isFunction(r?.throw)}function isGeneratorFunction(r){return getObjectType(r)==="GeneratorFunction"}const NODE_TYPE_ELEMENT=1;const DOM_PROPERTIES_TO_CHECK=["innerHTML","ownerDocument","style","attributes","nodeValue"];function isHtmlElement(r){return isObject(r)&&r.nodeType===NODE_TYPE_ELEMENT&&isString(r.nodeName)&&!isPlainObject(r)&&DOM_PROPERTIES_TO_CHECK.every((s=>s in r))}function isInfinite(r){return r===Number.POSITIVE_INFINITY||r===Number.NEGATIVE_INFINITY}function isInRange(r,s){if(isNumber(s)){return r>=Math.min(0,s)&&r<=Math.max(s,0)}if(isArray(s)&&s.length===2){return r>=Math.min(...s)&&r<=Math.max(...s)}throw new TypeError(`Invalid range: ${JSON.stringify(s)}`)}function isInt16Array(r){return getObjectType(r)==="Int16Array"}function isInt32Array(r){return getObjectType(r)==="Int32Array"}function isInt8Array(r){return getObjectType(r)==="Int8Array"}function isInteger(r){return Number.isInteger(r)}function isIterable(r){return isFunction(r?.[Symbol.iterator])}function isMap(r){return getObjectType(r)==="Map"}function isNan(r){return Number.isNaN(r)}function isNativePromise(r){return getObjectType(r)==="Promise"}function isNegativeNumber(r){return isNumber(r)&&r<0}function isNodeStream(r){return isObject(r)&&isFunction(r.pipe)&&!isObservable(r)}function isNonEmptyArray(r){return isArray(r)&&r.length>0}function isNonEmptyMap(r){return isMap(r)&&r.size>0}function isNonEmptyObject(r){return isObject(r)&&!isMap(r)&&!isSet(r)&&Object.keys(r).length>0}function isNonEmptySet(r){return isSet(r)&&r.size>0}function isNonEmptyString(r){return isString(r)&&r.length>0}function isNonEmptyStringAndNotWhitespace(r){return isString(r)&&!isEmptyStringOrWhitespace(r)}function isNull(r){return r===null}function isNullOrUndefined(r){return isNull(r)||isUndefined(r)}function isNumber(r){return typeof r==="number"&&!Number.isNaN(r)}function isNumericString(r){return isString(r)&&!isEmptyStringOrWhitespace(r)&&!Number.isNaN(Number(r))}function isObject(r){return!isNull(r)&&(typeof r==="object"||isFunction(r))}function isObservable(r){if(!r){return false}if(Symbol.observable!==undefined&&r===r[Symbol.observable]?.()){return true}if(r===r["@@observable"]?.()){return true}return false}function isOddInteger(r){return isAbsoluteModule2(1)(r)}function isPlainObject(r){if(typeof r!=="object"||r===null){return false}const s=Object.getPrototypeOf(r);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}function isPositiveNumber(r){return isNumber(r)&&r>0}function isPrimitive(r){return isNull(r)||isPrimitiveTypeName(typeof r)}function isPromise(r){return isNativePromise(r)||hasPromiseApi(r)}function isPropertyKey(r){return isAny([isString,isNumber,isSymbol],r)}function isRegExp(r){return getObjectType(r)==="RegExp"}function isSafeInteger(r){return Number.isSafeInteger(r)}function isSet(r){return getObjectType(r)==="Set"}function isSharedArrayBuffer(r){return getObjectType(r)==="SharedArrayBuffer"}function isString(r){return typeof r==="string"}function isSymbol(r){return typeof r==="symbol"}function isTruthy(r){return Boolean(r)}function isTupleLike(r,s){if(isArray(s)&&isArray(r)&&s.length===r.length){return s.every(((s,l)=>s(r[l])))}return false}function isTypedArray(r){return isTypedArrayName(getObjectType(r))}function isUint16Array(r){return getObjectType(r)==="Uint16Array"}function isUint32Array(r){return getObjectType(r)==="Uint32Array"}function isUint8Array(r){return getObjectType(r)==="Uint8Array"}function isUint8ClampedArray(r){return getObjectType(r)==="Uint8ClampedArray"}function isUndefined(r){return r===undefined}function isUrlInstance(r){return getObjectType(r)==="URL"}function isUrlSearchParams(r){return getObjectType(r)==="URLSearchParams"}function isUrlString(r){if(!isString(r)){return false}try{new URL(r);return true}catch{return false}}function isValidDate(r){return isDate(r)&&!isNan(Number(r))}function isValidLength(r){return isSafeInteger(r)&&r>=0}function isWeakMap(r){return getObjectType(r)==="WeakMap"}function isWeakRef(r){return getObjectType(r)==="WeakRef"}function isWeakSet(r){return getObjectType(r)==="WeakSet"}function isWhitespaceString(r){return isString(r)&&/^\s+$/.test(r)}function predicateOnArray(r,s,l){if(!isFunction(s)){throw new TypeError(`Invalid predicate: ${JSON.stringify(s)}`)}if(l.length===0){throw new TypeError("Invalid number of values")}return r.call(l,s)}function typeErrorMessage(r,s){return`Expected value which is \`${r}\`, received value of type \`${is(s)}\`.`}function unique(r){return Array.from(new Set(r))}const andFormatter=new Intl.ListFormat("en",{style:"long",type:"conjunction"});const orFormatter=new Intl.ListFormat("en",{style:"long",type:"disjunction"});function typeErrorMessageMultipleValues(r,s){const l=unique((isArray(r)?r:[r]).map((r=>`\`${r}\``)));const p=unique(s.map((r=>`\`${is(r)}\``)));return`Expected values which are ${orFormatter.format(l)}. Received values of type${p.length>1?"s":""} ${andFormatter.format(p)}.`}const assert={all:assertAll,any:assertAny,optional:assertOptional,array:assertArray,arrayBuffer:assertArrayBuffer,arrayLike:assertArrayLike,asyncFunction:assertAsyncFunction,asyncGenerator:assertAsyncGenerator,asyncGeneratorFunction:assertAsyncGeneratorFunction,asyncIterable:assertAsyncIterable,bigint:assertBigint,bigInt64Array:assertBigInt64Array,bigUint64Array:assertBigUint64Array,blob:assertBlob,boolean:assertBoolean,boundFunction:assertBoundFunction,buffer:assertBuffer,class:assertClass,dataView:assertDataView,date:assertDate,directInstanceOf:assertDirectInstanceOf,emptyArray:assertEmptyArray,emptyMap:assertEmptyMap,emptyObject:assertEmptyObject,emptySet:assertEmptySet,emptyString:assertEmptyString,emptyStringOrWhitespace:assertEmptyStringOrWhitespace,enumCase:assertEnumCase,error:assertError,evenInteger:assertEvenInteger,falsy:assertFalsy,float32Array:assertFloat32Array,float64Array:assertFloat64Array,formData:assertFormData,function:assertFunction,generator:assertGenerator,generatorFunction:assertGeneratorFunction,htmlElement:assertHtmlElement,infinite:assertInfinite,inRange:assertInRange,int16Array:assertInt16Array,int32Array:assertInt32Array,int8Array:assertInt8Array,integer:assertInteger,iterable:assertIterable,map:assertMap,nan:assertNan,nativePromise:assertNativePromise,negativeNumber:assertNegativeNumber,nodeStream:assertNodeStream,nonEmptyArray:assertNonEmptyArray,nonEmptyMap:assertNonEmptyMap,nonEmptyObject:assertNonEmptyObject,nonEmptySet:assertNonEmptySet,nonEmptyString:assertNonEmptyString,nonEmptyStringAndNotWhitespace:assertNonEmptyStringAndNotWhitespace,null:assertNull,nullOrUndefined:assertNullOrUndefined,number:assertNumber,numericString:assertNumericString,object:assertObject,observable:assertObservable,oddInteger:assertOddInteger,plainObject:assertPlainObject,positiveNumber:assertPositiveNumber,primitive:assertPrimitive,promise:assertPromise,propertyKey:assertPropertyKey,regExp:assertRegExp,safeInteger:assertSafeInteger,set:assertSet,sharedArrayBuffer:assertSharedArrayBuffer,string:assertString,symbol:assertSymbol,truthy:assertTruthy,tupleLike:assertTupleLike,typedArray:assertTypedArray,uint16Array:assertUint16Array,uint32Array:assertUint32Array,uint8Array:assertUint8Array,uint8ClampedArray:assertUint8ClampedArray,undefined:assertUndefined,urlInstance:assertUrlInstance,urlSearchParams:assertUrlSearchParams,urlString:assertUrlString,validDate:assertValidDate,validLength:assertValidLength,weakMap:assertWeakMap,weakRef:assertWeakRef,weakSet:assertWeakSet,whitespaceString:assertWhitespaceString};const methodTypeMap={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};const isMethodNames=keysOf(methodTypeMap);function isIsMethodName(r){return isMethodNames.includes(r)}function assertAll(r,...s){if(!isAll(r,...s)){const l=isIsMethodName(r.name)?methodTypeMap[r.name]:"predicate returns truthy for all values";throw new TypeError(typeErrorMessageMultipleValues(l,s))}}function assertAny(r,...s){if(!isAny(r,...s)){const l=isArray(r)?r:[r];const p=l.map((r=>isIsMethodName(r.name)?methodTypeMap[r.name]:"predicate returns truthy for any value"));throw new TypeError(typeErrorMessageMultipleValues(p,s))}}function assertOptional(r,s,l){if(!isUndefined(r)){s(r,l)}}function assertArray(r,s,l){if(!isArray(r)){throw new TypeError(l??typeErrorMessage("Array",r))}if(s){for(const p of r){s(p,l)}}}function assertArrayBuffer(r,s){if(!isArrayBuffer(r)){throw new TypeError(s??typeErrorMessage("ArrayBuffer",r))}}function assertArrayLike(r,s){if(!isArrayLike(r)){throw new TypeError(s??typeErrorMessage("array-like",r))}}function assertAsyncFunction(r,s){if(!isAsyncFunction(r)){throw new TypeError(s??typeErrorMessage("AsyncFunction",r))}}function assertAsyncGenerator(r,s){if(!isAsyncGenerator(r)){throw new TypeError(s??typeErrorMessage("AsyncGenerator",r))}}function assertAsyncGeneratorFunction(r,s){if(!isAsyncGeneratorFunction(r)){throw new TypeError(s??typeErrorMessage("AsyncGeneratorFunction",r))}}function assertAsyncIterable(r,s){if(!isAsyncIterable(r)){throw new TypeError(s??typeErrorMessage("AsyncIterable",r))}}function assertBigint(r,s){if(!isBigint(r)){throw new TypeError(s??typeErrorMessage("bigint",r))}}function assertBigInt64Array(r,s){if(!isBigInt64Array(r)){throw new TypeError(s??typeErrorMessage("BigInt64Array",r))}}function assertBigUint64Array(r,s){if(!isBigUint64Array(r)){throw new TypeError(s??typeErrorMessage("BigUint64Array",r))}}function assertBlob(r,s){if(!isBlob(r)){throw new TypeError(s??typeErrorMessage("Blob",r))}}function assertBoolean(r,s){if(!isBoolean(r)){throw new TypeError(s??typeErrorMessage("boolean",r))}}function assertBoundFunction(r,s){if(!isBoundFunction(r)){throw new TypeError(s??typeErrorMessage("Function",r))}}function assertBuffer(r,s){if(!isBuffer(r)){throw new TypeError(s??typeErrorMessage("Buffer",r))}}function assertClass(r,s){if(!isClass(r)){throw new TypeError(s??typeErrorMessage("Class",r))}}function assertDataView(r,s){if(!isDataView(r)){throw new TypeError(s??typeErrorMessage("DataView",r))}}function assertDate(r,s){if(!isDate(r)){throw new TypeError(s??typeErrorMessage("Date",r))}}function assertDirectInstanceOf(r,s,l){if(!isDirectInstanceOf(r,s)){throw new TypeError(l??typeErrorMessage("T",r))}}function assertEmptyArray(r,s){if(!isEmptyArray(r)){throw new TypeError(s??typeErrorMessage("empty array",r))}}function assertEmptyMap(r,s){if(!isEmptyMap(r)){throw new TypeError(s??typeErrorMessage("empty map",r))}}function assertEmptyObject(r,s){if(!isEmptyObject(r)){throw new TypeError(s??typeErrorMessage("empty object",r))}}function assertEmptySet(r,s){if(!isEmptySet(r)){throw new TypeError(s??typeErrorMessage("empty set",r))}}function assertEmptyString(r,s){if(!isEmptyString(r)){throw new TypeError(s??typeErrorMessage("empty string",r))}}function assertEmptyStringOrWhitespace(r,s){if(!isEmptyStringOrWhitespace(r)){throw new TypeError(s??typeErrorMessage("empty string or whitespace",r))}}function assertEnumCase(r,s,l){if(!isEnumCase(r,s)){throw new TypeError(l??typeErrorMessage("EnumCase",r))}}function assertError(r,s){if(!isError(r)){throw new TypeError(s??typeErrorMessage("Error",r))}}function assertEvenInteger(r,s){if(!isEvenInteger(r)){throw new TypeError(s??typeErrorMessage("even integer",r))}}function assertFalsy(r,s){if(!isFalsy(r)){throw new TypeError(s??typeErrorMessage("falsy",r))}}function assertFloat32Array(r,s){if(!isFloat32Array(r)){throw new TypeError(s??typeErrorMessage("Float32Array",r))}}function assertFloat64Array(r,s){if(!isFloat64Array(r)){throw new TypeError(s??typeErrorMessage("Float64Array",r))}}function assertFormData(r,s){if(!isFormData(r)){throw new TypeError(s??typeErrorMessage("FormData",r))}}function assertFunction(r,s){if(!isFunction(r)){throw new TypeError(s??typeErrorMessage("Function",r))}}function assertGenerator(r,s){if(!isGenerator(r)){throw new TypeError(s??typeErrorMessage("Generator",r))}}function assertGeneratorFunction(r,s){if(!isGeneratorFunction(r)){throw new TypeError(s??typeErrorMessage("GeneratorFunction",r))}}function assertHtmlElement(r,s){if(!isHtmlElement(r)){throw new TypeError(s??typeErrorMessage("HTMLElement",r))}}function assertInfinite(r,s){if(!isInfinite(r)){throw new TypeError(s??typeErrorMessage("infinite number",r))}}function assertInRange(r,s,l){if(!isInRange(r,s)){throw new TypeError(l??typeErrorMessage("in range",r))}}function assertInt16Array(r,s){if(!isInt16Array(r)){throw new TypeError(s??typeErrorMessage("Int16Array",r))}}function assertInt32Array(r,s){if(!isInt32Array(r)){throw new TypeError(s??typeErrorMessage("Int32Array",r))}}function assertInt8Array(r,s){if(!isInt8Array(r)){throw new TypeError(s??typeErrorMessage("Int8Array",r))}}function assertInteger(r,s){if(!isInteger(r)){throw new TypeError(s??typeErrorMessage("integer",r))}}function assertIterable(r,s){if(!isIterable(r)){throw new TypeError(s??typeErrorMessage("Iterable",r))}}function assertMap(r,s){if(!isMap(r)){throw new TypeError(s??typeErrorMessage("Map",r))}}function assertNan(r,s){if(!isNan(r)){throw new TypeError(s??typeErrorMessage("NaN",r))}}function assertNativePromise(r,s){if(!isNativePromise(r)){throw new TypeError(s??typeErrorMessage("native Promise",r))}}function assertNegativeNumber(r,s){if(!isNegativeNumber(r)){throw new TypeError(s??typeErrorMessage("negative number",r))}}function assertNodeStream(r,s){if(!isNodeStream(r)){throw new TypeError(s??typeErrorMessage("Node.js Stream",r))}}function assertNonEmptyArray(r,s){if(!isNonEmptyArray(r)){throw new TypeError(s??typeErrorMessage("non-empty array",r))}}function assertNonEmptyMap(r,s){if(!isNonEmptyMap(r)){throw new TypeError(s??typeErrorMessage("non-empty map",r))}}function assertNonEmptyObject(r,s){if(!isNonEmptyObject(r)){throw new TypeError(s??typeErrorMessage("non-empty object",r))}}function assertNonEmptySet(r,s){if(!isNonEmptySet(r)){throw new TypeError(s??typeErrorMessage("non-empty set",r))}}function assertNonEmptyString(r,s){if(!isNonEmptyString(r)){throw new TypeError(s??typeErrorMessage("non-empty string",r))}}function assertNonEmptyStringAndNotWhitespace(r,s){if(!isNonEmptyStringAndNotWhitespace(r)){throw new TypeError(s??typeErrorMessage("non-empty string and not whitespace",r))}}function assertNull(r,s){if(!isNull(r)){throw new TypeError(s??typeErrorMessage("null",r))}}function assertNullOrUndefined(r,s){if(!isNullOrUndefined(r)){throw new TypeError(s??typeErrorMessage("null or undefined",r))}}function assertNumber(r,s){if(!isNumber(r)){throw new TypeError(s??typeErrorMessage("number",r))}}function assertNumericString(r,s){if(!isNumericString(r)){throw new TypeError(s??typeErrorMessage("string with a number",r))}}function assertObject(r,s){if(!isObject(r)){throw new TypeError(s??typeErrorMessage("Object",r))}}function assertObservable(r,s){if(!isObservable(r)){throw new TypeError(s??typeErrorMessage("Observable",r))}}function assertOddInteger(r,s){if(!isOddInteger(r)){throw new TypeError(s??typeErrorMessage("odd integer",r))}}function assertPlainObject(r,s){if(!isPlainObject(r)){throw new TypeError(s??typeErrorMessage("plain object",r))}}function assertPositiveNumber(r,s){if(!isPositiveNumber(r)){throw new TypeError(s??typeErrorMessage("positive number",r))}}function assertPrimitive(r,s){if(!isPrimitive(r)){throw new TypeError(s??typeErrorMessage("primitive",r))}}function assertPromise(r,s){if(!isPromise(r)){throw new TypeError(s??typeErrorMessage("Promise",r))}}function assertPropertyKey(r,s){if(!isPropertyKey(r)){throw new TypeError(s??typeErrorMessage("PropertyKey",r))}}function assertRegExp(r,s){if(!isRegExp(r)){throw new TypeError(s??typeErrorMessage("RegExp",r))}}function assertSafeInteger(r,s){if(!isSafeInteger(r)){throw new TypeError(s??typeErrorMessage("integer",r))}}function assertSet(r,s){if(!isSet(r)){throw new TypeError(s??typeErrorMessage("Set",r))}}function assertSharedArrayBuffer(r,s){if(!isSharedArrayBuffer(r)){throw new TypeError(s??typeErrorMessage("SharedArrayBuffer",r))}}function assertString(r,s){if(!isString(r)){throw new TypeError(s??typeErrorMessage("string",r))}}function assertSymbol(r,s){if(!isSymbol(r)){throw new TypeError(s??typeErrorMessage("symbol",r))}}function assertTruthy(r,s){if(!isTruthy(r)){throw new TypeError(s??typeErrorMessage("truthy",r))}}function assertTupleLike(r,s,l){if(!isTupleLike(r,s)){throw new TypeError(l??typeErrorMessage("tuple-like",r))}}function assertTypedArray(r,s){if(!isTypedArray(r)){throw new TypeError(s??typeErrorMessage("TypedArray",r))}}function assertUint16Array(r,s){if(!isUint16Array(r)){throw new TypeError(s??typeErrorMessage("Uint16Array",r))}}function assertUint32Array(r,s){if(!isUint32Array(r)){throw new TypeError(s??typeErrorMessage("Uint32Array",r))}}function assertUint8Array(r,s){if(!isUint8Array(r)){throw new TypeError(s??typeErrorMessage("Uint8Array",r))}}function assertUint8ClampedArray(r,s){if(!isUint8ClampedArray(r)){throw new TypeError(s??typeErrorMessage("Uint8ClampedArray",r))}}function assertUndefined(r,s){if(!isUndefined(r)){throw new TypeError(s??typeErrorMessage("undefined",r))}}function assertUrlInstance(r,s){if(!isUrlInstance(r)){throw new TypeError(s??typeErrorMessage("URL",r))}}function assertUrlSearchParams(r,s){if(!isUrlSearchParams(r)){throw new TypeError(s??typeErrorMessage("URLSearchParams",r))}}function assertUrlString(r,s){if(!isUrlString(r)){throw new TypeError(s??typeErrorMessage("string with a URL",r))}}function assertValidDate(r,s){if(!isValidDate(r)){throw new TypeError(s??typeErrorMessage("valid Date",r))}}function assertValidLength(r,s){if(!isValidLength(r)){throw new TypeError(s??typeErrorMessage("valid length",r))}}function assertWeakMap(r,s){if(!isWeakMap(r)){throw new TypeError(s??typeErrorMessage("WeakMap",r))}}function assertWeakRef(r,s){if(!isWeakRef(r)){throw new TypeError(s??typeErrorMessage("WeakRef",r))}}function assertWeakSet(r,s){if(!isWeakSet(r)){throw new TypeError(s??typeErrorMessage("WeakSet",r))}}function assertWhitespaceString(r,s){if(!isWhitespaceString(r)){throw new TypeError(s??typeErrorMessage("whitespace string",r))}}const distribution=is;var external_node_events_=__webpack_require__(8474);class CancelError extends Error{constructor(r){super(r||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}const promiseState=Object.freeze({pending:Symbol("pending"),canceled:Symbol("canceled"),resolved:Symbol("resolved"),rejected:Symbol("rejected")});class PCancelable{static fn(r){return(...s)=>new PCancelable(((l,p,d)=>{s.push(d);r(...s).then(l,p)}))}#e=[];#t=true;#r=promiseState.pending;#s;#n;constructor(r){this.#s=new Promise(((s,l)=>{this.#n=l;const onResolve=r=>{if(this.#r!==promiseState.canceled||!onCancel.shouldReject){s(r);this.#i(promiseState.resolved)}};const onReject=r=>{if(this.#r!==promiseState.canceled||!onCancel.shouldReject){l(r);this.#i(promiseState.rejected)}};const onCancel=r=>{if(this.#r!==promiseState.pending){throw new Error(`The \`onCancel\` handler was attached after the promise ${this.#r.description}.`)}this.#e.push(r)};Object.defineProperties(onCancel,{shouldReject:{get:()=>this.#t,set:r=>{this.#t=r}}});r(onResolve,onReject,onCancel)}))}then(r,s){return this.#s.then(r,s)}catch(r){return this.#s.catch(r)}finally(r){return this.#s.finally(r)}cancel(r){if(this.#r!==promiseState.pending){return}this.#i(promiseState.canceled);if(this.#e.length>0){try{for(const r of this.#e){r()}}catch(r){this.#n(r);return}}if(this.#t){this.#n(new CancelError(r))}}get isCanceled(){return this.#r===promiseState.canceled}#i(r){if(this.#r===promiseState.pending){this.#r=r}}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);function isRequest(r){return distribution.object(r)&&"_onResponse"in r}class RequestError extends Error{input;code;stack;response;request;timings;constructor(r,s,l){super(r,{cause:s});Error.captureStackTrace(this,this.constructor);this.name="RequestError";this.code=s.code??"ERR_GOT_REQUEST_ERROR";this.input=s.input;if(isRequest(l)){Object.defineProperty(this,"request",{enumerable:false,value:l});Object.defineProperty(this,"response",{enumerable:false,value:l.response});this.options=l.options}else{this.options=l}this.timings=this.request?.timings;if(distribution.string(s.stack)&&distribution.string(this.stack)){const r=this.stack.indexOf(this.message)+this.message.length;const l=this.stack.slice(r).split("\n").reverse();const p=s.stack.slice(s.stack.indexOf(s.message)+s.message.length).split("\n").reverse();while(p.length>0&&p[0]===l[0]){l.shift()}this.stack=`${this.stack.slice(0,r)}${l.reverse().join("\n")}${p.reverse().join("\n")}`}}}class MaxRedirectsError extends RequestError{constructor(r){super(`Redirected ${r.options.maxRedirects} times. Aborting.`,{},r);this.name="MaxRedirectsError";this.code="ERR_TOO_MANY_REDIRECTS"}}class HTTPError extends RequestError{constructor(r){super(`Response code ${r.statusCode} (${r.statusMessage})`,{},r.request);this.name="HTTPError";this.code="ERR_NON_2XX_3XX_RESPONSE"}}class CacheError extends RequestError{constructor(r,s){super(r.message,r,s);this.name="CacheError";this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}}class UploadError extends RequestError{constructor(r,s){super(r.message,r,s);this.name="UploadError";this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}}class TimeoutError extends RequestError{timings;event;constructor(r,s,l){super(r.message,r,l);this.name="TimeoutError";this.event=r.event;this.timings=s}}class ReadError extends RequestError{constructor(r,s){super(r.message,r,s);this.name="ReadError";this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}}class RetryError extends RequestError{constructor(r){super("Retrying",{},r);this.name="RetryError";this.code="ERR_RETRYING"}}class AbortError extends RequestError{constructor(r){super("This operation was aborted.",{},r);this.code="ERR_ABORTED";this.name="AbortError"}}var external_node_process_=__webpack_require__(1708);const external_node_buffer_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer");const external_node_stream_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream");const external_node_zlib_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib");const external_node_util_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util");const external_node_http_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http");var external_events_=__webpack_require__(4434);var external_util_=__webpack_require__(9023);var source=__webpack_require__(1077);const timer=r=>{if(r.timings){return r.timings}const s={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};r.timings=s;const handleError=r=>{r.once(external_events_.errorMonitor,(()=>{s.error=Date.now();s.phases.total=s.error-s.start}))};handleError(r);const onAbort=()=>{s.abort=Date.now();s.phases.total=s.abort-s.start};r.prependOnceListener("abort",onAbort);const onSocket=r=>{s.socket=Date.now();s.phases.wait=s.socket-s.start;if(external_util_.types.isProxy(r)){return}const lookupListener=()=>{s.lookup=Date.now();s.phases.dns=s.lookup-s.socket};r.prependOnceListener("lookup",lookupListener);source(r,{connect:()=>{s.connect=Date.now();if(s.lookup===undefined){r.removeListener("lookup",lookupListener);s.lookup=s.connect;s.phases.dns=s.lookup-s.socket}s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now();s.phases.tls=s.secureConnect-s.connect}})};if(r.socket){onSocket(r.socket)}else{r.prependOnceListener("socket",onSocket)}const onUpload=()=>{s.upload=Date.now();s.phases.request=s.upload-(s.secureConnect??s.connect)};if(r.writableFinished){onUpload()}else{r.prependOnceListener("finish",onUpload)}r.prependOnceListener("response",(l=>{s.response=Date.now();s.phases.firstByte=s.response-s.upload;l.timings=s;handleError(l);l.prependOnceListener("end",(()=>{r.off("abort",onAbort);l.off("aborted",onAbort);if(s.phases.total){return}s.end=Date.now();s.phases.download=s.end-s.response;s.phases.total=s.end-s.start}));l.prependOnceListener("aborted",onAbort)}));return s};const dist_source=timer;const external_node_crypto_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto");const external_node_url_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url");function isStream(r,{checkOpen:s=true}={}){return r!==null&&typeof r==="object"&&(r.writable||r.readable||!s||r.writable===undefined&&r.readable===undefined)&&typeof r.pipe==="function"}function isWritableStream(r,{checkOpen:s=true}={}){return isStream(r,{checkOpen:s})&&(r.writable||!s)&&typeof r.write==="function"&&typeof r.end==="function"&&typeof r.writable==="boolean"&&typeof r.writableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function isReadableStream(r,{checkOpen:s=true}={}){return isStream(r,{checkOpen:s})&&(r.readable||!s)&&typeof r.read==="function"&&typeof r.readable==="boolean"&&typeof r.readableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function isDuplexStream(r,s){return isWritableStream(r,s)&&isReadableStream(r,s)}function isTransformStream(r,s){return isDuplexStream(r,s)&&typeof r._transform==="function"}const a=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class c{#a;#o;#l=!1;#c=void 0;constructor(r,s){this.#a=r,this.#o=s}next(){const e=()=>this.#u();return this.#c=this.#c?this.#c.then(e,e):e(),this.#c}return(r){const t=()=>this.#p(r);return this.#c?this.#c.then(t,t):t()}async#u(){if(this.#l)return{done:!0,value:void 0};let r;try{r=await this.#a.read()}catch(r){throw this.#c=void 0,this.#l=!0,this.#a.releaseLock(),r}return r.done&&(this.#c=void 0,this.#l=!0,this.#a.releaseLock()),r}async#p(r){if(this.#l)return{done:!0,value:r};if(this.#l=!0,!this.#o){const s=this.#a.cancel(r);return this.#a.releaseLock(),await s,{done:!0,value:r}}return this.#a.releaseLock(),{done:!0,value:r}}}const n=Symbol();function i(){return this[n].next()}Object.defineProperty(i,"name",{value:"next"});function o(r){return this[n].return(r)}Object.defineProperty(o,"name",{value:"return"});const u=Object.create(a,{next:{enumerable:!0,configurable:!0,writable:!0,value:i},return:{enumerable:!0,configurable:!0,writable:!0,value:o}});function h({preventCancel:r=!1}={}){const s=this.getReader(),l=new c(s,r),p=Object.create(u);return p[n]=l,p}const getAsyncIterable=r=>{if(isReadableStream(r,{checkOpen:false})&&nodeImports.on!==undefined){return getStreamIterable(r)}if(typeof r?.[Symbol.asyncIterator]==="function"){return r}if(stream_toString.call(r)==="[object ReadableStream]"){return h.call(r)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:stream_toString}=Object.prototype;const getStreamIterable=async function*(r){const s=new AbortController;const l={};handleStreamEnd(r,s,l);try{for await(const[l]of nodeImports.on(r,"data",{signal:s.signal})){yield l}}catch(r){if(l.error!==undefined){throw l.error}else if(!s.signal.aborted){throw r}}finally{r.destroy()}};const handleStreamEnd=async(r,s,l)=>{try{await nodeImports.finished(r,{cleanup:true,readable:true,writable:false,error:false})}catch(r){l.error=r}finally{s.abort()}};const nodeImports={};const getStreamContents=async(r,{init:s,convertChunk:l,getSize:p,truncateChunk:d,addChunk:m,getFinalChunk:y,finalize:g},{maxBuffer:T=Number.POSITIVE_INFINITY}={})=>{const b=getAsyncIterable(r);const E=s();E.length=0;try{for await(const r of b){const s=getChunkType(r);const y=l[s](r,E);appendChunk({convertedChunk:y,state:E,getSize:p,truncateChunk:d,addChunk:m,maxBuffer:T})}appendFinalChunk({state:E,convertChunk:l,getSize:p,truncateChunk:d,addChunk:m,getFinalChunk:y,maxBuffer:T});return g(E)}catch(r){const s=typeof r==="object"&&r!==null?r:new Error(r);s.bufferedData=g(E);throw s}};const appendFinalChunk=({state:r,getSize:s,truncateChunk:l,addChunk:p,getFinalChunk:d,maxBuffer:m})=>{const y=d(r);if(y!==undefined){appendChunk({convertedChunk:y,state:r,getSize:s,truncateChunk:l,addChunk:p,maxBuffer:m})}};const appendChunk=({convertedChunk:r,state:s,getSize:l,truncateChunk:p,addChunk:d,maxBuffer:m})=>{const y=l(r);const g=s.length+y;if(g<=m){addNewChunk(r,s,d,g);return}const T=p(r,m-s.length);if(T!==undefined){addNewChunk(T,s,d,m)}throw new MaxBufferError};const addNewChunk=(r,s,l,p)=>{s.contents=l(r,s,p);s.length=p};const getChunkType=r=>{const s=typeof r;if(s==="string"){return"string"}if(s!=="object"||r===null){return"others"}if(globalThis.Buffer?.isBuffer(r)){return"buffer"}const l=objectToString.call(r);if(l==="[object ArrayBuffer]"){return"arrayBuffer"}if(l==="[object DataView]"){return"dataView"}if(Number.isInteger(r.byteLength)&&Number.isInteger(r.byteOffset)&&objectToString.call(r.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:objectToString}=Object.prototype;class MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const identity=r=>r;const noop=()=>undefined;const getContentsProperty=({contents:r})=>r;const throwObjectStream=r=>{throw new Error(`Streams in object mode are not supported: ${String(r)}`)};const getLengthProperty=r=>r.length;async function getStreamAsArrayBuffer(r,s){return getStreamContents(r,arrayBufferMethods,s)}const initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const useTextEncoder=r=>textEncoder.encode(r);const textEncoder=new TextEncoder;const useUint8Array=r=>new Uint8Array(r);const useUint8ArrayWithOffset=r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength);const truncateArrayBufferChunk=(r,s)=>r.slice(0,s);const addArrayBufferChunk=(r,{contents:s,length:l},p)=>{const d=hasArrayBufferResize()?resizeArrayBuffer(s,p):resizeArrayBufferSlow(s,p);new Uint8Array(d).set(r,l);return d};const resizeArrayBufferSlow=(r,s)=>{if(s<=r.byteLength){return r}const l=new ArrayBuffer(getNewContentsLength(s));new Uint8Array(l).set(new Uint8Array(r),0);return l};const resizeArrayBuffer=(r,s)=>{if(s<=r.maxByteLength){r.resize(s);return r}const l=new ArrayBuffer(s,{maxByteLength:getNewContentsLength(s)});new Uint8Array(l).set(new Uint8Array(r),0);return l};const getNewContentsLength=r=>SCALE_FACTOR**Math.ceil(Math.log(r)/Math.log(SCALE_FACTOR));const SCALE_FACTOR=2;const finalizeArrayBuffer=({contents:r,length:s})=>hasArrayBufferResize()?r:r.slice(0,s);const hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const arrayBufferMethods={init:initArrayBuffer,convertChunk:{string:useTextEncoder,buffer:useUint8Array,arrayBuffer:useUint8Array,dataView:useUint8ArrayWithOffset,typedArray:useUint8ArrayWithOffset,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateArrayBufferChunk,addChunk:addArrayBufferChunk,getFinalChunk:noop,finalize:finalizeArrayBuffer};async function getStreamAsBuffer(r,s){if(!("Buffer"in globalThis)){throw new Error("getStreamAsBuffer() is only supported in Node.js")}try{return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(r,s))}catch(r){if(r.bufferedData!==undefined){r.bufferedData=arrayBufferToNodeBuffer(r.bufferedData)}throw r}}const arrayBufferToNodeBuffer=r=>globalThis.Buffer.from(r);var http_cache_semantics=__webpack_require__(332);var external_buffer_=__webpack_require__(181);var _serialize=(r,s=true)=>{if(r===void 0||r===null){return"null"}if(typeof r==="string"){return JSON.stringify(s&&r.startsWith(":")?`:${r}`:r)}if(external_buffer_.Buffer.isBuffer(r)){return JSON.stringify(`:base64:${r.toString("base64")}`)}if(r?.toJSON){r=r.toJSON()}if(typeof r==="object"){let l="";const p=Array.isArray(r);l=p?"[":"{";let d=true;for(const m in r){const y=typeof r[m]==="function"||!p&&r[m]===void 0;if(!Object.hasOwn(r,m)||y){continue}if(!d){l+=","}d=false;if(p){l+=_serialize(r[m],s)}else if(r[m]!==void 0){l+=`${_serialize(m,false)}:${_serialize(r[m],s)}`}}l+=p?"]":"}";return l}return JSON.stringify(r)};var defaultSerialize=r=>_serialize(r,true);var defaultDeserialize=r=>JSON.parse(r,((r,s)=>{if(typeof s==="string"){if(s.startsWith(":base64:")){return external_buffer_.Buffer.from(s.slice(8),"base64")}return s.startsWith(":")?s.slice(1):s}return s}));var EventManager=class{_eventListeners;_maxListeners;constructor(){this._eventListeners=new Map;this._maxListeners=100}maxListeners(){return this._maxListeners}addListener(r,s){this.on(r,s)}on(r,s){if(!this._eventListeners.has(r)){this._eventListeners.set(r,[])}const l=this._eventListeners.get(r);if(l){if(l.length>=this._maxListeners){console.warn(`MaxListenersExceededWarning: Possible event memory leak detected. ${l.length+1} ${r} listeners added. Use setMaxListeners() to increase limit.`)}l.push(s)}return this}removeListener(r,s){this.off(r,s)}off(r,s){const l=this._eventListeners.get(r)??[];const p=l.indexOf(s);if(p!==-1){l.splice(p,1)}if(l.length===0){this._eventListeners.delete(r)}}once(r,s){const onceListener=(...l)=>{s(...l);this.off(r,onceListener)};this.on(r,onceListener)}emit(r,...s){const l=this._eventListeners.get(r);if(l&&l.length>0){for(const r of l){r(...s)}}}listeners(r){return this._eventListeners.get(r)??[]}removeAllListeners(r){if(r){this._eventListeners.delete(r)}else{this._eventListeners.clear()}}setMaxListeners(r){this._maxListeners=r}};var event_manager_default=EventManager;var HooksManager=class extends event_manager_default{_hookHandlers;constructor(){super();this._hookHandlers=new Map}addHandler(r,s){const l=this._hookHandlers.get(r);if(l){l.push(s)}else{this._hookHandlers.set(r,[s])}}removeHandler(r,s){const l=this._hookHandlers.get(r);if(l){const r=l.indexOf(s);if(r!==-1){l.splice(r,1)}}}trigger(r,s){const l=this._hookHandlers.get(r);if(l){for(const p of l){try{p(s)}catch(s){this.emit("error",new Error(`Error in hook handler for event "${r}": ${s.message}`))}}}}get handlers(){return new Map(this._hookHandlers)}};var hooks_manager_default=HooksManager;var StatsManager=class extends event_manager_default{enabled=true;hits=0;misses=0;sets=0;deletes=0;errors=0;constructor(r){super();if(r!==void 0){this.enabled=r}this.reset()}hit(){if(this.enabled){this.hits++}}miss(){if(this.enabled){this.misses++}}set(){if(this.enabled){this.sets++}}delete(){if(this.enabled){this.deletes++}}hitsOrMisses(r){for(const s of r){if(s===void 0){this.miss()}else{this.hit()}}}reset(){this.hits=0;this.misses=0;this.sets=0;this.deletes=0;this.errors=0}};var stats_manager_default=StatsManager;var KeyvHooks=(r=>{r["PRE_SET"]="preSet";r["POST_SET"]="postSet";r["PRE_GET"]="preGet";r["POST_GET"]="postGet";r["PRE_GET_MANY"]="preGetMany";r["POST_GET_MANY"]="postGetMany";r["PRE_GET_RAW"]="preGetRaw";r["POST_GET_RAW"]="postGetRaw";r["PRE_GET_MANY_RAW"]="preGetManyRaw";r["POST_GET_MANY_RAW"]="postGetManyRaw";r["PRE_DELETE"]="preDelete";r["POST_DELETE"]="postDelete";return r})(KeyvHooks||{});var iterableAdapters=["sqlite","postgres","mysql","mongo","redis","valkey","etcd"];var Keyv=class extends event_manager_default{opts;iterator;hooks=new hooks_manager_default;stats=new stats_manager_default(false);_ttl;_namespace;_store=new Map;_serialize=defaultSerialize;_deserialize=defaultDeserialize;_compression;_useKeyPrefix=true;_throwOnErrors=false;constructor(r,s){super();s??={};r??={};this.opts={namespace:"keyv",serialize:defaultSerialize,deserialize:defaultDeserialize,emitErrors:true,store:new Map,...s};if(r&&r.get){this.opts.store=r}else{this.opts={...this.opts,...r}}this._store=this.opts.store??new Map;this._compression=this.opts.compression;this._serialize=this.opts.serialize;this._deserialize=this.opts.deserialize;if(this.opts.namespace){this._namespace=this.opts.namespace}if(this._store){if(!this._isValidStorageAdapter(this._store)){throw new Error("Invalid storage adapter")}if(typeof this._store.on==="function"){this._store.on("error",(r=>this.emit("error",r)))}this._store.namespace=this._namespace;if(typeof this._store[Symbol.iterator]==="function"&&this._store instanceof Map){this.iterator=this.generateIterator(this._store)}else if("iterator"in this._store&&this._store.opts&&this._checkIterableAdapter()){this.iterator=this.generateIterator(this._store.iterator.bind(this._store))}}if(this.opts.stats){this.stats.enabled=this.opts.stats}if(this.opts.ttl){this._ttl=this.opts.ttl}if(this.opts.useKeyPrefix!==void 0){this._useKeyPrefix=this.opts.useKeyPrefix}if(this.opts.throwOnErrors!==void 0){this._throwOnErrors=this.opts.throwOnErrors}}get store(){return this._store}set store(r){if(this._isValidStorageAdapter(r)){this._store=r;this.opts.store=r;if(typeof r.on==="function"){r.on("error",(r=>this.emit("error",r)))}if(this._namespace){this._store.namespace=this._namespace}if(typeof r[Symbol.iterator]==="function"&&r instanceof Map){this.iterator=this.generateIterator(r)}else if("iterator"in r&&r.opts&&this._checkIterableAdapter()){this.iterator=this.generateIterator(r.iterator?.bind(r))}}else{throw new Error("Invalid storage adapter")}}get compression(){return this._compression}set compression(r){this._compression=r}get namespace(){return this._namespace}set namespace(r){this._namespace=r;this.opts.namespace=r;this._store.namespace=r;if(this.opts.store){this.opts.store.namespace=r}}get ttl(){return this._ttl}set ttl(r){this.opts.ttl=r;this._ttl=r}get serialize(){return this._serialize}set serialize(r){this.opts.serialize=r;this._serialize=r}get deserialize(){return this._deserialize}set deserialize(r){this.opts.deserialize=r;this._deserialize=r}get useKeyPrefix(){return this._useKeyPrefix}set useKeyPrefix(r){this._useKeyPrefix=r;this.opts.useKeyPrefix=r}get throwOnErrors(){return this._throwOnErrors}set throwOnErrors(r){this._throwOnErrors=r;this.opts.throwOnErrors=r}generateIterator(r){const function_=async function*(){for await(const[s,l]of typeof r==="function"?r(this._store.namespace):r){const r=await this.deserializeData(l);if(this._useKeyPrefix&&this._store.namespace&&!s.includes(this._store.namespace)){continue}if(typeof r.expires==="number"&&Date.now()>r.expires){this.delete(s);continue}yield[this._getKeyUnprefix(s),r.value]}};return function_.bind(this)}_checkIterableAdapter(){return iterableAdapters.includes(this._store.opts.dialect)||iterableAdapters.some((r=>this._store.opts.url.includes(r)))}_getKeyPrefix(r){if(!this._useKeyPrefix){return r}if(!this._namespace){return r}return`${this._namespace}:${r}`}_getKeyPrefixArray(r){if(!this._useKeyPrefix){return r}if(!this._namespace){return r}return r.map((r=>`${this._namespace}:${r}`))}_getKeyUnprefix(r){if(!this._useKeyPrefix){return r}return r.split(":").splice(1).join(":")}_isValidStorageAdapter(r){return r instanceof Map||typeof r.get==="function"&&typeof r.set==="function"&&typeof r.delete==="function"&&typeof r.clear==="function"}async get(r,s){const{store:l}=this.opts;const p=Array.isArray(r);const d=p?this._getKeyPrefixArray(r):this._getKeyPrefix(r);const isDataExpired=r=>typeof r.expires==="number"&&Date.now()>r.expires;if(p){if(s?.raw===true){return this.getMany(r,{raw:true})}return this.getMany(r,{raw:false})}this.hooks.trigger("preGet",{key:d});let m;try{m=await l.get(d)}catch(r){if(this.throwOnErrors){throw r}}const y=typeof m==="string"||this.opts.compression?await this.deserializeData(m):m;if(y===void 0||y===null){this.stats.miss();return void 0}if(isDataExpired(y)){await this.delete(r);this.stats.miss();return void 0}this.hooks.trigger("postGet",{key:d,value:y});this.stats.hit();return s?.raw?y:y.value}async getMany(r,s){const{store:l}=this.opts;const p=this._getKeyPrefixArray(r);const isDataExpired=r=>typeof r.expires==="number"&&Date.now()>r.expires;this.hooks.trigger("preGetMany",{keys:p});if(l.getMany===void 0){const r=p.map((async r=>{const p=await l.get(r);const d=typeof p==="string"||this.opts.compression?await this.deserializeData(p):p;if(d===void 0||d===null){return void 0}if(isDataExpired(d)){await this.delete(r);return void 0}return s?.raw?d:d.value}));const d=await Promise.allSettled(r);const m=d.map((r=>r.value));this.hooks.trigger("postGetMany",m);if(m.length>0){this.stats.hit()}return m}const d=await l.getMany(p);const m=[];const y=[];for(const l in d){let p=d[l];if(typeof p==="string"){p=await this.deserializeData(p)}if(p===void 0||p===null){m.push(void 0);continue}if(isDataExpired(p)){y.push(r[l]);m.push(void 0);continue}const g=s?.raw?p:p.value;m.push(g)}if(y.length>0){await this.deleteMany(y)}this.hooks.trigger("postGetMany",m);if(m.length>0){this.stats.hit()}return m}async getRaw(r){const{store:s}=this.opts;const l=this._getKeyPrefix(r);this.hooks.trigger("preGetRaw",{key:l});const p=await s.get(l);if(p===void 0||p===null){this.stats.miss();return void 0}const d=typeof p==="string"||this.opts.compression?await this.deserializeData(p):p;if(d!==void 0&&d.expires!==void 0&&d.expires!==null&&d.expires<Date.now()){this.stats.miss();await this.delete(r);return void 0}this.stats.hit();this.hooks.trigger("postGetRaw",{key:l,value:d});return d}async getManyRaw(r){const{store:s}=this.opts;const l=this._getKeyPrefixArray(r);if(r.length===0){const s=Array.from({length:r.length}).fill(void 0);this.stats.misses+=r.length;this.hooks.trigger("postGetManyRaw",{keys:l,values:s});return s}let p=[];if(s.getMany===void 0){const r=l.map((async r=>{const l=await s.get(r);if(l!==void 0&&l!==null){return this.deserializeData(l)}return void 0}));const d=await Promise.allSettled(r);p=d.map((r=>r.value))}else{const r=await s.getMany(l);for(const s of r){if(s!==void 0&&s!==null){p.push(await this.deserializeData(s))}else{p.push(void 0)}}}const d=[];const isDataExpired=r=>typeof r.expires==="number"&&Date.now()>r.expires;for(const[r,s]of p.entries()){if(s!==void 0&&isDataExpired(s)){d.push(l[r]);p[r]=void 0}}if(d.length>0){await this.deleteMany(d)}this.stats.hitsOrMisses(p);this.hooks.trigger("postGetManyRaw",{keys:l,values:p});return p}async set(r,s,l){const p={key:r,value:s,ttl:l};this.hooks.trigger("preSet",p);const d=this._getKeyPrefix(p.key);p.ttl??=this._ttl;if(p.ttl===0){p.ttl=void 0}const{store:m}=this.opts;const y=typeof p.ttl==="number"?Date.now()+p.ttl:void 0;if(typeof p.value==="symbol"){this.emit("error","symbol cannot be serialized");throw new Error("symbol cannot be serialized")}const g={value:p.value,expires:y};const T=await this.serializeData(g);let b=true;try{const r=await m.set(d,T,p.ttl);if(typeof r==="boolean"){b=r}}catch(r){b=false;this.emit("error",r);if(this._throwOnErrors){throw r}}this.hooks.trigger("postSet",{key:d,value:T,ttl:l});this.stats.set();return b}async setMany(r){let s=[];try{if(this._store.setMany===void 0){const l=[];for(const s of r){l.push(this.set(s.key,s.value,s.ttl))}const p=await Promise.all(l);s=p}else{const l=await Promise.all(r.map((async({key:r,value:s,ttl:l})=>{l??=this._ttl;if(l===0){l=void 0}const p=typeof l==="number"?Date.now()+l:void 0;if(typeof s==="symbol"){this.emit("error","symbol cannot be serialized");throw new Error("symbol cannot be serialized")}const d={value:s,expires:p};const m=await this.serializeData(d);const y=this._getKeyPrefix(r);return{key:y,value:m,ttl:l}})));s=await this._store.setMany(l)}}catch(l){this.emit("error",l);if(this._throwOnErrors){throw l}s=r.map((()=>false))}return s}async delete(r){const{store:s}=this.opts;if(Array.isArray(r)){return this.deleteMany(r)}const l=this._getKeyPrefix(r);this.hooks.trigger("preDelete",{key:l});let p=true;try{const r=await s.delete(l);if(typeof r==="boolean"){p=r}}catch(r){p=false;this.emit("error",r);if(this._throwOnErrors){throw r}}this.hooks.trigger("postDelete",{key:l,value:p});this.stats.delete();return p}async deleteMany(r){try{const{store:s}=this.opts;const l=this._getKeyPrefixArray(r);this.hooks.trigger("preDelete",{key:l});if(s.deleteMany!==void 0){return await s.deleteMany(l)}const p=l.map((async r=>s.delete(r)));const d=await Promise.all(p);const m=d.every(Boolean);this.hooks.trigger("postDelete",{key:l,value:m});return m}catch(r){this.emit("error",r);if(this._throwOnErrors){throw r}return false}}async clear(){this.emit("clear");const{store:r}=this.opts;try{await r.clear()}catch(r){this.emit("error",r);if(this._throwOnErrors){throw r}}}async has(r){if(Array.isArray(r)){return this.hasMany(r)}const s=this._getKeyPrefix(r);const{store:l}=this.opts;if(l.has!==void 0&&!(l instanceof Map)){return l.has(s)}let p;try{p=await l.get(s)}catch(r){this.emit("error",r);if(this._throwOnErrors){throw r}return false}if(p){const r=await this.deserializeData(p);if(r){if(r.expires===void 0||r.expires===null){return true}return r.expires>Date.now()}}return false}async hasMany(r){const s=this._getKeyPrefixArray(r);const{store:l}=this.opts;if(l.hasMany!==void 0){return l.hasMany(s)}const p=[];for(const s of r){p.push(await this.has(s))}return p}async disconnect(){const{store:r}=this.opts;this.emit("disconnect");if(typeof r.disconnect==="function"){return r.disconnect()}}emit(r,...s){if(r==="error"&&!this.opts.emitErrors){return}super.emit(r,...s)}async serializeData(r){if(!this._serialize){return r}if(this._compression?.compress){return this._serialize({value:await this._compression.compress(r.value),expires:r.expires})}return this._serialize(r)}async deserializeData(r){if(!this._deserialize){return r}if(this._compression?.decompress&&typeof r==="string"){const s=await this._deserialize(r);return{value:await this._compression.decompress(s?.value),expires:s?.expires}}if(typeof r==="string"){return this._deserialize(r)}return void 0}};var index_default=null&&Keyv;const knownProperties=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];function mimicResponse(r,s){if(s._readableState.autoDestroy){throw new Error("The second stream must have the `autoDestroy` option set to `false`")}const l=new Set([...Object.keys(r),...knownProperties]);const p={};for(const d of l){if(d in s){continue}p[d]={get(){const s=r[d];const l=typeof s==="function";return l?s.bind(r):s},set(s){r[d]=s},enumerable:true,configurable:false}}Object.defineProperties(s,p);r.once("aborted",(()=>{s.destroy();s.emit("aborted")}));r.once("close",(()=>{if(r.complete){if(s.readable){s.once("end",(()=>{s.emit("close")}))}else{s.emit("close")}}else{s.emit("close")}}));return s}const DATA_URL_DEFAULT_MIME_TYPE="text/plain";const DATA_URL_DEFAULT_CHARSET="us-ascii";const testParameter=(r,s)=>s.some((s=>s instanceof RegExp?s.test(r):s===r));const supportedProtocols=new Set(["https:","http:","file:"]);const hasCustomProtocol=r=>{try{const{protocol:s}=new URL(r);return s.endsWith(":")&&!s.includes(".")&&!supportedProtocols.has(s)}catch{return false}};const normalizeDataURL=(r,{stripHash:s})=>{const l=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(r);if(!l){throw new Error(`Invalid URL: ${r}`)}let{type:p,data:d,hash:m}=l.groups;const y=p.split(";");m=s?"":m;let g=false;if(y[y.length-1]==="base64"){y.pop();g=true}const T=y.shift()?.toLowerCase()??"";const b=y.map((r=>{let[s,l=""]=r.split("=").map((r=>r.trim()));if(s==="charset"){l=l.toLowerCase();if(l===DATA_URL_DEFAULT_CHARSET){return""}}return`${s}${l?`=${l}`:""}`})).filter(Boolean);const E=[...b];if(g){E.push("base64")}if(E.length>0||T&&T!==DATA_URL_DEFAULT_MIME_TYPE){E.unshift(T)}return`data:${E.join(";")},${g?d.trim():d}${m?`#${m}`:""}`};function normalizeUrl(r,s){s={defaultProtocol:"http",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripTextFragment:true,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeSingleSlash:true,removeDirectoryIndex:false,removeExplicitPort:false,sortQueryParameters:true,removePath:false,transformPath:false,...s};if(typeof s.defaultProtocol==="string"&&!s.defaultProtocol.endsWith(":")){s.defaultProtocol=`${s.defaultProtocol}:`}r=r.trim();if(/^data:/i.test(r)){return normalizeDataURL(r,s)}if(hasCustomProtocol(r)){return r}const l=r.startsWith("//");const p=!l&&/^\.*\//.test(r);if(!p){r=r.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,s.defaultProtocol)}const d=new URL(r);if(s.forceHttp&&s.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(s.forceHttp&&d.protocol==="https:"){d.protocol="http:"}if(s.forceHttps&&d.protocol==="http:"){d.protocol="https:"}if(s.stripAuthentication){d.username="";d.password=""}if(s.stripHash){d.hash=""}else if(s.stripTextFragment){d.hash=d.hash.replace(/#?:~:text.*?$/i,"")}if(d.pathname){const r=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g;let s=0;let l="";for(;;){const p=r.exec(d.pathname);if(!p){break}const m=p[0];const y=p.index;const g=d.pathname.slice(s,y);l+=g.replace(/\/{2,}/g,"/");l+=m;s=y+m.length}const p=d.pathname.slice(s,d.pathname.length);l+=p.replace(/\/{2,}/g,"/");d.pathname=l}if(d.pathname){try{d.pathname=decodeURI(d.pathname).replace(/\\/g,"%5C")}catch{}}if(s.removeDirectoryIndex===true){s.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(s.removeDirectoryIndex)&&s.removeDirectoryIndex.length>0){let r=d.pathname.split("/");const l=r[r.length-1];if(testParameter(l,s.removeDirectoryIndex)){r=r.slice(0,-1);d.pathname=r.slice(1).join("/")+"/"}}if(s.removePath){d.pathname="/"}if(s.transformPath&&typeof s.transformPath==="function"){const r=d.pathname.split("/").filter(Boolean);const l=s.transformPath(r);d.pathname=l?.length>0?`/${l.join("/")}`:"/"}if(d.hostname){d.hostname=d.hostname.replace(/\.$/,"");if(s.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(d.hostname)){d.hostname=d.hostname.replace(/^www\./,"")}}if(Array.isArray(s.removeQueryParameters)){for(const r of[...d.searchParams.keys()]){if(testParameter(r,s.removeQueryParameters)){d.searchParams.delete(r)}}}if(!Array.isArray(s.keepQueryParameters)&&s.removeQueryParameters===true){d.search=""}if(Array.isArray(s.keepQueryParameters)&&s.keepQueryParameters.length>0){for(const r of[...d.searchParams.keys()]){if(!testParameter(r,s.keepQueryParameters)){d.searchParams.delete(r)}}}if(s.sortQueryParameters){const r=d.search;d.searchParams.sort();try{d.search=decodeURIComponent(d.search)}catch{}const s=r.slice(1).split("&").filter((r=>r&&!r.includes("=")));for(const r of s){const s=decodeURIComponent(r);d.search=d.search.replace(`?${s}=`,`?${s}`).replace(`&${s}=`,`&${s}`)}}if(s.removeTrailingSlash){d.pathname=d.pathname.replace(/\/$/,"")}if(s.removeExplicitPort&&d.port){d.port=""}const m=r;r=d.toString();if(!s.removeSingleSlash&&d.pathname==="/"&&!m.endsWith("/")&&d.hash===""){r=r.replace(/\/$/,"")}if((s.removeTrailingSlash||d.pathname==="/")&&d.hash===""&&s.removeSingleSlash){r=r.replace(/\/$/,"")}if(l&&!s.normalizeProtocol){r=r.replace(/^http:\/\//,"//")}if(s.stripProtocol){r=r.replace(/^(?:https?:)?\/\//,"")}return r}function lowercaseKeys(r){return Object.fromEntries(Object.entries(r).map((([r,s])=>[r.toLowerCase(),s])))}class responselike_Response extends external_node_stream_namespaceObject.Readable{statusCode;headers;body;url;constructor({statusCode:r,headers:s,body:l,url:p}){if(typeof r!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof s!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(l instanceof Uint8Array)){throw new TypeError("Argument `body` should be a buffer")}if(typeof p!=="string"){throw new TypeError("Argument `url` should be a string")}super({read(){this.push(l);this.push(null)}});this.statusCode=r;this.headers=lowercaseKeys(s);this.body=l;this.url=p}}class types_RequestError extends Error{constructor(r){super(r.message);Object.defineProperties(this,Object.getOwnPropertyDescriptors(r))}}class types_CacheError extends Error{constructor(r){super(r.message);Object.defineProperties(this,Object.getOwnPropertyDescriptors(r))}}class CacheableRequest{constructor(r,s){this.cache=new Keyv({namespace:"cacheable-request"});this.hooks=new Map;this.request=()=>(r,s)=>{let l;if(typeof r==="string"){l=normalizeUrlObject(parseWithWhatwg(r));r={}}else if(r instanceof external_node_url_namespaceObject.URL){l=normalizeUrlObject(parseWithWhatwg(r.toString()));r={}}else{const[s,...p]=(r.path??"").split("?");const d=p.length>0?`?${p.join("?")}`:"";l=normalizeUrlObject({...r,pathname:s,search:d})}r={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...r,...urlObjectToRequestOptions(l)};r.headers=Object.fromEntries(entries(r.headers).map((([r,s])=>[r.toLowerCase(),s])));const p=new external_node_events_;const d=normalizeUrl(external_node_url_namespaceObject.format(l),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});let m=`${r.method}:${d}`;if(r.body&&r.method!==undefined&&["POST","PATCH","PUT"].includes(r.method)){if(r.body instanceof external_node_stream_namespaceObject.Readable){r.cache=false}else{m+=`:${external_node_crypto_namespaceObject.createHash("md5").update(r.body).digest("hex")}`}}let y=false;let g=false;const makeRequest=r=>{g=true;let l=false;let requestErrorCallback=()=>{};const d=new Promise((r=>{requestErrorCallback=()=>{if(!l){l=true;r()}}}));const handler=async l=>{if(y){l.status=l.statusCode;const s=http_cache_semantics.fromObject(y.cachePolicy).revalidatedPolicy(r,l);if(!s.modified){l.resume();await new Promise((r=>{l.once("end",r)}));const r=convertHeaders(s.policy.responseHeaders());l=new responselike_Response({statusCode:y.statusCode,headers:r,body:y.body,url:y.url});l.cachePolicy=s.policy;l.fromCache=true}}if(!l.fromCache){l.cachePolicy=new http_cache_semantics(r,l,r);l.fromCache=false}let g;if(r.cache&&l.cachePolicy.storable()){g=cloneResponse(l);(async()=>{try{const s=getStreamAsBuffer(l);await Promise.race([d,new Promise((r=>l.once("end",r))),new Promise((r=>l.once("close",r)))]);const p=await s;let g={url:l.url,statusCode:l.fromCache?y.statusCode:l.statusCode,body:p,cachePolicy:l.cachePolicy.toObject()};let T=r.strictTtl?l.cachePolicy.timeToLive():undefined;if(r.maxTtl){T=T?Math.min(T,r.maxTtl):r.maxTtl}if(this.hooks.size>0){for(const r of this.hooks.keys()){g=await this.runHook(r,g,l)}}await this.cache.set(m,g,T)}catch(r){p.emit("error",new types_CacheError(r))}})()}else if(r.cache&&y){(async()=>{try{await this.cache.delete(m)}catch(r){p.emit("error",new types_CacheError(r))}})()}p.emit("response",g??l);if(typeof s==="function"){s(g??l)}};try{const s=this.cacheRequest(r,handler);s.once("error",requestErrorCallback);s.once("abort",requestErrorCallback);s.once("destroy",requestErrorCallback);p.emit("request",s)}catch(r){p.emit("error",new types_RequestError(r))}};(async()=>{const get=async r=>{await Promise.resolve();const l=r.cache?await this.cache.get(m):undefined;if(l===undefined&&!r.forceRefresh){makeRequest(r);return}const d=http_cache_semantics.fromObject(l.cachePolicy);if(d.satisfiesWithoutRevalidation(r)&&!r.forceRefresh){const r=convertHeaders(d.responseHeaders());const m=l.body;const y=Buffer.from(m);const g=new responselike_Response({statusCode:l.statusCode,headers:r,body:y,url:l.url});g.cachePolicy=d;g.fromCache=true;p.emit("response",g);if(typeof s==="function"){s(g)}}else if(d.satisfiesWithoutRevalidation(r)&&Date.now()>=d.timeToLive()&&r.forceRefresh){await this.cache.delete(m);r.headers=d.revalidationHeaders(r);makeRequest(r)}else{y=l;r.headers=d.revalidationHeaders(r);makeRequest(r)}};const errorHandler=r=>p.emit("error",new types_CacheError(r));if(this.cache instanceof Keyv){const r=this.cache;r.once("error",errorHandler);p.on("error",(()=>{r.removeListener("error",errorHandler)}));p.on("response",(()=>{r.removeListener("error",errorHandler)}))}try{await get(r)}catch(s){if(r.automaticFailover&&!g){makeRequest(r)}p.emit("error",new types_CacheError(s))}})();return p};this.addHook=(r,s)=>{if(!this.hooks.has(r)){this.hooks.set(r,s)}};this.removeHook=r=>this.hooks.delete(r);this.getHook=r=>this.hooks.get(r);this.runHook=async(r,...s)=>this.hooks.get(r)?.(...s);if(s){if(s instanceof Keyv){this.cache=s}else{this.cache=new Keyv({store:s,namespace:"cacheable-request"})}}this.request=this.request.bind(this);this.cacheRequest=r}}const entries=Object.entries;const cloneResponse=r=>{const s=new external_node_stream_namespaceObject.PassThrough({autoDestroy:false});mimicResponse(r,s);return r.pipe(s)};const urlObjectToRequestOptions=r=>{const s={...r};s.path=`${r.pathname||"/"}${r.search||""}`;delete s.pathname;delete s.search;return s};const normalizeUrlObject=r=>({protocol:r.protocol,auth:r.auth,hostname:r.hostname||r.host||"localhost",port:r.port,pathname:r.pathname,search:r.search});const convertHeaders=r=>{const s=[];for(const l of Object.keys(r)){s[l.toLowerCase()]=r[l]}return s};const parseWithWhatwg=r=>{const s=new external_node_url_namespaceObject.URL(r);return{protocol:s.protocol,slashes:true,auth:s.username||s.password?`${s.username}:${s.password}`:undefined,host:s.host,port:s.port,hostname:s.hostname,hash:s.hash,search:s.search,query:Object.fromEntries(s.searchParams),pathname:s.pathname,path:s.pathname+s.search,href:s.href}};const dist=CacheableRequest;const onResponse="onResponse";var decompress_response=__webpack_require__(4880);var __typeError=r=>{throw TypeError(r)};var __accessCheck=(r,s,l)=>s.has(r)||__typeError("Cannot "+l);var __privateGet=(r,s,l)=>(__accessCheck(r,s,"read from private field"),l?l.call(r):s.get(r));var __privateAdd=(r,s,l)=>s.has(r)?__typeError("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,l);var __privateSet=(r,s,l,p)=>(__accessCheck(r,s,"write to private field"),p?p.call(r,l):s.set(r,l),l);var __privateMethod=(r,s,l)=>(__accessCheck(r,s,"access private method"),l);var MAX_CHUNK_SIZE=65536;function*chunk(r){if(r.byteLength<=MAX_CHUNK_SIZE){yield r;return}let s=0;while(s<r.byteLength){const l=Math.min(r.byteLength-s,MAX_CHUNK_SIZE);const p=r.buffer.slice(s,s+l);s+=p.byteLength;yield new Uint8Array(p)}}var alphabet="abcdefghijklmnopqrstuvwxyz0123456789";function createBoundary(){let r=16;let s="";while(r--){s+=alphabet[Math.random()*alphabet.length<<0]}return s}var escapeName=r=>String(r).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22");var lib_isFunction=r=>typeof r==="function";var isReadableStreamFallback=r=>!!r&&typeof r==="object"&&!Array.isArray(r)&&lib_isFunction(r.getReader);var lib_isAsyncIterable=r=>lib_isFunction(r[Symbol.asyncIterator]);async function*readStream(r){const s=r.getReader();while(true){const{done:r,value:l}=await s.read();if(r){break}yield l}}async function*chunkStream(r){for await(const s of r){yield*chunk(s)}}var getStreamIterator=r=>{if(lib_isAsyncIterable(r)){return chunkStream(r)}if(isReadableStreamFallback(r)){return chunkStream(readStream(r))}throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")};var isFile=r=>Boolean(r&&typeof r==="object"&&lib_isFunction(r.constructor)&&r[Symbol.toStringTag]==="File"&&lib_isFunction(r.stream)&&r.name!=null);var lib_isFormData=r=>Boolean(r&&lib_isFunction(r.constructor)&&r[Symbol.toStringTag]==="FormData"&&lib_isFunction(r.append)&&lib_isFunction(r.getAll)&&lib_isFunction(r.entries)&&lib_isFunction(r[Symbol.iterator]));var getType=r=>Object.prototype.toString.call(r).slice(8,-1).toLowerCase();function lib_isPlainObject(r){if(getType(r)!=="object"){return false}const s=Object.getPrototypeOf(r);if(s===null||s===void 0){return true}return s.constructor?.toString?.()===Object.toString()}var normalizeValue=r=>String(r).replace(/\r|\n/g,((r,s,l)=>{if(r==="\r"&&l[s+1]!=="\n"||r==="\n"&&l[s-1]!=="\r"){return"\r\n"}return r}));function getProperty(r,s){if(typeof s==="string"){for(const[l,p]of Object.entries(r)){if(s.toLowerCase()===l.toLowerCase()){return p}}}return void 0}var proxyHeaders=r=>new Proxy(r,{get:(r,s)=>getProperty(r,s),has:(r,s)=>getProperty(r,s)!==void 0});var defaultOptions={enableAdditionalHeaders:false};var readonlyProp={writable:false,configurable:false};var _CRLF,_CRLF_BYTES,_CRLF_BYTES_LENGTH,_DASHES,_encoder,_footer,_form,_options,_FormDataEncoder_instances,getFieldHeader_fn,getContentLength_fn;var FormDataEncoder=class{constructor(r,s,l){__privateAdd(this,_FormDataEncoder_instances);__privateAdd(this,_CRLF,"\r\n");__privateAdd(this,_CRLF_BYTES);__privateAdd(this,_CRLF_BYTES_LENGTH);__privateAdd(this,_DASHES,"-".repeat(2));__privateAdd(this,_encoder,new TextEncoder);__privateAdd(this,_footer);__privateAdd(this,_form);__privateAdd(this,_options);if(!lib_isFormData(r)){throw new TypeError("Expected first argument to be a FormData instance.")}let p;if(lib_isPlainObject(s)){l=s}else{p=s}if(!p){p=`form-data-encoder-${createBoundary()}`}if(typeof p!=="string"){throw new TypeError("Expected boundary argument to be a string.")}if(l&&!lib_isPlainObject(l)){throw new TypeError("Expected options argument to be an object.")}__privateSet(this,_form,Array.from(r.entries()));__privateSet(this,_options,{...defaultOptions,...l});__privateSet(this,_CRLF_BYTES,__privateGet(this,_encoder).encode(__privateGet(this,_CRLF)));__privateSet(this,_CRLF_BYTES_LENGTH,__privateGet(this,_CRLF_BYTES).byteLength);this.boundary=p;this.contentType=`multipart/form-data; boundary=${this.boundary}`;__privateSet(this,_footer,__privateGet(this,_encoder).encode(`${__privateGet(this,_DASHES)}${this.boundary}${__privateGet(this,_DASHES)}${__privateGet(this,_CRLF).repeat(2)}`));const d={"Content-Type":this.contentType};const m=__privateMethod(this,_FormDataEncoder_instances,getContentLength_fn).call(this);if(m){this.contentLength=m;d["Content-Length"]=m}this.headers=proxyHeaders(Object.freeze(d));Object.defineProperties(this,{boundary:readonlyProp,contentType:readonlyProp,contentLength:readonlyProp,headers:readonlyProp})}*values(){for(const[r,s]of __privateGet(this,_form)){const l=isFile(s)?s:__privateGet(this,_encoder).encode(normalizeValue(s));yield __privateMethod(this,_FormDataEncoder_instances,getFieldHeader_fn).call(this,r,l);yield l;yield __privateGet(this,_CRLF_BYTES)}yield __privateGet(this,_footer)}async*encode(){for(const r of this.values()){if(isFile(r)){yield*getStreamIterator(r.stream())}else{yield*chunk(r)}}}[Symbol.iterator](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};_CRLF=new WeakMap;_CRLF_BYTES=new WeakMap;_CRLF_BYTES_LENGTH=new WeakMap;_DASHES=new WeakMap;_encoder=new WeakMap;_footer=new WeakMap;_form=new WeakMap;_options=new WeakMap;_FormDataEncoder_instances=new WeakSet;getFieldHeader_fn=function(r,s){let l="";l+=`${__privateGet(this,_DASHES)}${this.boundary}${__privateGet(this,_CRLF)}`;l+=`Content-Disposition: form-data; name="${escapeName(r)}"`;if(isFile(s)){l+=`; filename="${escapeName(s.name)}"${__privateGet(this,_CRLF)}`;l+=`Content-Type: ${s.type||"application/octet-stream"}`}if(__privateGet(this,_options).enableAdditionalHeaders===true){const r=isFile(s)?s.size:s.byteLength;if(r!=null&&!isNaN(r)){l+=`${__privateGet(this,_CRLF)}Content-Length: ${r}`}}return __privateGet(this,_encoder).encode(`${l}${__privateGet(this,_CRLF).repeat(2)}`)};getContentLength_fn=function(){let r=0;for(const[s,l]of __privateGet(this,_form)){const p=isFile(l)?l:__privateGet(this,_encoder).encode(normalizeValue(l));const d=isFile(p)?p.size:p.byteLength;if(d==null||isNaN(d)){return void 0}r+=__privateMethod(this,_FormDataEncoder_instances,getFieldHeader_fn).call(this,s,p).byteLength;r+=d;r+=__privateGet(this,_CRLF_BYTES_LENGTH)}return String(r+__privateGet(this,_footer).byteLength)};function is_form_data_isFormData(r){return distribution.nodeStream(r)&&distribution.function(r.getBoundary)}async function getBodySize(r,s){if(s&&"content-length"in s){return Number(s["content-length"])}if(!r){return 0}if(distribution.string(r)){return external_node_buffer_namespaceObject.Buffer.byteLength(r)}if(distribution.buffer(r)){return r.length}if(is_form_data_isFormData(r)){try{return await(0,external_node_util_namespaceObject.promisify)(r.getLength.bind(r))()}catch(r){const s=r;throw new Error("Cannot determine content-length for form-data with stream(s) of unknown length. "+"This is a limitation of the `form-data` package. "+"To fix this, either:\n"+"1. Use the `knownLength` option when appending streams:\n"+" form.append('file', stream, {knownLength: 12345});\n"+"2. Switch to spec-compliant FormData (formdata-node package)\n"+"See: https://github.com/form-data/form-data#alternative-submission-methods\n"+`Original error: ${s.message}`)}}return undefined}function proxyEvents(r,s,l){const p={};for(const d of l){const eventFunction=(...r)=>{s.emit(d,...r)};p[d]=eventFunction;r.on(d,eventFunction)}return()=>{for(const[s,l]of Object.entries(p)){r.off(s,l)}}}const external_node_net_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:net");function unhandle(){const r=[];return{once(s,l,p){s.once(l,p);r.push({origin:s,event:l,fn:p})},unhandleAll(){for(const s of r){const{origin:r,event:l,fn:p}=s;r.removeListener(l,p)}r.length=0}}}const reentry=Symbol("reentry");const timed_out_noop=()=>{};class timed_out_TimeoutError extends Error{event;code;constructor(r,s){super(`Timeout awaiting '${s}' for ${r}ms`);this.event=s;this.name="TimeoutError";this.code="ETIMEDOUT"}}function timedOut(r,s,l){if(reentry in r){return timed_out_noop}r[reentry]=true;const p=[];const{once:d,unhandleAll:m}=unhandle();const y=new Map;const addTimeout=(r,s,l)=>{const d=setTimeout(s,r,r,l);d.unref?.();const cancel=()=>{y.set(l,true);clearTimeout(d)};p.push(cancel);return cancel};const{host:g,hostname:T}=l;const timeoutHandler=(s,l)=>{setTimeout((()=>{if(!y.has(l)){r.destroy(new timed_out_TimeoutError(s,l))}}),0)};const cancelTimeouts=()=>{for(const r of p){r()}m()};r.once("error",(s=>{cancelTimeouts();if(r.listenerCount("error")===0){throw s}}));if(s.request!==undefined){const l=addTimeout(s.request,timeoutHandler,"request");d(r,"response",(r=>{d(r,"end",l)}))}if(s.socket!==undefined){const{socket:l}=s;const socketTimeoutHandler=()=>{timeoutHandler(l,"socket")};r.setTimeout(l,socketTimeoutHandler);p.push((()=>{r.removeListener("timeout",socketTimeoutHandler)}))}const b=s.lookup!==undefined;const E=s.connect!==undefined;const S=s.secureConnect!==undefined;const _=s.send!==undefined;if(b||E||S||_){d(r,"socket",(p=>{const{socketPath:m}=r;if(p.connecting){const r=Boolean(m??external_node_net_namespaceObject.isIP(T??g??"")!==0);if(b&&!r&&p.address().address===undefined){const r=addTimeout(s.lookup,timeoutHandler,"lookup");d(p,"lookup",r)}if(E){const timeConnect=()=>addTimeout(s.connect,timeoutHandler,"connect");if(r){d(p,"connect",timeConnect())}else{d(p,"lookup",(r=>{if(r===null){d(p,"connect",timeConnect())}}))}}if(S&&l.protocol==="https:"){d(p,"connect",(()=>{const r=addTimeout(s.secureConnect,timeoutHandler,"secureConnect");d(p,"secureConnect",r)}))}}if(_){const timeRequest=()=>addTimeout(s.send,timeoutHandler,"send");if(p.connecting){d(p,"connect",(()=>{d(r,"upload-complete",timeRequest())}))}else{d(r,"upload-complete",timeRequest())}}}))}if(s.response!==undefined){d(r,"upload-complete",(()=>{const l=addTimeout(s.response,timeoutHandler,"response");d(r,"response",l)}))}if(s.read!==undefined){d(r,"response",(r=>{const l=addTimeout(s.read,timeoutHandler,"read");d(r,"end",l)}))}return cancelTimeouts}function urlToOptions(r){r=r;const s={protocol:r.protocol,hostname:distribution.string(r.hostname)&&r.hostname.startsWith("[")?r.hostname.slice(1,-1):r.hostname,host:r.host,hash:r.hash,search:r.search,pathname:r.pathname,href:r.href,path:`${r.pathname||""}${r.search||""}`};if(distribution.string(r.port)&&r.port.length>0){s.port=Number(r.port)}if(r.username||r.password){s.auth=`${r.username||""}:${r.password||""}`}return s}class WeakableMap{weakMap;map;constructor(){this.weakMap=new WeakMap;this.map=new Map}set(r,s){if(typeof r==="object"){this.weakMap.set(r,s)}else{this.map.set(r,s)}}get(r){if(typeof r==="object"){return this.weakMap.get(r)}return this.map.get(r)}has(r){if(typeof r==="object"){return this.weakMap.has(r)}return this.map.has(r)}}const calculateRetryDelay=({attemptCount:r,retryOptions:s,error:l,retryAfter:p,computedValue:d})=>{if(l.name==="RetryError"){return 1}if(r>s.limit){return 0}const m=s.methods.includes(l.options.method);const y=s.errorCodes.includes(l.code);const g=l.response&&s.statusCodes.includes(l.response.statusCode);if(!m||!y&&!g){return 0}if(l.response){if(p){if(p>d){return 0}return p}if(l.response.statusCode===413){return 0}}const T=Math.random()*s.noise;return Math.min(2**(r-1)*1e3,s.backoffLimit)+T};const calculate_retry_delay=calculateRetryDelay;const external_node_tls_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tls");const external_node_https_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:https");const external_node_dns_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:dns");const external_node_os_namespaceObject=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os");const{Resolver:AsyncResolver}=external_node_dns_namespaceObject.promises;const kCacheableLookupCreateConnection=Symbol("cacheableLookupCreateConnection");const kCacheableLookupInstance=Symbol("cacheableLookupInstance");const kExpires=Symbol("expires");const supportsALL=typeof external_node_dns_namespaceObject.ALL==="number";const verifyAgent=r=>{if(!(r&&typeof r.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=r=>{for(const s of r){if(s.family===6){continue}s.address=`::ffff:${s.address}`;s.family=6}};const getIfaceInfo=()=>{let r=false;let s=false;for(const l of Object.values(external_node_os_namespaceObject.networkInterfaces())){for(const p of l){if(p.internal){continue}if(p.family==="IPv6"){s=true}else{r=true}if(r&&s){return{has4:r,has6:s}}}}return{has4:r,has6:s}};const source_isIterable=r=>Symbol.iterator in r;const ignoreNoResultErrors=r=>r.catch((r=>{if(r.code==="ENODATA"||r.code==="ENOTFOUND"||r.code==="ENOENT"){return[]}throw r}));const ttl={ttl:true};const source_all={all:true};const all4={all:true,family:4};const all6={all:true,family:6};class CacheableLookup{constructor({cache:r=new Map,maxTtl:s=Infinity,fallbackDuration:l=3600,errorTtl:p=.15,resolver:d=new AsyncResolver,lookup:m=external_node_dns_namespaceObject.lookup}={}){this.maxTtl=s;this.errorTtl=p;this._cache=r;this._resolver=d;this._dnsLookup=m&&(0,external_node_util_namespaceObject.promisify)(m);this.stats={cache:0,query:0};if(this._resolver instanceof AsyncResolver){this._resolve4=this._resolver.resolve4.bind(this._resolver);this._resolve6=this._resolver.resolve6.bind(this._resolver)}else{this._resolve4=(0,external_node_util_namespaceObject.promisify)(this._resolver.resolve4.bind(this._resolver));this._resolve6=(0,external_node_util_namespaceObject.promisify)(this._resolver.resolve6.bind(this._resolver))}this._iface=getIfaceInfo();this._pending={};this._nextRemovalTime=false;this._hostnamesToFallback=new Set;this.fallbackDuration=l;if(l>0){const r=setInterval((()=>{this._hostnamesToFallback.clear()}),l*1e3);if(r.unref){r.unref()}this._fallbackInterval=r}this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(r){this.clear();this._resolver.setServers(r)}get servers(){return this._resolver.getServers()}lookup(r,s,l){if(typeof s==="function"){l=s;s={}}else if(typeof s==="number"){s={family:s}}if(!l){throw new Error("Callback must be a function.")}this.lookupAsync(r,s).then((r=>{if(s.all){l(null,r)}else{l(null,r.address,r.family,r.expires,r.ttl,r.source)}}),l)}async lookupAsync(r,s={}){if(typeof s==="number"){s={family:s}}let l=await this.query(r);if(s.family===6){const r=l.filter((r=>r.family===6));if(s.hints&external_node_dns_namespaceObject.V4MAPPED){if(supportsALL&&s.hints&external_node_dns_namespaceObject.ALL||r.length===0){map4to6(l)}else{l=r}}else{l=r}}else if(s.family===4){l=l.filter((r=>r.family===4))}if(s.hints&external_node_dns_namespaceObject.ADDRCONFIG){const{_iface:r}=this;l=l.filter((s=>s.family===6?r.has6:r.has4))}if(l.length===0){const s=new Error(`cacheableLookup ENOTFOUND ${r}`);s.code="ENOTFOUND";s.hostname=r;throw s}if(s.all){return l}return l[0]}async query(r){let s="cache";let l=await this._cache.get(r);if(l){this.stats.cache++}if(!l){const p=this._pending[r];if(p){this.stats.cache++;l=await p}else{s="query";const p=this.queryAndCache(r);this._pending[r]=p;this.stats.query++;try{l=await p}finally{delete this._pending[r]}}}l=l.map((r=>({...r,source:s})));return l}async _resolve(r){const[s,l]=await Promise.all([ignoreNoResultErrors(this._resolve4(r,ttl)),ignoreNoResultErrors(this._resolve6(r,ttl))]);let p=0;let d=0;let m=0;const y=Date.now();for(const r of s){r.family=4;r.expires=y+r.ttl*1e3;p=Math.max(p,r.ttl)}for(const r of l){r.family=6;r.expires=y+r.ttl*1e3;d=Math.max(d,r.ttl)}if(s.length>0){if(l.length>0){m=Math.min(p,d)}else{m=p}}else{m=d}return{entries:[...s,...l],cacheTtl:m}}async _lookup(r){try{const[s,l]=await Promise.all([ignoreNoResultErrors(this._dnsLookup(r,all4)),ignoreNoResultErrors(this._dnsLookup(r,all6))]);return{entries:[...s,...l],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(r,s,l){if(this.maxTtl>0&&l>0){l=Math.min(l,this.maxTtl)*1e3;s[kExpires]=Date.now()+l;try{await this._cache.set(r,s,l)}catch(r){this.lookupAsync=async()=>{const s=new Error("Cache Error. Please recreate the CacheableLookup instance.");s.cause=r;throw s}}if(source_isIterable(this._cache)){this._tick(l)}}}async queryAndCache(r){if(this._hostnamesToFallback.has(r)){return this._dnsLookup(r,source_all)}let s=await this._resolve(r);if(s.entries.length===0&&this._dnsLookup){s=await this._lookup(r);if(s.entries.length!==0&&this.fallbackDuration>0){this._hostnamesToFallback.add(r)}}const l=s.entries.length===0?this.errorTtl:s.cacheTtl;await this._set(r,s.entries,l);return s.entries}_tick(r){const s=this._nextRemovalTime;if(!s||r<s){clearTimeout(this._removalTimeout);this._nextRemovalTime=r;this._removalTimeout=setTimeout((()=>{this._nextRemovalTime=false;let r=Infinity;const s=Date.now();for(const[l,p]of this._cache){const d=p[kExpires];if(s>=d){this._cache.delete(l)}else if(d<r){r=d}}if(r!==Infinity){this._tick(r-s)}}),r);if(this._removalTimeout.unref){this._removalTimeout.unref()}}}install(r){verifyAgent(r);if(kCacheableLookupCreateConnection in r){throw new Error("CacheableLookup has been already installed")}r[kCacheableLookupCreateConnection]=r.createConnection;r[kCacheableLookupInstance]=this;r.createConnection=(s,l)=>{if(!("lookup"in s)){s.lookup=this.lookup}return r[kCacheableLookupCreateConnection](s,l)}}uninstall(r){verifyAgent(r);if(r[kCacheableLookupCreateConnection]){if(r[kCacheableLookupInstance]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}r.createConnection=r[kCacheableLookupCreateConnection];delete r[kCacheableLookupCreateConnection];delete r[kCacheableLookupInstance]}}updateInterfaceInfo(){const{_iface:r}=this;this._iface=getIfaceInfo();if(r.has4&&!this._iface.has4||r.has6&&!this._iface.has6){this._cache.clear()}}clear(r){if(r){this._cache.delete(r);return}this._cache.clear()}}var http2_wrapper_source=__webpack_require__(6207);function parseLinkHeader(r){const s=[];const l=r.split(",");for(const p of l){const[l,...d]=p.split(";");const m=l.trim();if(m[0]!=="<"||m.at(-1)!==">"){throw new Error(`Invalid format of the Link header reference: ${m}`)}const y=m.slice(1,-1);const g={};if(d.length===0){throw new Error(`Unexpected end of Link header parameters: ${d.join(";")}`)}for(const s of d){const l=s.trim();const p=l.indexOf("=");if(p===-1){throw new Error(`Failed to parse Link header: ${r}`)}const d=l.slice(0,p).trim();const m=l.slice(p+1).trim();g[d]=m}s.push({reference:y,parameters:g})}return s}const[major,minor]=external_node_process_.versions.node.split(".").map(Number);function validateSearchParameters(r){for(const s in r){const l=r[s];assert.any([distribution.string,distribution.number,distribution.boolean,distribution.null,distribution.undefined],l)}}const globalCache=new Map;let globalDnsCache;const getGlobalDnsCache=()=>{if(globalDnsCache){return globalDnsCache}globalDnsCache=new CacheableLookup;return globalDnsCache};const wrapQuickLruIfNeeded=r=>{if(r?.[Symbol.toStringTag]==="QuickLRU"&&typeof r.evict==="function"){return{get(s){return r.get(s)},set(s,l,p){if(p===undefined){r.set(s,l)}else{r.set(s,l,{maxAge:p})}return true},delete(s){return r.delete(s)},clear(){return r.clear()},has(s){return r.has(s)}}}return r};const defaultInternals={request:undefined,agent:{http:undefined,https:undefined,http2:undefined},h2session:undefined,decompress:true,timeout:{connect:undefined,lookup:undefined,read:undefined,request:undefined,response:undefined,secureConnect:undefined,send:undefined,socket:undefined},prefixUrl:"",body:undefined,form:undefined,json:undefined,cookieJar:undefined,ignoreInvalidCookies:false,searchParams:undefined,dnsLookup:undefined,dnsCache:undefined,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},followRedirect:true,maxRedirects:10,cache:undefined,throwHttpErrors:true,username:"",password:"",http2:false,allowGetBody:false,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:false,dnsLookupIpVersion:undefined,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:r})=>r,backoffLimit:Number.POSITIVE_INFINITY,noise:100,enforceRetryRules:false},localAddress:undefined,method:"GET",createConnection:undefined,cacheOptions:{shared:undefined,cacheHeuristic:undefined,immutableMinTimeToLive:undefined,ignoreCargoCult:undefined},https:{alpnProtocols:undefined,rejectUnauthorized:undefined,checkServerIdentity:undefined,serverName:undefined,certificateAuthority:undefined,key:undefined,certificate:undefined,passphrase:undefined,pfx:undefined,ciphers:undefined,honorCipherOrder:undefined,minVersion:undefined,maxVersion:undefined,signatureAlgorithms:undefined,tlsSessionLifetime:undefined,dhparam:undefined,ecdhCurve:undefined,certificateRevocationLists:undefined},encoding:undefined,resolveBodyOnly:false,isStream:false,responseType:"text",url:undefined,pagination:{transform(r){if(r.request.options.responseType==="json"){return r.body}return JSON.parse(r.body)},paginate({response:r}){const s=r.headers.link;if(typeof s!=="string"||s.trim()===""){return false}const l=parseLinkHeader(s);const p=l.find((r=>r.parameters.rel==="next"||r.parameters.rel==='"next"'));if(p){return{url:new URL(p.reference,r.url)}}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:false},setHost:true,maxHeaderSize:undefined,signal:undefined,enableUnixSockets:false};const cloneInternals=r=>{const{hooks:s,retry:l}=r;const p={...r,context:{...r.context},cacheOptions:{...r.cacheOptions},https:{...r.https},agent:{...r.agent},headers:{...r.headers},retry:{...l,errorCodes:[...l.errorCodes],methods:[...l.methods],statusCodes:[...l.statusCodes]},timeout:{...r.timeout},hooks:{init:[...s.init],beforeRequest:[...s.beforeRequest],beforeError:[...s.beforeError],beforeRedirect:[...s.beforeRedirect],beforeRetry:[...s.beforeRetry],afterResponse:[...s.afterResponse]},searchParams:r.searchParams?new URLSearchParams(r.searchParams):undefined,pagination:{...r.pagination}};if(p.url!==undefined){p.prefixUrl=""}return p};const cloneRaw=r=>{const{hooks:s,retry:l}=r;const p={...r};if(distribution.object(r.context)){p.context={...r.context}}if(distribution.object(r.cacheOptions)){p.cacheOptions={...r.cacheOptions}}if(distribution.object(r.https)){p.https={...r.https}}if(distribution.object(r.cacheOptions)){p.cacheOptions={...p.cacheOptions}}if(distribution.object(r.agent)){p.agent={...r.agent}}if(distribution.object(r.headers)){p.headers={...r.headers}}if(distribution.object(l)){p.retry={...l};if(distribution.array(l.errorCodes)){p.retry.errorCodes=[...l.errorCodes]}if(distribution.array(l.methods)){p.retry.methods=[...l.methods]}if(distribution.array(l.statusCodes)){p.retry.statusCodes=[...l.statusCodes]}}if(distribution.object(r.timeout)){p.timeout={...r.timeout}}if(distribution.object(s)){p.hooks={...s};if(distribution.array(s.init)){p.hooks.init=[...s.init]}if(distribution.array(s.beforeRequest)){p.hooks.beforeRequest=[...s.beforeRequest]}if(distribution.array(s.beforeError)){p.hooks.beforeError=[...s.beforeError]}if(distribution.array(s.beforeRedirect)){p.hooks.beforeRedirect=[...s.beforeRedirect]}if(distribution.array(s.beforeRetry)){p.hooks.beforeRetry=[...s.beforeRetry]}if(distribution.array(s.afterResponse)){p.hooks.afterResponse=[...s.afterResponse]}}if(distribution.object(r.pagination)){p.pagination={...r.pagination}}return p};const getHttp2TimeoutOption=r=>{const s=[r.timeout.socket,r.timeout.connect,r.timeout.lookup,r.timeout.request,r.timeout.secureConnect].filter((r=>typeof r==="number"));if(s.length>0){return Math.min(...s)}return undefined};const init=(r,s,l)=>{const p=r.hooks?.init;if(p){for(const r of p){r(s,l)}}};class Options{_unixOptions;_internals;_merging;_init;constructor(r,s,l){assert.any([distribution.string,distribution.urlInstance,distribution.object,distribution.undefined],r);assert.any([distribution.object,distribution.undefined],s);assert.any([distribution.object,distribution.undefined],l);if(r instanceof Options||s instanceof Options){throw new TypeError("The defaults must be passed as the third argument")}this._internals=cloneInternals(l?._internals??l??defaultInternals);this._init=[...l?._init??[]];this._merging=false;this._unixOptions=undefined;try{if(distribution.plainObject(r)){try{this.merge(r);this.merge(s)}finally{this.url=r.url}}else{try{this.merge(s)}finally{if(s?.url!==undefined){if(r===undefined){this.url=s.url}else{throw new TypeError("The `url` option is mutually exclusive with the `input` argument")}}else if(r!==undefined){this.url=r}}}}catch(r){r.options=this;throw r}}merge(r){if(!r){return}if(r instanceof Options){const s=[...r._init];for(const r of s){this.merge(r)}return}r=cloneRaw(r);init(this,r,this);init(r,r,this);this._merging=true;if("isStream"in r){this.isStream=r.isStream}try{let s=false;for(const l in r){if(l==="mutableDefaults"||l==="handlers"){continue}if(l==="url"){continue}if(l==="preserveHooks"){continue}if(!(l in this)){throw new Error(`Unexpected option: ${l}`)}const p=r[l];if(p===undefined){continue}this[l]=p;s=true}if(s){this._init.push(r)}}finally{this._merging=false}}get request(){return this._internals.request}set request(r){assert.any([distribution.function,distribution.undefined],r);this._internals.request=r}get agent(){return this._internals.agent}set agent(r){assert.plainObject(r);for(const s in r){if(!(s in this._internals.agent)){throw new TypeError(`Unexpected agent option: ${s}`)}assert.any([distribution.object,distribution.undefined,r=>r===false],r[s])}if(this._merging){Object.assign(this._internals.agent,r)}else{this._internals.agent={...r}}}get h2session(){return this._internals.h2session}set h2session(r){this._internals.h2session=r}get decompress(){return this._internals.decompress}set decompress(r){assert.boolean(r);this._internals.decompress=r}get timeout(){return this._internals.timeout}set timeout(r){assert.plainObject(r);for(const s in r){if(!(s in this._internals.timeout)){throw new Error(`Unexpected timeout option: ${s}`)}assert.any([distribution.number,distribution.undefined],r[s])}if(this._merging){Object.assign(this._internals.timeout,r)}else{this._internals.timeout={...r}}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(r){assert.any([distribution.string,distribution.urlInstance],r);if(r===""){this._internals.prefixUrl="";return}r=r.toString();if(!r.endsWith("/")){r+="/"}if(this._internals.prefixUrl&&this._internals.url){const{href:s}=this._internals.url;this._internals.url.href=r+s.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=r}get body(){return this._internals.body}set body(r){assert.any([distribution.string,distribution.buffer,distribution.nodeStream,distribution.generator,distribution.asyncGenerator,distribution.iterable,distribution.asyncIterable,lib_isFormData,distribution.undefined],r);if(distribution.nodeStream(r)){assert.truthy(r.readable)}if(r!==undefined){assert.undefined(this._internals.form);assert.undefined(this._internals.json)}this._internals.body=r}get form(){return this._internals.form}set form(r){assert.any([distribution.plainObject,distribution.undefined],r);if(r!==undefined){assert.undefined(this._internals.body);assert.undefined(this._internals.json)}this._internals.form=r}get json(){return this._internals.json}set json(r){if(r!==undefined){assert.undefined(this._internals.body);assert.undefined(this._internals.form)}this._internals.json=r}get url(){return this._internals.url}set url(r){assert.any([distribution.string,distribution.urlInstance,distribution.undefined],r);if(r===undefined){this._internals.url=undefined;return}if(distribution.string(r)&&r.startsWith("/")){throw new Error("`url` must not start with a slash")}const s=`${this.prefixUrl}${r.toString()}`;const l=new URL(s);this._internals.url=l;if(l.protocol==="unix:"){l.href=`http://unix${l.pathname}${l.search}`}if(l.protocol!=="http:"&&l.protocol!=="https:"){const r=new Error(`Unsupported protocol: ${l.protocol}`);r.code="ERR_UNSUPPORTED_PROTOCOL";throw r}if(this._internals.username){l.username=this._internals.username;this._internals.username=""}if(this._internals.password){l.password=this._internals.password;this._internals.password=""}if(this._internals.searchParams){l.search=this._internals.searchParams.toString();this._internals.searchParams=undefined}if(l.hostname==="unix"){if(!this._internals.enableUnixSockets){throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled")}const r=/(?<socketPath>.+?):(?<path>.+)/.exec(`${l.pathname}${l.search}`);if(r?.groups){const{socketPath:s,path:l}=r.groups;this._unixOptions={socketPath:s,path:l,host:""}}else{this._unixOptions=undefined}return}this._unixOptions=undefined}get cookieJar(){return this._internals.cookieJar}set cookieJar(r){assert.any([distribution.object,distribution.undefined],r);if(r===undefined){this._internals.cookieJar=undefined;return}let{setCookie:s,getCookieString:l}=r;assert.function(s);assert.function(l);if(s.length===4&&l.length===0){s=(0,external_node_util_namespaceObject.promisify)(s.bind(r));l=(0,external_node_util_namespaceObject.promisify)(l.bind(r));this._internals.cookieJar={setCookie:s,getCookieString:l}}else{this._internals.cookieJar=r}}get signal(){return this._internals.signal}set signal(r){assert.object(r);this._internals.signal=r}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(r){assert.boolean(r);this._internals.ignoreInvalidCookies=r}get searchParams(){if(this._internals.url){return this._internals.url.searchParams}if(this._internals.searchParams===undefined){this._internals.searchParams=new URLSearchParams}return this._internals.searchParams}set searchParams(r){assert.any([distribution.string,distribution.object,distribution.undefined],r);const s=this._internals.url;if(r===undefined){this._internals.searchParams=undefined;if(s){s.search=""}return}const l=this.searchParams;let p;if(distribution.string(r)){p=new URLSearchParams(r)}else if(r instanceof URLSearchParams){p=r}else{validateSearchParameters(r);p=new URLSearchParams;for(const s in r){const d=r[s];if(d===null){p.append(s,"")}else if(d===undefined){l.delete(s)}else{p.append(s,d)}}}if(this._merging){for(const r of p.keys()){l.delete(r)}for(const[r,s]of p){l.append(r,s)}}else if(s){s.search=l.toString()}else{this._internals.searchParams=l}}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(r){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(r){assert.any([distribution.function,distribution.undefined],r);this._internals.dnsLookup=r}get dnsCache(){return this._internals.dnsCache}set dnsCache(r){assert.any([distribution.object,distribution.boolean,distribution.undefined],r);if(r===true){this._internals.dnsCache=getGlobalDnsCache()}else if(r===false){this._internals.dnsCache=undefined}else{this._internals.dnsCache=r}}get context(){return this._internals.context}set context(r){assert.object(r);if(this._merging){Object.assign(this._internals.context,r)}else{this._internals.context={...r}}}get hooks(){return this._internals.hooks}set hooks(r){assert.object(r);for(const s in r){if(!(s in this._internals.hooks)){throw new Error(`Unexpected hook event: ${s}`)}const l=s;const p=r[l];assert.any([distribution.array,distribution.undefined],p);if(p){for(const r of p){assert.function(r)}}if(this._merging){if(p){this._internals.hooks[l].push(...p)}}else{if(!p){throw new Error(`Missing hook event: ${s}`)}this._internals.hooks[s]=[...p]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(r){assert.any([distribution.boolean,distribution.function],r);this._internals.followRedirect=r}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(r){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(r){assert.number(r);this._internals.maxRedirects=r}get cache(){return this._internals.cache}set cache(r){assert.any([distribution.object,distribution.string,distribution.boolean,distribution.undefined],r);if(r===true){this._internals.cache=globalCache}else if(r===false){this._internals.cache=undefined}else{this._internals.cache=wrapQuickLruIfNeeded(r)}}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(r){assert.boolean(r);this._internals.throwHttpErrors=r}get username(){const r=this._internals.url;const s=r?r.username:this._internals.username;return decodeURIComponent(s)}set username(r){assert.string(r);const s=this._internals.url;const l=encodeURIComponent(r);if(s){s.username=l}else{this._internals.username=l}}get password(){const r=this._internals.url;const s=r?r.password:this._internals.password;return decodeURIComponent(s)}set password(r){assert.string(r);const s=this._internals.url;const l=encodeURIComponent(r);if(s){s.password=l}else{this._internals.password=l}}get http2(){return this._internals.http2}set http2(r){assert.boolean(r);this._internals.http2=r}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(r){assert.boolean(r);this._internals.allowGetBody=r}get headers(){return this._internals.headers}set headers(r){assert.plainObject(r);if(this._merging){Object.assign(this._internals.headers,lowercaseKeys(r))}else{this._internals.headers=lowercaseKeys(r)}}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(r){assert.boolean(r);this._internals.methodRewriting=r}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(r){if(r!==undefined&&r!==4&&r!==6){throw new TypeError(`Invalid DNS lookup IP version: ${r}`)}this._internals.dnsLookupIpVersion=r}get parseJson(){return this._internals.parseJson}set parseJson(r){assert.function(r);this._internals.parseJson=r}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(r){assert.function(r);this._internals.stringifyJson=r}get retry(){return this._internals.retry}set retry(r){assert.plainObject(r);assert.any([distribution.function,distribution.undefined],r.calculateDelay);assert.any([distribution.number,distribution.undefined],r.maxRetryAfter);assert.any([distribution.number,distribution.undefined],r.limit);assert.any([distribution.array,distribution.undefined],r.methods);assert.any([distribution.array,distribution.undefined],r.statusCodes);assert.any([distribution.array,distribution.undefined],r.errorCodes);assert.any([distribution.number,distribution.undefined],r.noise);assert.any([distribution.boolean,distribution.undefined],r.enforceRetryRules);if(r.noise&&Math.abs(r.noise)>100){throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${r.noise}`)}for(const s in r){if(!(s in this._internals.retry)){throw new Error(`Unexpected retry option: ${s}`)}}if(this._merging){Object.assign(this._internals.retry,r)}else{this._internals.retry={...r}}const{retry:s}=this._internals;s.methods=[...new Set(s.methods.map((r=>r.toUpperCase())))];s.statusCodes=[...new Set(s.statusCodes)];s.errorCodes=[...new Set(s.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(r){assert.any([distribution.string,distribution.undefined],r);this._internals.localAddress=r}get method(){return this._internals.method}set method(r){assert.string(r);this._internals.method=r.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(r){assert.any([distribution.function,distribution.undefined],r);this._internals.createConnection=r}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(r){assert.plainObject(r);assert.any([distribution.boolean,distribution.undefined],r.shared);assert.any([distribution.number,distribution.undefined],r.cacheHeuristic);assert.any([distribution.number,distribution.undefined],r.immutableMinTimeToLive);assert.any([distribution.boolean,distribution.undefined],r.ignoreCargoCult);for(const s in r){if(!(s in this._internals.cacheOptions)){throw new Error(`Cache option \`${s}\` does not exist`)}}if(this._merging){Object.assign(this._internals.cacheOptions,r)}else{this._internals.cacheOptions={...r}}}get https(){return this._internals.https}set https(r){assert.plainObject(r);assert.any([distribution.boolean,distribution.undefined],r.rejectUnauthorized);assert.any([distribution.function,distribution.undefined],r.checkServerIdentity);assert.any([distribution.string,distribution.undefined],r.serverName);assert.any([distribution.string,distribution.object,distribution.array,distribution.undefined],r.certificateAuthority);assert.any([distribution.string,distribution.object,distribution.array,distribution.undefined],r.key);assert.any([distribution.string,distribution.object,distribution.array,distribution.undefined],r.certificate);assert.any([distribution.string,distribution.undefined],r.passphrase);assert.any([distribution.string,distribution.buffer,distribution.array,distribution.undefined],r.pfx);assert.any([distribution.array,distribution.undefined],r.alpnProtocols);assert.any([distribution.string,distribution.undefined],r.ciphers);assert.any([distribution.string,distribution.buffer,distribution.undefined],r.dhparam);assert.any([distribution.string,distribution.undefined],r.signatureAlgorithms);assert.any([distribution.string,distribution.undefined],r.minVersion);assert.any([distribution.string,distribution.undefined],r.maxVersion);assert.any([distribution.boolean,distribution.undefined],r.honorCipherOrder);assert.any([distribution.number,distribution.undefined],r.tlsSessionLifetime);assert.any([distribution.string,distribution.undefined],r.ecdhCurve);assert.any([distribution.string,distribution.buffer,distribution.array,distribution.undefined],r.certificateRevocationLists);for(const s in r){if(!(s in this._internals.https)){throw new Error(`HTTPS option \`${s}\` does not exist`)}}if(this._merging){Object.assign(this._internals.https,r)}else{this._internals.https={...r}}}get encoding(){return this._internals.encoding}set encoding(r){if(r===null){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}assert.any([distribution.string,distribution.undefined],r);this._internals.encoding=r}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(r){assert.boolean(r);this._internals.resolveBodyOnly=r}get isStream(){return this._internals.isStream}set isStream(r){assert.boolean(r);this._internals.isStream=r}get responseType(){return this._internals.responseType}set responseType(r){if(r===undefined){this._internals.responseType="text";return}if(r!=="text"&&r!=="buffer"&&r!=="json"){throw new Error(`Invalid \`responseType\` option: ${r}`)}this._internals.responseType=r}get pagination(){return this._internals.pagination}set pagination(r){assert.object(r);if(this._merging){Object.assign(this._internals.pagination,r)}else{this._internals.pagination=r}}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(r){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(r){assert.boolean(r);this._internals.setHost=r}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(r){assert.any([distribution.number,distribution.undefined],r);this._internals.maxHeaderSize=r}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(r){assert.boolean(r);this._internals.enableUnixSockets=r}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](r,s){return(0,external_node_util_namespaceObject.inspect)(this._internals,s)}createNativeRequestOptions(){const r=this._internals;const s=r.url;let l;if(s.protocol==="https:"){if(r.http2){l={...r.agent,http2:r.agent.http2??http2_wrapper_source.globalAgent}}else{l=r.agent.https}}else{l=r.agent.http}const{https:p}=r;let{pfx:d}=p;if(distribution.array(d)&&distribution.plainObject(d[0])){d=d.map((r=>({buf:r.buffer,passphrase:r.passphrase})))}return{...r.cacheOptions,...this._unixOptions,ALPNProtocols:p.alpnProtocols,ca:p.certificateAuthority,cert:p.certificate,key:p.key,passphrase:p.passphrase,pfx:p.pfx,rejectUnauthorized:p.rejectUnauthorized,checkServerIdentity:p.checkServerIdentity??external_node_tls_namespaceObject.checkServerIdentity,servername:p.serverName,ciphers:p.ciphers,honorCipherOrder:p.honorCipherOrder,minVersion:p.minVersion,maxVersion:p.maxVersion,sigalgs:p.signatureAlgorithms,sessionTimeout:p.tlsSessionLifetime,dhparam:p.dhparam,ecdhCurve:p.ecdhCurve,crl:p.certificateRevocationLists,lookup:r.dnsLookup??r.dnsCache?.lookup,family:r.dnsLookupIpVersion,agent:l,setHost:r.setHost,method:r.method,maxHeaderSize:r.maxHeaderSize,localAddress:r.localAddress,headers:r.headers,createConnection:r.createConnection,timeout:r.http2?getHttp2TimeoutOption(r):undefined,h2session:r.h2session}}getRequestFunction(){const r=this._internals.url;const{request:s}=this._internals;if(!s&&r){return this.getFallbackRequestFunction()}return s}getFallbackRequestFunction(){const r=this._internals.url;if(!r){return}if(r.protocol==="https:"){if(this._internals.http2){if(major<15||major===15&&minor<10){const r=new Error("To use the `http2` option, install Node.js 15.10.0 or above");r.code="EUNSUPPORTED";throw r}return http2_wrapper_source.auto}return external_node_https_namespaceObject.request}return external_node_http_namespaceObject.request}freeze(){const r=this._internals;Object.freeze(r);Object.freeze(r.hooks);Object.freeze(r.hooks.afterResponse);Object.freeze(r.hooks.beforeError);Object.freeze(r.hooks.beforeRedirect);Object.freeze(r.hooks.beforeRequest);Object.freeze(r.hooks.beforeRetry);Object.freeze(r.hooks.init);Object.freeze(r.https);Object.freeze(r.cacheOptions);Object.freeze(r.agent);Object.freeze(r.headers);Object.freeze(r.timeout);Object.freeze(r.retry);Object.freeze(r.retry.errorCodes);Object.freeze(r.retry.methods);Object.freeze(r.retry.statusCodes)}}const isResponseOk=r=>{const{statusCode:s}=r;const{followRedirect:l}=r.request.options;const p=typeof l==="function"?l(r):l;const d=p?299:399;return s>=200&&s<=d||s===304};class ParseError extends RequestError{constructor(r,s){const{options:l}=s.request;super(`${r.message} in "${l.url.toString()}"`,r,s.request);this.name="ParseError";this.code="ERR_BODY_PARSE_FAILURE"}}const parseBody=(r,s,l,p)=>{const{rawBody:d}=r;try{if(s==="text"){return d.toString(p)}if(s==="json"){return d.length===0?"":l(d.toString(p))}if(s==="buffer"){return d}}catch(s){throw new ParseError(s,r)}throw new ParseError({message:`Unknown body type '${s}'`,name:"Error"},r)};function isClientRequest(r){return r.writable&&!r.writableEnded}const is_client_request=isClientRequest;function isUnixSocketURL(r){return r.protocol==="unix:"||r.hostname==="unix"}const supportsBrotli=distribution.string(external_node_process_.versions.brotli);const methodsWithoutBody=new Set(["GET","HEAD"]);const methodsWithoutBodyStream=new Set(["OPTIONS","DELETE","PATCH"]);const cacheableStore=new WeakableMap;const redirectCodes=new Set([300,301,302,303,304,307,308]);const proxiedRequestEvents=["socket","connect","continue","information","upgrade"];const core_noop=()=>{};class Request extends external_node_stream_namespaceObject.Duplex{["constructor"];_noPipe;options;response;requestUrl;redirectUrls;retryCount;_stopRetry;_downloadedSize;_uploadedSize;_stopReading;_pipedServerResponses;_request;_responseSize;_bodySize;_unproxyEvents;_isFromCache;_triggerRead;_cancelTimeouts;_removeListeners;_nativeResponse;_flushed;_aborted;_requestInitialized;constructor(r,s,l){super({autoDestroy:false,highWaterMark:0});this._downloadedSize=0;this._uploadedSize=0;this._stopReading=false;this._pipedServerResponses=new Set;this._unproxyEvents=core_noop;this._triggerRead=false;this._cancelTimeouts=core_noop;this._removeListeners=core_noop;this._jobs=[];this._flushed=false;this._requestInitialized=false;this._aborted=false;this.redirectUrls=[];this.retryCount=0;this._stopRetry=core_noop;this.on("pipe",(r=>{if(r?.headers){Object.assign(this.options.headers,r.headers)}}));this.on("newListener",(r=>{if(r==="retry"&&this.listenerCount("retry")>0){throw new Error("A retry listener has been attached already.")}}));try{this.options=new Options(r,s,l);if(!this.options.url){if(this.options.prefixUrl===""){throw new TypeError("Missing `url` property")}this.options.url=""}this.requestUrl=this.options.url}catch(r){const{options:s}=r;if(s){this.options=s}this.flush=async()=>{this.flush=async()=>{};this.destroy(r)};return}const{body:p}=this.options;if(distribution.nodeStream(p)){p.once("error",(r=>{if(this._flushed){this._beforeError(new UploadError(r,this))}else{this.flush=async()=>{this.flush=async()=>{};this._beforeError(new UploadError(r,this))}}}))}if(this.options.signal){const abort=()=>{if(this.options.signal?.reason?.name==="TimeoutError"){this.destroy(new TimeoutError(this.options.signal.reason,this.timings,this))}else{this.destroy(new AbortError(this))}};if(this.options.signal.aborted){abort()}else{this.options.signal.addEventListener("abort",abort);this._removeListeners=()=>{this.options.signal?.removeEventListener("abort",abort)}}}}async flush(){if(this._flushed){return}this._flushed=true;try{await this._finalizeBody();if(this.destroyed){return}await this._makeRequest();if(this.destroyed){this._request?.destroy();return}for(const r of this._jobs){r()}this._jobs.length=0;this._requestInitialized=true}catch(r){this._beforeError(r)}}_beforeError(r){if(this._stopReading){return}const{response:s,options:l}=this;const p=this.retryCount+(r.name==="RetryError"?0:1);this._stopReading=true;if(!(r instanceof RequestError)){r=new RequestError(r.message,r,this)}const d=r;void(async()=>{if(s?.readable&&!s.rawBody&&!this._request?.socket?.destroyed){s.setEncoding(this.readableEncoding);const r=await this._setRawBody(s);if(r){s.body=s.rawBody.toString()}}if(this.listenerCount("retry")!==0){let m;try{let r;if(s&&"retry-after"in s.headers){r=Number(s.headers["retry-after"]);if(Number.isNaN(r)){r=Date.parse(s.headers["retry-after"])-Date.now();if(r<=0){r=1}}else{r*=1e3}}const y=l.retry;const g=calculate_retry_delay({attemptCount:p,retryOptions:y,error:d,retryAfter:r,computedValue:y.maxRetryAfter??l.timeout.request??Number.POSITIVE_INFINITY});if(y.enforceRetryRules&&g===0){m=0}else{m=await y.calculateDelay({attemptCount:p,retryOptions:y,error:d,retryAfter:r,computedValue:g})}}catch(r){void this._error(new RequestError(r.message,r,this));return}if(m){await new Promise((r=>{const s=setTimeout(r,m);this._stopRetry=()=>{clearTimeout(s);r()}}));if(this.destroyed){return}try{for(const r of this.options.hooks.beforeRetry){await r(d,this.retryCount+1)}}catch(s){void this._error(new RequestError(s.message,r,this));return}if(this.destroyed){return}this.destroy();this.emit("retry",this.retryCount+1,r,(r=>{const s=new Request(l.url,r,l);s.retryCount=this.retryCount+1;external_node_process_.nextTick((()=>{void s.flush()}));return s}));return}}void this._error(d)})()}_read(){this._triggerRead=true;const{response:r}=this;if(r&&!this._stopReading){if(r.readableLength){this._triggerRead=false}let s;while((s=r.read())!==null){this._downloadedSize+=s.length;const r=this.downloadProgress;if(r.percent<1){this.emit("downloadProgress",r)}this.push(s)}}}_write(r,s,l){const write=()=>{this._writeRequest(r,s,l)};if(this._requestInitialized){write()}else{this._jobs.push(write)}}_final(r){const endRequest=()=>{if(!this._request||this._request.destroyed){r();return}this._request.end((s=>{if(this._request?._writableState?.errored){return}if(!s){this._bodySize=this._uploadedSize;this.emit("uploadProgress",this.uploadProgress);this._request?.emit("upload-complete")}r(s)}))};if(this._requestInitialized){endRequest()}else{this._jobs.push(endRequest)}}_destroy(r,s){this._stopReading=true;this.flush=async()=>{};this._stopRetry();this._cancelTimeouts();this._removeListeners();if(this.options){const{body:r}=this.options;if(distribution.nodeStream(r)){r.destroy()}}if(this._request){this._request.destroy()}if(r!==null&&!distribution.undefined(r)&&!(r instanceof RequestError)){r=new RequestError(r.message,r,this)}s(r)}pipe(r,s){if(r instanceof external_node_http_namespaceObject.ServerResponse){this._pipedServerResponses.add(r)}return super.pipe(r,s)}unpipe(r){if(r instanceof external_node_http_namespaceObject.ServerResponse){this._pipedServerResponses.delete(r)}super.unpipe(r);return this}async _finalizeBody(){const{options:r}=this;const{headers:s}=r;const l=!distribution.undefined(r.form);const p=!distribution.undefined(r.json);const d=!distribution.undefined(r.body);const m=methodsWithoutBody.has(r.method)&&!(r.method==="GET"&&r.allowGetBody);if(l||p||d){if(m){throw new TypeError(`The \`${r.method}\` method cannot be used with a body`)}const p=!distribution.string(s["content-type"]);if(d){if(lib_isFormData(r.body)){const l=new FormDataEncoder(r.body);if(p){s["content-type"]=l.headers["Content-Type"]}if("Content-Length"in l.headers){s["content-length"]=l.headers["Content-Length"]}r.body=l.encode()}if(is_form_data_isFormData(r.body)&&p){s["content-type"]=`multipart/form-data; boundary=${r.body.getBoundary()}`}}else if(l){if(p){s["content-type"]="application/x-www-form-urlencoded"}const{form:l}=r;r.form=undefined;r.body=new URLSearchParams(l).toString()}else{if(p){s["content-type"]="application/json"}const{json:l}=r;r.json=undefined;r.body=r.stringifyJson(l)}const y=await getBodySize(r.body,r.headers);if(distribution.undefined(s["content-length"])&&distribution.undefined(s["transfer-encoding"])&&!m&&!distribution.undefined(y)){s["content-length"]=String(y)}}if(r.responseType==="json"&&!("accept"in r.headers)){r.headers.accept="application/json"}this._bodySize=Number(s["content-length"])||undefined}async _onResponseBase(r){if(this.isAborted){return}const{options:s}=this;const{url:l}=s;this._nativeResponse=r;const p=r.statusCode;const{method:d}=s;const m=d==="HEAD"||p>=100&&p<200||p===204||p===205||p===304;const y=r;if(s.decompress&&!m){r=decompress_response(r)}const g=y;if(g.body){y.complete=true;r.complete=true;setImmediate((()=>{if(y.readableEnded&&!y.readableLength){try{y.push(g.body);y.push(null);let r=0;if(external_node_buffer_namespaceObject.Buffer.isBuffer(g.body)){r=g.body.length}else if(typeof g.body==="string"){r=external_node_buffer_namespaceObject.Buffer.byteLength(g.body)}this._downloadedSize+=r}catch{const s=y.headers["content-encoding"];if(s&&external_node_buffer_namespaceObject.Buffer.isBuffer(g.body)){let l;switch(s){case"gzip":{l=(0,external_node_util_namespaceObject.promisify)(external_node_zlib_namespaceObject.gunzip);break}case"deflate":{l=(0,external_node_util_namespaceObject.promisify)(external_node_zlib_namespaceObject.inflate);break}case"br":{l=(0,external_node_util_namespaceObject.promisify)(external_node_zlib_namespaceObject.brotliDecompress);break}default:{break}}if(l){void l(g.body).then((s=>{r.rawBody=s;this._downloadedSize+=g.body.length;r.emit("end")})).catch((()=>{r.rawBody=g.body;r.emit("end")}));return}}r.rawBody=g.body;r.emit("end")}}}))}const T=r;T.statusMessage=T.statusMessage??external_node_http_namespaceObject.STATUS_CODES[p];T.url=s.url.toString();T.requestUrl=this.requestUrl;T.redirectUrls=this.redirectUrls;T.request=this;T.isFromCache=this._nativeResponse.fromCache??false;T.ip=this.ip;T.retryCount=this.retryCount;T.ok=isResponseOk(T);this._isFromCache=T.isFromCache;this._responseSize=Number(r.headers["content-length"])||undefined;this.response=T;r.once("error",(s=>{this._aborted=true;r.destroy();this._beforeError(new ReadError(s,this))}));r.once("aborted",(()=>{this._aborted=true;this._beforeError(new ReadError({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}));const b=r.headers["set-cookie"];if(distribution.object(s.cookieJar)&&b){let r=b.map((async r=>s.cookieJar.setCookie(r,l.toString())));if(s.ignoreInvalidCookies){r=r.map((async r=>{try{await r}catch{}}))}try{await Promise.all(r)}catch(r){this._beforeError(r);return}}if(this.isAborted){return}if(r.headers.location&&redirectCodes.has(p)){const d=typeof s.followRedirect==="function"?s.followRedirect(T):s.followRedirect;if(d){r.resume();this._cancelTimeouts();this._unproxyEvents();if(this.redirectUrls.length>=s.maxRedirects){this._beforeError(new MaxRedirectsError(this));return}this._request=undefined;this._downloadedSize=0;const d=new Options(undefined,undefined,this.options);const m=p===303&&d.method!=="GET"&&d.method!=="HEAD";const y=p!==307&&p!==308;const g=d.methodRewriting&&y;if(m||g){d.method="GET";d.body=undefined;d.json=undefined;d.form=undefined;delete d.headers["content-length"]}try{const s=external_node_buffer_namespaceObject.Buffer.from(r.headers.location,"binary").toString();const p=new URL(s,l);if(!isUnixSocketURL(l)&&isUnixSocketURL(p)){this._beforeError(new RequestError("Cannot redirect to UNIX socket",{},this));return}if(p.hostname!==l.hostname||p.port!==l.port){if("host"in d.headers){delete d.headers.host}if("cookie"in d.headers){delete d.headers.cookie}if("authorization"in d.headers){delete d.headers.authorization}if(d.username||d.password){d.username="";d.password=""}}else{p.username=d.username;p.password=d.password}this.redirectUrls.push(p);d.prefixUrl="";d.url=p;for(const r of d.hooks.beforeRedirect){await r(d,T)}this.emit("redirect",d,T);this.options=d;await this._makeRequest()}catch(r){this._beforeError(r);return}return}}if(s.isStream&&s.throwHttpErrors&&!isResponseOk(T)){this._beforeError(new HTTPError(T));return}const endStream=()=>{this._responseSize=this._downloadedSize;this.emit("downloadProgress",this.downloadProgress);this.push(null)};r.once("end",endStream);this.emit("downloadProgress",this.downloadProgress);r.on("readable",(()=>{if(this._triggerRead){this._read()}}));this.on("resume",(()=>{r.resume()}));this.on("pause",(()=>{r.pause()}));if(this._noPipe){const s=await this._setRawBody();if(s){this.emit("response",r)}return}this.emit("response",r);for(const l of this._pipedServerResponses){if(l.headersSent){continue}for(const p in r.headers){const d=s.decompress?p!=="content-encoding":true;const m=r.headers[p];if(d){l.setHeader(p,m)}}l.statusCode=p}}async _setRawBody(r=this){if(r.readableEnded){return false}try{const s=await r.toArray();const l=isBuffer(s.at(0))?external_node_buffer_namespaceObject.Buffer.concat(s):external_node_buffer_namespaceObject.Buffer.from(s.join(""));if(!this.isAborted){this.response.rawBody=l;return true}}catch{}return false}async _onResponse(r){try{await this._onResponseBase(r)}catch(r){this._beforeError(r)}}_onRequest(r){const{options:s}=this;const{timeout:l,url:p}=s;dist_source(r);this._cancelTimeouts=timedOut(r,l,p);if(this.options.http2){r.removeAllListeners("timeout");r.once("socket",(r=>{r.removeAllListeners("timeout")}))}const d=s.cache?"cacheableResponse":"response";r.once(d,(r=>{void this._onResponse(r)}));r.once("error",(s=>{this._aborted=true;r.destroy();s=s instanceof timed_out_TimeoutError?new TimeoutError(s,this.timings,this):new RequestError(s.message,s,this);this._beforeError(s)}));this._unproxyEvents=proxyEvents(r,this,proxiedRequestEvents);this._request=r;this.emit("uploadProgress",this.uploadProgress);this._sendBody();this.emit("request",r)}async _asyncWrite(r){return new Promise(((s,l)=>{super.write(r,(r=>{if(r){l(r);return}s()}))}))}_sendBody(){const{body:r}=this.options;const s=this.redirectUrls.length===0?this:this._request??this;if(distribution.nodeStream(r)){r.pipe(s)}else if(distribution.asyncIterable(r)||distribution.iterable(r)&&!distribution.string(r)&&!isBuffer(r)){(async()=>{try{for await(const s of r){await this._asyncWrite(s)}super.end()}catch(r){this._beforeError(r)}})()}else if(distribution.undefined(r)){const r=methodsWithoutBody.has(this.options.method)&&!(this.options.method==="GET"&&this.options.allowGetBody);const l=methodsWithoutBodyStream.has(this.options.method);if((this._noPipe??false)||r||s!==this||l){s.end()}}else{this._writeRequest(r,undefined,(()=>{}));s.end()}}_prepareCache(r){if(!cacheableStore.has(r)){const s=new dist(((r,s)=>{const l=r._request(r,s);if(distribution.promise(l)){l.once=(r,s)=>{if(r==="error"){(async()=>{try{await l}catch(r){s(r)}})()}else if(r==="abort"||r==="destroy"){(async()=>{try{const p=await l;p.once(r,s)}catch{}})()}else{throw new Error(`Unknown HTTP2 promise event: ${r}`)}return l}}return l}),r);cacheableStore.set(r,s.request())}}async _createCacheableRequest(r,s){return new Promise(((l,p)=>{Object.assign(s,urlToOptions(r));let d;const m=cacheableStore.get(s.cache)(s,(async r=>{r._readableState.autoDestroy=false;if(d){const fix=()=>{if(r.req){r.complete=r.req.res.complete}};r.prependOnceListener("end",fix);fix();(await d).emit("cacheableResponse",r)}l(r)}));m.once("error",p);m.once("request",(async r=>{d=r;l(d)}))}))}async _makeRequest(){const{options:r}=this;const{headers:s,username:l,password:p}=r;const d=r.cookieJar;for(const r in s){if(distribution.undefined(s[r])){delete s[r]}else if(distribution.null(s[r])){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${r}\` header`)}}if(r.decompress&&distribution.undefined(s["accept-encoding"])){s["accept-encoding"]=supportsBrotli?"gzip, deflate, br":"gzip, deflate"}if(l||p){const r=external_node_buffer_namespaceObject.Buffer.from(`${l}:${p}`).toString("base64");s.authorization=`Basic ${r}`}if(d){const l=await d.getCookieString(r.url.toString());if(distribution.nonEmptyString(l)){s.cookie=l}}r.prefixUrl="";let m;for(const s of r.hooks.beforeRequest){const l=await s(r);if(!distribution.undefined(l)){m=()=>l;break}}m||=r.getRequestFunction();const y=r.url;this._requestOptions=r.createNativeRequestOptions();if(r.cache){this._requestOptions._request=m;this._requestOptions.cache=r.cache;this._requestOptions.body=r.body;try{this._prepareCache(r.cache)}catch(r){throw new CacheError(r,this)}}const g=r.cache?this._createCacheableRequest:m;try{let s=g(y,this._requestOptions);if(distribution.promise(s)){s=await s}if(distribution.undefined(s)){s=r.getFallbackRequestFunction()(y,this._requestOptions);if(distribution.promise(s)){s=await s}}if(is_client_request(s)){this._onRequest(s)}else if(this.writable){this.once("finish",(()=>{void this._onResponse(s)}));this._sendBody()}else{void this._onResponse(s)}}catch(r){if(r instanceof types_CacheError){throw new CacheError(r,this)}throw r}}async _error(r){try{if(r instanceof HTTPError&&!this.options.throwHttpErrors){}else{for(const s of this.options.hooks.beforeError){r=await s(r)}}}catch(s){r=new RequestError(s.message,s,this)}this.destroy(r)}_writeRequest(r,s,l){if(!this._request||this._request.destroyed){return}this._request.write(r,s,(p=>{if(!p&&!this._request.destroyed){this._uploadedSize+=external_node_buffer_namespaceObject.Buffer.byteLength(r,s);const l=this.uploadProgress;if(l.percent<1){this.emit("uploadProgress",l)}}l(p)}))}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??undefined}get downloadProgress(){let r;if(this._responseSize){r=this._downloadedSize/this._responseSize}else if(this._responseSize===this._downloadedSize){r=1}else{r=0}return{percent:r,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let r;if(this._bodySize){r=this._uploadedSize/this._bodySize}else if(this._bodySize===this._uploadedSize){r=1}else{r=0}return{percent:r,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}}class types_CancelError extends RequestError{constructor(r){super("Promise was canceled",{},r);this.name="CancelError";this.code="ERR_CANCELED"}get isCanceled(){return true}}const as_promise_proxiedRequestEvents=["request","response","redirect","uploadProgress","downloadProgress"];function asPromise(r){let s;let l;let p;const d=new external_node_events_.EventEmitter;const m=new PCancelable(((y,g,T)=>{T((()=>{s.destroy()}));T.shouldReject=false;T((()=>{g(new types_CancelError(s))}));const makeRequest=b=>{T((()=>{}));const E=r??new Request(undefined,undefined,p);E.retryCount=b;E._noPipe=true;s=E;E.once("response",(async r=>{const s=(r.headers["content-encoding"]??"").toLowerCase();const p=s==="gzip"||s==="deflate"||s==="br";const{options:d}=E;if(p&&!d.decompress){r.body=r.rawBody}else{try{r.body=parseBody(r,d.responseType,d.parseJson,d.encoding)}catch(s){try{r.body=r.rawBody.toString()}catch(s){E._beforeError(new ParseError(s,r));return}if(isResponseOk(r)){E._beforeError(s);return}}}try{const s=d.hooks.afterResponse;for(const[l,p]of s.entries()){r=await p(r,(async r=>{const s=r.preserveHooks??false;d.merge(r);d.prefixUrl="";if(r.url){d.url=r.url}if(!s){d.hooks.afterResponse=d.hooks.afterResponse.slice(0,l)}throw new RetryError(E)}));if(!(distribution.object(r)&&distribution.number(r.statusCode)&&!distribution.nullOrUndefined(r.body))){throw new TypeError("The `afterResponse` hook returned an invalid value")}}}catch(r){E._beforeError(r);return}l=r;if(!isResponseOk(r)){E._beforeError(new HTTPError(r));return}E.destroy();y(E.options.resolveBodyOnly?r.body:r)}));const onError=r=>{if(m.isCanceled){return}const{options:s}=E;if(r instanceof HTTPError&&!s.throwHttpErrors){const{response:s}=r;E.destroy();y(E.options.resolveBodyOnly?s.body:s);return}g(r)};E.once("error",onError);const S=E.options?.body;E.once("retry",((s,l)=>{r=undefined;const d=E.options.body;if(S===d&&distribution.nodeStream(d)){l.message="Cannot retry with consumed body stream";onError(l);return}p=E.options;makeRequest(s)}));proxyEvents(E,d,as_promise_proxiedRequestEvents);if(distribution.undefined(r)){void E.flush()}};makeRequest(0)}));m.on=(r,s)=>{d.on(r,s);return m};m.off=(r,s)=>{d.off(r,s);return m};const shortcut=r=>{const s=(async()=>{await m;const{options:s}=l.request;return parseBody(l,r,s.parseJson,s.encoding)})();Object.defineProperties(s,Object.getOwnPropertyDescriptors(m));return s};m.json=()=>{if(s.options){const{headers:r}=s.options;if(!s.writableFinished&&!("accept"in r)){r.accept="application/json"}}return shortcut("json")};m.buffer=()=>shortcut("buffer");m.text=()=>shortcut("text");return m}const isGotInstance=r=>distribution.function(r);const aliases=["get","post","put","patch","head","delete"];const create=r=>{r={options:new Options(undefined,undefined,r.options),handlers:[...r.handlers],mutableDefaults:r.mutableDefaults};Object.defineProperty(r,"mutableDefaults",{enumerable:true,configurable:false,writable:false});const got=(s,l,p=r.options)=>{const d=new Request(s,l,p);let m;const lastHandler=r=>{d.options=r;d._noPipe=!r?.isStream;void d.flush();if(r?.isStream){return d}m||=asPromise(d);return m};let y=0;const iterateHandlers=s=>{const l=r.handlers[y++]??lastHandler;const p=l(s,iterateHandlers);if(distribution.promise(p)&&!d.options?.isStream){m||=asPromise(d);if(p!==m){const r=Object.getOwnPropertyDescriptors(m);for(const s in r){if(s in p){delete r[s]}}Object.defineProperties(p,r);p.cancel=m.cancel}}return p};return iterateHandlers(d.options)};got.extend=(...s)=>{const l=new Options(undefined,undefined,r.options);const p=[...r.handlers];let d;for(const r of s){if(isGotInstance(r)){l.merge(r.defaults.options);p.push(...r.defaults.handlers);d=r.defaults.mutableDefaults}else{l.merge(r);if(r.handlers){p.push(...r.handlers)}d=r.mutableDefaults}}return create({options:l,handlers:p,mutableDefaults:Boolean(d)})};const paginateEach=async function*(s,l){let p=new Options(s,l,r.options);p.resolveBodyOnly=false;const{pagination:d}=p;assert.function(d.transform);assert.function(d.shouldContinue);assert.function(d.filter);assert.function(d.paginate);assert.number(d.countLimit);assert.number(d.requestLimit);assert.number(d.backoff);const m=[];let{countLimit:y}=d;let g=0;while(g<d.requestLimit){if(g!==0){await(0,promises_namespaceObject.setTimeout)(d.backoff)}const r=await got(undefined,undefined,p);const s=await d.transform(r);const l=[];assert.array(s);for(const r of s){if(d.filter({item:r,currentItems:l,allItems:m})){if(!d.shouldContinue({item:r,currentItems:l,allItems:m})){return}yield r;if(d.stackAllItems){m.push(r)}l.push(r);if(--y<=0){return}}}const T=d.paginate({response:r,currentItems:l,allItems:m});if(T===false){return}if(T===r.request.options){p=r.request.options}else{p.merge(T);assert.any([distribution.urlInstance,distribution.undefined],T.url);if(T.url!==undefined){p.prefixUrl="";p.url=T.url}}g++}};got.paginate=paginateEach;got.paginate.all=async(r,s)=>{const l=[];for await(const p of paginateEach(r,s)){l.push(p)}return l};got.paginate.each=paginateEach;got.stream=(r,s)=>got(r,{...s,isStream:true});for(const r of aliases){got[r]=(s,l)=>got(s,{...l,method:r});got.stream[r]=(s,l)=>got(s,{...l,method:r,isStream:true})}if(!r.mutableDefaults){Object.freeze(r.handlers);r.options.freeze()}Object.defineProperty(got,"defaults",{value:r,writable:false,configurable:false,enumerable:true});return got};const source_create=create;const defaults={options:new Options,handlers:[],mutableDefaults:false};const source_got=source_create(defaults);const got_dist_source=source_got;const maxRetries=3;async function getNpmPackageInfo(r){for(let s=0;s<maxRetries;s++){try{const s=await got_dist_source(`https://registry.npmjs.org/${r}`);if(s.statusCode!==200){throw new Error(`HTTP ${s.statusCode}: ${s.statusMessage}`)}const l=JSON.parse(s.body);return l}catch(r){continue}}return null}async function getNpmPackageDownloadStats(r,s="last-month"){for(let l=0;l<maxRetries;l++){try{const l=await got_dist_source(`https://api.npmjs.org/downloads/point/${s}/${r}`);if(l.statusCode!==200){throw new Error(`HTTP ${l.statusCode}: ${l.statusMessage}`)}const p=JSON.parse(l.body);return p||null}catch(r){continue}}return null}var parsers_lib=__webpack_require__(6992);
|
|
14
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
15
|
+
function isNothing(r){return typeof r==="undefined"||r===null}function js_yaml_isObject(r){return typeof r==="object"&&r!==null}function toArray(r){if(Array.isArray(r))return r;else if(isNothing(r))return[];return[r]}function extend(r,s){var l,p,d,m;if(s){m=Object.keys(s);for(l=0,p=m.length;l<p;l+=1){d=m[l];r[d]=s[d]}}return r}function repeat(r,s){var l="",p;for(p=0;p<s;p+=1){l+=r}return l}function isNegativeZero(r){return r===0&&Number.NEGATIVE_INFINITY===1/r}var isNothing_1=isNothing;var isObject_1=js_yaml_isObject;var toArray_1=toArray;var repeat_1=repeat;var isNegativeZero_1=isNegativeZero;var extend_1=extend;var common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(r,s){var l="",p=r.reason||"(unknown reason)";if(!r.mark)return p;if(r.mark.name){l+='in "'+r.mark.name+'" '}l+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")";if(!s&&r.mark.snippet){l+="\n\n"+r.mark.snippet}return p+" "+l}function YAMLException$1(r,s){Error.call(this);this.name="YAMLException";this.reason=r;this.mark=s;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(r){return this.name+": "+formatError(this,r)};var exception=YAMLException$1;function getLine(r,s,l,p,d){var m="";var y="";var g=Math.floor(d/2)-1;if(p-s>g){m=" ... ";s=p-g+m.length}if(l-p>g){y=" ...";l=p+g-y.length}return{str:m+r.slice(s,l).replace(/\t/g,"→")+y,pos:p-s+m.length}}function padStart(r,s){return common.repeat(" ",s-r.length)+r}function makeSnippet(r,s){s=Object.create(s||null);if(!r.buffer)return null;if(!s.maxLength)s.maxLength=79;if(typeof s.indent!=="number")s.indent=1;if(typeof s.linesBefore!=="number")s.linesBefore=3;if(typeof s.linesAfter!=="number")s.linesAfter=2;var l=/\r?\n|\r|\0/g;var p=[0];var d=[];var m;var y=-1;while(m=l.exec(r.buffer)){d.push(m.index);p.push(m.index+m[0].length);if(r.position<=m.index&&y<0){y=p.length-2}}if(y<0)y=p.length-1;var g="",T,b;var E=Math.min(r.line+s.linesAfter,d.length).toString().length;var S=s.maxLength-(s.indent+E+3);for(T=1;T<=s.linesBefore;T++){if(y-T<0)break;b=getLine(r.buffer,p[y-T],d[y-T],r.position-(p[y]-p[y-T]),S);g=common.repeat(" ",s.indent)+padStart((r.line-T+1).toString(),E)+" | "+b.str+"\n"+g}b=getLine(r.buffer,p[y],d[y],r.position,S);g+=common.repeat(" ",s.indent)+padStart((r.line+1).toString(),E)+" | "+b.str+"\n";g+=common.repeat("-",s.indent+E+3+b.pos)+"^"+"\n";for(T=1;T<=s.linesAfter;T++){if(y+T>=d.length)break;b=getLine(r.buffer,p[y+T],d[y+T],r.position-(p[y]-p[y+T]),S);g+=common.repeat(" ",s.indent)+padStart((r.line+T+1).toString(),E)+" | "+b.str+"\n"}return g.replace(/\n$/,"")}var snippet=makeSnippet;var TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(r){var s={};if(r!==null){Object.keys(r).forEach((function(l){r[l].forEach((function(r){s[String(r)]=l}))}))}return s}function Type$1(r,s){s=s||{};Object.keys(s).forEach((function(s){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(s)===-1){throw new exception('Unknown option "'+s+'" is met in definition of "'+r+'" YAML type.')}}));this.options=s;this.tag=r;this.kind=s["kind"]||null;this.resolve=s["resolve"]||function(){return true};this.construct=s["construct"]||function(r){return r};this.instanceOf=s["instanceOf"]||null;this.predicate=s["predicate"]||null;this.represent=s["represent"]||null;this.representName=s["representName"]||null;this.defaultStyle=s["defaultStyle"]||null;this.multi=s["multi"]||false;this.styleAliases=compileStyleAliases(s["styleAliases"]||null);if(YAML_NODE_KINDS.indexOf(this.kind)===-1){throw new exception('Unknown kind "'+this.kind+'" is specified for "'+r+'" YAML type.')}}var type=Type$1;function compileList(r,s){var l=[];r[s].forEach((function(r){var s=l.length;l.forEach((function(l,p){if(l.tag===r.tag&&l.kind===r.kind&&l.multi===r.multi){s=p}}));l[s]=r}));return l}function compileMap(){var r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},s,l;function collectType(s){if(s.multi){r.multi[s.kind].push(s);r.multi["fallback"].push(s)}else{r[s.kind][s.tag]=r["fallback"][s.tag]=s}}for(s=0,l=arguments.length;s<l;s+=1){arguments[s].forEach(collectType)}return r}function Schema$1(r){return this.extend(r)}Schema$1.prototype.extend=function extend(r){var s=[];var l=[];if(r instanceof type){l.push(r)}else if(Array.isArray(r)){l=l.concat(r)}else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit))){if(r.implicit)s=s.concat(r.implicit);if(r.explicit)l=l.concat(r.explicit)}else{throw new exception("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}s.forEach((function(r){if(!(r instanceof type)){throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(r.loadKind&&r.loadKind!=="scalar"){throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(r.multi){throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));l.forEach((function(r){if(!(r instanceof type)){throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var p=Object.create(Schema$1.prototype);p.implicit=(this.implicit||[]).concat(s);p.explicit=(this.explicit||[]).concat(l);p.compiledImplicit=compileList(p,"implicit");p.compiledExplicit=compileList(p,"explicit");p.compiledTypeMap=compileMap(p.compiledImplicit,p.compiledExplicit);return p};var schema=Schema$1;var str=new type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}});var seq=new type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}});var map=new type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}});var failsafe=new schema({explicit:[str,seq,map]});function resolveYamlNull(r){if(r===null)return true;var s=r.length;return s===1&&r==="~"||s===4&&(r==="null"||r==="Null"||r==="NULL")}function constructYamlNull(){return null}function js_yaml_isNull(r){return r===null}var _null=new type("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:js_yaml_isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(r){if(r===null)return false;var s=r.length;return s===4&&(r==="true"||r==="True"||r==="TRUE")||s===5&&(r==="false"||r==="False"||r==="FALSE")}function constructYamlBoolean(r){return r==="true"||r==="True"||r==="TRUE"}function js_yaml_isBoolean(r){return Object.prototype.toString.call(r)==="[object Boolean]"}var bool=new type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:js_yaml_isBoolean,represent:{lowercase:function(r){return r?"true":"false"},uppercase:function(r){return r?"TRUE":"FALSE"},camelcase:function(r){return r?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(r){return 48<=r&&r<=57||65<=r&&r<=70||97<=r&&r<=102}function isOctCode(r){return 48<=r&&r<=55}function isDecCode(r){return 48<=r&&r<=57}function resolveYamlInteger(r){if(r===null)return false;var s=r.length,l=0,p=false,d;if(!s)return false;d=r[l];if(d==="-"||d==="+"){d=r[++l]}if(d==="0"){if(l+1===s)return true;d=r[++l];if(d==="b"){l++;for(;l<s;l++){d=r[l];if(d==="_")continue;if(d!=="0"&&d!=="1")return false;p=true}return p&&d!=="_"}if(d==="x"){l++;for(;l<s;l++){d=r[l];if(d==="_")continue;if(!isHexCode(r.charCodeAt(l)))return false;p=true}return p&&d!=="_"}if(d==="o"){l++;for(;l<s;l++){d=r[l];if(d==="_")continue;if(!isOctCode(r.charCodeAt(l)))return false;p=true}return p&&d!=="_"}}if(d==="_")return false;for(;l<s;l++){d=r[l];if(d==="_")continue;if(!isDecCode(r.charCodeAt(l))){return false}p=true}if(!p||d==="_")return false;return true}function constructYamlInteger(r){var s=r,l=1,p;if(s.indexOf("_")!==-1){s=s.replace(/_/g,"")}p=s[0];if(p==="-"||p==="+"){if(p==="-")l=-1;s=s.slice(1);p=s[0]}if(s==="0")return 0;if(p==="0"){if(s[1]==="b")return l*parseInt(s.slice(2),2);if(s[1]==="x")return l*parseInt(s.slice(2),16);if(s[1]==="o")return l*parseInt(s.slice(2),8)}return l*parseInt(s,10)}function js_yaml_isInteger(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1===0&&!common.isNegativeZero(r))}var js_yaml_int=new type("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:js_yaml_isInteger,represent:{binary:function(r){return r>=0?"0b"+r.toString(2):"-0b"+r.toString(2).slice(1)},octal:function(r){return r>=0?"0o"+r.toString(8):"-0o"+r.toString(8).slice(1)},decimal:function(r){return r.toString(10)},hexadecimal:function(r){return r>=0?"0x"+r.toString(16).toUpperCase():"-0x"+r.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var YAML_FLOAT_PATTERN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(r){if(r===null)return false;if(!YAML_FLOAT_PATTERN.test(r)||r[r.length-1]==="_"){return false}return true}function constructYamlFloat(r){var s,l;s=r.replace(/_/g,"").toLowerCase();l=s[0]==="-"?-1:1;if("+-".indexOf(s[0])>=0){s=s.slice(1)}if(s===".inf"){return l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(s===".nan"){return NaN}return l*parseFloat(s,10)}var SCIENTIFIC_WITHOUT_DOT=/^[-+]?[0-9]+e/;function representYamlFloat(r,s){var l;if(isNaN(r)){switch(s){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===r){switch(s){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===r){switch(s){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(common.isNegativeZero(r)){return"-0.0"}l=r.toString(10);return SCIENTIFIC_WITHOUT_DOT.test(l)?l.replace("e",".e"):l}function isFloat(r){return Object.prototype.toString.call(r)==="[object Number]"&&(r%1!==0||common.isNegativeZero(r))}var js_yaml_float=new type("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var json=failsafe.extend({implicit:[_null,bool,js_yaml_int,js_yaml_float]});var core=json;var YAML_DATE_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var YAML_TIMESTAMP_REGEXP=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(r){if(r===null)return false;if(YAML_DATE_REGEXP.exec(r)!==null)return true;if(YAML_TIMESTAMP_REGEXP.exec(r)!==null)return true;return false}function constructYamlTimestamp(r){var s,l,p,d,m,y,g,T=0,b=null,E,S,_;s=YAML_DATE_REGEXP.exec(r);if(s===null)s=YAML_TIMESTAMP_REGEXP.exec(r);if(s===null)throw new Error("Date resolve error");l=+s[1];p=+s[2]-1;d=+s[3];if(!s[4]){return new Date(Date.UTC(l,p,d))}m=+s[4];y=+s[5];g=+s[6];if(s[7]){T=s[7].slice(0,3);while(T.length<3){T+="0"}T=+T}if(s[9]){E=+s[10];S=+(s[11]||0);b=(E*60+S)*6e4;if(s[9]==="-")b=-b}_=new Date(Date.UTC(l,p,d,m,y,g,T));if(b)_.setTime(_.getTime()-b);return _}function representYamlTimestamp(r){return r.toISOString()}var timestamp=new type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(r){return r==="<<"||r===null}var merge=new type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var BASE64_MAP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(r){if(r===null)return false;var s,l,p=0,d=r.length,m=BASE64_MAP;for(l=0;l<d;l++){s=m.indexOf(r.charAt(l));if(s>64)continue;if(s<0)return false;p+=6}return p%8===0}function constructYamlBinary(r){var s,l,p=r.replace(/[\r\n=]/g,""),d=p.length,m=BASE64_MAP,y=0,g=[];for(s=0;s<d;s++){if(s%4===0&&s){g.push(y>>16&255);g.push(y>>8&255);g.push(y&255)}y=y<<6|m.indexOf(p.charAt(s))}l=d%4*6;if(l===0){g.push(y>>16&255);g.push(y>>8&255);g.push(y&255)}else if(l===18){g.push(y>>10&255);g.push(y>>2&255)}else if(l===12){g.push(y>>4&255)}return new Uint8Array(g)}function representYamlBinary(r){var s="",l=0,p,d,m=r.length,y=BASE64_MAP;for(p=0;p<m;p++){if(p%3===0&&p){s+=y[l>>18&63];s+=y[l>>12&63];s+=y[l>>6&63];s+=y[l&63]}l=(l<<8)+r[p]}d=m%3;if(d===0){s+=y[l>>18&63];s+=y[l>>12&63];s+=y[l>>6&63];s+=y[l&63]}else if(d===2){s+=y[l>>10&63];s+=y[l>>4&63];s+=y[l<<2&63];s+=y[64]}else if(d===1){s+=y[l>>2&63];s+=y[l<<4&63];s+=y[64];s+=y[64]}return s}function isBinary(r){return Object.prototype.toString.call(r)==="[object Uint8Array]"}var binary=new type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var _hasOwnProperty$3=Object.prototype.hasOwnProperty;var _toString$2=Object.prototype.toString;function resolveYamlOmap(r){if(r===null)return true;var s=[],l,p,d,m,y,g=r;for(l=0,p=g.length;l<p;l+=1){d=g[l];y=false;if(_toString$2.call(d)!=="[object Object]")return false;for(m in d){if(_hasOwnProperty$3.call(d,m)){if(!y)y=true;else return false}}if(!y)return false;if(s.indexOf(m)===-1)s.push(m);else return false}return true}function constructYamlOmap(r){return r!==null?r:[]}var omap=new type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap});var _toString$1=Object.prototype.toString;function resolveYamlPairs(r){if(r===null)return true;var s,l,p,d,m,y=r;m=new Array(y.length);for(s=0,l=y.length;s<l;s+=1){p=y[s];if(_toString$1.call(p)!=="[object Object]")return false;d=Object.keys(p);if(d.length!==1)return false;m[s]=[d[0],p[d[0]]]}return true}function constructYamlPairs(r){if(r===null)return[];var s,l,p,d,m,y=r;m=new Array(y.length);for(s=0,l=y.length;s<l;s+=1){p=y[s];d=Object.keys(p);m[s]=[d[0],p[d[0]]]}return m}var pairs=new type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs});var _hasOwnProperty$2=Object.prototype.hasOwnProperty;function resolveYamlSet(r){if(r===null)return true;var s,l=r;for(s in l){if(_hasOwnProperty$2.call(l,s)){if(l[s]!==null)return false}}return true}function constructYamlSet(r){return r!==null?r:{}}var set=new type("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet});var _default=core.extend({implicit:[timestamp,merge],explicit:[binary,omap,pairs,set]});var _hasOwnProperty$1=Object.prototype.hasOwnProperty;var CONTEXT_FLOW_IN=1;var CONTEXT_FLOW_OUT=2;var CONTEXT_BLOCK_IN=3;var CONTEXT_BLOCK_OUT=4;var CHOMPING_CLIP=1;var CHOMPING_STRIP=2;var CHOMPING_KEEP=3;var PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/;var PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/;var PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i;var PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(r){return Object.prototype.toString.call(r)}function is_EOL(r){return r===10||r===13}function is_WHITE_SPACE(r){return r===9||r===32}function is_WS_OR_EOL(r){return r===9||r===32||r===10||r===13}function is_FLOW_INDICATOR(r){return r===44||r===91||r===93||r===123||r===125}function fromHexCode(r){var s;if(48<=r&&r<=57){return r-48}s=r|32;if(97<=s&&s<=102){return s-97+10}return-1}function escapedHexLen(r){if(r===120){return 2}if(r===117){return 4}if(r===85){return 8}return 0}function fromDecimalCode(r){if(48<=r&&r<=57){return r-48}return-1}function simpleEscapeSequence(r){return r===48?"\0":r===97?"":r===98?"\b":r===116?"\t":r===9?"\t":r===110?"\n":r===118?"\v":r===102?"\f":r===114?"\r":r===101?"":r===32?" ":r===34?'"':r===47?"/":r===92?"\\":r===78?"
":r===95?" ":r===76?"\u2028":r===80?"\u2029":""}function charFromCodepoint(r){if(r<=65535){return String.fromCharCode(r)}return String.fromCharCode((r-65536>>10)+55296,(r-65536&1023)+56320)}function setProperty(r,s,l){if(s==="__proto__"){Object.defineProperty(r,s,{configurable:true,enumerable:true,writable:true,value:l})}else{r[s]=l}}var simpleEscapeCheck=new Array(256);var simpleEscapeMap=new Array(256);for(var js_yaml_i=0;js_yaml_i<256;js_yaml_i++){simpleEscapeCheck[js_yaml_i]=simpleEscapeSequence(js_yaml_i)?1:0;simpleEscapeMap[js_yaml_i]=simpleEscapeSequence(js_yaml_i)}function State$1(r,s){this.input=r;this.filename=s["filename"]||null;this.schema=s["schema"]||_default;this.onWarning=s["onWarning"]||null;this.legacy=s["legacy"]||false;this.json=s["json"]||false;this.listener=s["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=r.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(r,s){var l={name:r.filename,buffer:r.input.slice(0,-1),position:r.position,line:r.line,column:r.position-r.lineStart};l.snippet=snippet(l);return new exception(s,l)}function throwError(r,s){throw generateError(r,s)}function throwWarning(r,s){if(r.onWarning){r.onWarning.call(null,generateError(r,s))}}var directiveHandlers={YAML:function handleYamlDirective(r,s,l){var p,d,m;if(r.version!==null){throwError(r,"duplication of %YAML directive")}if(l.length!==1){throwError(r,"YAML directive accepts exactly one argument")}p=/^([0-9]+)\.([0-9]+)$/.exec(l[0]);if(p===null){throwError(r,"ill-formed argument of the YAML directive")}d=parseInt(p[1],10);m=parseInt(p[2],10);if(d!==1){throwError(r,"unacceptable YAML version of the document")}r.version=l[0];r.checkLineBreaks=m<2;if(m!==1&&m!==2){throwWarning(r,"unsupported YAML version of the document")}},TAG:function handleTagDirective(r,s,l){var p,d;if(l.length!==2){throwError(r,"TAG directive accepts exactly two arguments")}p=l[0];d=l[1];if(!PATTERN_TAG_HANDLE.test(p)){throwError(r,"ill-formed tag handle (first argument) of the TAG directive")}if(_hasOwnProperty$1.call(r.tagMap,p)){throwError(r,'there is a previously declared suffix for "'+p+'" tag handle')}if(!PATTERN_TAG_URI.test(d)){throwError(r,"ill-formed tag prefix (second argument) of the TAG directive")}try{d=decodeURIComponent(d)}catch(s){throwError(r,"tag prefix is malformed: "+d)}r.tagMap[p]=d}};function captureSegment(r,s,l,p){var d,m,y,g;if(s<l){g=r.input.slice(s,l);if(p){for(d=0,m=g.length;d<m;d+=1){y=g.charCodeAt(d);if(!(y===9||32<=y&&y<=1114111)){throwError(r,"expected valid JSON character")}}}else if(PATTERN_NON_PRINTABLE.test(g)){throwError(r,"the stream contains non-printable characters")}r.result+=g}}function mergeMappings(r,s,l,p){var d,m,y,g;if(!common.isObject(l)){throwError(r,"cannot merge mappings; the provided source object is unacceptable")}d=Object.keys(l);for(y=0,g=d.length;y<g;y+=1){m=d[y];if(!_hasOwnProperty$1.call(s,m)){setProperty(s,m,l[m]);p[m]=true}}}function storeMappingPair(r,s,l,p,d,m,y,g,T){var b,E;if(Array.isArray(d)){d=Array.prototype.slice.call(d);for(b=0,E=d.length;b<E;b+=1){if(Array.isArray(d[b])){throwError(r,"nested arrays are not supported inside keys")}if(typeof d==="object"&&_class(d[b])==="[object Object]"){d[b]="[object Object]"}}}if(typeof d==="object"&&_class(d)==="[object Object]"){d="[object Object]"}d=String(d);if(s===null){s={}}if(p==="tag:yaml.org,2002:merge"){if(Array.isArray(m)){for(b=0,E=m.length;b<E;b+=1){mergeMappings(r,s,m[b],l)}}else{mergeMappings(r,s,m,l)}}else{if(!r.json&&!_hasOwnProperty$1.call(l,d)&&_hasOwnProperty$1.call(s,d)){r.line=y||r.line;r.lineStart=g||r.lineStart;r.position=T||r.position;throwError(r,"duplicated mapping key")}setProperty(s,d,m);delete l[d]}return s}function readLineBreak(r){var s;s=r.input.charCodeAt(r.position);if(s===10){r.position++}else if(s===13){r.position++;if(r.input.charCodeAt(r.position)===10){r.position++}}else{throwError(r,"a line break is expected")}r.line+=1;r.lineStart=r.position;r.firstTabInLine=-1}function skipSeparationSpace(r,s,l){var p=0,d=r.input.charCodeAt(r.position);while(d!==0){while(is_WHITE_SPACE(d)){if(d===9&&r.firstTabInLine===-1){r.firstTabInLine=r.position}d=r.input.charCodeAt(++r.position)}if(s&&d===35){do{d=r.input.charCodeAt(++r.position)}while(d!==10&&d!==13&&d!==0)}if(is_EOL(d)){readLineBreak(r);d=r.input.charCodeAt(r.position);p++;r.lineIndent=0;while(d===32){r.lineIndent++;d=r.input.charCodeAt(++r.position)}}else{break}}if(l!==-1&&p!==0&&r.lineIndent<l){throwWarning(r,"deficient indentation")}return p}function testDocumentSeparator(r){var s=r.position,l;l=r.input.charCodeAt(s);if((l===45||l===46)&&l===r.input.charCodeAt(s+1)&&l===r.input.charCodeAt(s+2)){s+=3;l=r.input.charCodeAt(s);if(l===0||is_WS_OR_EOL(l)){return true}}return false}function writeFoldedLines(r,s){if(s===1){r.result+=" "}else if(s>1){r.result+=common.repeat("\n",s-1)}}function readPlainScalar(r,s,l){var p,d,m,y,g,T,b,E,S=r.kind,_=r.result,x;x=r.input.charCodeAt(r.position);if(is_WS_OR_EOL(x)||is_FLOW_INDICATOR(x)||x===35||x===38||x===42||x===33||x===124||x===62||x===39||x===34||x===37||x===64||x===96){return false}if(x===63||x===45){d=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(d)||l&&is_FLOW_INDICATOR(d)){return false}}r.kind="scalar";r.result="";m=y=r.position;g=false;while(x!==0){if(x===58){d=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(d)||l&&is_FLOW_INDICATOR(d)){break}}else if(x===35){p=r.input.charCodeAt(r.position-1);if(is_WS_OR_EOL(p)){break}}else if(r.position===r.lineStart&&testDocumentSeparator(r)||l&&is_FLOW_INDICATOR(x)){break}else if(is_EOL(x)){T=r.line;b=r.lineStart;E=r.lineIndent;skipSeparationSpace(r,false,-1);if(r.lineIndent>=s){g=true;x=r.input.charCodeAt(r.position);continue}else{r.position=y;r.line=T;r.lineStart=b;r.lineIndent=E;break}}if(g){captureSegment(r,m,y,false);writeFoldedLines(r,r.line-T);m=y=r.position;g=false}if(!is_WHITE_SPACE(x)){y=r.position+1}x=r.input.charCodeAt(++r.position)}captureSegment(r,m,y,false);if(r.result){return true}r.kind=S;r.result=_;return false}function readSingleQuotedScalar(r,s){var l,p,d;l=r.input.charCodeAt(r.position);if(l!==39){return false}r.kind="scalar";r.result="";r.position++;p=d=r.position;while((l=r.input.charCodeAt(r.position))!==0){if(l===39){captureSegment(r,p,r.position,true);l=r.input.charCodeAt(++r.position);if(l===39){p=r.position;r.position++;d=r.position}else{return true}}else if(is_EOL(l)){captureSegment(r,p,d,true);writeFoldedLines(r,skipSeparationSpace(r,false,s));p=d=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a single quoted scalar")}else{r.position++;d=r.position}}throwError(r,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(r,s){var l,p,d,m,y,g;g=r.input.charCodeAt(r.position);if(g!==34){return false}r.kind="scalar";r.result="";r.position++;l=p=r.position;while((g=r.input.charCodeAt(r.position))!==0){if(g===34){captureSegment(r,l,r.position,true);r.position++;return true}else if(g===92){captureSegment(r,l,r.position,true);g=r.input.charCodeAt(++r.position);if(is_EOL(g)){skipSeparationSpace(r,false,s)}else if(g<256&&simpleEscapeCheck[g]){r.result+=simpleEscapeMap[g];r.position++}else if((y=escapedHexLen(g))>0){d=y;m=0;for(;d>0;d--){g=r.input.charCodeAt(++r.position);if((y=fromHexCode(g))>=0){m=(m<<4)+y}else{throwError(r,"expected hexadecimal character")}}r.result+=charFromCodepoint(m);r.position++}else{throwError(r,"unknown escape sequence")}l=p=r.position}else if(is_EOL(g)){captureSegment(r,l,p,true);writeFoldedLines(r,skipSeparationSpace(r,false,s));l=p=r.position}else if(r.position===r.lineStart&&testDocumentSeparator(r)){throwError(r,"unexpected end of the document within a double quoted scalar")}else{r.position++;p=r.position}}throwError(r,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(r,s){var l=true,p,d,m,y=r.tag,g,T=r.anchor,b,E,S,_,x,w=Object.create(null),v,A,P,k;k=r.input.charCodeAt(r.position);if(k===91){E=93;x=false;g=[]}else if(k===123){E=125;x=true;g={}}else{return false}if(r.anchor!==null){r.anchorMap[r.anchor]=g}k=r.input.charCodeAt(++r.position);while(k!==0){skipSeparationSpace(r,true,s);k=r.input.charCodeAt(r.position);if(k===E){r.position++;r.tag=y;r.anchor=T;r.kind=x?"mapping":"sequence";r.result=g;return true}else if(!l){throwError(r,"missed comma between flow collection entries")}else if(k===44){throwError(r,"expected the node content, but found ','")}A=v=P=null;S=_=false;if(k===63){b=r.input.charCodeAt(r.position+1);if(is_WS_OR_EOL(b)){S=_=true;r.position++;skipSeparationSpace(r,true,s)}}p=r.line;d=r.lineStart;m=r.position;composeNode(r,s,CONTEXT_FLOW_IN,false,true);A=r.tag;v=r.result;skipSeparationSpace(r,true,s);k=r.input.charCodeAt(r.position);if((_||r.line===p)&&k===58){S=true;k=r.input.charCodeAt(++r.position);skipSeparationSpace(r,true,s);composeNode(r,s,CONTEXT_FLOW_IN,false,true);P=r.result}if(x){storeMappingPair(r,g,w,A,v,P,p,d,m)}else if(S){g.push(storeMappingPair(r,null,w,A,v,P,p,d,m))}else{g.push(v)}skipSeparationSpace(r,true,s);k=r.input.charCodeAt(r.position);if(k===44){l=true;k=r.input.charCodeAt(++r.position)}else{l=false}}throwError(r,"unexpected end of the stream within a flow collection")}function readBlockScalar(r,s){var l,p,d=CHOMPING_CLIP,m=false,y=false,g=s,T=0,b=false,E,S;S=r.input.charCodeAt(r.position);if(S===124){p=false}else if(S===62){p=true}else{return false}r.kind="scalar";r.result="";while(S!==0){S=r.input.charCodeAt(++r.position);if(S===43||S===45){if(CHOMPING_CLIP===d){d=S===43?CHOMPING_KEEP:CHOMPING_STRIP}else{throwError(r,"repeat of a chomping mode identifier")}}else if((E=fromDecimalCode(S))>=0){if(E===0){throwError(r,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!y){g=s+E-1;y=true}else{throwError(r,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(S)){do{S=r.input.charCodeAt(++r.position)}while(is_WHITE_SPACE(S));if(S===35){do{S=r.input.charCodeAt(++r.position)}while(!is_EOL(S)&&S!==0)}}while(S!==0){readLineBreak(r);r.lineIndent=0;S=r.input.charCodeAt(r.position);while((!y||r.lineIndent<g)&&S===32){r.lineIndent++;S=r.input.charCodeAt(++r.position)}if(!y&&r.lineIndent>g){g=r.lineIndent}if(is_EOL(S)){T++;continue}if(r.lineIndent<g){if(d===CHOMPING_KEEP){r.result+=common.repeat("\n",m?1+T:T)}else if(d===CHOMPING_CLIP){if(m){r.result+="\n"}}break}if(p){if(is_WHITE_SPACE(S)){b=true;r.result+=common.repeat("\n",m?1+T:T)}else if(b){b=false;r.result+=common.repeat("\n",T+1)}else if(T===0){if(m){r.result+=" "}}else{r.result+=common.repeat("\n",T)}}else{r.result+=common.repeat("\n",m?1+T:T)}m=true;y=true;T=0;l=r.position;while(!is_EOL(S)&&S!==0){S=r.input.charCodeAt(++r.position)}captureSegment(r,l,r.position,false)}return true}function readBlockSequence(r,s){var l,p=r.tag,d=r.anchor,m=[],y,g=false,T;if(r.firstTabInLine!==-1)return false;if(r.anchor!==null){r.anchorMap[r.anchor]=m}T=r.input.charCodeAt(r.position);while(T!==0){if(r.firstTabInLine!==-1){r.position=r.firstTabInLine;throwError(r,"tab characters must not be used in indentation")}if(T!==45){break}y=r.input.charCodeAt(r.position+1);if(!is_WS_OR_EOL(y)){break}g=true;r.position++;if(skipSeparationSpace(r,true,-1)){if(r.lineIndent<=s){m.push(null);T=r.input.charCodeAt(r.position);continue}}l=r.line;composeNode(r,s,CONTEXT_BLOCK_IN,false,true);m.push(r.result);skipSeparationSpace(r,true,-1);T=r.input.charCodeAt(r.position);if((r.line===l||r.lineIndent>s)&&T!==0){throwError(r,"bad indentation of a sequence entry")}else if(r.lineIndent<s){break}}if(g){r.tag=p;r.anchor=d;r.kind="sequence";r.result=m;return true}return false}function readBlockMapping(r,s,l){var p,d,m,y,g,T,b=r.tag,E=r.anchor,S={},_=Object.create(null),x=null,w=null,v=null,A=false,P=false,k;if(r.firstTabInLine!==-1)return false;if(r.anchor!==null){r.anchorMap[r.anchor]=S}k=r.input.charCodeAt(r.position);while(k!==0){if(!A&&r.firstTabInLine!==-1){r.position=r.firstTabInLine;throwError(r,"tab characters must not be used in indentation")}p=r.input.charCodeAt(r.position+1);m=r.line;if((k===63||k===58)&&is_WS_OR_EOL(p)){if(k===63){if(A){storeMappingPair(r,S,_,x,w,null,y,g,T);x=w=v=null}P=true;A=true;d=true}else if(A){A=false;d=true}else{throwError(r,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}r.position+=1;k=p}else{y=r.line;g=r.lineStart;T=r.position;if(!composeNode(r,l,CONTEXT_FLOW_OUT,false,true)){break}if(r.line===m){k=r.input.charCodeAt(r.position);while(is_WHITE_SPACE(k)){k=r.input.charCodeAt(++r.position)}if(k===58){k=r.input.charCodeAt(++r.position);if(!is_WS_OR_EOL(k)){throwError(r,"a whitespace character is expected after the key-value separator within a block mapping")}if(A){storeMappingPair(r,S,_,x,w,null,y,g,T);x=w=v=null}P=true;A=false;d=false;x=r.tag;w=r.result}else if(P){throwError(r,"can not read an implicit mapping pair; a colon is missed")}else{r.tag=b;r.anchor=E;return true}}else if(P){throwError(r,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{r.tag=b;r.anchor=E;return true}}if(r.line===m||r.lineIndent>s){if(A){y=r.line;g=r.lineStart;T=r.position}if(composeNode(r,s,CONTEXT_BLOCK_OUT,true,d)){if(A){w=r.result}else{v=r.result}}if(!A){storeMappingPair(r,S,_,x,w,v,y,g,T);x=w=v=null}skipSeparationSpace(r,true,-1);k=r.input.charCodeAt(r.position)}if((r.line===m||r.lineIndent>s)&&k!==0){throwError(r,"bad indentation of a mapping entry")}else if(r.lineIndent<s){break}}if(A){storeMappingPair(r,S,_,x,w,null,y,g,T)}if(P){r.tag=b;r.anchor=E;r.kind="mapping";r.result=S}return P}function readTagProperty(r){var s,l=false,p=false,d,m,y;y=r.input.charCodeAt(r.position);if(y!==33)return false;if(r.tag!==null){throwError(r,"duplication of a tag property")}y=r.input.charCodeAt(++r.position);if(y===60){l=true;y=r.input.charCodeAt(++r.position)}else if(y===33){p=true;d="!!";y=r.input.charCodeAt(++r.position)}else{d="!"}s=r.position;if(l){do{y=r.input.charCodeAt(++r.position)}while(y!==0&&y!==62);if(r.position<r.length){m=r.input.slice(s,r.position);y=r.input.charCodeAt(++r.position)}else{throwError(r,"unexpected end of the stream within a verbatim tag")}}else{while(y!==0&&!is_WS_OR_EOL(y)){if(y===33){if(!p){d=r.input.slice(s-1,r.position+1);if(!PATTERN_TAG_HANDLE.test(d)){throwError(r,"named tag handle cannot contain such characters")}p=true;s=r.position+1}else{throwError(r,"tag suffix cannot contain exclamation marks")}}y=r.input.charCodeAt(++r.position)}m=r.input.slice(s,r.position);if(PATTERN_FLOW_INDICATORS.test(m)){throwError(r,"tag suffix cannot contain flow indicator characters")}}if(m&&!PATTERN_TAG_URI.test(m)){throwError(r,"tag name cannot contain such characters: "+m)}try{m=decodeURIComponent(m)}catch(s){throwError(r,"tag name is malformed: "+m)}if(l){r.tag=m}else if(_hasOwnProperty$1.call(r.tagMap,d)){r.tag=r.tagMap[d]+m}else if(d==="!"){r.tag="!"+m}else if(d==="!!"){r.tag="tag:yaml.org,2002:"+m}else{throwError(r,'undeclared tag handle "'+d+'"')}return true}function readAnchorProperty(r){var s,l;l=r.input.charCodeAt(r.position);if(l!==38)return false;if(r.anchor!==null){throwError(r,"duplication of an anchor property")}l=r.input.charCodeAt(++r.position);s=r.position;while(l!==0&&!is_WS_OR_EOL(l)&&!is_FLOW_INDICATOR(l)){l=r.input.charCodeAt(++r.position)}if(r.position===s){throwError(r,"name of an anchor node must contain at least one character")}r.anchor=r.input.slice(s,r.position);return true}function readAlias(r){var s,l,p;p=r.input.charCodeAt(r.position);if(p!==42)return false;p=r.input.charCodeAt(++r.position);s=r.position;while(p!==0&&!is_WS_OR_EOL(p)&&!is_FLOW_INDICATOR(p)){p=r.input.charCodeAt(++r.position)}if(r.position===s){throwError(r,"name of an alias node must contain at least one character")}l=r.input.slice(s,r.position);if(!_hasOwnProperty$1.call(r.anchorMap,l)){throwError(r,'unidentified alias "'+l+'"')}r.result=r.anchorMap[l];skipSeparationSpace(r,true,-1);return true}function composeNode(r,s,l,p,d){var m,y,g,T=1,b=false,E=false,S,_,x,w,v,A;if(r.listener!==null){r.listener("open",r)}r.tag=null;r.anchor=null;r.kind=null;r.result=null;m=y=g=CONTEXT_BLOCK_OUT===l||CONTEXT_BLOCK_IN===l;if(p){if(skipSeparationSpace(r,true,-1)){b=true;if(r.lineIndent>s){T=1}else if(r.lineIndent===s){T=0}else if(r.lineIndent<s){T=-1}}}if(T===1){while(readTagProperty(r)||readAnchorProperty(r)){if(skipSeparationSpace(r,true,-1)){b=true;g=m;if(r.lineIndent>s){T=1}else if(r.lineIndent===s){T=0}else if(r.lineIndent<s){T=-1}}else{g=false}}}if(g){g=b||d}if(T===1||CONTEXT_BLOCK_OUT===l){if(CONTEXT_FLOW_IN===l||CONTEXT_FLOW_OUT===l){v=s}else{v=s+1}A=r.position-r.lineStart;if(T===1){if(g&&(readBlockSequence(r,A)||readBlockMapping(r,A,v))||readFlowCollection(r,v)){E=true}else{if(y&&readBlockScalar(r,v)||readSingleQuotedScalar(r,v)||readDoubleQuotedScalar(r,v)){E=true}else if(readAlias(r)){E=true;if(r.tag!==null||r.anchor!==null){throwError(r,"alias node should not have any properties")}}else if(readPlainScalar(r,v,CONTEXT_FLOW_IN===l)){E=true;if(r.tag===null){r.tag="?"}}if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}else if(T===0){E=g&&readBlockSequence(r,A)}}if(r.tag===null){if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}else if(r.tag==="?"){if(r.result!==null&&r.kind!=="scalar"){throwError(r,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+r.kind+'"')}for(S=0,_=r.implicitTypes.length;S<_;S+=1){w=r.implicitTypes[S];if(w.resolve(r.result)){r.result=w.construct(r.result);r.tag=w.tag;if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}break}}}else if(r.tag!=="!"){if(_hasOwnProperty$1.call(r.typeMap[r.kind||"fallback"],r.tag)){w=r.typeMap[r.kind||"fallback"][r.tag]}else{w=null;x=r.typeMap.multi[r.kind||"fallback"];for(S=0,_=x.length;S<_;S+=1){if(r.tag.slice(0,x[S].tag.length)===x[S].tag){w=x[S];break}}}if(!w){throwError(r,"unknown tag !<"+r.tag+">")}if(r.result!==null&&w.kind!==r.kind){throwError(r,"unacceptable node kind for !<"+r.tag+'> tag; it should be "'+w.kind+'", not "'+r.kind+'"')}if(!w.resolve(r.result,r.tag)){throwError(r,"cannot resolve a node with !<"+r.tag+"> explicit tag")}else{r.result=w.construct(r.result,r.tag);if(r.anchor!==null){r.anchorMap[r.anchor]=r.result}}}if(r.listener!==null){r.listener("close",r)}return r.tag!==null||r.anchor!==null||E}function readDocument(r){var s=r.position,l,p,d,m=false,y;r.version=null;r.checkLineBreaks=r.legacy;r.tagMap=Object.create(null);r.anchorMap=Object.create(null);while((y=r.input.charCodeAt(r.position))!==0){skipSeparationSpace(r,true,-1);y=r.input.charCodeAt(r.position);if(r.lineIndent>0||y!==37){break}m=true;y=r.input.charCodeAt(++r.position);l=r.position;while(y!==0&&!is_WS_OR_EOL(y)){y=r.input.charCodeAt(++r.position)}p=r.input.slice(l,r.position);d=[];if(p.length<1){throwError(r,"directive name must not be less than one character in length")}while(y!==0){while(is_WHITE_SPACE(y)){y=r.input.charCodeAt(++r.position)}if(y===35){do{y=r.input.charCodeAt(++r.position)}while(y!==0&&!is_EOL(y));break}if(is_EOL(y))break;l=r.position;while(y!==0&&!is_WS_OR_EOL(y)){y=r.input.charCodeAt(++r.position)}d.push(r.input.slice(l,r.position))}if(y!==0)readLineBreak(r);if(_hasOwnProperty$1.call(directiveHandlers,p)){directiveHandlers[p](r,p,d)}else{throwWarning(r,'unknown document directive "'+p+'"')}}skipSeparationSpace(r,true,-1);if(r.lineIndent===0&&r.input.charCodeAt(r.position)===45&&r.input.charCodeAt(r.position+1)===45&&r.input.charCodeAt(r.position+2)===45){r.position+=3;skipSeparationSpace(r,true,-1)}else if(m){throwError(r,"directives end mark is expected")}composeNode(r,r.lineIndent-1,CONTEXT_BLOCK_OUT,false,true);skipSeparationSpace(r,true,-1);if(r.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(r.input.slice(s,r.position))){throwWarning(r,"non-ASCII line breaks are interpreted as content")}r.documents.push(r.result);if(r.position===r.lineStart&&testDocumentSeparator(r)){if(r.input.charCodeAt(r.position)===46){r.position+=3;skipSeparationSpace(r,true,-1)}return}if(r.position<r.length-1){throwError(r,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(r,s){r=String(r);s=s||{};if(r.length!==0){if(r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13){r+="\n"}if(r.charCodeAt(0)===65279){r=r.slice(1)}}var l=new State$1(r,s);var p=r.indexOf("\0");if(p!==-1){l.position=p;throwError(l,"null byte is not allowed in input")}l.input+="\0";while(l.input.charCodeAt(l.position)===32){l.lineIndent+=1;l.position+=1}while(l.position<l.length-1){readDocument(l)}return l.documents}function loadAll$1(r,s,l){if(s!==null&&typeof s==="object"&&typeof l==="undefined"){l=s;s=null}var p=loadDocuments(r,l);if(typeof s!=="function"){return p}for(var d=0,m=p.length;d<m;d+=1){s(p[d])}}function load$1(r,s){var l=loadDocuments(r,s);if(l.length===0){return undefined}else if(l.length===1){return l[0]}throw new exception("expected a single document in the stream, but found more")}var loadAll_1=loadAll$1;var load_1=load$1;var loader={loadAll:loadAll_1,load:load_1};var _toString=Object.prototype.toString;var _hasOwnProperty=Object.prototype.hasOwnProperty;var CHAR_BOM=65279;var CHAR_TAB=9;var CHAR_LINE_FEED=10;var CHAR_CARRIAGE_RETURN=13;var CHAR_SPACE=32;var CHAR_EXCLAMATION=33;var CHAR_DOUBLE_QUOTE=34;var CHAR_SHARP=35;var CHAR_PERCENT=37;var CHAR_AMPERSAND=38;var CHAR_SINGLE_QUOTE=39;var CHAR_ASTERISK=42;var CHAR_COMMA=44;var CHAR_MINUS=45;var CHAR_COLON=58;var CHAR_EQUALS=61;var CHAR_GREATER_THAN=62;var CHAR_QUESTION=63;var CHAR_COMMERCIAL_AT=64;var CHAR_LEFT_SQUARE_BRACKET=91;var CHAR_RIGHT_SQUARE_BRACKET=93;var CHAR_GRAVE_ACCENT=96;var CHAR_LEFT_CURLY_BRACKET=123;var CHAR_VERTICAL_LINE=124;var CHAR_RIGHT_CURLY_BRACKET=125;var ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]="\\0";ESCAPE_SEQUENCES[7]="\\a";ESCAPE_SEQUENCES[8]="\\b";ESCAPE_SEQUENCES[9]="\\t";ESCAPE_SEQUENCES[10]="\\n";ESCAPE_SEQUENCES[11]="\\v";ESCAPE_SEQUENCES[12]="\\f";ESCAPE_SEQUENCES[13]="\\r";ESCAPE_SEQUENCES[27]="\\e";ESCAPE_SEQUENCES[34]='\\"';ESCAPE_SEQUENCES[92]="\\\\";ESCAPE_SEQUENCES[133]="\\N";ESCAPE_SEQUENCES[160]="\\_";ESCAPE_SEQUENCES[8232]="\\L";ESCAPE_SEQUENCES[8233]="\\P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(r,s){var l,p,d,m,y,g,T;if(s===null)return{};l={};p=Object.keys(s);for(d=0,m=p.length;d<m;d+=1){y=p[d];g=String(s[y]);if(y.slice(0,2)==="!!"){y="tag:yaml.org,2002:"+y.slice(2)}T=r.compiledTypeMap["fallback"][y];if(T&&_hasOwnProperty.call(T.styleAliases,g)){g=T.styleAliases[g]}l[y]=g}return l}function encodeHex(r){var s,l,p;s=r.toString(16).toUpperCase();if(r<=255){l="x";p=2}else if(r<=65535){l="u";p=4}else if(r<=4294967295){l="U";p=8}else{throw new exception("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+l+common.repeat("0",p-s.length)+s}var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(r){this.schema=r["schema"]||_default;this.indent=Math.max(1,r["indent"]||2);this.noArrayIndent=r["noArrayIndent"]||false;this.skipInvalid=r["skipInvalid"]||false;this.flowLevel=common.isNothing(r["flowLevel"])?-1:r["flowLevel"];this.styleMap=compileStyleMap(this.schema,r["styles"]||null);this.sortKeys=r["sortKeys"]||false;this.lineWidth=r["lineWidth"]||80;this.noRefs=r["noRefs"]||false;this.noCompatMode=r["noCompatMode"]||false;this.condenseFlow=r["condenseFlow"]||false;this.quotingType=r["quotingType"]==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE;this.forceQuotes=r["forceQuotes"]||false;this.replacer=typeof r["replacer"]==="function"?r["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(r,s){var l=common.repeat(" ",s),p=0,d=-1,m="",y,g=r.length;while(p<g){d=r.indexOf("\n",p);if(d===-1){y=r.slice(p);p=g}else{y=r.slice(p,d+1);p=d+1}if(y.length&&y!=="\n")m+=l;m+=y}return m}function generateNextLine(r,s){return"\n"+common.repeat(" ",r.indent*s)}function testImplicitResolving(r,s){var l,p,d;for(l=0,p=r.implicitTypes.length;l<p;l+=1){d=r.implicitTypes[l];if(d.resolve(s)){return true}}return false}function isWhitespace(r){return r===CHAR_SPACE||r===CHAR_TAB}function isPrintable(r){return 32<=r&&r<=126||161<=r&&r<=55295&&r!==8232&&r!==8233||57344<=r&&r<=65533&&r!==CHAR_BOM||65536<=r&&r<=1114111}function isNsCharOrWhitespace(r){return isPrintable(r)&&r!==CHAR_BOM&&r!==CHAR_CARRIAGE_RETURN&&r!==CHAR_LINE_FEED}function isPlainSafe(r,s,l){var p=isNsCharOrWhitespace(r);var d=p&&!isWhitespace(r);return(l?p:p&&r!==CHAR_COMMA&&r!==CHAR_LEFT_SQUARE_BRACKET&&r!==CHAR_RIGHT_SQUARE_BRACKET&&r!==CHAR_LEFT_CURLY_BRACKET&&r!==CHAR_RIGHT_CURLY_BRACKET)&&r!==CHAR_SHARP&&!(s===CHAR_COLON&&!d)||isNsCharOrWhitespace(s)&&!isWhitespace(s)&&r===CHAR_SHARP||s===CHAR_COLON&&d}function isPlainSafeFirst(r){return isPrintable(r)&&r!==CHAR_BOM&&!isWhitespace(r)&&r!==CHAR_MINUS&&r!==CHAR_QUESTION&&r!==CHAR_COLON&&r!==CHAR_COMMA&&r!==CHAR_LEFT_SQUARE_BRACKET&&r!==CHAR_RIGHT_SQUARE_BRACKET&&r!==CHAR_LEFT_CURLY_BRACKET&&r!==CHAR_RIGHT_CURLY_BRACKET&&r!==CHAR_SHARP&&r!==CHAR_AMPERSAND&&r!==CHAR_ASTERISK&&r!==CHAR_EXCLAMATION&&r!==CHAR_VERTICAL_LINE&&r!==CHAR_EQUALS&&r!==CHAR_GREATER_THAN&&r!==CHAR_SINGLE_QUOTE&&r!==CHAR_DOUBLE_QUOTE&&r!==CHAR_PERCENT&&r!==CHAR_COMMERCIAL_AT&&r!==CHAR_GRAVE_ACCENT}function isPlainSafeLast(r){return!isWhitespace(r)&&r!==CHAR_COLON}function codePointAt(r,s){var l=r.charCodeAt(s),p;if(l>=55296&&l<=56319&&s+1<r.length){p=r.charCodeAt(s+1);if(p>=56320&&p<=57343){return(l-55296)*1024+p-56320+65536}}return l}function needIndentIndicator(r){var s=/^\n* /;return s.test(r)}var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(r,s,l,p,d,m,y,g){var T;var b=0;var E=null;var S=false;var _=false;var x=p!==-1;var w=-1;var v=isPlainSafeFirst(codePointAt(r,0))&&isPlainSafeLast(codePointAt(r,r.length-1));if(s||y){for(T=0;T<r.length;b>=65536?T+=2:T++){b=codePointAt(r,T);if(!isPrintable(b)){return STYLE_DOUBLE}v=v&&isPlainSafe(b,E,g);E=b}}else{for(T=0;T<r.length;b>=65536?T+=2:T++){b=codePointAt(r,T);if(b===CHAR_LINE_FEED){S=true;if(x){_=_||T-w-1>p&&r[w+1]!==" ";w=T}}else if(!isPrintable(b)){return STYLE_DOUBLE}v=v&&isPlainSafe(b,E,g);E=b}_=_||x&&(T-w-1>p&&r[w+1]!==" ")}if(!S&&!_){if(v&&!y&&!d(r)){return STYLE_PLAIN}return m===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE}if(l>9&&needIndentIndicator(r)){return STYLE_DOUBLE}if(!y){return _?STYLE_FOLDED:STYLE_LITERAL}return m===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE}function writeScalar(r,s,l,p,d){r.dump=function(){if(s.length===0){return r.quotingType===QUOTING_TYPE_DOUBLE?'""':"''"}if(!r.noCompatMode){if(DEPRECATED_BOOLEANS_SYNTAX.indexOf(s)!==-1||DEPRECATED_BASE60_SYNTAX.test(s)){return r.quotingType===QUOTING_TYPE_DOUBLE?'"'+s+'"':"'"+s+"'"}}var m=r.indent*Math.max(1,l);var y=r.lineWidth===-1?-1:Math.max(Math.min(r.lineWidth,40),r.lineWidth-m);var g=p||r.flowLevel>-1&&l>=r.flowLevel;function testAmbiguity(s){return testImplicitResolving(r,s)}switch(chooseScalarStyle(s,g,r.indent,y,testAmbiguity,r.quotingType,r.forceQuotes&&!p,d)){case STYLE_PLAIN:return s;case STYLE_SINGLE:return"'"+s.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(s,r.indent)+dropEndingNewline(indentString(s,m));case STYLE_FOLDED:return">"+blockHeader(s,r.indent)+dropEndingNewline(indentString(foldString(s,y),m));case STYLE_DOUBLE:return'"'+escapeString(s)+'"';default:throw new exception("impossible error: invalid scalar style")}}()}function blockHeader(r,s){var l=needIndentIndicator(r)?String(s):"";var p=r[r.length-1]==="\n";var d=p&&(r[r.length-2]==="\n"||r==="\n");var m=d?"+":p?"":"-";return l+m+"\n"}function dropEndingNewline(r){return r[r.length-1]==="\n"?r.slice(0,-1):r}function foldString(r,s){var l=/(\n+)([^\n]*)/g;var p=function(){var p=r.indexOf("\n");p=p!==-1?p:r.length;l.lastIndex=p;return foldLine(r.slice(0,p),s)}();var d=r[0]==="\n"||r[0]===" ";var m;var y;while(y=l.exec(r)){var g=y[1],T=y[2];m=T[0]===" ";p+=g+(!d&&!m&&T!==""?"\n":"")+foldLine(T,s);d=m}return p}function foldLine(r,s){if(r===""||r[0]===" ")return r;var l=/ [^ ]/g;var p;var d=0,m,y=0,g=0;var T="";while(p=l.exec(r)){g=p.index;if(g-d>s){m=y>d?y:g;T+="\n"+r.slice(d,m);d=m+1}y=g}T+="\n";if(r.length-d>s&&y>d){T+=r.slice(d,y)+"\n"+r.slice(y+1)}else{T+=r.slice(d)}return T.slice(1)}function escapeString(r){var s="";var l=0;var p;for(var d=0;d<r.length;l>=65536?d+=2:d++){l=codePointAt(r,d);p=ESCAPE_SEQUENCES[l];if(!p&&isPrintable(l)){s+=r[d];if(l>=65536)s+=r[d+1]}else{s+=p||encodeHex(l)}}return s}function writeFlowSequence(r,s,l){var p="",d=r.tag,m,y,g;for(m=0,y=l.length;m<y;m+=1){g=l[m];if(r.replacer){g=r.replacer.call(l,String(m),g)}if(writeNode(r,s,g,false,false)||typeof g==="undefined"&&writeNode(r,s,null,false,false)){if(p!=="")p+=","+(!r.condenseFlow?" ":"");p+=r.dump}}r.tag=d;r.dump="["+p+"]"}function writeBlockSequence(r,s,l,p){var d="",m=r.tag,y,g,T;for(y=0,g=l.length;y<g;y+=1){T=l[y];if(r.replacer){T=r.replacer.call(l,String(y),T)}if(writeNode(r,s+1,T,true,true,false,true)||typeof T==="undefined"&&writeNode(r,s+1,null,true,true,false,true)){if(!p||d!==""){d+=generateNextLine(r,s)}if(r.dump&&CHAR_LINE_FEED===r.dump.charCodeAt(0)){d+="-"}else{d+="- "}d+=r.dump}}r.tag=m;r.dump=d||"[]"}function writeFlowMapping(r,s,l){var p="",d=r.tag,m=Object.keys(l),y,g,T,b,E;for(y=0,g=m.length;y<g;y+=1){E="";if(p!=="")E+=", ";if(r.condenseFlow)E+='"';T=m[y];b=l[T];if(r.replacer){b=r.replacer.call(l,T,b)}if(!writeNode(r,s,T,false,false)){continue}if(r.dump.length>1024)E+="? ";E+=r.dump+(r.condenseFlow?'"':"")+":"+(r.condenseFlow?"":" ");if(!writeNode(r,s,b,false,false)){continue}E+=r.dump;p+=E}r.tag=d;r.dump="{"+p+"}"}function writeBlockMapping(r,s,l,p){var d="",m=r.tag,y=Object.keys(l),g,T,b,E,S,_;if(r.sortKeys===true){y.sort()}else if(typeof r.sortKeys==="function"){y.sort(r.sortKeys)}else if(r.sortKeys){throw new exception("sortKeys must be a boolean or a function")}for(g=0,T=y.length;g<T;g+=1){_="";if(!p||d!==""){_+=generateNextLine(r,s)}b=y[g];E=l[b];if(r.replacer){E=r.replacer.call(l,b,E)}if(!writeNode(r,s+1,b,true,true,true)){continue}S=r.tag!==null&&r.tag!=="?"||r.dump&&r.dump.length>1024;if(S){if(r.dump&&CHAR_LINE_FEED===r.dump.charCodeAt(0)){_+="?"}else{_+="? "}}_+=r.dump;if(S){_+=generateNextLine(r,s)}if(!writeNode(r,s+1,E,true,S)){continue}if(r.dump&&CHAR_LINE_FEED===r.dump.charCodeAt(0)){_+=":"}else{_+=": "}_+=r.dump;d+=_}r.tag=m;r.dump=d||"{}"}function detectType(r,s,l){var p,d,m,y,g,T;d=l?r.explicitTypes:r.implicitTypes;for(m=0,y=d.length;m<y;m+=1){g=d[m];if((g.instanceOf||g.predicate)&&(!g.instanceOf||typeof s==="object"&&s instanceof g.instanceOf)&&(!g.predicate||g.predicate(s))){if(l){if(g.multi&&g.representName){r.tag=g.representName(s)}else{r.tag=g.tag}}else{r.tag="?"}if(g.represent){T=r.styleMap[g.tag]||g.defaultStyle;if(_toString.call(g.represent)==="[object Function]"){p=g.represent(s,T)}else if(_hasOwnProperty.call(g.represent,T)){p=g.represent[T](s,T)}else{throw new exception("!<"+g.tag+'> tag resolver accepts not "'+T+'" style')}r.dump=p}return true}}return false}function writeNode(r,s,l,p,d,m,y){r.tag=null;r.dump=l;if(!detectType(r,l,false)){detectType(r,l,true)}var g=_toString.call(r.dump);var T=p;var b;if(p){p=r.flowLevel<0||r.flowLevel>s}var E=g==="[object Object]"||g==="[object Array]",S,_;if(E){S=r.duplicates.indexOf(l);_=S!==-1}if(r.tag!==null&&r.tag!=="?"||_||r.indent!==2&&s>0){d=false}if(_&&r.usedDuplicates[S]){r.dump="*ref_"+S}else{if(E&&_&&!r.usedDuplicates[S]){r.usedDuplicates[S]=true}if(g==="[object Object]"){if(p&&Object.keys(r.dump).length!==0){writeBlockMapping(r,s,r.dump,d);if(_){r.dump="&ref_"+S+r.dump}}else{writeFlowMapping(r,s,r.dump);if(_){r.dump="&ref_"+S+" "+r.dump}}}else if(g==="[object Array]"){if(p&&r.dump.length!==0){if(r.noArrayIndent&&!y&&s>0){writeBlockSequence(r,s-1,r.dump,d)}else{writeBlockSequence(r,s,r.dump,d)}if(_){r.dump="&ref_"+S+r.dump}}else{writeFlowSequence(r,s,r.dump);if(_){r.dump="&ref_"+S+" "+r.dump}}}else if(g==="[object String]"){if(r.tag!=="?"){writeScalar(r,r.dump,s,m,T)}}else if(g==="[object Undefined]"){return false}else{if(r.skipInvalid)return false;throw new exception("unacceptable kind of an object to dump "+g)}if(r.tag!==null&&r.tag!=="?"){b=encodeURI(r.tag[0]==="!"?r.tag.slice(1):r.tag).replace(/!/g,"%21");if(r.tag[0]==="!"){b="!"+b}else if(b.slice(0,18)==="tag:yaml.org,2002:"){b="!!"+b.slice(18)}else{b="!<"+b+">"}r.dump=b+" "+r.dump}}return true}function getDuplicateReferences(r,s){var l=[],p=[],d,m;inspectNode(r,l,p);for(d=0,m=p.length;d<m;d+=1){s.duplicates.push(l[p[d]])}s.usedDuplicates=new Array(m)}function inspectNode(r,s,l){var p,d,m;if(r!==null&&typeof r==="object"){d=s.indexOf(r);if(d!==-1){if(l.indexOf(d)===-1){l.push(d)}}else{s.push(r);if(Array.isArray(r)){for(d=0,m=r.length;d<m;d+=1){inspectNode(r[d],s,l)}}else{p=Object.keys(r);for(d=0,m=p.length;d<m;d+=1){inspectNode(r[p[d]],s,l)}}}}}function dump$1(r,s){s=s||{};var l=new State(s);if(!l.noRefs)getDuplicateReferences(r,l);var p=r;if(l.replacer){p=l.replacer.call({"":p},"",p)}if(writeNode(l,0,p,true,true))return l.dump+"\n";return""}var dump_1=dump$1;var dumper={dump:dump_1};function renamed(r,s){return function(){throw new Error("Function yaml."+r+" is removed in js-yaml 4. "+"Use yaml."+s+" instead, which is now safe by default.")}}var Type=type;var Schema=schema;var FAILSAFE_SCHEMA=failsafe;var JSON_SCHEMA=json;var CORE_SCHEMA=core;var DEFAULT_SCHEMA=_default;var load=loader.load;var loadAll=loader.loadAll;var dump=dumper.dump;var YAMLException=exception;var types={binary:binary,float:js_yaml_float,map:map,null:_null,pairs:pairs,set:set,timestamp:timestamp,bool:bool,int:js_yaml_int,merge:merge,omap:omap,seq:seq,str:str};var safeLoad=renamed("safeLoad","load");var safeLoadAll=renamed("safeLoadAll","loadAll");var safeDump=renamed("safeDump","dump");var jsYaml={Type:Type,Schema:Schema,FAILSAFE_SCHEMA:FAILSAFE_SCHEMA,JSON_SCHEMA:JSON_SCHEMA,CORE_SCHEMA:CORE_SCHEMA,DEFAULT_SCHEMA:DEFAULT_SCHEMA,load:load,loadAll:loadAll,dump:dump,YAMLException:YAMLException,types:types,safeLoad:safeLoad,safeLoadAll:safeLoadAll,safeDump:safeDump};class LockParser{constructor(r){}static deps2Set(r){const s=new Set;for(const l in r){const p=r[l];for(let r=0;r<p.length;r++){s.add(`${l}@${p[r]}`)}}return s}}class PnpmLockParser extends LockParser{yaml;constructor(r){super(r);this.yaml=load(r)}getDependencies(){const r=Object.create(null);if(!this.yaml.packages){return r}Object.entries(this.yaml.packages).forEach((([s,l])=>{let p,d;if(s.startsWith("/")){const r=s.split("/");p=r[1];d=r[2]}else{const r=s.match(/^(.+?)@(.+)$/);if(r){p=r[1];d=r[2]}}if(p&&d){let s=d.split("(")[0];if(s==null){s=d}if(!r[p]){r[p]=[]}if(r[p].indexOf(s)===-1){r[p].push(s)}}}));return r}}class YarnLockParser extends LockParser{syml;constructor(r){super(r);this.syml=(0,parsers_lib["do"])(r)}static getPackageName(r){r=r.split(",")[0].trim();r=r.split(":")[0].trim();return r.lastIndexOf("@")>0?r.slice(0,r.lastIndexOf("@")):r}getDependencies(){const r=Object.create(null);for(const s in this.syml){const l=this.syml[s];if(l==="__metadata"){continue}const p=YarnLockParser.getPackageName(s);if(!r[p]){r[p]=[]}if(r[p].indexOf(l.version)===-1){r[p].push(l.version)}}return r}}function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return"<environment undetectable>"}function register(r,s,l,p){if(typeof l!=="function"){throw new Error("method for before hook must be a function")}if(!p){p={}}if(Array.isArray(s)){return s.reverse().reduce(((s,l)=>register.bind(null,r,l,s,p)),l)()}return Promise.resolve().then((()=>{if(!r.registry[s]){return l(p)}return r.registry[s].reduce(((r,s)=>s.hook.bind(null,r,p)),l)()}))}function addHook(r,s,l,p){const d=p;if(!r.registry[l]){r.registry[l]=[]}if(s==="before"){p=(r,s)=>Promise.resolve().then(d.bind(null,s)).then(r.bind(null,s))}if(s==="after"){p=(r,s)=>{let l;return Promise.resolve().then(r.bind(null,s)).then((r=>{l=r;return d(l,s)})).then((()=>l))}}if(s==="error"){p=(r,s)=>Promise.resolve().then(r.bind(null,s)).catch((r=>d(r,s)))}r.registry[l].push({hook:p,orig:d})}function removeHook(r,s,l){if(!r.registry[s]){return}const p=r.registry[s].map((r=>r.orig)).indexOf(l);if(p===-1){return}r.registry[s].splice(p,1)}const bind=Function.bind;const bindable=bind.bind(bind);function bindApi(r,s,l){const p=bindable(removeHook,null).apply(null,l?[s,l]:[s]);r.api={remove:p};r.remove=p;["before","error","after","wrap"].forEach((p=>{const d=l?[s,p,l]:[s,p];r[p]=r.api[p]=bindable(addHook,null).apply(null,d)}))}function Singular(){const r=Symbol("Singular");const s={registry:{}};const l=register.bind(null,s,r);bindApi(l,s,r);return l}function Collection(){const r={registry:{}};const s=register.bind(null,r);bindApi(s,r);return s}const before_after_hook={Singular:Singular,Collection:Collection};var VERSION="0.0.0-development";var userAgent=`octokit-endpoint.js/${VERSION} ${getUserAgent()}`;var DEFAULTS={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":userAgent},mediaType:{format:""}};function dist_bundle_lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((s,l)=>{s[l.toLowerCase()]=r[l];return s}),{})}function dist_bundle_isPlainObject(r){if(typeof r!=="object"||r===null)return false;if(Object.prototype.toString.call(r)!=="[object Object]")return false;const s=Object.getPrototypeOf(r);if(s===null)return true;const l=Object.prototype.hasOwnProperty.call(s,"constructor")&&s.constructor;return typeof l==="function"&&l instanceof l&&Function.prototype.call(l)===Function.prototype.call(r)}function mergeDeep(r,s){const l=Object.assign({},r);Object.keys(s).forEach((p=>{if(dist_bundle_isPlainObject(s[p])){if(!(p in r))Object.assign(l,{[p]:s[p]});else l[p]=mergeDeep(r[p],s[p])}else{Object.assign(l,{[p]:s[p]})}}));return l}function removeUndefinedProperties(r){for(const s in r){if(r[s]===void 0){delete r[s]}}return r}function dist_bundle_merge(r,s,l){if(typeof s==="string"){let[r,p]=s.split(" ");l=Object.assign(p?{method:r,url:p}:{url:r},l)}else{l=Object.assign({},s)}l.headers=dist_bundle_lowercaseKeys(l.headers);removeUndefinedProperties(l);removeUndefinedProperties(l.headers);const p=mergeDeep(r||{},l);if(l.url==="/graphql"){if(r&&r.mediaType.previews?.length){p.mediaType.previews=r.mediaType.previews.filter((r=>!p.mediaType.previews.includes(r))).concat(p.mediaType.previews)}p.mediaType.previews=(p.mediaType.previews||[]).map((r=>r.replace(/-preview/,"")))}return p}function addQueryParameters(r,s){const l=/\?/.test(r)?"&":"?";const p=Object.keys(s);if(p.length===0){return r}return r+l+p.map((r=>{if(r==="q"){return"q="+s.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(s[r])}`})).join("&")}var urlVariableRegex=/\{[^{}}]+\}/g;function removeNonChars(r){return r.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function extractUrlVariableNames(r){const s=r.match(urlVariableRegex);if(!s){return[]}return s.map(removeNonChars).reduce(((r,s)=>r.concat(s)),[])}function omit(r,s){const l={__proto__:null};for(const p of Object.keys(r)){if(s.indexOf(p)===-1){l[p]=r[p]}}return l}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,s,l){s=r==="+"||r==="#"?encodeReserved(s):encodeUnreserved(s);if(l){return encodeUnreserved(l)+"="+s}else{return s}}function isDefined(r){return r!==void 0&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,s,l,p){var d=r[l],m=[];if(isDefined(d)&&d!==""){if(typeof d==="string"||typeof d==="number"||typeof d==="boolean"){d=d.toString();if(p&&p!=="*"){d=d.substring(0,parseInt(p,10))}m.push(encodeValue(s,d,isKeyOperator(s)?l:""))}else{if(p==="*"){if(Array.isArray(d)){d.filter(isDefined).forEach((function(r){m.push(encodeValue(s,r,isKeyOperator(s)?l:""))}))}else{Object.keys(d).forEach((function(r){if(isDefined(d[r])){m.push(encodeValue(s,d[r],r))}}))}}else{const r=[];if(Array.isArray(d)){d.filter(isDefined).forEach((function(l){r.push(encodeValue(s,l))}))}else{Object.keys(d).forEach((function(l){if(isDefined(d[l])){r.push(encodeUnreserved(l));r.push(encodeValue(s,d[l].toString()))}}))}if(isKeyOperator(s)){m.push(encodeUnreserved(l)+"="+r.join(","))}else if(r.length!==0){m.push(r.join(","))}}}}else{if(s===";"){if(isDefined(d)){m.push(encodeUnreserved(l))}}else if(d===""&&(s==="&"||s==="?")){m.push(encodeUnreserved(l)+"=")}else if(d===""){m.push("")}}return m}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,s){var l=["+","#",".","/",";","?","&"];r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,p,d){if(p){let r="";const d=[];if(l.indexOf(p.charAt(0))!==-1){r=p.charAt(0);p=p.substr(1)}p.split(/,/g).forEach((function(l){var p=/([^:\*]*)(?::(\d+)|(\*))?/.exec(l);d.push(getValues(s,r,p[1],p[2]||p[3]))}));if(r&&r!=="+"){var m=",";if(r==="?"){m="&"}else if(r!=="#"){m=r}return(d.length!==0?r:"")+d.join(m)}else{return d.join(",")}}else{return encodeReserved(d)}}));if(r==="/"){return r}else{return r.replace(/\/$/,"")}}function parse(r){let s=r.method.toUpperCase();let l=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let p=Object.assign({},r.headers);let d;let m=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const y=extractUrlVariableNames(l);l=parseUrl(l).expand(m);if(!/^http/.test(l)){l=r.baseUrl+l}const g=Object.keys(r).filter((r=>y.includes(r))).concat("baseUrl");const T=omit(m,g);const b=/application\/octet-stream/i.test(p.accept);if(!b){if(r.mediaType.format){p.accept=p.accept.split(/,/).map((s=>s.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(l.endsWith("/graphql")){if(r.mediaType.previews?.length){const s=p.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];p.accept=s.concat(r.mediaType.previews).map((s=>{const l=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${s}-preview${l}`})).join(",")}}}if(["GET","HEAD"].includes(s)){l=addQueryParameters(l,T)}else{if("data"in T){d=T.data}else{if(Object.keys(T).length){d=T}}}if(!p["content-type"]&&typeof d!=="undefined"){p["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(s)&&typeof d==="undefined"){d=""}return Object.assign({method:s,url:l,headers:p},typeof d!=="undefined"?{body:d}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,s,l){return parse(dist_bundle_merge(r,s,l))}function withDefaults(r,s){const l=dist_bundle_merge(r,s);const p=endpointWithDefaults.bind(null,l);return Object.assign(p,{DEFAULTS:l,defaults:withDefaults.bind(null,l),merge:dist_bundle_merge.bind(null,l),parse:parse})}var endpoint=withDefaults(null,DEFAULTS);var fast_content_type_parse=__webpack_require__(4755);class dist_src_RequestError extends Error{name;status;request;response;constructor(r,s,l){super(r);this.name="HttpError";this.status=Number.parseInt(s);if(Number.isNaN(this.status)){this.status=0}if("response"in l){this.response=l.response}const p=Object.assign({},l.request);if(l.request.headers.authorization){p.headers=Object.assign({},l.request.headers,{authorization:l.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}p.url=p.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=p}}var dist_bundle_VERSION="10.0.5";var defaults_default={headers:{"user-agent":`octokit-request.js/${dist_bundle_VERSION} ${getUserAgent()}`}};function request_dist_bundle_isPlainObject(r){if(typeof r!=="object"||r===null)return false;if(Object.prototype.toString.call(r)!=="[object Object]")return false;const s=Object.getPrototypeOf(r);if(s===null)return true;const l=Object.prototype.hasOwnProperty.call(s,"constructor")&&s.constructor;return typeof l==="function"&&l instanceof l&&Function.prototype.call(l)===Function.prototype.call(r)}async function fetchWrapper(r){const s=r.request?.fetch||globalThis.fetch;if(!s){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const l=r.request?.log||console;const p=r.request?.parseSuccessResponseBody!==false;const d=request_dist_bundle_isPlainObject(r.body)||Array.isArray(r.body)?JSON.stringify(r.body):r.body;const m=Object.fromEntries(Object.entries(r.headers).map((([r,s])=>[r,String(s)])));let y;try{y=await s(r.url,{method:r.method,body:d,redirect:r.request?.redirect,headers:m,signal:r.request?.signal,...r.body&&{duplex:"half"}})}catch(s){let l="Unknown Error";if(s instanceof Error){if(s.name==="AbortError"){s.status=500;throw s}l=s.message;if(s.name==="TypeError"&&"cause"in s){if(s.cause instanceof Error){l=s.cause.message}else if(typeof s.cause==="string"){l=s.cause}}}const p=new dist_src_RequestError(l,500,{request:r});p.cause=s;throw p}const g=y.status;const T=y.url;const b={};for(const[r,s]of y.headers){b[r]=s}const E={url:T,status:g,headers:b,data:""};if("deprecation"in b){const s=b.link&&b.link.match(/<([^<>]+)>; rel="deprecation"/);const p=s&&s.pop();l.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${b.sunset}${p?`. See ${p}`:""}`)}if(g===204||g===205){return E}if(r.method==="HEAD"){if(g<400){return E}throw new dist_src_RequestError(y.statusText,g,{response:E,request:r})}if(g===304){E.data=await getResponseData(y);throw new dist_src_RequestError("Not modified",g,{response:E,request:r})}if(g>=400){E.data=await getResponseData(y);throw new dist_src_RequestError(toErrorMessage(E.data),g,{response:E,request:r})}E.data=p?await getResponseData(y):y.body;return E}async function getResponseData(r){const s=r.headers.get("content-type");if(!s){return r.text().catch((()=>""))}const l=(0,fast_content_type_parse.xL)(s);if(isJSONResponse(l)){let s="";try{s=await r.text();return JSON.parse(s)}catch(r){return s}}else if(l.type.startsWith("text/")||l.parameters.charset?.toLowerCase()==="utf-8"){return r.text().catch((()=>""))}else{return r.arrayBuffer().catch((()=>new ArrayBuffer(0)))}}function isJSONResponse(r){return r.type==="application/json"||r.type==="application/scim+json"}function toErrorMessage(r){if(typeof r==="string"){return r}if(r instanceof ArrayBuffer){return"Unknown error"}if("message"in r){const s="documentation_url"in r?` - ${r.documentation_url}`:"";return Array.isArray(r.errors)?`${r.message}: ${r.errors.map((r=>JSON.stringify(r))).join(", ")}${s}`:`${r.message}${s}`}return`Unknown error: ${JSON.stringify(r)}`}function dist_bundle_withDefaults(r,s){const l=r.defaults(s);const newApi=function(r,s){const p=l.merge(r,s);if(!p.request||!p.request.hook){return fetchWrapper(l.parse(p))}const request2=(r,s)=>fetchWrapper(l.parse(l.merge(r,s)));Object.assign(request2,{endpoint:l,defaults:dist_bundle_withDefaults.bind(null,l)});return p.request.hook(request2,p)};return Object.assign(newApi,{endpoint:l,defaults:dist_bundle_withDefaults.bind(null,l)})}var dist_bundle_request=dist_bundle_withDefaults(endpoint,defaults_default);var graphql_dist_bundle_VERSION="0.0.0-development";function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}var GraphqlResponseError=class extends Error{constructor(r,s,l){super(_buildMessageForResponseErrors(l));this.request=r;this.headers=s;this.response=l;this.errors=l.errors;this.data=l.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var NON_VARIABLE_OPTIONS=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var FORBIDDEN_VARIABLE_OPTIONS=["query","method","url"];var GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(r,s,l){if(l){if(typeof s==="string"&&"query"in l){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in l){if(!FORBIDDEN_VARIABLE_OPTIONS.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const p=typeof s==="string"?Object.assign({query:s},l):s;const d=Object.keys(p).reduce(((r,s)=>{if(NON_VARIABLE_OPTIONS.includes(s)){r[s]=p[s];return r}if(!r.variables){r.variables={}}r.variables[s]=p[s];return r}),{});const m=p.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(GHES_V3_SUFFIX_REGEX.test(m)){d.url=m.replace(GHES_V3_SUFFIX_REGEX,"/api/graphql")}return r(d).then((r=>{if(r.data.errors){const s={};for(const l of Object.keys(r.headers)){s[l]=r.headers[l]}throw new GraphqlResponseError(d,s,r.data)}return r.data.data}))}function graphql_dist_bundle_withDefaults(r,s){const l=r.defaults(s);const newApi=(r,s)=>graphql(l,r,s);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,l),endpoint:l.endpoint})}var graphql2=graphql_dist_bundle_withDefaults(dist_bundle_request,{headers:{"user-agent":`octokit-graphql.js/${graphql_dist_bundle_VERSION} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return graphql_dist_bundle_withDefaults(r,{method:"POST",url:"/graphql"})}var b64url="(?:[a-zA-Z0-9_-]+)";var sep="\\.";var jwtRE=new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);var isJWT=jwtRE.test.bind(jwtRE);async function auth(r){const s=isJWT(r);const l=r.startsWith("v1.")||r.startsWith("ghs_");const p=r.startsWith("ghu_");const d=s?"app":l?"installation":p?"user-to-server":"oauth";return{type:"token",token:r,tokenType:d}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,s,l,p){const d=s.endpoint.merge(l,p);d.headers.authorization=withAuthorizationPrefix(r);return s(d)}var createTokenAuth=function createTokenAuth2(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};const version_VERSION="7.0.5";const dist_src_noop=()=>{};const consoleWarn=console.warn.bind(console);const consoleError=console.error.bind(console);function createLogger(r={}){if(typeof r.debug!=="function"){r.debug=dist_src_noop}if(typeof r.info!=="function"){r.info=dist_src_noop}if(typeof r.warn!=="function"){r.warn=consoleWarn}if(typeof r.error!=="function"){r.error=consoleError}return r}const userAgentTrail=`octokit-core.js/${version_VERSION} ${getUserAgent()}`;class dist_src_Octokit{static VERSION=version_VERSION;static defaults(r){const s=class extends(this){constructor(...s){const l=s[0]||{};if(typeof r==="function"){super(r(l));return}super(Object.assign({},r,l,l.userAgent&&r.userAgent?{userAgent:`${l.userAgent} ${r.userAgent}`}:null))}};return s}static plugins=[];static plugin(...r){const s=this.plugins;const l=class extends(this){static plugins=s.concat(r.filter((r=>!s.includes(r))))};return l}constructor(r={}){const s=new before_after_hook.Collection;const l={baseUrl:dist_bundle_request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:s.bind(null,"request")}),mediaType:{previews:[],format:""}};l.headers["user-agent"]=r.userAgent?`${r.userAgent} ${userAgentTrail}`:userAgentTrail;if(r.baseUrl){l.baseUrl=r.baseUrl}if(r.previews){l.mediaType.previews=r.previews}if(r.timeZone){l.headers["time-zone"]=r.timeZone}this.request=dist_bundle_request.defaults(l);this.graphql=withCustomRequest(this.request).defaults(l);this.log=createLogger(r.log);this.hook=s;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const l=createTokenAuth(r.auth);s.wrap("request",l.hook);this.auth=l}}else{const{authStrategy:l,...p}=r;const d=l(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:p},r.auth));s.wrap("request",d.hook);this.auth=d}const p=this.constructor;for(let s=0;s<p.plugins.length;++s){Object.assign(this,p.plugins[s](this,r))}}request;graphql;log;hook;auth}var plugin_paginate_rest_dist_bundle_VERSION="0.0.0-development";function normalizePaginatedListResponse(r){if(!r.data){return{...r,data:[]}}const s=("total_count"in r.data||"total_commits"in r.data)&&!("url"in r.data);if(!s)return r;const l=r.data.incomplete_results;const p=r.data.repository_selection;const d=r.data.total_count;const m=r.data.total_commits;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;delete r.data.total_commits;const y=Object.keys(r.data)[0];const g=r.data[y];r.data=g;if(typeof l!=="undefined"){r.data.incomplete_results=l}if(typeof p!=="undefined"){r.data.repository_selection=p}r.data.total_count=d;r.data.total_commits=m;return r}function iterator(r,s,l){const p=typeof s==="function"?s.endpoint(l):r.request.endpoint(s,l);const d=typeof s==="function"?s:r.request;const m=p.method;const y=p.headers;let g=p.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!g)return{done:true};try{const r=await d({method:m,url:g,headers:y});const s=normalizePaginatedListResponse(r);g=((s.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1];if(!g&&"total_commits"in s.data){const r=new URL(s.url);const l=r.searchParams;const p=parseInt(l.get("page")||"1",10);const d=parseInt(l.get("per_page")||"250",10);if(p*d<s.data.total_commits){l.set("page",String(p+1));g=r.toString()}}return{value:s}}catch(r){if(r.status!==409)throw r;g="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,s,l,p){if(typeof l==="function"){p=l;l=void 0}return gather(r,[],iterator(r,s,l)[Symbol.asyncIterator](),p)}function gather(r,s,l,p){return l.next().then((d=>{if(d.done){return s}let m=false;function done(){m=true}s=s.concat(p?p(d.value,done):d.value.data);if(m){return s}return gather(r,s,l,p)}))}var composePaginateRest=Object.assign(paginate,{iterator:iterator});var paginatingEndpoints=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/code-security/configurations","GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /organizations/{org}/dependabot/repository-access","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/hosted-runners","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/attestations/{subject_digest}","GET /orgs/{org}/blocks","GET /orgs/{org}/campaigns","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/code-security/configurations","GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/metrics","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}","GET /orgs/{org}/insights/api/subject-stats","GET /orgs/{org}/insights/api/user-stats/{user_id}","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/private-registries","GET /orgs/{org}/projects","GET /orgs/{org}/projectsV2","GET /orgs/{org}/projectsV2/{project_number}/fields","GET /orgs/{org}/projectsV2/{project_number}/items","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/rulesets/{ruleset_id}/history","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/settings/network-configurations","GET /orgs/{org}/team/{team_slug}/copilot/metrics","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/attestations/{subject_digest}","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/compare/{basehead}","GET /repos/{owner}/{repo}/compare/{base}...{head}","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{user_id}/projectsV2/{project_number}/fields","GET /users/{user_id}/projectsV2/{project_number}/items","GET /users/{username}/attestations/{subject_digest}","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/projectsV2","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return paginatingEndpoints.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=plugin_paginate_rest_dist_bundle_VERSION;var generateMessage=(r,s)=>`The cursor at "${r.join(",")}" did not change its value "${s}" after a page transition. Please make sure your that your query is set up correctly.`;var MissingCursorChange=class extends Error{constructor(r,s){super(generateMessage(r.pathInQuery,s));this.pageInfo=r;this.cursorValue=s;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="MissingCursorChangeError"};var MissingPageInfo=class extends Error{constructor(r){super(`No pageInfo property found in response. Please make sure to specify the pageInfo in your query. Response-Data: ${JSON.stringify(r,null,2)}`);this.response=r;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="MissingPageInfo"};var dist_bundle_isObject=r=>Object.prototype.toString.call(r)==="[object Object]";function findPaginatedResourcePath(r){const s=deepFindPathToProperty(r,"pageInfo");if(s.length===0){throw new MissingPageInfo(r)}return s}var deepFindPathToProperty=(r,s,l=[])=>{for(const p of Object.keys(r)){const d=[...l,p];const m=r[p];if(dist_bundle_isObject(m)){if(m.hasOwnProperty(s)){return d}const r=deepFindPathToProperty(m,s,d);if(r.length>0){return r}}}return[]};var get=(r,s)=>s.reduce(((r,s)=>r[s]),r);var dist_bundle_set=(r,s,l)=>{const p=s[s.length-1];const d=[...s].slice(0,-1);const m=get(r,d);if(typeof l==="function"){m[p]=l(m[p])}else{m[p]=l}};var extractPageInfos=r=>{const s=findPaginatedResourcePath(r);return{pathInQuery:s,pageInfo:get(r,[...s,"pageInfo"])}};var isForwardSearch=r=>r.hasOwnProperty("hasNextPage");var getCursorFrom=r=>isForwardSearch(r)?r.endCursor:r.startCursor;var hasAnotherPage=r=>isForwardSearch(r)?r.hasNextPage:r.hasPreviousPage;var createIterator=r=>(s,l={})=>{let p=true;let d={...l};return{[Symbol.asyncIterator]:()=>({async next(){if(!p)return{done:true,value:{}};const l=await r.graphql(s,d);const m=extractPageInfos(l);const y=getCursorFrom(m.pageInfo);p=hasAnotherPage(m.pageInfo);if(p&&y===d.cursor){throw new MissingCursorChange(m,y)}d={...d,cursor:y};return{done:false,value:l}}})}};var mergeResponses=(r,s)=>{if(Object.keys(r).length===0){return Object.assign(r,s)}const l=findPaginatedResourcePath(r);const p=[...l,"nodes"];const d=get(s,p);if(d){dist_bundle_set(r,p,(r=>[...r,...d]))}const m=[...l,"edges"];const y=get(s,m);if(y){dist_bundle_set(r,m,(r=>[...r,...y]))}const g=[...l,"pageInfo"];dist_bundle_set(r,g,get(s,g));return r};var createPaginate=r=>{const s=createIterator(r);return async(r,l={})=>{let p={};for await(const d of s(r,l)){p=mergeResponses(p,d)}return p}};var plugin_paginate_graphql_dist_bundle_VERSION="0.0.0-development";function paginateGraphQL(r){return{graphql:Object.assign(r.graphql,{paginate:Object.assign(createPaginate(r),{iterator:createIterator(r)})})}}const dist_src_version_VERSION="16.1.0";const Endpoints={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{user_id}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{user_id}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{user_id}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{user_id}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{user_id}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{user_id}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues",{},{deprecated:"octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"}],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var endpoints_default=Endpoints;const endpointMethodsMap=new Map;for(const[r,s]of Object.entries(endpoints_default)){for(const[l,p]of Object.entries(s)){const[s,d,m]=p;const[y,g]=s.split(/ /);const T=Object.assign({method:y,url:g},d);if(!endpointMethodsMap.has(r)){endpointMethodsMap.set(r,new Map)}endpointMethodsMap.get(r).set(l,{scope:r,methodName:l,endpointDefaults:T,decorations:m})}}const handler={has({scope:r},s){return endpointMethodsMap.get(r).has(s)},getOwnPropertyDescriptor(r,s){return{value:this.get(r,s),configurable:true,writable:true,enumerable:true}},defineProperty(r,s,l){Object.defineProperty(r.cache,s,l);return true},deleteProperty(r,s){delete r.cache[s];return true},ownKeys({scope:r}){return[...endpointMethodsMap.get(r).keys()]},set(r,s,l){return r.cache[s]=l},get({octokit:r,scope:s,cache:l},p){if(l[p]){return l[p]}const d=endpointMethodsMap.get(s).get(p);if(!d){return void 0}const{endpointDefaults:m,decorations:y}=d;if(y){l[p]=decorate(r,s,p,m,y)}else{l[p]=r.request.defaults(m)}return l[p]}};function endpointsToMethods(r){const s={};for(const l of endpointMethodsMap.keys()){s[l]=new Proxy({octokit:r,scope:l,cache:{}},handler)}return s}function decorate(r,s,l,p,d){const m=r.request.defaults(p);function withDecorations(...p){let y=m.endpoint.merge(...p);if(d.mapToData){y=Object.assign({},y,{data:y[d.mapToData],[d.mapToData]:void 0});return m(y)}if(d.renamed){const[p,m]=d.renamed;r.log.warn(`octokit.${s}.${l}() has been renamed to octokit.${p}.${m}()`)}if(d.deprecated){r.log.warn(d.deprecated)}if(d.renamedParameters){const y=m.endpoint.merge(...p);for(const[p,m]of Object.entries(d.renamedParameters)){if(p in y){r.log.warn(`"${p}" parameter is deprecated for "octokit.${s}.${l}()". Use "${m}" instead`);if(!(m in y)){y[m]=y[p]}delete y[p]}}return m(y)}return m(...p)}return Object.assign(withDecorations,m)}function restEndpointMethods(r){const s=endpointsToMethods(r);return{rest:s}}restEndpointMethods.VERSION=dist_src_version_VERSION;function legacyRestEndpointMethods(r){const s=endpointsToMethods(r);return{...s,rest:s}}legacyRestEndpointMethods.VERSION=dist_src_version_VERSION;var light=__webpack_require__(9940);var plugin_retry_dist_bundle_VERSION="0.0.0-development";async function errorRequest(r,s,l,p){if(!l.request||!l.request.request){throw l}if(l.status>=400&&!r.doNotRetry.includes(l.status)){const d=p.request.retries!=null?p.request.retries:r.retries;const m=Math.pow((p.request.retryCount||0)+1,2);throw s.retry.retryRequest(l,d,m)}throw l}async function wrapRequest(r,s,l,p){const d=new light;d.on("failed",(function(s,l){const d=~~s.request.request.retries;const m=~~s.request.request.retryAfter;p.request.retryCount=l.retryCount+1;if(d>l.retryCount){return m*r.retryAfterBaseValue}}));return d.schedule(requestWithGraphqlErrorHandling.bind(null,r,s,l),p)}async function requestWithGraphqlErrorHandling(r,s,l,p){const d=await l(l,p);if(d.data&&d.data.errors&&d.data.errors.length>0&&/Something went wrong while executing your query/.test(d.data.errors[0].message)){const l=new dist_src_RequestError(d.data.errors[0].message,500,{request:p,response:d});return errorRequest(r,s,l,p)}return d}function retry(r,s){const l=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},s.retry);if(l.enabled){r.hook.error("request",errorRequest.bind(null,l,r));r.hook.wrap("request",wrapRequest.bind(null,l,r))}return{retry:{retryRequest:(r,s,l)=>{r.request.request=Object.assign({},r.request.request,{retries:s,retryAfter:l});return r}}}}retry.VERSION=plugin_retry_dist_bundle_VERSION;var plugin_throttling_dist_bundle_VERSION="0.0.0-development";var dist_bundle_noop=()=>Promise.resolve();function dist_bundle_wrapRequest(r,s,l){return r.retryLimiter.schedule(doRequest,r,s,l)}async function doRequest(r,s,l){const{pathname:p}=new URL(l.url,"http://github.test");const d=isAuthRequest(l.method,p);const m=!d&&l.method!=="GET"&&l.method!=="HEAD";const y=l.method==="GET"&&p.startsWith("/search/");const g=p.startsWith("/graphql");const T=~~s.retryCount;const b=T>0?{priority:0,weight:0}:{};if(r.clustering){b.expiration=1e3*60}if(m||g){await r.write.key(r.id).schedule(b,dist_bundle_noop)}if(m&&r.triggersNotification(p)){await r.notifications.key(r.id).schedule(b,dist_bundle_noop)}if(y){await r.search.key(r.id).schedule(b,dist_bundle_noop)}const E=(d?r.auth:r.global).key(r.id).schedule(b,s,l);if(g){const r=await E;if(r.data.errors!=null&&r.data.errors.some((r=>r.type==="RATE_LIMITED"))){const s=Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:r,data:r.data});throw s}}return E}function isAuthRequest(r,s){return r==="PATCH"&&/^\/applications\/[^/]+\/token\/scoped$/.test(s)||r==="POST"&&(/^\/applications\/[^/]+\/token$/.test(s)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(s)||s==="/login/oauth/access_token")}var triggers_notification_paths_default=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/issues/{issue_number}/sub_issue","/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function routeMatcher(r){const s=r.map((r=>r.split("/").map((r=>r.startsWith("{")?"(?:.+?)":r)).join("/")));const l=`^(?:${s.map((r=>`(?:${r})`)).join("|")})[^/]*$`;return new RegExp(l,"i")}var regex=routeMatcher(triggers_notification_paths_default);var triggersNotification=regex.test.bind(regex);var groups={};var createGroups=function(r,s){groups.global=new r.Group({id:"octokit-global",maxConcurrent:10,...s});groups.auth=new r.Group({id:"octokit-auth",maxConcurrent:1,...s});groups.search=new r.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...s});groups.write=new r.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...s});groups.notifications=new r.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...s})};function throttling(r,s){const{enabled:l=true,Bottleneck:p=light,id:d="no-id",timeout:m=1e3*60*2,connection:y}=s.throttle||{};if(!l){return{}}const g={timeout:m};if(typeof y!=="undefined"){g.connection=y}if(groups.global==null){createGroups(p,g)}const T=Object.assign({clustering:y!=null,triggersNotification:triggersNotification,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new p,id:d,...groups},s.throttle);if(typeof T.onSecondaryRateLimit!=="function"||typeof T.onRateLimit!=="function"){throw new Error(`octokit/plugin-throttling error:\n You must pass the onSecondaryRateLimit and onRateLimit error handlers.\n See https://octokit.github.io/rest.js/#throttling\n\n const octokit = new Octokit({\n throttle: {\n onSecondaryRateLimit: (retryAfter, options) => {/* ... */},\n onRateLimit: (retryAfter, options) => {/* ... */}\n }\n })\n `)}const b={};const E=new p.Events(b);b.on("secondary-limit",T.onSecondaryRateLimit);b.on("rate-limit",T.onRateLimit);b.on("error",(s=>r.log.warn("Error in throttling-plugin limit handler",s)));T.retryLimiter.on("failed",(async function(s,l){const[p,d,m]=l.args;const{pathname:y}=new URL(m.url,"http://github.test");const g=y.startsWith("/graphql")&&s.status!==401;if(!(g||s.status===403||s.status===429)){return}const T=~~d.retryCount;d.retryCount=T;m.request.retryCount=T;const{wantRetry:b,retryAfter:S=0}=await async function(){if(/\bsecondary rate\b/i.test(s.message)){const l=Number(s.response.headers["retry-after"])||p.fallbackSecondaryRateRetryAfter;const d=await E.trigger("secondary-limit",l,m,r,T);return{wantRetry:d,retryAfter:l}}if(s.response.headers!=null&&s.response.headers["x-ratelimit-remaining"]==="0"||(s.response.data?.errors??[]).some((r=>r.type==="RATE_LIMITED"))){const l=new Date(~~s.response.headers["x-ratelimit-reset"]*1e3).getTime();const p=Math.max(Math.ceil((l-Date.now())/1e3)+1,0);const d=await E.trigger("rate-limit",p,m,r,T);return{wantRetry:d,retryAfter:p}}return{}}();if(b){d.retryCount++;return S*p.retryAfterBaseValue}}));r.hook.wrap("request",dist_bundle_wrapRequest.bind(null,T));return{}}throttling.VERSION=plugin_throttling_dist_bundle_VERSION;throttling.triggersNotification=triggersNotification;function oauthAuthorizationUrl(r){const s=r.clientType||"oauth-app";const l=r.baseUrl||"https://github.com";const p={clientType:s,allowSignup:r.allowSignup===false?false:true,clientId:r.clientId,login:r.login||null,redirectUrl:r.redirectUrl||null,state:r.state||Math.random().toString(36).substr(2),url:""};if(s==="oauth-app"){const s="scopes"in r?r.scopes:[];p.scopes=typeof s==="string"?s.split(/[,\s]+/).filter(Boolean):s}p.url=urlBuilderAuthorize(`${l}/login/oauth/authorize`,p);return p}function urlBuilderAuthorize(r,s){const l={allowSignup:"allow_signup",clientId:"client_id",login:"login",redirectUrl:"redirect_uri",scopes:"scope",state:"state"};let p=r;Object.keys(l).filter((r=>s[r]!==null)).filter((r=>{if(r!=="scopes")return true;if(s.clientType==="github-app")return false;return!Array.isArray(s[r])||s[r].length>0})).map((r=>[l[r],`${s[r]}`])).forEach((([r,s],l)=>{p+=l===0?`?`:"&";p+=`${r}=${encodeURIComponent(s)}`}));return p}var oauth_methods_dist_bundle_VERSION="0.0.0-development";function requestToOAuthBaseUrl(r){const s=r.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(s.baseUrl)?"https://github.com":s.baseUrl.replace("/api/v3","")}async function oauthRequest(r,s,l){const p={baseUrl:requestToOAuthBaseUrl(r),headers:{accept:"application/json"},...l};const d=await r(s,p);if("error"in d.data){const l=new dist_src_RequestError(`${d.data.error_description} (${d.data.error}, ${d.data.error_uri})`,400,{request:r.endpoint.merge(s,p)});l.response=d;throw l}return d}function getWebFlowAuthorizationUrl({request:r=dist_bundle_request,...s}){const l=requestToOAuthBaseUrl(r);return oauthAuthorizationUrl({...s,baseUrl:l})}async function exchangeWebFlowCode(r){const s=r.request||dist_bundle_request;const l=await oauthRequest(s,"POST /login/oauth/access_token",{client_id:r.clientId,client_secret:r.clientSecret,code:r.code,redirect_uri:r.redirectUrl});const p={clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:l.data.access_token,scopes:l.data.scope.split(/\s+/).filter(Boolean)};if(r.clientType==="github-app"){if("refresh_token"in l.data){const r=new Date(l.headers.date).getTime();p.refreshToken=l.data.refresh_token,p.expiresAt=toTimestamp(r,l.data.expires_in),p.refreshTokenExpiresAt=toTimestamp(r,l.data.refresh_token_expires_in)}delete p.scopes}return{...l,authentication:p}}function toTimestamp(r,s){return new Date(r+s*1e3).toISOString()}async function createDeviceCode(r){const s=r.request||dist_bundle_request;const l={client_id:r.clientId};if("scopes"in r&&Array.isArray(r.scopes)){l.scope=r.scopes.join(" ")}return oauthRequest(s,"POST /login/device/code",l)}async function exchangeDeviceCode(r){const s=r.request||dist_bundle_request;const l=await oauthRequest(s,"POST /login/oauth/access_token",{client_id:r.clientId,device_code:r.code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"});const p={clientType:r.clientType,clientId:r.clientId,token:l.data.access_token,scopes:l.data.scope.split(/\s+/).filter(Boolean)};if("clientSecret"in r){p.clientSecret=r.clientSecret}if(r.clientType==="github-app"){if("refresh_token"in l.data){const r=new Date(l.headers.date).getTime();p.refreshToken=l.data.refresh_token,p.expiresAt=toTimestamp2(r,l.data.expires_in),p.refreshTokenExpiresAt=toTimestamp2(r,l.data.refresh_token_expires_in)}delete p.scopes}return{...l,authentication:p}}function toTimestamp2(r,s){return new Date(r+s*1e3).toISOString()}async function checkToken(r){const s=r.request||dist_bundle_request;const l=await s("POST /applications/{client_id}/token",{headers:{authorization:`basic ${btoa(`${r.clientId}:${r.clientSecret}`)}`},client_id:r.clientId,access_token:r.token});const p={clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:r.token,scopes:l.data.scopes};if(l.data.expires_at)p.expiresAt=l.data.expires_at;if(r.clientType==="github-app"){delete p.scopes}return{...l,authentication:p}}async function refreshToken(r){const s=r.request||dist_bundle_request;const l=await oauthRequest(s,"POST /login/oauth/access_token",{client_id:r.clientId,client_secret:r.clientSecret,grant_type:"refresh_token",refresh_token:r.refreshToken});const p=new Date(l.headers.date).getTime();const d={clientType:"github-app",clientId:r.clientId,clientSecret:r.clientSecret,token:l.data.access_token,refreshToken:l.data.refresh_token,expiresAt:toTimestamp3(p,l.data.expires_in),refreshTokenExpiresAt:toTimestamp3(p,l.data.refresh_token_expires_in)};return{...l,authentication:d}}function toTimestamp3(r,s){return new Date(r+s*1e3).toISOString()}async function scopeToken(r){const{request:s,clientType:l,clientId:p,clientSecret:d,token:m,...y}=r;const g=r.request||dist_bundle_request;const T=await g("POST /applications/{client_id}/token/scoped",{headers:{authorization:`basic ${btoa(`${p}:${d}`)}`},client_id:p,access_token:m,...y});const b=Object.assign({clientType:l,clientId:p,clientSecret:d,token:T.data.token},T.data.expires_at?{expiresAt:T.data.expires_at}:{});return{...T,authentication:b}}async function resetToken(r){const s=r.request||dist_bundle_request;const l=btoa(`${r.clientId}:${r.clientSecret}`);const p=await s("PATCH /applications/{client_id}/token",{headers:{authorization:`basic ${l}`},client_id:r.clientId,access_token:r.token});const d={clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:p.data.token,scopes:p.data.scopes};if(p.data.expires_at)d.expiresAt=p.data.expires_at;if(r.clientType==="github-app"){delete d.scopes}return{...p,authentication:d}}async function deleteToken(r){const s=r.request||dist_bundle_request;const l=btoa(`${r.clientId}:${r.clientSecret}`);return s("DELETE /applications/{client_id}/token",{headers:{authorization:`basic ${l}`},client_id:r.clientId,access_token:r.token})}async function deleteAuthorization(r){const s=r.request||dist_bundle_request;const l=btoa(`${r.clientId}:${r.clientSecret}`);return s("DELETE /applications/{client_id}/grant",{headers:{authorization:`basic ${l}`},client_id:r.clientId,access_token:r.token})}async function getOAuthAccessToken(r,s){const l=getCachedAuthentication(r,s.auth);if(l)return l;const{data:p}=await createDeviceCode({clientType:r.clientType,clientId:r.clientId,request:s.request||r.request,scopes:s.auth.scopes||r.scopes});await r.onVerification(p);const d=await waitForAccessToken(s.request||r.request,r.clientId,r.clientType,p);r.authentication=d;return d}function getCachedAuthentication(r,s){if(s.refresh===true)return false;if(!r.authentication)return false;if(r.clientType==="github-app"){return r.authentication}const l=r.authentication;const p=("scopes"in s&&s.scopes||r.scopes).join(" ");const d=l.scopes.join(" ");return p===d?l:false}async function wait(r){await new Promise((s=>setTimeout(s,r*1e3)))}async function waitForAccessToken(r,s,l,p){try{const d={clientId:s,request:r,code:p.device_code};const{authentication:m}=l==="oauth-app"?await exchangeDeviceCode({...d,clientType:"oauth-app"}):await exchangeDeviceCode({...d,clientType:"github-app"});return{type:"token",tokenType:"oauth",...m}}catch(d){if(!d.response)throw d;const m=d.response.data.error;if(m==="authorization_pending"){await wait(p.interval);return waitForAccessToken(r,s,l,p)}if(m==="slow_down"){await wait(p.interval+7);return waitForAccessToken(r,s,l,p)}throw d}}async function dist_bundle_auth(r,s){return getOAuthAccessToken(r,{auth:s})}async function dist_bundle_hook(r,s,l,p){let d=s.endpoint.merge(l,p);if(/\/login\/(oauth\/access_token|device\/code)$/.test(d.url)){return s(d)}const{token:m}=await getOAuthAccessToken(r,{request:s,auth:{type:"oauth"}});d.headers.authorization=`token ${m}`;return s(d)}var auth_oauth_device_dist_bundle_VERSION="0.0.0-development";function createOAuthDeviceAuth(r){const s=r.request||dist_bundle_request.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/${auth_oauth_device_dist_bundle_VERSION} ${getUserAgent()}`}});const{request:l=s,...p}=r;const d=r.clientType==="github-app"?{...p,clientType:"github-app",request:l}:{...p,clientType:"oauth-app",request:l,scopes:r.scopes||[]};if(!r.clientId){throw new Error('[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)')}if(!r.onVerification){throw new Error('[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)')}return Object.assign(dist_bundle_auth.bind(null,d),{hook:dist_bundle_hook.bind(null,d)})}var auth_oauth_user_dist_bundle_VERSION="0.0.0-development";async function getAuthentication(r){if("code"in r.strategyOptions){const{authentication:s}=await exchangeWebFlowCode({clientId:r.clientId,clientSecret:r.clientSecret,clientType:r.clientType,onTokenCreated:r.onTokenCreated,...r.strategyOptions,request:r.request});return{type:"token",tokenType:"oauth",...s}}if("onVerification"in r.strategyOptions){const s=createOAuthDeviceAuth({clientType:r.clientType,clientId:r.clientId,onTokenCreated:r.onTokenCreated,...r.strategyOptions,request:r.request});const l=await s({type:"oauth"});return{clientSecret:r.clientSecret,...l}}if("token"in r.strategyOptions){return{type:"token",tokenType:"oauth",clientId:r.clientId,clientSecret:r.clientSecret,clientType:r.clientType,onTokenCreated:r.onTokenCreated,...r.strategyOptions}}throw new Error("[@octokit/auth-oauth-user] Invalid strategy options")}async function auth_oauth_user_dist_bundle_auth(r,s={}){if(!r.authentication){r.authentication=r.clientType==="oauth-app"?await getAuthentication(r):await getAuthentication(r)}if(r.authentication.invalid){throw new Error("[@octokit/auth-oauth-user] Token is invalid")}const l=r.authentication;if("expiresAt"in l){if(s.type==="refresh"||new Date(l.expiresAt)<new Date){const{authentication:s}=await refreshToken({clientType:"github-app",clientId:r.clientId,clientSecret:r.clientSecret,refreshToken:l.refreshToken,request:r.request});r.authentication={tokenType:"oauth",type:"token",...s}}}if(s.type==="refresh"){if(r.clientType==="oauth-app"){throw new Error("[@octokit/auth-oauth-user] OAuth Apps do not support expiring tokens")}if(!l.hasOwnProperty("expiresAt")){throw new Error("[@octokit/auth-oauth-user] Refresh token missing")}await(r.onTokenCreated?.(r.authentication,{type:s.type}))}if(s.type==="check"||s.type==="reset"){const l=s.type==="check"?checkToken:resetToken;try{const{authentication:p}=await l({clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:r.authentication.token,request:r.request});r.authentication={tokenType:"oauth",type:"token",...p};if(s.type==="reset"){await(r.onTokenCreated?.(r.authentication,{type:s.type}))}return r.authentication}catch(s){if(s.status===404){s.message="[@octokit/auth-oauth-user] Token is invalid";r.authentication.invalid=true}throw s}}if(s.type==="delete"||s.type==="deleteAuthorization"){const l=s.type==="delete"?deleteToken:deleteAuthorization;try{await l({clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:r.authentication.token,request:r.request})}catch(r){if(r.status!==404)throw r}r.authentication.invalid=true;return r.authentication}return r.authentication}var ROUTES_REQUIRING_BASIC_AUTH=/\/applications\/[^/]+\/(token|grant)s?/;function requiresBasicAuth(r){return r&&ROUTES_REQUIRING_BASIC_AUTH.test(r)}async function auth_oauth_user_dist_bundle_hook(r,s,l,p={}){const d=s.endpoint.merge(l,p);if(/\/login\/(oauth\/access_token|device\/code)$/.test(d.url)){return s(d)}if(requiresBasicAuth(d.url)){const l=btoa(`${r.clientId}:${r.clientSecret}`);d.headers.authorization=`basic ${l}`;return s(d)}const{token:m}=r.clientType==="oauth-app"?await auth_oauth_user_dist_bundle_auth({...r,request:s}):await auth_oauth_user_dist_bundle_auth({...r,request:s});d.headers.authorization="token "+m;return s(d)}function createOAuthUserAuth({clientId:r,clientSecret:s,clientType:l="oauth-app",request:p=dist_bundle_request.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${auth_oauth_user_dist_bundle_VERSION} ${getUserAgent()}`}}),onTokenCreated:d,...m}){const y=Object.assign({clientType:l,clientId:r,clientSecret:s,onTokenCreated:d,strategyOptions:m,request:p});return Object.assign(auth_oauth_user_dist_bundle_auth.bind(null,y),{hook:auth_oauth_user_dist_bundle_hook.bind(null,y)})}createOAuthUserAuth.VERSION=auth_oauth_user_dist_bundle_VERSION;async function auth_oauth_app_dist_bundle_auth(r,s){if(s.type==="oauth-app"){return{type:"oauth-app",clientId:r.clientId,clientSecret:r.clientSecret,clientType:r.clientType,headers:{authorization:`basic ${btoa(`${r.clientId}:${r.clientSecret}`)}`}}}if("factory"in s){const{type:l,...p}={...s,...r};return s.factory(p)}const l={clientId:r.clientId,clientSecret:r.clientSecret,request:r.request,...s};const p=r.clientType==="oauth-app"?await createOAuthUserAuth({...l,clientType:r.clientType}):await createOAuthUserAuth({...l,clientType:r.clientType});return p()}async function auth_oauth_app_dist_bundle_hook(r,s,l,p){let d=s.endpoint.merge(l,p);if(/\/login\/(oauth\/access_token|device\/code)$/.test(d.url)){return s(d)}if(r.clientType==="github-app"&&!requiresBasicAuth(d.url)){throw new Error(`[@octokit/auth-oauth-app] GitHub Apps cannot use their client ID/secret for basic authentication for endpoints other than "/applications/{client_id}/**". "${d.method} ${d.url}" is not supported.`)}const m=btoa(`${r.clientId}:${r.clientSecret}`);d.headers.authorization=`basic ${m}`;try{return await s(d)}catch(r){if(r.status!==401)throw r;r.message=`[@octokit/auth-oauth-app] "${d.method} ${d.url}" does not support clientId/clientSecret basic authentication.`;throw r}}var auth_oauth_app_dist_bundle_VERSION="0.0.0-development";function createOAuthAppAuth(r){const s=Object.assign({request:dist_bundle_request.defaults({headers:{"user-agent":`octokit-auth-oauth-app.js/${auth_oauth_app_dist_bundle_VERSION} ${getUserAgent()}`}}),clientType:"oauth-app"},r);return Object.assign(auth_oauth_app_dist_bundle_auth.bind(null,s),{hook:auth_oauth_app_dist_bundle_hook.bind(null,s)})}function isPkcs1(r){return r.includes("-----BEGIN RSA PRIVATE KEY-----")}function isOpenSsh(r){return r.includes("-----BEGIN OPENSSH PRIVATE KEY-----")}function string2ArrayBuffer(r){const s=new ArrayBuffer(r.length);const l=new Uint8Array(s);for(let s=0,p=r.length;s<p;s++){l[s]=r.charCodeAt(s)}return s}function getDERfromPEM(r){const s=r.trim().split("\n").slice(1,-1).join("");const l=atob(s);return string2ArrayBuffer(l)}function getEncodedMessage(r,s){return`${base64encodeJSON(r)}.${base64encodeJSON(s)}`}function base64encode(r){var s="";var l=new Uint8Array(r);var p=l.byteLength;for(var d=0;d<p;d++){s+=String.fromCharCode(l[d])}return fromBase64(btoa(s))}function fromBase64(r){return r.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function base64encodeJSON(r){return fromBase64(btoa(JSON.stringify(r)))}function convertPrivateKey(r){if(!isPkcs1(r))return r;return(0,external_node_crypto_namespaceObject.createPrivateKey)(r).export({type:"pkcs8",format:"pem"})}async function getToken({privateKey:r,payload:s}){const l=convertPrivateKey(r);if(isPkcs1(l)){throw new Error("[universal-github-app-jwt] Private Key is in PKCS#1 format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats")}if(isOpenSsh(l)){throw new Error("[universal-github-app-jwt] Private Key is in OpenSSH format, but only PKCS#8 is supported. See https://github.com/gr2m/universal-github-app-jwt#private-key-formats")}const p={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};const d={alg:"RS256",typ:"JWT"};const m=getDERfromPEM(l);const y=await external_node_crypto_namespaceObject.subtle.importKey("pkcs8",m,p,false,["sign"]);const g=getEncodedMessage(d,s);const T=string2ArrayBuffer(g);const b=await external_node_crypto_namespaceObject.subtle.sign(p.name,y,T);const E=base64encode(b);return`${g}.${E}`}async function githubAppJwt({id:r,privateKey:s,now:l=Math.floor(Date.now()/1e3)}){const p=s.replace(/\\n/g,"\n");const d=l-30;const m=d+60*10;const y={iat:d,exp:m,iss:r};const g=await getToken({privateKey:p,payload:y});return{appId:r,expiration:m,token:g}}
|
|
16
|
+
/**
|
|
17
|
+
* toad-cache
|
|
18
|
+
*
|
|
19
|
+
* @copyright 2024 Igor Savin <kibertoad@gmail.com>
|
|
20
|
+
* @license MIT
|
|
21
|
+
* @version 3.7.0
|
|
22
|
+
*/
|
|
23
|
+
class FifoMap{constructor(r=1e3,s=0){if(isNaN(r)||r<0){throw new Error("Invalid max value")}if(isNaN(s)||s<0){throw new Error("Invalid ttl value")}this.first=null;this.items=new Map;this.last=null;this.max=r;this.ttl=s}get size(){return this.items.size}clear(){this.items=new Map;this.first=null;this.last=null}delete(r){if(this.items.has(r)){const s=this.items.get(r);this.items.delete(r);if(s.prev!==null){s.prev.next=s.next}if(s.next!==null){s.next.prev=s.prev}if(this.first===s){this.first=s.next}if(this.last===s){this.last=s.prev}}}deleteMany(r){for(var s=0;s<r.length;s++){this.delete(r[s])}}evict(){if(this.size>0){const r=this.first;this.items.delete(r.key);if(this.size===0){this.first=null;this.last=null}else{this.first=r.next;this.first.prev=null}}}expiresAt(r){if(this.items.has(r)){return this.items.get(r).expiry}}get(r){if(this.items.has(r)){const s=this.items.get(r);if(this.ttl>0&&s.expiry<=Date.now()){this.delete(r);return}return s.value}}getMany(r){const s=[];for(var l=0;l<r.length;l++){s.push(this.get(r[l]))}return s}keys(){return this.items.keys()}set(r,s){if(this.items.has(r)){const l=this.items.get(r);l.value=s;l.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;return}if(this.max>0&&this.size===this.max){this.evict()}const l={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:r,prev:this.last,next:null,value:s};this.items.set(r,l);if(this.size===1){this.first=l}else{this.last.next=l}this.last=l}}class LruMap{constructor(r=1e3,s=0){if(isNaN(r)||r<0){throw new Error("Invalid max value")}if(isNaN(s)||s<0){throw new Error("Invalid ttl value")}this.first=null;this.items=new Map;this.last=null;this.max=r;this.ttl=s}get size(){return this.items.size}bumpLru(r){if(this.last===r){return}const s=this.last;const l=r.next;const p=r.prev;if(this.first===r){this.first=l}r.next=null;r.prev=s;s.next=r;if(p!==null){p.next=l}if(l!==null){l.prev=p}this.last=r}clear(){this.items=new Map;this.first=null;this.last=null}delete(r){if(this.items.has(r)){const s=this.items.get(r);this.items.delete(r);if(s.prev!==null){s.prev.next=s.next}if(s.next!==null){s.next.prev=s.prev}if(this.first===s){this.first=s.next}if(this.last===s){this.last=s.prev}}}deleteMany(r){for(var s=0;s<r.length;s++){this.delete(r[s])}}evict(){if(this.size>0){const r=this.first;this.items.delete(r.key);if(this.size===0){this.first=null;this.last=null}else{this.first=r.next;this.first.prev=null}}}expiresAt(r){if(this.items.has(r)){return this.items.get(r).expiry}}get(r){if(this.items.has(r)){const s=this.items.get(r);if(this.ttl>0&&s.expiry<=Date.now()){this.delete(r);return}this.bumpLru(s);return s.value}}getMany(r){const s=[];for(var l=0;l<r.length;l++){s.push(this.get(r[l]))}return s}keys(){return this.items.keys()}set(r,s){if(this.items.has(r)){const l=this.items.get(r);l.value=s;l.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;if(this.last!==l){this.bumpLru(l)}return}if(this.max>0&&this.size===this.max){this.evict()}const l={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:r,prev:this.last,next:null,value:s};this.items.set(r,l);if(this.size===1){this.first=l}else{this.last.next=l}this.last=l}}class LruObject{constructor(r=1e3,s=0){if(isNaN(r)||r<0){throw new Error("Invalid max value")}if(isNaN(s)||s<0){throw new Error("Invalid ttl value")}this.first=null;this.items=Object.create(null);this.last=null;this.size=0;this.max=r;this.ttl=s}bumpLru(r){if(this.last===r){return}const s=this.last;const l=r.next;const p=r.prev;if(this.first===r){this.first=l}r.next=null;r.prev=s;s.next=r;if(p!==null){p.next=l}if(l!==null){l.prev=p}this.last=r}clear(){this.items=Object.create(null);this.first=null;this.last=null;this.size=0}delete(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){const s=this.items[r];delete this.items[r];this.size--;if(s.prev!==null){s.prev.next=s.next}if(s.next!==null){s.next.prev=s.prev}if(this.first===s){this.first=s.next}if(this.last===s){this.last=s.prev}}}deleteMany(r){for(var s=0;s<r.length;s++){this.delete(r[s])}}evict(){if(this.size>0){const r=this.first;delete this.items[r.key];if(--this.size===0){this.first=null;this.last=null}else{this.first=r.next;this.first.prev=null}}}expiresAt(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){return this.items[r].expiry}}get(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){const s=this.items[r];if(this.ttl>0&&s.expiry<=Date.now()){this.delete(r);return}this.bumpLru(s);return s.value}}getMany(r){const s=[];for(var l=0;l<r.length;l++){s.push(this.get(r[l]))}return s}keys(){return Object.keys(this.items)}set(r,s){if(Object.prototype.hasOwnProperty.call(this.items,r)){const l=this.items[r];l.value=s;l.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;if(this.last!==l){this.bumpLru(l)}return}if(this.max>0&&this.size===this.max){this.evict()}const l={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:r,prev:this.last,next:null,value:s};this.items[r]=l;if(++this.size===1){this.first=l}else{this.last.next=l}this.last=l}}class HitStatisticsRecord{constructor(){this.records={}}initForCache(r,s){this.records[r]={[s]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(r){for(let s of Object.keys(this.records[r])){this.records[r][s]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}getStatistics(){return this.records}}function getTimestamp(r){return`${r.getFullYear()}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")}`}class HitStatistics{constructor(r,s,l){this.cacheId=r;this.statisticTtlInHours=s;this.collectionStart=new Date;this.currentTimeStamp=getTimestamp(this.collectionStart);this.records=l||new HitStatisticsRecord;this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){if(!this.records.records[this.cacheId][this.currentTimeStamp]){this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}}return this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded();this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded();this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded();this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded();this.currentRecord.misses++}addEviction(){this.archiveIfNeeded();this.currentRecord.evictions++}setCacheSize(r){this.archiveIfNeeded();this.currentRecord.cacheSize=r}addExpiration(){this.archiveIfNeeded();this.currentRecord.expirations++}addSet(){this.archiveIfNeeded();this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded();this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded();this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){if(this.hoursPassed()>=this.statisticTtlInHours){this.collectionStart=new Date;this.currentTimeStamp=getTimestamp(this.collectionStart);this.records.initForCache(this.cacheId,this.currentTimeStamp)}}}class LruObjectHitStatistics extends LruObject{constructor(r,s,l,p,d){super(r||1e3,s||0);if(!l){throw new Error("Cache id is mandatory")}this.hitStatistics=new HitStatistics(l,d!==undefined?d:24,p)}getStatistics(){return this.hitStatistics.getStatistics()}set(r,s){super.set(r,s);this.hitStatistics.addSet();this.hitStatistics.setCacheSize(this.size)}evict(){super.evict();this.hitStatistics.addEviction();this.hitStatistics.setCacheSize(this.size)}delete(r,s=false){super.delete(r);if(!s){this.hitStatistics.addInvalidateOne()}this.hitStatistics.setCacheSize(this.size)}clear(){super.clear();this.hitStatistics.addInvalidateAll();this.hitStatistics.setCacheSize(this.size)}get(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){const s=this.items[r];if(this.ttl>0&&s.expiry<=Date.now()){this.delete(r,true);this.hitStatistics.addExpiration();return}this.bumpLru(s);if(!s.value){this.hitStatistics.addFalsyHit()}if(s.value===undefined||s.value===null||s.value===""){this.hitStatistics.addEmptyHit()}this.hitStatistics.addHit();return s.value}this.hitStatistics.addMiss()}}class FifoObject{constructor(r=1e3,s=0){if(isNaN(r)||r<0){throw new Error("Invalid max value")}if(isNaN(s)||s<0){throw new Error("Invalid ttl value")}this.first=null;this.items=Object.create(null);this.last=null;this.size=0;this.max=r;this.ttl=s}clear(){this.items=Object.create(null);this.first=null;this.last=null;this.size=0}delete(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){const s=this.items[r];delete this.items[r];this.size--;if(s.prev!==null){s.prev.next=s.next}if(s.next!==null){s.next.prev=s.prev}if(this.first===s){this.first=s.next}if(this.last===s){this.last=s.prev}}}deleteMany(r){for(var s=0;s<r.length;s++){this.delete(r[s])}}evict(){if(this.size>0){const r=this.first;delete this.items[r.key];if(--this.size===0){this.first=null;this.last=null}else{this.first=r.next;this.first.prev=null}}}expiresAt(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){return this.items[r].expiry}}get(r){if(Object.prototype.hasOwnProperty.call(this.items,r)){const s=this.items[r];if(this.ttl>0&&s.expiry<=Date.now()){this.delete(r);return}return s.value}}getMany(r){const s=[];for(var l=0;l<r.length;l++){s.push(this.get(r[l]))}return s}keys(){return Object.keys(this.items)}set(r,s){if(Object.prototype.hasOwnProperty.call(this.items,r)){const l=this.items[r];l.value=s;l.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl;return}if(this.max>0&&this.size===this.max){this.evict()}const l={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:r,prev:this.last,next:null,value:s};this.items[r]=l;if(++this.size===1){this.first=l}else{this.last.next=l}this.last=l}}async function getAppAuthentication({appId:r,privateKey:s,timeDifference:l,createJwt:p}){try{if(p){const{jwt:s,expiresAt:d}=await p(r,l);return{type:"app",token:s,appId:r,expiresAt:d}}const d={id:r,privateKey:s};if(l){Object.assign(d,{now:Math.floor(Date.now()/1e3)+l})}const m=await githubAppJwt(d);return{type:"app",token:m.token,appId:m.appId,expiresAt:new Date(m.expiration*1e3).toISOString()}}catch(r){if(s==="-----BEGIN RSA PRIVATE KEY-----"){throw new Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'")}else{throw r}}}function getCache(){return new LruObject(15e3,1e3*60*59)}async function dist_node_get(r,s){const l=optionsToCacheKey(s);const p=await r.get(l);if(!p){return}const[d,m,y,g,T,b]=p.split("|");const E=s.permissions||T.split(/,/).reduce(((r,s)=>{if(/!$/.test(s)){r[s.slice(0,-1)]="write"}else{r[s]="read"}return r}),{});return{token:d,createdAt:m,expiresAt:y,permissions:E,repositoryIds:s.repositoryIds,repositoryNames:s.repositoryNames,singleFileName:b,repositorySelection:g}}async function dist_node_set(r,s,l){const p=optionsToCacheKey(s);const d=s.permissions?"":Object.keys(l.permissions).map((r=>`${r}${l.permissions[r]==="write"?"!":""}`)).join(",");const m=[l.token,l.createdAt,l.expiresAt,l.repositorySelection,d,l.singleFileName].join("|");await r.set(p,m)}function optionsToCacheKey({installationId:r,permissions:s={},repositoryIds:l=[],repositoryNames:p=[]}){const d=Object.keys(s).sort().map((r=>s[r]==="read"?r:`${r}!`)).join(",");const m=l.sort().join(",");const y=p.join(",");return[r,m,y,d].filter(Boolean).join("|")}function toTokenAuthentication({installationId:r,token:s,createdAt:l,expiresAt:p,repositorySelection:d,permissions:m,repositoryIds:y,repositoryNames:g,singleFileName:T}){return Object.assign({type:"token",tokenType:"installation",token:s,installationId:r,permissions:m,createdAt:l,expiresAt:p,repositorySelection:d},y?{repositoryIds:y}:null,g?{repositoryNames:g}:null,T?{singleFileName:T}:null)}async function getInstallationAuthentication(r,s,l){const p=Number(s.installationId||r.installationId);if(!p){throw new Error("[@octokit/auth-app] installationId option is required for installation authentication.")}if(s.factory){const{type:l,factory:p,oauthApp:d,...m}={...r,...s};return p(m)}const d=l||r.request;return getInstallationAuthenticationConcurrently(r,{...s,installationId:p},d)}var pendingPromises=new Map;function getInstallationAuthenticationConcurrently(r,s,l){const p=optionsToCacheKey(s);if(pendingPromises.has(p)){return pendingPromises.get(p)}const d=getInstallationAuthenticationImpl(r,s,l).finally((()=>pendingPromises.delete(p)));pendingPromises.set(p,d);return d}async function getInstallationAuthenticationImpl(r,s,l){if(!s.refresh){const l=await dist_node_get(r.cache,s);if(l){const{token:r,createdAt:p,expiresAt:d,permissions:m,repositoryIds:y,repositoryNames:g,singleFileName:T,repositorySelection:b}=l;return toTokenAuthentication({installationId:s.installationId,token:r,createdAt:p,expiresAt:d,permissions:m,repositorySelection:b,repositoryIds:y,repositoryNames:g,singleFileName:T})}}const p=await getAppAuthentication(r);const d={installation_id:s.installationId,mediaType:{previews:["machine-man"]},headers:{authorization:`bearer ${p.token}`}};if(s.repositoryIds){Object.assign(d,{repository_ids:s.repositoryIds})}if(s.repositoryNames){Object.assign(d,{repositories:s.repositoryNames})}if(s.permissions){Object.assign(d,{permissions:s.permissions})}const{data:{token:m,expires_at:y,repositories:g,permissions:T,repository_selection:b,single_file:E}}=await l("POST /app/installations/{installation_id}/access_tokens",d);const S=T||{};const _=b||"all";const x=g?g.map((r=>r.id)):void 0;const w=g?g.map((r=>r.name)):void 0;const v=(new Date).toISOString();const A={token:m,createdAt:v,expiresAt:y,repositorySelection:_,permissions:S,repositoryIds:x,repositoryNames:w};if(E){Object.assign(d,{singleFileName:E})}await dist_node_set(r.cache,s,A);const P={installationId:s.installationId,token:m,createdAt:v,expiresAt:y,repositorySelection:_,permissions:S,repositoryIds:x,repositoryNames:w};if(E){Object.assign(P,{singleFileName:E})}return toTokenAuthentication(P)}async function dist_node_auth(r,s){switch(s.type){case"app":return getAppAuthentication(r);case"oauth-app":return r.oauthApp({type:"oauth-app"});case"installation":s;return getInstallationAuthentication(r,{...s,type:"installation"});case"oauth-user":return r.oauthApp(s);default:throw new Error(`Invalid auth type: ${s.type}`)}}var PATHS=["/app","/app/hook/config","/app/hook/deliveries","/app/hook/deliveries/{delivery_id}","/app/hook/deliveries/{delivery_id}/attempts","/app/installations","/app/installations/{installation_id}","/app/installations/{installation_id}/access_tokens","/app/installations/{installation_id}/suspended","/app/installation-requests","/marketplace_listing/accounts/{account_id}","/marketplace_listing/plan","/marketplace_listing/plans","/marketplace_listing/plans/{plan_id}/accounts","/marketplace_listing/stubbed/accounts/{account_id}","/marketplace_listing/stubbed/plan","/marketplace_listing/stubbed/plans","/marketplace_listing/stubbed/plans/{plan_id}/accounts","/orgs/{org}/installation","/repos/{owner}/{repo}/installation","/users/{username}/installation"];function dist_node_routeMatcher(r){const s=r.map((r=>r.split("/").map((r=>r.startsWith("{")?"(?:.+?)":r)).join("/")));const l=`^(?:${s.map((r=>`(?:${r})`)).join("|")})$`;return new RegExp(l,"i")}var REGEX=dist_node_routeMatcher(PATHS);function requiresAppAuth(r){return!!r&®EX.test(r.split("?")[0])}var FIVE_SECONDS_IN_MS=5*1e3;function isNotTimeSkewError(r){return!(r.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||r.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}async function dist_node_hook(r,s,l,p){const d=s.endpoint.merge(l,p);const m=d.url;if(/\/login\/oauth\/access_token$/.test(m)){return s(d)}if(requiresAppAuth(m.replace(s.endpoint.DEFAULTS.baseUrl,""))){const{token:l}=await getAppAuthentication(r);d.headers.authorization=`bearer ${l}`;let p;try{p=await s(d)}catch(l){if(isNotTimeSkewError(l)){throw l}if(typeof l.response.headers.date==="undefined"){throw l}const p=Math.floor((Date.parse(l.response.headers.date)-Date.parse((new Date).toString()))/1e3);r.log.warn(l.message);r.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${p} seconds. Retrying request with the difference accounted for.`);const{token:m}=await getAppAuthentication({...r,timeDifference:p});d.headers.authorization=`bearer ${m}`;return s(d)}return p}if(requiresBasicAuth(m)){const l=await r.oauthApp({type:"oauth-app"});d.headers.authorization=l.headers.authorization;return s(d)}const{token:y,createdAt:g}=await getInstallationAuthentication(r,{},s.defaults({baseUrl:d.baseUrl}));d.headers.authorization=`token ${y}`;return sendRequestWithRetries(r,s,d,g)}async function sendRequestWithRetries(r,s,l,p,d=0){const m=+new Date-+new Date(p);try{return await s(l)}catch(y){if(y.status!==401){throw y}if(m>=FIVE_SECONDS_IN_MS){if(d>0){y.message=`After ${d} retries within ${m/1e3}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`}throw y}++d;const g=d*1e3;r.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${d}, wait: ${g/1e3}s)`);await new Promise((r=>setTimeout(r,g)));return sendRequestWithRetries(r,s,l,p,d)}}var dist_node_VERSION="8.1.1";function createAppAuth(r){if(!r.appId){throw new Error("[@octokit/auth-app] appId option is required")}if(!r.privateKey&&!r.createJwt){throw new Error("[@octokit/auth-app] privateKey option is required")}else if(r.privateKey&&r.createJwt){throw new Error("[@octokit/auth-app] privateKey and createJwt options are mutually exclusive")}if("installationId"in r&&!r.installationId){throw new Error("[@octokit/auth-app] installationId is set to a falsy value")}const s=r.log||{};if(typeof s.warn!=="function"){s.warn=console.warn.bind(console)}const l=r.request||dist_bundle_request.defaults({headers:{"user-agent":`octokit-auth-app.js/${dist_node_VERSION} ${getUserAgent()}`}});const p=Object.assign({request:l,cache:getCache()},r,r.installationId?{installationId:Number(r.installationId)}:{},{log:s,oauthApp:createOAuthAppAuth({clientType:"github-app",clientId:r.clientId||"",clientSecret:r.clientSecret||"",request:l})});return Object.assign(dist_node_auth.bind(null,p),{hook:dist_node_hook.bind(null,p)})}async function auth_unauthenticated_dist_node_auth(r){return{type:"unauthenticated",reason:r}}function isRateLimitError(r){if(r.status!==403){return false}if(!r.response){return false}return r.response.headers["x-ratelimit-remaining"]==="0"}var REGEX_ABUSE_LIMIT_MESSAGE=/\babuse\b/i;function isAbuseLimitError(r){if(r.status!==403){return false}return REGEX_ABUSE_LIMIT_MESSAGE.test(r.message)}async function auth_unauthenticated_dist_node_hook(r,s,l,p){const d=s.endpoint.merge(l,p);return s(d).catch((s=>{if(s.status===404){s.message=`Not found. May be due to lack of authentication. Reason: ${r}`;throw s}if(isRateLimitError(s)){s.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${r}`;throw s}if(isAbuseLimitError(s)){s.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${r}`;throw s}if(s.status===401){s.message=`Unauthorized. "${d.method} ${d.url}" failed most likely due to lack of authentication. Reason: ${r}`;throw s}if(s.status>=400&&s.status<500){s.message=s.message.replace(/\.?$/,`. May be caused by lack of authentication (${r}).`)}throw s}))}var createUnauthenticatedAuth=function createUnauthenticatedAuth2(r){if(!r||!r.reason){throw new Error("[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth")}return Object.assign(auth_unauthenticated_dist_node_auth.bind(null,r.reason),{hook:auth_unauthenticated_dist_node_hook.bind(null,r.reason)})};var oauth_app_dist_node_VERSION="8.0.2";function addEventHandler(r,s,l){if(Array.isArray(s)){for(const p of s){addEventHandler(r,p,l)}return}if(!r.eventHandlers[s]){r.eventHandlers[s]=[]}r.eventHandlers[s].push(l)}var OAuthAppOctokit=dist_src_Octokit.defaults({userAgent:`octokit-oauth-app.js/${oauth_app_dist_node_VERSION} ${getUserAgent()}`});async function emitEvent(r,s){const{name:l,action:p}=s;if(r.eventHandlers[`${l}.${p}`]){for(const d of r.eventHandlers[`${l}.${p}`]){await d(s)}}if(r.eventHandlers[l]){for(const p of r.eventHandlers[l]){await p(s)}}}async function getUserOctokitWithState(r,s){return r.octokit.auth({type:"oauth-user",...s,async factory(s){const l=new r.Octokit({authStrategy:createOAuthUserAuth,auth:s});const p=await l.auth({type:"get"});await emitEvent(r,{name:"token",action:"created",token:p.token,scopes:p.scopes,authentication:p,octokit:l});return l}})}function getWebFlowAuthorizationUrlWithState(r,s){const l={clientId:r.clientId,request:r.octokit.request,...s,allowSignup:r.allowSignup??s.allowSignup,redirectUrl:s.redirectUrl??r.redirectUrl,scopes:s.scopes??r.defaultScopes};return getWebFlowAuthorizationUrl({clientType:r.clientType,...l})}async function createTokenWithState(r,s){const l=await r.octokit.auth({type:"oauth-user",...s});await emitEvent(r,{name:"token",action:"created",token:l.token,scopes:l.scopes,authentication:l,octokit:new r.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:l.token,scopes:l.scopes,refreshToken:l.refreshToken,expiresAt:l.expiresAt,refreshTokenExpiresAt:l.refreshTokenExpiresAt}})});return{authentication:l}}async function checkTokenWithState(r,s){const l=await checkToken({clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,request:r.octokit.request,...s});Object.assign(l.authentication,{type:"token",tokenType:"oauth"});return l}async function resetTokenWithState(r,s){const l={clientId:r.clientId,clientSecret:r.clientSecret,request:r.octokit.request,...s};if(r.clientType==="oauth-app"){const s=await resetToken({clientType:"oauth-app",...l});const p=Object.assign(s.authentication,{type:"token",tokenType:"oauth"});await emitEvent(r,{name:"token",action:"reset",token:s.authentication.token,scopes:s.authentication.scopes||void 0,authentication:p,octokit:new r.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:s.authentication.token,scopes:s.authentication.scopes}})});return{...s,authentication:p}}const p=await resetToken({clientType:"github-app",...l});const d=Object.assign(p.authentication,{type:"token",tokenType:"oauth"});await emitEvent(r,{name:"token",action:"reset",token:p.authentication.token,authentication:d,octokit:new r.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:p.authentication.token}})});return{...p,authentication:d}}async function refreshTokenWithState(r,s){if(r.clientType==="oauth-app"){throw new Error("[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps")}const l=await refreshToken({clientType:"github-app",clientId:r.clientId,clientSecret:r.clientSecret,request:r.octokit.request,refreshToken:s.refreshToken});const p=Object.assign(l.authentication,{type:"token",tokenType:"oauth"});await emitEvent(r,{name:"token",action:"refreshed",token:l.authentication.token,authentication:p,octokit:new r.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:l.authentication.token}})});return{...l,authentication:p}}async function scopeTokenWithState(r,s){if(r.clientType==="oauth-app"){throw new Error("[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps")}const l=await scopeToken({clientType:"github-app",clientId:r.clientId,clientSecret:r.clientSecret,request:r.octokit.request,...s});const p=Object.assign(l.authentication,{type:"token",tokenType:"oauth"});await emitEvent(r,{name:"token",action:"scoped",token:l.authentication.token,authentication:p,octokit:new r.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:r.clientType,clientId:r.clientId,clientSecret:r.clientSecret,token:l.authentication.token}})});return{...l,authentication:p}}async function deleteTokenWithState(r,s){const l={clientId:r.clientId,clientSecret:r.clientSecret,request:r.octokit.request,...s};const p=r.clientType==="oauth-app"?await deleteToken({clientType:"oauth-app",...l}):await deleteToken({clientType:"github-app",...l});await emitEvent(r,{name:"token",action:"deleted",token:s.token,octokit:new r.Octokit({authStrategy:createUnauthenticatedAuth,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})});return p}async function deleteAuthorizationWithState(r,s){const l={clientId:r.clientId,clientSecret:r.clientSecret,request:r.octokit.request,...s};const p=r.clientType==="oauth-app"?await deleteAuthorization({clientType:"oauth-app",...l}):await deleteAuthorization({clientType:"github-app",...l});await emitEvent(r,{name:"token",action:"deleted",token:s.token,octokit:new r.Octokit({authStrategy:createUnauthenticatedAuth,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})});await emitEvent(r,{name:"authorization",action:"deleted",token:s.token,octokit:new r.Octokit({authStrategy:createUnauthenticatedAuth,auth:{reason:`Handling "authorization.deleted" event. The access for the app has been revoked.`}})});return p}function dist_node_unknownRouteResponse(r){return{status:404,headers:{"content-type":"application/json"},text:JSON.stringify({error:`Unknown route: ${r.method} ${r.url}`})}}async function handleRequest(r,{pathPrefix:s="/api/github/oauth"},l){let{pathname:p}=new URL(l.url,"http://localhost");if(!p.startsWith(`${s}/`)){return void 0}if(l.method==="OPTIONS"){return{status:200,headers:{"access-control-allow-origin":"*","access-control-allow-methods":"*","access-control-allow-headers":"Content-Type, User-Agent, Authorization"}}}p=p.slice(s.length+1);const d=[l.method,p].join(" ");const m={getLogin:`GET login`,getCallback:`GET callback`,createToken:`POST token`,getToken:`GET token`,patchToken:`PATCH token`,patchRefreshToken:`PATCH refresh-token`,scopeToken:`POST token/scoped`,deleteToken:`DELETE token`,deleteGrant:`DELETE grant`};if(!Object.values(m).includes(d)){return dist_node_unknownRouteResponse(l)}let y;try{const r=await l.text();y=r?JSON.parse(r):{}}catch(r){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:"[@octokit/oauth-app] request error"})}}const{searchParams:g}=new URL(l.url,"http://localhost");const T=Object.fromEntries(g);const b=l.headers;try{if(d===m.getLogin){const s={};if(T.state){Object.assign(s,{state:T.state})}if(T.scopes){Object.assign(s,{scopes:T.scopes.split(",")})}if(T.allowSignup){Object.assign(s,{allowSignup:T.allowSignup==="true"})}if(T.redirectUrl){Object.assign(s,{redirectUrl:T.redirectUrl})}const{url:l}=r.getWebFlowAuthorizationUrl(s);return{status:302,headers:{location:l}}}if(d===m.getCallback){if(T.error){throw new Error(`[@octokit/oauth-app] ${T.error} ${T.error_description}`)}if(!T.code){throw new Error('[@octokit/oauth-app] "code" parameter is required')}const{authentication:{token:s}}=await r.createToken({code:T.code});return{status:200,headers:{"content-type":"text/html"},text:`<h1>Token created successfully</h1>\n\n<p>Your token is: <strong>${s}</strong>. Copy it now as it cannot be shown again.</p>`}}if(d===m.createToken){const{code:s,redirectUrl:l}=y;if(!s){throw new Error('[@octokit/oauth-app] "code" parameter is required')}const p=await r.createToken({code:s,redirectUrl:l});delete p.authentication.clientSecret;return{status:201,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(d===m.getToken){const s=b.authorization?.substr("token ".length);if(!s){throw new Error('[@octokit/oauth-app] "Authorization" header is required')}const l=await r.checkToken({token:s});delete l.authentication.clientSecret;return{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(l)}}if(d===m.patchToken){const s=b.authorization?.substr("token ".length);if(!s){throw new Error('[@octokit/oauth-app] "Authorization" header is required')}const l=await r.resetToken({token:s});delete l.authentication.clientSecret;return{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(l)}}if(d===m.patchRefreshToken){const s=b.authorization?.substr("token ".length);if(!s){throw new Error('[@octokit/oauth-app] "Authorization" header is required')}const{refreshToken:l}=y;if(!l){throw new Error("[@octokit/oauth-app] refreshToken must be sent in request body")}const p=await r.refreshToken({refreshToken:l});delete p.authentication.clientSecret;return{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(d===m.scopeToken){const s=b.authorization?.substr("token ".length);if(!s){throw new Error('[@octokit/oauth-app] "Authorization" header is required')}const l=await r.scopeToken({token:s,...y});delete l.authentication.clientSecret;return{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(l)}}if(d===m.deleteToken){const s=b.authorization?.substr("token ".length);if(!s){throw new Error('[@octokit/oauth-app] "Authorization" header is required')}await r.deleteToken({token:s});return{status:204,headers:{"access-control-allow-origin":"*"}}}const s=b.authorization?.substr("token ".length);if(!s){throw new Error('[@octokit/oauth-app] "Authorization" header is required')}await r.deleteAuthorization({token:s});return{status:204,headers:{"access-control-allow-origin":"*"}}}catch(r){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:r.message})}}}function parseRequest(r){const{method:s,url:l,headers:p}=r;async function text(){const s=await new Promise(((s,l)=>{let p=[];r.on("error",l).on("data",(r=>p.push(r))).on("end",(()=>s(Buffer.concat(p).toString())))}));return s}return{method:s,url:l,headers:p,text:text}}function sendResponse(r,s){s.writeHead(r.status,r.headers);s.end(r.text)}function createNodeMiddleware(r,s={}){return async function(l,p,d){const m=await parseRequest(l);const y=await handleRequest(r,s,m);if(y){sendResponse(y,p);return true}else{d?.();return false}}}function parseRequest2(r){const s=Object.fromEntries(r.headers.entries());return{method:r.method,url:r.url,headers:s,text:()=>r.text()}}function sendResponse2(r){const s={status:r.status};if(r.headers){Object.assign(s,{headers:r.headers})}return new Response(r.text,s)}function createWebWorkerHandler(r,s={}){return async function(l){const p=await parseRequest2(l);const d=await handleRequest(r,s,p);return d?sendResponse2(d):void 0}}function parseRequest3(r){const{method:s}=r.requestContext.http;let l=r.rawPath;const{stage:p}=r.requestContext;if(l.startsWith("/"+p))l=l.substring(p.length+1);if(r.rawQueryString)l+="?"+r.rawQueryString;const d=r.headers;const text=async()=>r.body||"";return{method:s,url:l,headers:d,text:text}}function sendResponse3(r){return{statusCode:r.status,headers:r.headers,body:r.text}}function createAWSLambdaAPIGatewayV2Handler(r,s={}){return async function(l){const p=parseRequest3(l);const d=await handleRequest(r,s,p);return d?sendResponse3(d):void 0}}var OAuthApp=class{static VERSION=oauth_app_dist_node_VERSION;static defaults(r){const s=class extends(this){constructor(...s){super({...r,...s[0]})}};return s}constructor(r){const s=r.Octokit||OAuthAppOctokit;this.type=r.clientType||"oauth-app";const l=new s({authStrategy:createOAuthAppAuth,auth:{clientType:this.type,clientId:r.clientId,clientSecret:r.clientSecret}});const p={clientType:this.type,clientId:r.clientId,clientSecret:r.clientSecret,defaultScopes:r.defaultScopes||[],allowSignup:r.allowSignup,baseUrl:r.baseUrl,redirectUrl:r.redirectUrl,log:r.log,Octokit:s,octokit:l,eventHandlers:{}};this.on=addEventHandler.bind(null,p);this.octokit=l;this.getUserOctokit=getUserOctokitWithState.bind(null,p);this.getWebFlowAuthorizationUrl=getWebFlowAuthorizationUrlWithState.bind(null,p);this.createToken=createTokenWithState.bind(null,p);this.checkToken=checkTokenWithState.bind(null,p);this.resetToken=resetTokenWithState.bind(null,p);this.refreshToken=refreshTokenWithState.bind(null,p);this.scopeToken=scopeTokenWithState.bind(null,p);this.deleteToken=deleteTokenWithState.bind(null,p);this.deleteAuthorization=deleteAuthorizationWithState.bind(null,p)}type;on;octokit;getUserOctokit;getWebFlowAuthorizationUrl;createToken;checkToken;resetToken;refreshToken;scopeToken;deleteToken;deleteAuthorization};var webhooks_methods_dist_node_VERSION="6.0.0";async function sign(r,s){if(!r||!s){throw new TypeError("[@octokit/webhooks-methods] secret & payload required for sign()")}if(typeof s!=="string"){throw new TypeError("[@octokit/webhooks-methods] payload must be a string")}const l="sha256";return`${l}=${(0,external_node_crypto_namespaceObject.createHmac)(l,r).update(s).digest("hex")}`}sign.VERSION=webhooks_methods_dist_node_VERSION;async function verify(r,s,l){if(!r||!s||!l){throw new TypeError("[@octokit/webhooks-methods] secret, eventPayload & signature required")}if(typeof s!=="string"){throw new TypeError("[@octokit/webhooks-methods] eventPayload must be a string")}const p=external_node_buffer_namespaceObject.Buffer.from(l);const d=external_node_buffer_namespaceObject.Buffer.from(await sign(r,s));if(p.length!==d.length){return false}return(0,external_node_crypto_namespaceObject.timingSafeEqual)(p,d)}verify.VERSION=webhooks_methods_dist_node_VERSION;async function verifyWithFallback(r,s,l,p){const d=await verify(r,s,l);if(d){return true}if(p!==void 0){for(const r of p){const p=await verify(r,s,l);if(p){return p}}}return false}var dist_bundle_createLogger=(r={})=>{if(typeof r.debug!=="function"){r.debug=()=>{}}if(typeof r.info!=="function"){r.info=()=>{}}if(typeof r.warn!=="function"){r.warn=console.warn.bind(console)}if(typeof r.error!=="function"){r.error=console.error.bind(console)}return r};var emitterEventNames=["branch_protection_configuration","branch_protection_configuration.disabled","branch_protection_configuration.enabled","branch_protection_rule","branch_protection_rule.created","branch_protection_rule.deleted","branch_protection_rule.edited","check_run","check_run.completed","check_run.created","check_run.requested_action","check_run.rerequested","check_suite","check_suite.completed","check_suite.requested","check_suite.rerequested","code_scanning_alert","code_scanning_alert.appeared_in_branch","code_scanning_alert.closed_by_user","code_scanning_alert.created","code_scanning_alert.fixed","code_scanning_alert.reopened","code_scanning_alert.reopened_by_user","commit_comment","commit_comment.created","create","custom_property","custom_property.created","custom_property.deleted","custom_property.promote_to_enterprise","custom_property.updated","custom_property_values","custom_property_values.updated","delete","dependabot_alert","dependabot_alert.auto_dismissed","dependabot_alert.auto_reopened","dependabot_alert.created","dependabot_alert.dismissed","dependabot_alert.fixed","dependabot_alert.reintroduced","dependabot_alert.reopened","deploy_key","deploy_key.created","deploy_key.deleted","deployment","deployment.created","deployment_protection_rule","deployment_protection_rule.requested","deployment_review","deployment_review.approved","deployment_review.rejected","deployment_review.requested","deployment_status","deployment_status.created","discussion","discussion.answered","discussion.category_changed","discussion.closed","discussion.created","discussion.deleted","discussion.edited","discussion.labeled","discussion.locked","discussion.pinned","discussion.reopened","discussion.transferred","discussion.unanswered","discussion.unlabeled","discussion.unlocked","discussion.unpinned","discussion_comment","discussion_comment.created","discussion_comment.deleted","discussion_comment.edited","fork","github_app_authorization","github_app_authorization.revoked","gollum","installation","installation.created","installation.deleted","installation.new_permissions_accepted","installation.suspend","installation.unsuspend","installation_repositories","installation_repositories.added","installation_repositories.removed","installation_target","installation_target.renamed","issue_comment","issue_comment.created","issue_comment.deleted","issue_comment.edited","issues","issues.assigned","issues.closed","issues.deleted","issues.demilestoned","issues.edited","issues.labeled","issues.locked","issues.milestoned","issues.opened","issues.pinned","issues.reopened","issues.transferred","issues.typed","issues.unassigned","issues.unlabeled","issues.unlocked","issues.unpinned","issues.untyped","label","label.created","label.deleted","label.edited","marketplace_purchase","marketplace_purchase.cancelled","marketplace_purchase.changed","marketplace_purchase.pending_change","marketplace_purchase.pending_change_cancelled","marketplace_purchase.purchased","member","member.added","member.edited","member.removed","membership","membership.added","membership.removed","merge_group","merge_group.checks_requested","merge_group.destroyed","meta","meta.deleted","milestone","milestone.closed","milestone.created","milestone.deleted","milestone.edited","milestone.opened","org_block","org_block.blocked","org_block.unblocked","organization","organization.deleted","organization.member_added","organization.member_invited","organization.member_removed","organization.renamed","package","package.published","package.updated","page_build","personal_access_token_request","personal_access_token_request.approved","personal_access_token_request.cancelled","personal_access_token_request.created","personal_access_token_request.denied","ping","project","project.closed","project.created","project.deleted","project.edited","project.reopened","project_card","project_card.converted","project_card.created","project_card.deleted","project_card.edited","project_card.moved","project_column","project_column.created","project_column.deleted","project_column.edited","project_column.moved","projects_v2","projects_v2.closed","projects_v2.created","projects_v2.deleted","projects_v2.edited","projects_v2.reopened","projects_v2_item","projects_v2_item.archived","projects_v2_item.converted","projects_v2_item.created","projects_v2_item.deleted","projects_v2_item.edited","projects_v2_item.reordered","projects_v2_item.restored","projects_v2_status_update","projects_v2_status_update.created","projects_v2_status_update.deleted","projects_v2_status_update.edited","public","pull_request","pull_request.assigned","pull_request.auto_merge_disabled","pull_request.auto_merge_enabled","pull_request.closed","pull_request.converted_to_draft","pull_request.demilestoned","pull_request.dequeued","pull_request.edited","pull_request.enqueued","pull_request.labeled","pull_request.locked","pull_request.milestoned","pull_request.opened","pull_request.ready_for_review","pull_request.reopened","pull_request.review_request_removed","pull_request.review_requested","pull_request.synchronize","pull_request.unassigned","pull_request.unlabeled","pull_request.unlocked","pull_request_review","pull_request_review.dismissed","pull_request_review.edited","pull_request_review.submitted","pull_request_review_comment","pull_request_review_comment.created","pull_request_review_comment.deleted","pull_request_review_comment.edited","pull_request_review_thread","pull_request_review_thread.resolved","pull_request_review_thread.unresolved","push","registry_package","registry_package.published","registry_package.updated","release","release.created","release.deleted","release.edited","release.prereleased","release.published","release.released","release.unpublished","repository","repository.archived","repository.created","repository.deleted","repository.edited","repository.privatized","repository.publicized","repository.renamed","repository.transferred","repository.unarchived","repository_advisory","repository_advisory.published","repository_advisory.reported","repository_dispatch","repository_dispatch.sample.collected","repository_import","repository_ruleset","repository_ruleset.created","repository_ruleset.deleted","repository_ruleset.edited","repository_vulnerability_alert","repository_vulnerability_alert.create","repository_vulnerability_alert.dismiss","repository_vulnerability_alert.reopen","repository_vulnerability_alert.resolve","secret_scanning_alert","secret_scanning_alert.created","secret_scanning_alert.publicly_leaked","secret_scanning_alert.reopened","secret_scanning_alert.resolved","secret_scanning_alert.validated","secret_scanning_alert_location","secret_scanning_alert_location.created","secret_scanning_scan","secret_scanning_scan.completed","security_advisory","security_advisory.published","security_advisory.updated","security_advisory.withdrawn","security_and_analysis","sponsorship","sponsorship.cancelled","sponsorship.created","sponsorship.edited","sponsorship.pending_cancellation","sponsorship.pending_tier_change","sponsorship.tier_changed","star","star.created","star.deleted","status","sub_issues","sub_issues.parent_issue_added","sub_issues.parent_issue_removed","sub_issues.sub_issue_added","sub_issues.sub_issue_removed","team","team.added_to_repository","team.created","team.deleted","team.edited","team.removed_from_repository","team_add","watch","watch.started","workflow_dispatch","workflow_job","workflow_job.completed","workflow_job.in_progress","workflow_job.queued","workflow_job.waiting","workflow_run","workflow_run.completed","workflow_run.in_progress","workflow_run.requested"];function validateEventName(r,s={}){if(typeof r!=="string"){throw new TypeError("eventName must be of type string")}if(r==="*"){throw new TypeError(`Using the "*" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onAny() method instead`)}if(r==="error"){throw new TypeError(`Using the "error" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onError() method instead`)}if(s.onUnknownEventName==="ignore"){return}if(!emitterEventNames.includes(r)){if(s.onUnknownEventName!=="warn"){throw new TypeError(`"${r}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}else{(s.log||console).warn(`"${r}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}}}function handleEventHandlers(r,s,l){if(!r.hooks[s]){r.hooks[s]=[]}r.hooks[s].push(l)}function receiverOn(r,s,l){if(Array.isArray(s)){s.forEach((s=>receiverOn(r,s,l)));return}validateEventName(s,{onUnknownEventName:"warn",log:r.log});handleEventHandlers(r,s,l)}function receiverOnAny(r,s){handleEventHandlers(r,"*",s)}function receiverOnError(r,s){handleEventHandlers(r,"error",s)}function wrapErrorHandler(r,s){let l;try{l=r(s)}catch(r){console.log('FATAL: Error occurred in "error" event handler');console.log(r)}if(l&&l.catch){l.catch((r=>{console.log('FATAL: Error occurred in "error" event handler');console.log(r)}))}}function getHooks(r,s,l){const p=[r.hooks[l],r.hooks["*"]];if(s){p.unshift(r.hooks[`${l}.${s}`])}return[].concat(...p.filter(Boolean))}function receiverHandle(r,s){const l=r.hooks.error||[];if(s instanceof Error){const r=Object.assign(new AggregateError([s],s.message),{event:s});l.forEach((s=>wrapErrorHandler(s,r)));return Promise.reject(r)}if(!s||!s.name){const r=new Error("Event name not passed");throw new AggregateError([r],r.message)}if(!s.payload){const r=new Error("Event name not passed");throw new AggregateError([r],r.message)}const p=getHooks(r,"action"in s.payload?s.payload.action:null,s.name);if(p.length===0){return Promise.resolve()}const d=[];const m=p.map((l=>{let p=Promise.resolve(s);if(r.transform){p=p.then(r.transform)}return p.then((r=>l(r))).catch((r=>d.push(Object.assign(r,{event:s}))))}));return Promise.all(m).then((()=>{if(d.length===0){return}const r=new AggregateError(d,d.map((r=>r.message)).join("\n"));Object.assign(r,{event:s});l.forEach((s=>wrapErrorHandler(s,r)));throw r}))}function removeListener(r,s,l){if(Array.isArray(s)){s.forEach((s=>removeListener(r,s,l)));return}if(!r.hooks[s]){return}for(let p=r.hooks[s].length-1;p>=0;p--){if(r.hooks[s][p]===l){r.hooks[s].splice(p,1);return}}}function createEventHandler(r){const s={hooks:{},log:dist_bundle_createLogger(r&&r.log)};if(r&&r.transform){s.transform=r.transform}return{on:receiverOn.bind(null,s),onAny:receiverOnAny.bind(null,s),onError:receiverOnError.bind(null,s),removeListener:removeListener.bind(null,s),receive:receiverHandle.bind(null,s)}}async function verifyAndReceive(r,s){const l=await verifyWithFallback(r.secret,s.payload,s.signature,r.additionalSecrets).catch((()=>false));if(!l){const l=new Error("[@octokit/webhooks] signature does not match event payload and secret");l.event=s;l.status=400;return r.eventHandler.receive(l)}let p;try{p=JSON.parse(s.payload)}catch(r){r.message="Invalid JSON";r.status=400;throw new AggregateError([r],r.message)}return r.eventHandler.receive({id:s.id,name:s.name,payload:p})}function normalizeTrailingSlashes(r){let s=r.length;if(s===0){return"/"}while(s>0){if(r.charCodeAt(--s)!==47){break}}if(s===-1){return"/"}return r.slice(0,s+1)}var isApplicationJsonRE=/^\s*(application\/json)\s*(?:;|$)/u;var WEBHOOK_HEADERS=null&&["x-github-event","x-hub-signature-256","x-github-delivery"];function createMiddleware(r){const{handleResponse:s,getRequestHeader:l,getPayload:p}=r;return function middleware(r,d){const m=normalizeTrailingSlashes(d.path);return async function octokitWebhooksMiddleware(y,g,T){let b;try{b=new URL(normalizeTrailingSlashes(y.url),"http://localhost").pathname}catch(r){return s(JSON.stringify({error:`Request URL could not be parsed: ${y.url}`}),422,{"content-type":"application/json"},g)}if(b!==m){T?.();return s(null)}else if(y.method!=="POST"){return s(JSON.stringify({error:`Unknown route: ${y.method} ${b}`}),404,{"content-type":"application/json"},g)}const E=l(y,"content-type");if(typeof E!=="string"||!isApplicationJsonRE.test(E)){return s(JSON.stringify({error:`Unsupported "Content-Type" header value. Must be "application/json"`}),415,{"content-type":"application/json",accept:"application/json"},g)}const S=WEBHOOK_HEADERS.filter((r=>l(y,r)==void 0)).join(", ");if(S){return s(JSON.stringify({error:`Required headers missing: ${S}`}),400,{"content-type":"application/json",accept:"application/json"},g)}const _=l(y,"x-github-event");const x=l(y,"x-hub-signature-256");const w=l(y,"x-github-delivery");d.log.debug(`${_} event received (id: ${w})`);let v=false;let A;const P=new Promise((r=>{A=setTimeout((()=>{v=true;r(s("still processing\n",202,{"Content-Type":"text/plain",accept:"application/json"},g))}),d.timeout)}));const processWebhook=async()=>{try{const l=await p(y);await r.verifyAndReceive({id:w,name:_,payload:l,signature:x});clearTimeout(A);if(v)return s(null);return s("ok\n",200,{"content-type":"text/plain",accept:"application/json"},g)}catch(r){clearTimeout(A);if(v)return s(null);const l=Array.from(r.errors)[0];const p=l.message?`${l.name}: ${l.message}`:"Error: An Unspecified error occurred";const m=typeof l.status!=="undefined"?l.status:500;d.log.error(r);return s(JSON.stringify({error:p}),m,{"content-type":"application/json",accept:"application/json"},g)}};return await Promise.race([P,processWebhook()])}}}function handleResponse(r,s=200,l={},p){if(r===null){return false}l["content-length"]=r.length.toString();p.writeHead(s,l).end(r);return true}function getRequestHeader(r,s){return r.headers[s]}function concatUint8Array(r){if(r.length===0){return new Uint8Array(0)}let s=0;for(let l=0;l<r.length;l++){s+=r[l].length}if(s===0){return new Uint8Array(0)}const l=new Uint8Array(s);let p=0;for(let s=0;s<r.length;s++){l.set(r[s],p);p+=r[s].length}return l}var textDecoder=new TextDecoder("utf-8",{fatal:false});var decode=textDecoder.decode.bind(textDecoder);async function getPayload(r){if(typeof r.body==="object"&&"rawBody"in r&&r.rawBody instanceof Uint8Array){return decode(r.rawBody)}else if(typeof r.body==="string"){return r.body}const s=await getPayloadFromRequestStream(r);return decode(s)}function getPayloadFromRequestStream(r){return new Promise(((s,l)=>{let p=[];r.on("error",(r=>l(new AggregateError([r],r.message))));r.on("data",p.push.bind(p));r.on("end",(()=>{const r=concatUint8Array(p);queueMicrotask((()=>s(r)))}))}))}function dist_bundle_createNodeMiddleware(r,{path:s="/api/github/webhooks",log:l=dist_bundle_createLogger(),timeout:p=9e3}={}){return createMiddleware({handleResponse:handleResponse,getRequestHeader:getRequestHeader,getPayload:getPayload})(r,{path:s,log:l,timeout:p})}function getPayload2(r){return r.text()}function getRequestHeader2(r,s){return r.headers.get(s)}function handleResponse2(r,s=200,l={}){if(r!==null){l["content-length"]=r.length.toString()}return new Response(r,{status:s,headers:l})}function createWebMiddleware(r,{path:s="/api/github/webhooks",log:l=dist_bundle_createLogger(),timeout:p=9e3}={}){return createMiddleware({handleResponse:handleResponse2,getRequestHeader:getRequestHeader2,getPayload:getPayload2})(r,{path:s,log:l,timeout:p})}var Webhooks=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(r){if(!r||!r.secret){throw new Error("[@octokit/webhooks] options.secret required")}const s={eventHandler:createEventHandler(r),secret:r.secret,additionalSecrets:r.additionalSecrets,hooks:{},log:dist_bundle_createLogger(r.log)};this.sign=sign.bind(null,r.secret);this.verify=verify.bind(null,r.secret);this.on=s.eventHandler.on;this.onAny=s.eventHandler.onAny;this.onError=s.eventHandler.onError;this.removeListener=s.eventHandler.removeListener;this.receive=s.eventHandler.receive;this.verifyAndReceive=verifyAndReceive.bind(null,s)}};var app_dist_node_VERSION="16.1.1";function webhooks(r,s){return new Webhooks({secret:s.secret,transform:async s=>{if(!("installation"in s.payload)||typeof s.payload.installation!=="object"){const l=new r.constructor({authStrategy:createUnauthenticatedAuth,auth:{reason:`"installation" key missing in webhook event payload`}});return{...s,octokit:l}}const l=s.payload.installation.id;const p=await r.auth({type:"installation",installationId:l,factory(r){return new r.octokit.constructor({...r.octokitOptions,authStrategy:createAppAuth,...{auth:{...r,installationId:l}}})}});p.hook.before("request",(r=>{r.headers["x-github-delivery"]=s.id}));return{...s,octokit:p}}})}async function getInstallationOctokit(r,s){return r.octokit.auth({type:"installation",installationId:s,factory(r){const l={...r.octokitOptions,authStrategy:createAppAuth,...{auth:{...r,installationId:s}}};return new r.octokit.constructor(l)}})}function eachInstallationFactory(r){return Object.assign(eachInstallation.bind(null,r),{iterator:eachInstallationIterator.bind(null,r)})}async function eachInstallation(r,s){const l=eachInstallationIterator(r)[Symbol.asyncIterator]();let p=await l.next();while(!p.done){await s(p.value);p=await l.next()}}function eachInstallationIterator(r){return{async*[Symbol.asyncIterator](){const s=composePaginateRest.iterator(r.octokit,"GET /app/installations");for await(const{data:l}of s){for(const s of l){const l=await getInstallationOctokit(r,s.id);yield{octokit:l,installation:s}}}}}}function eachRepositoryFactory(r){return Object.assign(eachRepository.bind(null,r),{iterator:eachRepositoryIterator.bind(null,r)})}async function eachRepository(r,s,l){const p=eachRepositoryIterator(r,l?s:void 0)[Symbol.asyncIterator]();let d=await p.next();while(!d.done){if(l){await l(d.value)}else{await s(d.value)}d=await p.next()}}function singleInstallationIterator(r,s){return{async*[Symbol.asyncIterator](){yield{octokit:await r.getInstallationOctokit(s)}}}}function eachRepositoryIterator(r,s){return{async*[Symbol.asyncIterator](){const l=s?singleInstallationIterator(r,s.installationId):r.eachInstallation.iterator();for await(const{octokit:r}of l){const s=composePaginateRest.iterator(r,"GET /installation/repositories");for await(const{data:l}of s){for(const s of l){yield{octokit:r,repository:s}}}}}}}function getInstallationUrlFactory(r){let s;return async function getInstallationUrl(l={}){if(!s){s=getInstallationUrlBase(r)}const p=await s;const d=new URL(p);if(l.target_id!==void 0){d.pathname+="/permissions";d.searchParams.append("target_id",l.target_id.toFixed())}if(l.state!==void 0){d.searchParams.append("state",l.state)}return d.href}}async function getInstallationUrlBase(r){const{data:s}=await r.octokit.request("GET /app");if(!s){throw new Error("[@octokit/app] unable to fetch metadata for app")}return`${s.html_url}/installations/new`}function dist_node_noop(){}function dist_node_createNodeMiddleware(r,s={}){const l=Object.assign({debug:dist_node_noop,info:dist_node_noop,warn:console.warn.bind(console),error:console.error.bind(console)},s.log);const p={pathPrefix:"/api/github",...s,log:l};const d=webhooksNodeMiddleware(r.webhooks,{path:p.pathPrefix+"/webhooks",log:l});const m=oauthNodeMiddleware(r.oauth,{pathPrefix:p.pathPrefix+"/oauth"});return middleware.bind(null,p.pathPrefix,d,m)}async function middleware(r,s,l,p,d,m){const{pathname:y}=new URL(p.url,"http://localhost");if(y.startsWith(`${r}/`)){if(y===`${r}/webhooks`){s(p,d)}else if(y.startsWith(`${r}/oauth/`)){l(p,d)}else{sendNodeResponse(unknownRouteResponse(p),d)}return true}else{m?.();return false}}var App=class{static VERSION=app_dist_node_VERSION;static defaults(r){const s=class extends(this){constructor(...s){super({...r,...s[0]})}};return s}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(r){const s=r.Octokit||dist_src_Octokit;const l=Object.assign({appId:r.appId,privateKey:r.privateKey},r.oauth?{clientId:r.oauth.clientId,clientSecret:r.oauth.clientSecret}:{});const p={authStrategy:createAppAuth,auth:l};if("log"in r&&typeof r.log!=="undefined"){p.log=r.log}this.octokit=new s(p);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},r.log);if(r.webhooks){this.webhooks=webhooks(this.octokit,r.webhooks)}else{Object.defineProperty(this,"webhooks",{get(){throw new Error("[@octokit/app] webhooks option not set")}})}if(r.oauth){this.oauth=new OAuthApp({...r.oauth,clientType:"github-app",Octokit:s})}else{Object.defineProperty(this,"oauth",{get(){throw new Error("[@octokit/app] oauth.clientId / oauth.clientSecret options are not set")}})}this.getInstallationOctokit=getInstallationOctokit.bind(null,this);this.eachInstallation=eachInstallationFactory(this);this.eachRepository=eachRepositoryFactory(this);this.getInstallationUrl=getInstallationUrlFactory(this)}};var octokit_dist_bundle_VERSION="0.0.0-development";var Octokit=dist_src_Octokit.plugin(restEndpointMethods,paginateRest,paginateGraphQL,retry,throttling).defaults({userAgent:`octokit.js/${octokit_dist_bundle_VERSION}`,throttle:{onRateLimit:onRateLimit,onSecondaryRateLimit:onSecondaryRateLimit}});function onRateLimit(r,s,l){l.log.warn(`Request quota exhausted for request ${s.method} ${s.url}`);if(s.request.retryCount===0){l.log.info(`Retrying after ${r} seconds!`);return true}}function onSecondaryRateLimit(r,s,l){l.log.warn(`SecondaryRateLimit detected for request ${s.method} ${s.url}`);if(s.request.retryCount===0){l.log.info(`Retrying after ${r} seconds!`);return true}}var dist_bundle_App=App.defaults({Octokit:Octokit});var dist_bundle_OAuthApp=OAuthApp.defaults({Octokit:Octokit});class GitHubRepo{octokit;maxRetries;constructor(r,s=3){this.maxRetries=s;this.octokit=new Octokit(r?{auth:r}:{})}async getPRInfo(r,s,l){for(let p=0;p<this.maxRetries;p++){try{console.info(`Fetching PR info ${r}/${s}#${l}`);const{data:p}=await this.octokit.rest.pulls.get({owner:r,repo:s,pull_number:l});return p}catch(r){}}throw new Error("读取PR信息失败")}async getPRChangedFiles(r,s,l,p=30){const d=[];let m=1;while(true){let y;for(let d=0;d<this.maxRetries;d++){try{console.info(`Fetching PR files ${r}/${s}#${l} page ${m}`);y=await this.octokit.rest.pulls.listFiles({owner:r,repo:s,pull_number:l,per_page:p,page:m});break}catch(r){}}if(y){d.push(...y.data);m++;if(y.data.length<p){break}}else{throw new Error("读取PR变更文件失败")}}return d}async getTextFileContent(r,s,l,p){try{console.info(`Fetching ${r}/${s}/${l}@${p} via Git Data API`);const{data:d}=await this.octokit.rest.git.getCommit({owner:r,repo:s,commit_sha:p});const m=await this.findFileInTree(r,s,d.tree.sha,l);if(m){const{data:l}=await this.octokit.rest.git.getBlob({owner:r,repo:s,file_sha:m.sha});if(l.encoding==="base64"){return Buffer.from(l.content,"base64").toString("utf-8")}}}catch(r){console.warn(`Git Data API failed for ${l}:`,r)}for(let d=0;d<this.maxRetries;d++){try{console.info(`Fetching ${r}/${s}/${l}@${p} via Contents API (attempt ${d+1})`);const{data:m}=await this.octokit.rest.repos.getContent({owner:r,repo:s,path:l,ref:p});if("content"in m&&m.content){return Buffer.from(m.content,"base64").toString("utf-8")}else if("download_url"in m&&m.download_url){const r=await got_dist_source(m.download_url);if(r.statusCode===200){return r.body}}}catch(r){console.warn(`Contents API attempt ${d+1} failed for ${l}:`,r);if(d===this.maxRetries-1){break}await new Promise((r=>setTimeout(r,200*(d+1))))}}try{console.info(`Fetching ${r}/${s}/${l}@${p} via raw URL`);const d=`https://raw.githubusercontent.com/${r}/${s}/${p}/${l}`;const m=await got_dist_source(d);if(m.statusCode===200){return m.body}}catch(r){console.warn(`Raw URL failed for ${l}:`,r)}console.error(`All methods failed to fetch ${r}/${s}/${l}@${p}`);return null}async findFileInTree(r,s,l,p){const d=p.split("/");let m=l;let y="";for(let l=0;l<d.length;l++){const p=d[l];y=y?`${y}/${p}`:p;try{const{data:y}=await this.octokit.rest.git.getTree({owner:r,repo:s,tree_sha:m});const g=y.tree.find((r=>r.path===p));if(!g){return null}if(l===d.length-1){return g.type==="blob"?{sha:g.sha}:null}else{if(g.type==="tree"){m=g.sha}else{return null}}}catch(r){console.warn(`Failed to get tree ${m}:`,r);return null}}return null}}var semver=__webpack_require__(3675);var tar_stream=__webpack_require__(5165);var gunzip_maybe=__webpack_require__(5091);var external_stream_=__webpack_require__(2203);async function extractTarGzFromBuffer(r,s={}){const{filter:l,maxFileSize:p=50*1024*1024,maxTotalSize:d=500*1024*1024}=s;const m=[];let y=0;return new Promise(((s,g)=>{const T=tar_stream.extract();T.on("entry",((r,s,T)=>{if(l&&!l(r.name)){s.on("end",T);s.resume();return}if(r.size&&r.size>p){s.on("end",T);s.resume();console.warn(`File ${r.name} exceeds size limit, skipping`);return}const b=[];let E=0;s.on("data",(r=>{E+=r.length;y+=r.length;if(y>d){g(new Error("Total extraction size limit exceeded"));return}b.push(r)}));s.on("end",(()=>{if(r.type==="file"){m.push({path:r.name,content:Buffer.concat(b),size:E,type:"file",mode:r.mode||0,mtime:r.mtime||new Date})}else if(r.type==="directory"){m.push({path:r.name,content:Buffer.alloc(0),size:0,type:"directory",mode:r.mode||0,mtime:r.mtime||new Date})}T()}));s.on("error",g)}));T.on("finish",(()=>{s(m)}));T.on("error",g);external_stream_.Readable.from(r).pipe(gunzip_maybe()).pipe(T)}))}async function extractTarGzFromUrl(r,s={}){const l=await got(r);if(l.statusCode!==200){throw new Error(`Failed to download: ${l.statusMessage}`)}const p=l.rawBody;return extractTarGzFromBuffer(p,s)}async function getFileFromTarGz(r,s){const l=await extractTarGzFromBuffer(r,{filter:r=>r===s});return l.length>0?l[0].content:null}async function listTarGzContents(r){const s=[];return new Promise(((l,p)=>{const d=tarStream.extract();d.on("entry",((r,l,p)=>{s.push(r.name);l.on("end",p);l.resume()}));d.on("finish",(()=>{l(s)}));d.on("error",p);Readable.from(r).pipe(gunzip()).pipe(d)}))}async function extractByExtensions(r,s){const l=s.map((r=>r.startsWith(".")?r.toLowerCase():`.${r.toLowerCase()}`));return extractTarGzFromBuffer(r,{filter:r=>{const s=r.toLowerCase().substring(r.lastIndexOf("."));return l.includes(s)}})}class BaseRisk{package;info;constructor(r,s){this.package=r;this.info=s}}class VersionRisk extends BaseRisk{desc="使用了最新或最近发布的版本";level="low";static build(r,s){const l=r.package["dist-tags"].latest;if(semver.eq(s,l)){const p=r.package.time[l];if(p){const l=Date.now()-new Date(p).getTime()<1e3*60*60*24*30;if(l){return new VersionRisk(r,`${r.package.name} 使用了最新版本: ${s}, 且该版本为30天内发布`)}}}return null}}class NotWidelyUsedRisk extends BaseRisk{desc="使用了不常用的NPM包";level="medium";static build(r){if(r.downloadInfo.downloads<1e4){return new NotWidelyUsedRisk(r,`${r.package.name}在${r.downloadInfo.start} - ${r.downloadInfo.end}期间下载量仅有 ${r.downloadInfo.downloads} 次`)}return null}}class RiskyGlobalUsageRisk extends BaseRisk{desc="使用了危险的全局变量";level="high";globals;constructor(r,s,l){super(r,s);this.globals=l}static build(r,s){const l=Object.create(null);const p=["fetch","XMLHttpRequest","ActiveXObject","WebSocket","EventSource","navigator","Image","Script"];const d=["document","window","addEventListener"];const m=["onsearch","onappinstalled","onbeforeinstallprompt","onbeforexrselect","onabort","onbeforeinput","onbeforematch","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncommand","oncontentvisibilityautostatechange","oncontextlost","oncontextmenu","oncontextrestored","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel","onauxclick","ongotpointercapture","onlostpointercapture","onpointerdown","onpointermove","onpointerrawupdate","onpointerup","onpointercancel","onpointerover","onpointerout","onpointerenter","onpointerleave","onselectstart","onselectionchange","onanimationend","onanimationiteration","onanimationstart","ontransitionrun","ontransitionstart","ontransitionend","ontransitioncancel","onafterprint","onbeforeprint","onbeforeunload","onhashchange","onlanguagechange","onmessage","onmessageerror","onoffline","ononline","onpagehide","onpageshow","onpopstate","onrejectionhandled","onstorage","onunhandledrejection","onunload","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","onpageswap","onpagereveal","onscrollsnapchange","onscrollsnapchanging"];const y=["eval"];const g=["localStorage","sessionStorage","IndexedDB","cookies"];for(const[r,T]of Object.entries(s)){if(p.includes(r)){l[r]={perm:T,type:"网络请求",desc:"发起网络请求, 可能包含恶意行为"}}else if(d.includes(r)||m.includes(r)&&T==="rw"){l[r]={perm:T,type:"操作DOM",desc:"可能读取用户助记词等敏感信息"}}else if(y.includes(r)){l[r]={perm:T,type:"动态执行代码",desc:"可能会执行恶意代码"}}else if(g.includes(r)){l[r]={perm:T,type:"读取本地储存",desc:"可能会读取用户的本地储存数据"}}else if(r==="chrome"){l[r]={perm:T,type:"访问chrome扩展API",desc:"访问chrome扩展API"}}}if(Object.keys(l).length===0){return null}let T="";for(const[r,{perm:s,type:p,desc:d}]of Object.entries(l)){T+=`- ${s==="r"?"访问":"读写"} ${r} (${p}): ${d}\n`}return new RiskyGlobalUsageRisk(r,T.trim(),l)}}class ObfuscationRisk extends BaseRisk{desc="代码经过混淆";level="medium";static build(r,s){let l=false;let p="";const d=["while(!![])","+-parseInt("];const m=/_0x[0-9a-fA-F]{6}/;for(const[r,y]of Object.entries(s)){if(d.some((r=>y.includes(r)))){l=true}else if(m.test(y)){l=true}p+=`- ${r} 被混淆\n`}return l?new ObfuscationRisk(r,p.trim()):null}}class RuleRisk extends BaseRisk{desc="触发关键字规则";level="low";static build(r,s){let l="";let p=false;for(const[r,d]of Object.entries(s)){if(d.includes("ethereum")){l+=`- ${r} 使用了 ethereum\n`;p=true}}return p?new RuleRisk(r,l.trim()):null}}async function scanPkgRisks(r,s){console.info(`Scanning ${r}@${s} ...`);const l=await getNpmPackageInfo(r);if(l===null){throw new Error(`Failed to fetch package info for ${r}`)}if(!l.versions[s]){throw new Error(`Version ${s} of package ${r} not found in registry`)}const p=await getNpmPackageDownloadStats(r,"last-week");if(p===null){throw new Error(`Failed to fetch download stats for ${r}`)}console.info(`Downloading tarball for ${r}@${s}`);const d=l.versions[s].dist.tarball;const m=await got_dist_source(d);if(m.statusCode!==200){throw new Error(`Failed to download tarball for ${r}@${s}: ${m.statusMessage}`)}const y=m.rawBody;const g=await extractTarGzFromBuffer(y,{filter:r=>r.endsWith(".js")});const T=Object.create(null);for(const r of g){T[r.path]=r.content.toString("utf8")}let b=Object.create(null);for(const[l,p]of Object.entries(T)){try{const r=analyzeGlobals(p);for(const[s,l]of Object.entries(r)){if(s in b){if(l==="rw"||b[s]==="rw"){b[s]="rw"}}else{b[s]=l}}}catch(p){console.warn(`Failed to analyze ${r}@${s} - ${l}:`,p)}}const E=[];const S={package:l,downloadInfo:p};const _=VersionRisk.build(S,s);if(_)E.push(_);const x=NotWidelyUsedRisk.build(S);if(x)E.push(x);const w=RiskyGlobalUsageRisk.build(S,b);if(w)E.push(w);const v=ObfuscationRisk.build(S,T);if(v)E.push(v);const A=RuleRisk.build(S,T);if(A)E.push(A);return{risks:E,package:l,downloadInfo:p,globalUsage:b}}async function scanByFileDiff(r){let s=new Set;const l={changedDeps:[]};for(const l of r){if(l.filename.endsWith("pnpm-lock.yaml")){const r=new PnpmLockParser(l.oldContent);const p=new PnpmLockParser(l.newContent);const d=PnpmLockParser.deps2Set(r.getDependencies());const m=PnpmLockParser.deps2Set(p.getDependencies());s=s.union(d.difference(m));continue}else if(l.filename.endsWith("yarn.lock")){const r=new YarnLockParser(l.oldContent);const p=new YarnLockParser(l.newContent);const d=YarnLockParser.deps2Set(r.getDependencies());const m=YarnLockParser.deps2Set(p.getDependencies());s=s.union(d.difference(m))}}for(const r of s){const s=r.slice(0,r.lastIndexOf("@"));const p=r.slice(r.lastIndexOf("@")+1);const d=await scanPkgRisks(s,p);l.changedDeps.push({name:s,version:p,packageInfo:d.package,downloadInfo:d.downloadInfo,analyze:{global:d.globalUsage},risks:d.risks})}return l}async function scanPRRisks(r,s,l,p=undefined){const d=new GitHubRepo(p);const m=await d.getPRInfo(r,s,l);const y=await d.getPRChangedFiles(r,s,l,100);if(m===null||y===null){throw new Error(`Failed to fetch PR info or files for #${l}`)}let g=new Set;const T={changedDeps:[]};for(const l of y){if(l.status==="removed"){continue}if(l.filename==="yarn.lock"||l.filename==="pnpm-lock.yaml"){if(l.status!=="added"){const p=await d.getTextFileContent(r,s,l.filename,m.head.sha);const y=await d.getTextFileContent(r,s,l.filename,m.base.sha);if(p===null||y===null){throw new Error(`Failed to fetch ${l.filename} content`);continue}const T=new YarnLockParser(p);const b=new YarnLockParser(y);const E=YarnLockParser.deps2Set(T.getDependencies());const S=YarnLockParser.deps2Set(b.getDependencies());g=g.union(E.difference(S))}else{const p=await d.getTextFileContent(r,s,l.filename,m.head.sha);if(p===null){throw new Error(`Failed to fetch ${l.filename} content`);continue}const y=new YarnLockParser(p);const T=YarnLockParser.deps2Set(y.getDependencies());g=g.union(T)}}}for(const r of g){const s=r.slice(0,r.lastIndexOf("@"));const l=r.slice(r.lastIndexOf("@")+1);const p=await scanPkgRisks(s,l);T.changedDeps.push({name:s,version:l,packageInfo:p.package,downloadInfo:p.downloadInfo,analyze:{global:p.globalUsage},risks:p.risks})}return T}var external_fs_=__webpack_require__(9896);function makeReportInMd(r){const s=r.changedDeps.reduce(((r,s)=>r+s.risks.length),0);let l="共有 "+r.changedDeps.length+" 个依赖变更, 包含 "+s+" 个风险";let p="# PR扫描结果\n";p+=`## 依赖变更\n\n`;if(r.changedDeps.length===0){p+="无依赖变更\n"}else{p+="```\n";p+="| 依赖 | 版本 | 风险 | 下载 | 周下载量 | 最新版 |\n";p+="|:---- |:---- |:---- |:---- |:---- |:---- |\n";const s=r.changedDeps.sort(((r,s)=>s.risks.length-r.risks.length));for(const r of s){p+=`| ${r.name} | ${r.version} | ${r.risks.length} | ${r.packageInfo.versions[r.version].dist.tarball} | ${r.downloadInfo.downloads} | ${r.packageInfo["dist-tags"].latest} |\n`}p+="\n```\n\n";p+="\n## 详细风险信息\n\n";for(const r of s){if(r.risks.length===0){continue}p+=`### ${r.name} @ ${r.version}\n\n`;for(const s of r.risks){p+=`- **【${s.level==="low"?"低危":s.level==="medium"?"中危":"高危"}】** ${s.desc}:\n\n\`\`\`\n${s.info}\n\`\`\`\n\n`}p+="\n"}}return{report:p,abstract:l}}async function md2Img(r){try{return(await got(`https://readpo.com/p/${encodeURIComponent(r)}`)).rawBody}catch{return null}}program.command("branch").description("根据分支文件变更分析NPM依赖变更").argument("<base>","基础分支").argument("<head>","变更分支").option("-r, --repo <repo>","仓库路径",".").option("-o, --output <output>","输出文件路径,若不指定则输出到控制台","").action((async(r,s,l)=>{console.log(`分析 ${l.repo} 仓库从 ${r} 到 ${s} 的变更`);const p=(0,external_child_process_namespaceObject.execSync)(`git diff --name-only ${r} ${s}`,{cwd:l.repo}).toString();const d=[];for(let m of p.split("\n")){m=m.trim();if(m.endsWith("yarn.lock")){console.log(` 发现变更: ${m}`)}else if(m.endsWith("pnpm-lock.yaml")){console.log(` 发现变更: ${m}`)}else if(m.endsWith("package-lock.json")){console.error(` 发现变更: ${m} (暂不支持分析package-lock.json)`);continue}else{continue}const p=(0,external_child_process_namespaceObject.execSync)(`git show ${r}:${m}`,{cwd:l.repo}).toString();const y=(0,external_child_process_namespaceObject.execSync)(`git show ${s}:${m}`,{cwd:l.repo}).toString();d.push({filename:m,oldContent:p,newContent:y})}const m=await scanByFileDiff(d);const y=makeReportInMd(m);if(l.output.length>0){(0,external_fs_.writeFileSync)(l.output,y.report,{encoding:"utf-8"});console.log(`分析报告已写入 ${l.output}`)}else{console.log(y.report)}}));program.command("github").description("根据GitHub Pull Request分析NPM依赖变更").argument("<link>","Pull Request链接").option("-t, --token <token>","GitHub访问令牌","").option("-o, --output <output>","输出文件路径,若不指定则输出到控制台","").action((async(r,s)=>{console.log(`分析 Pull Request: ${r}`);const l=r.match(/https:\/\/github\.com\/([^\/]+)\/([^\/]+)\/pull\/(\d+)/);if(l){const r=l[1];const p=l[2];const d=l[3];const m=await scanPRRisks(r,p,parseInt(d),s.token);const y=makeReportInMd(m);if(s.output.length>0){(0,external_fs_.writeFileSync)(s.output,y.report,{encoding:"utf-8"});console.log(`分析报告已写入 ${s.output}`)}else{console.log(y.report)}}else{console.error("无法解析Pull Request链接");return}}));program.parse();
|